From a70818d3d7f60a347e67cffd3db8fb84884eb592 Mon Sep 17 00:00:00 2001 From: Filip Iricanin Date: Sat, 10 Jan 2026 01:22:56 +0100 Subject: [PATCH 01/25] feat: Implement Jellyfin SyncPlay support This commit introduces a comprehensive implementation of Jellyfin SyncPlay, enabling synchronized media playback between multiple users. The integration includes real-time state synchronization, group management, and low-latency command execution. Key features and architectural components: - **WebSocket Infrastructure**: Dedicated `WebSocketManager` handling persistent connections, automatic reconnection with exponential backoff, and keep-alive messaging. - **Time Synchronization**: NTP-like clock synchronization via `TimeSyncService` to calculate server/client offsets, ensuring precise command execution across different network latencies. - **SyncPlay Controller**: A central state machine managing group lifecycle (create, join, leave), command scheduling with future execution timers, and late-command estimation. - **Player Integration**: Intercepted user actions (play, pause, seek) in the video player to route requests through the SyncPlay API when active, ensuring all participants stay in sync. - **UI Components**: - **Dashboard FAB**: New "SyncPlay" action button on the main dashboard to access group management. - **Group Management Sheet**: Bottom sheet for listing active sessions, creating new groups, and joining existing ones. - **Status Indicators**: Added `SyncPlayBadge` and indicators within the video player controls to show the current group state (Playing, Paused, Waiting). - **Riverpod State Management**: Comprehensive providers for session state, group metadata, and player synchronization status. Technical details: - Implemented tick-based time conversion (10,000,000 ticks per second) for compatibility with Jellyfin's internal timing. - Added duplicate command detection to prevent redundant player operations. - Enhanced navigation scaffold to support custom FAB widgets per destination. --- ...ncplay_mvp_implementation_96c11d62.plan.md | 206 +++ docs/syncplay-implementation.md | 1396 +++++++++++++++++ lib/l10n/app_en.arb | 6 + lib/main.dart | 6 + .../items/movies_details_provider.g.dart | 2 +- lib/providers/router_provider.dart | 14 + .../syncplay/syncplay_controller.dart | 623 ++++++++ lib/providers/syncplay/syncplay_models.dart | 105 ++ .../syncplay/syncplay_models.freezed.dart | 1172 ++++++++++++++ lib/providers/syncplay/syncplay_provider.dart | 133 ++ .../syncplay/syncplay_provider.g.dart | 85 + lib/providers/syncplay/time_sync_service.dart | 167 ++ lib/providers/syncplay/websocket_manager.dart | 180 +++ lib/providers/video_player_provider.dart | 104 +- lib/screens/home_screen.dart | 9 +- .../video_player/video_player_controls.dart | 18 +- .../components/destination_model.dart | 6 + .../components/side_navigation_bar.dart | 17 +- .../navigation_scaffold.dart | 2 +- lib/widgets/syncplay/dashboard_fabs.dart | 91 ++ lib/widgets/syncplay/syncplay_badge.dart | 110 ++ lib/widgets/syncplay/syncplay_fab.dart | 56 + .../syncplay/syncplay_group_sheet.dart | 438 ++++++ pubspec.lock | 2 +- pubspec.yaml | 1 + 25 files changed, 4928 insertions(+), 21 deletions(-) create mode 100644 .cursor/plans/syncplay_mvp_implementation_96c11d62.plan.md create mode 100644 docs/syncplay-implementation.md create mode 100644 lib/providers/router_provider.dart create mode 100644 lib/providers/syncplay/syncplay_controller.dart create mode 100644 lib/providers/syncplay/syncplay_models.dart create mode 100644 lib/providers/syncplay/syncplay_models.freezed.dart create mode 100644 lib/providers/syncplay/syncplay_provider.dart create mode 100644 lib/providers/syncplay/syncplay_provider.g.dart create mode 100644 lib/providers/syncplay/time_sync_service.dart create mode 100644 lib/providers/syncplay/websocket_manager.dart create mode 100644 lib/widgets/syncplay/dashboard_fabs.dart create mode 100644 lib/widgets/syncplay/syncplay_badge.dart create mode 100644 lib/widgets/syncplay/syncplay_fab.dart create mode 100644 lib/widgets/syncplay/syncplay_group_sheet.dart diff --git a/.cursor/plans/syncplay_mvp_implementation_96c11d62.plan.md b/.cursor/plans/syncplay_mvp_implementation_96c11d62.plan.md new file mode 100644 index 000000000..aeae95dc9 --- /dev/null +++ b/.cursor/plans/syncplay_mvp_implementation_96c11d62.plan.md @@ -0,0 +1,206 @@ +--- +name: SyncPlay MVP Implementation +overview: Implement Jellyfin SyncPlay for synchronized playback between users - MVP scope with group management, basic playback sync (play/pause/seek), WebSocket infrastructure, and time synchronization. +todos: + - id: models + content: Create SyncPlay models (group, command, message types) in lib/models/syncplay/ + status: pending + - id: websocket + content: Implement WebSocketManager with connection, keep-alive, and message routing + status: completed + - id: timesync + content: Implement TimeSyncService with NTP-like offset calculationImplement SyncPlayApiClient with all REST endpoints + status: completed + - id: controller + content: Implement SyncPlayController with state machine and command scheduling + status: completed + - id: adapter + content: Create SyncPlayPlayerAdapter bridging to BasePlayer + status: completed + - id: provider + content: Create SyncPlayProvider for Riverpod state management + status: completed + - id: ui-fab + content: Add SyncPlay FAB to home screen dashboard + status: completed + - id: ui-sheet + content: Create group list/create bottom sheet + status: completed + - id: ui-badge + content: Add sync indicator badge to video player controls + status: completed + - id: player-integration + content: Hook player events to report buffering/ready and intercept user actions + status: completed +--- + +# SyncPlay MVP Implementation + +## Architecture Overview + +```mermaid +flowchart TB + subgraph UI[UI Layer] + FAB[SyncPlay FAB] + Sheet[Group List Sheet] + Badge[Player Sync Badge] + end + + subgraph State[State Management] + Provider[SyncPlayProvider] + GroupState[Group State] + end + + subgraph Core[Core Services] + Controller[SyncPlayController] + TimeSync[TimeSyncService] + API[SyncPlayApiClient] + WS[WebSocketManager] + end + + subgraph Player[Player Integration] + Adapter[SyncPlayPlayerAdapter] + BasePlayer[Existing BasePlayer] + end + + FAB --> Sheet + Sheet --> Provider + Badge --> Provider + Provider --> Controller + Controller --> TimeSync + Controller --> API + Controller --> WS + Controller --> Adapter + Adapter --> BasePlayer +``` + +## Key Files to Create + +| File | Purpose | + +|------|---------| + +| `lib/services/syncplay/websocket_manager.dart` | WebSocket connection, keep-alive, message routing | + +| `lib/services/syncplay/time_sync_service.dart` | NTP-like clock offset calculation | + +| `lib/services/syncplay/syncplay_controller.dart` | Command handling, state machine, scheduling | + +| `lib/providers/syncplay_provider.dart` | Riverpod state management | + +| `lib/widgets/syncplay/syncplay_fab.dart` | FAB widget for home screen | + +| `lib/widgets/syncplay/syncplay_group_sheet.dart` | Bottom sheet for group list/create | + +| `lib/widgets/syncplay/syncplay_badge.dart` | Badge indicator for player controls | + +| `lib/wrappers/syncplay_player_adapter.dart` | Adapter bridging SyncPlay to `BasePlayer` | + +## Existing Generated API (No Implementation Needed) + +The Jellyfin client at `lib/jellyfin/jellyfin_open_api.swagger.dart` already provides: + +**Endpoints:** + +- `syncPlayListGet()`, `syncPlayNewPost()`, `syncPlayJoinPost()`, `syncPlayLeavePost()` +- `syncPlayPausePost()`, `syncPlayUnpausePost()`, `syncPlayStopPost()` +- `syncPlaySeekPost()`, `syncPlayBufferingPost()`, `syncPlayReadyPost()`, `syncPlayPingPost()` +- `syncPlaySetNewQueuePost()`, `getUtcTimeGet()` + +**Models:** + +- `GroupInfoDto`, `SyncPlayCommandMessage`, `SyncPlayGroupUpdateMessage` +- `BufferRequestDto`, `ReadyRequestDto`, `SeekRequestDto`, `PingRequestDto` +- `UtcTimeResponse`, `PlayQueueUpdate`, etc. + +## Key Files to Modify + +- [`lib/screens/home_screen.dart`](lib/screens/home_screen.dart) - Add SyncPlay FAB to dashboard destination +- [`lib/screens/video_player/video_player_controls.dart`](lib/screens/video_player/video_player_controls.dart) - Add sync badge, intercept user actions +- [`lib/wrappers/media_control_wrapper.dart`](lib/wrappers/media_control_wrapper.dart) - Hook SyncPlay adapter + +## Implementation Details + +### 1. WebSocket Manager + +- Connect to `wss://{server}/socket?api_key={token}&deviceId={deviceId}` +- Handle `ForceKeepAlive` with half-interval pings +- Route `SyncPlayCommand` and `SyncPlayGroupUpdate` messages +- Auto-reconnect with exponential backoff + +### 2. Time Sync Service + +- Use `/GetUtcTime` endpoint with T1-T4 timestamps +- Calculate offset: `((T2 - T1) + (T3 - T4)) / 2` +- Store 8 measurements, use minimum delay +- Greedy polling (1s) for first 3 pings, then 60s intervals +- Provide `remoteDateToLocal()` / `localDateToRemote()` converters + +### 3. SyncPlay Controller + +- State machine: Idle -> Waiting -> Playing/Paused +- Command scheduling with `Timer` for future execution +- Duplicate command detection (When + Position + Command + PlaylistItemId) +- Player event interception (distinguish user vs SyncPlay actions) +- Uses existing generated API client methods directly (no new API wrapper needed) + +### 4. Player Adapter + +Bridge between SyncPlay and existing `BasePlayer` / `MediaControlsWrapper`: + +class SyncPlayPlayerAdapter { + final BasePlayer player; + bool _syncPlayAction = false; // Flag to distinguish SyncPlay vs user actions + + // Wrap play/pause/seek to set flag + Future syncPlayPause() async { + _syncPlayAction = true; + await player.pause(); + _syncPlayAction = false; + } + + // Expose streams for buffering/ready detection + Stream get onBuffering => player.stateStream.map((s) => s.buffering); +} + +### 5. UI Components + +- **FAB**: Icon changes when in sync session (normal: people icon, active: sync icon with badge) +- **Group Sheet**: List of groups with avatars, tap to join, "Create Group" button with name input +- **Player Badge**: Small indicator in player controls showing sync active + group name + +## Data Flow: Join Group and Play + +```mermaid +sequenceDiagram + participant User + participant FAB + participant Sheet + participant Provider + participant API + participant WS + participant Player + + User->>FAB: Tap + FAB->>Sheet: Open + Sheet->>API: GET /SyncPlay/List + API-->>Sheet: Groups[] + User->>Sheet: Tap group + Sheet->>API: POST /SyncPlay/Join + API-->>WS: GroupJoined message + WS->>Provider: Update state + Provider->>Sheet: Close, show badge + + Note over User: Browses library, selects media + User->>Player: Play media + Player->>API: POST /SyncPlay/SetNewQueue + API-->>WS: PlayQueue update + WS->>Provider: Sync to all clients +``` + +## Out of Scope (Future) + +- SpeedToSync / SkipToSync drift correction +- Playlist queue management UI +- Participant list display +- Chat functionality \ No newline at end of file diff --git a/docs/syncplay-implementation.md b/docs/syncplay-implementation.md new file mode 100644 index 000000000..b7789a095 --- /dev/null +++ b/docs/syncplay-implementation.md @@ -0,0 +1,1396 @@ +# SyncPlay Implementation Guide + +A comprehensive technical specification for implementing Jellyfin SyncPlay synchronized playback in client applications. + +## Table of Contents + +1. [Overview](#overview) +2. [Architecture](#architecture) +3. [Communication Protocols](#communication-protocols) +4. [Time Synchronization](#time-synchronization) +5. [Group Management](#group-management) +6. [Playback Control](#playback-control) +7. [State Machine](#state-machine) +8. [Command Scheduling](#command-scheduling) +9. [Player Interface](#player-interface) +10. [Message Types Reference](#message-types-reference) +11. [Edge Cases & Error Handling](#edge-cases--error-handling) +12. [Implementation Checklist](#implementation-checklist) + +--- + +## Overview + +SyncPlay enables multiple clients to watch media together in perfect synchronization. The system coordinates playback across devices with different network latencies by: + +1. Using a central server (Jellyfin) as the source of truth for group state +2. Synchronizing client clocks with the server via ping measurements +3. Scheduling playback commands to execute at precise server-defined timestamps +4. Managing a shared queue/playlist across all participants + +### Key Principles + +- **Server Authority**: The Jellyfin server owns the group state. Clients request changes, server broadcasts commands. +- **Time-based Coordination**: Commands include a `When` timestamp indicating exact execution time. +- **Buffering Awareness**: Clients report their buffering state; playback only resumes when ALL clients are ready. +- **Dual Protocol**: REST API for state-changing requests, WebSocket for real-time event delivery. + +--- + +## Architecture + +``` +┌─────────────────────────────────────────────────────────────────────────────┐ +│ JELLYFIN SERVER │ +│ ┌─────────────────┐ ┌─────────────────┐ ┌─────────────────────────┐ │ +│ │ SyncPlay API │ │ Group Manager │ │ WebSocket Broadcaster │ │ +│ │ (REST) │◄──►│ (State) │◄──►│ (Events) │ │ +│ └─────────────────┘ └─────────────────┘ └─────────────────────────┘ │ +└─────────────────────────────────────────────────────────────────────────────┘ + ▲ │ + │ REST API │ WebSocket + │ (Requests) │ (Commands/Updates) + │ ▼ +┌─────────────────────────────────────────────────────────────────────────────┐ +│ CLIENT APPLICATION │ +│ ┌─────────────────┐ ┌─────────────────┐ ┌─────────────────────────┐ │ +│ │ REST Client │ │ SyncPlay │ │ WebSocket Manager │ │ +│ │ (Actions) │◄──►│ Controller │◄──►│ (Connection/Messages) │ │ +│ └─────────────────┘ └─────────────────┘ └─────────────────────────┘ │ +│ │ │ +│ ▼ │ +│ ┌─────────────────┐ ┌─────────────────┐ ┌─────────────────────────┐ │ +│ │ Time Sync │ │ Command │ │ Player Interface │ │ +│ │ (Clock Offset) │◄──►│ Handler │◄──►│ (Video Control) │ │ +│ └─────────────────┘ └─────────────────┘ └─────────────────────────┘ │ +└─────────────────────────────────────────────────────────────────────────────┘ +``` + +### Component Responsibilities + +| Component | Responsibility | +|-----------|----------------| +| **REST Client** | Sends state-change requests (pause, seek, ready, buffering) | +| **WebSocket Manager** | Maintains persistent connection, handles keep-alive, routes messages | +| **Time Sync** | Calculates clock offset between client and server | +| **Command Handler** | Schedules commands for future execution, handles duplicates | +| **Player Interface** | Abstraction layer between SyncPlay and actual video player | +| **SyncPlay Controller** | Orchestrates all components, manages group state | + +--- + +## Communication Protocols + +SyncPlay uses two complementary communication channels: + +### REST API (Client → Server) + +Used for **requesting** state changes. The server processes these and broadcasts commands to all clients. + +| Endpoint | Purpose | +|----------|---------| +| `GET /SyncPlay/List` | List available groups | +| `POST /SyncPlay/New` | Create a new group | +| `POST /SyncPlay/Join` | Join an existing group | +| `POST /SyncPlay/Leave` | Leave current group | +| `POST /SyncPlay/Pause` | Request pause | +| `POST /SyncPlay/Unpause` | Request unpause/play | +| `POST /SyncPlay/Seek` | Request seek to position | +| `POST /SyncPlay/Stop` | Request stop | +| `POST /SyncPlay/Buffering` | Report buffering state | +| `POST /SyncPlay/Ready` | Report ready state | +| `POST /SyncPlay/SetNewQueue` | Set a new playlist | +| `POST /SyncPlay/Queue` | Add items to queue | +| `POST /SyncPlay/Ping` | Report ping measurement | +| `GET /GetUtcTime` | Get server timestamps for time sync (T2, T3) | + +### WebSocket (Server → Client) + +Used for **receiving** commands and state updates. Connect to: + +``` +wss://{server}/socket?api_key={token}&deviceId={deviceId} +``` + +Message types received: +- `SyncPlayCommand` - Playback control commands (pause, unpause, seek, stop) +- `SyncPlayGroupUpdate` - Group state changes (join, leave, playlist, state) +- `ForceKeepAlive` - Keep-alive configuration +- `KeepAlive` - Keep-alive acknowledgment + +--- + +## Time Synchronization + +**Critical for accurate synchronization.** Clients must maintain an accurate estimate of the offset between their local clock and the server's clock. + +### Algorithm (NTP-like) + +``` +┌────────┐ ┌────────┐ +│ CLIENT │ │ SERVER │ +└────┬───┘ └────┬───┘ + │ │ + │ requestSent (T1) │ + │──────────────────────────────────────►│ + │ │ requestReceived (T2) + │ │ + │ │ responseSent (T3) + │◄──────────────────────────────────────│ + │ responseReceived (T4) │ + │ │ +``` + +**Offset Calculation:** + +``` +offset = ((T2 - T1) + (T3 - T4)) / 2 +``` + +**Round-trip Delay:** + +``` +delay = (T4 - T1) - (T3 - T2) +ping = delay / 2 +``` + +### Server Time API + +Jellyfin provides a dedicated endpoint for time synchronization that returns server-side timestamps: + +**Endpoint:** +```http +GET /GetUtcTime +``` + +**Response:** +```json +{ + "RequestReceptionTime": "2024-01-15T12:00:00.0000000Z", + "ResponseTransmissionTime": "2024-01-15T12:00:00.0010000Z" +} +``` + +| Field | Description | +|-------|-------------| +| `RequestReceptionTime` | When the server received the request (T2) | +| `ResponseTransmissionTime` | When the server sent the response (T3) | + +The client records T1 (before sending) and T4 (after receiving) locally. + +**Client-side Implementation:** + +```typescript +async function requestPing(): Promise<{ + requestSent: Date; + requestReceived: Date; + responseSent: Date; + responseReceived: Date; +}> { + // T1: Record local time before request + const requestSent = new Date(); + + // Make request to Jellyfin TimeSync API + const response = await fetch(`${serverUrl}/GetUtcTime`, { + headers: { 'Authorization': `MediaBrowser Token="${accessToken}"` } + }); + const data = await response.json(); + + // T4: Record local time after response + const responseReceived = new Date(); + + // T2 and T3 come from server response + const requestReceived = new Date(data.RequestReceptionTime); + const responseSent = new Date(data.ResponseTransmissionTime); + + return { + requestSent, // T1 - local + requestReceived, // T2 - from server + responseSent, // T3 - from server + responseReceived // T4 - local + }; +} +``` + +**Flutter/Dart equivalent:** + +```dart +Future requestPing() async { + // T1: Record local time before request + final requestSent = DateTime.now().toUtc(); + + // Make request to Jellyfin TimeSync API + final response = await http.get( + Uri.parse('$serverUrl/GetUtcTime'), + headers: {'Authorization': 'MediaBrowser Token="$accessToken"'}, + ); + + // T4: Record local time after response + final responseReceived = DateTime.now().toUtc(); + + final data = jsonDecode(response.body); + + // T2 and T3 from server + final requestReceived = DateTime.parse(data['RequestReceptionTime']); + final responseSent = DateTime.parse(data['ResponseTransmissionTime']); + + return TimeSyncMeasurement( + requestSent: requestSent, + requestReceived: requestReceived, + responseSent: responseSent, + responseReceived: responseReceived, + ); +} +``` + +### Implementation Details + +```typescript +class Measurement { + requestSent: number; // T1 - when client sent request + requestReceived: number; // T2 - when server received request + responseSent: number; // T3 - when server sent response + responseReceived: number; // T4 - when client received response + + getOffset(): number { + return ((this.requestReceived - this.requestSent) + + (this.responseSent - this.responseReceived)) / 2; + } + + getDelay(): number { + return (this.responseReceived - this.requestSent) - + (this.responseSent - this.requestReceived); + } + + getPing(): number { + return this.getDelay() / 2; + } +} +``` + +### Measurement Strategy + +| Phase | Interval | Purpose | +|-------|----------|---------| +| **Greedy** (first 3 pings) | 1 second | Quick initial synchronization | +| **Low Profile** (subsequent) | 60 seconds | Maintain sync without network overhead | + +**Best Measurement Selection:** +- Keep last 8 measurements +- Use measurement with **minimum delay** (least network jitter) + +### Time Conversion Functions + +```typescript +// Convert server time to local time +function remoteDateToLocal(serverTime: Date): Date { + return new Date(serverTime.getTime() - offset); +} + +// Convert local time to server time +function localDateToRemote(localTime: Date): Date { + return new Date(localTime.getTime() + offset); +} +``` + +### Staleness Detection + +Time sync becomes unreliable over time. Mark as stale after 30 seconds and force a refresh before critical operations. + +```typescript +function isStale(): boolean { + return (Date.now() - lastMeasurement.timestamp) > 30000; +} +``` + +--- + +## Group Management + +### Group Lifecycle + +```mermaid +stateDiagram-v2 + [*] --> NoGroup: Initial State + NoGroup --> Creating: createGroup() + NoGroup --> Joining: joinGroup(id) + Creating --> InGroup: GroupJoined message + Joining --> InGroup: GroupJoined message + InGroup --> NoGroup: leaveGroup() + InGroup --> NoGroup: GroupDoesNotExist message +``` + +### Create Group + +**Request:** +```http +POST /SyncPlay/New +Content-Type: application/json + +{ + "GroupName": "Movie Night" +} +``` + +**Response:** Group is created and you automatically join. Wait for `GroupJoined` WebSocket message. + +### Join Group + +**Request:** +```http +POST /SyncPlay/Join +Content-Type: application/json + +{ + "GroupId": "abc-123-def" +} +``` + +### Leave Group + +**Request:** +```http +POST /SyncPlay/Leave +``` + +### Group State Structure + +```typescript +interface SyncPlayGroup { + GroupId: string; + GroupName: string; + State: 'Idle' | 'Waiting' | 'Paused' | 'Playing'; + StateReason?: string; + Participants: string[]; + PlayingItemId?: string; + PositionTicks: number; + IsPaused: boolean; // derived: State === 'Paused' || State === 'Waiting' +} +``` + +--- + +## Playback Control + +### Position Units + +Jellyfin uses **ticks** for time positions: +- **1 tick = 100 nanoseconds** +- **10,000,000 ticks = 1 second** + +```typescript +const TICKS_PER_SECOND = 10_000_000; + +function secondsToTicks(seconds: number): number { + return Math.floor(seconds * TICKS_PER_SECOND); +} + +function ticksToSeconds(ticks: number): number { + return ticks / TICKS_PER_SECOND; +} +``` + +### Pause Request + +```http +POST /SyncPlay/Pause +``` + +No body required. Server broadcasts `Pause` command to all clients. + +### Unpause Request + +```http +POST /SyncPlay/Unpause +``` + +No body required. Server transitions group to `Waiting` state, waits for all clients to report ready, then broadcasts `Unpause` command. + +### Seek Request + +```http +POST /SyncPlay/Seek +Content-Type: application/json + +{ + "PositionTicks": 300000000 // 30 seconds +} +``` + +### Ready State + +Report when video is ready to play (buffering complete): + +```http +POST /SyncPlay/Ready +Content-Type: application/json + +{ + "When": "2024-01-15T12:00:00.000Z", + "PositionTicks": 300000000, + "IsPlaying": true, + "PlaylistItemId": "playlist-item-uuid" +} +``` + +### Buffering State + +Report when video starts buffering: + +```http +POST /SyncPlay/Buffering +Content-Type: application/json + +{ + "When": "2024-01-15T12:00:00.000Z", + "PositionTicks": 300000000, + "IsPlaying": false, + "PlaylistItemId": "playlist-item-uuid" +} +``` + +### Ping Reporting + +Report your measured ping to the server (helps with latency compensation): + +```http +POST /SyncPlay/Ping +Content-Type: application/json + +{ + "Ping": 45 // milliseconds, integer +} +``` + +--- + +## State Machine + +### Group States + +```mermaid +stateDiagram-v2 + [*] --> Idle: Group Created + + Idle --> Waiting: SetNewQueue / Play Request + + Waiting --> Playing: All Clients Ready + Waiting --> Paused: Pause Request + + Playing --> Waiting: Client Buffering + Playing --> Waiting: Seek Request + Playing --> Paused: Pause Request + + Paused --> Waiting: Unpause Request + Paused --> Waiting: Seek Request + + note right of Waiting + Group waits here until ALL clients + report Ready state + end note +``` + +### State Definitions + +| State | Description | +|-------|-------------| +| **Idle** | No media playing, group is empty or inactive | +| **Waiting** | Waiting for all clients to buffer and report ready | +| **Playing** | All clients are playing in sync | +| **Paused** | Playback paused for all clients | + +### State Reasons + +The `StateReason` field indicates why the group entered its current state: + +| Reason | Meaning | +|--------|---------| +| `NewPlaylist` | A new queue was set | +| `SetCurrentItem` | Current item changed | +| `Unpause` | User requested unpause | +| `Pause` | User requested pause | +| `Seek` | User requested seek | +| `Buffer` | A client started buffering | +| `Ready` | All clients reported ready | + +--- + +## Command Scheduling + +Commands include a `When` timestamp indicating when they should execute. This is critical for synchronization. + +### Command Flow + +```mermaid +sequenceDiagram + participant C1 as Client 1 + participant S as Server + participant C2 as Client 2 + + C1->>S: Unpause Request + Note over S: Calculate When = Now + buffer + S->>C1: SyncPlayCommand (Unpause, When=T) + S->>C2: SyncPlayCommand (Unpause, When=T) + + Note over C1: Wait until local time = T + Note over C2: Wait until local time = T + + C1->>C1: Execute Play at T + C2->>C2: Execute Play at T +``` + +### Scheduling Algorithm + +```typescript +async function scheduleCommand(command: SyncPlayCommand): Promise { + const serverTime = new Date(command.When); + const localTime = new Date(); + + // Convert server time to local time using time sync + const commandTime = timeSync.remoteDateToLocal(serverTime); + + // Calculate delay + let delay = commandTime.getTime() - localTime.getTime(); + + if (delay < 0) { + // Command is in the past - execute immediately + executeCommand(command); + return; + } + + if (delay > 5000) { + // Suspiciously large delay - might indicate time sync issue + console.warn(`Large delay detected: ${delay}ms`); + // Optionally force time sync update + } + + // Schedule for future execution + setTimeout(() => { + executeCommand(command); + }, delay); +} +``` + +### Command Execution Order + +Different commands require different execution sequences: + +#### Pause Command +1. Pause the player +2. Wait for pause to complete +3. Seek to position if provided (and significantly different from current) + +#### Unpause Command +1. Seek to position if significantly different from current +2. Wait for seek to complete (video can play) +3. Start playback + +#### Seek Command +1. Start playback (unpause) +2. Seek to target position +3. Wait for seek to complete +4. Pause the player +5. Send Ready state to server + +```typescript +async function executeCommand( + type: 'pause' | 'unpause' | 'seek' | 'stop', + positionTicks?: number +): Promise { + const timeInSeconds = positionTicks ? ticksToSeconds(positionTicks) : 0; + + switch (type) { + case 'pause': + player.pause(); + await waitForPause(); + if (positionTicks && Math.abs(timeInSeconds - player.currentTime) > 0.5) { + player.seek(timeInSeconds); + } + break; + + case 'unpause': + if (positionTicks && Math.abs(timeInSeconds - player.currentTime) > 0.5) { + player.seek(timeInSeconds); + await player.waitForCanPlay(); + } + player.play(); + break; + + case 'seek': + player.play(); + player.seek(timeInSeconds); + await player.waitForCanPlay(); + player.pause(); + sendReady(true, player.positionTicks); + break; + + case 'stop': + player.pause(); + player.seek(0); + break; + } +} +``` + +### Handling Late Commands (estimateCurrentTicks) + +When a command's `When` timestamp is in the past (command arrived late), you must estimate where playback *should* be now: + +```typescript +/** + * Estimates current position given a past state. + * @param ticks - Position at the time of the command + * @param when - Server time when position was valid + * @param currentTime - Current local time (optional) + */ +function estimateCurrentTicks( + ticks: number, + when: Date, + currentTime: Date = new Date() +): number { + const remoteTime = timeSync.localDateToRemote(currentTime); + const elapsedMs = remoteTime.getTime() - when.getTime(); + return ticks + (elapsedMs * TICKS_PER_MILLISECOND); +} +``` + +**Usage in scheduleUnpause:** + +```typescript +async function scheduleUnpause(playAtTime: Date, positionTicks: number): Promise { + const currentTime = new Date(); + const playAtTimeLocal = timeSync.remoteDateToLocal(playAtTime); + + if (playAtTimeLocal > currentTime) { + // Future command - schedule it + const delay = playAtTimeLocal.getTime() - currentTime.getTime(); + setTimeout(() => { + player.play(); + }, delay); + } else { + // Late command - estimate where playback should be NOW + const serverPositionTicks = estimateCurrentTicks(positionTicks, playAtTime); + player.seek(ticksToSeconds(serverPositionTicks)); + player.play(); + } +} +``` + +### Playback Sync Correction (SpeedToSync / SkipToSync) + +During playback, clients may drift out of sync. The official Jellyfin client implements two correction strategies: + +#### Strategy 1: SpeedToSync + +Adjusts playback rate temporarily to catch up without visible jumps: + +```typescript +// Constants +const MIN_DELAY_SPEED_TO_SYNC = 60; // ms - minimum delay to trigger +const MAX_DELAY_SPEED_TO_SYNC = 3000; // ms - maximum delay (use SkipToSync above this) +const SPEED_TO_SYNC_DURATION = 1000; // ms - how long to speed up + +function syncPlaybackTime(currentPosition: number, currentTime: Date): void { + if (!lastCommand || lastCommand.Command !== 'Unpause') return; + + const currentPositionTicks = currentPosition * TICKS_PER_MILLISECOND; + const serverPositionTicks = estimateCurrentTicks( + lastCommand.PositionTicks, + lastCommand.When, + currentTime + ); + + const diffMs = (serverPositionTicks - currentPositionTicks) / TICKS_PER_MILLISECOND; + const absDiffMs = Math.abs(diffMs); + + if (absDiffMs >= MIN_DELAY_SPEED_TO_SYNC && absDiffMs < MAX_DELAY_SPEED_TO_SYNC) { + // Calculate speed to catch up within SPEED_TO_SYNC_DURATION + const speed = 1 + (diffMs / SPEED_TO_SYNC_DURATION); + + player.setPlaybackRate(speed); + + setTimeout(() => { + player.setPlaybackRate(1.0); + }, SPEED_TO_SYNC_DURATION); + } +} +``` + +#### Strategy 2: SkipToSync + +For larger delays, seek directly to the correct position: + +```typescript +const MIN_DELAY_SKIP_TO_SYNC = 400; // ms + +if (absDiffMs >= MIN_DELAY_SKIP_TO_SYNC) { + player.seek(ticksToSeconds(serverPositionTicks)); +} +``` + +#### Sync Correction Flow + +``` +┌─────────────────────────────────────────────────────────────────────┐ +│ Playback Diff Detection │ +├─────────────────────────────────────────────────────────────────────┤ +│ Calculate: diffMs = serverPosition - clientPosition │ +├─────────────────────────────────────────────────────────────────────┤ +│ │ +│ if (|diffMs| < 60ms) │ +│ → In sync, do nothing │ +│ │ +│ else if (60ms <= |diffMs| < 3000ms) │ +│ → SpeedToSync: adjust playback rate │ +│ → speed = 1 + (diffMs / 1000) │ +│ → Reset rate after 1 second │ +│ │ +│ else if (|diffMs| >= 400ms && SpeedToSync not applicable) │ +│ → SkipToSync: seek to correct position │ +│ │ +└─────────────────────────────────────────────────────────────────────┘ +``` + +#### When to Run Sync Correction + +- Only when `syncEnabled` is true (after initial unpause settles) +- Only during active playback (`Command === 'Unpause'`) +- Throttle to avoid overloading (e.g., check every 500ms-1s) +- Disable during buffering + +### Duplicate Command Detection + +The server may send the same command multiple times (network retries, state synchronization). Track recent commands to avoid re-execution: + +```typescript +interface LastCommand { + when: string; + positionTicks: number; + command: string; + playlistItemId: string; +} + +function isDuplicate(command: SyncPlayCommand, lastCommand: LastCommand): boolean { + return ( + lastCommand.when === command.When && + lastCommand.positionTicks === command.PositionTicks && + lastCommand.command === command.Command && + lastCommand.playlistItemId === command.PlaylistItemId + ); +} +``` + +--- + +## Player Interface + +Define a clean abstraction between SyncPlay and your video player. This enables SyncPlay to control any player implementation. + +### Interface Definition + +```typescript +interface SyncPlayPlayerInterface { + // State Queries + getCurrentTime(): number; // Current position in seconds + getPositionTicks(): number; // Current position in ticks + isPaused(): boolean; // Is player paused + isReady(): boolean; // Can video play (not buffering) + isPlaying(): boolean; // Is actively playing (not paused, not buffering) + + // Controls + play(): void; + pause(): void; + seek(timeInSeconds: number): void; + seekToTicks(positionTicks: number): void; + + // Playback Rate (for SpeedToSync) + hasPlaybackRate(): boolean; // Does player support playback rate? + getPlaybackRate(): number; // Current playback rate (1.0 = normal) + setPlaybackRate(rate: number): void; // Set playback rate + + // Event Handling + on(event: PlayerEvent, handler: Function): void; + off(event: PlayerEvent, handler: Function): void; + once(event: PlayerEvent): Promise; +} + +type PlayerEvent = + | 'userPlay' // User initiated play (not SyncPlay) + | 'userPause' // User initiated pause + | 'userSeek' // User initiated seek + | 'videoCanPlay' // Buffering complete, ready to play + | 'videoBuffering'// Started buffering + | 'videoSeeked' // Seek operation complete + | 'timeUpdate'; // Periodic position update (for sync correction) +``` + +**Dart/Flutter equivalent:** + +```dart +abstract class SyncPlayPlayerInterface { + // State Queries + double getCurrentTime(); // seconds + int getPositionTicks(); // ticks + bool isPaused(); + bool isReady(); + bool isPlaying(); + + // Controls + void play(); + void pause(); + void seek(double timeInSeconds); + void seekToTicks(int positionTicks); + + // Playback Rate (for SpeedToSync) + bool hasPlaybackRate(); + double getPlaybackRate(); + void setPlaybackRate(double rate); + + // Event Streams + Stream get onUserPlay; + Stream get onUserPause; + Stream get onUserSeek; + Stream get onVideoCanPlay; + Stream get onVideoBuffering; + Stream get onTimeUpdate; +} +``` + +### Event Flow: User Actions + +When a user interacts with the player directly (not through SyncPlay commands), the player should emit events: + +```mermaid +sequenceDiagram + participant User + participant Player + participant SyncPlay + participant Server + + User->>Player: Clicks Pause + Player->>SyncPlay: 'userPause' event + SyncPlay->>Server: POST /SyncPlay/Pause + Server->>SyncPlay: SyncPlayCommand (Pause) + SyncPlay->>Player: pause() +``` + +### Distinguishing User vs SyncPlay Actions + +You must differentiate between: +- **User actions**: Should trigger REST API requests to server +- **SyncPlay commands**: Should control player without triggering API requests + +Common approaches: +1. Set a flag before executing SyncPlay commands, check it in event handlers +2. Use separate code paths for user controls vs SyncPlay controls +3. Temporarily unsubscribe from events during SyncPlay operations + +--- + +## Message Types Reference + +### SyncPlayCommand + +```typescript +interface SyncPlayCommandMessage { + MessageId: string; + MessageType: 'SyncPlayCommand'; + Data: { + GroupId: string; + PlaylistItemId: string; + When: string; // ISO 8601 timestamp for execution + PositionTicks: number; + Command: 'Unpause' | 'Pause' | 'Seek' | 'Stop'; + EmittedAt: string; // When server sent this command + }; +} +``` + +### SyncPlayGroupUpdate + +```typescript +interface SyncPlayGroupUpdateMessage { + MessageId: string; + MessageType: 'SyncPlayGroupUpdate'; + Data: { + GroupId: string; + Type: 'GroupJoined' | 'UserJoined' | 'UserLeft' | + 'PlayQueue' | 'StateUpdate' | 'GroupDoesNotExist'; + Data: GroupJoinedData | string | PlayQueueData | StateUpdateData; + }; +} +``` + +### GroupJoined Data + +```typescript +interface GroupJoinedData { + GroupId: string; + GroupName: string; + State: string; + Participants: string[]; + LastUpdatedAt: string; + PlayingItemId?: string; + PositionTicks?: number; +} +``` + +### PlayQueue Data + +```typescript +interface PlayQueueData { + Reason: 'NewPlaylist' | 'SetCurrentItem' | 'Queue' | 'RemoveFromPlaylist'; + LastUpdate: string; + Playlist: Array<{ + ItemId: string; + PlaylistItemId: string; + }>; + PlayingItemIndex: number; + StartPositionTicks: number; + IsPlaying: boolean; + ShuffleMode: string; + RepeatMode: string; +} +``` + +### StateUpdate Data + +```typescript +interface StateUpdateData { + State: 'Idle' | 'Waiting' | 'Paused' | 'Playing'; + Reason: string; + PositionTicks: number; +} +``` + +### ForceKeepAlive + +```typescript +interface ForceKeepAliveMessage { + MessageType: 'ForceKeepAlive'; + Data: number; // Timeout in seconds +} +``` + +Handle by sending `KeepAlive` messages at half the timeout interval: + +```typescript +function handleForceKeepAlive(timeout: number): void { + const intervalMs = timeout * 1000 * 0.5; + + setInterval(() => { + websocket.send(JSON.stringify({ MessageType: 'KeepAlive' })); + }, intervalMs); +} +``` + +--- + +## Edge Cases & Error Handling + +### Message Deduplication + +WebSocket messages may be received multiple times. Track recent message IDs: + +```typescript +const recentMessageIds: string[] = []; +const MAX_TRACKED_IDS = 10; + +function handleMessage(message: any): void { + const messageId = message.MessageId; + + if (messageId && recentMessageIds.includes(messageId)) { + // Duplicate - ignore + return; + } + + if (messageId) { + recentMessageIds.push(messageId); + if (recentMessageIds.length > MAX_TRACKED_IDS) { + recentMessageIds.shift(); + } + } + + // Process message... +} +``` + +### Network Disconnection + +When WebSocket disconnects: +1. Update connection status to `disconnected` +2. Clear keep-alive interval +3. Attempt reconnection with exponential backoff +4. On reconnect, the server will send current group state + +### Group No Longer Exists + +Handle `GroupDoesNotExist` message: + +```typescript +function handleGroupDoesNotExist(): void { + currentGroup = null; + isEnabled = false; + disconnect(); + showNotification('Group no longer exists'); +} +``` + +### Stale Time Sync + +Before executing critical commands, check if time sync is stale: + +```typescript +async function executeTimeSensitiveCommand(command: Command): Promise { + if (timeSync.isStale()) { + await timeSync.forceUpdateAndWait(); + } + + // Now safe to schedule command + await scheduleCommand(command); +} +``` + +### Player Not Ready + +When receiving commands before player is initialized: + +```typescript +async function handleCommand(command: SyncPlayCommand): Promise { + if (!player) { + console.warn('Command received but player not registered'); + return; + } + + // If command requires ready state, wait for it + if (!player.isReady()) { + await player.once('videoCanPlay'); + } + + await executeCommand(command); +} +``` + +### State Transition: Waiting → Playing + +When group transitions from `Waiting` to `Playing`, ensure your client is actually playing: + +```typescript +function handleStateUpdate(previousState: string, newState: string): void { + if (newState === 'Playing' && previousState === 'Waiting') { + // Double-check player is playing + if (player.isPaused()) { + player.play(); + } + } +} +``` + +### Handling Waiting State with Different Reasons + +```typescript +async function handleWaitingState(reason: string, positionTicks: number): Promise { + switch (reason) { + case 'Ready': + // All clients ready - unpause will follow + await requestUnpause(); + break; + + case 'Buffer': + // Another client is buffering + // Wait for our player to be ready, then report + if (!player.isReady()) { + await player.once('videoCanPlay'); + } + await sendReady(true, positionTicks); + break; + + case 'Unpause': + // Unpause requested, waiting for all clients + await sendReady(true, positionTicks); + break; + + case 'Seek': + // Seek was processed, now waiting + // Ready state should be sent after seek command completes + break; + } +} +``` + +### Large Delay Detection + +If calculated command delay is suspiciously large (>5 seconds), time sync may be off: + +```typescript +async function scheduleWithValidation(command: SyncPlayCommand): Promise { + const delay = calculateDelay(command); + + if (delay > 5000) { + // Force time sync update + await timeSync.forceUpdateAndWait(); + + // Recalculate delay + const newDelay = calculateDelay(command); + + if (newDelay > 5000) { + // Still too large - log warning but proceed + console.warn(`Executing command with large delay: ${newDelay}ms`); + } + } + + // Continue with scheduling... +} +``` + +--- + +## Implementation Checklist + +Use this checklist when implementing SyncPlay in a new client: + +### Core Infrastructure + +- [ ] WebSocket connection manager with auto-reconnect +- [ ] Keep-alive message handling +- [ ] REST API client for all SyncPlay endpoints +- [ ] Message routing by type + +### Time Synchronization + +- [ ] Implement `GET /GetUtcTime` API call +- [ ] Record T1 (local) before request, T4 (local) after response +- [ ] Parse T2 (`RequestReceptionTime`) and T3 (`ResponseTransmissionTime`) from server +- [ ] Offset calculation using NTP-like algorithm +- [ ] Storage of last N measurements (recommend 8) +- [ ] Best measurement selection (minimum delay) +- [ ] Greedy → low-profile polling transition +- [ ] Staleness detection (>30s) +- [ ] Force update capability +- [ ] Local ↔ remote time conversion + +### Group Management + +- [ ] Create group +- [ ] List available groups +- [ ] Join group +- [ ] Leave group +- [ ] Handle GroupJoined message +- [ ] Handle UserJoined/UserLeft messages +- [ ] Handle GroupDoesNotExist message +- [ ] Track current group state + +### Playback Control + +- [ ] Send pause request +- [ ] Send unpause request +- [ ] Send seek request +- [ ] Send stop request +- [ ] Send buffering state +- [ ] Send ready state +- [ ] Send ping measurements +- [ ] Set new queue +- [ ] Queue additional items + +### Command Processing + +- [ ] Parse SyncPlayCommand messages +- [ ] Convert server time to local time +- [ ] Calculate execution delay +- [ ] Schedule commands for future execution +- [ ] Execute immediately if delay < 0 with `estimateCurrentTicks()` +- [ ] Handle large delay warnings +- [ ] Duplicate command detection +- [ ] Command-specific execution sequences (pause, unpause, seek, stop) + +### Sync Correction (Optional but Recommended) + +- [ ] Implement `estimateCurrentTicks()` for late command handling +- [ ] Track playback diff during playback +- [ ] Implement SpeedToSync (playback rate adjustment) +- [ ] Implement SkipToSync (seek to correct position) +- [ ] Throttle sync checks (every 500ms-1s) +- [ ] Disable sync during buffering + +### Player Integration + +- [ ] Define player interface abstraction +- [ ] Register player with SyncPlay controller +- [ ] Subscribe to player events +- [ ] Distinguish user actions from SyncPlay commands +- [ ] Handle videoCanPlay event → send ready +- [ ] Handle videoBuffering event → send buffering +- [ ] Implement once() for async event waiting +- [ ] Support playback rate control (for SpeedToSync) +- [ ] Implement timeUpdate event (for sync correction) + +### State Management + +- [ ] Track group state (Idle, Waiting, Paused, Playing) +- [ ] Track state reason +- [ ] Track current playlist +- [ ] Track current playing item ID +- [ ] Track position in ticks +- [ ] Handle StateUpdate messages +- [ ] Handle PlayQueue messages + +### Error Handling + +- [ ] Message deduplication +- [ ] WebSocket disconnection recovery +- [ ] Stale time sync detection +- [ ] Player not ready handling +- [ ] API error handling with user feedback + +--- + +## Appendix: Sequence Diagrams + +### Full Unpause Flow + +```mermaid +sequenceDiagram + participant C1 as Client 1 (Initiator) + participant S as Server + participant C2 as Client 2 + + Note over C1,C2: Group State: Paused + + C1->>S: POST /SyncPlay/Unpause + S->>S: State → Waiting (Unpause) + S->>C1: SyncPlayGroupUpdate (StateUpdate: Waiting) + S->>C2: SyncPlayGroupUpdate (StateUpdate: Waiting) + + C1->>S: POST /SyncPlay/Ready (IsPlaying: true) + C2->>S: POST /SyncPlay/Ready (IsPlaying: true) + + S->>S: All clients ready + S->>S: Calculate When = Now + latency buffer + + S->>C1: SyncPlayCommand (Unpause, When=T, Position=P) + S->>C2: SyncPlayCommand (Unpause, When=T, Position=P) + + Note over C1: Wait until local time = T + Note over C2: Wait until local time = T + + C1->>C1: Seek to P if needed, then Play + C2->>C2: Seek to P if needed, then Play + + S->>S: State → Playing + S->>C1: SyncPlayGroupUpdate (StateUpdate: Playing) + S->>C2: SyncPlayGroupUpdate (StateUpdate: Playing) +``` + +### Client Buffering During Playback + +```mermaid +sequenceDiagram + participant C1 as Client 1 (Buffering) + participant S as Server + participant C2 as Client 2 + + Note over C1,C2: Group State: Playing + + C1->>C1: Network slow, starts buffering + C1->>S: POST /SyncPlay/Buffering (IsPlaying: false) + + S->>S: State → Waiting (Buffer) + S->>C1: SyncPlayGroupUpdate (StateUpdate: Waiting, Buffer) + S->>C2: SyncPlayGroupUpdate (StateUpdate: Waiting, Buffer) + + C2->>C2: Pause playback locally + C2->>S: POST /SyncPlay/Ready (IsPlaying: true) + + Note over C1: Buffering completes + C1->>S: POST /SyncPlay/Ready (IsPlaying: true) + + S->>S: All clients ready, resume + S->>C1: SyncPlayCommand (Unpause, When=T) + S->>C2: SyncPlayCommand (Unpause, When=T) + + S->>S: State → Playing +``` + +### Seek Operation + +```mermaid +sequenceDiagram + participant C1 as Client 1 (Seeker) + participant S as Server + participant C2 as Client 2 + + Note over C1,C2: Group State: Playing + + C1->>S: POST /SyncPlay/Seek (Position: 5min) + + S->>C1: SyncPlayCommand (Seek, When=T, Position=5min) + S->>C2: SyncPlayCommand (Seek, When=T, Position=5min) + + C1->>C1: Unpause → Seek → Wait → Pause + C2->>C2: Unpause → Seek → Wait → Pause + + C1->>S: POST /SyncPlay/Ready + C2->>S: POST /SyncPlay/Ready + + S->>S: All ready after seek + S->>C1: SyncPlayCommand (Unpause) + S->>C2: SyncPlayCommand (Unpause) +``` + +--- + +## Appendix: Validation Against Official Jellyfin Web Client + +This documentation was validated against the [official Jellyfin web client](https://github.com/jellyfin/jellyfin-web/tree/master/src/plugins/syncPlay) (as of January 2025). + +### ✅ Correctly Documented + +| Component | Source File | Status | +|-----------|-------------|--------| +| Time Sync Algorithm | `TimeSync.js` | ✅ Same constants and algorithm | +| Server Time API | `TimeSyncServer.js` | ✅ Uses `getServerTime()` → same endpoint | +| Offset Calculation | `TimeSync.js` | ✅ `((T2-T1) + (T3-T4)) / 2` | +| Measurement Selection | `TimeSync.js` | ✅ Picks minimum delay | +| Polling Strategy | `TimeSync.js` | ✅ 1s greedy (3x), then 60s | +| Command Scheduling | `PlaybackCore.js` | ✅ setTimeout with time conversion | +| Pause Sequence | `PlaybackCore.js` | ✅ Pause → wait → seek | +| Unpause Sequence | `PlaybackCore.js` | ✅ Seek → wait → play (or estimate if late) | +| Seek Sequence | `PlaybackCore.js` | ✅ Play → seek → wait ready → pause → send ready | +| Duplicate Detection | `PlaybackCore.js` | ✅ Same 4-field comparison | +| Buffering/Ready | `PlaybackCore.js` | ✅ Same payload structure | +| Queue Management | `QueueCore.js` | ✅ Same reason handling | +| Player Interface | `GenericPlayer.js` | ✅ Same abstraction pattern | +| WebSocket Keep-Alive | External | ✅ Half-timeout interval | + +### ⚠️ Advanced Features (Optional) + +These features are in the official client but may be omitted for simpler implementations: + +| Feature | Source File | Notes | +|---------|-------------|-------| +| SpeedToSync | `PlaybackCore.js` | Adjusts playback rate to catch up | +| SkipToSync | `PlaybackCore.js` | Seeks to correct position for large drifts | +| estimateCurrentTicks | `PlaybackCore.js` | Estimates position for late commands | +| extraTimeOffset | `TimeSyncCore.js` | Manual time offset adjustment setting | +| Repeat/Shuffle Mode | `QueueCore.js` | Queue mode synchronization | +| Player Factory | `PlayerFactory.js` | Multiple player type support | + +### Key Differences from Official Client + +1. **Sync Correction**: Official client continuously monitors playback position and corrects drift using SpeedToSync (60-3000ms drift) or SkipToSync (>400ms drift). + +2. **Late Command Handling**: Official client uses `estimateCurrentTicks()` to calculate where playback *should* be when a command arrives after its scheduled time. + +3. **Event Waiting**: Official uses `waitForEventOnce()` with timeout and reject events for robust async handling. + +4. **Settings**: Official has configurable thresholds (`minDelaySpeedToSync`, `maxDelaySpeedToSync`, `speedToSyncDuration`, etc.). + +--- + +## References + +- [Jellyfin SyncPlay API Documentation](https://api.jellyfin.org/#tag/SyncPlay) +- [Jellyfin Web Client SyncPlay Implementation](https://github.com/jellyfin/jellyfin-web/tree/master/src/plugins/syncPlay) +- [Jellyfin Web Client Source - PlaybackCore.js](https://raw.githubusercontent.com/jellyfin/jellyfin-web/master/src/plugins/syncPlay/core/PlaybackCore.js) +- [Jellyfin Web Client Source - TimeSync.js](https://raw.githubusercontent.com/jellyfin/jellyfin-web/master/src/plugins/syncPlay/core/timeSync/TimeSync.js) +- [NTP Clock Synchronization Algorithm](https://en.wikipedia.org/wiki/Network_Time_Protocol#Clock_synchronization_algorithm) diff --git a/lib/l10n/app_en.arb b/lib/l10n/app_en.arb index 60cb272f3..5d3788478 100644 --- a/lib/l10n/app_en.arb +++ b/lib/l10n/app_en.arb @@ -972,6 +972,10 @@ "@switchUser": {}, "sync": "Sync", "@sync": {}, + "syncPlay": "SyncPlay", + "@syncPlay": { + "description": "SyncPlay - synchronized playback feature" + }, "syncDeleteItemDesc": "Delete all synced data for {item}?", "@syncDeleteItemDesc": { "description": "Sync delete item pop-up window", @@ -1379,6 +1383,8 @@ "hasLikedDirector": "Has liked director", "hasLikedActor": "Has liked actor", "latest": "Latest", + "leave": "Leave", + "@leave": {}, "recommended": "Recommended", "playbackType": "Playback type", "playbackTypeDirect": "Direct", diff --git a/lib/main.dart b/lib/main.dart index 38f698ab9..248ab05fa 100644 --- a/lib/main.dart +++ b/lib/main.dart @@ -25,6 +25,7 @@ import 'package:fladder/models/settings/arguments_model.dart'; import 'package:fladder/providers/arguments_provider.dart'; import 'package:fladder/providers/crash_log_provider.dart'; import 'package:fladder/providers/settings/client_settings_provider.dart'; +import 'package:fladder/providers/router_provider.dart'; import 'package:fladder/providers/shared_provider.dart'; import 'package:fladder/providers/sync_provider.dart'; import 'package:fladder/providers/user_provider.dart'; @@ -201,6 +202,11 @@ class _MainState extends ConsumerState
with WindowListener, WidgetsBinding super.initState(); WidgetsBinding.instance.addObserver(this); windowManager.addListener(this); + // Make router available globally for SyncPlay and other providers + // Deferred to avoid modifying provider during build phase + Future.microtask(() { + ref.read(routerProvider.notifier).state = autoRouter; + }); _init(); } diff --git a/lib/providers/items/movies_details_provider.g.dart b/lib/providers/items/movies_details_provider.g.dart index 22edac080..b7982abdf 100644 --- a/lib/providers/items/movies_details_provider.g.dart +++ b/lib/providers/items/movies_details_provider.g.dart @@ -6,7 +6,7 @@ part of 'movies_details_provider.dart'; // RiverpodGenerator // ************************************************************************** -String _$movieDetailsHash() => r'cf94d13fb0ead052fbec0c41b2bd44075f4473a9'; +String _$movieDetailsHash() => r'8ee6f9709112e86914800b29c7f269f12afecc92'; /// Copied from Dart SDK class _SystemHash { diff --git a/lib/providers/router_provider.dart b/lib/providers/router_provider.dart new file mode 100644 index 000000000..bcec1b9ed --- /dev/null +++ b/lib/providers/router_provider.dart @@ -0,0 +1,14 @@ +import 'package:flutter/material.dart'; + +import 'package:flutter_riverpod/flutter_riverpod.dart'; + +import 'package:fladder/routes/auto_router.dart'; + +/// Provider for the global AutoRouter instance +/// Set from main.dart after initialization +final routerProvider = StateProvider((ref) => null); + +/// Get the navigator key from the router for pushing routes without context +GlobalKey? getNavigatorKey(Ref ref) { + return ref.read(routerProvider)?.navigatorKey; +} diff --git a/lib/providers/syncplay/syncplay_controller.dart b/lib/providers/syncplay/syncplay_controller.dart new file mode 100644 index 000000000..ecfd7b274 --- /dev/null +++ b/lib/providers/syncplay/syncplay_controller.dart @@ -0,0 +1,623 @@ +import 'dart:async'; +import 'dart:developer'; + +import 'package:flutter/material.dart'; + +import 'package:flutter_riverpod/flutter_riverpod.dart'; + +import 'package:fladder/jellyfin/jellyfin_open_api.swagger.dart'; +import 'package:fladder/models/media_playback_model.dart'; +import 'package:fladder/models/playback/playback_model.dart'; +import 'package:fladder/providers/api_provider.dart'; +import 'package:fladder/providers/router_provider.dart'; +import 'package:fladder/providers/syncplay/syncplay_models.dart'; +import 'package:fladder/providers/syncplay/time_sync_service.dart'; +import 'package:fladder/providers/syncplay/websocket_manager.dart'; +import 'package:fladder/providers/user_provider.dart'; +import 'package:fladder/providers/video_player_provider.dart'; +import 'package:fladder/screens/video_player/video_player.dart'; + +/// Callback for player control commands from SyncPlay +typedef SyncPlayPlayerCallback = Future Function(); +typedef SyncPlaySeekCallback = Future Function(int positionTicks); +typedef SyncPlayPositionCallback = int Function(); + +/// Controller for SyncPlay synchronized playback +class SyncPlayController { + SyncPlayController(this._ref); + + final Ref _ref; + + WebSocketManager? _wsManager; + TimeSyncService? _timeSync; + StreamSubscription? _wsMessageSubscription; + StreamSubscription? _wsStateSubscription; + + SyncPlayState _state = SyncPlayState(); + final _stateController = StreamController.broadcast(); + Stream get stateStream => _stateController.stream; + SyncPlayState get state => _state; + + // Last command for duplicate detection + LastSyncPlayCommand? _lastCommand; + + // Pending command timer + Timer? _commandTimer; + + // Player callbacks + SyncPlayPlayerCallback? onPlay; + SyncPlayPlayerCallback? onPause; + SyncPlaySeekCallback? onSeek; + SyncPlayPlayerCallback? onStop; + SyncPlayPositionCallback? getPositionTicks; + bool Function()? isPlaying; + bool Function()? isBuffering; + + JellyfinOpenApi get _api => _ref.read(jellyApiProvider).api; + + /// Initialize and connect to SyncPlay + Future connect() async { + final user = _ref.read(userProvider); + if (user == null) { + log('SyncPlay: Cannot connect without user'); + return; + } + + final serverUrl = _ref.read(serverUrlProvider); + if (serverUrl == null || serverUrl.isEmpty) { + log('SyncPlay: Cannot connect without server URL'); + return; + } + + // Initialize time sync + _timeSync = TimeSyncService(_api); + _timeSync!.start(); + + // Initialize WebSocket + _wsManager = WebSocketManager( + serverUrl: serverUrl, + token: user.credentials.token, + deviceId: user.credentials.deviceId, + ); + + _wsStateSubscription = _wsManager!.connectionState.listen(_handleConnectionState); + _wsMessageSubscription = _wsManager!.messages.listen(_handleMessage); + + await _wsManager!.connect(); + } + + /// Disconnect from SyncPlay + Future disconnect() async { + await leaveGroup(); + _commandTimer?.cancel(); + _wsMessageSubscription?.cancel(); + _wsStateSubscription?.cancel(); + _timeSync?.dispose(); + await _wsManager?.dispose(); + _wsManager = null; + _timeSync = null; + _updateState(SyncPlayState()); + } + + /// List available SyncPlay groups + Future> listGroups() async { + try { + final response = await _api.syncPlayListGet(); + return response.body ?? []; + } catch (e) { + log('SyncPlay: Failed to list groups: $e'); + return []; + } + } + + /// Create a new SyncPlay group + Future createGroup(String groupName) async { + try { + final response = await _api.syncPlayNewPost( + body: NewGroupRequestDto(groupName: groupName), + ); + return response.body; + } catch (e) { + log('SyncPlay: Failed to create group: $e'); + return null; + } + } + + /// Join an existing SyncPlay group + Future joinGroup(String groupId) async { + try { + await _api.syncPlayJoinPost( + body: JoinGroupRequestDto(groupId: groupId), + ); + return true; + } catch (e) { + log('SyncPlay: Failed to join group: $e'); + return false; + } + } + + /// Leave the current SyncPlay group + Future leaveGroup() async { + if (!_state.isInGroup) return; + try { + await _api.syncPlayLeavePost(); + _updateState(_state.copyWith( + isInGroup: false, + groupId: null, + groupName: null, + groupState: SyncPlayGroupState.idle, + participants: [], + )); + } catch (e) { + log('SyncPlay: Failed to leave group: $e'); + } + } + + /// Request pause + Future requestPause() async { + if (!_state.isInGroup) return; + try { + await _api.syncPlayPausePost(); + } catch (e) { + log('SyncPlay: Failed to request pause: $e'); + } + } + + /// Request unpause/play + Future requestUnpause() async { + if (!_state.isInGroup) return; + try { + await _api.syncPlayUnpausePost(); + } catch (e) { + log('SyncPlay: Failed to request unpause: $e'); + } + } + + /// Request seek + Future requestSeek(int positionTicks) async { + if (!_state.isInGroup) return; + try { + await _api.syncPlaySeekPost( + body: SeekRequestDto(positionTicks: positionTicks), + ); + } catch (e) { + log('SyncPlay: Failed to request seek: $e'); + } + } + + /// Report buffering state + Future reportBuffering() async { + if (!_state.isInGroup) return; + try { + final when = _timeSync?.localDateToRemote(DateTime.now().toUtc()); + await _api.syncPlayBufferingPost( + body: BufferRequestDto( + when: when, + positionTicks: getPositionTicks?.call() ?? 0, + isPlaying: false, + playlistItemId: _state.playlistItemId, + ), + ); + } catch (e) { + log('SyncPlay: Failed to report buffering: $e'); + } + } + + /// Report ready state + Future reportReady({bool isPlaying = true}) async { + if (!_state.isInGroup) return; + try { + final when = _timeSync?.localDateToRemote(DateTime.now().toUtc()); + await _api.syncPlayReadyPost( + body: ReadyRequestDto( + when: when, + positionTicks: getPositionTicks?.call() ?? 0, + isPlaying: isPlaying, + playlistItemId: _state.playlistItemId, + ), + ); + } catch (e) { + log('SyncPlay: Failed to report ready: $e'); + } + } + + /// Report ping to server + Future reportPing() async { + if (!_state.isInGroup || _timeSync == null) return; + try { + await _api.syncPlayPingPost( + body: PingRequestDto(ping: _timeSync!.ping.inMilliseconds), + ); + } catch (e) { + log('SyncPlay: Failed to report ping: $e'); + } + } + + /// Set a new queue/playlist + Future setNewQueue({ + required List itemIds, + int playingItemPosition = 0, + int startPositionTicks = 0, + }) async { + if (!_state.isInGroup) return; + try { + await _api.syncPlaySetNewQueuePost( + body: PlayRequestDto( + playingQueue: itemIds, + playingItemPosition: playingItemPosition, + startPositionTicks: startPositionTicks, + ), + ); + } catch (e) { + log('SyncPlay: Failed to set new queue: $e'); + } + } + + void _handleConnectionState(WebSocketConnectionState wsState) { + final isConnected = wsState == WebSocketConnectionState.connected; + _updateState(_state.copyWith(isConnected: isConnected)); + } + + void _handleMessage(Map message) { + final messageType = message['MessageType'] as String?; + final data = message['Data']; + + switch (messageType) { + case 'SyncPlayCommand': + _handleSyncPlayCommand(data as Map); + break; + case 'SyncPlayGroupUpdate': + _handleGroupUpdate(data as Map); + break; + } + } + + void _handleSyncPlayCommand(Map data) { + final command = data['Command'] as String?; + final whenStr = data['When'] as String?; + final positionTicks = data['PositionTicks'] as int? ?? 0; + final playlistItemId = data['PlaylistItemId'] as String? ?? ''; + + if (command == null || whenStr == null) return; + + // Check for duplicate command + if (_isDuplicateCommand(whenStr, positionTicks, command, playlistItemId)) { + log('SyncPlay: Ignoring duplicate command: $command'); + return; + } + + _lastCommand = LastSyncPlayCommand( + when: whenStr, + positionTicks: positionTicks, + command: command, + playlistItemId: playlistItemId, + ); + + _updateState(_state.copyWith( + positionTicks: positionTicks, + playlistItemId: playlistItemId, + )); + + final when = DateTime.parse(whenStr); + _scheduleCommand(command, when, positionTicks); + } + + bool _isDuplicateCommand(String when, int positionTicks, String command, String playlistItemId) { + if (_lastCommand == null) return false; + return _lastCommand!.when == when && + _lastCommand!.positionTicks == positionTicks && + _lastCommand!.command == command && + _lastCommand!.playlistItemId == playlistItemId; + } + + void _scheduleCommand(String command, DateTime serverTime, int positionTicks) { + if (_timeSync == null) { + log('SyncPlay: Cannot schedule command without time sync'); + _executeCommand(command, positionTicks); + return; + } + + final localTime = _timeSync!.remoteDateToLocal(serverTime); + final now = DateTime.now().toUtc(); + final delay = localTime.difference(now); + + _commandTimer?.cancel(); + + if (delay.isNegative) { + // Command is in the past - execute immediately + // Estimate where playback should be now + final estimatedTicks = _estimateCurrentTicks(positionTicks, serverTime); + log('SyncPlay: Executing late command: $command (${delay.inMilliseconds}ms late)'); + _executeCommand(command, estimatedTicks); + } else if (delay.inMilliseconds > 5000) { + // Suspiciously large delay - might indicate time sync issue + log('SyncPlay: Warning - large delay: ${delay.inMilliseconds}ms'); + _commandTimer = Timer(delay, () => _executeCommand(command, positionTicks)); + } else { + log('SyncPlay: Scheduling command: $command in ${delay.inMilliseconds}ms'); + _commandTimer = Timer(delay, () => _executeCommand(command, positionTicks)); + } + } + + int _estimateCurrentTicks(int ticks, DateTime when) { + if (_timeSync == null) return ticks; + final remoteNow = _timeSync!.localDateToRemote(DateTime.now().toUtc()); + final elapsedMs = remoteNow.difference(when).inMilliseconds; + return ticks + millisecondsToTicks(elapsedMs); + } + + Future _executeCommand(String command, int positionTicks) async { + log('SyncPlay: Executing command: $command at $positionTicks ticks'); + + switch (command) { + case 'Pause': + await onPause?.call(); + // Seek to position if significantly different + final currentTicks = getPositionTicks?.call() ?? 0; + if ((positionTicks - currentTicks).abs() > ticksPerSecond ~/ 2) { + await onSeek?.call(positionTicks); + } + break; + + case 'Unpause': + // Seek to position if significantly different + final currentTicks = getPositionTicks?.call() ?? 0; + if ((positionTicks - currentTicks).abs() > ticksPerSecond ~/ 2) { + await onSeek?.call(positionTicks); + } + await onPlay?.call(); + break; + + case 'Seek': + await onPlay?.call(); + await onSeek?.call(positionTicks); + await onPause?.call(); + // Report ready after seek + await reportReady(isPlaying: true); + break; + + case 'Stop': + await onPause?.call(); + await onSeek?.call(0); + break; + } + } + + void _handleGroupUpdate(Map data) { + final updateType = data['Type'] as String?; + // final groupId = data['GroupId'] as String?; // Not needed - group info is in updateData + final updateData = data['Data']; + + switch (updateType) { + case 'GroupJoined': + _handleGroupJoined(updateData as Map); + break; + case 'UserJoined': + _handleUserJoined(updateData as String?); + break; + case 'UserLeft': + _handleUserLeft(updateData as String?); + break; + case 'GroupLeft': + _handleGroupLeft(); + break; + case 'GroupDoesNotExist': + _handleGroupDoesNotExist(); + break; + case 'StateUpdate': + _handleStateUpdate(updateData as Map); + break; + case 'PlayQueue': + _handlePlayQueue(updateData as Map); + break; + } + } + + void _handleGroupJoined(Map data) { + final groupId = data['GroupId'] as String?; + final groupName = data['GroupName'] as String?; + final stateStr = data['State'] as String?; + final participants = (data['Participants'] as List?)?.cast() ?? []; + + _updateState(_state.copyWith( + isInGroup: true, + groupId: groupId, + groupName: groupName, + groupState: _parseGroupState(stateStr), + participants: participants, + )); + + log('SyncPlay: Joined group "$groupName" ($groupId)'); + } + + void _handleUserJoined(String? userId) { + if (userId == null) return; + final participants = [..._state.participants, userId]; + _updateState(_state.copyWith(participants: participants)); + log('SyncPlay: User joined: $userId'); + } + + void _handleUserLeft(String? userId) { + if (userId == null) return; + final participants = _state.participants.where((p) => p != userId).toList(); + _updateState(_state.copyWith(participants: participants)); + log('SyncPlay: User left: $userId'); + } + + void _handleGroupLeft() { + _updateState(_state.copyWith( + isInGroup: false, + groupId: null, + groupName: null, + groupState: SyncPlayGroupState.idle, + participants: [], + )); + log('SyncPlay: Left group'); + } + + void _handleGroupDoesNotExist() { + _updateState(_state.copyWith( + isInGroup: false, + groupId: null, + groupName: null, + groupState: SyncPlayGroupState.idle, + participants: [], + )); + log('SyncPlay: Group does not exist'); + } + + void _handleStateUpdate(Map data) { + final stateStr = data['State'] as String?; + final reason = data['Reason'] as String?; + final positionTicks = data['PositionTicks'] as int? ?? 0; + + _updateState(_state.copyWith( + groupState: _parseGroupState(stateStr), + stateReason: reason, + positionTicks: positionTicks, + )); + + log('SyncPlay: State update: $stateStr (reason: $reason)'); + + // Handle waiting state + if (_parseGroupState(stateStr) == SyncPlayGroupState.waiting) { + _handleWaitingState(reason); + } + } + + void _handleWaitingState(String? reason) { + switch (reason) { + case 'Buffer': + case 'Unpause': + // Report ready if we're ready + if (!(isBuffering?.call() ?? false)) { + reportReady(isPlaying: true); + } + break; + } + } + + void _handlePlayQueue(Map data) { + final playlist = data['Playlist'] as List? ?? []; + final playingItemIndex = data['PlayingItemIndex'] as int? ?? 0; + final startPositionTicks = data['StartPositionTicks'] as int? ?? 0; + final isPlayingNow = data['IsPlaying'] as bool? ?? false; + final reason = data['Reason'] as String?; + + String? playingItemId; + String? playlistItemId; + + if (playlist.isNotEmpty && playingItemIndex < playlist.length) { + final item = playlist[playingItemIndex] as Map; + playingItemId = item['ItemId'] as String?; + playlistItemId = item['PlaylistItemId'] as String?; + } + + final previousItemId = _state.playingItemId; + + _updateState(_state.copyWith( + playingItemId: playingItemId, + playlistItemId: playlistItemId, + positionTicks: startPositionTicks, + )); + + log('SyncPlay: PlayQueue update - playing: $playingItemId (reason: $reason, isPlaying: $isPlayingNow)'); + + // Trigger playback if this is a new item and we should be playing + if (playingItemId != null && + playingItemId != previousItemId && + (reason == 'NewPlaylist' || reason == 'SetCurrentItem' || isPlayingNow)) { + log('SyncPlay: Triggering playback for item: $playingItemId'); + _startPlayback(playingItemId, startPositionTicks); + } + } + + /// Start playback of an item from SyncPlay + Future _startPlayback(String itemId, int startPositionTicks) async { + log('SyncPlay: Starting playback for item: $itemId'); + + try { + // Fetch the item from Jellyfin + final api = _ref.read(jellyApiProvider); + final itemResponse = await api.usersUserIdItemsItemIdGet(itemId: itemId); + final itemModel = itemResponse.body; + + if (itemModel == null) { + log('SyncPlay: Failed to fetch item $itemId'); + return; + } + + // Create playback model (context is optional - null for SyncPlay auto-play) + final playbackHelper = _ref.read(playbackModelHelper); + final startPosition = Duration(microseconds: startPositionTicks ~/ 10); + + final playbackModel = await playbackHelper.createPlaybackModel( + null, // No context needed for SyncPlay + itemModel, + startPosition: startPosition, + ); + + if (playbackModel == null) { + log('SyncPlay: Failed to create playback model for $itemId'); + return; + } + + // Load and play + final loadedCorrectly = await _ref.read(videoPlayerProvider.notifier).loadPlaybackItem( + playbackModel, + startPosition, + ); + + if (!loadedCorrectly) { + log('SyncPlay: Failed to load playback item $itemId'); + return; + } + + // Set state to fullScreen and push the VideoPlayer route + _ref.read(mediaPlaybackProvider.notifier).update( + (state) => state.copyWith(state: VideoPlayerState.fullScreen), + ); + + // Push VideoPlayer using the global router's navigator key + final navigatorKey = getNavigatorKey(_ref); + if (navigatorKey?.currentState != null) { + navigatorKey!.currentState!.push( + MaterialPageRoute( + builder: (context) => const VideoPlayer(), + ), + ); + log('SyncPlay: Successfully started fullscreen playback for $itemId'); + } else { + log('SyncPlay: No navigator available, player loaded but not opened fullscreen'); + } + } catch (e) { + log('SyncPlay: Error starting playback: $e'); + } + } + + SyncPlayGroupState _parseGroupState(String? state) { + switch (state?.toLowerCase()) { + case 'idle': + return SyncPlayGroupState.idle; + case 'waiting': + return SyncPlayGroupState.waiting; + case 'paused': + return SyncPlayGroupState.paused; + case 'playing': + return SyncPlayGroupState.playing; + default: + return SyncPlayGroupState.idle; + } + } + + void _updateState(SyncPlayState newState) { + _state = newState; + _stateController.add(newState); + } + + /// Dispose resources + Future dispose() async { + await disconnect(); + await _stateController.close(); + } +} diff --git a/lib/providers/syncplay/syncplay_models.dart b/lib/providers/syncplay/syncplay_models.dart new file mode 100644 index 000000000..4efe87028 --- /dev/null +++ b/lib/providers/syncplay/syncplay_models.dart @@ -0,0 +1,105 @@ +import 'package:freezed_annotation/freezed_annotation.dart'; + +part 'syncplay_models.freezed.dart'; + +/// Time sync measurement for NTP-like clock synchronization +@Freezed(copyWith: true) +abstract class TimeSyncMeasurement with _$TimeSyncMeasurement { + const TimeSyncMeasurement._(); + + factory TimeSyncMeasurement({ + required DateTime requestSent, + required DateTime requestReceived, + required DateTime responseSent, + required DateTime responseReceived, + }) = _TimeSyncMeasurement; + + /// Clock offset between client and server + /// Positive = server is ahead of client + Duration get offset { + final t1 = requestSent.millisecondsSinceEpoch; + final t2 = requestReceived.millisecondsSinceEpoch; + final t3 = responseSent.millisecondsSinceEpoch; + final t4 = responseReceived.millisecondsSinceEpoch; + final offsetMs = ((t2 - t1) + (t3 - t4)) / 2; + return Duration(milliseconds: offsetMs.round()); + } + + /// Round-trip delay + Duration get delay { + final t1 = requestSent.millisecondsSinceEpoch; + final t2 = requestReceived.millisecondsSinceEpoch; + final t3 = responseSent.millisecondsSinceEpoch; + final t4 = responseReceived.millisecondsSinceEpoch; + final delayMs = (t4 - t1) - (t3 - t2); + return Duration(milliseconds: delayMs); + } + + /// One-way ping (half of round-trip) + Duration get ping => Duration(milliseconds: delay.inMilliseconds ~/ 2); +} + +/// SyncPlay group state +enum SyncPlayGroupState { + idle, + waiting, + paused, + playing, +} + +/// Current SyncPlay session state +@Freezed(copyWith: true) +abstract class SyncPlayState with _$SyncPlayState { + const SyncPlayState._(); + + factory SyncPlayState({ + @Default(false) bool isConnected, + @Default(false) bool isInGroup, + String? groupId, + String? groupName, + @Default(SyncPlayGroupState.idle) SyncPlayGroupState groupState, + String? stateReason, + @Default([]) List participants, + String? playingItemId, + String? playlistItemId, + @Default(0) int positionTicks, + DateTime? lastCommandTime, + }) = _SyncPlayState; + + bool get isActive => isConnected && isInGroup; +} + +/// Last executed command for duplicate detection +@Freezed(copyWith: true) +abstract class LastSyncPlayCommand with _$LastSyncPlayCommand { + factory LastSyncPlayCommand({ + required String when, + required int positionTicks, + required String command, + required String playlistItemId, + }) = _LastSyncPlayCommand; +} + +/// WebSocket connection state +enum WebSocketConnectionState { + disconnected, + connecting, + connected, + reconnecting, +} + +/// Ticks conversion constants +const int ticksPerMillisecond = 10000; +const int ticksPerSecond = 10000000; + +/// Convert seconds to ticks +int secondsToTicks(double seconds) => (seconds * ticksPerSecond).round(); + +/// Convert ticks to seconds +double ticksToSeconds(int ticks) => ticks / ticksPerSecond; + +/// Convert milliseconds to ticks +int millisecondsToTicks(int ms) => ms * ticksPerMillisecond; + +/// Convert ticks to milliseconds +int ticksToMilliseconds(int ticks) => ticks ~/ ticksPerMillisecond; diff --git a/lib/providers/syncplay/syncplay_models.freezed.dart b/lib/providers/syncplay/syncplay_models.freezed.dart new file mode 100644 index 000000000..7b17e251b --- /dev/null +++ b/lib/providers/syncplay/syncplay_models.freezed.dart @@ -0,0 +1,1172 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND +// coverage:ignore-file +// ignore_for_file: type=lint +// ignore_for_file: unused_element, deprecated_member_use, deprecated_member_use_from_same_package, use_function_type_syntax_for_parameters, unnecessary_const, avoid_init_to_null, invalid_override_different_default_values_named, prefer_expression_function_bodies, annotate_overrides, invalid_annotation_target, unnecessary_question_mark + +part of 'syncplay_models.dart'; + +// ************************************************************************** +// FreezedGenerator +// ************************************************************************** + +// dart format off +T _$identity(T value) => value; + +/// @nodoc +mixin _$TimeSyncMeasurement { + DateTime get requestSent; + DateTime get requestReceived; + DateTime get responseSent; + DateTime get responseReceived; + + /// Create a copy of TimeSyncMeasurement + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) + @pragma('vm:prefer-inline') + $TimeSyncMeasurementCopyWith get copyWith => + _$TimeSyncMeasurementCopyWithImpl( + this as TimeSyncMeasurement, _$identity); + + @override + String toString() { + return 'TimeSyncMeasurement(requestSent: $requestSent, requestReceived: $requestReceived, responseSent: $responseSent, responseReceived: $responseReceived)'; + } +} + +/// @nodoc +abstract mixin class $TimeSyncMeasurementCopyWith<$Res> { + factory $TimeSyncMeasurementCopyWith( + TimeSyncMeasurement value, $Res Function(TimeSyncMeasurement) _then) = + _$TimeSyncMeasurementCopyWithImpl; + @useResult + $Res call( + {DateTime requestSent, + DateTime requestReceived, + DateTime responseSent, + DateTime responseReceived}); +} + +/// @nodoc +class _$TimeSyncMeasurementCopyWithImpl<$Res> + implements $TimeSyncMeasurementCopyWith<$Res> { + _$TimeSyncMeasurementCopyWithImpl(this._self, this._then); + + final TimeSyncMeasurement _self; + final $Res Function(TimeSyncMeasurement) _then; + + /// Create a copy of TimeSyncMeasurement + /// with the given fields replaced by the non-null parameter values. + @pragma('vm:prefer-inline') + @override + $Res call({ + Object? requestSent = null, + Object? requestReceived = null, + Object? responseSent = null, + Object? responseReceived = null, + }) { + return _then(_self.copyWith( + requestSent: null == requestSent + ? _self.requestSent + : requestSent // ignore: cast_nullable_to_non_nullable + as DateTime, + requestReceived: null == requestReceived + ? _self.requestReceived + : requestReceived // ignore: cast_nullable_to_non_nullable + as DateTime, + responseSent: null == responseSent + ? _self.responseSent + : responseSent // ignore: cast_nullable_to_non_nullable + as DateTime, + responseReceived: null == responseReceived + ? _self.responseReceived + : responseReceived // ignore: cast_nullable_to_non_nullable + as DateTime, + )); + } +} + +/// Adds pattern-matching-related methods to [TimeSyncMeasurement]. +extension TimeSyncMeasurementPatterns on TimeSyncMeasurement { + /// A variant of `map` that fallback to returning `orElse`. + /// + /// It is equivalent to doing: + /// ```dart + /// switch (sealedClass) { + /// case final Subclass value: + /// return ...; + /// case _: + /// return orElse(); + /// } + /// ``` + + @optionalTypeArgs + TResult maybeMap( + TResult Function(_TimeSyncMeasurement value)? $default, { + required TResult orElse(), + }) { + final _that = this; + switch (_that) { + case _TimeSyncMeasurement() when $default != null: + return $default(_that); + case _: + return orElse(); + } + } + + /// A `switch`-like method, using callbacks. + /// + /// Callbacks receives the raw object, upcasted. + /// It is equivalent to doing: + /// ```dart + /// switch (sealedClass) { + /// case final Subclass value: + /// return ...; + /// case final Subclass2 value: + /// return ...; + /// } + /// ``` + + @optionalTypeArgs + TResult map( + TResult Function(_TimeSyncMeasurement value) $default, + ) { + final _that = this; + switch (_that) { + case _TimeSyncMeasurement(): + return $default(_that); + case _: + throw StateError('Unexpected subclass'); + } + } + + /// A variant of `map` that fallback to returning `null`. + /// + /// It is equivalent to doing: + /// ```dart + /// switch (sealedClass) { + /// case final Subclass value: + /// return ...; + /// case _: + /// return null; + /// } + /// ``` + + @optionalTypeArgs + TResult? mapOrNull( + TResult? Function(_TimeSyncMeasurement value)? $default, + ) { + final _that = this; + switch (_that) { + case _TimeSyncMeasurement() when $default != null: + return $default(_that); + case _: + return null; + } + } + + /// A variant of `when` that fallback to an `orElse` callback. + /// + /// It is equivalent to doing: + /// ```dart + /// switch (sealedClass) { + /// case Subclass(:final field): + /// return ...; + /// case _: + /// return orElse(); + /// } + /// ``` + + @optionalTypeArgs + TResult maybeWhen( + TResult Function(DateTime requestSent, DateTime requestReceived, + DateTime responseSent, DateTime responseReceived)? + $default, { + required TResult orElse(), + }) { + final _that = this; + switch (_that) { + case _TimeSyncMeasurement() when $default != null: + return $default(_that.requestSent, _that.requestReceived, + _that.responseSent, _that.responseReceived); + case _: + return orElse(); + } + } + + /// A `switch`-like method, using callbacks. + /// + /// As opposed to `map`, this offers destructuring. + /// It is equivalent to doing: + /// ```dart + /// switch (sealedClass) { + /// case Subclass(:final field): + /// return ...; + /// case Subclass2(:final field2): + /// return ...; + /// } + /// ``` + + @optionalTypeArgs + TResult when( + TResult Function(DateTime requestSent, DateTime requestReceived, + DateTime responseSent, DateTime responseReceived) + $default, + ) { + final _that = this; + switch (_that) { + case _TimeSyncMeasurement(): + return $default(_that.requestSent, _that.requestReceived, + _that.responseSent, _that.responseReceived); + case _: + throw StateError('Unexpected subclass'); + } + } + + /// A variant of `when` that fallback to returning `null` + /// + /// It is equivalent to doing: + /// ```dart + /// switch (sealedClass) { + /// case Subclass(:final field): + /// return ...; + /// case _: + /// return null; + /// } + /// ``` + + @optionalTypeArgs + TResult? whenOrNull( + TResult? Function(DateTime requestSent, DateTime requestReceived, + DateTime responseSent, DateTime responseReceived)? + $default, + ) { + final _that = this; + switch (_that) { + case _TimeSyncMeasurement() when $default != null: + return $default(_that.requestSent, _that.requestReceived, + _that.responseSent, _that.responseReceived); + case _: + return null; + } + } +} + +/// @nodoc + +class _TimeSyncMeasurement extends TimeSyncMeasurement { + _TimeSyncMeasurement( + {required this.requestSent, + required this.requestReceived, + required this.responseSent, + required this.responseReceived}) + : super._(); + + @override + final DateTime requestSent; + @override + final DateTime requestReceived; + @override + final DateTime responseSent; + @override + final DateTime responseReceived; + + /// Create a copy of TimeSyncMeasurement + /// with the given fields replaced by the non-null parameter values. + @override + @JsonKey(includeFromJson: false, includeToJson: false) + @pragma('vm:prefer-inline') + _$TimeSyncMeasurementCopyWith<_TimeSyncMeasurement> get copyWith => + __$TimeSyncMeasurementCopyWithImpl<_TimeSyncMeasurement>( + this, _$identity); + + @override + String toString() { + return 'TimeSyncMeasurement(requestSent: $requestSent, requestReceived: $requestReceived, responseSent: $responseSent, responseReceived: $responseReceived)'; + } +} + +/// @nodoc +abstract mixin class _$TimeSyncMeasurementCopyWith<$Res> + implements $TimeSyncMeasurementCopyWith<$Res> { + factory _$TimeSyncMeasurementCopyWith(_TimeSyncMeasurement value, + $Res Function(_TimeSyncMeasurement) _then) = + __$TimeSyncMeasurementCopyWithImpl; + @override + @useResult + $Res call( + {DateTime requestSent, + DateTime requestReceived, + DateTime responseSent, + DateTime responseReceived}); +} + +/// @nodoc +class __$TimeSyncMeasurementCopyWithImpl<$Res> + implements _$TimeSyncMeasurementCopyWith<$Res> { + __$TimeSyncMeasurementCopyWithImpl(this._self, this._then); + + final _TimeSyncMeasurement _self; + final $Res Function(_TimeSyncMeasurement) _then; + + /// Create a copy of TimeSyncMeasurement + /// with the given fields replaced by the non-null parameter values. + @override + @pragma('vm:prefer-inline') + $Res call({ + Object? requestSent = null, + Object? requestReceived = null, + Object? responseSent = null, + Object? responseReceived = null, + }) { + return _then(_TimeSyncMeasurement( + requestSent: null == requestSent + ? _self.requestSent + : requestSent // ignore: cast_nullable_to_non_nullable + as DateTime, + requestReceived: null == requestReceived + ? _self.requestReceived + : requestReceived // ignore: cast_nullable_to_non_nullable + as DateTime, + responseSent: null == responseSent + ? _self.responseSent + : responseSent // ignore: cast_nullable_to_non_nullable + as DateTime, + responseReceived: null == responseReceived + ? _self.responseReceived + : responseReceived // ignore: cast_nullable_to_non_nullable + as DateTime, + )); + } +} + +/// @nodoc +mixin _$SyncPlayState { + bool get isConnected; + bool get isInGroup; + String? get groupId; + String? get groupName; + SyncPlayGroupState get groupState; + String? get stateReason; + List get participants; + String? get playingItemId; + String? get playlistItemId; + int get positionTicks; + DateTime? get lastCommandTime; + + /// Create a copy of SyncPlayState + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) + @pragma('vm:prefer-inline') + $SyncPlayStateCopyWith get copyWith => + _$SyncPlayStateCopyWithImpl( + this as SyncPlayState, _$identity); + + @override + String toString() { + return 'SyncPlayState(isConnected: $isConnected, isInGroup: $isInGroup, groupId: $groupId, groupName: $groupName, groupState: $groupState, stateReason: $stateReason, participants: $participants, playingItemId: $playingItemId, playlistItemId: $playlistItemId, positionTicks: $positionTicks, lastCommandTime: $lastCommandTime)'; + } +} + +/// @nodoc +abstract mixin class $SyncPlayStateCopyWith<$Res> { + factory $SyncPlayStateCopyWith( + SyncPlayState value, $Res Function(SyncPlayState) _then) = + _$SyncPlayStateCopyWithImpl; + @useResult + $Res call( + {bool isConnected, + bool isInGroup, + String? groupId, + String? groupName, + SyncPlayGroupState groupState, + String? stateReason, + List participants, + String? playingItemId, + String? playlistItemId, + int positionTicks, + DateTime? lastCommandTime}); +} + +/// @nodoc +class _$SyncPlayStateCopyWithImpl<$Res> + implements $SyncPlayStateCopyWith<$Res> { + _$SyncPlayStateCopyWithImpl(this._self, this._then); + + final SyncPlayState _self; + final $Res Function(SyncPlayState) _then; + + /// Create a copy of SyncPlayState + /// with the given fields replaced by the non-null parameter values. + @pragma('vm:prefer-inline') + @override + $Res call({ + Object? isConnected = null, + Object? isInGroup = null, + Object? groupId = freezed, + Object? groupName = freezed, + Object? groupState = null, + Object? stateReason = freezed, + Object? participants = null, + Object? playingItemId = freezed, + Object? playlistItemId = freezed, + Object? positionTicks = null, + Object? lastCommandTime = freezed, + }) { + return _then(_self.copyWith( + isConnected: null == isConnected + ? _self.isConnected + : isConnected // ignore: cast_nullable_to_non_nullable + as bool, + isInGroup: null == isInGroup + ? _self.isInGroup + : isInGroup // ignore: cast_nullable_to_non_nullable + as bool, + groupId: freezed == groupId + ? _self.groupId + : groupId // ignore: cast_nullable_to_non_nullable + as String?, + groupName: freezed == groupName + ? _self.groupName + : groupName // ignore: cast_nullable_to_non_nullable + as String?, + groupState: null == groupState + ? _self.groupState + : groupState // ignore: cast_nullable_to_non_nullable + as SyncPlayGroupState, + stateReason: freezed == stateReason + ? _self.stateReason + : stateReason // ignore: cast_nullable_to_non_nullable + as String?, + participants: null == participants + ? _self.participants + : participants // ignore: cast_nullable_to_non_nullable + as List, + playingItemId: freezed == playingItemId + ? _self.playingItemId + : playingItemId // ignore: cast_nullable_to_non_nullable + as String?, + playlistItemId: freezed == playlistItemId + ? _self.playlistItemId + : playlistItemId // ignore: cast_nullable_to_non_nullable + as String?, + positionTicks: null == positionTicks + ? _self.positionTicks + : positionTicks // ignore: cast_nullable_to_non_nullable + as int, + lastCommandTime: freezed == lastCommandTime + ? _self.lastCommandTime + : lastCommandTime // ignore: cast_nullable_to_non_nullable + as DateTime?, + )); + } +} + +/// Adds pattern-matching-related methods to [SyncPlayState]. +extension SyncPlayStatePatterns on SyncPlayState { + /// A variant of `map` that fallback to returning `orElse`. + /// + /// It is equivalent to doing: + /// ```dart + /// switch (sealedClass) { + /// case final Subclass value: + /// return ...; + /// case _: + /// return orElse(); + /// } + /// ``` + + @optionalTypeArgs + TResult maybeMap( + TResult Function(_SyncPlayState value)? $default, { + required TResult orElse(), + }) { + final _that = this; + switch (_that) { + case _SyncPlayState() when $default != null: + return $default(_that); + case _: + return orElse(); + } + } + + /// A `switch`-like method, using callbacks. + /// + /// Callbacks receives the raw object, upcasted. + /// It is equivalent to doing: + /// ```dart + /// switch (sealedClass) { + /// case final Subclass value: + /// return ...; + /// case final Subclass2 value: + /// return ...; + /// } + /// ``` + + @optionalTypeArgs + TResult map( + TResult Function(_SyncPlayState value) $default, + ) { + final _that = this; + switch (_that) { + case _SyncPlayState(): + return $default(_that); + case _: + throw StateError('Unexpected subclass'); + } + } + + /// A variant of `map` that fallback to returning `null`. + /// + /// It is equivalent to doing: + /// ```dart + /// switch (sealedClass) { + /// case final Subclass value: + /// return ...; + /// case _: + /// return null; + /// } + /// ``` + + @optionalTypeArgs + TResult? mapOrNull( + TResult? Function(_SyncPlayState value)? $default, + ) { + final _that = this; + switch (_that) { + case _SyncPlayState() when $default != null: + return $default(_that); + case _: + return null; + } + } + + /// A variant of `when` that fallback to an `orElse` callback. + /// + /// It is equivalent to doing: + /// ```dart + /// switch (sealedClass) { + /// case Subclass(:final field): + /// return ...; + /// case _: + /// return orElse(); + /// } + /// ``` + + @optionalTypeArgs + TResult maybeWhen( + TResult Function( + bool isConnected, + bool isInGroup, + String? groupId, + String? groupName, + SyncPlayGroupState groupState, + String? stateReason, + List participants, + String? playingItemId, + String? playlistItemId, + int positionTicks, + DateTime? lastCommandTime)? + $default, { + required TResult orElse(), + }) { + final _that = this; + switch (_that) { + case _SyncPlayState() when $default != null: + return $default( + _that.isConnected, + _that.isInGroup, + _that.groupId, + _that.groupName, + _that.groupState, + _that.stateReason, + _that.participants, + _that.playingItemId, + _that.playlistItemId, + _that.positionTicks, + _that.lastCommandTime); + case _: + return orElse(); + } + } + + /// A `switch`-like method, using callbacks. + /// + /// As opposed to `map`, this offers destructuring. + /// It is equivalent to doing: + /// ```dart + /// switch (sealedClass) { + /// case Subclass(:final field): + /// return ...; + /// case Subclass2(:final field2): + /// return ...; + /// } + /// ``` + + @optionalTypeArgs + TResult when( + TResult Function( + bool isConnected, + bool isInGroup, + String? groupId, + String? groupName, + SyncPlayGroupState groupState, + String? stateReason, + List participants, + String? playingItemId, + String? playlistItemId, + int positionTicks, + DateTime? lastCommandTime) + $default, + ) { + final _that = this; + switch (_that) { + case _SyncPlayState(): + return $default( + _that.isConnected, + _that.isInGroup, + _that.groupId, + _that.groupName, + _that.groupState, + _that.stateReason, + _that.participants, + _that.playingItemId, + _that.playlistItemId, + _that.positionTicks, + _that.lastCommandTime); + case _: + throw StateError('Unexpected subclass'); + } + } + + /// A variant of `when` that fallback to returning `null` + /// + /// It is equivalent to doing: + /// ```dart + /// switch (sealedClass) { + /// case Subclass(:final field): + /// return ...; + /// case _: + /// return null; + /// } + /// ``` + + @optionalTypeArgs + TResult? whenOrNull( + TResult? Function( + bool isConnected, + bool isInGroup, + String? groupId, + String? groupName, + SyncPlayGroupState groupState, + String? stateReason, + List participants, + String? playingItemId, + String? playlistItemId, + int positionTicks, + DateTime? lastCommandTime)? + $default, + ) { + final _that = this; + switch (_that) { + case _SyncPlayState() when $default != null: + return $default( + _that.isConnected, + _that.isInGroup, + _that.groupId, + _that.groupName, + _that.groupState, + _that.stateReason, + _that.participants, + _that.playingItemId, + _that.playlistItemId, + _that.positionTicks, + _that.lastCommandTime); + case _: + return null; + } + } +} + +/// @nodoc + +class _SyncPlayState extends SyncPlayState { + _SyncPlayState( + {this.isConnected = false, + this.isInGroup = false, + this.groupId, + this.groupName, + this.groupState = SyncPlayGroupState.idle, + this.stateReason, + final List participants = const [], + this.playingItemId, + this.playlistItemId, + this.positionTicks = 0, + this.lastCommandTime}) + : _participants = participants, + super._(); + + @override + @JsonKey() + final bool isConnected; + @override + @JsonKey() + final bool isInGroup; + @override + final String? groupId; + @override + final String? groupName; + @override + @JsonKey() + final SyncPlayGroupState groupState; + @override + final String? stateReason; + final List _participants; + @override + @JsonKey() + List get participants { + if (_participants is EqualUnmodifiableListView) return _participants; + // ignore: implicit_dynamic_type + return EqualUnmodifiableListView(_participants); + } + + @override + final String? playingItemId; + @override + final String? playlistItemId; + @override + @JsonKey() + final int positionTicks; + @override + final DateTime? lastCommandTime; + + /// Create a copy of SyncPlayState + /// with the given fields replaced by the non-null parameter values. + @override + @JsonKey(includeFromJson: false, includeToJson: false) + @pragma('vm:prefer-inline') + _$SyncPlayStateCopyWith<_SyncPlayState> get copyWith => + __$SyncPlayStateCopyWithImpl<_SyncPlayState>(this, _$identity); + + @override + String toString() { + return 'SyncPlayState(isConnected: $isConnected, isInGroup: $isInGroup, groupId: $groupId, groupName: $groupName, groupState: $groupState, stateReason: $stateReason, participants: $participants, playingItemId: $playingItemId, playlistItemId: $playlistItemId, positionTicks: $positionTicks, lastCommandTime: $lastCommandTime)'; + } +} + +/// @nodoc +abstract mixin class _$SyncPlayStateCopyWith<$Res> + implements $SyncPlayStateCopyWith<$Res> { + factory _$SyncPlayStateCopyWith( + _SyncPlayState value, $Res Function(_SyncPlayState) _then) = + __$SyncPlayStateCopyWithImpl; + @override + @useResult + $Res call( + {bool isConnected, + bool isInGroup, + String? groupId, + String? groupName, + SyncPlayGroupState groupState, + String? stateReason, + List participants, + String? playingItemId, + String? playlistItemId, + int positionTicks, + DateTime? lastCommandTime}); +} + +/// @nodoc +class __$SyncPlayStateCopyWithImpl<$Res> + implements _$SyncPlayStateCopyWith<$Res> { + __$SyncPlayStateCopyWithImpl(this._self, this._then); + + final _SyncPlayState _self; + final $Res Function(_SyncPlayState) _then; + + /// Create a copy of SyncPlayState + /// with the given fields replaced by the non-null parameter values. + @override + @pragma('vm:prefer-inline') + $Res call({ + Object? isConnected = null, + Object? isInGroup = null, + Object? groupId = freezed, + Object? groupName = freezed, + Object? groupState = null, + Object? stateReason = freezed, + Object? participants = null, + Object? playingItemId = freezed, + Object? playlistItemId = freezed, + Object? positionTicks = null, + Object? lastCommandTime = freezed, + }) { + return _then(_SyncPlayState( + isConnected: null == isConnected + ? _self.isConnected + : isConnected // ignore: cast_nullable_to_non_nullable + as bool, + isInGroup: null == isInGroup + ? _self.isInGroup + : isInGroup // ignore: cast_nullable_to_non_nullable + as bool, + groupId: freezed == groupId + ? _self.groupId + : groupId // ignore: cast_nullable_to_non_nullable + as String?, + groupName: freezed == groupName + ? _self.groupName + : groupName // ignore: cast_nullable_to_non_nullable + as String?, + groupState: null == groupState + ? _self.groupState + : groupState // ignore: cast_nullable_to_non_nullable + as SyncPlayGroupState, + stateReason: freezed == stateReason + ? _self.stateReason + : stateReason // ignore: cast_nullable_to_non_nullable + as String?, + participants: null == participants + ? _self._participants + : participants // ignore: cast_nullable_to_non_nullable + as List, + playingItemId: freezed == playingItemId + ? _self.playingItemId + : playingItemId // ignore: cast_nullable_to_non_nullable + as String?, + playlistItemId: freezed == playlistItemId + ? _self.playlistItemId + : playlistItemId // ignore: cast_nullable_to_non_nullable + as String?, + positionTicks: null == positionTicks + ? _self.positionTicks + : positionTicks // ignore: cast_nullable_to_non_nullable + as int, + lastCommandTime: freezed == lastCommandTime + ? _self.lastCommandTime + : lastCommandTime // ignore: cast_nullable_to_non_nullable + as DateTime?, + )); + } +} + +/// @nodoc +mixin _$LastSyncPlayCommand { + String get when; + int get positionTicks; + String get command; + String get playlistItemId; + + /// Create a copy of LastSyncPlayCommand + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) + @pragma('vm:prefer-inline') + $LastSyncPlayCommandCopyWith get copyWith => + _$LastSyncPlayCommandCopyWithImpl( + this as LastSyncPlayCommand, _$identity); + + @override + String toString() { + return 'LastSyncPlayCommand(when: $when, positionTicks: $positionTicks, command: $command, playlistItemId: $playlistItemId)'; + } +} + +/// @nodoc +abstract mixin class $LastSyncPlayCommandCopyWith<$Res> { + factory $LastSyncPlayCommandCopyWith( + LastSyncPlayCommand value, $Res Function(LastSyncPlayCommand) _then) = + _$LastSyncPlayCommandCopyWithImpl; + @useResult + $Res call( + {String when, int positionTicks, String command, String playlistItemId}); +} + +/// @nodoc +class _$LastSyncPlayCommandCopyWithImpl<$Res> + implements $LastSyncPlayCommandCopyWith<$Res> { + _$LastSyncPlayCommandCopyWithImpl(this._self, this._then); + + final LastSyncPlayCommand _self; + final $Res Function(LastSyncPlayCommand) _then; + + /// Create a copy of LastSyncPlayCommand + /// with the given fields replaced by the non-null parameter values. + @pragma('vm:prefer-inline') + @override + $Res call({ + Object? when = null, + Object? positionTicks = null, + Object? command = null, + Object? playlistItemId = null, + }) { + return _then(_self.copyWith( + when: null == when + ? _self.when + : when // ignore: cast_nullable_to_non_nullable + as String, + positionTicks: null == positionTicks + ? _self.positionTicks + : positionTicks // ignore: cast_nullable_to_non_nullable + as int, + command: null == command + ? _self.command + : command // ignore: cast_nullable_to_non_nullable + as String, + playlistItemId: null == playlistItemId + ? _self.playlistItemId + : playlistItemId // ignore: cast_nullable_to_non_nullable + as String, + )); + } +} + +/// Adds pattern-matching-related methods to [LastSyncPlayCommand]. +extension LastSyncPlayCommandPatterns on LastSyncPlayCommand { + /// A variant of `map` that fallback to returning `orElse`. + /// + /// It is equivalent to doing: + /// ```dart + /// switch (sealedClass) { + /// case final Subclass value: + /// return ...; + /// case _: + /// return orElse(); + /// } + /// ``` + + @optionalTypeArgs + TResult maybeMap( + TResult Function(_LastSyncPlayCommand value)? $default, { + required TResult orElse(), + }) { + final _that = this; + switch (_that) { + case _LastSyncPlayCommand() when $default != null: + return $default(_that); + case _: + return orElse(); + } + } + + /// A `switch`-like method, using callbacks. + /// + /// Callbacks receives the raw object, upcasted. + /// It is equivalent to doing: + /// ```dart + /// switch (sealedClass) { + /// case final Subclass value: + /// return ...; + /// case final Subclass2 value: + /// return ...; + /// } + /// ``` + + @optionalTypeArgs + TResult map( + TResult Function(_LastSyncPlayCommand value) $default, + ) { + final _that = this; + switch (_that) { + case _LastSyncPlayCommand(): + return $default(_that); + case _: + throw StateError('Unexpected subclass'); + } + } + + /// A variant of `map` that fallback to returning `null`. + /// + /// It is equivalent to doing: + /// ```dart + /// switch (sealedClass) { + /// case final Subclass value: + /// return ...; + /// case _: + /// return null; + /// } + /// ``` + + @optionalTypeArgs + TResult? mapOrNull( + TResult? Function(_LastSyncPlayCommand value)? $default, + ) { + final _that = this; + switch (_that) { + case _LastSyncPlayCommand() when $default != null: + return $default(_that); + case _: + return null; + } + } + + /// A variant of `when` that fallback to an `orElse` callback. + /// + /// It is equivalent to doing: + /// ```dart + /// switch (sealedClass) { + /// case Subclass(:final field): + /// return ...; + /// case _: + /// return orElse(); + /// } + /// ``` + + @optionalTypeArgs + TResult maybeWhen( + TResult Function(String when, int positionTicks, String command, + String playlistItemId)? + $default, { + required TResult orElse(), + }) { + final _that = this; + switch (_that) { + case _LastSyncPlayCommand() when $default != null: + return $default(_that.when, _that.positionTicks, _that.command, + _that.playlistItemId); + case _: + return orElse(); + } + } + + /// A `switch`-like method, using callbacks. + /// + /// As opposed to `map`, this offers destructuring. + /// It is equivalent to doing: + /// ```dart + /// switch (sealedClass) { + /// case Subclass(:final field): + /// return ...; + /// case Subclass2(:final field2): + /// return ...; + /// } + /// ``` + + @optionalTypeArgs + TResult when( + TResult Function(String when, int positionTicks, String command, + String playlistItemId) + $default, + ) { + final _that = this; + switch (_that) { + case _LastSyncPlayCommand(): + return $default(_that.when, _that.positionTicks, _that.command, + _that.playlistItemId); + case _: + throw StateError('Unexpected subclass'); + } + } + + /// A variant of `when` that fallback to returning `null` + /// + /// It is equivalent to doing: + /// ```dart + /// switch (sealedClass) { + /// case Subclass(:final field): + /// return ...; + /// case _: + /// return null; + /// } + /// ``` + + @optionalTypeArgs + TResult? whenOrNull( + TResult? Function(String when, int positionTicks, String command, + String playlistItemId)? + $default, + ) { + final _that = this; + switch (_that) { + case _LastSyncPlayCommand() when $default != null: + return $default(_that.when, _that.positionTicks, _that.command, + _that.playlistItemId); + case _: + return null; + } + } +} + +/// @nodoc + +class _LastSyncPlayCommand implements LastSyncPlayCommand { + _LastSyncPlayCommand( + {required this.when, + required this.positionTicks, + required this.command, + required this.playlistItemId}); + + @override + final String when; + @override + final int positionTicks; + @override + final String command; + @override + final String playlistItemId; + + /// Create a copy of LastSyncPlayCommand + /// with the given fields replaced by the non-null parameter values. + @override + @JsonKey(includeFromJson: false, includeToJson: false) + @pragma('vm:prefer-inline') + _$LastSyncPlayCommandCopyWith<_LastSyncPlayCommand> get copyWith => + __$LastSyncPlayCommandCopyWithImpl<_LastSyncPlayCommand>( + this, _$identity); + + @override + String toString() { + return 'LastSyncPlayCommand(when: $when, positionTicks: $positionTicks, command: $command, playlistItemId: $playlistItemId)'; + } +} + +/// @nodoc +abstract mixin class _$LastSyncPlayCommandCopyWith<$Res> + implements $LastSyncPlayCommandCopyWith<$Res> { + factory _$LastSyncPlayCommandCopyWith(_LastSyncPlayCommand value, + $Res Function(_LastSyncPlayCommand) _then) = + __$LastSyncPlayCommandCopyWithImpl; + @override + @useResult + $Res call( + {String when, int positionTicks, String command, String playlistItemId}); +} + +/// @nodoc +class __$LastSyncPlayCommandCopyWithImpl<$Res> + implements _$LastSyncPlayCommandCopyWith<$Res> { + __$LastSyncPlayCommandCopyWithImpl(this._self, this._then); + + final _LastSyncPlayCommand _self; + final $Res Function(_LastSyncPlayCommand) _then; + + /// Create a copy of LastSyncPlayCommand + /// with the given fields replaced by the non-null parameter values. + @override + @pragma('vm:prefer-inline') + $Res call({ + Object? when = null, + Object? positionTicks = null, + Object? command = null, + Object? playlistItemId = null, + }) { + return _then(_LastSyncPlayCommand( + when: null == when + ? _self.when + : when // ignore: cast_nullable_to_non_nullable + as String, + positionTicks: null == positionTicks + ? _self.positionTicks + : positionTicks // ignore: cast_nullable_to_non_nullable + as int, + command: null == command + ? _self.command + : command // ignore: cast_nullable_to_non_nullable + as String, + playlistItemId: null == playlistItemId + ? _self.playlistItemId + : playlistItemId // ignore: cast_nullable_to_non_nullable + as String, + )); + } +} + +// dart format on diff --git a/lib/providers/syncplay/syncplay_provider.dart b/lib/providers/syncplay/syncplay_provider.dart new file mode 100644 index 000000000..9753e2cc2 --- /dev/null +++ b/lib/providers/syncplay/syncplay_provider.dart @@ -0,0 +1,133 @@ +import 'dart:async'; + +import 'package:flutter_riverpod/flutter_riverpod.dart'; +import 'package:riverpod_annotation/riverpod_annotation.dart'; + +import 'package:fladder/jellyfin/jellyfin_open_api.swagger.dart'; +import 'package:fladder/providers/syncplay/syncplay_controller.dart'; +import 'package:fladder/providers/syncplay/syncplay_models.dart'; + +part 'syncplay_provider.g.dart'; + +/// Provider for SyncPlay controller instance +@Riverpod(keepAlive: true) +class SyncPlay extends _$SyncPlay { + SyncPlayController? _controller; + StreamSubscription? _stateSubscription; + + @override + SyncPlayState build() { + ref.onDispose(() { + _stateSubscription?.cancel(); + _controller?.dispose(); + }); + return SyncPlayState(); + } + + SyncPlayController get controller { + _controller ??= SyncPlayController(ref); + return _controller!; + } + + /// Initialize and connect to SyncPlay WebSocket + Future connect() async { + await controller.connect(); + _stateSubscription?.cancel(); + _stateSubscription = controller.stateStream.listen((newState) { + state = newState; + }); + } + + /// Disconnect from SyncPlay + Future disconnect() async { + await controller.disconnect(); + state = SyncPlayState(); + } + + /// List available SyncPlay groups + Future> listGroups() => controller.listGroups(); + + /// Create a new SyncPlay group + Future createGroup(String groupName) => controller.createGroup(groupName); + + /// Join an existing group + Future joinGroup(String groupId) => controller.joinGroup(groupId); + + /// Leave current group + Future leaveGroup() => controller.leaveGroup(); + + /// Request pause + Future requestPause() => controller.requestPause(); + + /// Request unpause/play + Future requestUnpause() => controller.requestUnpause(); + + /// Request seek + Future requestSeek(int positionTicks) => controller.requestSeek(positionTicks); + + /// Report buffering state + Future reportBuffering() => controller.reportBuffering(); + + /// Report ready state + Future reportReady({bool isPlaying = true}) => + controller.reportReady(isPlaying: isPlaying); + + /// Set a new queue/playlist + Future setNewQueue({ + required List itemIds, + int playingItemPosition = 0, + int startPositionTicks = 0, + }) => controller.setNewQueue( + itemIds: itemIds, + playingItemPosition: playingItemPosition, + startPositionTicks: startPositionTicks, + ); + + /// Register player callbacks + void registerPlayer({ + required Future Function() onPlay, + required Future Function() onPause, + required Future Function(int positionTicks) onSeek, + required Future Function() onStop, + required int Function() getPositionTicks, + required bool Function() isPlaying, + required bool Function() isBuffering, + }) { + controller.onPlay = onPlay; + controller.onPause = onPause; + controller.onSeek = onSeek; + controller.onStop = onStop; + controller.getPositionTicks = getPositionTicks; + controller.isPlaying = isPlaying; + controller.isBuffering = isBuffering; + } + + /// Unregister player callbacks + void unregisterPlayer() { + controller.onPlay = null; + controller.onPause = null; + controller.onSeek = null; + controller.onStop = null; + controller.getPositionTicks = null; + controller.isPlaying = null; + controller.isBuffering = null; + } +} + +/// Provider to check if currently in a SyncPlay session +@riverpod +bool isSyncPlayActive(Ref ref) { + return ref.watch(syncPlayProvider.select((s) => s.isActive)); +} + +/// Provider for current SyncPlay group name +@riverpod +String? syncPlayGroupName(Ref ref) { + return ref.watch(syncPlayProvider.select((s) => s.groupName)); +} + +/// Provider for SyncPlay group state +@riverpod +SyncPlayGroupState syncPlayGroupState(Ref ref) { + return ref.watch(syncPlayProvider.select((s) => s.groupState)); +} diff --git a/lib/providers/syncplay/syncplay_provider.g.dart b/lib/providers/syncplay/syncplay_provider.g.dart new file mode 100644 index 000000000..9bf0dea91 --- /dev/null +++ b/lib/providers/syncplay/syncplay_provider.g.dart @@ -0,0 +1,85 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'syncplay_provider.dart'; + +// ************************************************************************** +// RiverpodGenerator +// ************************************************************************** + +String _$isSyncPlayActiveHash() => r'bf9cda97aa9130fed8fc6558481c02f10f815f99'; + +/// Provider to check if currently in a SyncPlay session +/// +/// Copied from [isSyncPlayActive]. +@ProviderFor(isSyncPlayActive) +final isSyncPlayActiveProvider = AutoDisposeProvider.internal( + isSyncPlayActive, + name: r'isSyncPlayActiveProvider', + debugGetCreateSourceHash: const bool.fromEnvironment('dart.vm.product') + ? null + : _$isSyncPlayActiveHash, + dependencies: null, + allTransitiveDependencies: null, +); + +@Deprecated('Will be removed in 3.0. Use Ref instead') +// ignore: unused_element +typedef IsSyncPlayActiveRef = AutoDisposeProviderRef; +String _$syncPlayGroupNameHash() => r'f73f243808920efbfbfa467d1ba1234fec622283'; + +/// Provider for current SyncPlay group name +/// +/// Copied from [syncPlayGroupName]. +@ProviderFor(syncPlayGroupName) +final syncPlayGroupNameProvider = AutoDisposeProvider.internal( + syncPlayGroupName, + name: r'syncPlayGroupNameProvider', + debugGetCreateSourceHash: const bool.fromEnvironment('dart.vm.product') + ? null + : _$syncPlayGroupNameHash, + dependencies: null, + allTransitiveDependencies: null, +); + +@Deprecated('Will be removed in 3.0. Use Ref instead') +// ignore: unused_element +typedef SyncPlayGroupNameRef = AutoDisposeProviderRef; +String _$syncPlayGroupStateHash() => + r'dff5dba3297066e06ff5ed1b9b273ee19bc27878'; + +/// Provider for SyncPlay group state +/// +/// Copied from [syncPlayGroupState]. +@ProviderFor(syncPlayGroupState) +final syncPlayGroupStateProvider = + AutoDisposeProvider.internal( + syncPlayGroupState, + name: r'syncPlayGroupStateProvider', + debugGetCreateSourceHash: const bool.fromEnvironment('dart.vm.product') + ? null + : _$syncPlayGroupStateHash, + dependencies: null, + allTransitiveDependencies: null, +); + +@Deprecated('Will be removed in 3.0. Use Ref instead') +// ignore: unused_element +typedef SyncPlayGroupStateRef = AutoDisposeProviderRef; +String _$syncPlayHash() => r'7f5fd80fef94a1c6c36050b3895b51a764116d50'; + +/// Provider for SyncPlay controller instance +/// +/// Copied from [SyncPlay]. +@ProviderFor(SyncPlay) +final syncPlayProvider = NotifierProvider.internal( + SyncPlay.new, + name: r'syncPlayProvider', + debugGetCreateSourceHash: + const bool.fromEnvironment('dart.vm.product') ? null : _$syncPlayHash, + dependencies: null, + allTransitiveDependencies: null, +); + +typedef _$SyncPlay = Notifier; +// ignore_for_file: type=lint +// ignore_for_file: subtype_of_sealed_class, invalid_use_of_internal_member, invalid_use_of_visible_for_testing_member, deprecated_member_use_from_same_package diff --git a/lib/providers/syncplay/time_sync_service.dart b/lib/providers/syncplay/time_sync_service.dart new file mode 100644 index 000000000..3ef254ece --- /dev/null +++ b/lib/providers/syncplay/time_sync_service.dart @@ -0,0 +1,167 @@ +import 'dart:async'; +import 'dart:developer'; + +import 'package:fladder/jellyfin/jellyfin_open_api.swagger.dart'; +import 'package:fladder/providers/syncplay/syncplay_models.dart'; + +/// Service for synchronizing client clock with Jellyfin server using NTP-like algorithm +class TimeSyncService { + TimeSyncService(this._api); + + final JellyfinOpenApi _api; + + final List _measurements = []; + static const int _maxMeasurements = 8; + + Timer? _pollingTimer; + int _pingCount = 0; + bool _isActive = false; + + // Polling intervals + static const Duration _greedyInterval = Duration(seconds: 1); + static const Duration _lowProfileInterval = Duration(seconds: 60); + static const int _greedyPingCount = 3; + + // Staleness threshold + static const Duration _staleThreshold = Duration(seconds: 30); + DateTime? _lastMeasurementTime; + + /// Current best offset estimate + Duration get offset { + if (_measurements.isEmpty) return Duration.zero; + // Use measurement with minimum delay (least network jitter) + final best = _measurements.reduce( + (a, b) => a.delay < b.delay ? a : b, + ); + return best.offset; + } + + /// Current ping estimate (from best measurement) + Duration get ping { + if (_measurements.isEmpty) return Duration.zero; + final best = _measurements.reduce( + (a, b) => a.delay < b.delay ? a : b, + ); + return best.ping; + } + + /// Whether time sync is stale and needs refresh + bool get isStale { + if (_lastMeasurementTime == null) return true; + return DateTime.now().difference(_lastMeasurementTime!) > _staleThreshold; + } + + /// Convert server time to local time + DateTime remoteDateToLocal(DateTime serverTime) { + return serverTime.subtract(offset); + } + + /// Convert local time to server time + DateTime localDateToRemote(DateTime localTime) { + return localTime.add(offset); + } + + /// Start time synchronization + void start() { + if (_isActive) return; + _isActive = true; + _pingCount = 0; + _poll(); + } + + /// Stop time synchronization + void stop() { + _isActive = false; + _pollingTimer?.cancel(); + _pollingTimer = null; + } + + /// Force an immediate sync update + Future forceUpdate() async { + await _requestPing(); + } + + /// Force update and wait for completion + Future forceUpdateAndWait() async { + await _requestPing(); + } + + void _poll() { + if (!_isActive) return; + + _requestPing().then((_) { + if (!_isActive) return; + + _pingCount++; + final interval = _pingCount <= _greedyPingCount + ? _greedyInterval + : _lowProfileInterval; + + _pollingTimer?.cancel(); + _pollingTimer = Timer(interval, _poll); + }); + } + + Future _requestPing() async { + try { + // T1: Record local time before request + final requestSent = DateTime.now().toUtc(); + + // Make request to Jellyfin TimeSync API + final response = await _api.getUtcTimeGet(); + + // T4: Record local time after response + final responseReceived = DateTime.now().toUtc(); + + final data = response.body; + if (data == null) { + log('Time sync: No response body'); + return; + } + + // T2 and T3 from server + final requestReceived = data.requestReceptionTime; + final responseSent = data.responseTransmissionTime; + + if (requestReceived == null || responseSent == null) { + log('Time sync: Missing server timestamps'); + return; + } + + final measurement = TimeSyncMeasurement( + requestSent: requestSent, + requestReceived: requestReceived, + responseSent: responseSent, + responseReceived: responseReceived, + ); + + _addMeasurement(measurement); + _lastMeasurementTime = DateTime.now(); + + log('Time sync: offset=${offset.inMilliseconds}ms, ping=${ping.inMilliseconds}ms'); + } catch (e) { + log('Time sync failed: $e'); + } + } + + void _addMeasurement(TimeSyncMeasurement measurement) { + _measurements.add(measurement); + // Keep only the last N measurements + while (_measurements.length > _maxMeasurements) { + _measurements.removeAt(0); + } + } + + /// Clear all measurements + void clear() { + _measurements.clear(); + _lastMeasurementTime = null; + _pingCount = 0; + } + + /// Dispose resources + void dispose() { + stop(); + clear(); + } +} diff --git a/lib/providers/syncplay/websocket_manager.dart b/lib/providers/syncplay/websocket_manager.dart new file mode 100644 index 000000000..9c1060da5 --- /dev/null +++ b/lib/providers/syncplay/websocket_manager.dart @@ -0,0 +1,180 @@ +import 'dart:async'; +import 'dart:convert'; +import 'dart:developer'; + +import 'package:web_socket_channel/web_socket_channel.dart'; + +import 'package:fladder/providers/syncplay/syncplay_models.dart'; + +/// Manages WebSocket connection to Jellyfin server for SyncPlay +class WebSocketManager { + WebSocketManager({ + required this.serverUrl, + required this.token, + required this.deviceId, + }); + + final String serverUrl; + final String token; + final String deviceId; + + WebSocketChannel? _channel; + Timer? _keepAliveTimer; + Timer? _reconnectTimer; + int _reconnectAttempts = 0; + static const int _maxReconnectAttempts = 5; + static const Duration _baseReconnectDelay = Duration(seconds: 2); + + final _connectionStateController = StreamController.broadcast(); + final _messageController = StreamController>.broadcast(); + + Stream get connectionState => _connectionStateController.stream; + Stream> get messages => _messageController.stream; + + WebSocketConnectionState _currentState = WebSocketConnectionState.disconnected; + WebSocketConnectionState get currentState => _currentState; + + /// Build WebSocket URL for Jellyfin + Uri get _webSocketUri { + final baseUri = Uri.parse(serverUrl); + final scheme = baseUri.scheme == 'https' ? 'wss' : 'ws'; + return Uri( + scheme: scheme, + host: baseUri.host, + port: baseUri.port, + path: '${baseUri.path}/socket', + queryParameters: { + 'api_key': token, + 'deviceId': deviceId, + }, + ); + } + + /// Connect to WebSocket + Future connect() async { + if (_currentState == WebSocketConnectionState.connected || + _currentState == WebSocketConnectionState.connecting) { + return; + } + + _updateState(WebSocketConnectionState.connecting); + + try { + _channel = WebSocketChannel.connect(_webSocketUri); + await _channel!.ready; + + _updateState(WebSocketConnectionState.connected); + _reconnectAttempts = 0; + + _channel!.stream.listen( + _handleMessage, + onError: _handleError, + onDone: _handleDone, + ); + } catch (e) { + log('WebSocket connection failed: $e'); + _updateState(WebSocketConnectionState.disconnected); + _scheduleReconnect(); + } + } + + /// Disconnect from WebSocket + Future disconnect() async { + _reconnectTimer?.cancel(); + _keepAliveTimer?.cancel(); + _reconnectAttempts = _maxReconnectAttempts; // Prevent auto-reconnect + + await _channel?.sink.close(); + _channel = null; + _updateState(WebSocketConnectionState.disconnected); + } + + /// Send a message through WebSocket + void send(Map message) { + if (_currentState != WebSocketConnectionState.connected) { + log('Cannot send message: WebSocket not connected'); + return; + } + + try { + _channel?.sink.add(json.encode(message)); + } catch (e) { + log('Failed to send WebSocket message: $e'); + } + } + + /// Send keep-alive message + void _sendKeepAlive() { + send({'MessageType': 'KeepAlive'}); + } + + void _handleMessage(dynamic data) { + try { + final message = json.decode(data as String) as Map; + final messageType = message['MessageType'] as String?; + + // Handle ForceKeepAlive to set up keep-alive interval + if (messageType == 'ForceKeepAlive') { + final timeoutSeconds = message['Data'] as int? ?? 60; + _setupKeepAlive(timeoutSeconds); + } + + // Forward message to listeners + _messageController.add(message); + } catch (e) { + log('Failed to parse WebSocket message: $e'); + } + } + + void _handleError(dynamic error) { + log('WebSocket error: $error'); + _updateState(WebSocketConnectionState.disconnected); + _scheduleReconnect(); + } + + void _handleDone() { + log('WebSocket connection closed'); + _keepAliveTimer?.cancel(); + + if (_currentState != WebSocketConnectionState.disconnected) { + _updateState(WebSocketConnectionState.disconnected); + _scheduleReconnect(); + } + } + + void _setupKeepAlive(int timeoutSeconds) { + _keepAliveTimer?.cancel(); + // Send keep-alive at half the timeout interval + final interval = Duration(seconds: (timeoutSeconds * 0.5).round()); + _keepAliveTimer = Timer.periodic(interval, (_) => _sendKeepAlive()); + } + + void _scheduleReconnect() { + if (_reconnectAttempts >= _maxReconnectAttempts) { + log('Max reconnect attempts reached'); + return; + } + + _reconnectTimer?.cancel(); + _updateState(WebSocketConnectionState.reconnecting); + + // Exponential backoff + final delay = _baseReconnectDelay * (1 << _reconnectAttempts); + _reconnectAttempts++; + + log('Scheduling reconnect in ${delay.inSeconds}s (attempt $_reconnectAttempts)'); + _reconnectTimer = Timer(delay, connect); + } + + void _updateState(WebSocketConnectionState state) { + _currentState = state; + _connectionStateController.add(state); + } + + /// Dispose resources + Future dispose() async { + await disconnect(); + await _connectionStateController.close(); + await _messageController.close(); + } +} diff --git a/lib/providers/video_player_provider.dart b/lib/providers/video_player_provider.dart index 28422a161..77bda84ff 100644 --- a/lib/providers/video_player_provider.dart +++ b/lib/providers/video_player_provider.dart @@ -10,6 +10,8 @@ import 'package:fladder/models/media_playback_model.dart'; import 'package:fladder/models/playback/playback_model.dart'; import 'package:fladder/providers/settings/client_settings_provider.dart'; import 'package:fladder/providers/settings/video_player_settings_provider.dart'; +import 'package:fladder/providers/syncplay/syncplay_models.dart'; +import 'package:fladder/providers/syncplay/syncplay_provider.dart'; import 'package:fladder/util/debouncer.dart'; import 'package:fladder/wrappers/media_control_wrapper.dart'; @@ -36,6 +38,12 @@ class VideoPlayerNotifier extends StateNotifier { final Debouncer debouncer = Debouncer(const Duration(milliseconds: 125)); + /// Flag to indicate if the current action is initiated by SyncPlay + bool _syncPlayAction = false; + + /// Check if SyncPlay is active + bool get _isSyncPlayActive => ref.read(isSyncPlayActiveProvider); + void init() async { debouncer.run(() async { await state.dispose(); @@ -56,11 +64,62 @@ class VideoPlayerNotifier extends StateNotifier { if (subscription != null) { subscriptions.add(subscription); } + + // Register player callbacks with SyncPlay + _registerSyncPlayCallbacks(); }); } - Future updateBuffering(bool event) async => - mediaState.update((state) => state.buffering == event ? state : state.copyWith(buffering: event)); + /// Register player callbacks with SyncPlay controller + void _registerSyncPlayCallbacks() { + ref.read(syncPlayProvider.notifier).registerPlayer( + onPlay: () async { + _syncPlayAction = true; + await state.play(); + _syncPlayAction = false; + }, + onPause: () async { + _syncPlayAction = true; + await state.pause(); + _syncPlayAction = false; + }, + onSeek: (positionTicks) async { + _syncPlayAction = true; + final position = Duration(microseconds: positionTicks ~/ 10); + await state.seek(position); + _syncPlayAction = false; + }, + onStop: () async { + _syncPlayAction = true; + await state.stop(); + _syncPlayAction = false; + }, + getPositionTicks: () { + final position = playbackState.position; + return secondsToTicks(position.inMilliseconds / 1000); + }, + isPlaying: () => playbackState.playing, + isBuffering: () => playbackState.buffering, + ); + } + + Future updateBuffering(bool event) async { + final oldState = playbackState; + if (oldState.buffering == event) return; + + mediaState.update((state) => state.copyWith(buffering: event)); + + // Report buffering state to SyncPlay if active + if (_isSyncPlayActive && !_syncPlayAction) { + if (event) { + // Started buffering + ref.read(syncPlayProvider.notifier).reportBuffering(); + } else { + // Finished buffering - ready + ref.read(syncPlayProvider.notifier).reportReady(); + } + } + } Future updateBuffer(Duration buffer) async { mediaState.update( @@ -211,4 +270,45 @@ class VideoPlayerNotifier extends StateNotifier { return false; } + + // ============================================ + // User-initiated actions (go through SyncPlay if active) + // ============================================ + + /// User-initiated play - routes through SyncPlay if active + Future userPlay() async { + if (_isSyncPlayActive) { + await ref.read(syncPlayProvider.notifier).requestUnpause(); + } else { + await state.play(); + } + } + + /// User-initiated pause - routes through SyncPlay if active + Future userPause() async { + if (_isSyncPlayActive) { + await ref.read(syncPlayProvider.notifier).requestPause(); + } else { + await state.pause(); + } + } + + /// User-initiated seek - routes through SyncPlay if active + Future userSeek(Duration position) async { + if (_isSyncPlayActive) { + final positionTicks = secondsToTicks(position.inMilliseconds / 1000); + await ref.read(syncPlayProvider.notifier).requestSeek(positionTicks); + } else { + await state.seek(position); + } + } + + /// User-initiated play/pause toggle - routes through SyncPlay if active + Future userPlayOrPause() async { + if (playbackState.playing) { + await userPause(); + } else { + await userPlay(); + } + } } diff --git a/lib/screens/home_screen.dart b/lib/screens/home_screen.dart index e449f35df..0e15deb0c 100644 --- a/lib/screens/home_screen.dart +++ b/lib/screens/home_screen.dart @@ -20,6 +20,7 @@ import 'package:fladder/widgets/keyboard/slide_in_keyboard.dart'; import 'package:fladder/widgets/navigation_scaffold/components/adaptive_fab.dart'; import 'package:fladder/widgets/navigation_scaffold/components/destination_model.dart'; import 'package:fladder/widgets/navigation_scaffold/navigation_scaffold.dart'; +import 'package:fladder/widgets/syncplay/dashboard_fabs.dart'; enum HomeTabs { dashboard, @@ -83,13 +84,7 @@ class HomeScreen extends ConsumerWidget { selectedIcon: Icon(e.selectedIcon), route: const DashboardRoute(), action: () => e.navigate(context), - floatingActionButton: AdaptiveFab( - context: context, - title: context.localized.search, - key: Key(e.name.capitalize()), - onPressed: () => context.router.navigate(LibrarySearchRoute()), - child: const Icon(IconsaxPlusLinear.search_normal_1), - ), + customFab: const DashboardFabs(), ); case HomeTabs.favorites: return DestinationModel( diff --git a/lib/screens/video_player/video_player_controls.dart b/lib/screens/video_player/video_player_controls.dart index 92c74f10d..5466cff6f 100644 --- a/lib/screens/video_player/video_player_controls.dart +++ b/lib/screens/video_player/video_player_controls.dart @@ -38,6 +38,7 @@ import 'package:fladder/util/list_padding.dart'; import 'package:fladder/util/localization_helper.dart'; import 'package:fladder/util/string_extensions.dart'; import 'package:fladder/widgets/full_screen_helpers/full_screen_wrapper.dart'; +import 'package:fladder/widgets/syncplay/syncplay_badge.dart'; class DesktopControls extends ConsumerStatefulWidget { const DesktopControls({super.key}); @@ -99,7 +100,7 @@ class _DesktopControlsState extends ConsumerState { children: [ Positioned.fill( child: GestureDetector( - onTap: initInputDevice == InputDevice.pointer ? () => player.playOrPause() : () => toggleOverlay(), + onTap: initInputDevice == InputDevice.pointer ? () => ref.read(videoPlayerProvider.notifier).userPlayOrPause() : () => toggleOverlay(), onDoubleTap: initInputDevice == InputDevice.pointer ? () => fullScreenHelper.toggleFullScreen(ref) : null, ), @@ -188,7 +189,7 @@ class _DesktopControlsState extends ConsumerState { : 1, duration: const Duration(milliseconds: 250), child: IconButton.outlined( - onPressed: () => ref.read(videoPlayerProvider).play(), + onPressed: () => ref.read(videoPlayerProvider.notifier).userPlay(), isSelected: true, iconSize: 65, tooltip: "Resume video", @@ -254,6 +255,7 @@ class _DesktopControlsState extends ConsumerState { ], ), ), + const SyncPlayBadge(), if (initInputDevice == InputDevice.touch) Align( alignment: Alignment.centerRight, @@ -358,7 +360,7 @@ class _DesktopControlsState extends ConsumerState { IconButton.filledTonal( iconSize: 38, onPressed: () { - ref.read(videoPlayerProvider).playOrPause(); + ref.read(videoPlayerProvider.notifier).userPlayOrPause(); }, icon: Icon( mediaPlayback.playing ? IconsaxPlusBold.pause : IconsaxPlusBold.play, @@ -473,7 +475,7 @@ class _DesktopControlsState extends ConsumerState { buffer: mediaPlayback.buffer, buffering: mediaPlayback.buffering, timerReset: () => timer.reset(), - onPositionChanged: (position) => ref.read(videoPlayerProvider).seek(position), + onPositionChanged: (position) => ref.read(videoPlayerProvider.notifier).userSeek(position), ), ), const SizedBox(height: 4), @@ -616,7 +618,7 @@ class _DesktopControlsState extends ConsumerState { final end = mediaSegment?.end; if (end != null) { resetTimer(); - ref.read(videoPlayerProvider).seek(end); + ref.read(videoPlayerProvider.notifier).userSeek(end); if (segmentId != null) { Future(() { @@ -635,14 +637,14 @@ class _DesktopControlsState extends ConsumerState { final mediaPlayback = ref.read(mediaPlaybackProvider); resetTimer(); final newPosition = (mediaPlayback.position.inSeconds - seconds).clamp(0, mediaPlayback.duration.inSeconds); - ref.read(videoPlayerProvider).seek(Duration(seconds: newPosition)); + ref.read(videoPlayerProvider.notifier).userSeek(Duration(seconds: newPosition)); } void seekForward(WidgetRef ref, {int seconds = 15}) { final mediaPlayback = ref.read(mediaPlaybackProvider); resetTimer(); final newPosition = (mediaPlayback.position.inSeconds + seconds).clamp(0, mediaPlayback.duration.inSeconds); - ref.read(videoPlayerProvider).seek(Duration(seconds: newPosition)); + ref.read(videoPlayerProvider.notifier).userSeek(Duration(seconds: newPosition)); } void toggleOverlay({bool? value}) { @@ -721,7 +723,7 @@ class _DesktopControlsState extends ConsumerState { switch (value) { case VideoHotKeys.playPause: - ref.read(videoPlayerProvider).playOrPause(); + ref.read(videoPlayerProvider.notifier).userPlayOrPause(); return true; case VideoHotKeys.volumeUp: resetTimer(); diff --git a/lib/widgets/navigation_scaffold/components/destination_model.dart b/lib/widgets/navigation_scaffold/components/destination_model.dart index f5e4255c8..adf49cb3a 100644 --- a/lib/widgets/navigation_scaffold/components/destination_model.dart +++ b/lib/widgets/navigation_scaffold/components/destination_model.dart @@ -14,6 +14,8 @@ class DestinationModel { final String? tooltip; final Widget? badge; final AdaptiveFab? floatingActionButton; + /// Custom FAB widget - takes precedence over floatingActionButton if provided + final Widget? customFab; DestinationModel({ required this.label, @@ -24,8 +26,12 @@ class DestinationModel { this.tooltip, this.badge, this.floatingActionButton, + this.customFab, }); + /// Returns the FAB widget to use - prefers customFab over floatingActionButton.normal + Widget? get fabWidget => customFab ?? floatingActionButton?.normal; + /// Converts this [DestinationModel] to a [NavigationRailDestination] used in a [NavigationRail]. NavigationRailDestination toNavigationRailDestination({EdgeInsets? padding}) { return NavigationRailDestination( diff --git a/lib/widgets/navigation_scaffold/components/side_navigation_bar.dart b/lib/widgets/navigation_scaffold/components/side_navigation_bar.dart index da0053b47..e226d3ec7 100644 --- a/lib/widgets/navigation_scaffold/components/side_navigation_bar.dart +++ b/lib/widgets/navigation_scaffold/components/side_navigation_bar.dart @@ -139,7 +139,7 @@ class _SideNavigationBarState extends ConsumerState { const EdgeInsets.symmetric(horizontal: 4).copyWith(bottom: expandedSideBar ? 10 : 0), child: AnimatedFadeSize( duration: const Duration(milliseconds: 250), - child: shouldExpand ? actionButton(context).extended : actionButton(context).normal, + child: actionButtonWidget(context, shouldExpand), ), ), ], @@ -359,6 +359,21 @@ class _SideNavigationBarState extends ConsumerState { child: const Icon(IconsaxPlusLinear.search_normal_1), ); } + + Widget actionButtonWidget(BuildContext context, bool expanded) { + final destination = (widget.currentIndex >= 0 && widget.currentIndex < widget.destinations.length) + ? widget.destinations[widget.currentIndex] + : null; + + // If there's a custom FAB widget, use it (doesn't support extended mode) + if (destination?.customFab != null) { + return destination!.customFab!; + } + + // Otherwise use the AdaptiveFab with extended/normal modes + final fab = actionButton(context); + return expanded ? fab.extended : fab.normal; + } } class _RailTraversalPolicy extends ReadingOrderTraversalPolicy { diff --git a/lib/widgets/navigation_scaffold/navigation_scaffold.dart b/lib/widgets/navigation_scaffold/navigation_scaffold.dart index 658e010f6..f4e9f5e3a 100644 --- a/lib/widgets/navigation_scaffold/navigation_scaffold.dart +++ b/lib/widgets/navigation_scaffold/navigation_scaffold.dart @@ -115,7 +115,7 @@ class _NavigationScaffoldState extends ConsumerState { resizeToAvoidBottomInset: false, extendBody: true, floatingActionButton: AdaptiveLayout.layoutModeOf(context) == LayoutMode.single && isHomeScreen - ? widget.destinations.elementAtOrNull(currentIndex)?.floatingActionButton?.normal + ? widget.destinations.elementAtOrNull(currentIndex)?.fabWidget : null, drawer: homeRoutes.any((element) => element.name.contains(currentLocation)) ? NestedNavigationDrawer( diff --git a/lib/widgets/syncplay/dashboard_fabs.dart b/lib/widgets/syncplay/dashboard_fabs.dart new file mode 100644 index 000000000..c8073dc1b --- /dev/null +++ b/lib/widgets/syncplay/dashboard_fabs.dart @@ -0,0 +1,91 @@ +import 'package:flutter/material.dart'; + +import 'package:auto_route/auto_route.dart'; +import 'package:flutter_riverpod/flutter_riverpod.dart'; +import 'package:iconsax_plus/iconsax_plus.dart'; + +import 'package:fladder/providers/syncplay/syncplay_provider.dart'; +import 'package:fladder/routes/auto_router.gr.dart'; +import 'package:fladder/util/localization_helper.dart'; +import 'package:fladder/widgets/navigation_scaffold/components/adaptive_fab.dart'; +import 'package:fladder/widgets/syncplay/syncplay_group_sheet.dart'; + +/// Combined FAB for dashboard with search and SyncPlay actions +class DashboardFabs extends ConsumerWidget { + const DashboardFabs({super.key}); + + @override + Widget build(BuildContext context, WidgetRef ref) { + final isActive = ref.watch(isSyncPlayActiveProvider); + + return Row( + mainAxisSize: MainAxisSize.min, + spacing: 8, + children: [ + // SyncPlay FAB + _SyncPlayFabButton(isActive: isActive), + // Search FAB + AdaptiveFab( + context: context, + title: context.localized.search, + key: const Key('dashboard_search'), + onPressed: () => context.router.navigate(LibrarySearchRoute()), + child: const Icon(IconsaxPlusLinear.search_normal_1), + ).normal, + ], + ); + } +} + +class _SyncPlayFabButton extends StatelessWidget { + final bool isActive; + + const _SyncPlayFabButton({required this.isActive}); + + @override + Widget build(BuildContext context) { + return Hero( + tag: 'syncplay_fab', + child: IconButton.filledTonal( + iconSize: 26, + tooltip: 'SyncPlay', + onPressed: () => _showSyncPlaySheet(context), + style: IconButton.styleFrom( + backgroundColor: isActive ? Theme.of(context).colorScheme.primaryContainer : null, + ), + icon: Padding( + padding: const EdgeInsets.all(8.0), + child: Stack( + children: [ + Icon( + isActive ? IconsaxPlusBold.people : IconsaxPlusLinear.people, + ), + if (isActive) + Positioned( + right: 0, + bottom: 0, + child: Container( + width: 8, + height: 8, + decoration: BoxDecoration( + color: Theme.of(context).colorScheme.primary, + shape: BoxShape.circle, + ), + ), + ), + ], + ), + ), + ), + ); + } + + void _showSyncPlaySheet(BuildContext context) { + showModalBottomSheet( + context: context, + isScrollControlled: true, + useSafeArea: true, + builder: (context) => const SyncPlayGroupSheet(), + ); + } +} diff --git a/lib/widgets/syncplay/syncplay_badge.dart b/lib/widgets/syncplay/syncplay_badge.dart new file mode 100644 index 000000000..43d650ce0 --- /dev/null +++ b/lib/widgets/syncplay/syncplay_badge.dart @@ -0,0 +1,110 @@ +import 'package:flutter/material.dart'; + +import 'package:flutter_riverpod/flutter_riverpod.dart'; +import 'package:iconsax_plus/iconsax_plus.dart'; + +import 'package:fladder/providers/syncplay/syncplay_models.dart'; +import 'package:fladder/providers/syncplay/syncplay_provider.dart'; + +/// Badge widget showing SyncPlay status in the video player +class SyncPlayBadge extends ConsumerWidget { + const SyncPlayBadge({super.key}); + + @override + Widget build(BuildContext context, WidgetRef ref) { + final isActive = ref.watch(isSyncPlayActiveProvider); + + if (!isActive) return const SizedBox.shrink(); + + final groupName = ref.watch(syncPlayGroupNameProvider); + final groupState = ref.watch(syncPlayGroupStateProvider); + + final (icon, color) = switch (groupState) { + SyncPlayGroupState.idle => ( + IconsaxPlusLinear.pause_circle, + Theme.of(context).colorScheme.onSurfaceVariant, + ), + SyncPlayGroupState.waiting => ( + IconsaxPlusLinear.timer_1, + Theme.of(context).colorScheme.tertiary, + ), + SyncPlayGroupState.paused => ( + IconsaxPlusLinear.pause, + Theme.of(context).colorScheme.secondary, + ), + SyncPlayGroupState.playing => ( + IconsaxPlusLinear.play, + Theme.of(context).colorScheme.primary, + ), + }; + + return Container( + padding: const EdgeInsets.symmetric(horizontal: 10, vertical: 6), + decoration: BoxDecoration( + color: Theme.of(context).colorScheme.surface.withValues(alpha: 0.85), + borderRadius: BorderRadius.circular(20), + border: Border.all( + color: color.withValues(alpha: 0.5), + width: 1, + ), + ), + child: Row( + mainAxisSize: MainAxisSize.min, + children: [ + Icon( + IconsaxPlusLinear.people, + size: 14, + color: color, + ), + const SizedBox(width: 6), + Text( + groupName ?? 'SyncPlay', + style: Theme.of(context).textTheme.labelSmall?.copyWith( + color: Theme.of(context).colorScheme.onSurface, + ), + ), + const SizedBox(width: 6), + Icon( + icon, + size: 12, + color: color, + ), + ], + ), + ); + } +} + +/// Compact SyncPlay indicator for tight spaces +class SyncPlayIndicator extends ConsumerWidget { + const SyncPlayIndicator({super.key}); + + @override + Widget build(BuildContext context, WidgetRef ref) { + final isActive = ref.watch(isSyncPlayActiveProvider); + + if (!isActive) return const SizedBox.shrink(); + + final groupState = ref.watch(syncPlayGroupStateProvider); + + final color = switch (groupState) { + SyncPlayGroupState.idle => Theme.of(context).colorScheme.onSurfaceVariant, + SyncPlayGroupState.waiting => Theme.of(context).colorScheme.tertiary, + SyncPlayGroupState.paused => Theme.of(context).colorScheme.secondary, + SyncPlayGroupState.playing => Theme.of(context).colorScheme.primary, + }; + + return Container( + padding: const EdgeInsets.all(6), + decoration: BoxDecoration( + color: color.withValues(alpha: 0.2), + shape: BoxShape.circle, + ), + child: Icon( + IconsaxPlusBold.people, + size: 16, + color: color, + ), + ); + } +} diff --git a/lib/widgets/syncplay/syncplay_fab.dart b/lib/widgets/syncplay/syncplay_fab.dart new file mode 100644 index 000000000..7406b7dfe --- /dev/null +++ b/lib/widgets/syncplay/syncplay_fab.dart @@ -0,0 +1,56 @@ +import 'package:flutter/material.dart'; + +import 'package:flutter_riverpod/flutter_riverpod.dart'; +import 'package:iconsax_plus/iconsax_plus.dart'; + +import 'package:fladder/providers/syncplay/syncplay_provider.dart'; +import 'package:fladder/util/localization_helper.dart'; +import 'package:fladder/widgets/navigation_scaffold/components/adaptive_fab.dart'; +import 'package:fladder/widgets/syncplay/syncplay_group_sheet.dart'; + +/// FAB for accessing SyncPlay from the home screen +class SyncPlayFab extends ConsumerWidget { + const SyncPlayFab({super.key}); + + @override + Widget build(BuildContext context, WidgetRef ref) { + final isActive = ref.watch(isSyncPlayActiveProvider); + + return AdaptiveFab( + context: context, + title: isActive ? context.localized.syncPlay : 'SyncPlay', + heroTag: 'syncplay_fab', + backgroundColor: isActive ? Theme.of(context).colorScheme.primaryContainer : null, + onPressed: () => _showSyncPlaySheet(context), + child: Stack( + children: [ + Icon( + isActive ? IconsaxPlusBold.people : IconsaxPlusLinear.people, + ), + if (isActive) + Positioned( + right: 0, + bottom: 0, + child: Container( + width: 8, + height: 8, + decoration: BoxDecoration( + color: Theme.of(context).colorScheme.primary, + shape: BoxShape.circle, + ), + ), + ), + ], + ), + ).normal; + } + + void _showSyncPlaySheet(BuildContext context) { + showModalBottomSheet( + context: context, + isScrollControlled: true, + useSafeArea: true, + builder: (context) => const SyncPlayGroupSheet(), + ); + } +} diff --git a/lib/widgets/syncplay/syncplay_group_sheet.dart b/lib/widgets/syncplay/syncplay_group_sheet.dart new file mode 100644 index 000000000..f6ff206f7 --- /dev/null +++ b/lib/widgets/syncplay/syncplay_group_sheet.dart @@ -0,0 +1,438 @@ +import 'package:flutter/material.dart'; + +import 'package:flutter_riverpod/flutter_riverpod.dart'; +import 'package:iconsax_plus/iconsax_plus.dart'; + +import 'package:fladder/jellyfin/jellyfin_open_api.swagger.dart'; +import 'package:fladder/providers/syncplay/syncplay_models.dart'; +import 'package:fladder/providers/syncplay/syncplay_provider.dart'; +import 'package:fladder/screens/shared/fladder_snackbar.dart'; +import 'package:fladder/theme.dart'; +import 'package:fladder/util/adaptive_layout/adaptive_layout.dart'; +import 'package:fladder/util/localization_helper.dart'; + +/// Bottom sheet for managing SyncPlay groups +class SyncPlayGroupSheet extends ConsumerStatefulWidget { + const SyncPlayGroupSheet({super.key}); + + @override + ConsumerState createState() => _SyncPlayGroupSheetState(); +} + +class _SyncPlayGroupSheetState extends ConsumerState { + List? _groups; + bool _isLoading = true; + String? _error; + + @override + void initState() { + super.initState(); + _loadGroups(); + } + + Future _loadGroups() async { + setState(() { + _isLoading = true; + _error = null; + }); + + try { + // Ensure we're connected first + await ref.read(syncPlayProvider.notifier).connect(); + final groups = await ref.read(syncPlayProvider.notifier).listGroups(); + if (mounted) { + setState(() { + _groups = groups; + _isLoading = false; + }); + } + } catch (e) { + if (mounted) { + setState(() { + _error = e.toString(); + _isLoading = false; + }); + } + } + } + + Future _createGroup() async { + final name = await _showCreateGroupDialog(); + if (name == null || name.isEmpty) return; + + setState(() => _isLoading = true); + + final group = await ref.read(syncPlayProvider.notifier).createGroup(name); + if (group != null && mounted) { + fladderSnackbar(context, title: 'Created group "${group.groupName}"'); + Navigator.of(context).pop(); + } else { + setState(() => _isLoading = false); + if (mounted) { + fladderSnackbar(context, title: 'Failed to create group'); + } + } + } + + Future _showCreateGroupDialog() async { + final controller = TextEditingController(); + return showDialog( + context: context, + builder: (context) => AlertDialog( + title: const Text('Create SyncPlay Group'), + content: TextField( + controller: controller, + autofocus: true, + decoration: const InputDecoration( + labelText: 'Group Name', + hintText: 'Movie Night', + ), + onSubmitted: (value) => Navigator.of(context).pop(value), + ), + actions: [ + TextButton( + onPressed: () => Navigator.of(context).pop(), + child: Text(context.localized.cancel), + ), + FilledButton( + onPressed: () => Navigator.of(context).pop(controller.text), + child: Text(context.localized.create), + ), + ], + ), + ); + } + + Future _joinGroup(GroupInfoDto group) async { + setState(() => _isLoading = true); + + final success = await ref.read(syncPlayProvider.notifier).joinGroup(group.groupId ?? ''); + if (success && mounted) { + fladderSnackbar(context, title: 'Joined "${group.groupName}"'); + Navigator.of(context).pop(); + } else { + setState(() => _isLoading = false); + if (mounted) { + fladderSnackbar(context, title: 'Failed to join group'); + } + } + } + + Future _leaveGroup() async { + await ref.read(syncPlayProvider.notifier).leaveGroup(); + if (mounted) { + fladderSnackbar(context, title: 'Left SyncPlay group'); + Navigator.of(context).pop(); + } + } + + @override + Widget build(BuildContext context) { + final syncPlayState = ref.watch(syncPlayProvider); + + return ConstrainedBox( + constraints: BoxConstraints( + maxHeight: MediaQuery.sizeOf(context).height * 0.7, + ), + child: Padding( + padding: const EdgeInsets.symmetric(horizontal: 8).add(MediaQuery.paddingOf(context)), + child: Card( + shape: RoundedRectangleBorder( + borderRadius: FladderTheme.largeShape.borderRadius, + ), + child: Column( + mainAxisSize: MainAxisSize.min, + children: [ + // Drag handle + if (AdaptiveLayout.inputDeviceOf(context) == InputDevice.touch) + Padding( + padding: const EdgeInsets.symmetric(vertical: 16), + child: Container( + height: 8, + width: 35, + decoration: BoxDecoration( + color: Theme.of(context).colorScheme.onSurface, + borderRadius: FladderTheme.largeShape.borderRadius, + ), + ), + ) + else + const SizedBox(height: 8), + + // Header + Padding( + padding: const EdgeInsets.symmetric(horizontal: 16), + child: Row( + children: [ + Icon( + IconsaxPlusLinear.people, + color: Theme.of(context).colorScheme.primary, + ), + const SizedBox(width: 12), + Expanded( + child: Text( + 'SyncPlay', + style: Theme.of(context).textTheme.titleLarge, + ), + ), + if (syncPlayState.isInGroup) + TextButton.icon( + onPressed: _leaveGroup, + icon: const Icon(IconsaxPlusLinear.logout), + label: Text(context.localized.leave), + ) + else + IconButton( + onPressed: _createGroup, + icon: const Icon(IconsaxPlusLinear.add), + tooltip: context.localized.create, + ), + ], + ), + ), + + const Divider(), + + // Content + Flexible( + child: _buildContent(syncPlayState), + ), + ], + ), + ), + ), + ); + } + + Widget _buildContent(SyncPlayState syncPlayState) { + // If already in a group, show group info + if (syncPlayState.isInGroup) { + return _buildActiveGroupView(syncPlayState); + } + + // Loading state + if (_isLoading) { + return const Center( + child: Padding( + padding: EdgeInsets.all(32), + child: CircularProgressIndicator(), + ), + ); + } + + // Error state + if (_error != null) { + return Center( + child: Padding( + padding: const EdgeInsets.all(32), + child: Column( + mainAxisSize: MainAxisSize.min, + children: [ + Icon( + IconsaxPlusLinear.warning_2, + size: 48, + color: Theme.of(context).colorScheme.error, + ), + const SizedBox(height: 16), + Text( + 'Failed to load groups', + style: Theme.of(context).textTheme.titleMedium, + ), + const SizedBox(height: 8), + TextButton( + onPressed: _loadGroups, + child: Text(context.localized.retry), + ), + ], + ), + ), + ); + } + + // Empty state + if (_groups == null || _groups!.isEmpty) { + return Center( + child: Padding( + padding: const EdgeInsets.all(32), + child: Column( + mainAxisSize: MainAxisSize.min, + children: [ + Icon( + IconsaxPlusLinear.people, + size: 48, + color: Theme.of(context).colorScheme.onSurfaceVariant, + ), + const SizedBox(height: 16), + Text( + 'No active groups', + style: Theme.of(context).textTheme.titleMedium, + ), + const SizedBox(height: 8), + Text( + 'Create a group to watch together', + style: Theme.of(context).textTheme.bodyMedium?.copyWith( + color: Theme.of(context).colorScheme.onSurfaceVariant, + ), + ), + const SizedBox(height: 16), + FilledButton.icon( + onPressed: _createGroup, + icon: const Icon(IconsaxPlusLinear.add), + label: const Text('Create Group'), + ), + ], + ), + ), + ); + } + + // Group list + return ListView.builder( + shrinkWrap: true, + itemCount: _groups!.length, + padding: const EdgeInsets.only(bottom: 16), + itemBuilder: (context, index) { + final group = _groups![index]; + return _GroupListTile( + group: group, + onTap: () => _joinGroup(group), + ); + }, + ); + } + + Widget _buildActiveGroupView(SyncPlayState state) { + return Padding( + padding: const EdgeInsets.all(16), + child: Column( + mainAxisSize: MainAxisSize.min, + crossAxisAlignment: CrossAxisAlignment.start, + children: [ + // Group name + Row( + children: [ + Container( + padding: const EdgeInsets.all(12), + decoration: BoxDecoration( + color: Theme.of(context).colorScheme.primaryContainer, + borderRadius: BorderRadius.circular(12), + ), + child: Icon( + IconsaxPlusBold.people, + color: Theme.of(context).colorScheme.onPrimaryContainer, + ), + ), + const SizedBox(width: 16), + Expanded( + child: Column( + crossAxisAlignment: CrossAxisAlignment.start, + children: [ + Text( + state.groupName ?? 'SyncPlay Group', + style: Theme.of(context).textTheme.titleMedium, + ), + Text( + '${state.participants.length} participants', + style: Theme.of(context).textTheme.bodySmall?.copyWith( + color: Theme.of(context).colorScheme.onSurfaceVariant, + ), + ), + ], + ), + ), + ], + ), + + const SizedBox(height: 16), + + // State indicator + _buildStateIndicator(state), + + const SizedBox(height: 16), + + // Instructions + Text( + 'Browse your library and start playing something to sync with the group.', + style: Theme.of(context).textTheme.bodyMedium?.copyWith( + color: Theme.of(context).colorScheme.onSurfaceVariant, + ), + ), + ], + ), + ); + } + + Widget _buildStateIndicator(SyncPlayState state) { + final (icon, label, color) = switch (state.groupState) { + SyncPlayGroupState.idle => ( + IconsaxPlusLinear.pause_circle, + 'Idle', + Theme.of(context).colorScheme.onSurfaceVariant, + ), + SyncPlayGroupState.waiting => ( + IconsaxPlusLinear.timer_1, + 'Waiting for others...', + Theme.of(context).colorScheme.tertiary, + ), + SyncPlayGroupState.paused => ( + IconsaxPlusLinear.pause, + 'Paused', + Theme.of(context).colorScheme.secondary, + ), + SyncPlayGroupState.playing => ( + IconsaxPlusLinear.play, + 'Playing', + Theme.of(context).colorScheme.primary, + ), + }; + + return Container( + padding: const EdgeInsets.symmetric(horizontal: 12, vertical: 8), + decoration: BoxDecoration( + color: color.withValues(alpha: 0.1), + borderRadius: BorderRadius.circular(8), + ), + child: Row( + mainAxisSize: MainAxisSize.min, + children: [ + Icon(icon, size: 16, color: color), + const SizedBox(width: 8), + Text( + label, + style: Theme.of(context).textTheme.labelMedium?.copyWith(color: color), + ), + ], + ), + ); + } +} + +class _GroupListTile extends StatelessWidget { + final GroupInfoDto group; + final VoidCallback onTap; + + const _GroupListTile({ + required this.group, + required this.onTap, + }); + + @override + Widget build(BuildContext context) { + return ListTile( + leading: CircleAvatar( + backgroundColor: Theme.of(context).colorScheme.primaryContainer, + child: Icon( + IconsaxPlusLinear.people, + color: Theme.of(context).colorScheme.onPrimaryContainer, + ), + ), + title: Text(group.groupName ?? 'Unnamed Group'), + subtitle: Text( + '${group.participants?.length ?? 0} participants', + style: Theme.of(context).textTheme.bodySmall, + ), + trailing: const Icon(IconsaxPlusLinear.arrow_right_3), + onTap: onTap, + ); + } +} diff --git a/pubspec.lock b/pubspec.lock index 34cac7b84..65c282cb2 100644 --- a/pubspec.lock +++ b/pubspec.lock @@ -2315,7 +2315,7 @@ packages: source: hosted version: "1.0.1" web_socket_channel: - dependency: transitive + dependency: "direct main" description: name: web_socket_channel sha256: d645757fb0f4773d602444000a8131ff5d48c9e47adfe9772652dd1a4f2d45c8 diff --git a/pubspec.yaml b/pubspec.yaml index 61d7e21a9..dfa8ce4c3 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -135,6 +135,7 @@ dependencies: dart_mappable: ^4.6.0 flutter_native_splash: ^2.4.7 macos_window_utils: ^1.9.0 + web_socket_channel: ^3.0.3 dependency_overrides: media_kit: From 63d337fbe2aea2dbe94b97a9df3c0bcca163d296 Mon Sep 17 00:00:00 2001 From: Filip Iricanin Date: Sat, 10 Jan 2026 15:36:38 +0100 Subject: [PATCH 02/25] feat: enhance SyncPlay integration and synchronized playback This commit improves the SyncPlay implementation by ensuring proper synchronization between group members and the media player. Key changes include: - **SyncPlay Controller**: Added detailed logging for debugging and updated playback trigger logic to handle `NewPlaylist` and `SetCurrentItem` events even when the item ID hasn't changed. - **Playback Routing**: Integrated SyncPlay into the global playback helpers. Playing an item or playlist now automatically sets the SyncPlay queue if a group is active. - **Player Controls**: Updated the video progress bar and player provider to route user play, pause, and seek actions through the SyncPlay controller when active. - **UI Adjustments**: Updated dashboard FABs to use a `Column` layout in dual-pane mode and improved the visual feedback of the playback information card in the video player. - **Reliability**: Modified `userPlay` to report readiness to the SyncPlay server immediately after requesting an unpause to ensure consistent state broadcasting. --- ...ncplay_mvp_implementation_96c11d62.plan.md | 33 +++++++---- .../syncplay/syncplay_controller.dart | 55 ++++++++++++------- lib/providers/video_player_provider.dart | 5 +- .../components/video_progress_bar.dart | 9 ++- .../video_player/video_player_controls.dart | 7 ++- .../item_base_model/play_item_helpers.dart | 43 +++++++++++++++ lib/widgets/syncplay/dashboard_fabs.dart | 42 ++++++++------ 7 files changed, 140 insertions(+), 54 deletions(-) diff --git a/.cursor/plans/syncplay_mvp_implementation_96c11d62.plan.md b/.cursor/plans/syncplay_mvp_implementation_96c11d62.plan.md index aeae95dc9..b9ec5c78c 100644 --- a/.cursor/plans/syncplay_mvp_implementation_96c11d62.plan.md +++ b/.cursor/plans/syncplay_mvp_implementation_96c11d62.plan.md @@ -149,18 +149,27 @@ The Jellyfin client at `lib/jellyfin/jellyfin_open_api.swagger.dart` already pro Bridge between SyncPlay and existing `BasePlayer` / `MediaControlsWrapper`: class SyncPlayPlayerAdapter { - final BasePlayer player; - bool _syncPlayAction = false; // Flag to distinguish SyncPlay vs user actions - - // Wrap play/pause/seek to set flag - Future syncPlayPause() async { - _syncPlayAction = true; - await player.pause(); - _syncPlayAction = false; - } - - // Expose streams for buffering/ready detection - Stream get onBuffering => player.stateStream.map((s) => s.buffering); + +final BasePlayer player; + +bool _syncPlayAction = false; // Flag to distinguish SyncPlay vs user actions + +// Wrap play/pause/seek to set flag + +Future syncPlayPause() async { + +_syncPlayAction = true; + +await player.pause(); + +_syncPlayAction = false; + +} + +// Expose streams for buffering/ready detection + +Stream get onBuffering => player.stateStream.map((s) => s.buffering); + } ### 5. UI Components diff --git a/lib/providers/syncplay/syncplay_controller.dart b/lib/providers/syncplay/syncplay_controller.dart index ecfd7b274..640401605 100644 --- a/lib/providers/syncplay/syncplay_controller.dart +++ b/lib/providers/syncplay/syncplay_controller.dart @@ -239,15 +239,19 @@ class SyncPlayController { int playingItemPosition = 0, int startPositionTicks = 0, }) async { - if (!_state.isInGroup) return; + if (!_state.isInGroup) { + log('SyncPlay: Cannot set queue - not in group'); + return; + } try { - await _api.syncPlaySetNewQueuePost( - body: PlayRequestDto( - playingQueue: itemIds, - playingItemPosition: playingItemPosition, - startPositionTicks: startPositionTicks, - ), + final body = PlayRequestDto( + playingQueue: itemIds, + playingItemPosition: playingItemPosition, + startPositionTicks: startPositionTicks, ); + log('SyncPlay: Setting new queue: ${body.toJson()}'); + final response = await _api.syncPlaySetNewQueuePost(body: body); + log('SyncPlay: SetNewQueue response: ${response.statusCode} - ${response.body}'); } catch (e) { log('SyncPlay: Failed to set new queue: $e'); } @@ -521,33 +525,41 @@ class SyncPlayController { positionTicks: startPositionTicks, )); - log('SyncPlay: PlayQueue update - playing: $playingItemId (reason: $reason, isPlaying: $isPlayingNow)'); - - // Trigger playback if this is a new item and we should be playing - if (playingItemId != null && - playingItemId != previousItemId && - (reason == 'NewPlaylist' || reason == 'SetCurrentItem' || isPlayingNow)) { + log('SyncPlay: PlayQueue update - playing: $playingItemId (reason: $reason, isPlaying: $isPlayingNow, previousItemId: $previousItemId)'); + + // Trigger playback for NewPlaylist/SetCurrentItem regardless of whether item changed + // (the same user who set the queue also receives the update and needs to start playing) + final shouldTrigger = playingItemId != null && + (reason == 'NewPlaylist' || reason == 'SetCurrentItem' || + (playingItemId != previousItemId && isPlayingNow)); + + log('SyncPlay: shouldTrigger=$shouldTrigger (reason: $reason)'); + + if (shouldTrigger) { log('SyncPlay: Triggering playback for item: $playingItemId'); - _startPlayback(playingItemId, startPositionTicks); + _startPlayback(playingItemId!, startPositionTicks); } } /// Start playback of an item from SyncPlay Future _startPlayback(String itemId, int startPositionTicks) async { - log('SyncPlay: Starting playback for item: $itemId'); + log('SyncPlay: _startPlayback called for item: $itemId, ticks: $startPositionTicks'); try { // Fetch the item from Jellyfin + log('SyncPlay: Fetching item from API...'); final api = _ref.read(jellyApiProvider); final itemResponse = await api.usersUserIdItemsItemIdGet(itemId: itemId); final itemModel = itemResponse.body; if (itemModel == null) { - log('SyncPlay: Failed to fetch item $itemId'); + log('SyncPlay: Failed to fetch item $itemId - response body was null'); return; } + log('SyncPlay: Fetched item: ${itemModel.name}'); // Create playback model (context is optional - null for SyncPlay auto-play) + log('SyncPlay: Creating playback model...'); final playbackHelper = _ref.read(playbackModelHelper); final startPosition = Duration(microseconds: startPositionTicks ~/ 10); @@ -561,8 +573,10 @@ class SyncPlayController { log('SyncPlay: Failed to create playback model for $itemId'); return; } + log('SyncPlay: Playback model created successfully'); // Load and play + log('SyncPlay: Loading playback item...'); final loadedCorrectly = await _ref.read(videoPlayerProvider.notifier).loadPlaybackItem( playbackModel, startPosition, @@ -572,26 +586,29 @@ class SyncPlayController { log('SyncPlay: Failed to load playback item $itemId'); return; } + log('SyncPlay: Playback item loaded successfully'); // Set state to fullScreen and push the VideoPlayer route _ref.read(mediaPlaybackProvider.notifier).update( (state) => state.copyWith(state: VideoPlayerState.fullScreen), ); + log('SyncPlay: Set state to fullScreen'); // Push VideoPlayer using the global router's navigator key final navigatorKey = getNavigatorKey(_ref); + log('SyncPlay: Navigator key: ${navigatorKey != null ? "exists" : "null"}, currentState: ${navigatorKey?.currentState != null ? "exists" : "null"}'); if (navigatorKey?.currentState != null) { navigatorKey!.currentState!.push( MaterialPageRoute( builder: (context) => const VideoPlayer(), ), ); - log('SyncPlay: Successfully started fullscreen playback for $itemId'); + log('SyncPlay: Successfully pushed VideoPlayer route for $itemId'); } else { log('SyncPlay: No navigator available, player loaded but not opened fullscreen'); } - } catch (e) { - log('SyncPlay: Error starting playback: $e'); + } catch (e, stackTrace) { + log('SyncPlay: Error starting playback: $e\n$stackTrace'); } } diff --git a/lib/providers/video_player_provider.dart b/lib/providers/video_player_provider.dart index 77bda84ff..e5fd97762 100644 --- a/lib/providers/video_player_provider.dart +++ b/lib/providers/video_player_provider.dart @@ -278,7 +278,10 @@ class VideoPlayerNotifier extends StateNotifier { /// User-initiated play - routes through SyncPlay if active Future userPlay() async { if (_isSyncPlayActive) { - await ref.read(syncPlayProvider.notifier).requestUnpause(); + final syncPlay = ref.read(syncPlayProvider.notifier); + await syncPlay.requestUnpause(); + // Must report ready after unpause for server to broadcast play command + await syncPlay.reportReady(isPlaying: true); } else { await state.play(); } diff --git a/lib/screens/video_player/components/video_progress_bar.dart b/lib/screens/video_player/components/video_progress_bar.dart index 858dbe2d8..54fc68cdc 100644 --- a/lib/screens/video_player/components/video_progress_bar.dart +++ b/lib/screens/video_player/components/video_progress_bar.dart @@ -107,10 +107,12 @@ class _ChapterProgressSliderState extends ConsumerState { ), onChangeEnd: (e) async { currentDuration = Duration(milliseconds: e.toInt()); - await player.seek(Duration(milliseconds: e ~/ 1)); + // Route seek through SyncPlay if active + widget.onPositionChanged(Duration(milliseconds: e.toInt())); await Future.delayed(const Duration(milliseconds: 250)); if (widget.wasPlaying) { - player.play(); + // Route play through SyncPlay if active + ref.read(videoPlayerProvider.notifier).userPlay(); } widget.timerReset.call(); setState(() { @@ -122,7 +124,8 @@ class _ChapterProgressSliderState extends ConsumerState { onHoverStart = true; }); widget.wasPlayingChanged.call(player.lastState?.playing ?? false); - player.pause(); + // Route pause through SyncPlay if active + ref.read(videoPlayerProvider.notifier).userPause(); }, onChanged: (e) { currentDuration = Duration(milliseconds: e.toInt()); diff --git a/lib/screens/video_player/video_player_controls.dart b/lib/screens/video_player/video_player_controls.dart index 5466cff6f..3714eabf4 100644 --- a/lib/screens/video_player/video_player_controls.dart +++ b/lib/screens/video_player/video_player_controls.dart @@ -441,9 +441,10 @@ class _DesktopControlsState extends ConsumerState { ), const Spacer(), if (playbackModel != null) - InkWell( - onTap: () => showVideoPlaybackInformation(context), - child: Card( + Card( + clipBehavior: Clip.antiAlias, + child: InkWell( + onTap: () => showVideoPlaybackInformation(context), child: Padding( padding: const EdgeInsets.symmetric(horizontal: 8, vertical: 4), child: Text( diff --git a/lib/util/item_base_model/play_item_helpers.dart b/lib/util/item_base_model/play_item_helpers.dart index 6f1b717e8..e27fe4f68 100644 --- a/lib/util/item_base_model/play_item_helpers.dart +++ b/lib/util/item_base_model/play_item_helpers.dart @@ -13,6 +13,8 @@ import 'package:fladder/models/playback/playback_model.dart'; import 'package:fladder/providers/api_provider.dart'; import 'package:fladder/providers/book_viewer_provider.dart'; import 'package:fladder/providers/items/book_details_provider.dart'; +import 'package:fladder/providers/syncplay/syncplay_models.dart'; +import 'package:fladder/providers/syncplay/syncplay_provider.dart'; import 'package:fladder/providers/video_player_provider.dart'; import 'package:fladder/routes/auto_router.gr.dart'; import 'package:fladder/screens/book_viewer/book_viewer_screen.dart'; @@ -199,8 +201,16 @@ extension ItemBaseModelExtensions on ItemBaseModel? { }) async { if (itemModel == null) return; + // If in SyncPlay group, set the queue via SyncPlay instead of playing directly + final isSyncPlayActive = ref.read(isSyncPlayActiveProvider); + if (isSyncPlayActive) { + await _playSyncPlay(context, itemModel, ref, startPosition: startPosition); + return; + } + _showLoadingIndicator(context); + PlaybackModel? model = await ref.read(playbackModelHelper).createPlaybackModel( context, itemModel, @@ -212,6 +222,27 @@ extension ItemBaseModelExtensions on ItemBaseModel? { } } +/// Play item through SyncPlay - sets the queue and lets SyncPlay handle synchronized playback +Future _playSyncPlay( + BuildContext context, + ItemBaseModel itemModel, + WidgetRef ref, { + Duration? startPosition, +}) async { + final startPositionTicks = startPosition != null + ? secondsToTicks(startPosition.inMilliseconds / 1000) + : 0; + + // Set the new queue via SyncPlay - server will broadcast to all clients + await ref.read(syncPlayProvider.notifier).setNewQueue( + itemIds: [itemModel.id], + playingItemPosition: 0, + startPositionTicks: startPositionTicks, + ); + + // The PlayQueue update from server will trigger playback via _handlePlayQueue +} + extension ItemBaseModelsBooleans on List { Future playLibraryItems(BuildContext context, WidgetRef ref, {bool shuffle = false}) async { if (isEmpty) return; @@ -237,6 +268,18 @@ extension ItemBaseModelsBooleans on List { expandedList.shuffle(); } + // If in SyncPlay group, set the queue via SyncPlay + final isSyncPlayActive = ref.read(isSyncPlayActiveProvider); + if (isSyncPlayActive) { + Navigator.of(context, rootNavigator: true).pop(); // Pop loading indicator + await ref.read(syncPlayProvider.notifier).setNewQueue( + itemIds: expandedList.map((e) => e.id).toList(), + playingItemPosition: 0, + startPositionTicks: 0, + ); + return; + } + PlaybackModel? model = await ref.read(playbackModelHelper).createPlaybackModel( context, expandedList.firstOrNull, diff --git a/lib/widgets/syncplay/dashboard_fabs.dart b/lib/widgets/syncplay/dashboard_fabs.dart index c8073dc1b..a69301fe5 100644 --- a/lib/widgets/syncplay/dashboard_fabs.dart +++ b/lib/widgets/syncplay/dashboard_fabs.dart @@ -6,6 +6,7 @@ import 'package:iconsax_plus/iconsax_plus.dart'; import 'package:fladder/providers/syncplay/syncplay_provider.dart'; import 'package:fladder/routes/auto_router.gr.dart'; +import 'package:fladder/util/adaptive_layout/adaptive_layout.dart'; import 'package:fladder/util/localization_helper.dart'; import 'package:fladder/widgets/navigation_scaffold/components/adaptive_fab.dart'; import 'package:fladder/widgets/syncplay/syncplay_group_sheet.dart'; @@ -17,23 +18,32 @@ class DashboardFabs extends ConsumerWidget { @override Widget build(BuildContext context, WidgetRef ref) { final isActive = ref.watch(isSyncPlayActiveProvider); + final isDualLayout = AdaptiveLayout.of(context).layoutMode == LayoutMode.dual; - return Row( - mainAxisSize: MainAxisSize.min, - spacing: 8, - children: [ - // SyncPlay FAB - _SyncPlayFabButton(isActive: isActive), - // Search FAB - AdaptiveFab( - context: context, - title: context.localized.search, - key: const Key('dashboard_search'), - onPressed: () => context.router.navigate(LibrarySearchRoute()), - child: const Icon(IconsaxPlusLinear.search_normal_1), - ).normal, - ], - ); + final children = [ + // SyncPlay FAB + _SyncPlayFabButton(isActive: isActive), + // Search FAB + AdaptiveFab( + context: context, + title: context.localized.search, + key: const Key('dashboard_search'), + onPressed: () => context.router.navigate(LibrarySearchRoute()), + child: const Icon(IconsaxPlusLinear.search_normal_1), + ).normal, + ]; + + return isDualLayout + ? Column( + mainAxisSize: MainAxisSize.min, + spacing: 8, + children: children, + ) + : Row( + mainAxisSize: MainAxisSize.min, + spacing: 8, + children: children, + ); } } From 1519be7b18452e401fa698809ede38ab913a663e Mon Sep 17 00:00:00 2001 From: Filip Iricanin Date: Sun, 11 Jan 2026 01:01:58 +0100 Subject: [PATCH 03/25] feat: Implement app lifecycle handling for SyncPlay This commit introduces automatic reconnection and group rejoining for SyncPlay when the application resumes from the background. Key changes: - Added `forceReconnect` to `WebSocketManager` to immediately reset and reconnect the socket. - Introduced `_SyncPlayLifecycleObserver` to monitor `AppLifecycleState` changes. - Updated `SyncPlayController` to track connection state and group IDs, enabling automatic re-sync and group re-joining upon app resume. - Improved TV navigation by adding `autofocus` to group creation and list items in the SyncPlay group sheet. - Updated generated route files and provider hashes. --- .../syncplay/syncplay_controller.dart | 65 +++++++++++++++++++ lib/providers/syncplay/syncplay_provider.dart | 30 ++++++++- .../syncplay/syncplay_provider.g.dart | 2 +- lib/providers/syncplay/websocket_manager.dart | 12 ++++ lib/routes/auto_router.gr.dart | 36 ++++++++-- .../syncplay/syncplay_group_sheet.dart | 5 ++ 6 files changed, 144 insertions(+), 6 deletions(-) diff --git a/lib/providers/syncplay/syncplay_controller.dart b/lib/providers/syncplay/syncplay_controller.dart index 640401605..625fe3aa0 100644 --- a/lib/providers/syncplay/syncplay_controller.dart +++ b/lib/providers/syncplay/syncplay_controller.dart @@ -2,6 +2,7 @@ import 'dart:async'; import 'dart:developer'; import 'package:flutter/material.dart'; +import 'package:flutter/widgets.dart'; import 'package:flutter_riverpod/flutter_riverpod.dart'; @@ -44,6 +45,10 @@ class SyncPlayController { // Pending command timer Timer? _commandTimer; + // Lifecycle state for reconnection + String? _lastGroupId; + bool _wasConnected = false; + // Player callbacks SyncPlayPlayerCallback? onPlay; SyncPlayPlayerCallback? onPause; @@ -129,6 +134,7 @@ class SyncPlayController { await _api.syncPlayJoinPost( body: JoinGroupRequestDto(groupId: groupId), ); + _lastGroupId = groupId; return true; } catch (e) { log('SyncPlay: Failed to join group: $e'); @@ -141,6 +147,7 @@ class SyncPlayController { if (!_state.isInGroup) return; try { await _api.syncPlayLeavePost(); + _lastGroupId = null; _updateState(_state.copyWith( isInGroup: false, groupId: null, @@ -632,6 +639,64 @@ class SyncPlayController { _stateController.add(newState); } + // ───────────────────────────────────────────────────────────────────────── + // Lifecycle Handling (for mobile background/resume) + // ───────────────────────────────────────────────────────────────────────── + + /// Handle app lifecycle state changes + /// Call this from a WidgetsBindingObserver when app state changes + Future handleAppLifecycleChange(AppLifecycleState lifecycleState) async { + switch (lifecycleState) { + case AppLifecycleState.paused: + case AppLifecycleState.inactive: + // App going to background - remember state for reconnection + _wasConnected = _wsManager?.currentState == WebSocketConnectionState.connected; + log('SyncPlay: App paused, wasConnected=$_wasConnected, lastGroupId=$_lastGroupId'); + break; + + case AppLifecycleState.resumed: + // App returning to foreground - attempt reconnection if needed + log('SyncPlay: App resumed, wasConnected=$_wasConnected, isInGroup=${_state.isInGroup}'); + if (_wasConnected || _state.isInGroup) { + await _handleAppResume(); + } + break; + + case AppLifecycleState.detached: + case AppLifecycleState.hidden: + // No action needed + break; + } + } + + /// Handle app resume - reconnect WebSocket and optionally rejoin group + Future _handleAppResume() async { + // Force reconnect WebSocket + if (_wsManager != null) { + log('SyncPlay: Force reconnecting WebSocket on resume'); + await _wsManager!.forceReconnect(); + + // Wait for connection to establish + await Future.delayed(const Duration(milliseconds: 500)); + + // Restart time sync if it was active + if (_timeSync != null) { + _timeSync!.start(); + await _timeSync!.forceUpdate(); + } + + // If we were in a group but got disconnected, try to rejoin + if (_lastGroupId != null && !_state.isInGroup) { + log('SyncPlay: Attempting to rejoin group $_lastGroupId'); + final success = await joinGroup(_lastGroupId!); + if (!success) { + log('SyncPlay: Failed to rejoin group, clearing lastGroupId'); + _lastGroupId = null; + } + } + } + } + /// Dispose resources Future dispose() async { await disconnect(); diff --git a/lib/providers/syncplay/syncplay_provider.dart b/lib/providers/syncplay/syncplay_provider.dart index 9753e2cc2..ec2a6436d 100644 --- a/lib/providers/syncplay/syncplay_provider.dart +++ b/lib/providers/syncplay/syncplay_provider.dart @@ -1,5 +1,6 @@ import 'dart:async'; +import 'package:flutter/widgets.dart'; import 'package:flutter_riverpod/flutter_riverpod.dart'; import 'package:riverpod_annotation/riverpod_annotation.dart'; @@ -9,15 +10,37 @@ import 'package:fladder/providers/syncplay/syncplay_models.dart'; part 'syncplay_provider.g.dart'; +/// Lifecycle observer for SyncPlay - handles app background/resume +class _SyncPlayLifecycleObserver with WidgetsBindingObserver { + _SyncPlayLifecycleObserver(this._controller); + + final SyncPlayController _controller; + + void register() { + WidgetsBinding.instance.addObserver(this); + } + + void unregister() { + WidgetsBinding.instance.removeObserver(this); + } + + @override + void didChangeAppLifecycleState(AppLifecycleState state) { + _controller.handleAppLifecycleChange(state); + } +} + /// Provider for SyncPlay controller instance @Riverpod(keepAlive: true) class SyncPlay extends _$SyncPlay { SyncPlayController? _controller; StreamSubscription? _stateSubscription; + _SyncPlayLifecycleObserver? _lifecycleObserver; @override SyncPlayState build() { ref.onDispose(() { + _lifecycleObserver?.unregister(); _stateSubscription?.cancel(); _controller?.dispose(); }); @@ -25,7 +48,12 @@ class SyncPlay extends _$SyncPlay { } SyncPlayController get controller { - _controller ??= SyncPlayController(ref); + if (_controller == null) { + _controller = SyncPlayController(ref); + // Register lifecycle observer when controller is created + _lifecycleObserver = _SyncPlayLifecycleObserver(_controller!); + _lifecycleObserver!.register(); + } return _controller!; } diff --git a/lib/providers/syncplay/syncplay_provider.g.dart b/lib/providers/syncplay/syncplay_provider.g.dart index 9bf0dea91..53d60f916 100644 --- a/lib/providers/syncplay/syncplay_provider.g.dart +++ b/lib/providers/syncplay/syncplay_provider.g.dart @@ -65,7 +65,7 @@ final syncPlayGroupStateProvider = @Deprecated('Will be removed in 3.0. Use Ref instead') // ignore: unused_element typedef SyncPlayGroupStateRef = AutoDisposeProviderRef; -String _$syncPlayHash() => r'7f5fd80fef94a1c6c36050b3895b51a764116d50'; +String _$syncPlayHash() => r'50fd44361a1526442f14ef3f849b7aefca67a67d'; /// Provider for SyncPlay controller instance /// diff --git a/lib/providers/syncplay/websocket_manager.dart b/lib/providers/syncplay/websocket_manager.dart index 9c1060da5..0b596ef63 100644 --- a/lib/providers/syncplay/websocket_manager.dart +++ b/lib/providers/syncplay/websocket_manager.dart @@ -89,6 +89,18 @@ class WebSocketManager { _updateState(WebSocketConnectionState.disconnected); } + /// Force reconnect (e.g., after app resume) + /// Resets attempt counter and immediately reconnects + Future forceReconnect() async { + _reconnectTimer?.cancel(); + _keepAliveTimer?.cancel(); + await _channel?.sink.close(); + _channel = null; + _reconnectAttempts = 0; + _updateState(WebSocketConnectionState.disconnected); + await connect(); + } + /// Send a message through WebSocket void send(Map message) { if (_currentState != WebSocketConnectionState.connected) { diff --git a/lib/routes/auto_router.gr.dart b/lib/routes/auto_router.gr.dart index 47e1ec7a7..f4bf3e56e 100644 --- a/lib/routes/auto_router.gr.dart +++ b/lib/routes/auto_router.gr.dart @@ -353,20 +353,48 @@ class FavouritesRoute extends _i29.PageRouteInfo { /// generated route for /// [_i14.HomeScreen] -class HomeRoute extends _i29.PageRouteInfo { - const HomeRoute({List<_i29.PageRouteInfo>? children}) - : super(HomeRoute.name, initialChildren: children); +class HomeRoute extends _i29.PageRouteInfo { + HomeRoute({dynamic key, List<_i29.PageRouteInfo>? children}) + : super( + HomeRoute.name, + args: HomeRouteArgs(key: key), + initialChildren: children, + ); static const String name = 'HomeRoute'; static _i29.PageInfo page = _i29.PageInfo( name, builder: (data) { - return const _i14.HomeScreen(); + final args = data.argsAs( + orElse: () => const HomeRouteArgs(), + ); + return _i14.HomeScreen(key: args.key); }, ); } +class HomeRouteArgs { + const HomeRouteArgs({this.key}); + + final dynamic key; + + @override + String toString() { + return 'HomeRouteArgs{key: $key}'; + } + + @override + bool operator ==(Object other) { + if (identical(this, other)) return true; + if (other is! HomeRouteArgs) return false; + return key == other.key; + } + + @override + int get hashCode => key.hashCode; +} + /// generated route for /// [_i15.LibraryScreen] class LibraryRoute extends _i29.PageRouteInfo { diff --git a/lib/widgets/syncplay/syncplay_group_sheet.dart b/lib/widgets/syncplay/syncplay_group_sheet.dart index f6ff206f7..8894ed96c 100644 --- a/lib/widgets/syncplay/syncplay_group_sheet.dart +++ b/lib/widgets/syncplay/syncplay_group_sheet.dart @@ -276,6 +276,7 @@ class _SyncPlayGroupSheetState extends ConsumerState { ), const SizedBox(height: 16), FilledButton.icon( + autofocus: true, // Focus for TV navigation onPressed: _createGroup, icon: const Icon(IconsaxPlusLinear.add), label: const Text('Create Group'), @@ -296,6 +297,7 @@ class _SyncPlayGroupSheetState extends ConsumerState { return _GroupListTile( group: group, onTap: () => _joinGroup(group), + autofocus: index == 0, // Focus first item for TV navigation ); }, ); @@ -410,15 +412,18 @@ class _SyncPlayGroupSheetState extends ConsumerState { class _GroupListTile extends StatelessWidget { final GroupInfoDto group; final VoidCallback onTap; + final bool autofocus; const _GroupListTile({ required this.group, required this.onTap, + this.autofocus = false, }); @override Widget build(BuildContext context) { return ListTile( + autofocus: autofocus, leading: CircleAvatar( backgroundColor: Theme.of(context).colorScheme.primaryContainer, child: Icon( From 44af2de93ae07cb7e6713a031afd5591f0fc6331 Mon Sep 17 00:00:00 2001 From: Filip Iricanin Date: Sun, 11 Jan 2026 01:09:57 +0100 Subject: [PATCH 04/25] fix: Set SyncPlay bottom sheet background to transparent This change updates the `showModalBottomSheet` calls for the `SyncPlayGroupSheet` in both `syncplay_fab.dart` and `dashboard_fabs.dart` to use a transparent background. --- lib/widgets/syncplay/dashboard_fabs.dart | 1 + lib/widgets/syncplay/syncplay_fab.dart | 1 + 2 files changed, 2 insertions(+) diff --git a/lib/widgets/syncplay/dashboard_fabs.dart b/lib/widgets/syncplay/dashboard_fabs.dart index a69301fe5..322554956 100644 --- a/lib/widgets/syncplay/dashboard_fabs.dart +++ b/lib/widgets/syncplay/dashboard_fabs.dart @@ -95,6 +95,7 @@ class _SyncPlayFabButton extends StatelessWidget { context: context, isScrollControlled: true, useSafeArea: true, + backgroundColor: Colors.transparent, builder: (context) => const SyncPlayGroupSheet(), ); } diff --git a/lib/widgets/syncplay/syncplay_fab.dart b/lib/widgets/syncplay/syncplay_fab.dart index 7406b7dfe..501dd2dac 100644 --- a/lib/widgets/syncplay/syncplay_fab.dart +++ b/lib/widgets/syncplay/syncplay_fab.dart @@ -50,6 +50,7 @@ class SyncPlayFab extends ConsumerWidget { context: context, isScrollControlled: true, useSafeArea: true, + backgroundColor: Colors.transparent, builder: (context) => const SyncPlayGroupSheet(), ); } From 64026394672acca6174d9786858e6e875a030f28 Mon Sep 17 00:00:00 2001 From: Filip Iricanin Date: Tue, 13 Jan 2026 21:16:25 +0100 Subject: [PATCH 05/25] feat: Add visual indicators for SyncPlay command processing This commit introduces UI feedback to inform users when SyncPlay commands (Pause, Unpause, Seek, Stop) are being processed and synchronized with the group. Key changes: - Created `SyncPlayCommandIndicator`, a centered overlay that displays the current command and a syncing status during playback. - Updated `SyncPlayState` and its controller to track and manage command processing states. - Enhanced `SyncPlayBadge` and compact indicators to show a loading state while commands are in flight. - Integrated the new indicator into the video player controls. - Minor cleanup of generated route arguments for `HomeScreen`. --- .../syncplay/syncplay_controller.dart | 74 +++++---- lib/providers/syncplay/syncplay_models.dart | 4 + .../syncplay/syncplay_models.freezed.dart | 75 ++++++++-- lib/routes/auto_router.gr.dart | 36 +---- .../syncplay_command_indicator.dart | 141 ++++++++++++++++++ .../video_player/video_player_controls.dart | 2 + lib/widgets/syncplay/syncplay_badge.dart | 110 ++++++++++---- 7 files changed, 340 insertions(+), 102 deletions(-) create mode 100644 lib/screens/video_player/components/syncplay_command_indicator.dart diff --git a/lib/providers/syncplay/syncplay_controller.dart b/lib/providers/syncplay/syncplay_controller.dart index 625fe3aa0..2f2ad74ce 100644 --- a/lib/providers/syncplay/syncplay_controller.dart +++ b/lib/providers/syncplay/syncplay_controller.dart @@ -334,6 +334,12 @@ class SyncPlayController { _commandTimer?.cancel(); + // Show processing indicator + _updateState(_state.copyWith( + isProcessingCommand: true, + processingCommandType: command, + )); + if (delay.isNegative) { // Command is in the past - execute immediately // Estimate where playback should be now @@ -360,37 +366,45 @@ class SyncPlayController { Future _executeCommand(String command, int positionTicks) async { log('SyncPlay: Executing command: $command at $positionTicks ticks'); - switch (command) { - case 'Pause': - await onPause?.call(); - // Seek to position if significantly different - final currentTicks = getPositionTicks?.call() ?? 0; - if ((positionTicks - currentTicks).abs() > ticksPerSecond ~/ 2) { - await onSeek?.call(positionTicks); - } - break; - - case 'Unpause': - // Seek to position if significantly different - final currentTicks = getPositionTicks?.call() ?? 0; - if ((positionTicks - currentTicks).abs() > ticksPerSecond ~/ 2) { + try { + switch (command) { + case 'Pause': + await onPause?.call(); + // Seek to position if significantly different + final currentTicks = getPositionTicks?.call() ?? 0; + if ((positionTicks - currentTicks).abs() > ticksPerSecond ~/ 2) { + await onSeek?.call(positionTicks); + } + break; + + case 'Unpause': + // Seek to position if significantly different + final currentTicks = getPositionTicks?.call() ?? 0; + if ((positionTicks - currentTicks).abs() > ticksPerSecond ~/ 2) { + await onSeek?.call(positionTicks); + } + await onPlay?.call(); + break; + + case 'Seek': + await onPlay?.call(); await onSeek?.call(positionTicks); - } - await onPlay?.call(); - break; - - case 'Seek': - await onPlay?.call(); - await onSeek?.call(positionTicks); - await onPause?.call(); - // Report ready after seek - await reportReady(isPlaying: true); - break; - - case 'Stop': - await onPause?.call(); - await onSeek?.call(0); - break; + await onPause?.call(); + // Report ready after seek + await reportReady(isPlaying: true); + break; + + case 'Stop': + await onPause?.call(); + await onSeek?.call(0); + break; + } + } finally { + // Clear processing state after command completes + _updateState(_state.copyWith( + isProcessingCommand: false, + processingCommandType: null, + )); } } diff --git a/lib/providers/syncplay/syncplay_models.dart b/lib/providers/syncplay/syncplay_models.dart index 4efe87028..a98d99731 100644 --- a/lib/providers/syncplay/syncplay_models.dart +++ b/lib/providers/syncplay/syncplay_models.dart @@ -64,6 +64,10 @@ abstract class SyncPlayState with _$SyncPlayState { String? playlistItemId, @Default(0) int positionTicks, DateTime? lastCommandTime, + /// Whether a SyncPlay command is currently being processed + @Default(false) bool isProcessingCommand, + /// The type of command being processed (for UI feedback) + String? processingCommandType, }) = _SyncPlayState; bool get isActive => isConnected && isInGroup; diff --git a/lib/providers/syncplay/syncplay_models.freezed.dart b/lib/providers/syncplay/syncplay_models.freezed.dart index 7b17e251b..91b8a611a 100644 --- a/lib/providers/syncplay/syncplay_models.freezed.dart +++ b/lib/providers/syncplay/syncplay_models.freezed.dart @@ -353,6 +353,12 @@ mixin _$SyncPlayState { int get positionTicks; DateTime? get lastCommandTime; + /// Whether a SyncPlay command is currently being processed + bool get isProcessingCommand; + + /// The type of command being processed (for UI feedback) + String? get processingCommandType; + /// Create a copy of SyncPlayState /// with the given fields replaced by the non-null parameter values. @JsonKey(includeFromJson: false, includeToJson: false) @@ -363,7 +369,7 @@ mixin _$SyncPlayState { @override String toString() { - return 'SyncPlayState(isConnected: $isConnected, isInGroup: $isInGroup, groupId: $groupId, groupName: $groupName, groupState: $groupState, stateReason: $stateReason, participants: $participants, playingItemId: $playingItemId, playlistItemId: $playlistItemId, positionTicks: $positionTicks, lastCommandTime: $lastCommandTime)'; + return 'SyncPlayState(isConnected: $isConnected, isInGroup: $isInGroup, groupId: $groupId, groupName: $groupName, groupState: $groupState, stateReason: $stateReason, participants: $participants, playingItemId: $playingItemId, playlistItemId: $playlistItemId, positionTicks: $positionTicks, lastCommandTime: $lastCommandTime, isProcessingCommand: $isProcessingCommand, processingCommandType: $processingCommandType)'; } } @@ -384,7 +390,9 @@ abstract mixin class $SyncPlayStateCopyWith<$Res> { String? playingItemId, String? playlistItemId, int positionTicks, - DateTime? lastCommandTime}); + DateTime? lastCommandTime, + bool isProcessingCommand, + String? processingCommandType}); } /// @nodoc @@ -411,6 +419,8 @@ class _$SyncPlayStateCopyWithImpl<$Res> Object? playlistItemId = freezed, Object? positionTicks = null, Object? lastCommandTime = freezed, + Object? isProcessingCommand = null, + Object? processingCommandType = freezed, }) { return _then(_self.copyWith( isConnected: null == isConnected @@ -457,6 +467,14 @@ class _$SyncPlayStateCopyWithImpl<$Res> ? _self.lastCommandTime : lastCommandTime // ignore: cast_nullable_to_non_nullable as DateTime?, + isProcessingCommand: null == isProcessingCommand + ? _self.isProcessingCommand + : isProcessingCommand // ignore: cast_nullable_to_non_nullable + as bool, + processingCommandType: freezed == processingCommandType + ? _self.processingCommandType + : processingCommandType // ignore: cast_nullable_to_non_nullable + as String?, )); } } @@ -565,7 +583,9 @@ extension SyncPlayStatePatterns on SyncPlayState { String? playingItemId, String? playlistItemId, int positionTicks, - DateTime? lastCommandTime)? + DateTime? lastCommandTime, + bool isProcessingCommand, + String? processingCommandType)? $default, { required TResult orElse(), }) { @@ -583,7 +603,9 @@ extension SyncPlayStatePatterns on SyncPlayState { _that.playingItemId, _that.playlistItemId, _that.positionTicks, - _that.lastCommandTime); + _that.lastCommandTime, + _that.isProcessingCommand, + _that.processingCommandType); case _: return orElse(); } @@ -615,7 +637,9 @@ extension SyncPlayStatePatterns on SyncPlayState { String? playingItemId, String? playlistItemId, int positionTicks, - DateTime? lastCommandTime) + DateTime? lastCommandTime, + bool isProcessingCommand, + String? processingCommandType) $default, ) { final _that = this; @@ -632,7 +656,9 @@ extension SyncPlayStatePatterns on SyncPlayState { _that.playingItemId, _that.playlistItemId, _that.positionTicks, - _that.lastCommandTime); + _that.lastCommandTime, + _that.isProcessingCommand, + _that.processingCommandType); case _: throw StateError('Unexpected subclass'); } @@ -663,7 +689,9 @@ extension SyncPlayStatePatterns on SyncPlayState { String? playingItemId, String? playlistItemId, int positionTicks, - DateTime? lastCommandTime)? + DateTime? lastCommandTime, + bool isProcessingCommand, + String? processingCommandType)? $default, ) { final _that = this; @@ -680,7 +708,9 @@ extension SyncPlayStatePatterns on SyncPlayState { _that.playingItemId, _that.playlistItemId, _that.positionTicks, - _that.lastCommandTime); + _that.lastCommandTime, + _that.isProcessingCommand, + _that.processingCommandType); case _: return null; } @@ -701,7 +731,9 @@ class _SyncPlayState extends SyncPlayState { this.playingItemId, this.playlistItemId, this.positionTicks = 0, - this.lastCommandTime}) + this.lastCommandTime, + this.isProcessingCommand = false, + this.processingCommandType}) : _participants = participants, super._(); @@ -739,6 +771,15 @@ class _SyncPlayState extends SyncPlayState { @override final DateTime? lastCommandTime; + /// Whether a SyncPlay command is currently being processed + @override + @JsonKey() + final bool isProcessingCommand; + + /// The type of command being processed (for UI feedback) + @override + final String? processingCommandType; + /// Create a copy of SyncPlayState /// with the given fields replaced by the non-null parameter values. @override @@ -749,7 +790,7 @@ class _SyncPlayState extends SyncPlayState { @override String toString() { - return 'SyncPlayState(isConnected: $isConnected, isInGroup: $isInGroup, groupId: $groupId, groupName: $groupName, groupState: $groupState, stateReason: $stateReason, participants: $participants, playingItemId: $playingItemId, playlistItemId: $playlistItemId, positionTicks: $positionTicks, lastCommandTime: $lastCommandTime)'; + return 'SyncPlayState(isConnected: $isConnected, isInGroup: $isInGroup, groupId: $groupId, groupName: $groupName, groupState: $groupState, stateReason: $stateReason, participants: $participants, playingItemId: $playingItemId, playlistItemId: $playlistItemId, positionTicks: $positionTicks, lastCommandTime: $lastCommandTime, isProcessingCommand: $isProcessingCommand, processingCommandType: $processingCommandType)'; } } @@ -772,7 +813,9 @@ abstract mixin class _$SyncPlayStateCopyWith<$Res> String? playingItemId, String? playlistItemId, int positionTicks, - DateTime? lastCommandTime}); + DateTime? lastCommandTime, + bool isProcessingCommand, + String? processingCommandType}); } /// @nodoc @@ -799,6 +842,8 @@ class __$SyncPlayStateCopyWithImpl<$Res> Object? playlistItemId = freezed, Object? positionTicks = null, Object? lastCommandTime = freezed, + Object? isProcessingCommand = null, + Object? processingCommandType = freezed, }) { return _then(_SyncPlayState( isConnected: null == isConnected @@ -845,6 +890,14 @@ class __$SyncPlayStateCopyWithImpl<$Res> ? _self.lastCommandTime : lastCommandTime // ignore: cast_nullable_to_non_nullable as DateTime?, + isProcessingCommand: null == isProcessingCommand + ? _self.isProcessingCommand + : isProcessingCommand // ignore: cast_nullable_to_non_nullable + as bool, + processingCommandType: freezed == processingCommandType + ? _self.processingCommandType + : processingCommandType // ignore: cast_nullable_to_non_nullable + as String?, )); } } diff --git a/lib/routes/auto_router.gr.dart b/lib/routes/auto_router.gr.dart index f4bf3e56e..47e1ec7a7 100644 --- a/lib/routes/auto_router.gr.dart +++ b/lib/routes/auto_router.gr.dart @@ -353,48 +353,20 @@ class FavouritesRoute extends _i29.PageRouteInfo { /// generated route for /// [_i14.HomeScreen] -class HomeRoute extends _i29.PageRouteInfo { - HomeRoute({dynamic key, List<_i29.PageRouteInfo>? children}) - : super( - HomeRoute.name, - args: HomeRouteArgs(key: key), - initialChildren: children, - ); +class HomeRoute extends _i29.PageRouteInfo { + const HomeRoute({List<_i29.PageRouteInfo>? children}) + : super(HomeRoute.name, initialChildren: children); static const String name = 'HomeRoute'; static _i29.PageInfo page = _i29.PageInfo( name, builder: (data) { - final args = data.argsAs( - orElse: () => const HomeRouteArgs(), - ); - return _i14.HomeScreen(key: args.key); + return const _i14.HomeScreen(); }, ); } -class HomeRouteArgs { - const HomeRouteArgs({this.key}); - - final dynamic key; - - @override - String toString() { - return 'HomeRouteArgs{key: $key}'; - } - - @override - bool operator ==(Object other) { - if (identical(this, other)) return true; - if (other is! HomeRouteArgs) return false; - return key == other.key; - } - - @override - int get hashCode => key.hashCode; -} - /// generated route for /// [_i15.LibraryScreen] class LibraryRoute extends _i29.PageRouteInfo { diff --git a/lib/screens/video_player/components/syncplay_command_indicator.dart b/lib/screens/video_player/components/syncplay_command_indicator.dart new file mode 100644 index 000000000..8272eae43 --- /dev/null +++ b/lib/screens/video_player/components/syncplay_command_indicator.dart @@ -0,0 +1,141 @@ +import 'package:flutter/material.dart'; + +import 'package:flutter_riverpod/flutter_riverpod.dart'; +import 'package:iconsax_plus/iconsax_plus.dart'; + +import 'package:fladder/providers/syncplay/syncplay_provider.dart'; + +/// Centered overlay showing SyncPlay command being processed +class SyncPlayCommandIndicator extends ConsumerWidget { + const SyncPlayCommandIndicator({super.key}); + + @override + Widget build(BuildContext context, WidgetRef ref) { + final isActive = ref.watch(isSyncPlayActiveProvider); + final isProcessing = ref.watch(syncPlayProvider.select((s) => s.isProcessingCommand)); + final commandType = ref.watch(syncPlayProvider.select((s) => s.processingCommandType)); + + final visible = isActive && isProcessing && commandType != null; + + return IgnorePointer( + child: AnimatedOpacity( + duration: const Duration(milliseconds: 200), + opacity: visible ? 1 : 0, + child: Center( + child: AnimatedScale( + duration: const Duration(milliseconds: 200), + scale: visible ? 1.0 : 0.8, + child: Container( + padding: const EdgeInsets.all(24), + decoration: BoxDecoration( + color: Theme.of(context).colorScheme.surface.withValues(alpha: 0.9), + borderRadius: BorderRadius.circular(20), + border: Border.all( + color: Theme.of(context).colorScheme.primary.withValues(alpha: 0.5), + width: 2, + ), + boxShadow: [ + BoxShadow( + color: Colors.black.withValues(alpha: 0.3), + blurRadius: 20, + spreadRadius: 5, + ), + ], + ), + child: Column( + mainAxisSize: MainAxisSize.min, + children: [ + _CommandIcon(commandType: commandType), + const SizedBox(height: 12), + Text( + _getCommandLabel(commandType), + style: Theme.of(context).textTheme.titleMedium?.copyWith( + color: Theme.of(context).colorScheme.onSurface, + fontWeight: FontWeight.w600, + ), + ), + const SizedBox(height: 4), + Row( + mainAxisSize: MainAxisSize.min, + children: [ + SizedBox( + width: 12, + height: 12, + child: CircularProgressIndicator( + strokeWidth: 2, + color: Theme.of(context).colorScheme.primary, + ), + ), + const SizedBox(width: 8), + Text( + 'Syncing with group...', + style: Theme.of(context).textTheme.bodySmall?.copyWith( + color: Theme.of(context).colorScheme.onSurfaceVariant, + ), + ), + ], + ), + ], + ), + ), + ), + ), + ), + ); + } + + String _getCommandLabel(String? command) { + return switch (command) { + 'Pause' => 'Pausing', + 'Unpause' => 'Playing', + 'Seek' => 'Seeking', + 'Stop' => 'Stopping', + _ => 'Syncing', + }; + } +} + +class _CommandIcon extends StatelessWidget { + final String? commandType; + + const _CommandIcon({required this.commandType}); + + @override + Widget build(BuildContext context) { + final (icon, color) = switch (commandType) { + 'Pause' => ( + IconsaxPlusBold.pause, + Theme.of(context).colorScheme.secondary, + ), + 'Unpause' => ( + IconsaxPlusBold.play, + Theme.of(context).colorScheme.primary, + ), + 'Seek' => ( + IconsaxPlusBold.forward, + Theme.of(context).colorScheme.tertiary, + ), + 'Stop' => ( + IconsaxPlusBold.stop, + Theme.of(context).colorScheme.error, + ), + _ => ( + IconsaxPlusBold.refresh, + Theme.of(context).colorScheme.primary, + ), + }; + + return Container( + padding: const EdgeInsets.all(16), + decoration: BoxDecoration( + color: color.withValues(alpha: 0.15), + shape: BoxShape.circle, + ), + child: Icon( + icon, + size: 48, + color: color, + ), + ); + } +} diff --git a/lib/screens/video_player/video_player_controls.dart b/lib/screens/video_player/video_player_controls.dart index 3714eabf4..5de9b2eb8 100644 --- a/lib/screens/video_player/video_player_controls.dart +++ b/lib/screens/video_player/video_player_controls.dart @@ -25,6 +25,7 @@ import 'package:fladder/screens/video_player/components/video_playback_informati import 'package:fladder/screens/video_player/components/video_player_controls_extras.dart'; import 'package:fladder/screens/video_player/components/video_player_options_sheet.dart'; import 'package:fladder/screens/video_player/components/video_player_quality_controls.dart'; +import 'package:fladder/screens/video_player/components/syncplay_command_indicator.dart'; import 'package:fladder/screens/video_player/components/video_player_screenshot_indicator.dart'; import 'package:fladder/screens/video_player/components/video_player_seek_indicator.dart'; import 'package:fladder/screens/video_player/components/video_player_speed_indicator.dart'; @@ -130,6 +131,7 @@ class _DesktopControlsState extends ConsumerState { const VideoPlayerVolumeIndicator(), const VideoPlayerSpeedIndicator(), const VideoPlayerScreenshotIndicator(), + const SyncPlayCommandIndicator(), Consumer( builder: (context, ref, child) { final position = ref.watch(mediaPlaybackProvider.select((value) => value.position)); diff --git a/lib/widgets/syncplay/syncplay_badge.dart b/lib/widgets/syncplay/syncplay_badge.dart index 43d650ce0..0411d3942 100644 --- a/lib/widgets/syncplay/syncplay_badge.dart +++ b/lib/widgets/syncplay/syncplay_badge.dart @@ -18,6 +18,8 @@ class SyncPlayBadge extends ConsumerWidget { final groupName = ref.watch(syncPlayGroupNameProvider); final groupState = ref.watch(syncPlayGroupStateProvider); + final isProcessing = ref.watch(syncPlayProvider.select((s) => s.isProcessingCommand)); + final processingCommand = ref.watch(syncPlayProvider.select((s) => s.processingCommandType)); final (icon, color) = switch (groupState) { SyncPlayGroupState.idle => ( @@ -38,41 +40,75 @@ class SyncPlayBadge extends ConsumerWidget { ), }; - return Container( + return AnimatedContainer( + duration: const Duration(milliseconds: 200), padding: const EdgeInsets.symmetric(horizontal: 10, vertical: 6), decoration: BoxDecoration( - color: Theme.of(context).colorScheme.surface.withValues(alpha: 0.85), + color: isProcessing + ? Theme.of(context).colorScheme.primaryContainer.withValues(alpha: 0.95) + : Theme.of(context).colorScheme.surface.withValues(alpha: 0.85), borderRadius: BorderRadius.circular(20), border: Border.all( - color: color.withValues(alpha: 0.5), - width: 1, + color: isProcessing + ? Theme.of(context).colorScheme.primary + : color.withValues(alpha: 0.5), + width: isProcessing ? 2 : 1, ), ), child: Row( mainAxisSize: MainAxisSize.min, children: [ - Icon( - IconsaxPlusLinear.people, - size: 14, - color: color, - ), - const SizedBox(width: 6), - Text( - groupName ?? 'SyncPlay', - style: Theme.of(context).textTheme.labelSmall?.copyWith( - color: Theme.of(context).colorScheme.onSurface, - ), - ), - const SizedBox(width: 6), - Icon( - icon, - size: 12, - color: color, - ), + if (isProcessing) ...[ + SizedBox( + width: 12, + height: 12, + child: CircularProgressIndicator( + strokeWidth: 2, + color: Theme.of(context).colorScheme.primary, + ), + ), + const SizedBox(width: 6), + Text( + _getProcessingText(processingCommand), + style: Theme.of(context).textTheme.labelSmall?.copyWith( + color: Theme.of(context).colorScheme.onPrimaryContainer, + fontWeight: FontWeight.w600, + ), + ), + ] else ...[ + Icon( + IconsaxPlusLinear.people, + size: 14, + color: color, + ), + const SizedBox(width: 6), + Text( + groupName ?? 'SyncPlay', + style: Theme.of(context).textTheme.labelSmall?.copyWith( + color: Theme.of(context).colorScheme.onSurface, + ), + ), + const SizedBox(width: 6), + Icon( + icon, + size: 12, + color: color, + ), + ], ], ), ); } + + String _getProcessingText(String? command) { + return switch (command) { + 'Pause' => 'Syncing pause...', + 'Unpause' => 'Syncing play...', + 'Seek' => 'Syncing seek...', + 'Stop' => 'Stopping...', + _ => 'Syncing...', + }; + } } /// Compact SyncPlay indicator for tight spaces @@ -86,6 +122,7 @@ class SyncPlayIndicator extends ConsumerWidget { if (!isActive) return const SizedBox.shrink(); final groupState = ref.watch(syncPlayGroupStateProvider); + final isProcessing = ref.watch(syncPlayProvider.select((s) => s.isProcessingCommand)); final color = switch (groupState) { SyncPlayGroupState.idle => Theme.of(context).colorScheme.onSurfaceVariant, @@ -94,17 +131,32 @@ class SyncPlayIndicator extends ConsumerWidget { SyncPlayGroupState.playing => Theme.of(context).colorScheme.primary, }; - return Container( + return AnimatedContainer( + duration: const Duration(milliseconds: 200), padding: const EdgeInsets.all(6), decoration: BoxDecoration( - color: color.withValues(alpha: 0.2), + color: isProcessing + ? Theme.of(context).colorScheme.primaryContainer + : color.withValues(alpha: 0.2), shape: BoxShape.circle, + border: isProcessing + ? Border.all(color: Theme.of(context).colorScheme.primary, width: 2) + : null, ), - child: Icon( - IconsaxPlusBold.people, - size: 16, - color: color, - ), + child: isProcessing + ? SizedBox( + width: 16, + height: 16, + child: CircularProgressIndicator( + strokeWidth: 2, + color: Theme.of(context).colorScheme.primary, + ), + ) + : Icon( + IconsaxPlusBold.people, + size: 16, + color: color, + ), ); } } From f889b1d3585dc1f9c77e997baf64825736021740 Mon Sep 17 00:00:00 2001 From: Filip Iricanin Date: Tue, 13 Jan 2026 21:49:04 +0100 Subject: [PATCH 06/25] refactor: Modularize SyncPlay logic and reorganize models This commit refactors the SyncPlay implementation by splitting the monolithic controller into specialized handlers and moving data models to a dedicated directory. The changes include: - **Refactored Controller**: Extracted command and message handling logic from `SyncPlayController` into `SyncPlayCommandHandler` and `SyncPlayMessageHandler`. - **Model Reorganization**: Moved SyncPlay models and generated files from `lib/providers/syncplay/` to `lib/models/syncplay/`. - **New Command Handler**: Manages execution, scheduling, and duplicate detection of playback commands (Play, Pause, Seek, Stop) using server-synchronized time. - **New Message Handler**: Processes WebSocket group updates, including user joins/leaves, state changes, and play queue synchronization. - **Utility Improvements**: Added `syncplay_utils.dart` for shared UI actions and created a central `syncplay.dart` library export file. - **Cleaned Up Imports**: Updated references across the codebase to reflect the new model locations and helper functions. --- .../syncplay/syncplay_models.dart | 0 .../syncplay/syncplay_models.freezed.dart | 0 .../handlers/syncplay_command_handler.dart | 173 +++++++++ .../handlers/syncplay_message_handler.dart | 197 ++++++++++ lib/providers/syncplay/syncplay.dart | 27 ++ .../syncplay/syncplay_controller.dart | 359 ++---------------- lib/providers/syncplay/syncplay_provider.dart | 2 +- lib/providers/syncplay/time_sync_service.dart | 2 +- lib/providers/syncplay/websocket_manager.dart | 2 +- lib/providers/video_player_provider.dart | 2 +- .../item_base_model/play_item_helpers.dart | 111 +++--- lib/widgets/syncplay/dashboard_fabs.dart | 14 +- lib/widgets/syncplay/syncplay_badge.dart | 2 +- lib/widgets/syncplay/syncplay_fab.dart | 14 +- .../syncplay/syncplay_group_sheet.dart | 2 +- lib/widgets/syncplay/syncplay_utils.dart | 14 + 16 files changed, 526 insertions(+), 395 deletions(-) rename lib/{providers => models}/syncplay/syncplay_models.dart (100%) rename lib/{providers => models}/syncplay/syncplay_models.freezed.dart (100%) create mode 100644 lib/providers/syncplay/handlers/syncplay_command_handler.dart create mode 100644 lib/providers/syncplay/handlers/syncplay_message_handler.dart create mode 100644 lib/providers/syncplay/syncplay.dart create mode 100644 lib/widgets/syncplay/syncplay_utils.dart diff --git a/lib/providers/syncplay/syncplay_models.dart b/lib/models/syncplay/syncplay_models.dart similarity index 100% rename from lib/providers/syncplay/syncplay_models.dart rename to lib/models/syncplay/syncplay_models.dart diff --git a/lib/providers/syncplay/syncplay_models.freezed.dart b/lib/models/syncplay/syncplay_models.freezed.dart similarity index 100% rename from lib/providers/syncplay/syncplay_models.freezed.dart rename to lib/models/syncplay/syncplay_models.freezed.dart diff --git a/lib/providers/syncplay/handlers/syncplay_command_handler.dart b/lib/providers/syncplay/handlers/syncplay_command_handler.dart new file mode 100644 index 000000000..228eea242 --- /dev/null +++ b/lib/providers/syncplay/handlers/syncplay_command_handler.dart @@ -0,0 +1,173 @@ +import 'dart:async'; +import 'dart:developer'; + +import 'package:fladder/models/syncplay/syncplay_models.dart'; +import 'package:fladder/providers/syncplay/time_sync_service.dart'; + +/// Callback types for player control commands from SyncPlay +typedef SyncPlayPlayerCallback = Future Function(); +typedef SyncPlaySeekCallback = Future Function(int positionTicks); +typedef SyncPlayPositionCallback = int Function(); + +/// Handles scheduling and execution of SyncPlay commands +class SyncPlayCommandHandler { + SyncPlayCommandHandler({ + required this.timeSync, + required this.onStateUpdate, + }); + + final TimeSyncService? Function() timeSync; + final void Function(SyncPlayState Function(SyncPlayState)) onStateUpdate; + + // Last command for duplicate detection + LastSyncPlayCommand? _lastCommand; + + // Pending command timer + Timer? _commandTimer; + + // Player callbacks + SyncPlayPlayerCallback? onPlay; + SyncPlayPlayerCallback? onPause; + SyncPlaySeekCallback? onSeek; + SyncPlayPlayerCallback? onStop; + SyncPlayPositionCallback? getPositionTicks; + bool Function()? isPlaying; + bool Function()? isBuffering; + + /// Handle incoming SyncPlay command from WebSocket + void handleCommand(Map data, SyncPlayState currentState) { + final command = data['Command'] as String?; + final whenStr = data['When'] as String?; + final positionTicks = data['PositionTicks'] as int? ?? 0; + final playlistItemId = data['PlaylistItemId'] as String? ?? ''; + + if (command == null || whenStr == null) return; + + // Check for duplicate command + if (_isDuplicateCommand(whenStr, positionTicks, command, playlistItemId)) { + log('SyncPlay: Ignoring duplicate command: $command'); + return; + } + + _lastCommand = LastSyncPlayCommand( + when: whenStr, + positionTicks: positionTicks, + command: command, + playlistItemId: playlistItemId, + ); + + onStateUpdate((state) => state.copyWith( + positionTicks: positionTicks, + playlistItemId: playlistItemId, + )); + + final when = DateTime.parse(whenStr); + _scheduleCommand(command, when, positionTicks); + } + + bool _isDuplicateCommand( + String when, int positionTicks, String command, String playlistItemId) { + if (_lastCommand == null) return false; + return _lastCommand!.when == when && + _lastCommand!.positionTicks == positionTicks && + _lastCommand!.command == command && + _lastCommand!.playlistItemId == playlistItemId; + } + + void _scheduleCommand(String command, DateTime serverTime, int positionTicks) { + final timeSyncService = timeSync(); + if (timeSyncService == null) { + log('SyncPlay: Cannot schedule command without time sync'); + _executeCommand(command, positionTicks); + return; + } + + final localTime = timeSyncService.remoteDateToLocal(serverTime); + final now = DateTime.now().toUtc(); + final delay = localTime.difference(now); + + _commandTimer?.cancel(); + + // Show processing indicator + onStateUpdate((state) => state.copyWith( + isProcessingCommand: true, + processingCommandType: command, + )); + + if (delay.isNegative) { + // Command is in the past - execute immediately + // Estimate where playback should be now + final estimatedTicks = _estimateCurrentTicks(positionTicks, serverTime); + log('SyncPlay: Executing late command: $command (${delay.inMilliseconds}ms late)'); + _executeCommand(command, estimatedTicks); + } else if (delay.inMilliseconds > 5000) { + // Suspiciously large delay - might indicate time sync issue + log('SyncPlay: Warning - large delay: ${delay.inMilliseconds}ms'); + _commandTimer = Timer(delay, () => _executeCommand(command, positionTicks)); + } else { + log('SyncPlay: Scheduling command: $command in ${delay.inMilliseconds}ms'); + _commandTimer = Timer(delay, () => _executeCommand(command, positionTicks)); + } + } + + int _estimateCurrentTicks(int ticks, DateTime when) { + final timeSyncService = timeSync(); + if (timeSyncService == null) return ticks; + final remoteNow = timeSyncService.localDateToRemote(DateTime.now().toUtc()); + final elapsedMs = remoteNow.difference(when).inMilliseconds; + return ticks + millisecondsToTicks(elapsedMs); + } + + Future _executeCommand(String command, int positionTicks) async { + log('SyncPlay: Executing command: $command at $positionTicks ticks'); + + try { + switch (command) { + case 'Pause': + await onPause?.call(); + // Seek to position if significantly different + final currentTicks = getPositionTicks?.call() ?? 0; + if ((positionTicks - currentTicks).abs() > ticksPerSecond ~/ 2) { + await onSeek?.call(positionTicks); + } + break; + + case 'Unpause': + // Seek to position if significantly different + final currentTicks = getPositionTicks?.call() ?? 0; + if ((positionTicks - currentTicks).abs() > ticksPerSecond ~/ 2) { + await onSeek?.call(positionTicks); + } + await onPlay?.call(); + break; + + case 'Seek': + await onPlay?.call(); + await onSeek?.call(positionTicks); + await onPause?.call(); + break; + + case 'Stop': + await onPause?.call(); + await onSeek?.call(0); + break; + } + } finally { + // Clear processing state after command completes + onStateUpdate((state) => state.copyWith( + isProcessingCommand: false, + processingCommandType: null, + )); + } + } + + /// Cancel any pending commands + void cancelPendingCommands() { + _commandTimer?.cancel(); + } + + /// Dispose resources + void dispose() { + _commandTimer?.cancel(); + } +} diff --git a/lib/providers/syncplay/handlers/syncplay_message_handler.dart b/lib/providers/syncplay/handlers/syncplay_message_handler.dart new file mode 100644 index 000000000..5d84de0ae --- /dev/null +++ b/lib/providers/syncplay/handlers/syncplay_message_handler.dart @@ -0,0 +1,197 @@ +import 'dart:developer'; + +import 'package:fladder/models/syncplay/syncplay_models.dart'; + +/// Callback for reporting ready state after seek +typedef ReportReadyCallback = Future Function({bool isPlaying}); + +/// Callback for starting playback of an item +typedef StartPlaybackCallback = Future Function( + String itemId, int startPositionTicks); + +/// Handles SyncPlay group update messages from WebSocket +class SyncPlayMessageHandler { + SyncPlayMessageHandler({ + required this.onStateUpdate, + required this.reportReady, + required this.startPlayback, + required this.isBuffering, + }); + + final void Function(SyncPlayState Function(SyncPlayState)) onStateUpdate; + final ReportReadyCallback reportReady; + final StartPlaybackCallback startPlayback; + final bool Function() isBuffering; + + /// Handle group update message + void handleGroupUpdate(Map data, SyncPlayState currentState) { + final updateType = data['Type'] as String?; + final updateData = data['Data']; + + switch (updateType) { + case 'GroupJoined': + _handleGroupJoined(updateData as Map); + break; + case 'UserJoined': + _handleUserJoined(updateData as String?, currentState); + break; + case 'UserLeft': + _handleUserLeft(updateData as String?, currentState); + break; + case 'GroupLeft': + _handleGroupLeft(); + break; + case 'GroupDoesNotExist': + _handleGroupDoesNotExist(); + break; + case 'StateUpdate': + _handleStateUpdate(updateData as Map); + break; + case 'PlayQueue': + _handlePlayQueue(updateData as Map, currentState); + break; + } + } + + void _handleGroupJoined(Map data) { + final groupId = data['GroupId'] as String?; + final groupName = data['GroupName'] as String?; + final stateStr = data['State'] as String?; + final participants = (data['Participants'] as List?)?.cast() ?? []; + + onStateUpdate((state) => state.copyWith( + isInGroup: true, + groupId: groupId, + groupName: groupName, + groupState: _parseGroupState(stateStr), + participants: participants, + )); + + log('SyncPlay: Joined group "$groupName" ($groupId)'); + } + + void _handleUserJoined(String? userId, SyncPlayState currentState) { + if (userId == null) return; + final participants = [...currentState.participants, userId]; + onStateUpdate((state) => state.copyWith(participants: participants)); + log('SyncPlay: User joined: $userId'); + } + + void _handleUserLeft(String? userId, SyncPlayState currentState) { + if (userId == null) return; + final participants = + currentState.participants.where((p) => p != userId).toList(); + onStateUpdate((state) => state.copyWith(participants: participants)); + log('SyncPlay: User left: $userId'); + } + + void _handleGroupLeft() { + onStateUpdate((state) => state.copyWith( + isInGroup: false, + groupId: null, + groupName: null, + groupState: SyncPlayGroupState.idle, + participants: [], + )); + log('SyncPlay: Left group'); + } + + void _handleGroupDoesNotExist() { + onStateUpdate((state) => state.copyWith( + isInGroup: false, + groupId: null, + groupName: null, + groupState: SyncPlayGroupState.idle, + participants: [], + )); + log('SyncPlay: Group does not exist'); + } + + void _handleStateUpdate(Map data) { + final stateStr = data['State'] as String?; + final reason = data['Reason'] as String?; + final positionTicks = data['PositionTicks'] as int? ?? 0; + + onStateUpdate((state) => state.copyWith( + groupState: _parseGroupState(stateStr), + stateReason: reason, + positionTicks: positionTicks, + )); + + log('SyncPlay: State update: $stateStr (reason: $reason)'); + + // Handle waiting state + if (_parseGroupState(stateStr) == SyncPlayGroupState.waiting) { + _handleWaitingState(reason); + } + } + + void _handleWaitingState(String? reason) { + switch (reason) { + case 'Buffer': + case 'Unpause': + // Report ready if we're ready + if (!isBuffering()) { + reportReady(isPlaying: true); + } + break; + } + } + + void _handlePlayQueue( + Map data, SyncPlayState currentState) { + final playlist = data['Playlist'] as List? ?? []; + final playingItemIndex = data['PlayingItemIndex'] as int? ?? 0; + final startPositionTicks = data['StartPositionTicks'] as int? ?? 0; + final isPlayingNow = data['IsPlaying'] as bool? ?? false; + final reason = data['Reason'] as String?; + + String? playingItemId; + String? playlistItemId; + + if (playlist.isNotEmpty && playingItemIndex < playlist.length) { + final item = playlist[playingItemIndex] as Map; + playingItemId = item['ItemId'] as String?; + playlistItemId = item['PlaylistItemId'] as String?; + } + + final previousItemId = currentState.playingItemId; + + onStateUpdate((state) => state.copyWith( + playingItemId: playingItemId, + playlistItemId: playlistItemId, + positionTicks: startPositionTicks, + )); + + log('SyncPlay: PlayQueue update - playing: $playingItemId (reason: $reason, isPlaying: $isPlayingNow, previousItemId: $previousItemId)'); + + // Trigger playback for NewPlaylist/SetCurrentItem regardless of whether item changed + // (the same user who set the queue also receives the update and needs to start playing) + final shouldTrigger = playingItemId != null && + (reason == 'NewPlaylist' || + reason == 'SetCurrentItem' || + (playingItemId != previousItemId && isPlayingNow)); + + log('SyncPlay: shouldTrigger=$shouldTrigger (reason: $reason)'); + + if (shouldTrigger) { + log('SyncPlay: Triggering playback for item: $playingItemId'); + startPlayback(playingItemId, startPositionTicks); + } + } + + SyncPlayGroupState _parseGroupState(String? state) { + switch (state?.toLowerCase()) { + case 'idle': + return SyncPlayGroupState.idle; + case 'waiting': + return SyncPlayGroupState.waiting; + case 'paused': + return SyncPlayGroupState.paused; + case 'playing': + return SyncPlayGroupState.playing; + default: + return SyncPlayGroupState.idle; + } + } +} diff --git a/lib/providers/syncplay/syncplay.dart b/lib/providers/syncplay/syncplay.dart new file mode 100644 index 000000000..1ab5c0f9e --- /dev/null +++ b/lib/providers/syncplay/syncplay.dart @@ -0,0 +1,27 @@ +/// SyncPlay - Synchronized playback for Jellyfin +/// +/// This module provides synchronized playback functionality allowing multiple +/// clients to watch media together in perfect synchronization. +/// +/// Main components: +/// - [SyncPlayController] - Core controller for SyncPlay operations +/// - [SyncPlayState] - Current state of the SyncPlay session +/// - [TimeSyncService] - NTP-like clock synchronization with server +/// - [WebSocketManager] - WebSocket connection management +/// +/// Usage: +/// ```dart +/// final syncPlay = ref.read(syncPlayProvider.notifier); +/// await syncPlay.connect(); +/// await syncPlay.createGroup('Movie Night'); +/// ``` +library; + +export 'package:fladder/models/syncplay/syncplay_models.dart'; + +export 'handlers/syncplay_command_handler.dart' + show SyncPlayPlayerCallback, SyncPlaySeekCallback, SyncPlayPositionCallback; +export 'syncplay_controller.dart'; +export 'syncplay_provider.dart'; +export 'time_sync_service.dart'; +export 'websocket_manager.dart'; diff --git a/lib/providers/syncplay/syncplay_controller.dart b/lib/providers/syncplay/syncplay_controller.dart index 2f2ad74ce..6e7ee7a0c 100644 --- a/lib/providers/syncplay/syncplay_controller.dart +++ b/lib/providers/syncplay/syncplay_controller.dart @@ -2,7 +2,6 @@ import 'dart:async'; import 'dart:developer'; import 'package:flutter/material.dart'; -import 'package:flutter/widgets.dart'; import 'package:flutter_riverpod/flutter_riverpod.dart'; @@ -11,21 +10,29 @@ import 'package:fladder/models/media_playback_model.dart'; import 'package:fladder/models/playback/playback_model.dart'; import 'package:fladder/providers/api_provider.dart'; import 'package:fladder/providers/router_provider.dart'; -import 'package:fladder/providers/syncplay/syncplay_models.dart'; +import 'package:fladder/providers/syncplay/handlers/syncplay_command_handler.dart'; +import 'package:fladder/providers/syncplay/handlers/syncplay_message_handler.dart'; +import 'package:fladder/models/syncplay/syncplay_models.dart'; import 'package:fladder/providers/syncplay/time_sync_service.dart'; import 'package:fladder/providers/syncplay/websocket_manager.dart'; import 'package:fladder/providers/user_provider.dart'; import 'package:fladder/providers/video_player_provider.dart'; import 'package:fladder/screens/video_player/video_player.dart'; -/// Callback for player control commands from SyncPlay -typedef SyncPlayPlayerCallback = Future Function(); -typedef SyncPlaySeekCallback = Future Function(int positionTicks); -typedef SyncPlayPositionCallback = int Function(); - /// Controller for SyncPlay synchronized playback class SyncPlayController { - SyncPlayController(this._ref); + SyncPlayController(this._ref) { + _commandHandler = SyncPlayCommandHandler( + timeSync: () => _timeSync, + onStateUpdate: _updateStateWith, + ); + _messageHandler = SyncPlayMessageHandler( + onStateUpdate: _updateStateWith, + reportReady: ({bool isPlaying = true}) => reportReady(isPlaying: isPlaying), + startPlayback: _startPlayback, + isBuffering: () => _commandHandler.isBuffering?.call() ?? false, + ); + } final Ref _ref; @@ -34,29 +41,27 @@ class SyncPlayController { StreamSubscription? _wsMessageSubscription; StreamSubscription? _wsStateSubscription; + late final SyncPlayCommandHandler _commandHandler; + late final SyncPlayMessageHandler _messageHandler; + SyncPlayState _state = SyncPlayState(); final _stateController = StreamController.broadcast(); Stream get stateStream => _stateController.stream; SyncPlayState get state => _state; - // Last command for duplicate detection - LastSyncPlayCommand? _lastCommand; - - // Pending command timer - Timer? _commandTimer; - // Lifecycle state for reconnection String? _lastGroupId; bool _wasConnected = false; - // Player callbacks - SyncPlayPlayerCallback? onPlay; - SyncPlayPlayerCallback? onPause; - SyncPlaySeekCallback? onSeek; - SyncPlayPlayerCallback? onStop; - SyncPlayPositionCallback? getPositionTicks; - bool Function()? isPlaying; - bool Function()? isBuffering; + // Player callbacks (delegated to command handler) + set onPlay(SyncPlayPlayerCallback? callback) => _commandHandler.onPlay = callback; + set onPause(SyncPlayPlayerCallback? callback) => _commandHandler.onPause = callback; + set onSeek(SyncPlaySeekCallback? callback) => _commandHandler.onSeek = callback; + set onStop(SyncPlayPlayerCallback? callback) => _commandHandler.onStop = callback; + set getPositionTicks(SyncPlayPositionCallback? callback) => + _commandHandler.getPositionTicks = callback; + set isPlaying(bool Function()? callback) => _commandHandler.isPlaying = callback; + set isBuffering(bool Function()? callback) => _commandHandler.isBuffering = callback; JellyfinOpenApi get _api => _ref.read(jellyApiProvider).api; @@ -94,7 +99,7 @@ class SyncPlayController { /// Disconnect from SyncPlay Future disconnect() async { await leaveGroup(); - _commandTimer?.cancel(); + _commandHandler.cancelPendingCommands(); _wsMessageSubscription?.cancel(); _wsStateSubscription?.cancel(); _timeSync?.dispose(); @@ -200,7 +205,7 @@ class SyncPlayController { await _api.syncPlayBufferingPost( body: BufferRequestDto( when: when, - positionTicks: getPositionTicks?.call() ?? 0, + positionTicks: _commandHandler.getPositionTicks?.call() ?? 0, isPlaying: false, playlistItemId: _state.playlistItemId, ), @@ -218,7 +223,7 @@ class SyncPlayController { await _api.syncPlayReadyPost( body: ReadyRequestDto( when: when, - positionTicks: getPositionTicks?.call() ?? 0, + positionTicks: _commandHandler.getPositionTicks?.call() ?? 0, isPlaying: isPlaying, playlistItemId: _state.playlistItemId, ), @@ -275,293 +280,14 @@ class SyncPlayController { switch (messageType) { case 'SyncPlayCommand': - _handleSyncPlayCommand(data as Map); + _commandHandler.handleCommand(data as Map, _state); break; case 'SyncPlayGroupUpdate': - _handleGroupUpdate(data as Map); + _messageHandler.handleGroupUpdate(data as Map, _state); break; } } - void _handleSyncPlayCommand(Map data) { - final command = data['Command'] as String?; - final whenStr = data['When'] as String?; - final positionTicks = data['PositionTicks'] as int? ?? 0; - final playlistItemId = data['PlaylistItemId'] as String? ?? ''; - - if (command == null || whenStr == null) return; - - // Check for duplicate command - if (_isDuplicateCommand(whenStr, positionTicks, command, playlistItemId)) { - log('SyncPlay: Ignoring duplicate command: $command'); - return; - } - - _lastCommand = LastSyncPlayCommand( - when: whenStr, - positionTicks: positionTicks, - command: command, - playlistItemId: playlistItemId, - ); - - _updateState(_state.copyWith( - positionTicks: positionTicks, - playlistItemId: playlistItemId, - )); - - final when = DateTime.parse(whenStr); - _scheduleCommand(command, when, positionTicks); - } - - bool _isDuplicateCommand(String when, int positionTicks, String command, String playlistItemId) { - if (_lastCommand == null) return false; - return _lastCommand!.when == when && - _lastCommand!.positionTicks == positionTicks && - _lastCommand!.command == command && - _lastCommand!.playlistItemId == playlistItemId; - } - - void _scheduleCommand(String command, DateTime serverTime, int positionTicks) { - if (_timeSync == null) { - log('SyncPlay: Cannot schedule command without time sync'); - _executeCommand(command, positionTicks); - return; - } - - final localTime = _timeSync!.remoteDateToLocal(serverTime); - final now = DateTime.now().toUtc(); - final delay = localTime.difference(now); - - _commandTimer?.cancel(); - - // Show processing indicator - _updateState(_state.copyWith( - isProcessingCommand: true, - processingCommandType: command, - )); - - if (delay.isNegative) { - // Command is in the past - execute immediately - // Estimate where playback should be now - final estimatedTicks = _estimateCurrentTicks(positionTicks, serverTime); - log('SyncPlay: Executing late command: $command (${delay.inMilliseconds}ms late)'); - _executeCommand(command, estimatedTicks); - } else if (delay.inMilliseconds > 5000) { - // Suspiciously large delay - might indicate time sync issue - log('SyncPlay: Warning - large delay: ${delay.inMilliseconds}ms'); - _commandTimer = Timer(delay, () => _executeCommand(command, positionTicks)); - } else { - log('SyncPlay: Scheduling command: $command in ${delay.inMilliseconds}ms'); - _commandTimer = Timer(delay, () => _executeCommand(command, positionTicks)); - } - } - - int _estimateCurrentTicks(int ticks, DateTime when) { - if (_timeSync == null) return ticks; - final remoteNow = _timeSync!.localDateToRemote(DateTime.now().toUtc()); - final elapsedMs = remoteNow.difference(when).inMilliseconds; - return ticks + millisecondsToTicks(elapsedMs); - } - - Future _executeCommand(String command, int positionTicks) async { - log('SyncPlay: Executing command: $command at $positionTicks ticks'); - - try { - switch (command) { - case 'Pause': - await onPause?.call(); - // Seek to position if significantly different - final currentTicks = getPositionTicks?.call() ?? 0; - if ((positionTicks - currentTicks).abs() > ticksPerSecond ~/ 2) { - await onSeek?.call(positionTicks); - } - break; - - case 'Unpause': - // Seek to position if significantly different - final currentTicks = getPositionTicks?.call() ?? 0; - if ((positionTicks - currentTicks).abs() > ticksPerSecond ~/ 2) { - await onSeek?.call(positionTicks); - } - await onPlay?.call(); - break; - - case 'Seek': - await onPlay?.call(); - await onSeek?.call(positionTicks); - await onPause?.call(); - // Report ready after seek - await reportReady(isPlaying: true); - break; - - case 'Stop': - await onPause?.call(); - await onSeek?.call(0); - break; - } - } finally { - // Clear processing state after command completes - _updateState(_state.copyWith( - isProcessingCommand: false, - processingCommandType: null, - )); - } - } - - void _handleGroupUpdate(Map data) { - final updateType = data['Type'] as String?; - // final groupId = data['GroupId'] as String?; // Not needed - group info is in updateData - final updateData = data['Data']; - - switch (updateType) { - case 'GroupJoined': - _handleGroupJoined(updateData as Map); - break; - case 'UserJoined': - _handleUserJoined(updateData as String?); - break; - case 'UserLeft': - _handleUserLeft(updateData as String?); - break; - case 'GroupLeft': - _handleGroupLeft(); - break; - case 'GroupDoesNotExist': - _handleGroupDoesNotExist(); - break; - case 'StateUpdate': - _handleStateUpdate(updateData as Map); - break; - case 'PlayQueue': - _handlePlayQueue(updateData as Map); - break; - } - } - - void _handleGroupJoined(Map data) { - final groupId = data['GroupId'] as String?; - final groupName = data['GroupName'] as String?; - final stateStr = data['State'] as String?; - final participants = (data['Participants'] as List?)?.cast() ?? []; - - _updateState(_state.copyWith( - isInGroup: true, - groupId: groupId, - groupName: groupName, - groupState: _parseGroupState(stateStr), - participants: participants, - )); - - log('SyncPlay: Joined group "$groupName" ($groupId)'); - } - - void _handleUserJoined(String? userId) { - if (userId == null) return; - final participants = [..._state.participants, userId]; - _updateState(_state.copyWith(participants: participants)); - log('SyncPlay: User joined: $userId'); - } - - void _handleUserLeft(String? userId) { - if (userId == null) return; - final participants = _state.participants.where((p) => p != userId).toList(); - _updateState(_state.copyWith(participants: participants)); - log('SyncPlay: User left: $userId'); - } - - void _handleGroupLeft() { - _updateState(_state.copyWith( - isInGroup: false, - groupId: null, - groupName: null, - groupState: SyncPlayGroupState.idle, - participants: [], - )); - log('SyncPlay: Left group'); - } - - void _handleGroupDoesNotExist() { - _updateState(_state.copyWith( - isInGroup: false, - groupId: null, - groupName: null, - groupState: SyncPlayGroupState.idle, - participants: [], - )); - log('SyncPlay: Group does not exist'); - } - - void _handleStateUpdate(Map data) { - final stateStr = data['State'] as String?; - final reason = data['Reason'] as String?; - final positionTicks = data['PositionTicks'] as int? ?? 0; - - _updateState(_state.copyWith( - groupState: _parseGroupState(stateStr), - stateReason: reason, - positionTicks: positionTicks, - )); - - log('SyncPlay: State update: $stateStr (reason: $reason)'); - - // Handle waiting state - if (_parseGroupState(stateStr) == SyncPlayGroupState.waiting) { - _handleWaitingState(reason); - } - } - - void _handleWaitingState(String? reason) { - switch (reason) { - case 'Buffer': - case 'Unpause': - // Report ready if we're ready - if (!(isBuffering?.call() ?? false)) { - reportReady(isPlaying: true); - } - break; - } - } - - void _handlePlayQueue(Map data) { - final playlist = data['Playlist'] as List? ?? []; - final playingItemIndex = data['PlayingItemIndex'] as int? ?? 0; - final startPositionTicks = data['StartPositionTicks'] as int? ?? 0; - final isPlayingNow = data['IsPlaying'] as bool? ?? false; - final reason = data['Reason'] as String?; - - String? playingItemId; - String? playlistItemId; - - if (playlist.isNotEmpty && playingItemIndex < playlist.length) { - final item = playlist[playingItemIndex] as Map; - playingItemId = item['ItemId'] as String?; - playlistItemId = item['PlaylistItemId'] as String?; - } - - final previousItemId = _state.playingItemId; - - _updateState(_state.copyWith( - playingItemId: playingItemId, - playlistItemId: playlistItemId, - positionTicks: startPositionTicks, - )); - - log('SyncPlay: PlayQueue update - playing: $playingItemId (reason: $reason, isPlaying: $isPlayingNow, previousItemId: $previousItemId)'); - - // Trigger playback for NewPlaylist/SetCurrentItem regardless of whether item changed - // (the same user who set the queue also receives the update and needs to start playing) - final shouldTrigger = playingItemId != null && - (reason == 'NewPlaylist' || reason == 'SetCurrentItem' || - (playingItemId != previousItemId && isPlayingNow)); - - log('SyncPlay: shouldTrigger=$shouldTrigger (reason: $reason)'); - - if (shouldTrigger) { - log('SyncPlay: Triggering playback for item: $playingItemId'); - _startPlayback(playingItemId!, startPositionTicks); - } - } - /// Start playback of an item from SyncPlay Future _startPlayback(String itemId, int startPositionTicks) async { log('SyncPlay: _startPlayback called for item: $itemId, ticks: $startPositionTicks'); @@ -633,26 +359,16 @@ class SyncPlayController { } } - SyncPlayGroupState _parseGroupState(String? state) { - switch (state?.toLowerCase()) { - case 'idle': - return SyncPlayGroupState.idle; - case 'waiting': - return SyncPlayGroupState.waiting; - case 'paused': - return SyncPlayGroupState.paused; - case 'playing': - return SyncPlayGroupState.playing; - default: - return SyncPlayGroupState.idle; - } - } - void _updateState(SyncPlayState newState) { _state = newState; _stateController.add(newState); } + void _updateStateWith(SyncPlayState Function(SyncPlayState) updater) { + _state = updater(_state); + _stateController.add(_state); + } + // ───────────────────────────────────────────────────────────────────────── // Lifecycle Handling (for mobile background/resume) // ───────────────────────────────────────────────────────────────────────── @@ -713,6 +429,7 @@ class SyncPlayController { /// Dispose resources Future dispose() async { + _commandHandler.dispose(); await disconnect(); await _stateController.close(); } diff --git a/lib/providers/syncplay/syncplay_provider.dart b/lib/providers/syncplay/syncplay_provider.dart index ec2a6436d..ffd19e844 100644 --- a/lib/providers/syncplay/syncplay_provider.dart +++ b/lib/providers/syncplay/syncplay_provider.dart @@ -6,7 +6,7 @@ import 'package:riverpod_annotation/riverpod_annotation.dart'; import 'package:fladder/jellyfin/jellyfin_open_api.swagger.dart'; import 'package:fladder/providers/syncplay/syncplay_controller.dart'; -import 'package:fladder/providers/syncplay/syncplay_models.dart'; +import 'package:fladder/models/syncplay/syncplay_models.dart'; part 'syncplay_provider.g.dart'; diff --git a/lib/providers/syncplay/time_sync_service.dart b/lib/providers/syncplay/time_sync_service.dart index 3ef254ece..58557e9a7 100644 --- a/lib/providers/syncplay/time_sync_service.dart +++ b/lib/providers/syncplay/time_sync_service.dart @@ -2,7 +2,7 @@ import 'dart:async'; import 'dart:developer'; import 'package:fladder/jellyfin/jellyfin_open_api.swagger.dart'; -import 'package:fladder/providers/syncplay/syncplay_models.dart'; +import 'package:fladder/models/syncplay/syncplay_models.dart'; /// Service for synchronizing client clock with Jellyfin server using NTP-like algorithm class TimeSyncService { diff --git a/lib/providers/syncplay/websocket_manager.dart b/lib/providers/syncplay/websocket_manager.dart index 0b596ef63..e4d49f7e0 100644 --- a/lib/providers/syncplay/websocket_manager.dart +++ b/lib/providers/syncplay/websocket_manager.dart @@ -4,7 +4,7 @@ import 'dart:developer'; import 'package:web_socket_channel/web_socket_channel.dart'; -import 'package:fladder/providers/syncplay/syncplay_models.dart'; +import 'package:fladder/models/syncplay/syncplay_models.dart'; /// Manages WebSocket connection to Jellyfin server for SyncPlay class WebSocketManager { diff --git a/lib/providers/video_player_provider.dart b/lib/providers/video_player_provider.dart index e5fd97762..f62fd403a 100644 --- a/lib/providers/video_player_provider.dart +++ b/lib/providers/video_player_provider.dart @@ -10,7 +10,7 @@ import 'package:fladder/models/media_playback_model.dart'; import 'package:fladder/models/playback/playback_model.dart'; import 'package:fladder/providers/settings/client_settings_provider.dart'; import 'package:fladder/providers/settings/video_player_settings_provider.dart'; -import 'package:fladder/providers/syncplay/syncplay_models.dart'; +import 'package:fladder/models/syncplay/syncplay_models.dart'; import 'package:fladder/providers/syncplay/syncplay_provider.dart'; import 'package:fladder/util/debouncer.dart'; import 'package:fladder/wrappers/media_control_wrapper.dart'; diff --git a/lib/util/item_base_model/play_item_helpers.dart b/lib/util/item_base_model/play_item_helpers.dart index e27fe4f68..e31f3104f 100644 --- a/lib/util/item_base_model/play_item_helpers.dart +++ b/lib/util/item_base_model/play_item_helpers.dart @@ -1,10 +1,5 @@ -import 'package:flutter/foundation.dart'; -import 'package:flutter/material.dart'; - import 'package:auto_route/auto_route.dart'; import 'package:collection/collection.dart'; -import 'package:flutter_riverpod/flutter_riverpod.dart'; - import 'package:fladder/models/book_model.dart'; import 'package:fladder/models/item_base_model.dart'; import 'package:fladder/models/items/photos_model.dart'; @@ -13,7 +8,6 @@ import 'package:fladder/models/playback/playback_model.dart'; import 'package:fladder/providers/api_provider.dart'; import 'package:fladder/providers/book_viewer_provider.dart'; import 'package:fladder/providers/items/book_details_provider.dart'; -import 'package:fladder/providers/syncplay/syncplay_models.dart'; import 'package:fladder/providers/syncplay/syncplay_provider.dart'; import 'package:fladder/providers/video_player_provider.dart'; import 'package:fladder/routes/auto_router.gr.dart'; @@ -24,6 +18,11 @@ import 'package:fladder/util/list_extensions.dart'; import 'package:fladder/util/localization_helper.dart'; import 'package:fladder/util/refresh_state.dart'; import 'package:fladder/widgets/full_screen_helpers/full_screen_wrapper.dart'; +import 'package:flutter/foundation.dart'; +import 'package:flutter/material.dart'; +import 'package:flutter_riverpod/flutter_riverpod.dart'; + +import '../../models/syncplay/syncplay_models.dart'; Future _showLoadingIndicator(BuildContext context) async { return showDialog( @@ -76,12 +75,14 @@ Future _playVideo( return; } - final actualStartPosition = startPosition ?? await current.startDuration() ?? Duration.zero; + final actualStartPosition = + startPosition ?? await current.startDuration() ?? Duration.zero; - final loadedCorrectly = await ref.read(videoPlayerProvider.notifier).loadPlaybackItem( - current, - actualStartPosition, - ); + final loadedCorrectly = + await ref.read(videoPlayerProvider.notifier).loadPlaybackItem( + current, + actualStartPosition, + ); if (!loadedCorrectly) { if (context.mounted) { @@ -94,10 +95,13 @@ Future _playVideo( //Pop loading screen Navigator.of(context, rootNavigator: true).pop(); - ref.read(mediaPlaybackProvider.notifier).update((state) => state.copyWith(state: VideoPlayerState.fullScreen)); + ref + .read(mediaPlaybackProvider.notifier) + .update((state) => state.copyWith(state: VideoPlayerState.fullScreen)); await ref.read(videoPlayerProvider.notifier).openPlayer(context); - if (AdaptiveLayout.of(context).isDesktop && defaultTargetPlatform != TargetPlatform.macOS) { + if (AdaptiveLayout.of(context).isDesktop && + defaultTargetPlatform != TargetPlatform.macOS) { fullScreenHelper.closeFullScreen(ref); } @@ -113,7 +117,9 @@ extension BookBaseModelExtension on BookModel? { BuildContext context, WidgetRef ref, { int? currentPage, - AutoDisposeStateNotifierProvider? provider, + AutoDisposeStateNotifierProvider? + provider, BuildContext? parentContext, }) async { if (kIsWeb) { @@ -127,7 +133,9 @@ extension BookBaseModelExtension on BookModel? { if (newProvider == null) { newProvider = bookDetailsProvider(this?.id ?? ""); - await ref.watch(bookDetailsProvider(this?.id ?? "").notifier).fetchDetails(this!); + await ref + .watch(bookDetailsProvider(this?.id ?? "").notifier) + .fetchDetails(this!); } ref.read(bookViewerProvider.notifier).fetchBook(this); @@ -148,7 +156,9 @@ extension PhotoAlbumExtension on PhotoAlbumModel? { BuildContext context, WidgetRef ref, { int? currentPage, - AutoDisposeStateNotifierProvider? provider, + AutoDisposeStateNotifierProvider? + provider, BuildContext? parentContext, }) async { _showLoadingIndicator(context); @@ -158,7 +168,8 @@ extension PhotoAlbumExtension on PhotoAlbumModel? { final api = ref.read(jellyApiProvider); final getChildItems = await api.itemsGet( parentId: albumModel.id, - includeItemTypes: FladderItemType.galleryItem.map((e) => e.dtoKind).toList(), + includeItemTypes: + FladderItemType.galleryItem.map((e) => e.dtoKind).toList(), recursive: true); final photos = getChildItems.body?.items.whereType() ?? []; @@ -189,7 +200,9 @@ extension ItemBaseModelExtensions on ItemBaseModel? { switch (this) { PhotoAlbumModel album => album.play(context, ref), BookModel book => book.play(context, ref), - _ => _default(context, this, ref, startPosition: startPosition, showPlaybackOption: showPlaybackOption), + _ => _default(context, this, ref, + startPosition: startPosition, + showPlaybackOption: showPlaybackOption), }; Future _default( @@ -204,21 +217,23 @@ extension ItemBaseModelExtensions on ItemBaseModel? { // If in SyncPlay group, set the queue via SyncPlay instead of playing directly final isSyncPlayActive = ref.read(isSyncPlayActiveProvider); if (isSyncPlayActive) { - await _playSyncPlay(context, itemModel, ref, startPosition: startPosition); + await _playSyncPlay(context, itemModel, ref, + startPosition: startPosition); return; } _showLoadingIndicator(context); + PlaybackModel? model = + await ref.read(playbackModelHelper).createPlaybackModel( + context, + itemModel, + showPlaybackOptions: showPlaybackOption, + startPosition: startPosition, + ); - PlaybackModel? model = await ref.read(playbackModelHelper).createPlaybackModel( - context, - itemModel, - showPlaybackOptions: showPlaybackOption, - startPosition: startPosition, - ); - - await _playVideo(context, startPosition: startPosition, current: model, ref: ref); + await _playVideo(context, + startPosition: startPosition, current: model, ref: ref); } } @@ -229,8 +244,8 @@ Future _playSyncPlay( WidgetRef ref, { Duration? startPosition, }) async { - final startPositionTicks = startPosition != null - ? secondsToTicks(startPosition.inMilliseconds / 1000) + final startPositionTicks = startPosition != null + ? secondsToTicks(startPosition.inMilliseconds / 1000) : 0; // Set the new queue via SyncPlay - server will broadcast to all clients @@ -244,7 +259,8 @@ Future _playSyncPlay( } extension ItemBaseModelsBooleans on List { - Future playLibraryItems(BuildContext context, WidgetRef ref, {bool shuffle = false}) async { + Future playLibraryItems(BuildContext context, WidgetRef ref, + {bool shuffle = false}) async { if (isEmpty) return; _showLoadingIndicator(context); @@ -253,16 +269,22 @@ extension ItemBaseModelsBooleans on List { List> newList = await Future.wait(map((element) async { switch (element.type) { case FladderItemType.series: - return await ref.read(jellyApiProvider).fetchEpisodeFromShow(seriesId: element.id); + return await ref + .read(jellyApiProvider) + .fetchEpisodeFromShow(seriesId: element.id); default: return [element]; } })); - var expandedList = - newList.expand((element) => element).toList().where((element) => element.playAble).toList().uniqueBy( - (value) => value.id, - ); + var expandedList = newList + .expand((element) => element) + .toList() + .where((element) => element.playAble) + .toList() + .uniqueBy( + (value) => value.id, + ); if (shuffle) { expandedList.shuffle(); @@ -273,18 +295,19 @@ extension ItemBaseModelsBooleans on List { if (isSyncPlayActive) { Navigator.of(context, rootNavigator: true).pop(); // Pop loading indicator await ref.read(syncPlayProvider.notifier).setNewQueue( - itemIds: expandedList.map((e) => e.id).toList(), - playingItemPosition: 0, - startPositionTicks: 0, - ); + itemIds: expandedList.map((e) => e.id).toList(), + playingItemPosition: 0, + startPositionTicks: 0, + ); return; } - PlaybackModel? model = await ref.read(playbackModelHelper).createPlaybackModel( - context, - expandedList.firstOrNull, - libraryQueue: expandedList, - ); + PlaybackModel? model = + await ref.read(playbackModelHelper).createPlaybackModel( + context, + expandedList.firstOrNull, + libraryQueue: expandedList, + ); if (context.mounted) { await _playVideo(context, ref: ref, queue: expandedList, current: model); diff --git a/lib/widgets/syncplay/dashboard_fabs.dart b/lib/widgets/syncplay/dashboard_fabs.dart index 322554956..cd3a225db 100644 --- a/lib/widgets/syncplay/dashboard_fabs.dart +++ b/lib/widgets/syncplay/dashboard_fabs.dart @@ -9,7 +9,7 @@ import 'package:fladder/routes/auto_router.gr.dart'; import 'package:fladder/util/adaptive_layout/adaptive_layout.dart'; import 'package:fladder/util/localization_helper.dart'; import 'package:fladder/widgets/navigation_scaffold/components/adaptive_fab.dart'; -import 'package:fladder/widgets/syncplay/syncplay_group_sheet.dart'; +import 'package:fladder/widgets/syncplay/syncplay_utils.dart'; /// Combined FAB for dashboard with search and SyncPlay actions class DashboardFabs extends ConsumerWidget { @@ -59,7 +59,7 @@ class _SyncPlayFabButton extends StatelessWidget { child: IconButton.filledTonal( iconSize: 26, tooltip: 'SyncPlay', - onPressed: () => _showSyncPlaySheet(context), + onPressed: () => showSyncPlaySheet(context), style: IconButton.styleFrom( backgroundColor: isActive ? Theme.of(context).colorScheme.primaryContainer : null, ), @@ -89,14 +89,4 @@ class _SyncPlayFabButton extends StatelessWidget { ), ); } - - void _showSyncPlaySheet(BuildContext context) { - showModalBottomSheet( - context: context, - isScrollControlled: true, - useSafeArea: true, - backgroundColor: Colors.transparent, - builder: (context) => const SyncPlayGroupSheet(), - ); - } } diff --git a/lib/widgets/syncplay/syncplay_badge.dart b/lib/widgets/syncplay/syncplay_badge.dart index 0411d3942..333a0d1e7 100644 --- a/lib/widgets/syncplay/syncplay_badge.dart +++ b/lib/widgets/syncplay/syncplay_badge.dart @@ -3,7 +3,7 @@ import 'package:flutter/material.dart'; import 'package:flutter_riverpod/flutter_riverpod.dart'; import 'package:iconsax_plus/iconsax_plus.dart'; -import 'package:fladder/providers/syncplay/syncplay_models.dart'; +import 'package:fladder/models/syncplay/syncplay_models.dart'; import 'package:fladder/providers/syncplay/syncplay_provider.dart'; /// Badge widget showing SyncPlay status in the video player diff --git a/lib/widgets/syncplay/syncplay_fab.dart b/lib/widgets/syncplay/syncplay_fab.dart index 501dd2dac..76dc051a9 100644 --- a/lib/widgets/syncplay/syncplay_fab.dart +++ b/lib/widgets/syncplay/syncplay_fab.dart @@ -6,7 +6,7 @@ import 'package:iconsax_plus/iconsax_plus.dart'; import 'package:fladder/providers/syncplay/syncplay_provider.dart'; import 'package:fladder/util/localization_helper.dart'; import 'package:fladder/widgets/navigation_scaffold/components/adaptive_fab.dart'; -import 'package:fladder/widgets/syncplay/syncplay_group_sheet.dart'; +import 'package:fladder/widgets/syncplay/syncplay_utils.dart'; /// FAB for accessing SyncPlay from the home screen class SyncPlayFab extends ConsumerWidget { @@ -21,7 +21,7 @@ class SyncPlayFab extends ConsumerWidget { title: isActive ? context.localized.syncPlay : 'SyncPlay', heroTag: 'syncplay_fab', backgroundColor: isActive ? Theme.of(context).colorScheme.primaryContainer : null, - onPressed: () => _showSyncPlaySheet(context), + onPressed: () => showSyncPlaySheet(context), child: Stack( children: [ Icon( @@ -44,14 +44,4 @@ class SyncPlayFab extends ConsumerWidget { ), ).normal; } - - void _showSyncPlaySheet(BuildContext context) { - showModalBottomSheet( - context: context, - isScrollControlled: true, - useSafeArea: true, - backgroundColor: Colors.transparent, - builder: (context) => const SyncPlayGroupSheet(), - ); - } } diff --git a/lib/widgets/syncplay/syncplay_group_sheet.dart b/lib/widgets/syncplay/syncplay_group_sheet.dart index 8894ed96c..360796e4e 100644 --- a/lib/widgets/syncplay/syncplay_group_sheet.dart +++ b/lib/widgets/syncplay/syncplay_group_sheet.dart @@ -4,7 +4,7 @@ import 'package:flutter_riverpod/flutter_riverpod.dart'; import 'package:iconsax_plus/iconsax_plus.dart'; import 'package:fladder/jellyfin/jellyfin_open_api.swagger.dart'; -import 'package:fladder/providers/syncplay/syncplay_models.dart'; +import 'package:fladder/models/syncplay/syncplay_models.dart'; import 'package:fladder/providers/syncplay/syncplay_provider.dart'; import 'package:fladder/screens/shared/fladder_snackbar.dart'; import 'package:fladder/theme.dart'; diff --git a/lib/widgets/syncplay/syncplay_utils.dart b/lib/widgets/syncplay/syncplay_utils.dart new file mode 100644 index 000000000..f733f3808 --- /dev/null +++ b/lib/widgets/syncplay/syncplay_utils.dart @@ -0,0 +1,14 @@ +import 'package:flutter/material.dart'; + +import 'package:fladder/widgets/syncplay/syncplay_group_sheet.dart'; + +/// Show the SyncPlay group management bottom sheet +void showSyncPlaySheet(BuildContext context) { + showModalBottomSheet( + context: context, + isScrollControlled: true, + useSafeArea: true, + backgroundColor: Colors.transparent, + builder: (context) => const SyncPlayGroupSheet(), + ); +} From 57c4dac65285f1581912a8d22735c26ec2533934 Mon Sep 17 00:00:00 2001 From: Filip Iricanin Date: Tue, 13 Jan 2026 22:12:37 +0100 Subject: [PATCH 07/25] feat: Implement localization for SyncPlay This commit adds comprehensive localization support for the SyncPlay feature in both English and French. It also cleans up the project by removing the implementation plan document. Key changes: - Added localized strings for group management (create, join, leave), playback states (playing, pausing, seeking), and participant notifications. - Updated SyncPlay UI components (`SyncPlayBadge`, `SyncPlayGroupSheet`, `SyncPlayCommandIndicator`, and FABs) to use the new localized strings. - Enhanced `SyncPlayMessageHandler` and `SyncPlayController` to support context-aware notifications for user join/leave events. --- ...ncplay_mvp_implementation_96c11d62.plan.md | 215 ------------------ lib/l10n/app_en.arb | 96 ++++++++ lib/l10n/app_fr.arb | 100 ++++++++ .../handlers/syncplay_message_handler.dart | 16 ++ .../syncplay/syncplay_controller.dart | 1 + .../syncplay_command_indicator.dart | 17 +- lib/widgets/syncplay/dashboard_fabs.dart | 2 +- lib/widgets/syncplay/syncplay_badge.dart | 17 +- lib/widgets/syncplay/syncplay_fab.dart | 2 +- .../syncplay/syncplay_group_sheet.dart | 46 ++-- 10 files changed, 256 insertions(+), 256 deletions(-) delete mode 100644 .cursor/plans/syncplay_mvp_implementation_96c11d62.plan.md diff --git a/.cursor/plans/syncplay_mvp_implementation_96c11d62.plan.md b/.cursor/plans/syncplay_mvp_implementation_96c11d62.plan.md deleted file mode 100644 index b9ec5c78c..000000000 --- a/.cursor/plans/syncplay_mvp_implementation_96c11d62.plan.md +++ /dev/null @@ -1,215 +0,0 @@ ---- -name: SyncPlay MVP Implementation -overview: Implement Jellyfin SyncPlay for synchronized playback between users - MVP scope with group management, basic playback sync (play/pause/seek), WebSocket infrastructure, and time synchronization. -todos: - - id: models - content: Create SyncPlay models (group, command, message types) in lib/models/syncplay/ - status: pending - - id: websocket - content: Implement WebSocketManager with connection, keep-alive, and message routing - status: completed - - id: timesync - content: Implement TimeSyncService with NTP-like offset calculationImplement SyncPlayApiClient with all REST endpoints - status: completed - - id: controller - content: Implement SyncPlayController with state machine and command scheduling - status: completed - - id: adapter - content: Create SyncPlayPlayerAdapter bridging to BasePlayer - status: completed - - id: provider - content: Create SyncPlayProvider for Riverpod state management - status: completed - - id: ui-fab - content: Add SyncPlay FAB to home screen dashboard - status: completed - - id: ui-sheet - content: Create group list/create bottom sheet - status: completed - - id: ui-badge - content: Add sync indicator badge to video player controls - status: completed - - id: player-integration - content: Hook player events to report buffering/ready and intercept user actions - status: completed ---- - -# SyncPlay MVP Implementation - -## Architecture Overview - -```mermaid -flowchart TB - subgraph UI[UI Layer] - FAB[SyncPlay FAB] - Sheet[Group List Sheet] - Badge[Player Sync Badge] - end - - subgraph State[State Management] - Provider[SyncPlayProvider] - GroupState[Group State] - end - - subgraph Core[Core Services] - Controller[SyncPlayController] - TimeSync[TimeSyncService] - API[SyncPlayApiClient] - WS[WebSocketManager] - end - - subgraph Player[Player Integration] - Adapter[SyncPlayPlayerAdapter] - BasePlayer[Existing BasePlayer] - end - - FAB --> Sheet - Sheet --> Provider - Badge --> Provider - Provider --> Controller - Controller --> TimeSync - Controller --> API - Controller --> WS - Controller --> Adapter - Adapter --> BasePlayer -``` - -## Key Files to Create - -| File | Purpose | - -|------|---------| - -| `lib/services/syncplay/websocket_manager.dart` | WebSocket connection, keep-alive, message routing | - -| `lib/services/syncplay/time_sync_service.dart` | NTP-like clock offset calculation | - -| `lib/services/syncplay/syncplay_controller.dart` | Command handling, state machine, scheduling | - -| `lib/providers/syncplay_provider.dart` | Riverpod state management | - -| `lib/widgets/syncplay/syncplay_fab.dart` | FAB widget for home screen | - -| `lib/widgets/syncplay/syncplay_group_sheet.dart` | Bottom sheet for group list/create | - -| `lib/widgets/syncplay/syncplay_badge.dart` | Badge indicator for player controls | - -| `lib/wrappers/syncplay_player_adapter.dart` | Adapter bridging SyncPlay to `BasePlayer` | - -## Existing Generated API (No Implementation Needed) - -The Jellyfin client at `lib/jellyfin/jellyfin_open_api.swagger.dart` already provides: - -**Endpoints:** - -- `syncPlayListGet()`, `syncPlayNewPost()`, `syncPlayJoinPost()`, `syncPlayLeavePost()` -- `syncPlayPausePost()`, `syncPlayUnpausePost()`, `syncPlayStopPost()` -- `syncPlaySeekPost()`, `syncPlayBufferingPost()`, `syncPlayReadyPost()`, `syncPlayPingPost()` -- `syncPlaySetNewQueuePost()`, `getUtcTimeGet()` - -**Models:** - -- `GroupInfoDto`, `SyncPlayCommandMessage`, `SyncPlayGroupUpdateMessage` -- `BufferRequestDto`, `ReadyRequestDto`, `SeekRequestDto`, `PingRequestDto` -- `UtcTimeResponse`, `PlayQueueUpdate`, etc. - -## Key Files to Modify - -- [`lib/screens/home_screen.dart`](lib/screens/home_screen.dart) - Add SyncPlay FAB to dashboard destination -- [`lib/screens/video_player/video_player_controls.dart`](lib/screens/video_player/video_player_controls.dart) - Add sync badge, intercept user actions -- [`lib/wrappers/media_control_wrapper.dart`](lib/wrappers/media_control_wrapper.dart) - Hook SyncPlay adapter - -## Implementation Details - -### 1. WebSocket Manager - -- Connect to `wss://{server}/socket?api_key={token}&deviceId={deviceId}` -- Handle `ForceKeepAlive` with half-interval pings -- Route `SyncPlayCommand` and `SyncPlayGroupUpdate` messages -- Auto-reconnect with exponential backoff - -### 2. Time Sync Service - -- Use `/GetUtcTime` endpoint with T1-T4 timestamps -- Calculate offset: `((T2 - T1) + (T3 - T4)) / 2` -- Store 8 measurements, use minimum delay -- Greedy polling (1s) for first 3 pings, then 60s intervals -- Provide `remoteDateToLocal()` / `localDateToRemote()` converters - -### 3. SyncPlay Controller - -- State machine: Idle -> Waiting -> Playing/Paused -- Command scheduling with `Timer` for future execution -- Duplicate command detection (When + Position + Command + PlaylistItemId) -- Player event interception (distinguish user vs SyncPlay actions) -- Uses existing generated API client methods directly (no new API wrapper needed) - -### 4. Player Adapter - -Bridge between SyncPlay and existing `BasePlayer` / `MediaControlsWrapper`: - -class SyncPlayPlayerAdapter { - -final BasePlayer player; - -bool _syncPlayAction = false; // Flag to distinguish SyncPlay vs user actions - -// Wrap play/pause/seek to set flag - -Future syncPlayPause() async { - -_syncPlayAction = true; - -await player.pause(); - -_syncPlayAction = false; - -} - -// Expose streams for buffering/ready detection - -Stream get onBuffering => player.stateStream.map((s) => s.buffering); - -} - -### 5. UI Components - -- **FAB**: Icon changes when in sync session (normal: people icon, active: sync icon with badge) -- **Group Sheet**: List of groups with avatars, tap to join, "Create Group" button with name input -- **Player Badge**: Small indicator in player controls showing sync active + group name - -## Data Flow: Join Group and Play - -```mermaid -sequenceDiagram - participant User - participant FAB - participant Sheet - participant Provider - participant API - participant WS - participant Player - - User->>FAB: Tap - FAB->>Sheet: Open - Sheet->>API: GET /SyncPlay/List - API-->>Sheet: Groups[] - User->>Sheet: Tap group - Sheet->>API: POST /SyncPlay/Join - API-->>WS: GroupJoined message - WS->>Provider: Update state - Provider->>Sheet: Close, show badge - - Note over User: Browses library, selects media - User->>Player: Play media - Player->>API: POST /SyncPlay/SetNewQueue - API-->>WS: PlayQueue update - WS->>Provider: Sync to all clients -``` - -## Out of Scope (Future) - -- SpeedToSync / SkipToSync drift correction -- Playlist queue management UI -- Participant list display -- Chat functionality \ No newline at end of file diff --git a/lib/l10n/app_en.arb b/lib/l10n/app_en.arb index 5d3788478..5cabb8d48 100644 --- a/lib/l10n/app_en.arb +++ b/lib/l10n/app_en.arb @@ -976,6 +976,102 @@ "@syncPlay": { "description": "SyncPlay - synchronized playback feature" }, + "syncPlayCreateGroup": "Create SyncPlay Group", + "@syncPlayCreateGroup": {}, + "syncPlayGroupName": "Group Name", + "@syncPlayGroupName": {}, + "syncPlayGroupNameHint": "Movie Night", + "@syncPlayGroupNameHint": {}, + "syncPlayCreatedGroup": "Created group \"{groupName}\"", + "@syncPlayCreatedGroup": { + "placeholders": { + "groupName": { + "type": "String" + } + } + }, + "syncPlayFailedToCreateGroup": "Failed to create group", + "@syncPlayFailedToCreateGroup": {}, + "syncPlayJoinedGroup": "Joined \"{groupName}\"", + "@syncPlayJoinedGroup": { + "placeholders": { + "groupName": { + "type": "String" + } + } + }, + "syncPlayFailedToJoinGroup": "Failed to join group", + "@syncPlayFailedToJoinGroup": {}, + "syncPlayLeftGroup": "Left SyncPlay group", + "@syncPlayLeftGroup": {}, + "syncPlayFailedToLoadGroups": "Failed to load groups", + "@syncPlayFailedToLoadGroups": {}, + "syncPlayNoActiveGroups": "No active groups", + "@syncPlayNoActiveGroups": {}, + "syncPlayCreateGroupHint": "Create a group to watch together", + "@syncPlayCreateGroupHint": {}, + "syncPlayCreateGroupButton": "Create Group", + "@syncPlayCreateGroupButton": {}, + "syncPlayGroupFallback": "SyncPlay Group", + "@syncPlayGroupFallback": {}, + "syncPlayParticipants": "{count, plural, =1{1 participant} other{{count} participants}}", + "@syncPlayParticipants": { + "placeholders": { + "count": { + "type": "int" + } + } + }, + "syncPlayInstructions": "Browse your library and start playing something to sync with the group.", + "@syncPlayInstructions": {}, + "syncPlayUnnamedGroup": "Unnamed Group", + "@syncPlayUnnamedGroup": {}, + "syncPlayStateIdle": "Idle", + "@syncPlayStateIdle": {}, + "syncPlayStateWaiting": "Waiting for others...", + "@syncPlayStateWaiting": {}, + "syncPlayStatePaused": "Paused", + "@syncPlayStatePaused": {}, + "syncPlayStatePlaying": "Playing", + "@syncPlayStatePlaying": {}, + "syncPlaySyncingPause": "Syncing pause...", + "@syncPlaySyncingPause": {}, + "syncPlaySyncingPlay": "Syncing play...", + "@syncPlaySyncingPlay": {}, + "syncPlaySyncingSeek": "Syncing seek...", + "@syncPlaySyncingSeek": {}, + "syncPlayStopping": "Stopping...", + "@syncPlayStopping": {}, + "syncPlaySyncing": "Syncing...", + "@syncPlaySyncing": {}, + "syncPlayCommandPausing": "Pausing", + "@syncPlayCommandPausing": {}, + "syncPlayCommandPlaying": "Playing", + "@syncPlayCommandPlaying": {}, + "syncPlayCommandSeeking": "Seeking", + "@syncPlayCommandSeeking": {}, + "syncPlayCommandStopping": "Stopping", + "@syncPlayCommandStopping": {}, + "syncPlayCommandSyncing": "Syncing", + "@syncPlayCommandSyncing": {}, + "syncPlaySyncingWithGroup": "Syncing with group...", + "@syncPlaySyncingWithGroup": {}, + "syncPlayUserJoined": "{userName} joined the group", + "@syncPlayUserJoined": { + "placeholders": { + "userName": { + "type": "String" + } + } + }, + "syncPlayUserLeft": "{userName} left the group", + "@syncPlayUserLeft": { + "placeholders": { + "userName": { + "type": "String" + } + } + }, "syncDeleteItemDesc": "Delete all synced data for {item}?", "@syncDeleteItemDesc": { "description": "Sync delete item pop-up window", diff --git a/lib/l10n/app_fr.arb b/lib/l10n/app_fr.arb index 7484a27d4..4e2997b0a 100644 --- a/lib/l10n/app_fr.arb +++ b/lib/l10n/app_fr.arb @@ -801,6 +801,106 @@ "@switchUser": {}, "sync": "Synchroniser", "@sync": {}, + "syncPlay": "SyncPlay", + "@syncPlay": { + "description": "SyncPlay - fonctionnalité de lecture synchronisée" + }, + "syncPlayCreateGroup": "Créer un groupe SyncPlay", + "@syncPlayCreateGroup": {}, + "syncPlayGroupName": "Nom du groupe", + "@syncPlayGroupName": {}, + "syncPlayGroupNameHint": "Soirée cinéma", + "@syncPlayGroupNameHint": {}, + "syncPlayCreatedGroup": "Groupe \"{groupName}\" créé", + "@syncPlayCreatedGroup": { + "placeholders": { + "groupName": { + "type": "String" + } + } + }, + "syncPlayFailedToCreateGroup": "Échec de la création du groupe", + "@syncPlayFailedToCreateGroup": {}, + "syncPlayJoinedGroup": "Rejoint \"{groupName}\"", + "@syncPlayJoinedGroup": { + "placeholders": { + "groupName": { + "type": "String" + } + } + }, + "syncPlayFailedToJoinGroup": "Échec de la connexion au groupe", + "@syncPlayFailedToJoinGroup": {}, + "syncPlayLeftGroup": "Groupe SyncPlay quitté", + "@syncPlayLeftGroup": {}, + "syncPlayFailedToLoadGroups": "Échec du chargement des groupes", + "@syncPlayFailedToLoadGroups": {}, + "syncPlayNoActiveGroups": "Aucun groupe actif", + "@syncPlayNoActiveGroups": {}, + "syncPlayCreateGroupHint": "Créez un groupe pour regarder ensemble", + "@syncPlayCreateGroupHint": {}, + "syncPlayCreateGroupButton": "Créer un groupe", + "@syncPlayCreateGroupButton": {}, + "syncPlayGroupFallback": "Groupe SyncPlay", + "@syncPlayGroupFallback": {}, + "syncPlayParticipants": "{count, plural, =1{1 participant} other{{count} participants}}", + "@syncPlayParticipants": { + "placeholders": { + "count": { + "type": "int" + } + } + }, + "syncPlayInstructions": "Parcourez votre bibliothèque et lancez une lecture pour synchroniser avec le groupe.", + "@syncPlayInstructions": {}, + "syncPlayUnnamedGroup": "Groupe sans nom", + "@syncPlayUnnamedGroup": {}, + "syncPlayStateIdle": "Inactif", + "@syncPlayStateIdle": {}, + "syncPlayStateWaiting": "En attente des autres...", + "@syncPlayStateWaiting": {}, + "syncPlayStatePaused": "En pause", + "@syncPlayStatePaused": {}, + "syncPlayStatePlaying": "Lecture en cours", + "@syncPlayStatePlaying": {}, + "syncPlaySyncingPause": "Synchronisation pause...", + "@syncPlaySyncingPause": {}, + "syncPlaySyncingPlay": "Synchronisation lecture...", + "@syncPlaySyncingPlay": {}, + "syncPlaySyncingSeek": "Synchronisation position...", + "@syncPlaySyncingSeek": {}, + "syncPlayStopping": "Arrêt...", + "@syncPlayStopping": {}, + "syncPlaySyncing": "Synchronisation...", + "@syncPlaySyncing": {}, + "syncPlayCommandPausing": "Mise en pause", + "@syncPlayCommandPausing": {}, + "syncPlayCommandPlaying": "Lecture", + "@syncPlayCommandPlaying": {}, + "syncPlayCommandSeeking": "Recherche", + "@syncPlayCommandSeeking": {}, + "syncPlayCommandStopping": "Arrêt", + "@syncPlayCommandStopping": {}, + "syncPlayCommandSyncing": "Synchronisation", + "@syncPlayCommandSyncing": {}, + "syncPlaySyncingWithGroup": "Synchronisation avec le groupe...", + "@syncPlaySyncingWithGroup": {}, + "syncPlayUserJoined": "{userName} a rejoint le groupe", + "@syncPlayUserJoined": { + "placeholders": { + "userName": { + "type": "String" + } + } + }, + "syncPlayUserLeft": "{userName} a quitté le groupe", + "@syncPlayUserLeft": { + "placeholders": { + "userName": { + "type": "String" + } + } + }, "syncDeleteItemDesc": "Supprimer toutes les données synchronisées pour {item} ?", "@syncDeleteItemDesc": { "description": "Fenêtre contextuelle de suppression d'élément synchronisé", diff --git a/lib/providers/syncplay/handlers/syncplay_message_handler.dart b/lib/providers/syncplay/handlers/syncplay_message_handler.dart index 5d84de0ae..9d1129e5e 100644 --- a/lib/providers/syncplay/handlers/syncplay_message_handler.dart +++ b/lib/providers/syncplay/handlers/syncplay_message_handler.dart @@ -1,6 +1,10 @@ import 'dart:developer'; +import 'package:flutter/material.dart'; + import 'package:fladder/models/syncplay/syncplay_models.dart'; +import 'package:fladder/screens/shared/fladder_snackbar.dart'; +import 'package:fladder/util/localization_helper.dart'; /// Callback for reporting ready state after seek typedef ReportReadyCallback = Future Function({bool isPlaying}); @@ -16,12 +20,14 @@ class SyncPlayMessageHandler { required this.reportReady, required this.startPlayback, required this.isBuffering, + required this.getContext, }); final void Function(SyncPlayState Function(SyncPlayState)) onStateUpdate; final ReportReadyCallback reportReady; final StartPlaybackCallback startPlayback; final bool Function() isBuffering; + final BuildContext? Function() getContext; /// Handle group update message void handleGroupUpdate(Map data, SyncPlayState currentState) { @@ -74,6 +80,11 @@ class SyncPlayMessageHandler { if (userId == null) return; final participants = [...currentState.participants, userId]; onStateUpdate((state) => state.copyWith(participants: participants)); + + final context = getContext(); + if (context != null) { + fladderSnackbar(context, title: context.localized.syncPlayUserJoined(userId)); + } log('SyncPlay: User joined: $userId'); } @@ -82,6 +93,11 @@ class SyncPlayMessageHandler { final participants = currentState.participants.where((p) => p != userId).toList(); onStateUpdate((state) => state.copyWith(participants: participants)); + + final context = getContext(); + if (context != null) { + fladderSnackbar(context, title: context.localized.syncPlayUserLeft(userId)); + } log('SyncPlay: User left: $userId'); } diff --git a/lib/providers/syncplay/syncplay_controller.dart b/lib/providers/syncplay/syncplay_controller.dart index 6e7ee7a0c..6a0982af9 100644 --- a/lib/providers/syncplay/syncplay_controller.dart +++ b/lib/providers/syncplay/syncplay_controller.dart @@ -31,6 +31,7 @@ class SyncPlayController { reportReady: ({bool isPlaying = true}) => reportReady(isPlaying: isPlaying), startPlayback: _startPlayback, isBuffering: () => _commandHandler.isBuffering?.call() ?? false, + getContext: () => getNavigatorKey(_ref)?.currentContext, ); } diff --git a/lib/screens/video_player/components/syncplay_command_indicator.dart b/lib/screens/video_player/components/syncplay_command_indicator.dart index 8272eae43..c962528c2 100644 --- a/lib/screens/video_player/components/syncplay_command_indicator.dart +++ b/lib/screens/video_player/components/syncplay_command_indicator.dart @@ -4,6 +4,7 @@ import 'package:flutter_riverpod/flutter_riverpod.dart'; import 'package:iconsax_plus/iconsax_plus.dart'; import 'package:fladder/providers/syncplay/syncplay_provider.dart'; +import 'package:fladder/util/localization_helper.dart'; /// Centered overlay showing SyncPlay command being processed class SyncPlayCommandIndicator extends ConsumerWidget { @@ -48,7 +49,7 @@ class SyncPlayCommandIndicator extends ConsumerWidget { _CommandIcon(commandType: commandType), const SizedBox(height: 12), Text( - _getCommandLabel(commandType), + _getCommandLabel(context, commandType), style: Theme.of(context).textTheme.titleMedium?.copyWith( color: Theme.of(context).colorScheme.onSurface, fontWeight: FontWeight.w600, @@ -68,7 +69,7 @@ class SyncPlayCommandIndicator extends ConsumerWidget { ), const SizedBox(width: 8), Text( - 'Syncing with group...', + context.localized.syncPlaySyncingWithGroup, style: Theme.of(context).textTheme.bodySmall?.copyWith( color: Theme.of(context).colorScheme.onSurfaceVariant, ), @@ -84,13 +85,13 @@ class SyncPlayCommandIndicator extends ConsumerWidget { ); } - String _getCommandLabel(String? command) { + String _getCommandLabel(BuildContext context, String? command) { return switch (command) { - 'Pause' => 'Pausing', - 'Unpause' => 'Playing', - 'Seek' => 'Seeking', - 'Stop' => 'Stopping', - _ => 'Syncing', + 'Pause' => context.localized.syncPlayCommandPausing, + 'Unpause' => context.localized.syncPlayCommandPlaying, + 'Seek' => context.localized.syncPlayCommandSeeking, + 'Stop' => context.localized.syncPlayCommandStopping, + _ => context.localized.syncPlayCommandSyncing, }; } } diff --git a/lib/widgets/syncplay/dashboard_fabs.dart b/lib/widgets/syncplay/dashboard_fabs.dart index cd3a225db..48c114afa 100644 --- a/lib/widgets/syncplay/dashboard_fabs.dart +++ b/lib/widgets/syncplay/dashboard_fabs.dart @@ -58,7 +58,7 @@ class _SyncPlayFabButton extends StatelessWidget { tag: 'syncplay_fab', child: IconButton.filledTonal( iconSize: 26, - tooltip: 'SyncPlay', + tooltip: context.localized.syncPlay, onPressed: () => showSyncPlaySheet(context), style: IconButton.styleFrom( backgroundColor: isActive ? Theme.of(context).colorScheme.primaryContainer : null, diff --git a/lib/widgets/syncplay/syncplay_badge.dart b/lib/widgets/syncplay/syncplay_badge.dart index 333a0d1e7..485fc9477 100644 --- a/lib/widgets/syncplay/syncplay_badge.dart +++ b/lib/widgets/syncplay/syncplay_badge.dart @@ -5,6 +5,7 @@ import 'package:iconsax_plus/iconsax_plus.dart'; import 'package:fladder/models/syncplay/syncplay_models.dart'; import 'package:fladder/providers/syncplay/syncplay_provider.dart'; +import 'package:fladder/util/localization_helper.dart'; /// Badge widget showing SyncPlay status in the video player class SyncPlayBadge extends ConsumerWidget { @@ -69,7 +70,7 @@ class SyncPlayBadge extends ConsumerWidget { ), const SizedBox(width: 6), Text( - _getProcessingText(processingCommand), + _getProcessingText(context, processingCommand), style: Theme.of(context).textTheme.labelSmall?.copyWith( color: Theme.of(context).colorScheme.onPrimaryContainer, fontWeight: FontWeight.w600, @@ -83,7 +84,7 @@ class SyncPlayBadge extends ConsumerWidget { ), const SizedBox(width: 6), Text( - groupName ?? 'SyncPlay', + groupName ?? context.localized.syncPlay, style: Theme.of(context).textTheme.labelSmall?.copyWith( color: Theme.of(context).colorScheme.onSurface, ), @@ -100,13 +101,13 @@ class SyncPlayBadge extends ConsumerWidget { ); } - String _getProcessingText(String? command) { + String _getProcessingText(BuildContext context, String? command) { return switch (command) { - 'Pause' => 'Syncing pause...', - 'Unpause' => 'Syncing play...', - 'Seek' => 'Syncing seek...', - 'Stop' => 'Stopping...', - _ => 'Syncing...', + 'Pause' => context.localized.syncPlaySyncingPause, + 'Unpause' => context.localized.syncPlaySyncingPlay, + 'Seek' => context.localized.syncPlaySyncingSeek, + 'Stop' => context.localized.syncPlayStopping, + _ => context.localized.syncPlaySyncing, }; } } diff --git a/lib/widgets/syncplay/syncplay_fab.dart b/lib/widgets/syncplay/syncplay_fab.dart index 76dc051a9..9df83c6cc 100644 --- a/lib/widgets/syncplay/syncplay_fab.dart +++ b/lib/widgets/syncplay/syncplay_fab.dart @@ -18,7 +18,7 @@ class SyncPlayFab extends ConsumerWidget { return AdaptiveFab( context: context, - title: isActive ? context.localized.syncPlay : 'SyncPlay', + title: context.localized.syncPlay, heroTag: 'syncplay_fab', backgroundColor: isActive ? Theme.of(context).colorScheme.primaryContainer : null, onPressed: () => showSyncPlaySheet(context), diff --git a/lib/widgets/syncplay/syncplay_group_sheet.dart b/lib/widgets/syncplay/syncplay_group_sheet.dart index 360796e4e..54ceffb58 100644 --- a/lib/widgets/syncplay/syncplay_group_sheet.dart +++ b/lib/widgets/syncplay/syncplay_group_sheet.dart @@ -64,12 +64,12 @@ class _SyncPlayGroupSheetState extends ConsumerState { final group = await ref.read(syncPlayProvider.notifier).createGroup(name); if (group != null && mounted) { - fladderSnackbar(context, title: 'Created group "${group.groupName}"'); + fladderSnackbar(context, title: context.localized.syncPlayCreatedGroup(group.groupName ?? '')); Navigator.of(context).pop(); } else { setState(() => _isLoading = false); if (mounted) { - fladderSnackbar(context, title: 'Failed to create group'); + fladderSnackbar(context, title: context.localized.syncPlayFailedToCreateGroup); } } } @@ -79,13 +79,13 @@ class _SyncPlayGroupSheetState extends ConsumerState { return showDialog( context: context, builder: (context) => AlertDialog( - title: const Text('Create SyncPlay Group'), + title: Text(context.localized.syncPlayCreateGroup), content: TextField( controller: controller, autofocus: true, - decoration: const InputDecoration( - labelText: 'Group Name', - hintText: 'Movie Night', + decoration: InputDecoration( + labelText: context.localized.syncPlayGroupName, + hintText: context.localized.syncPlayGroupNameHint, ), onSubmitted: (value) => Navigator.of(context).pop(value), ), @@ -108,12 +108,12 @@ class _SyncPlayGroupSheetState extends ConsumerState { final success = await ref.read(syncPlayProvider.notifier).joinGroup(group.groupId ?? ''); if (success && mounted) { - fladderSnackbar(context, title: 'Joined "${group.groupName}"'); + fladderSnackbar(context, title: context.localized.syncPlayJoinedGroup(group.groupName ?? '')); Navigator.of(context).pop(); } else { setState(() => _isLoading = false); if (mounted) { - fladderSnackbar(context, title: 'Failed to join group'); + fladderSnackbar(context, title: context.localized.syncPlayFailedToJoinGroup); } } } @@ -121,7 +121,7 @@ class _SyncPlayGroupSheetState extends ConsumerState { Future _leaveGroup() async { await ref.read(syncPlayProvider.notifier).leaveGroup(); if (mounted) { - fladderSnackbar(context, title: 'Left SyncPlay group'); + fladderSnackbar(context, title: context.localized.syncPlayLeftGroup); Navigator.of(context).pop(); } } @@ -171,7 +171,7 @@ class _SyncPlayGroupSheetState extends ConsumerState { const SizedBox(width: 12), Expanded( child: Text( - 'SyncPlay', + context.localized.syncPlay, style: Theme.of(context).textTheme.titleLarge, ), ), @@ -235,7 +235,7 @@ class _SyncPlayGroupSheetState extends ConsumerState { ), const SizedBox(height: 16), Text( - 'Failed to load groups', + context.localized.syncPlayFailedToLoadGroups, style: Theme.of(context).textTheme.titleMedium, ), const SizedBox(height: 8), @@ -264,12 +264,12 @@ class _SyncPlayGroupSheetState extends ConsumerState { ), const SizedBox(height: 16), Text( - 'No active groups', + context.localized.syncPlayNoActiveGroups, style: Theme.of(context).textTheme.titleMedium, ), const SizedBox(height: 8), Text( - 'Create a group to watch together', + context.localized.syncPlayCreateGroupHint, style: Theme.of(context).textTheme.bodyMedium?.copyWith( color: Theme.of(context).colorScheme.onSurfaceVariant, ), @@ -279,7 +279,7 @@ class _SyncPlayGroupSheetState extends ConsumerState { autofocus: true, // Focus for TV navigation onPressed: _createGroup, icon: const Icon(IconsaxPlusLinear.add), - label: const Text('Create Group'), + label: Text(context.localized.syncPlayCreateGroupButton), ), ], ), @@ -330,11 +330,11 @@ class _SyncPlayGroupSheetState extends ConsumerState { crossAxisAlignment: CrossAxisAlignment.start, children: [ Text( - state.groupName ?? 'SyncPlay Group', + state.groupName ?? context.localized.syncPlayGroupFallback, style: Theme.of(context).textTheme.titleMedium, ), Text( - '${state.participants.length} participants', + context.localized.syncPlayParticipants(state.participants.length), style: Theme.of(context).textTheme.bodySmall?.copyWith( color: Theme.of(context).colorScheme.onSurfaceVariant, ), @@ -354,7 +354,7 @@ class _SyncPlayGroupSheetState extends ConsumerState { // Instructions Text( - 'Browse your library and start playing something to sync with the group.', + context.localized.syncPlayInstructions, style: Theme.of(context).textTheme.bodyMedium?.copyWith( color: Theme.of(context).colorScheme.onSurfaceVariant, ), @@ -368,22 +368,22 @@ class _SyncPlayGroupSheetState extends ConsumerState { final (icon, label, color) = switch (state.groupState) { SyncPlayGroupState.idle => ( IconsaxPlusLinear.pause_circle, - 'Idle', + context.localized.syncPlayStateIdle, Theme.of(context).colorScheme.onSurfaceVariant, ), SyncPlayGroupState.waiting => ( IconsaxPlusLinear.timer_1, - 'Waiting for others...', + context.localized.syncPlayStateWaiting, Theme.of(context).colorScheme.tertiary, ), SyncPlayGroupState.paused => ( IconsaxPlusLinear.pause, - 'Paused', + context.localized.syncPlayStatePaused, Theme.of(context).colorScheme.secondary, ), SyncPlayGroupState.playing => ( IconsaxPlusLinear.play, - 'Playing', + context.localized.syncPlayStatePlaying, Theme.of(context).colorScheme.primary, ), }; @@ -431,9 +431,9 @@ class _GroupListTile extends StatelessWidget { color: Theme.of(context).colorScheme.onPrimaryContainer, ), ), - title: Text(group.groupName ?? 'Unnamed Group'), + title: Text(group.groupName ?? context.localized.syncPlayUnnamedGroup), subtitle: Text( - '${group.participants?.length ?? 0} participants', + context.localized.syncPlayParticipants(group.participants?.length ?? 0), style: Theme.of(context).textTheme.bodySmall, ), trailing: const Icon(IconsaxPlusLinear.arrow_right_3), From 51741cc2fbb68fed4c01f52eb4debfedb7bc8eaf Mon Sep 17 00:00:00 2001 From: Filip Iricanin Date: Tue, 13 Jan 2026 22:24:09 +0100 Subject: [PATCH 08/25] fix: Ensure SyncPlay FAB is visible in side navigation bar This change updates the `SideNavigationBar` to consistently display the `SyncPlayFab` alongside the primary action button. Previously, the `SyncPlayFab` was only included via custom FABs (like on the dashboard); it is now integrated into the default layout for all destinations within the side navigation bar. --- .../components/side_navigation_bar.dart | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-) diff --git a/lib/widgets/navigation_scaffold/components/side_navigation_bar.dart b/lib/widgets/navigation_scaffold/components/side_navigation_bar.dart index e226d3ec7..29903b93a 100644 --- a/lib/widgets/navigation_scaffold/components/side_navigation_bar.dart +++ b/lib/widgets/navigation_scaffold/components/side_navigation_bar.dart @@ -26,6 +26,7 @@ import 'package:fladder/widgets/shared/custom_tooltip.dart'; import 'package:fladder/widgets/shared/item_actions.dart'; import 'package:fladder/widgets/shared/modal_bottom_sheet.dart'; import 'package:fladder/widgets/shared/simple_overflow_widget.dart'; +import 'package:fladder/widgets/syncplay/syncplay_fab.dart'; final navBarNode = FocusNode(); @@ -364,15 +365,22 @@ class _SideNavigationBarState extends ConsumerState { final destination = (widget.currentIndex >= 0 && widget.currentIndex < widget.destinations.length) ? widget.destinations[widget.currentIndex] : null; - - // If there's a custom FAB widget, use it (doesn't support extended mode) + + // If there's a custom FAB widget, use it (already includes SyncPlay for dashboard) if (destination?.customFab != null) { return destination!.customFab!; } - - // Otherwise use the AdaptiveFab with extended/normal modes + + // Otherwise show SyncPlay + action button (same pattern as DashboardFabs) final fab = actionButton(context); - return expanded ? fab.extended : fab.normal; + return Column( + mainAxisSize: MainAxisSize.min, + spacing: 8, + children: [ + const SyncPlayFab(), + expanded ? fab.extended : fab.normal, + ], + ); } } From b64a1f150d52724854dbf33474a8a17b75a2daf7 Mon Sep 17 00:00:00 2001 From: Filip Iricanin Date: Sat, 17 Jan 2026 14:32:29 +0100 Subject: [PATCH 09/25] feat: integrate SyncPlay with native Android player This commit bridges the native Android video player with the SyncPlay system by routing user interactions (play, pause, seek) through Flutter. This ensures that actions performed on the native player are properly synchronized across SyncPlay group members. Key changes: - **Pigeon API Update**: Added `onUserPlay`, `onUserPause`, and `onUserSeek` to `VideoPlayerControlsCallback` to allow the native Android layer to communicate user actions back to Flutter. - **Native Android UI integration**: Updated `ProgressBar`, `SkipOverlay`, and `VideoPlayerControls` composables to invoke these new Flutter callbacks instead of calling the player directly when SyncPlay is active. - **SyncPlay Logic Improvements**: - Introduced a cooldown period (`_syncPlayCooldown`) after receiving a SyncPlay command to prevent feedback loops and accidental double-reporting of buffering states. - Enhanced `SyncPlayCommandHandler` to improve playback consistency: seeks now only trigger if the difference is >1 second, and the "Seek" command now reports "ready" to the server after completion. - Updated `VideoPlayerProvider` to maintain playback state (resuming if previously playing) after a seek operation for better consistency. - **Group Management**: Added checks in `SyncPlayController` to automatically leave an existing group before joining a new one and verified WebSocket connectivity before join attempts. - **Navigation**: Improved SyncPlay playback initiation by using the shared `openPlayer` logic, ensuring compatibility with both native (Android TV) and Flutter-based players. --- .../fladder/api/VideoPlayerHelper.g.kt | 57 +++++++++++++++ .../composables/controls/ProgressBar.kt | 20 +++-- .../composables/controls/SkipOverlay.kt | 6 +- .../controls/VideoPlayerControls.kt | 32 +++++--- .../handlers/syncplay_command_handler.dart | 27 +++++-- .../syncplay/syncplay_controller.dart | 47 +++++++++--- lib/providers/syncplay/syncplay_provider.dart | 3 + lib/providers/video_player_provider.dart | 25 ++++++- lib/src/video_player_helper.g.dart | 73 +++++++++++++++++++ pigeons/video_player.dart | 10 +++ 10 files changed, 260 insertions(+), 40 deletions(-) diff --git a/android/app/src/main/kotlin/nl/jknaapen/fladder/api/VideoPlayerHelper.g.kt b/android/app/src/main/kotlin/nl/jknaapen/fladder/api/VideoPlayerHelper.g.kt index 64659c591..8808529b0 100644 --- a/android/app/src/main/kotlin/nl/jknaapen/fladder/api/VideoPlayerHelper.g.kt +++ b/android/app/src/main/kotlin/nl/jknaapen/fladder/api/VideoPlayerHelper.g.kt @@ -1020,4 +1020,61 @@ class VideoPlayerControlsCallback(private val binaryMessenger: BinaryMessenger, } } } + /** User-initiated play action from native player (for SyncPlay integration) */ + fun onUserPlay(callback: (Result) -> Unit) +{ + val separatedMessageChannelSuffix = if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" + val channelName = "dev.flutter.pigeon.nl_jknaapen_fladder.video.VideoPlayerControlsCallback.onUserPlay$separatedMessageChannelSuffix" + val channel = BasicMessageChannel(binaryMessenger, channelName, codec) + channel.send(null) { + if (it is List<*>) { + if (it.size > 1) { + callback(Result.failure(FlutterError(it[0] as String, it[1] as String, it[2] as String?))) + } else { + callback(Result.success(Unit)) + } + } else { + callback(Result.failure(VideoPlayerHelperPigeonUtils.createConnectionError(channelName))) + } + } + } + /** User-initiated pause action from native player (for SyncPlay integration) */ + fun onUserPause(callback: (Result) -> Unit) +{ + val separatedMessageChannelSuffix = if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" + val channelName = "dev.flutter.pigeon.nl_jknaapen_fladder.video.VideoPlayerControlsCallback.onUserPause$separatedMessageChannelSuffix" + val channel = BasicMessageChannel(binaryMessenger, channelName, codec) + channel.send(null) { + if (it is List<*>) { + if (it.size > 1) { + callback(Result.failure(FlutterError(it[0] as String, it[1] as String, it[2] as String?))) + } else { + callback(Result.success(Unit)) + } + } else { + callback(Result.failure(VideoPlayerHelperPigeonUtils.createConnectionError(channelName))) + } + } + } + /** + * User-initiated seek action from native player (for SyncPlay integration) + * Position is in milliseconds + */ + fun onUserSeek(positionMsArg: Long, callback: (Result) -> Unit) +{ + val separatedMessageChannelSuffix = if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" + val channelName = "dev.flutter.pigeon.nl_jknaapen_fladder.video.VideoPlayerControlsCallback.onUserSeek$separatedMessageChannelSuffix" + val channel = BasicMessageChannel(binaryMessenger, channelName, codec) + channel.send(listOf(positionMsArg)) { + if (it is List<*>) { + if (it.size > 1) { + callback(Result.failure(FlutterError(it[0] as String, it[1] as String, it[2] as String?))) + } else { + callback(Result.success(Unit)) + } + } else { + callback(Result.failure(VideoPlayerHelperPigeonUtils.createConnectionError(channelName))) + } + } + } } diff --git a/android/app/src/main/kotlin/nl/jknaapen/fladder/composables/controls/ProgressBar.kt b/android/app/src/main/kotlin/nl/jknaapen/fladder/composables/controls/ProgressBar.kt index 1e620630b..17ae09636 100644 --- a/android/app/src/main/kotlin/nl/jknaapen/fladder/composables/controls/ProgressBar.kt +++ b/android/app/src/main/kotlin/nl/jknaapen/fladder/composables/controls/ProgressBar.kt @@ -277,7 +277,8 @@ internal fun RowScope.SimpleProgressBar( onUserInteraction() val clickRelativeOffset = offset.x / width.toFloat() val newPosition = duration.milliseconds * clickRelativeOffset.toDouble() - player.seekTo(newPosition.toLong(DurationUnit.MILLISECONDS)) + // Route through Flutter for SyncPlay support + VideoPlayerObject.videoPlayerControls?.onUserSeek(newPosition.toLong(DurationUnit.MILLISECONDS)) {} } } .pointerInput(Unit) { @@ -299,7 +300,8 @@ internal fun RowScope.SimpleProgressBar( }, onDragEnd = { onScrubbingChanged(false) - player.seekTo(internalTempPosition) + // Route through Flutter for SyncPlay support + VideoPlayerObject.videoPlayerControls?.onUserSeek(internalTempPosition) {} }, onDragCancel = { onScrubbingChanged(false) @@ -478,7 +480,8 @@ internal fun RowScope.SimpleProgressBar( if (!scrubbingTimeLine) { onTempPosChanged(position) onScrubbingChanged(true) - player.pause() + // Route through Flutter for SyncPlay support + VideoPlayerObject.videoPlayerControls?.onUserPause {} } val newPos = max( 0L, @@ -499,7 +502,8 @@ internal fun RowScope.SimpleProgressBar( if (!scrubbingTimeLine) { onTempPosChanged(position) onScrubbingChanged(true) - player.pause() + // Route through Flutter for SyncPlay support + VideoPlayerObject.videoPlayerControls?.onUserPause {} } val newPos = min(player.duration.takeIf { it > 0 } ?: 1L, tempPosition + scrubSpeedResult()) @@ -510,8 +514,9 @@ internal fun RowScope.SimpleProgressBar( Enter, Spacebar, ButtonSelect, DirectionCenter -> { if (scrubbingTimeLine) { - player.seekTo(tempPosition) - player.play() + // Route through Flutter for SyncPlay support + VideoPlayerObject.videoPlayerControls?.onUserSeek(tempPosition) {} + VideoPlayerObject.videoPlayerControls?.onUserPlay {} onScrubbingChanged(false) true } else false @@ -520,7 +525,8 @@ internal fun RowScope.SimpleProgressBar( Escape, Back -> { if (scrubbingTimeLine) { onScrubbingChanged(false) - player.play() + // Route through Flutter for SyncPlay support + VideoPlayerObject.videoPlayerControls?.onUserPlay {} true } false diff --git a/android/app/src/main/kotlin/nl/jknaapen/fladder/composables/controls/SkipOverlay.kt b/android/app/src/main/kotlin/nl/jknaapen/fladder/composables/controls/SkipOverlay.kt index c84d32104..851aa324c 100644 --- a/android/app/src/main/kotlin/nl/jknaapen/fladder/composables/controls/SkipOverlay.kt +++ b/android/app/src/main/kotlin/nl/jknaapen/fladder/composables/controls/SkipOverlay.kt @@ -70,7 +70,8 @@ internal fun BoxScope.SegmentSkipOverlay( val currentSegmentId = activeSegment?.let { "${it.type}-${it.start}-${it.end}" } fun skipSegment(segment: MediaSegment, segmentId: String) { - player.seekTo(segment.end + 250.milliseconds.inWholeMilliseconds) + // Route through Flutter for SyncPlay support + VideoPlayerObject.videoPlayerControls?.onUserSeek(segment.end + 250.milliseconds.inWholeMilliseconds) {} skippedSegments.add(segmentId) } @@ -106,7 +107,8 @@ internal fun BoxScope.SegmentSkipOverlay( enableScaledFocus = true, onClick = { activeSegment?.let { - player.seekTo(it.end) + // Route through Flutter for SyncPlay support + VideoPlayerObject.videoPlayerControls?.onUserSeek(it.end) {} } } ) { diff --git a/android/app/src/main/kotlin/nl/jknaapen/fladder/composables/controls/VideoPlayerControls.kt b/android/app/src/main/kotlin/nl/jknaapen/fladder/composables/controls/VideoPlayerControls.kt index 13613eac0..c65f24e28 100644 --- a/android/app/src/main/kotlin/nl/jknaapen/fladder/composables/controls/VideoPlayerControls.kt +++ b/android/app/src/main/kotlin/nl/jknaapen/fladder/composables/controls/VideoPlayerControls.kt @@ -164,7 +164,8 @@ fun CustomVideoControls( LaunchedEffect(lastSeekInteraction.longValue) { delay(1.seconds) if (currentSkipTime == 0L) return@LaunchedEffect - player?.seekTo(position + currentSkipTime) + // Route through Flutter for SyncPlay support + VideoPlayerObject.videoPlayerControls?.onUserSeek(position + currentSkipTime) {} currentSkipTime = 0L } @@ -191,24 +192,27 @@ fun CustomVideoControls( } Key.MediaPlay -> { - player?.play() + // Route through Flutter for SyncPlay support + VideoPlayerObject.videoPlayerControls?.onUserPlay {} return@onKeyEvent true } Key.MediaPlayPause -> { player?.let { if (it.isPlaying) { - it.pause() + // Route through Flutter for SyncPlay support + VideoPlayerObject.videoPlayerControls?.onUserPause {} updateLastInteraction() } else { - it.play() + VideoPlayerObject.videoPlayerControls?.onUserPlay {} } } return@onKeyEvent true } Key.MediaPause, Key.P -> { - player?.pause() + // Route through Flutter for SyncPlay support + VideoPlayerObject.videoPlayerControls?.onUserPause {} updateLastInteraction() return@onKeyEvent true } @@ -401,7 +405,8 @@ fun CustomVideoControls( if (showChapterDialog) { ChapterSelectionSheet( onSelected = { - exoPlayer.seekTo(it.time) + // Route through Flutter for SyncPlay support + VideoPlayerObject.videoPlayerControls?.onUserSeek(it.time) {} showChapterDialog = false }, onDismiss = { @@ -459,9 +464,10 @@ fun PlaybackButtons( } CustomButton( onClick = { - player.seekTo( + // Route through Flutter for SyncPlay support + VideoPlayerObject.videoPlayerControls?.onUserSeek( player.currentPosition - backwardSpeed.inWholeMilliseconds - ) + ) {} }, ) { Box( @@ -486,11 +492,12 @@ fun PlaybackButtons( .defaultSelected(true), enableScaledFocus = true, onClick = { + // Route through Flutter for SyncPlay support if (player.isPlaying) { - player.pause() + VideoPlayerObject.videoPlayerControls?.onUserPause {} onPause() } else { - player.play() + VideoPlayerObject.videoPlayerControls?.onUserPlay {} } }, ) { @@ -502,9 +509,10 @@ fun PlaybackButtons( } CustomButton( onClick = { - player.seekTo( + // Route through Flutter for SyncPlay support + VideoPlayerObject.videoPlayerControls?.onUserSeek( player.currentPosition + forwardSpeed.inWholeMilliseconds - ) + ) {} }, ) { Box( diff --git a/lib/providers/syncplay/handlers/syncplay_command_handler.dart b/lib/providers/syncplay/handlers/syncplay_command_handler.dart index 228eea242..2f772496e 100644 --- a/lib/providers/syncplay/handlers/syncplay_command_handler.dart +++ b/lib/providers/syncplay/handlers/syncplay_command_handler.dart @@ -8,6 +8,7 @@ import 'package:fladder/providers/syncplay/time_sync_service.dart'; typedef SyncPlayPlayerCallback = Future Function(); typedef SyncPlaySeekCallback = Future Function(int positionTicks); typedef SyncPlayPositionCallback = int Function(); +typedef SyncPlayReportReadyCallback = Future Function(); /// Handles scheduling and execution of SyncPlay commands class SyncPlayCommandHandler { @@ -33,6 +34,9 @@ class SyncPlayCommandHandler { SyncPlayPositionCallback? getPositionTicks; bool Function()? isPlaying; bool Function()? isBuffering; + + // Report ready callback (to tell server we're ready after seek) + SyncPlayReportReadyCallback? onReportReady; /// Handle incoming SyncPlay command from WebSocket void handleCommand(Map data, SyncPlayState currentState) { @@ -125,26 +129,35 @@ class SyncPlayCommandHandler { switch (command) { case 'Pause': await onPause?.call(); - // Seek to position if significantly different + // Only seek if position is significantly different (>1 second) final currentTicks = getPositionTicks?.call() ?? 0; - if ((positionTicks - currentTicks).abs() > ticksPerSecond ~/ 2) { + if ((positionTicks - currentTicks).abs() > ticksPerSecond) { await onSeek?.call(positionTicks); } break; case 'Unpause': - // Seek to position if significantly different + // Play first - getting playback started quickly is more important than perfect position + await onPlay?.call(); + // Only seek if position is significantly different (>1 second) + // Small differences will self-correct during playback final currentTicks = getPositionTicks?.call() ?? 0; - if ((positionTicks - currentTicks).abs() > ticksPerSecond ~/ 2) { + if ((positionTicks - currentTicks).abs() > ticksPerSecond) { await onSeek?.call(positionTicks); } - await onPlay?.call(); break; case 'Seek': - await onPlay?.call(); - await onSeek?.call(positionTicks); + // Pause first to stop any ongoing playback await onPause?.call(); + // Seek to the target position + await onSeek?.call(positionTicks); + // Report ready after seek so server knows to send unpause + // If we're buffering, the buffering state handler will report ready when done + // If we're not buffering, report ready immediately + if (isBuffering?.call() != true) { + await onReportReady?.call(); + } break; case 'Stop': diff --git a/lib/providers/syncplay/syncplay_controller.dart b/lib/providers/syncplay/syncplay_controller.dart index 6a0982af9..4db751724 100644 --- a/lib/providers/syncplay/syncplay_controller.dart +++ b/lib/providers/syncplay/syncplay_controller.dart @@ -63,6 +63,7 @@ class SyncPlayController { _commandHandler.getPositionTicks = callback; set isPlaying(bool Function()? callback) => _commandHandler.isPlaying = callback; set isBuffering(bool Function()? callback) => _commandHandler.isBuffering = callback; + set onReportReady(SyncPlayReportReadyCallback? callback) => _commandHandler.onReportReady = callback; JellyfinOpenApi get _api => _ref.read(jellyApiProvider).api; @@ -136,11 +137,25 @@ class SyncPlayController { /// Join an existing SyncPlay group Future joinGroup(String groupId) async { + // Check if already in a group + if (_state.isInGroup) { + log('SyncPlay: Already in a group, leaving first...'); + await leaveGroup(); + } + + // Check if WebSocket is connected + if (!_state.isConnected) { + log('SyncPlay: WebSocket not connected, cannot join group'); + return false; + } + try { + log('SyncPlay: Joining group: $groupId'); await _api.syncPlayJoinPost( body: JoinGroupRequestDto(groupId: groupId), ); _lastGroupId = groupId; + log('SyncPlay: Join request sent successfully'); return true; } catch (e) { log('SyncPlay: Failed to join group: $e'); @@ -271,21 +286,31 @@ class SyncPlayController { } void _handleConnectionState(WebSocketConnectionState wsState) { + log('SyncPlay: WebSocket connection state: $wsState'); final isConnected = wsState == WebSocketConnectionState.connected; _updateState(_state.copyWith(isConnected: isConnected)); + log('SyncPlay: isConnected updated to: $isConnected'); } void _handleMessage(Map message) { final messageType = message['MessageType'] as String?; final data = message['Data']; + + log('SyncPlay: Received WebSocket message: $messageType'); switch (messageType) { case 'SyncPlayCommand': _commandHandler.handleCommand(data as Map, _state); break; case 'SyncPlayGroupUpdate': + log('SyncPlay: GroupUpdate data: $data'); _messageHandler.handleGroupUpdate(data as Map, _state); break; + default: + // Log unhandled message types for debugging + if (messageType?.startsWith('SyncPlay') == true) { + log('SyncPlay: Unhandled SyncPlay message type: $messageType'); + } } } @@ -336,24 +361,24 @@ class SyncPlayController { } log('SyncPlay: Playback item loaded successfully'); - // Set state to fullScreen and push the VideoPlayer route + // Set state to fullScreen _ref.read(mediaPlaybackProvider.notifier).update( (state) => state.copyWith(state: VideoPlayerState.fullScreen), ); log('SyncPlay: Set state to fullScreen'); - // Push VideoPlayer using the global router's navigator key + // Open the player - this handles both native (Android TV) and Flutter players correctly + // For Android TV (NativePlayer), this launches the native activity + // For other platforms, this opens the Flutter VideoPlayer final navigatorKey = getNavigatorKey(_ref); - log('SyncPlay: Navigator key: ${navigatorKey != null ? "exists" : "null"}, currentState: ${navigatorKey?.currentState != null ? "exists" : "null"}'); - if (navigatorKey?.currentState != null) { - navigatorKey!.currentState!.push( - MaterialPageRoute( - builder: (context) => const VideoPlayer(), - ), - ); - log('SyncPlay: Successfully pushed VideoPlayer route for $itemId'); + final context = navigatorKey?.currentContext; + log('SyncPlay: Navigator context: ${context != null ? "exists" : "null"}'); + + if (context != null) { + await _ref.read(videoPlayerProvider.notifier).openPlayer(context); + log('SyncPlay: Successfully opened player for $itemId'); } else { - log('SyncPlay: No navigator available, player loaded but not opened fullscreen'); + log('SyncPlay: No navigator context available, player loaded but not opened fullscreen'); } } catch (e, stackTrace) { log('SyncPlay: Error starting playback: $e\n$stackTrace'); diff --git a/lib/providers/syncplay/syncplay_provider.dart b/lib/providers/syncplay/syncplay_provider.dart index ffd19e844..e8f8f90b5 100644 --- a/lib/providers/syncplay/syncplay_provider.dart +++ b/lib/providers/syncplay/syncplay_provider.dart @@ -128,6 +128,8 @@ class SyncPlay extends _$SyncPlay { controller.getPositionTicks = getPositionTicks; controller.isPlaying = isPlaying; controller.isBuffering = isBuffering; + // Wire up reportReady callback so command handler can report ready after seek + controller.onReportReady = () => controller.reportReady(); } /// Unregister player callbacks @@ -139,6 +141,7 @@ class SyncPlay extends _$SyncPlay { controller.getPositionTicks = null; controller.isPlaying = null; controller.isBuffering = null; + controller.onReportReady = null; } } diff --git a/lib/providers/video_player_provider.dart b/lib/providers/video_player_provider.dart index f62fd403a..30899d33d 100644 --- a/lib/providers/video_player_provider.dart +++ b/lib/providers/video_player_provider.dart @@ -41,9 +41,21 @@ class VideoPlayerNotifier extends StateNotifier { /// Flag to indicate if the current action is initiated by SyncPlay bool _syncPlayAction = false; + /// Timestamp of last SyncPlay command execution (for cooldown) + DateTime? _lastSyncPlayCommandTime; + + /// Cooldown period after SyncPlay command during which we don't auto-report ready + static const _syncPlayCooldown = Duration(milliseconds: 500); + /// Check if SyncPlay is active bool get _isSyncPlayActive => ref.read(isSyncPlayActiveProvider); + /// Check if we're in the SyncPlay cooldown period + bool get _inSyncPlayCooldown { + if (_lastSyncPlayCommandTime == null) return false; + return DateTime.now().difference(_lastSyncPlayCommandTime!) < _syncPlayCooldown; + } + void init() async { debouncer.run(() async { await state.dispose(); @@ -75,22 +87,26 @@ class VideoPlayerNotifier extends StateNotifier { ref.read(syncPlayProvider.notifier).registerPlayer( onPlay: () async { _syncPlayAction = true; + _lastSyncPlayCommandTime = DateTime.now(); await state.play(); _syncPlayAction = false; }, onPause: () async { _syncPlayAction = true; + _lastSyncPlayCommandTime = DateTime.now(); await state.pause(); _syncPlayAction = false; }, onSeek: (positionTicks) async { _syncPlayAction = true; + _lastSyncPlayCommandTime = DateTime.now(); final position = Duration(microseconds: positionTicks ~/ 10); await state.seek(position); _syncPlayAction = false; }, onStop: () async { _syncPlayAction = true; + _lastSyncPlayCommandTime = DateTime.now(); await state.stop(); _syncPlayAction = false; }, @@ -110,7 +126,8 @@ class VideoPlayerNotifier extends StateNotifier { mediaState.update((state) => state.copyWith(buffering: event)); // Report buffering state to SyncPlay if active - if (_isSyncPlayActive && !_syncPlayAction) { + // Skip if we're in the cooldown period after a SyncPlay command to prevent feedback loops + if (_isSyncPlayActive && !_syncPlayAction && !_inSyncPlayCooldown) { if (event) { // Started buffering ref.read(syncPlayProvider.notifier).reportBuffering(); @@ -302,7 +319,13 @@ class VideoPlayerNotifier extends StateNotifier { final positionTicks = secondsToTicks(position.inMilliseconds / 1000); await ref.read(syncPlayProvider.notifier).requestSeek(positionTicks); } else { + // Remember if we were playing before seek + final wasPlaying = playbackState.playing; await state.seek(position); + // Resume playback if we were playing before (for native player consistency) + if (wasPlaying && !playbackState.playing) { + await state.play(); + } } } diff --git a/lib/src/video_player_helper.g.dart b/lib/src/video_player_helper.g.dart index c3d330240..629807d77 100644 --- a/lib/src/video_player_helper.g.dart +++ b/lib/src/video_player_helper.g.dart @@ -1153,6 +1153,16 @@ abstract class VideoPlayerControlsCallback { void swapAudioTrack(int value); + /// User-initiated play action from native player (for SyncPlay integration) + void onUserPlay(); + + /// User-initiated pause action from native player (for SyncPlay integration) + void onUserPause(); + + /// User-initiated seek action from native player (for SyncPlay integration) + /// Position is in milliseconds + void onUserSeek(int positionMs); + static void setUp(VideoPlayerControlsCallback? api, {BinaryMessenger? binaryMessenger, String messageChannelSuffix = '',}) { messageChannelSuffix = messageChannelSuffix.isNotEmpty ? '.$messageChannelSuffix' : ''; { @@ -1262,5 +1272,68 @@ abstract class VideoPlayerControlsCallback { }); } } + { + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.nl_jknaapen_fladder.video.VideoPlayerControlsCallback.onUserPlay$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); + if (api == null) { + pigeonVar_channel.setMessageHandler(null); + } else { + pigeonVar_channel.setMessageHandler((Object? message) async { + try { + api.onUserPlay(); + return wrapResponse(empty: true); + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } + }); + } + } + { + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.nl_jknaapen_fladder.video.VideoPlayerControlsCallback.onUserPause$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); + if (api == null) { + pigeonVar_channel.setMessageHandler(null); + } else { + pigeonVar_channel.setMessageHandler((Object? message) async { + try { + api.onUserPause(); + return wrapResponse(empty: true); + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } + }); + } + } + { + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.nl_jknaapen_fladder.video.VideoPlayerControlsCallback.onUserSeek$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); + if (api == null) { + pigeonVar_channel.setMessageHandler(null); + } else { + pigeonVar_channel.setMessageHandler((Object? message) async { + assert(message != null, + 'Argument for dev.flutter.pigeon.nl_jknaapen_fladder.video.VideoPlayerControlsCallback.onUserSeek was null.'); + final List args = (message as List?)!; + final int? arg_positionMs = (args[0] as int?); + assert(arg_positionMs != null, + 'Argument for dev.flutter.pigeon.nl_jknaapen_fladder.video.VideoPlayerControlsCallback.onUserSeek was null, expected non-null int.'); + try { + api.onUserSeek(arg_positionMs!); + return wrapResponse(empty: true); + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } + }); + } + } } } diff --git a/pigeons/video_player.dart b/pigeons/video_player.dart index 40795b122..05b8ff2a8 100644 --- a/pigeons/video_player.dart +++ b/pigeons/video_player.dart @@ -244,4 +244,14 @@ abstract class VideoPlayerControlsCallback { void onStop(); void swapSubtitleTrack(int value); void swapAudioTrack(int value); + + /// User-initiated play action from native player (for SyncPlay integration) + void onUserPlay(); + + /// User-initiated pause action from native player (for SyncPlay integration) + void onUserPause(); + + /// User-initiated seek action from native player (for SyncPlay integration) + /// Position is in milliseconds + void onUserSeek(int positionMs); } From 0f30b283784f9e20330eaafa05f14ea49f3632d4 Mon Sep 17 00:00:00 2001 From: Filip Iricanin Date: Sat, 17 Jan 2026 14:51:58 +0100 Subject: [PATCH 10/25] feat: integrate SyncPlay-aware user actions and improve WebSocket logging - Implement `onUserPlay`, `onUserPause`, and `onUserSeek` in `MediaControlWrapper` to handle native player events via the `videoPlayerProvider`. - Add enhanced logging to `WebSocketManager`, including sanitized URI connection logs and incoming message type tracking. - Update generated `syncplay_provider.g.dart` following logic changes. - Update Android build problem report with new environment paths and updated line references. --- .../build/reports/problems/problems-report.html | 2 +- lib/providers/syncplay/syncplay_provider.g.dart | 2 +- lib/providers/syncplay/websocket_manager.dart | 4 ++++ lib/wrappers/media_control_wrapper.dart | 16 ++++++++++++++++ 4 files changed, 22 insertions(+), 2 deletions(-) diff --git a/android/build/reports/problems/problems-report.html b/android/build/reports/problems/problems-report.html index daf289c7a..fc181493d 100644 --- a/android/build/reports/problems/problems-report.html +++ b/android/build/reports/problems/problems-report.html @@ -650,7 +650,7 @@ diff --git a/lib/providers/syncplay/syncplay_provider.g.dart b/lib/providers/syncplay/syncplay_provider.g.dart index 53d60f916..60e01b63a 100644 --- a/lib/providers/syncplay/syncplay_provider.g.dart +++ b/lib/providers/syncplay/syncplay_provider.g.dart @@ -65,7 +65,7 @@ final syncPlayGroupStateProvider = @Deprecated('Will be removed in 3.0. Use Ref instead') // ignore: unused_element typedef SyncPlayGroupStateRef = AutoDisposeProviderRef; -String _$syncPlayHash() => r'50fd44361a1526442f14ef3f849b7aefca67a67d'; +String _$syncPlayHash() => r'68d7ca7693ac5d32cf339d6c3fac0577f909893c'; /// Provider for SyncPlay controller instance /// diff --git a/lib/providers/syncplay/websocket_manager.dart b/lib/providers/syncplay/websocket_manager.dart index e4d49f7e0..85e5cf711 100644 --- a/lib/providers/syncplay/websocket_manager.dart +++ b/lib/providers/syncplay/websocket_manager.dart @@ -60,6 +60,7 @@ class WebSocketManager { _updateState(WebSocketConnectionState.connecting); try { + log('WebSocket: Connecting to ${_webSocketUri.toString().replaceAll(RegExp(r'api_key=[^&]+'), 'api_key=***')}'); _channel = WebSocketChannel.connect(_webSocketUri); await _channel!.ready; @@ -124,6 +125,9 @@ class WebSocketManager { try { final message = json.decode(data as String) as Map; final messageType = message['MessageType'] as String?; + + // Log all received messages for debugging + log('WebSocket: Received message type: $messageType'); // Handle ForceKeepAlive to set up keep-alive interval if (messageType == 'ForceKeepAlive') { diff --git a/lib/wrappers/media_control_wrapper.dart b/lib/wrappers/media_control_wrapper.dart index 0796fdfd7..7a135a0de 100644 --- a/lib/wrappers/media_control_wrapper.dart +++ b/lib/wrappers/media_control_wrapper.dart @@ -370,6 +370,22 @@ class MediaControlsWrapper extends BaseAudioHandler implements VideoPlayerContro } } + // SyncPlay-aware user actions from native player + @override + void onUserPlay() { + ref.read(videoPlayerProvider.notifier).userPlay(); + } + + @override + void onUserPause() { + ref.read(videoPlayerProvider.notifier).userPause(); + } + + @override + void onUserSeek(int positionMs) { + ref.read(videoPlayerProvider.notifier).userSeek(Duration(milliseconds: positionMs)); + } + Future takeScreenshot() { final player = _player; From 1a73ac05e4bb4147a0a843b4c287e0fe01f0e111 Mon Sep 17 00:00:00 2001 From: Filip Iricanin Date: Sat, 17 Jan 2026 15:29:43 +0100 Subject: [PATCH 11/25] chore: improve SyncPlay WebSocket logging - Add device ID logging during `SyncPlayController` initialization. - Enhance WebSocket message logging to include full message contents while filtering out "KeepAlive" noise. - Include raw data in error logs when WebSocket message parsing fails. - Remove unused `video_player.dart` import in `syncplay_controller.dart`. --- lib/providers/syncplay/syncplay_controller.dart | 2 +- lib/providers/syncplay/websocket_manager.dart | 8 +++++--- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/lib/providers/syncplay/syncplay_controller.dart b/lib/providers/syncplay/syncplay_controller.dart index 4db751724..b6c26e9e2 100644 --- a/lib/providers/syncplay/syncplay_controller.dart +++ b/lib/providers/syncplay/syncplay_controller.dart @@ -17,7 +17,6 @@ import 'package:fladder/providers/syncplay/time_sync_service.dart'; import 'package:fladder/providers/syncplay/websocket_manager.dart'; import 'package:fladder/providers/user_provider.dart'; import 'package:fladder/providers/video_player_provider.dart'; -import 'package:fladder/screens/video_player/video_player.dart'; /// Controller for SyncPlay synchronized playback class SyncPlayController { @@ -86,6 +85,7 @@ class SyncPlayController { _timeSync!.start(); // Initialize WebSocket + log('SyncPlay: Initializing WebSocket with deviceId: ${user.credentials.deviceId}'); _wsManager = WebSocketManager( serverUrl: serverUrl, token: user.credentials.token, diff --git a/lib/providers/syncplay/websocket_manager.dart b/lib/providers/syncplay/websocket_manager.dart index 85e5cf711..5aac867cd 100644 --- a/lib/providers/syncplay/websocket_manager.dart +++ b/lib/providers/syncplay/websocket_manager.dart @@ -126,8 +126,10 @@ class WebSocketManager { final message = json.decode(data as String) as Map; final messageType = message['MessageType'] as String?; - // Log all received messages for debugging - log('WebSocket: Received message type: $messageType'); + // Log all received messages for debugging (except KeepAlive spam) + if (messageType != 'KeepAlive') { + log('WebSocket: Received message: $message'); + } // Handle ForceKeepAlive to set up keep-alive interval if (messageType == 'ForceKeepAlive') { @@ -138,7 +140,7 @@ class WebSocketManager { // Forward message to listeners _messageController.add(message); } catch (e) { - log('Failed to parse WebSocket message: $e'); + log('Failed to parse WebSocket message: $e\nRaw data: $data'); } } From 1cfdd41f5645ee838c97ad8d8dea0ae06e48dfb7 Mon Sep 17 00:00:00 2001 From: Filip Iricanin Date: Wed, 28 Jan 2026 21:50:11 +0100 Subject: [PATCH 12/25] feat: improve SyncPlay synchronization and playback reliability - **SyncPlay Logic Improvements**: - Add `onSeekRequested` callback to `SyncPlayCommandHandler` to notify the player immediately when a remote seek occurs, allowing for faster buffering reports. - Implement a confirmation mechanism in `SyncPlayController` using a `Completer` to wait for the `GroupJoined` WebSocket message before confirming a successful join. - Enhance `SyncPlayMessageHandler` to handle `NotInGroup` messages and provide failure callbacks to the controller. - Ensure `reportReady` is called after successful reload/seek operations in SyncPlay mode to coordinate group unpausing. - **Video Player Enhancements**: - Introduce a `reloading` state in `VideoPlayerProvider` to manage playback transitions during transcoding or audio track changes. - Update `isBuffering` logic to consider the reloading state, ensuring SyncPlay groups stay synchronized while one member is fetching new playback info. - Explicitly report buffering to SyncPlay before stopping or loading new playback items. - Prevent automatic playback after loading an item if SyncPlay is active, deferring control to the synchronization system. - **Refactoring & Maintenance**: - Improve position tracking during reloads by prioritizing the current SyncPlay position when active. - Clean up imports and formatting in `playback_model.dart` and `syncplay_controller.dart`. - Update generated `movies_details_provider.g.dart`. --- lib/models/playback/playback_model.dart | 204 +++++++++++++----- .../items/movies_details_provider.g.dart | 2 +- .../handlers/syncplay_command_handler.dart | 8 + .../handlers/syncplay_message_handler.dart | 27 +++ .../syncplay/syncplay_controller.dart | 105 ++++++--- lib/providers/syncplay/syncplay_provider.dart | 5 +- lib/providers/video_player_provider.dart | 132 ++++++++---- 7 files changed, 355 insertions(+), 128 deletions(-) diff --git a/lib/models/playback/playback_model.dart b/lib/models/playback/playback_model.dart index bc614a540..3a10a3f69 100644 --- a/lib/models/playback/playback_model.dart +++ b/lib/models/playback/playback_model.dart @@ -1,12 +1,8 @@ import 'dart:developer'; -import 'package:flutter/material.dart' hide ConnectionState; - import 'package:background_downloader/background_downloader.dart'; import 'package:chopper/chopper.dart'; import 'package:collection/collection.dart'; -import 'package:flutter_riverpod/flutter_riverpod.dart'; - import 'package:fladder/jellyfin/jellyfin_open_api.swagger.dart'; import 'package:fladder/models/item_base_model.dart'; import 'package:fladder/models/items/chapters_model.dart'; @@ -23,6 +19,7 @@ import 'package:fladder/models/playback/playback_options_dialogue.dart'; import 'package:fladder/models/playback/transcode_playback_model.dart'; import 'package:fladder/models/settings/video_player_settings.dart'; import 'package:fladder/models/syncing/sync_item.dart'; +import 'package:fladder/models/syncplay/syncplay_models.dart'; import 'package:fladder/models/video_stream_model.dart'; import 'package:fladder/profiles/default_profile.dart'; import 'package:fladder/providers/api_provider.dart'; @@ -30,6 +27,7 @@ import 'package:fladder/providers/connectivity_provider.dart'; import 'package:fladder/providers/service_provider.dart'; import 'package:fladder/providers/settings/video_player_settings_provider.dart'; import 'package:fladder/providers/sync_provider.dart'; +import 'package:fladder/providers/syncplay/syncplay_provider.dart'; import 'package:fladder/providers/user_provider.dart'; import 'package:fladder/providers/video_player_provider.dart'; import 'package:fladder/util/bitrate_helper.dart'; @@ -38,6 +36,8 @@ import 'package:fladder/util/list_extensions.dart'; import 'package:fladder/util/map_bool_helper.dart'; import 'package:fladder/util/streams_selection.dart'; import 'package:fladder/wrappers/media_control_wrapper.dart'; +import 'package:flutter/material.dart' hide ConnectionState; +import 'package:flutter_riverpod/flutter_riverpod.dart'; class Media { final String url; @@ -48,11 +48,12 @@ class Media { } extension PlaybackModelExtension on PlaybackModel? { - SubStreamModel? get defaultSubStream => - this?.subStreams?.firstWhereOrNull((element) => element.index == this?.mediaStreams?.defaultSubStreamIndex); + SubStreamModel? get defaultSubStream => this?.subStreams?.firstWhereOrNull( + (element) => element.index == this?.mediaStreams?.defaultSubStreamIndex); AudioStreamModel? get defaultAudioStream => - this?.audioStreams?.firstWhereOrNull((element) => element.index == this?.mediaStreams?.defaultAudioStreamIndex); + this?.audioStreams?.firstWhereOrNull((element) => + element.index == this?.mediaStreams?.defaultAudioStreamIndex); String? label(BuildContext context) => switch (this) { DirectPlaybackModel _ => PlaybackType.directStream.name(context), @@ -74,10 +75,13 @@ class PlaybackModel { List? chapters = []; TrickPlayModel? trickPlay; - Future updatePlaybackPosition(Duration position, bool isPlaying, Ref ref) => + Future updatePlaybackPosition( + Duration position, bool isPlaying, Ref ref) => throw UnimplementedError(); - Future playbackStarted(Duration position, Ref ref) => throw UnimplementedError(); - Future playbackStopped(Duration position, Duration? totalDuration, Ref ref) => + Future playbackStarted(Duration position, Ref ref) => + throw UnimplementedError(); + Future playbackStopped( + Duration position, Duration? totalDuration, Ref ref) => throw UnimplementedError(); final MediaStreamsModel? mediaStreams; @@ -86,11 +90,17 @@ class PlaybackModel { Future? startDuration() async => item.userData.playBackPosition; - PlaybackModel? updateUserData(UserData userData) => throw UnimplementedError(); + PlaybackModel? updateUserData(UserData userData) => + throw UnimplementedError(); - Future? setSubtitle(SubStreamModel? model, MediaControlsWrapper player) => throw UnimplementedError(); - Future? setAudio(AudioStreamModel? model, MediaControlsWrapper player) => throw UnimplementedError(); - Future? setQualityOption(Map map) => throw UnimplementedError(); + Future? setSubtitle( + SubStreamModel? model, MediaControlsWrapper player) => + throw UnimplementedError(); + Future? setAudio( + AudioStreamModel? model, MediaControlsWrapper player) => + throw UnimplementedError(); + Future? setQualityOption(Map map) => + throw UnimplementedError(); ItemBaseModel? get nextVideo => queue.nextOrNull(item); ItemBaseModel? get previousVideo => queue.previousOrNull(item); @@ -123,7 +133,9 @@ class PlaybackModelHelper { Future loadNewVideo(ItemBaseModel newItem) async { ref.read(videoPlayerProvider).pause(); - ref.read(mediaPlaybackProvider.notifier).update((state) => state.copyWith(buffering: true)); + ref + .read(mediaPlaybackProvider.notifier) + .update((state) => state.copyWith(buffering: true)); final currentModel = ref.read(playBackModel); final newModel = (await createPlaybackModel( null, @@ -137,7 +149,9 @@ class PlaybackModelHelper { oldModel: currentModel, ); if (newModel == null) return null; - ref.read(videoPlayerProvider.notifier).loadPlaybackItem(newModel, Duration.zero); + ref + .read(videoPlayerProvider.notifier) + .loadPlaybackItem(newModel, Duration.zero); return newModel; } @@ -148,11 +162,16 @@ class PlaybackModelHelper { PlaybackModel? oldModel, }) async { final ItemBaseModel? syncedItemModel = syncedItem?.itemModel; - if (syncedItemModel == null || syncedItem == null || !await syncedItem.videoFile.exists()) return null; - - final children = await ref.read(syncProvider.notifier).getSiblings(syncedItem); - final syncedItems = - children.where((element) => element.videoFile.existsSync() && element.id != syncedItem.id).toList(); + if (syncedItemModel == null || + syncedItem == null || + !await syncedItem.videoFile.exists()) return null; + + final children = + await ref.read(syncProvider.notifier).getSiblings(syncedItem); + final syncedItems = children + .where((element) => + element.videoFile.existsSync() && element.id != syncedItem.id) + .toList(); final itemQueue = syncedItems.map((e) => e.itemModel).nonNulls; return OfflinePlaybackModel( @@ -183,19 +202,25 @@ class PlaybackModelHelper { final queue = oldModel?.queue ?? libraryQueue ?? await collectQueue(item); final firstItemToPlay = switch (item) { - SeriesModel _ || SeasonModel _ => (queue.whereType().toList().nextUp), + SeriesModel _ || + SeasonModel _ => + (queue.whereType().toList().nextUp), _ => item, }; if (firstItemToPlay == null) return null; - final fullItem = (await api.usersUserIdItemsItemIdGet(itemId: firstItemToPlay.id)).body; + final fullItem = + (await api.usersUserIdItemsItemIdGet(itemId: firstItemToPlay.id)) + .body; if (fullItem == null) return null; - SyncedItem? syncedItem = await ref.read(syncProvider.notifier).getSyncedItem(fullItem.id); + SyncedItem? syncedItem = + await ref.read(syncProvider.notifier).getSyncedItem(fullItem.id); - final firstItemIsSynced = syncedItem != null && syncedItem.status == TaskStatus.complete; + final firstItemIsSynced = + syncedItem != null && syncedItem.status == TaskStatus.complete; final options = { PlaybackType.directStream, @@ -203,9 +228,11 @@ class PlaybackModelHelper { if (firstItemIsSynced) PlaybackType.offline, }; - final isOffline = ref.read(connectivityStatusProvider.select((value) => value == ConnectionState.offline)); + final isOffline = ref.read(connectivityStatusProvider + .select((value) => value == ConnectionState.offline)); - if (((showPlaybackOptions || firstItemIsSynced) && !isOffline) && context != null) { + if (((showPlaybackOptions || firstItemIsSynced) && !isOffline) && + context != null) { final playbackType = await showPlaybackTypeSelection( context: context, options: options, @@ -214,7 +241,9 @@ class PlaybackModelHelper { if (!context.mounted) return null; return switch (playbackType) { - PlaybackType.directStream || PlaybackType.transcode => await _createServerPlaybackModel( + PlaybackType.directStream || + PlaybackType.transcode => + await _createServerPlaybackModel( fullItem, item.streamModel, playbackType, @@ -266,30 +295,35 @@ class PlaybackModelHelper { Map qualityOptions = getVideoQualityOptions( VideoQualitySettings( - maxBitRate: ref.read(videoPlayerSettingsProvider.select((value) => value.maxHomeBitrate)), + maxBitRate: ref.read(videoPlayerSettingsProvider + .select((value) => value.maxHomeBitrate)), videoBitRate: newStreamModel?.videoStreams.firstOrNull?.bitRate ?? 0, videoCodec: newStreamModel?.videoStreams.firstOrNull?.codec, ), ); final audioStreamIndex = selectAudioStream( - ref.read(userProvider.select((value) => value?.userConfiguration?.rememberAudioSelections ?? true)), + ref.read(userProvider.select((value) => + value?.userConfiguration?.rememberAudioSelections ?? true)), oldModel?.mediaStreams?.currentAudioStream, newStreamModel?.audioStreams, newStreamModel?.defaultAudioStreamIndex); final subStreamIndex = selectSubStream( - ref.read(userProvider.select((value) => value?.userConfiguration?.rememberSubtitleSelections ?? true)), + ref.read(userProvider.select((value) => + value?.userConfiguration?.rememberSubtitleSelections ?? true)), oldModel?.mediaStreams?.currentSubStream, newStreamModel?.subStreams, newStreamModel?.defaultSubStreamIndex); //Native player does not allow for loading external subtitles with transcoding - final isNativePlayer = - ref.read(videoPlayerSettingsProvider.select((value) => value.wantedPlayer == PlayerOptions.nativePlayer)); - final isExternalSub = newStreamModel?.currentSubStream?.isExternal == true; + final isNativePlayer = ref.read(videoPlayerSettingsProvider + .select((value) => value.wantedPlayer == PlayerOptions.nativePlayer)); + final isExternalSub = + newStreamModel?.currentSubStream?.isExternal == true; - final Response response = await api.itemsItemIdPlaybackInfoPost( + final Response response = + await api.itemsItemIdPlaybackInfoPost( itemId: item.id, body: PlaybackInfoDto( startTimeTicks: startPosition?.toRuntimeTicks, @@ -302,7 +336,8 @@ class PlaybackModelHelper { enableDirectPlay: type != PlaybackType.transcode, enableDirectStream: type != PlaybackType.transcode, alwaysBurnInSubtitleWhenTranscoding: isNativePlayer && isExternalSub, - maxStreamingBitrate: qualityOptions.enabledFirst.keys.firstOrNull?.bitRate, + maxStreamingBitrate: + qualityOptions.enabledFirst.keys.firstOrNull?.bitRate, mediaSourceId: newStreamModel?.currentVersionStream?.id, ), ); @@ -311,11 +346,14 @@ class PlaybackModelHelper { if (playbackInfo == null) return null; - final mediaSource = playbackInfo.mediaSources?[newStreamModel?.versionStreamIndex ?? 0]; + final mediaSource = + playbackInfo.mediaSources?[newStreamModel?.versionStreamIndex ?? 0]; if (mediaSource == null) return null; - final mediaStreamsWithUrls = MediaStreamsModel.fromMediaStreamsList(playbackInfo.mediaSources, ref).copyWith( + final mediaStreamsWithUrls = + MediaStreamsModel.fromMediaStreamsList(playbackInfo.mediaSources, ref) + .copyWith( defaultAudioStreamIndex: audioStreamIndex, defaultSubStreamIndex: subStreamIndex, ); @@ -326,7 +364,8 @@ class PlaybackModelHelper { final mediaPath = isValidVideoUrl(mediaSource.path ?? ""); - if ((mediaSource.supportsDirectStream ?? false) || (mediaSource.supportsDirectPlay ?? false)) { + if ((mediaSource.supportsDirectStream ?? false) || + (mediaSource.supportsDirectPlay ?? false)) { final Map directOptions = { 'Static': 'true', 'mediaSourceId': mediaSource.id, @@ -358,7 +397,8 @@ class PlaybackModelHelper { mediaStreams: mediaStreamsWithUrls, bitRateOptions: qualityOptions, ); - } else if ((mediaSource.supportsTranscoding ?? false) && mediaSource.transcodingUrl != null) { + } else if ((mediaSource.supportsTranscoding ?? false) && + mediaSource.transcodingUrl != null) { return TranscodePlaybackModel( item: item, queue: libraryQueue, @@ -366,7 +406,9 @@ class PlaybackModelHelper { chapters: chapters, trickPlay: trickPlay, playbackInfo: playbackInfo, - media: Media(url: buildServerUrl(ref, relativeUrl: mediaSource.transcodingUrl)), + media: Media( + url: + buildServerUrl(ref, relativeUrl: mediaSource.transcodingUrl)), mediaStreams: mediaStreamsWithUrls, bitRateOptions: qualityOptions, ); @@ -388,15 +430,18 @@ class PlaybackModelHelper { case EpisodeModel _: case SeriesModel _: case SeasonModel _: - List episodeList = ((await fetchEpisodesFromSeries(model.streamId)).body ?? []) - ..removeWhere((element) => element.status != EpisodeStatus.available); + List episodeList = + ((await fetchEpisodesFromSeries(model.streamId)).body ?? []) + ..removeWhere( + (element) => element.status != EpisodeStatus.available); return episodeList; default: return []; } } - Future>> fetchEpisodesFromSeries(String seriesId) async { + Future>> fetchEpisodesFromSeries( + String seriesId) async { final response = await api.showsSeriesIdEpisodesGet( seriesId: seriesId, fields: [ @@ -409,7 +454,12 @@ class PlaybackModelHelper { ItemFields.height, ], ); - return Response(response.base, (response.body?.items?.map((e) => EpisodeModel.fromBaseDto(e, ref)).toList() ?? [])); + return Response( + response.base, + (response.body?.items + ?.map((e) => EpisodeModel.fromBaseDto(e, ref)) + .toList() ?? + [])); } Future shouldReload(PlaybackModel playbackModel) async { @@ -422,20 +472,43 @@ class PlaybackModelHelper { final userId = ref.read(userProvider)?.id; if (userId?.isEmpty == true) return; - final currentPosition = ref.read(mediaPlaybackProvider.select((value) => value.position)); + // Check if syncplay is active and get position from syncplay if so + final isSyncPlayActive = ref.read(isSyncPlayActiveProvider); + final Duration currentPosition; + + if (isSyncPlayActive) { + // Set reloading state in the player notifier to prevent premature ready reporting + ref.read(videoPlayerProvider.notifier).setReloading(true); + + // Get syncplay position FIRST before any state changes + final syncPlayState = ref.read(syncPlayProvider); + final positionTicks = syncPlayState.positionTicks; + // Convert ticks to Duration: 1 tick = 100 nanoseconds, 10000 ticks = 1 millisecond + currentPosition = + Duration(milliseconds: ticksToMilliseconds(positionTicks)); + + // Report buffering to syncplay BEFORE stopping/reloading to pause other group members + await ref.read(syncPlayProvider.notifier).reportBuffering(); + } else { + currentPosition = + ref.read(mediaPlaybackProvider.select((value) => value.position)); + } final audioIndex = selectAudioStream( - ref.read(userProvider.select((value) => value?.userConfiguration?.rememberAudioSelections ?? true)), + ref.read(userProvider.select((value) => + value?.userConfiguration?.rememberAudioSelections ?? true)), playbackModel.mediaStreams?.currentAudioStream, playbackModel.audioStreams, playbackModel.mediaStreams?.defaultAudioStreamIndex); final subIndex = selectSubStream( - ref.read(userProvider.select((value) => value?.userConfiguration?.rememberSubtitleSelections ?? true)), + ref.read(userProvider.select((value) => + value?.userConfiguration?.rememberSubtitleSelections ?? true)), playbackModel.mediaStreams?.currentSubStream, playbackModel.subStreams, playbackModel.mediaStreams?.defaultSubStreamIndex); - Response response = await api.itemsItemIdPlaybackInfoPost( + Response response = + await api.itemsItemIdPlaybackInfoPost( itemId: item.id, body: PlaybackInfoDto( startTimeTicks: currentPosition.toRuntimeTicks, @@ -447,7 +520,8 @@ class PlaybackModelHelper { autoOpenLiveStream: true, deviceProfile: ref.read(videoProfileProvider), userId: userId, - maxStreamingBitrate: playbackModel.bitRateOptions.enabledFirst.entries.firstOrNull?.key.bitRate, + maxStreamingBitrate: playbackModel + .bitRateOptions.enabledFirst.entries.firstOrNull?.key.bitRate, mediaSourceId: playbackModel.mediaStreams?.currentVersionStream?.id, ), ); @@ -456,7 +530,9 @@ class PlaybackModelHelper { final mediaSource = playbackInfo.mediaSources?.first; - final mediaStreamsWithUrls = MediaStreamsModel.fromMediaStreamsList(playbackInfo.mediaSources, ref).copyWith( + final mediaStreamsWithUrls = + MediaStreamsModel.fromMediaStreamsList(playbackInfo.mediaSources, ref) + .copyWith( defaultAudioStreamIndex: audioIndex, defaultSubStreamIndex: subIndex, ); @@ -465,7 +541,8 @@ class PlaybackModelHelper { PlaybackModel? newModel; - if ((mediaSource.supportsDirectStream ?? false) || (mediaSource.supportsDirectPlay ?? false)) { + if ((mediaSource.supportsDirectStream ?? false) || + (mediaSource.supportsDirectPlay ?? false)) { final Map directOptions = { 'Static': 'true', 'mediaSourceId': mediaSource.id, @@ -499,7 +576,8 @@ class PlaybackModelHelper { mediaStreams: mediaStreamsWithUrls, bitRateOptions: playbackModel.bitRateOptions, ); - } else if ((mediaSource.supportsTranscoding ?? false) && mediaSource.transcodingUrl != null) { + } else if ((mediaSource.supportsTranscoding ?? false) && + mediaSource.transcodingUrl != null) { newModel = TranscodePlaybackModel( item: playbackModel.item, queue: playbackModel.queue, @@ -507,14 +585,26 @@ class PlaybackModelHelper { chapters: playbackModel.chapters, playbackInfo: playbackInfo, trickPlay: playbackModel.trickPlay, - media: Media(url: buildServerUrl(ref, relativeUrl: mediaSource.transcodingUrl)), + media: Media( + url: buildServerUrl(ref, relativeUrl: mediaSource.transcodingUrl)), mediaStreams: mediaStreamsWithUrls, bitRateOptions: playbackModel.bitRateOptions, ); } - if (newModel == null) return; - if (newModel.runtimeType != playbackModel.runtimeType || newModel is TranscodePlaybackModel) { - ref.read(videoPlayerProvider.notifier).loadPlaybackItem(newModel, currentPosition); + if (newModel == null) { + if (isSyncPlayActive) { + ref.read(videoPlayerProvider.notifier).setReloading(false); + } + return; + } + if (newModel.runtimeType != playbackModel.runtimeType || + newModel is TranscodePlaybackModel) { + ref + .read(videoPlayerProvider.notifier) + .loadPlaybackItem(newModel, currentPosition); + } else if (isSyncPlayActive) { + // If we didn't call loadPlaybackItem, we must reset reloading state + ref.read(videoPlayerProvider.notifier).setReloading(false); } } } diff --git a/lib/providers/items/movies_details_provider.g.dart b/lib/providers/items/movies_details_provider.g.dart index b7982abdf..0820102da 100644 --- a/lib/providers/items/movies_details_provider.g.dart +++ b/lib/providers/items/movies_details_provider.g.dart @@ -6,7 +6,7 @@ part of 'movies_details_provider.dart'; // RiverpodGenerator // ************************************************************************** -String _$movieDetailsHash() => r'8ee6f9709112e86914800b29c7f269f12afecc92'; +String _$movieDetailsHash() => r'82f07f95ee66d836ddf6f18c731408b094c111c5'; /// Copied from Dart SDK class _SystemHash { diff --git a/lib/providers/syncplay/handlers/syncplay_command_handler.dart b/lib/providers/syncplay/handlers/syncplay_command_handler.dart index 2f772496e..7d38db2bd 100644 --- a/lib/providers/syncplay/handlers/syncplay_command_handler.dart +++ b/lib/providers/syncplay/handlers/syncplay_command_handler.dart @@ -35,6 +35,9 @@ class SyncPlayCommandHandler { bool Function()? isPlaying; bool Function()? isBuffering; + // New callback to signal that a seek has been requested by someone else + SyncPlaySeekCallback? onSeekRequested; + // Report ready callback (to tell server we're ready after seek) SyncPlayReportReadyCallback? onReportReady; @@ -65,6 +68,11 @@ class SyncPlayCommandHandler { playlistItemId: playlistItemId, )); + // If it's a Seek command, notify the player immediately so it can report buffering + if (command == 'Seek') { + onSeekRequested?.call(positionTicks); + } + final when = DateTime.parse(whenStr); _scheduleCommand(command, when, positionTicks); } diff --git a/lib/providers/syncplay/handlers/syncplay_message_handler.dart b/lib/providers/syncplay/handlers/syncplay_message_handler.dart index 9d1129e5e..a2134de53 100644 --- a/lib/providers/syncplay/handlers/syncplay_message_handler.dart +++ b/lib/providers/syncplay/handlers/syncplay_message_handler.dart @@ -21,6 +21,8 @@ class SyncPlayMessageHandler { required this.startPlayback, required this.isBuffering, required this.getContext, + required this.onGroupJoined, + required this.onGroupJoinFailed, }); final void Function(SyncPlayState Function(SyncPlayState)) onStateUpdate; @@ -28,6 +30,8 @@ class SyncPlayMessageHandler { final StartPlaybackCallback startPlayback; final bool Function() isBuffering; final BuildContext? Function() getContext; + final void Function() onGroupJoined; + final void Function() onGroupJoinFailed; /// Handle group update message void handleGroupUpdate(Map data, SyncPlayState currentState) { @@ -50,6 +54,9 @@ class SyncPlayMessageHandler { case 'GroupDoesNotExist': _handleGroupDoesNotExist(); break; + case 'NotInGroup': + _handleNotInGroup(); + break; case 'StateUpdate': _handleStateUpdate(updateData as Map); break; @@ -74,6 +81,9 @@ class SyncPlayMessageHandler { )); log('SyncPlay: Joined group "$groupName" ($groupId)'); + + // Notify controller that group join was confirmed + onGroupJoined(); } void _handleUserJoined(String? userId, SyncPlayState currentState) { @@ -121,6 +131,23 @@ class SyncPlayMessageHandler { participants: [], )); log('SyncPlay: Group does not exist'); + + // Notify controller that group join failed + onGroupJoinFailed(); + } + + void _handleNotInGroup() { + onStateUpdate((state) => state.copyWith( + isInGroup: false, + groupId: null, + groupName: null, + groupState: SyncPlayGroupState.idle, + participants: [], + )); + log('SyncPlay: Not in group - server rejected operation'); + + // Notify controller that group join failed + onGroupJoinFailed(); } void _handleStateUpdate(Map data) { diff --git a/lib/providers/syncplay/syncplay_controller.dart b/lib/providers/syncplay/syncplay_controller.dart index b6c26e9e2..b271ceeca 100644 --- a/lib/providers/syncplay/syncplay_controller.dart +++ b/lib/providers/syncplay/syncplay_controller.dart @@ -1,22 +1,20 @@ import 'dart:async'; import 'dart:developer'; -import 'package:flutter/material.dart'; - -import 'package:flutter_riverpod/flutter_riverpod.dart'; - import 'package:fladder/jellyfin/jellyfin_open_api.swagger.dart'; import 'package:fladder/models/media_playback_model.dart'; import 'package:fladder/models/playback/playback_model.dart'; +import 'package:fladder/models/syncplay/syncplay_models.dart'; import 'package:fladder/providers/api_provider.dart'; import 'package:fladder/providers/router_provider.dart'; import 'package:fladder/providers/syncplay/handlers/syncplay_command_handler.dart'; import 'package:fladder/providers/syncplay/handlers/syncplay_message_handler.dart'; -import 'package:fladder/models/syncplay/syncplay_models.dart'; import 'package:fladder/providers/syncplay/time_sync_service.dart'; import 'package:fladder/providers/syncplay/websocket_manager.dart'; import 'package:fladder/providers/user_provider.dart'; import 'package:fladder/providers/video_player_provider.dart'; +import 'package:flutter/material.dart'; +import 'package:flutter_riverpod/flutter_riverpod.dart'; /// Controller for SyncPlay synchronized playback class SyncPlayController { @@ -27,10 +25,13 @@ class SyncPlayController { ); _messageHandler = SyncPlayMessageHandler( onStateUpdate: _updateStateWith, - reportReady: ({bool isPlaying = true}) => reportReady(isPlaying: isPlaying), + reportReady: ({bool isPlaying = true}) => + reportReady(isPlaying: isPlaying), startPlayback: _startPlayback, isBuffering: () => _commandHandler.isBuffering?.call() ?? false, getContext: () => getNavigatorKey(_ref)?.currentContext, + onGroupJoined: _onGroupJoined, + onGroupJoinFailed: _onGroupJoinFailed, ); } @@ -53,16 +54,28 @@ class SyncPlayController { String? _lastGroupId; bool _wasConnected = false; + // Completer for waiting on group join confirmation + Completer? _joinGroupCompleter; + // Player callbacks (delegated to command handler) - set onPlay(SyncPlayPlayerCallback? callback) => _commandHandler.onPlay = callback; - set onPause(SyncPlayPlayerCallback? callback) => _commandHandler.onPause = callback; - set onSeek(SyncPlaySeekCallback? callback) => _commandHandler.onSeek = callback; - set onStop(SyncPlayPlayerCallback? callback) => _commandHandler.onStop = callback; + set onPlay(SyncPlayPlayerCallback? callback) => + _commandHandler.onPlay = callback; + set onPause(SyncPlayPlayerCallback? callback) => + _commandHandler.onPause = callback; + set onSeek(SyncPlaySeekCallback? callback) => + _commandHandler.onSeek = callback; + set onStop(SyncPlayPlayerCallback? callback) => + _commandHandler.onStop = callback; set getPositionTicks(SyncPlayPositionCallback? callback) => _commandHandler.getPositionTicks = callback; - set isPlaying(bool Function()? callback) => _commandHandler.isPlaying = callback; - set isBuffering(bool Function()? callback) => _commandHandler.isBuffering = callback; - set onReportReady(SyncPlayReportReadyCallback? callback) => _commandHandler.onReportReady = callback; + set isPlaying(bool Function()? callback) => + _commandHandler.isPlaying = callback; + set isBuffering(bool Function()? callback) => + _commandHandler.isBuffering = callback; + set onSeekRequested(SyncPlaySeekCallback? callback) => + _commandHandler.onSeekRequested = callback; + set onReportReady(SyncPlayReportReadyCallback? callback) => + _commandHandler.onReportReady = callback; JellyfinOpenApi get _api => _ref.read(jellyApiProvider).api; @@ -92,7 +105,8 @@ class SyncPlayController { deviceId: user.credentials.deviceId, ); - _wsStateSubscription = _wsManager!.connectionState.listen(_handleConnectionState); + _wsStateSubscription = + _wsManager!.connectionState.listen(_handleConnectionState); _wsMessageSubscription = _wsManager!.messages.listen(_handleMessage); await _wsManager!.connect(); @@ -136,33 +150,69 @@ class SyncPlayController { } /// Join an existing SyncPlay group + /// Returns true only after receiving GroupJoined confirmation from WebSocket Future joinGroup(String groupId) async { // Check if already in a group if (_state.isInGroup) { log('SyncPlay: Already in a group, leaving first...'); await leaveGroup(); } - + // Check if WebSocket is connected if (!_state.isConnected) { log('SyncPlay: WebSocket not connected, cannot join group'); return false; } - + try { log('SyncPlay: Joining group: $groupId'); + + // Create completer to wait for GroupJoined confirmation + _joinGroupCompleter = Completer(); + await _api.syncPlayJoinPost( body: JoinGroupRequestDto(groupId: groupId), ); _lastGroupId = groupId; - log('SyncPlay: Join request sent successfully'); - return true; + log('SyncPlay: Join request sent, waiting for confirmation...'); + + // Wait for GroupJoined message with timeout + final confirmed = await _joinGroupCompleter!.future.timeout( + const Duration(seconds: 5), + onTimeout: () { + log('SyncPlay: Timeout waiting for GroupJoined confirmation'); + return false; + }, + ); + + _joinGroupCompleter = null; + + if (confirmed) { + log('SyncPlay: Group join confirmed'); + } else { + log('SyncPlay: Group join not confirmed'); + _lastGroupId = null; + } + + return confirmed; } catch (e) { log('SyncPlay: Failed to join group: $e'); + _joinGroupCompleter?.complete(false); + _joinGroupCompleter = null; return false; } } + /// Called by message handler when GroupJoined is received + void _onGroupJoined() { + _joinGroupCompleter?.complete(true); + } + + /// Called by message handler when NotInGroup/GroupDoesNotExist is received + void _onGroupJoinFailed() { + _joinGroupCompleter?.complete(false); + } + /// Leave the current SyncPlay group Future leaveGroup() async { if (!_state.isInGroup) return; @@ -295,7 +345,7 @@ class SyncPlayController { void _handleMessage(Map message) { final messageType = message['MessageType'] as String?; final data = message['Data']; - + log('SyncPlay: Received WebSocket message: $messageType'); switch (messageType) { @@ -350,10 +400,11 @@ class SyncPlayController { // Load and play log('SyncPlay: Loading playback item...'); - final loadedCorrectly = await _ref.read(videoPlayerProvider.notifier).loadPlaybackItem( - playbackModel, - startPosition, - ); + final loadedCorrectly = + await _ref.read(videoPlayerProvider.notifier).loadPlaybackItem( + playbackModel, + startPosition, + ); if (!loadedCorrectly) { log('SyncPlay: Failed to load playback item $itemId'); @@ -373,7 +424,7 @@ class SyncPlayController { final navigatorKey = getNavigatorKey(_ref); final context = navigatorKey?.currentContext; log('SyncPlay: Navigator context: ${context != null ? "exists" : "null"}'); - + if (context != null) { await _ref.read(videoPlayerProvider.notifier).openPlayer(context); log('SyncPlay: Successfully opened player for $itemId'); @@ -401,12 +452,14 @@ class SyncPlayController { /// Handle app lifecycle state changes /// Call this from a WidgetsBindingObserver when app state changes - Future handleAppLifecycleChange(AppLifecycleState lifecycleState) async { + Future handleAppLifecycleChange( + AppLifecycleState lifecycleState) async { switch (lifecycleState) { case AppLifecycleState.paused: case AppLifecycleState.inactive: // App going to background - remember state for reconnection - _wasConnected = _wsManager?.currentState == WebSocketConnectionState.connected; + _wasConnected = + _wsManager?.currentState == WebSocketConnectionState.connected; log('SyncPlay: App paused, wasConnected=$_wasConnected, lastGroupId=$_lastGroupId'); break; diff --git a/lib/providers/syncplay/syncplay_provider.dart b/lib/providers/syncplay/syncplay_provider.dart index e8f8f90b5..fe2dd8905 100644 --- a/lib/providers/syncplay/syncplay_provider.dart +++ b/lib/providers/syncplay/syncplay_provider.dart @@ -88,7 +88,7 @@ class SyncPlay extends _$SyncPlay { Future requestPause() => controller.requestPause(); /// Request unpause/play - Future requestUnpause() => controller.requestUnpause(); + Future requestUnpause() async => await controller.requestUnpause(); /// Request seek Future requestSeek(int positionTicks) => controller.requestSeek(positionTicks); @@ -120,6 +120,7 @@ class SyncPlay extends _$SyncPlay { required int Function() getPositionTicks, required bool Function() isPlaying, required bool Function() isBuffering, + Future Function(int positionTicks)? onSeekRequested, }) { controller.onPlay = onPlay; controller.onPause = onPause; @@ -128,6 +129,7 @@ class SyncPlay extends _$SyncPlay { controller.getPositionTicks = getPositionTicks; controller.isPlaying = isPlaying; controller.isBuffering = isBuffering; + controller.onSeekRequested = onSeekRequested; // Wire up reportReady callback so command handler can report ready after seek controller.onReportReady = () => controller.reportReady(); } @@ -141,6 +143,7 @@ class SyncPlay extends _$SyncPlay { controller.getPositionTicks = null; controller.isPlaying = null; controller.isBuffering = null; + controller.onSeekRequested = null; controller.onReportReady = null; } } diff --git a/lib/providers/video_player_provider.dart b/lib/providers/video_player_provider.dart index 30899d33d..35459989e 100644 --- a/lib/providers/video_player_provider.dart +++ b/lib/providers/video_player_provider.dart @@ -15,11 +15,13 @@ import 'package:fladder/providers/syncplay/syncplay_provider.dart'; import 'package:fladder/util/debouncer.dart'; import 'package:fladder/wrappers/media_control_wrapper.dart'; -final mediaPlaybackProvider = StateProvider((ref) => MediaPlaybackModel()); +final mediaPlaybackProvider = + StateProvider((ref) => MediaPlaybackModel()); final playBackModel = StateProvider((ref) => null); -final videoPlayerProvider = StateNotifierProvider((ref) { +final videoPlayerProvider = + StateNotifierProvider((ref) { final videoPlayer = VideoPlayerNotifier(ref); videoPlayer.init(); return videoPlayer; @@ -41,6 +43,9 @@ class VideoPlayerNotifier extends StateNotifier { /// Flag to indicate if the current action is initiated by SyncPlay bool _syncPlayAction = false; + /// Flag to indicate if we are reloading the video (e.g. for transcoding or audio track change) + bool _isReloading = false; + /// Timestamp of last SyncPlay command execution (for cooldown) DateTime? _lastSyncPlayCommandTime; @@ -53,11 +58,13 @@ class VideoPlayerNotifier extends StateNotifier { /// Check if we're in the SyncPlay cooldown period bool get _inSyncPlayCooldown { if (_lastSyncPlayCommandTime == null) return false; - return DateTime.now().difference(_lastSyncPlayCommandTime!) < _syncPlayCooldown; + return DateTime.now().difference(_lastSyncPlayCommandTime!) < + _syncPlayCooldown; } void init() async { debouncer.run(() async { + _isReloading = false; await state.dispose(); await state.init(); @@ -82,41 +89,49 @@ class VideoPlayerNotifier extends StateNotifier { }); } + /// Manually set the reloading state (e.g. before fetching new PlaybackInfo) + void setReloading(bool value) { + _isReloading = value; + if (value && _isSyncPlayActive) { + ref.read(syncPlayProvider.notifier).reportBuffering(); + } + } + /// Register player callbacks with SyncPlay controller void _registerSyncPlayCallbacks() { ref.read(syncPlayProvider.notifier).registerPlayer( - onPlay: () async { - _syncPlayAction = true; - _lastSyncPlayCommandTime = DateTime.now(); - await state.play(); - _syncPlayAction = false; - }, - onPause: () async { - _syncPlayAction = true; - _lastSyncPlayCommandTime = DateTime.now(); - await state.pause(); - _syncPlayAction = false; - }, - onSeek: (positionTicks) async { - _syncPlayAction = true; - _lastSyncPlayCommandTime = DateTime.now(); - final position = Duration(microseconds: positionTicks ~/ 10); - await state.seek(position); - _syncPlayAction = false; - }, - onStop: () async { - _syncPlayAction = true; - _lastSyncPlayCommandTime = DateTime.now(); - await state.stop(); - _syncPlayAction = false; - }, - getPositionTicks: () { - final position = playbackState.position; - return secondsToTicks(position.inMilliseconds / 1000); - }, - isPlaying: () => playbackState.playing, - isBuffering: () => playbackState.buffering, - ); + onPlay: () async { + _syncPlayAction = true; + _lastSyncPlayCommandTime = DateTime.now(); + await state.play(); + _syncPlayAction = false; + }, + onPause: () async { + _syncPlayAction = true; + _lastSyncPlayCommandTime = DateTime.now(); + await state.pause(); + _syncPlayAction = false; + }, + onSeek: (positionTicks) async { + _syncPlayAction = true; + _lastSyncPlayCommandTime = DateTime.now(); + final position = Duration(microseconds: positionTicks ~/ 10); + await state.seek(position); + _syncPlayAction = false; + }, + onStop: () async { + _syncPlayAction = true; + _lastSyncPlayCommandTime = DateTime.now(); + await state.stop(); + _syncPlayAction = false; + }, + getPositionTicks: () { + final position = playbackState.position; + return secondsToTicks(position.inMilliseconds / 1000); + }, + isPlaying: () => playbackState.playing, + isBuffering: () => _isReloading || playbackState.buffering, + ); } Future updateBuffering(bool event) async { @@ -127,7 +142,11 @@ class VideoPlayerNotifier extends StateNotifier { // Report buffering state to SyncPlay if active // Skip if we're in the cooldown period after a SyncPlay command to prevent feedback loops - if (_isSyncPlayActive && !_syncPlayAction && !_inSyncPlayCooldown) { + // Also skip if we are currently reloading (we'll report manually when done) + if (_isSyncPlayActive && + !_syncPlayAction && + !_inSyncPlayCooldown && + !_isReloading) { if (event) { // Started buffering ref.read(syncPlayProvider.notifier).reportBuffering(); @@ -164,7 +183,8 @@ class VideoPlayerNotifier extends StateNotifier { mediaState.update( (state) => state.copyWith(playing: event), ); - ref.read(playBackModel)?.updatePlaybackPosition(currentState.position, currentState.playing, ref); + ref.read(playBackModel)?.updatePlaybackPosition( + currentState.position, currentState.playing, ref); } Future updatePosition(Duration event) async { @@ -185,7 +205,9 @@ class VideoPlayerNotifier extends StateNotifier { position: event, lastPosition: position, )); - ref.read(playBackModel)?.updatePlaybackPosition(position, playbackState.playing, ref); + ref + .read(playBackModel) + ?.updatePlaybackPosition(position, playbackState.playing, ref); } else { mediaState.update((value) => value.copyWith( position: event, @@ -193,7 +215,15 @@ class VideoPlayerNotifier extends StateNotifier { } } - Future loadPlaybackItem(PlaybackModel model, Duration startPosition) async { + Future loadPlaybackItem( + PlaybackModel model, Duration startPosition) async { + _isReloading = true; + + // Explicitly report buffering to SyncPlay if active before stopping/loading + if (_isSyncPlayActive) { + ref.read(syncPlayProvider.notifier).reportBuffering(); + } + await state.stop(); mediaState.update((state) => state.copyWith( state: VideoPlayerState.fullScreen, @@ -205,6 +235,9 @@ class VideoPlayerNotifier extends StateNotifier { final media = model.media; PlaybackModel? newPlaybackModel = model; + // Capture syncplay state before async operations + final syncPlayActive = _isSyncPlayActive; + if (media != null) { await state.loadVideo(model, startPosition, false); await state.setVolume(ref.read(videoPlayerSettingsProvider).volume); @@ -217,7 +250,18 @@ class VideoPlayerNotifier extends StateNotifier { } await state.setAudioTrack(null, model); await state.setSubtitleTrack(null, model); - state.play(); + + _isReloading = false; + + // Only auto-play if syncplay is NOT active + // When syncplay is active, the buffering→ready transition (in updateBuffering) + // will report ready to syncplay, and syncplay will coordinate the unpause + if (!syncPlayActive) { + state.play(); + } else { + // For SyncPlay, we report ready now that reload AND seek are done + await ref.read(syncPlayProvider.notifier).reportReady(); + } ref.read(playBackModel.notifier).update((state) => newPlaybackModel); }, ); @@ -227,11 +271,13 @@ class VideoPlayerNotifier extends StateNotifier { return true; } + _isReloading = false; mediaState.update((state) => state.copyWith(errorPlaying: true)); return false; } - Future openPlayer(BuildContext context) async => state.openPlayer(context); + Future openPlayer(BuildContext context) async => + state.openPlayer(context); Future takeScreenshot() async { final syncPath = ref.read(clientSettingsProvider).syncPath; @@ -246,7 +292,7 @@ class VideoPlayerNotifier extends StateNotifier { if (screenshotBuf != null) { final savePathDirectory = Directory(screenshotsPath); - + // Should we try to create the directory instead? if (!await savePathDirectory.exists()) { return false; @@ -274,7 +320,7 @@ class VideoPlayerNotifier extends StateNotifier { } maxNumber += 1; - + final maxNumberStr = maxNumber.toString().padLeft(paddingAmount, '0'); final screenshotName = '$maxNumberStr.$fileExtension'; final screenshotPath = p.join(screenshotsPath, screenshotName); From d36990d9879dbf3af90943d17001aa84956f7c2e Mon Sep 17 00:00:00 2001 From: Filip Iricanin Date: Mon, 2 Feb 2026 23:03:43 +0100 Subject: [PATCH 13/25] feat: improve SyncPlay synchronization and buffering logic - **SyncPlay Logic**: - Update `_isDuplicateCommand` in `SyncPlayCommandHandler` to ensure "Unpause" commands are never ignored if the player is currently paused, preventing stuck playback. - Add `onSeekRequested` callback to signal the provider to report buffering immediately when an external seek occurs. - Modify `userPlay` to request an unpause and rely on the buffering listener to report "Ready" instead of reporting it immediately. - Ensure `reportReady` is called with the correct `isPlaying` state during buffering transitions and media reloads to synchronize group playback more accurately. - **Platform Support**: - Disable `_SyncPlayLifecycleObserver` and skip forced reconnection logic on Web to maintain WebSocket stability when the browser tab is in the background. - **UI & UX**: - Add localized snackbar notifications in `SyncPlayMessageHandler` when users join or leave a group. - **Code Quality**: - Refactor imports and apply consistent formatting across SyncPlay handler and provider files. - Improve logging for group join/fail events. --- .../handlers/syncplay_command_handler.dart | 20 ++++++++--- .../handlers/syncplay_message_handler.dart | 25 ++++++------- .../syncplay/syncplay_controller.dart | 4 +++ lib/providers/syncplay/syncplay_provider.dart | 35 ++++++++++-------- lib/providers/video_player_provider.dart | 36 +++++++++++-------- 5 files changed, 73 insertions(+), 47 deletions(-) diff --git a/lib/providers/syncplay/handlers/syncplay_command_handler.dart b/lib/providers/syncplay/handlers/syncplay_command_handler.dart index 7d38db2bd..780230fb0 100644 --- a/lib/providers/syncplay/handlers/syncplay_command_handler.dart +++ b/lib/providers/syncplay/handlers/syncplay_command_handler.dart @@ -34,10 +34,10 @@ class SyncPlayCommandHandler { SyncPlayPositionCallback? getPositionTicks; bool Function()? isPlaying; bool Function()? isBuffering; - + // New callback to signal that a seek has been requested by someone else SyncPlaySeekCallback? onSeekRequested; - + // Report ready callback (to tell server we're ready after seek) SyncPlayReportReadyCallback? onReportReady; @@ -80,13 +80,21 @@ class SyncPlayCommandHandler { bool _isDuplicateCommand( String when, int positionTicks, String command, String playlistItemId) { if (_lastCommand == null) return false; + + // For Unpause commands, if we are not currently playing, we should NEVER treat it as a duplicate + // to ensure the player actually resumes. + if (command == 'Unpause' && isPlaying?.call() == false) { + return false; + } + return _lastCommand!.when == when && _lastCommand!.positionTicks == positionTicks && _lastCommand!.command == command && _lastCommand!.playlistItemId == playlistItemId; } - void _scheduleCommand(String command, DateTime serverTime, int positionTicks) { + void _scheduleCommand( + String command, DateTime serverTime, int positionTicks) { final timeSyncService = timeSync(); if (timeSyncService == null) { log('SyncPlay: Cannot schedule command without time sync'); @@ -115,10 +123,12 @@ class SyncPlayCommandHandler { } else if (delay.inMilliseconds > 5000) { // Suspiciously large delay - might indicate time sync issue log('SyncPlay: Warning - large delay: ${delay.inMilliseconds}ms'); - _commandTimer = Timer(delay, () => _executeCommand(command, positionTicks)); + _commandTimer = + Timer(delay, () => _executeCommand(command, positionTicks)); } else { log('SyncPlay: Scheduling command: $command in ${delay.inMilliseconds}ms'); - _commandTimer = Timer(delay, () => _executeCommand(command, positionTicks)); + _commandTimer = + Timer(delay, () => _executeCommand(command, positionTicks)); } } diff --git a/lib/providers/syncplay/handlers/syncplay_message_handler.dart b/lib/providers/syncplay/handlers/syncplay_message_handler.dart index a2134de53..c52602d50 100644 --- a/lib/providers/syncplay/handlers/syncplay_message_handler.dart +++ b/lib/providers/syncplay/handlers/syncplay_message_handler.dart @@ -1,10 +1,9 @@ import 'dart:developer'; -import 'package:flutter/material.dart'; - import 'package:fladder/models/syncplay/syncplay_models.dart'; import 'package:fladder/screens/shared/fladder_snackbar.dart'; import 'package:fladder/util/localization_helper.dart'; +import 'package:flutter/material.dart'; /// Callback for reporting ready state after seek typedef ReportReadyCallback = Future Function({bool isPlaying}); @@ -34,7 +33,8 @@ class SyncPlayMessageHandler { final void Function() onGroupJoinFailed; /// Handle group update message - void handleGroupUpdate(Map data, SyncPlayState currentState) { + void handleGroupUpdate( + Map data, SyncPlayState currentState) { final updateType = data['Type'] as String?; final updateData = data['Data']; @@ -81,7 +81,7 @@ class SyncPlayMessageHandler { )); log('SyncPlay: Joined group "$groupName" ($groupId)'); - + // Notify controller that group join was confirmed onGroupJoined(); } @@ -90,10 +90,11 @@ class SyncPlayMessageHandler { if (userId == null) return; final participants = [...currentState.participants, userId]; onStateUpdate((state) => state.copyWith(participants: participants)); - + final context = getContext(); if (context != null) { - fladderSnackbar(context, title: context.localized.syncPlayUserJoined(userId)); + fladderSnackbar(context, + title: context.localized.syncPlayUserJoined(userId)); } log('SyncPlay: User joined: $userId'); } @@ -103,10 +104,11 @@ class SyncPlayMessageHandler { final participants = currentState.participants.where((p) => p != userId).toList(); onStateUpdate((state) => state.copyWith(participants: participants)); - + final context = getContext(); if (context != null) { - fladderSnackbar(context, title: context.localized.syncPlayUserLeft(userId)); + fladderSnackbar(context, + title: context.localized.syncPlayUserLeft(userId)); } log('SyncPlay: User left: $userId'); } @@ -131,7 +133,7 @@ class SyncPlayMessageHandler { participants: [], )); log('SyncPlay: Group does not exist'); - + // Notify controller that group join failed onGroupJoinFailed(); } @@ -145,7 +147,7 @@ class SyncPlayMessageHandler { participants: [], )); log('SyncPlay: Not in group - server rejected operation'); - + // Notify controller that group join failed onGroupJoinFailed(); } @@ -181,8 +183,7 @@ class SyncPlayMessageHandler { } } - void _handlePlayQueue( - Map data, SyncPlayState currentState) { + void _handlePlayQueue(Map data, SyncPlayState currentState) { final playlist = data['Playlist'] as List? ?? []; final playingItemIndex = data['PlayingItemIndex'] as int? ?? 0; final startPositionTicks = data['StartPositionTicks'] as int? ?? 0; diff --git a/lib/providers/syncplay/syncplay_controller.dart b/lib/providers/syncplay/syncplay_controller.dart index b271ceeca..12ec36321 100644 --- a/lib/providers/syncplay/syncplay_controller.dart +++ b/lib/providers/syncplay/syncplay_controller.dart @@ -13,6 +13,7 @@ import 'package:fladder/providers/syncplay/time_sync_service.dart'; import 'package:fladder/providers/syncplay/websocket_manager.dart'; import 'package:fladder/providers/user_provider.dart'; import 'package:fladder/providers/video_player_provider.dart'; +import 'package:flutter/foundation.dart'; import 'package:flutter/material.dart'; import 'package:flutter_riverpod/flutter_riverpod.dart'; @@ -454,6 +455,9 @@ class SyncPlayController { /// Call this from a WidgetsBindingObserver when app state changes Future handleAppLifecycleChange( AppLifecycleState lifecycleState) async { + // On web, we want to stay connected even in background and avoid forced reconnection on resume. + if (kIsWeb) return; + switch (lifecycleState) { case AppLifecycleState.paused: case AppLifecycleState.inactive: diff --git a/lib/providers/syncplay/syncplay_provider.dart b/lib/providers/syncplay/syncplay_provider.dart index fe2dd8905..f4c39a1b0 100644 --- a/lib/providers/syncplay/syncplay_provider.dart +++ b/lib/providers/syncplay/syncplay_provider.dart @@ -1,13 +1,13 @@ import 'dart:async'; +import 'package:fladder/jellyfin/jellyfin_open_api.swagger.dart'; +import 'package:fladder/models/syncplay/syncplay_models.dart'; +import 'package:fladder/providers/syncplay/syncplay_controller.dart'; +import 'package:flutter/foundation.dart'; import 'package:flutter/widgets.dart'; import 'package:flutter_riverpod/flutter_riverpod.dart'; import 'package:riverpod_annotation/riverpod_annotation.dart'; -import 'package:fladder/jellyfin/jellyfin_open_api.swagger.dart'; -import 'package:fladder/providers/syncplay/syncplay_controller.dart'; -import 'package:fladder/models/syncplay/syncplay_models.dart'; - part 'syncplay_provider.g.dart'; /// Lifecycle observer for SyncPlay - handles app background/resume @@ -50,9 +50,11 @@ class SyncPlay extends _$SyncPlay { SyncPlayController get controller { if (_controller == null) { _controller = SyncPlayController(ref); - // Register lifecycle observer when controller is created - _lifecycleObserver = _SyncPlayLifecycleObserver(_controller!); - _lifecycleObserver!.register(); + // Register lifecycle observer when controller is created (except on Web) + if (!kIsWeb) { + _lifecycleObserver = _SyncPlayLifecycleObserver(_controller!); + _lifecycleObserver!.register(); + } } return _controller!; } @@ -76,7 +78,8 @@ class SyncPlay extends _$SyncPlay { Future> listGroups() => controller.listGroups(); /// Create a new SyncPlay group - Future createGroup(String groupName) => controller.createGroup(groupName); + Future createGroup(String groupName) => + controller.createGroup(groupName); /// Join an existing group Future joinGroup(String groupId) => controller.joinGroup(groupId); @@ -91,13 +94,14 @@ class SyncPlay extends _$SyncPlay { Future requestUnpause() async => await controller.requestUnpause(); /// Request seek - Future requestSeek(int positionTicks) => controller.requestSeek(positionTicks); + Future requestSeek(int positionTicks) => + controller.requestSeek(positionTicks); /// Report buffering state Future reportBuffering() => controller.reportBuffering(); /// Report ready state - Future reportReady({bool isPlaying = true}) => + Future reportReady({bool isPlaying = true}) => controller.reportReady(isPlaying: isPlaying); /// Set a new queue/playlist @@ -105,11 +109,12 @@ class SyncPlay extends _$SyncPlay { required List itemIds, int playingItemPosition = 0, int startPositionTicks = 0, - }) => controller.setNewQueue( - itemIds: itemIds, - playingItemPosition: playingItemPosition, - startPositionTicks: startPositionTicks, - ); + }) => + controller.setNewQueue( + itemIds: itemIds, + playingItemPosition: playingItemPosition, + startPositionTicks: startPositionTicks, + ); /// Register player callbacks void registerPlayer({ diff --git a/lib/providers/video_player_provider.dart b/lib/providers/video_player_provider.dart index 35459989e..54473771e 100644 --- a/lib/providers/video_player_provider.dart +++ b/lib/providers/video_player_provider.dart @@ -1,19 +1,17 @@ import 'dart:async'; import 'dart:io'; -import 'package:path/path.dart' as p; - -import 'package:flutter/material.dart'; - -import 'package:flutter_riverpod/flutter_riverpod.dart'; import 'package:fladder/models/media_playback_model.dart'; import 'package:fladder/models/playback/playback_model.dart'; +import 'package:fladder/models/syncplay/syncplay_models.dart'; import 'package:fladder/providers/settings/client_settings_provider.dart'; import 'package:fladder/providers/settings/video_player_settings_provider.dart'; -import 'package:fladder/models/syncplay/syncplay_models.dart'; import 'package:fladder/providers/syncplay/syncplay_provider.dart'; import 'package:fladder/util/debouncer.dart'; import 'package:fladder/wrappers/media_control_wrapper.dart'; +import 'package:flutter/material.dart'; +import 'package:flutter_riverpod/flutter_riverpod.dart'; +import 'package:path/path.dart' as p; final mediaPlaybackProvider = StateProvider((ref) => MediaPlaybackModel()); @@ -119,6 +117,11 @@ class VideoPlayerNotifier extends StateNotifier { await state.seek(position); _syncPlayAction = false; }, + onSeekRequested: (positionTicks) async { + // This is called when another user seeks, we should report buffering immediately + _isReloading = true; + ref.read(syncPlayProvider.notifier).reportBuffering(); + }, onStop: () async { _syncPlayAction = true; _lastSyncPlayCommandTime = DateTime.now(); @@ -152,7 +155,9 @@ class VideoPlayerNotifier extends StateNotifier { ref.read(syncPlayProvider.notifier).reportBuffering(); } else { // Finished buffering - ready - ref.read(syncPlayProvider.notifier).reportReady(); + ref + .read(syncPlayProvider.notifier) + .reportReady(isPlaying: playbackState.playing); } } } @@ -254,13 +259,15 @@ class VideoPlayerNotifier extends StateNotifier { _isReloading = false; // Only auto-play if syncplay is NOT active - // When syncplay is active, the buffering→ready transition (in updateBuffering) - // will report ready to syncplay, and syncplay will coordinate the unpause + // When syncplay is active, we report ready (not playing) and wait for the group command if (!syncPlayActive) { state.play(); } else { - // For SyncPlay, we report ready now that reload AND seek are done - await ref.read(syncPlayProvider.notifier).reportReady(); + // For SyncPlay, we report ready now that reload AND seek are done. + // We report NOT playing so the server sends an explicit Unpause command. + await ref + .read(syncPlayProvider.notifier) + .reportReady(isPlaying: false); } ref.read(playBackModel.notifier).update((state) => newPlaybackModel); }, @@ -341,10 +348,9 @@ class VideoPlayerNotifier extends StateNotifier { /// User-initiated play - routes through SyncPlay if active Future userPlay() async { if (_isSyncPlayActive) { - final syncPlay = ref.read(syncPlayProvider.notifier); - await syncPlay.requestUnpause(); - // Must report ready after unpause for server to broadcast play command - await syncPlay.reportReady(isPlaying: true); + // Just request unpause. The server will put the group in Waiting state, + // and our buffering listener will report Ready(isPlaying: false) when appropriate. + await ref.read(syncPlayProvider.notifier).requestUnpause(); } else { await state.play(); } From fa5960a24e4b7910eec5deebe90252aed3896e82 Mon Sep 17 00:00:00 2001 From: Filip Iricanin Date: Mon, 2 Feb 2026 23:27:12 +0100 Subject: [PATCH 14/25] feat: implement SyncPlay command overlay for native Android player - **Native Android Integration**: - Created `SyncPlayCommandOverlay` composable to display real-time SyncPlay action status (Pause, Unpause, Seek, Stop, Syncing) on the native player layer. - Updated `VideoPlayerControls` to include the new overlay. - Added `setSyncPlayCommandState` to the Pigeon-defined `VideoPlayerApi` to bridge state from Flutter to native Kotlin. - **Flutter SyncPlay Logic**: - Enhanced `VideoPlayerProvider` to listen for SyncPlay state changes and forward processing status and command types to the player wrapper. - Added `updateSyncPlayCommandState` to `MediaControlWrapper` to communicate with the native player implementation. - Integrated `SyncPlayCommandIndicator` and `SyncPlayBadge` into `TvPlayerControls`. - **Internationalization**: - Added new Pigeon-mapped translation strings for SyncPlay status messages (e.g., "Pausing...", "Seeking...", "Syncing with group"). - Updated `LocalizationHelper` and generated translation files to support these new keys. - **General Improvements**: - Added `FladderItemType.tvchannel` to the library filter model. - Updated generated provider files and performed minor code formatting in `VideoProgressBar`. --- .../fladder/api/TranslationsPigeon.g.kt | 120 +++++++++++++ .../fladder/api/VideoPlayerHelper.g.kt | 35 +++- .../controls/VideoPlayerControls.kt | 2 + .../overlays/SyncPlayCommandOverlay.kt | 158 ++++++++++++++++++ .../messengers/VideoPlayerImplementation.kt | 4 + .../fladder/objects/VideoPlayerObject.kt | 12 ++ lib/models/library_filter_model.g.dart | 1 + .../items/channel_details_provider.g.dart | 2 +- .../items/movies_details_provider.g.dart | 25 ++- lib/providers/library_screen_provider.g.dart | 2 +- lib/providers/live_tv_provider.g.dart | 2 +- .../syncplay/syncplay_provider.g.dart | 2 +- lib/providers/video_player_provider.dart | 28 +++- .../components/video_progress_bar.dart | 119 ++++++++----- .../video_player/tv_player_controls.dart | 4 + lib/src/translations_pigeon.g.dart | 126 ++++++++++++++ lib/src/video_player_helper.g.dart | 32 +++- lib/util/localization_helper.dart | 19 +++ lib/wrappers/media_control_wrapper.dart | 10 ++ pigeons/translations_pigeon.dart | 8 + pigeons/video_player.dart | 8 +- 21 files changed, 655 insertions(+), 64 deletions(-) create mode 100644 android/app/src/main/kotlin/nl/jknaapen/fladder/composables/overlays/SyncPlayCommandOverlay.kt diff --git a/android/app/src/main/kotlin/nl/jknaapen/fladder/api/TranslationsPigeon.g.kt b/android/app/src/main/kotlin/nl/jknaapen/fladder/api/TranslationsPigeon.g.kt index c2fd9925f..83d7d356a 100644 --- a/android/app/src/main/kotlin/nl/jknaapen/fladder/api/TranslationsPigeon.g.kt +++ b/android/app/src/main/kotlin/nl/jknaapen/fladder/api/TranslationsPigeon.g.kt @@ -334,4 +334,124 @@ class TranslationsPigeon(private val binaryMessenger: BinaryMessenger, private v } } } + fun syncPlaySyncingWithGroup(callback: (Result) -> Unit) +{ + val separatedMessageChannelSuffix = if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" + val channelName = "dev.flutter.pigeon.nl_jknaapen_fladder.settings.TranslationsPigeon.syncPlaySyncingWithGroup$separatedMessageChannelSuffix" + val channel = BasicMessageChannel(binaryMessenger, channelName, codec) + channel.send(null) { + if (it is List<*>) { + if (it.size > 1) { + callback(Result.failure(FlutterError(it[0] as String, it[1] as String, it[2] as String?))) + } else if (it[0] == null) { + callback(Result.failure(FlutterError("null-error", "Flutter api returned null value for non-null return value.", ""))) + } else { + val output = it[0] as String + callback(Result.success(output)) + } + } else { + callback(Result.failure(TranslationsPigeonPigeonUtils.createConnectionError(channelName))) + } + } + } + fun syncPlayCommandPausing(callback: (Result) -> Unit) +{ + val separatedMessageChannelSuffix = if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" + val channelName = "dev.flutter.pigeon.nl_jknaapen_fladder.settings.TranslationsPigeon.syncPlayCommandPausing$separatedMessageChannelSuffix" + val channel = BasicMessageChannel(binaryMessenger, channelName, codec) + channel.send(null) { + if (it is List<*>) { + if (it.size > 1) { + callback(Result.failure(FlutterError(it[0] as String, it[1] as String, it[2] as String?))) + } else if (it[0] == null) { + callback(Result.failure(FlutterError("null-error", "Flutter api returned null value for non-null return value.", ""))) + } else { + val output = it[0] as String + callback(Result.success(output)) + } + } else { + callback(Result.failure(TranslationsPigeonPigeonUtils.createConnectionError(channelName))) + } + } + } + fun syncPlayCommandPlaying(callback: (Result) -> Unit) +{ + val separatedMessageChannelSuffix = if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" + val channelName = "dev.flutter.pigeon.nl_jknaapen_fladder.settings.TranslationsPigeon.syncPlayCommandPlaying$separatedMessageChannelSuffix" + val channel = BasicMessageChannel(binaryMessenger, channelName, codec) + channel.send(null) { + if (it is List<*>) { + if (it.size > 1) { + callback(Result.failure(FlutterError(it[0] as String, it[1] as String, it[2] as String?))) + } else if (it[0] == null) { + callback(Result.failure(FlutterError("null-error", "Flutter api returned null value for non-null return value.", ""))) + } else { + val output = it[0] as String + callback(Result.success(output)) + } + } else { + callback(Result.failure(TranslationsPigeonPigeonUtils.createConnectionError(channelName))) + } + } + } + fun syncPlayCommandSeeking(callback: (Result) -> Unit) +{ + val separatedMessageChannelSuffix = if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" + val channelName = "dev.flutter.pigeon.nl_jknaapen_fladder.settings.TranslationsPigeon.syncPlayCommandSeeking$separatedMessageChannelSuffix" + val channel = BasicMessageChannel(binaryMessenger, channelName, codec) + channel.send(null) { + if (it is List<*>) { + if (it.size > 1) { + callback(Result.failure(FlutterError(it[0] as String, it[1] as String, it[2] as String?))) + } else if (it[0] == null) { + callback(Result.failure(FlutterError("null-error", "Flutter api returned null value for non-null return value.", ""))) + } else { + val output = it[0] as String + callback(Result.success(output)) + } + } else { + callback(Result.failure(TranslationsPigeonPigeonUtils.createConnectionError(channelName))) + } + } + } + fun syncPlayCommandStopping(callback: (Result) -> Unit) +{ + val separatedMessageChannelSuffix = if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" + val channelName = "dev.flutter.pigeon.nl_jknaapen_fladder.settings.TranslationsPigeon.syncPlayCommandStopping$separatedMessageChannelSuffix" + val channel = BasicMessageChannel(binaryMessenger, channelName, codec) + channel.send(null) { + if (it is List<*>) { + if (it.size > 1) { + callback(Result.failure(FlutterError(it[0] as String, it[1] as String, it[2] as String?))) + } else if (it[0] == null) { + callback(Result.failure(FlutterError("null-error", "Flutter api returned null value for non-null return value.", ""))) + } else { + val output = it[0] as String + callback(Result.success(output)) + } + } else { + callback(Result.failure(TranslationsPigeonPigeonUtils.createConnectionError(channelName))) + } + } + } + fun syncPlayCommandSyncing(callback: (Result) -> Unit) +{ + val separatedMessageChannelSuffix = if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" + val channelName = "dev.flutter.pigeon.nl_jknaapen_fladder.settings.TranslationsPigeon.syncPlayCommandSyncing$separatedMessageChannelSuffix" + val channel = BasicMessageChannel(binaryMessenger, channelName, codec) + channel.send(null) { + if (it is List<*>) { + if (it.size > 1) { + callback(Result.failure(FlutterError(it[0] as String, it[1] as String, it[2] as String?))) + } else if (it[0] == null) { + callback(Result.failure(FlutterError("null-error", "Flutter api returned null value for non-null return value.", ""))) + } else { + val output = it[0] as String + callback(Result.success(output)) + } + } else { + callback(Result.failure(TranslationsPigeonPigeonUtils.createConnectionError(channelName))) + } + } + } } diff --git a/android/app/src/main/kotlin/nl/jknaapen/fladder/api/VideoPlayerHelper.g.kt b/android/app/src/main/kotlin/nl/jknaapen/fladder/api/VideoPlayerHelper.g.kt index 03314422f..30524ad95 100644 --- a/android/app/src/main/kotlin/nl/jknaapen/fladder/api/VideoPlayerHelper.g.kt +++ b/android/app/src/main/kotlin/nl/jknaapen/fladder/api/VideoPlayerHelper.g.kt @@ -882,6 +882,12 @@ interface VideoPlayerApi { /** Seeks to the given playback position, in milliseconds. */ fun seekTo(position: Long) fun stop() + /** + * Sets the SyncPlay command state for the native player overlay. + * [processing] indicates if a SyncPlay command is being processed. + * [commandType] is the type of command (e.g., "Pause", "Unpause", "Seek", "Stop"). + */ + fun setSyncPlayCommandState(processing: Boolean, commandType: String?) companion object { /** The codec used by VideoPlayerApi. */ @@ -1073,6 +1079,25 @@ interface VideoPlayerApi { channel.setMessageHandler(null) } } + run { + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.nl_jknaapen_fladder.video.VideoPlayerApi.setSyncPlayCommandState$separatedMessageChannelSuffix", codec) + if (api != null) { + channel.setMessageHandler { message, reply -> + val args = message as List + val processingArg = args[0] as Boolean + val commandTypeArg = args[1] as String? + val wrapped: List = try { + api.setSyncPlayCommandState(processingArg, commandTypeArg) + listOf(null) + } catch (exception: Throwable) { + VideoPlayerHelperPigeonUtils.wrapError(exception) + } + reply.reply(wrapped) + } + } else { + channel.setMessageHandler(null) + } + } } } } @@ -1192,7 +1217,7 @@ class VideoPlayerControlsCallback(private val binaryMessenger: BinaryMessenger, } } else { callback(Result.failure(VideoPlayerHelperPigeonUtils.createConnectionError(channelName))) - } + } } } fun loadProgram(selectionArg: GuideChannel, callback: (Result) -> Unit) @@ -1209,7 +1234,7 @@ class VideoPlayerControlsCallback(private val binaryMessenger: BinaryMessenger, } } else { callback(Result.failure(VideoPlayerHelperPigeonUtils.createConnectionError(channelName))) - } + } } } fun fetchProgramsForChannel(channelIdArg: String, callback: (Result>) -> Unit) @@ -1247,7 +1272,7 @@ class VideoPlayerControlsCallback(private val binaryMessenger: BinaryMessenger, } } else { callback(Result.failure(VideoPlayerHelperPigeonUtils.createConnectionError(channelName))) - } + } } } /** User-initiated pause action from native player (for SyncPlay integration) */ @@ -1265,7 +1290,7 @@ class VideoPlayerControlsCallback(private val binaryMessenger: BinaryMessenger, } } else { callback(Result.failure(VideoPlayerHelperPigeonUtils.createConnectionError(channelName))) - } + } } } /** @@ -1286,7 +1311,7 @@ class VideoPlayerControlsCallback(private val binaryMessenger: BinaryMessenger, } } else { callback(Result.failure(VideoPlayerHelperPigeonUtils.createConnectionError(channelName))) - } + } } } } diff --git a/android/app/src/main/kotlin/nl/jknaapen/fladder/composables/controls/VideoPlayerControls.kt b/android/app/src/main/kotlin/nl/jknaapen/fladder/composables/controls/VideoPlayerControls.kt index 8b52d2d37..add42adb1 100644 --- a/android/app/src/main/kotlin/nl/jknaapen/fladder/composables/controls/VideoPlayerControls.kt +++ b/android/app/src/main/kotlin/nl/jknaapen/fladder/composables/controls/VideoPlayerControls.kt @@ -73,6 +73,7 @@ import nl.jknaapen.fladder.composables.dialogs.AudioPicker import nl.jknaapen.fladder.composables.dialogs.ChapterSelectionSheet import nl.jknaapen.fladder.composables.dialogs.PlaybackSpeedPicker import nl.jknaapen.fladder.composables.dialogs.SubtitlePicker +import nl.jknaapen.fladder.composables.overlays.SyncPlayCommandOverlay import nl.jknaapen.fladder.composables.shared.CurrentTime import nl.jknaapen.fladder.objects.PlayerSettingsObject import nl.jknaapen.fladder.objects.VideoPlayerObject @@ -359,6 +360,7 @@ fun CustomVideoControls( } SegmentSkipOverlay() SeekOverlay(value = currentSkipTime) + SyncPlayCommandOverlay() if (buffering && !playing) { CircularProgressIndicator( modifier = Modifier diff --git a/android/app/src/main/kotlin/nl/jknaapen/fladder/composables/overlays/SyncPlayCommandOverlay.kt b/android/app/src/main/kotlin/nl/jknaapen/fladder/composables/overlays/SyncPlayCommandOverlay.kt new file mode 100644 index 000000000..81b6ed14d --- /dev/null +++ b/android/app/src/main/kotlin/nl/jknaapen/fladder/composables/overlays/SyncPlayCommandOverlay.kt @@ -0,0 +1,158 @@ +package nl.jknaapen.fladder.composables.overlays + +import androidx.compose.animation.AnimatedVisibility +import androidx.compose.animation.fadeIn +import androidx.compose.animation.fadeOut +import androidx.compose.animation.scaleIn +import androidx.compose.animation.scaleOut +import androidx.compose.foundation.background +import androidx.compose.foundation.border +import androidx.compose.foundation.layout.Arrangement +import androidx.compose.foundation.layout.Box +import androidx.compose.foundation.layout.BoxScope +import androidx.compose.foundation.layout.Column +import androidx.compose.foundation.layout.Row +import androidx.compose.foundation.layout.Spacer +import androidx.compose.foundation.layout.height +import androidx.compose.foundation.layout.padding +import androidx.compose.foundation.layout.size +import androidx.compose.foundation.layout.width +import androidx.compose.foundation.shape.CircleShape +import androidx.compose.foundation.shape.RoundedCornerShape +import androidx.compose.material3.CircularProgressIndicator +import androidx.compose.material3.Icon +import androidx.compose.material3.MaterialTheme +import androidx.compose.material3.Text +import androidx.compose.runtime.Composable +import androidx.compose.runtime.collectAsState +import androidx.compose.runtime.getValue +import androidx.compose.ui.Alignment +import androidx.compose.ui.Modifier +import androidx.compose.ui.draw.shadow +import androidx.compose.ui.graphics.Color +import androidx.compose.ui.text.font.FontWeight +import androidx.compose.ui.unit.dp +import io.github.rabehx.iconsax.Iconsax +import io.github.rabehx.iconsax.filled.Forward +import io.github.rabehx.iconsax.filled.Pause +import io.github.rabehx.iconsax.filled.Play +import io.github.rabehx.iconsax.filled.Refresh +import io.github.rabehx.iconsax.filled.Stop +import nl.jknaapen.fladder.objects.Localized +import nl.jknaapen.fladder.objects.VideoPlayerObject + +/** + * Centered overlay showing SyncPlay command being processed. + * Mirrors the Flutter SyncPlayCommandIndicator design. + */ +@Composable +fun BoxScope.SyncPlayCommandOverlay( + modifier: Modifier = Modifier +) { + val syncPlayState by VideoPlayerObject.syncPlayCommandState.collectAsState() + val visible = syncPlayState.processing && syncPlayState.commandType != null + + AnimatedVisibility( + visible = visible, + modifier = modifier.align(Alignment.Center), + enter = fadeIn() + scaleIn(initialScale = 0.8f), + exit = fadeOut() + scaleOut(targetScale = 0.8f) + ) { + Box( + modifier = Modifier + .shadow( + elevation = 20.dp, + shape = RoundedCornerShape(20.dp), + ambientColor = Color.Black.copy(alpha = 0.3f), + spotColor = Color.Black.copy(alpha = 0.3f) + ) + .background( + color = MaterialTheme.colorScheme.surface.copy(alpha = 0.9f), + shape = RoundedCornerShape(20.dp) + ) + .border( + width = 2.dp, + color = MaterialTheme.colorScheme.primary.copy(alpha = 0.5f), + shape = RoundedCornerShape(20.dp) + ) + .padding(24.dp) + ) { + Column( + horizontalAlignment = Alignment.CenterHorizontally, + verticalArrangement = Arrangement.Center + ) { + CommandIcon(commandType = syncPlayState.commandType) + + Spacer(modifier = Modifier.height(12.dp)) + + Text( + text = getCommandLabel(syncPlayState.commandType), + style = MaterialTheme.typography.titleMedium.copy( + fontWeight = FontWeight.SemiBold, + color = MaterialTheme.colorScheme.onSurface + ) + ) + + Spacer(modifier = Modifier.height(4.dp)) + + Row( + verticalAlignment = Alignment.CenterVertically, + horizontalArrangement = Arrangement.Center + ) { + CircularProgressIndicator( + modifier = Modifier.size(12.dp), + strokeWidth = 2.dp, + color = MaterialTheme.colorScheme.primary + ) + + Spacer(modifier = Modifier.width(8.dp)) + + Text( + text = Localized.syncPlaySyncingWithGroup(), + style = MaterialTheme.typography.bodySmall.copy( + color = MaterialTheme.colorScheme.onSurfaceVariant + ) + ) + } + } + } + } +} + +@Composable +private fun CommandIcon(commandType: String?) { + val (icon, color) = when (commandType) { + "Pause" -> Pair(Iconsax.Filled.Pause, MaterialTheme.colorScheme.secondary) + "Unpause" -> Pair(Iconsax.Filled.Play, MaterialTheme.colorScheme.primary) + "Seek" -> Pair(Iconsax.Filled.Forward, MaterialTheme.colorScheme.tertiary) + "Stop" -> Pair(Iconsax.Filled.Stop, MaterialTheme.colorScheme.error) + else -> Pair(Iconsax.Filled.Refresh, MaterialTheme.colorScheme.primary) + } + + Box( + modifier = Modifier + .background( + color = color.copy(alpha = 0.15f), + shape = CircleShape + ) + .padding(16.dp), + contentAlignment = Alignment.Center + ) { + Icon( + imageVector = icon, + contentDescription = commandType ?: "Syncing", + modifier = Modifier.size(48.dp), + tint = color + ) + } +} + +private fun getCommandLabel(commandType: String?): String { + return when (commandType) { + "Pause" -> Localized.syncPlayCommandPausing() + "Unpause" -> Localized.syncPlayCommandPlaying() + "Seek" -> Localized.syncPlayCommandSeeking() + "Stop" -> Localized.syncPlayCommandStopping() + else -> Localized.syncPlayCommandSyncing() + } +} diff --git a/android/app/src/main/kotlin/nl/jknaapen/fladder/messengers/VideoPlayerImplementation.kt b/android/app/src/main/kotlin/nl/jknaapen/fladder/messengers/VideoPlayerImplementation.kt index 90245e790..2d643c854 100644 --- a/android/app/src/main/kotlin/nl/jknaapen/fladder/messengers/VideoPlayerImplementation.kt +++ b/android/app/src/main/kotlin/nl/jknaapen/fladder/messengers/VideoPlayerImplementation.kt @@ -142,6 +142,10 @@ class VideoPlayerImplementation( player?.stop() } + override fun setSyncPlayCommandState(processing: Boolean, commandType: String?) { + VideoPlayerObject.setSyncPlayCommandState(processing, commandType) + } + fun init(exoPlayer: ExoPlayer?) { player = exoPlayer //exoPlayer initializes after the playbackData is set for the first load diff --git a/android/app/src/main/kotlin/nl/jknaapen/fladder/objects/VideoPlayerObject.kt b/android/app/src/main/kotlin/nl/jknaapen/fladder/objects/VideoPlayerObject.kt index 1f335ae51..82ecb7da3 100644 --- a/android/app/src/main/kotlin/nl/jknaapen/fladder/objects/VideoPlayerObject.kt +++ b/android/app/src/main/kotlin/nl/jknaapen/fladder/objects/VideoPlayerObject.kt @@ -104,5 +104,17 @@ object VideoPlayerObject { guideVisible.value = !guideVisible.value } + // SyncPlay command state for overlay + data class SyncPlayCommandState( + val processing: Boolean = false, + val commandType: String? = null + ) + + val syncPlayCommandState = MutableStateFlow(SyncPlayCommandState()) + + fun setSyncPlayCommandState(processing: Boolean, commandType: String?) { + syncPlayCommandState.value = SyncPlayCommandState(processing, commandType) + } + var currentActivity: VideoPlayerActivity? = null } \ No newline at end of file diff --git a/lib/models/library_filter_model.g.dart b/lib/models/library_filter_model.g.dart index 3963db9b2..e13400c10 100644 --- a/lib/models/library_filter_model.g.dart +++ b/lib/models/library_filter_model.g.dart @@ -118,6 +118,7 @@ const _$FladderItemTypeEnumMap = { FladderItemType.boxset: 'boxset', FladderItemType.playlist: 'playlist', FladderItemType.book: 'book', + FladderItemType.tvchannel: 'tvchannel', }; const _$SortingOptionsEnumMap = { diff --git a/lib/providers/items/channel_details_provider.g.dart b/lib/providers/items/channel_details_provider.g.dart index 41c638e18..c181b3d5f 100644 --- a/lib/providers/items/channel_details_provider.g.dart +++ b/lib/providers/items/channel_details_provider.g.dart @@ -6,7 +6,7 @@ part of 'channel_details_provider.dart'; // RiverpodGenerator // ************************************************************************** -String _$channelDetailsHash() => r'ddc6eb0b059c7e6be3c1c97b113a3a41ced2442f'; +String _$channelDetailsHash() => r'0ea922807f6d864b041ba827ad02039c709ab810'; /// Copied from Dart SDK class _SystemHash { diff --git a/lib/providers/items/movies_details_provider.g.dart b/lib/providers/items/movies_details_provider.g.dart index 3132d9435..0820102da 100644 --- a/lib/providers/items/movies_details_provider.g.dart +++ b/lib/providers/items/movies_details_provider.g.dart @@ -6,7 +6,7 @@ part of 'movies_details_provider.dart'; // RiverpodGenerator // ************************************************************************** -String _$movieDetailsHash() => r'8ee6f9709112e86914800b29c7f269f12afecc92'; +String _$movieDetailsHash() => r'82f07f95ee66d836ddf6f18c731408b094c111c5'; /// Copied from Dart SDK class _SystemHash { @@ -29,7 +29,8 @@ class _SystemHash { } } -abstract class _$MovieDetails extends BuildlessAutoDisposeNotifier { +abstract class _$MovieDetails + extends BuildlessAutoDisposeNotifier { late final String arg; MovieModel? build( @@ -72,14 +73,16 @@ class MovieDetailsFamily extends Family { static const Iterable? _allTransitiveDependencies = null; @override - Iterable? get allTransitiveDependencies => _allTransitiveDependencies; + Iterable? get allTransitiveDependencies => + _allTransitiveDependencies; @override String? get name => r'movieDetailsProvider'; } /// See also [MovieDetails]. -class MovieDetailsProvider extends AutoDisposeNotifierProviderImpl { +class MovieDetailsProvider + extends AutoDisposeNotifierProviderImpl { /// See also [MovieDetails]. MovieDetailsProvider( String arg, @@ -87,9 +90,13 @@ class MovieDetailsProvider extends AutoDisposeNotifierProviderImpl MovieDetails()..arg = arg, from: movieDetailsProvider, name: r'movieDetailsProvider', - debugGetCreateSourceHash: const bool.fromEnvironment('dart.vm.product') ? null : _$movieDetailsHash, + debugGetCreateSourceHash: + const bool.fromEnvironment('dart.vm.product') + ? null + : _$movieDetailsHash, dependencies: MovieDetailsFamily._dependencies, - allTransitiveDependencies: MovieDetailsFamily._allTransitiveDependencies, + allTransitiveDependencies: + MovieDetailsFamily._allTransitiveDependencies, arg: arg, ); @@ -131,7 +138,8 @@ class MovieDetailsProvider extends AutoDisposeNotifierProviderImpl createElement() { + AutoDisposeNotifierProviderElement + createElement() { return _MovieDetailsProviderElement(this); } @@ -156,7 +164,8 @@ mixin MovieDetailsRef on AutoDisposeNotifierProviderRef { String get arg; } -class _MovieDetailsProviderElement extends AutoDisposeNotifierProviderElement +class _MovieDetailsProviderElement + extends AutoDisposeNotifierProviderElement with MovieDetailsRef { _MovieDetailsProviderElement(super.provider); diff --git a/lib/providers/library_screen_provider.g.dart b/lib/providers/library_screen_provider.g.dart index a0ab318fb..0684c20e4 100644 --- a/lib/providers/library_screen_provider.g.dart +++ b/lib/providers/library_screen_provider.g.dart @@ -6,7 +6,7 @@ part of 'library_screen_provider.dart'; // RiverpodGenerator // ************************************************************************** -String _$libraryScreenHash() => r'9d0bfcf91dc61fac7e7960758d713113991604e2'; +String _$libraryScreenHash() => r'a436b76bb61f67ad24f86d0b80d63cbb29630220'; /// See also [LibraryScreen]. @ProviderFor(LibraryScreen) diff --git a/lib/providers/live_tv_provider.g.dart b/lib/providers/live_tv_provider.g.dart index 972ca3c4a..42a76e9aa 100644 --- a/lib/providers/live_tv_provider.g.dart +++ b/lib/providers/live_tv_provider.g.dart @@ -6,7 +6,7 @@ part of 'live_tv_provider.dart'; // RiverpodGenerator // ************************************************************************** -String _$liveTvHash() => r'6a05d12da523128e03bc4848653332bc1053510b'; +String _$liveTvHash() => r'06fb75eeafd5f2d1bc860c2da7b7ca493a58d743'; /// See also [LiveTv]. @ProviderFor(LiveTv) diff --git a/lib/providers/syncplay/syncplay_provider.g.dart b/lib/providers/syncplay/syncplay_provider.g.dart index 60e01b63a..1a0eccbb8 100644 --- a/lib/providers/syncplay/syncplay_provider.g.dart +++ b/lib/providers/syncplay/syncplay_provider.g.dart @@ -65,7 +65,7 @@ final syncPlayGroupStateProvider = @Deprecated('Will be removed in 3.0. Use Ref instead') // ignore: unused_element typedef SyncPlayGroupStateRef = AutoDisposeProviderRef; -String _$syncPlayHash() => r'68d7ca7693ac5d32cf339d6c3fac0577f909893c'; +String _$syncPlayHash() => r'a5c53eed3cf0d94ea3b1601a0d11c17d58bb3e41'; /// Provider for SyncPlay controller instance /// diff --git a/lib/providers/video_player_provider.dart b/lib/providers/video_player_provider.dart index d8c0c0f3d..32298ae37 100644 --- a/lib/providers/video_player_provider.dart +++ b/lib/providers/video_player_provider.dart @@ -1,11 +1,6 @@ import 'dart:async'; import 'dart:io'; -import 'package:flutter/material.dart'; - -import 'package:flutter_riverpod/flutter_riverpod.dart'; -import 'package:path/path.dart' as p; - import 'package:fladder/models/media_playback_model.dart'; import 'package:fladder/models/playback/playback_model.dart'; import 'package:fladder/models/syncplay/syncplay_models.dart'; @@ -89,9 +84,32 @@ class VideoPlayerNotifier extends StateNotifier { // Register player callbacks with SyncPlay _registerSyncPlayCallbacks(); + + // Listen to SyncPlay state changes for native player overlay + _setupSyncPlayStateListener(); }); } + /// Set up listener to forward SyncPlay command state to native player + void _setupSyncPlayStateListener() { + ref.listen( + syncPlayProvider, + (previous, next) { + // Only forward to native player if it's active + if (state.isNativePlayerActive) { + // Check if the relevant state changed + if (previous?.isProcessingCommand != next.isProcessingCommand || + previous?.processingCommandType != next.processingCommandType) { + state.updateSyncPlayCommandState( + next.isProcessingCommand, + next.processingCommandType, + ); + } + } + }, + ); + } + /// Manually set the reloading state (e.g. before fetching new PlaybackInfo) void setReloading(bool value) { _isReloading = value; diff --git a/lib/screens/video_player/components/video_progress_bar.dart b/lib/screens/video_player/components/video_progress_bar.dart index 44a3d6da3..4b1fdb82f 100644 --- a/lib/screens/video_player/components/video_progress_bar.dart +++ b/lib/screens/video_player/components/video_progress_bar.dart @@ -1,9 +1,5 @@ import 'dart:math' as math; -import 'package:flutter/material.dart'; - -import 'package:flutter_riverpod/flutter_riverpod.dart'; - import 'package:fladder/models/items/chapters_model.dart'; import 'package:fladder/models/items/media_segments_model.dart'; import 'package:fladder/providers/video_player_provider.dart'; @@ -13,6 +9,8 @@ import 'package:fladder/util/string_extensions.dart'; import 'package:fladder/widgets/gapped_container_shape.dart'; import 'package:fladder/widgets/shared/fladder_slider.dart'; import 'package:fladder/widgets/shared/trick_play_image.dart'; +import 'package:flutter/material.dart'; +import 'package:flutter_riverpod/flutter_riverpod.dart'; class VideoProgressBar extends ConsumerStatefulWidget { final Function(bool value) wasPlayingChanged; @@ -36,7 +34,8 @@ class VideoProgressBar extends ConsumerStatefulWidget { }); @override - ConsumerState createState() => _ChapterProgressSliderState(); + ConsumerState createState() => + _ChapterProgressSliderState(); } class _ChapterProgressSliderState extends ConsumerState { @@ -49,17 +48,22 @@ class _ChapterProgressSliderState extends ConsumerState { @override Widget build(BuildContext context) { - final List chapters = ref.read(playBackModel.select((value) => value?.chapters ?? [])); + final List chapters = + ref.read(playBackModel.select((value) => value?.chapters ?? [])); final isVisible = (onDragStart ? true : onHoverStart); final player = ref.watch(videoPlayerProvider); final position = onDragStart ? currentDuration : widget.position; - final MediaSegmentsModel? mediaSegments = ref.read(playBackModel.select((value) => value?.mediaSegments)); - final relativeFraction = position.inMilliseconds / widget.duration.inMilliseconds; + final MediaSegmentsModel? mediaSegments = + ref.read(playBackModel.select((value) => value?.mediaSegments)); + final relativeFraction = + position.inMilliseconds / widget.duration.inMilliseconds; return LayoutBuilder( builder: (context, constraints) { - final sliderHeight = SliderTheme.of(context).trackHeight ?? (constraints.maxHeight / 3); + final sliderHeight = + SliderTheme.of(context).trackHeight ?? (constraints.maxHeight / 3); final bufferWidth = calculateFractionWidth(constraints, widget.buffer); - final bufferFraction = relativeFraction / (bufferWidth / constraints.maxWidth); + final bufferFraction = + relativeFraction / (bufferWidth / constraints.maxWidth); return Stack( clipBehavior: Clip.none, children: [ @@ -70,7 +74,8 @@ class _ChapterProgressSliderState extends ConsumerState { onHover: (event) { setState(() { onHoverStart = true; - _updateSliderPosition(event.localPosition.dx, constraints.maxWidth); + _updateSliderPosition( + event.localPosition.dx, constraints.maxWidth); }); }, onExit: (event) { @@ -82,11 +87,13 @@ class _ChapterProgressSliderState extends ConsumerState { onPointerDown: (event) { setState(() { onDragStart = true; - _updateSliderPosition(event.localPosition.dx, constraints.maxWidth); + _updateSliderPosition( + event.localPosition.dx, constraints.maxWidth); }); }, onPointerMove: (event) { - _updateSliderPosition(event.localPosition.dx, constraints.maxWidth); + _updateSliderPosition( + event.localPosition.dx, constraints.maxWidth); }, onPointerUp: (_) { setState(() { @@ -108,8 +115,10 @@ class _ChapterProgressSliderState extends ConsumerState { onChangeEnd: (e) async { currentDuration = Duration(milliseconds: e.toInt()); // Route seek through SyncPlay if active - widget.onPositionChanged(Duration(milliseconds: e.toInt())); - widget.onPositionChanged.call(Duration(milliseconds: e.toInt())); + widget.onPositionChanged( + Duration(milliseconds: e.toInt())); + widget.onPositionChanged + .call(Duration(milliseconds: e.toInt())); await Future.delayed(const Duration(milliseconds: 250)); if (widget.wasPlaying) { // Route play through SyncPlay if active @@ -124,7 +133,8 @@ class _ChapterProgressSliderState extends ConsumerState { setState(() { onHoverStart = true; }); - widget.wasPlayingChanged.call(player.lastState?.playing ?? false); + widget.wasPlayingChanged + .call(player.lastState?.playing ?? false); // Route pause through SyncPlay if active ref.read(videoPlayerProvider.notifier).userPause(); }, @@ -162,12 +172,20 @@ class _ChapterProgressSliderState extends ConsumerState { Positioned( left: 0, child: SizedBox( - width: (constraints.maxWidth / (widget.duration.inMilliseconds / widget.buffer.inMilliseconds)) + width: (constraints.maxWidth / + (widget.duration.inMilliseconds / + widget.buffer.inMilliseconds)) .clamp(1, constraints.maxWidth), height: sliderHeight, child: GappedContainerShape( - activeColor: Theme.of(context).colorScheme.primary.withValues(alpha: 0.5), - inActiveColor: Theme.of(context).colorScheme.primary.withValues(alpha: 0.5), + activeColor: Theme.of(context) + .colorScheme + .primary + .withValues(alpha: 0.5), + inActiveColor: Theme.of(context) + .colorScheme + .primary + .withValues(alpha: 0.5), thumbPosition: bufferFraction, ), ), @@ -187,9 +205,11 @@ class _ChapterProgressSliderState extends ConsumerState { ...chapters.map( (chapter) { final offset = constraints.maxWidth / - (widget.duration.inMilliseconds / chapter.startPosition.inMilliseconds) + (widget.duration.inMilliseconds / + chapter.startPosition.inMilliseconds) .clamp(1, constraints.maxWidth); - final activePosition = chapter.startPosition < widget.position; + final activePosition = + chapter.startPosition < widget.position; if (chapter.startPosition.inSeconds == 0) return null; return Positioned( left: offset, @@ -199,7 +219,10 @@ class _ChapterProgressSliderState extends ConsumerState { shape: BoxShape.circle, color: activePosition ? Theme.of(context).colorScheme.onPrimary - : Theme.of(context).colorScheme.onSurface.withValues(alpha: 0.5), + : Theme.of(context) + .colorScheme + .onSurface + .withValues(alpha: 0.5), ), height: constraints.maxHeight, width: sliderHeight - (activePosition ? 2 : 4), @@ -215,7 +238,9 @@ class _ChapterProgressSliderState extends ConsumerState { if (!widget.buffering) ...[ chapterCard(context, position, isVisible), Positioned( - left: (constraints.maxWidth / (widget.duration.inMilliseconds / position.inMilliseconds)) + left: (constraints.maxWidth / + (widget.duration.inMilliseconds / + position.inMilliseconds)) .clamp(1, constraints.maxWidth), child: Transform.translate( offset: Offset(-(constraints.maxHeight / 2), 0), @@ -249,15 +274,20 @@ class _ChapterProgressSliderState extends ConsumerState { } double calculateFractionWidth(BoxConstraints constraints, Duration incoming) { - return (constraints.maxWidth * (incoming.inSeconds / widget.duration.inSeconds)).clamp(0, constraints.maxWidth); + return (constraints.maxWidth * + (incoming.inSeconds / widget.duration.inSeconds)) + .clamp(0, constraints.maxWidth); } double calculateStartOffset(BoxConstraints constraints, Duration start) { - return (constraints.maxWidth * (start.inSeconds / widget.duration.inSeconds)).clamp(0, constraints.maxWidth); + return (constraints.maxWidth * + (start.inSeconds / widget.duration.inSeconds)) + .clamp(0, constraints.maxWidth); } double calculateEndOffset(BoxConstraints constraints, Duration end) { - return (constraints.maxWidth * (end.inSeconds / widget.duration.inSeconds)).clamp(0, constraints.maxWidth); + return (constraints.maxWidth * (end.inSeconds / widget.duration.inSeconds)) + .clamp(0, constraints.maxWidth); } double calculateRightOffset(BoxConstraints constraints, Duration end) { @@ -268,19 +298,22 @@ class _ChapterProgressSliderState extends ConsumerState { Widget chapterCard(BuildContext context, Duration duration, bool visible) { const double height = 350; final currentStream = ref.watch(playBackModel.select((value) => value)); - final chapter = (currentStream?.chapters ?? []).getChapterFromDuration(currentDuration); + final chapter = + (currentStream?.chapters ?? []).getChapterFromDuration(currentDuration); final trickPlay = currentStream?.trickPlay; final screenWidth = MediaQuery.of(context).size.width; final calculatedPosition = _chapterPosition; final offsetDifference = _chapterPosition - calculatedPosition; return Positioned( - left: calculatedPosition.clamp(-10, screenWidth - (chapterCardWidth + 45)), + left: + calculatedPosition.clamp(-10, screenWidth - (chapterCardWidth + 45)), child: IgnorePointer( child: AnimatedOpacity( opacity: visible ? 1 : 0, duration: const Duration(milliseconds: 250), child: ConstrainedBox( - constraints: BoxConstraints(maxHeight: height, maxWidth: chapterCardWidth), + constraints: + BoxConstraints(maxHeight: height, maxWidth: chapterCardWidth), child: Transform.translate( offset: const Offset(0, -height - 10), child: Align( @@ -299,8 +332,10 @@ class _ChapterProgressSliderState extends ConsumerState { child: ConstrainedBox( constraints: const BoxConstraints(maxHeight: 250), child: ClipRRect( - borderRadius: const BorderRadius.all(Radius.circular(8)), - child: trickPlay == null || trickPlay.images.isEmpty + borderRadius: + const BorderRadius.all(Radius.circular(8)), + child: trickPlay == null || + trickPlay.images.isEmpty ? chapter != null ? Image( image: chapter.imageProvider, @@ -308,7 +343,8 @@ class _ChapterProgressSliderState extends ConsumerState { ) : const SizedBox.shrink() : AspectRatio( - aspectRatio: trickPlay.width.toDouble() / trickPlay.height.toDouble(), + aspectRatio: trickPlay.width.toDouble() / + trickPlay.height.toDouble(), child: TrickPlayImage( trickPlay, position: currentDuration, @@ -328,7 +364,8 @@ class _ChapterProgressSliderState extends ConsumerState { height: 30, width: 30, decoration: BoxDecoration( - color: Theme.of(context).colorScheme.surface, + color: + Theme.of(context).colorScheme.surface, borderRadius: BorderRadius.circular(8), ), ), @@ -343,7 +380,8 @@ class _ChapterProgressSliderState extends ConsumerState { padding: const EdgeInsets.all(8.0), child: Row( mainAxisSize: MainAxisSize.max, - mainAxisAlignment: MainAxisAlignment.spaceBetween, + mainAxisAlignment: + MainAxisAlignment.spaceBetween, children: [ if (chapter?.name.isNotEmpty ?? false) Flexible( @@ -352,14 +390,18 @@ class _ChapterProgressSliderState extends ConsumerState { style: Theme.of(context) .textTheme .titleSmall - ?.copyWith(fontWeight: FontWeight.bold), + ?.copyWith( + fontWeight: FontWeight.bold), ), ), Text( currentDuration.readAbleDuration, textAlign: TextAlign.center, - style: - Theme.of(context).textTheme.titleSmall?.copyWith(fontWeight: FontWeight.bold), + style: Theme.of(context) + .textTheme + .titleSmall + ?.copyWith( + fontWeight: FontWeight.bold), ) ], ), @@ -384,7 +426,8 @@ class _ChapterProgressSliderState extends ConsumerState { setState(() { _chapterPosition = xPosition - chapterCardWidth / 2; final value = ((maxWidth - xPosition) / maxWidth - 1).abs(); - currentDuration = Duration(milliseconds: (widget.duration.inMilliseconds * value).toInt()); + currentDuration = Duration( + milliseconds: (widget.duration.inMilliseconds * value).toInt()); }); } } diff --git a/lib/screens/video_player/tv_player_controls.dart b/lib/screens/video_player/tv_player_controls.dart index 4116db26e..2d2319f0f 100644 --- a/lib/screens/video_player/tv_player_controls.dart +++ b/lib/screens/video_player/tv_player_controls.dart @@ -34,7 +34,9 @@ import 'package:fladder/util/adaptive_layout/adaptive_layout.dart'; import 'package:fladder/util/duration_extensions.dart'; import 'package:fladder/util/input_handler.dart'; import 'package:fladder/util/localization_helper.dart'; +import 'package:fladder/screens/video_player/components/syncplay_command_indicator.dart'; import 'package:fladder/widgets/full_screen_helpers/full_screen_wrapper.dart'; +import 'package:fladder/widgets/syncplay/syncplay_badge.dart'; class TvPlayerControls extends ConsumerStatefulWidget { final Function(bool value) showGuide; @@ -126,6 +128,7 @@ class _TvPlayerControlsState extends ConsumerState { const VideoPlayerSeekIndicator(), const VideoPlayerVolumeIndicator(), const VideoPlayerScreenshotIndicator(), + const SyncPlayCommandIndicator(), ], ), ), @@ -205,6 +208,7 @@ class _TvPlayerControlsState extends ConsumerState { ], ), ), + const SyncPlayBadge(), if (initInputDevice == InputDevice.touch) Align( alignment: Alignment.centerRight, diff --git a/lib/src/translations_pigeon.g.dart b/lib/src/translations_pigeon.g.dart index a68570968..7ffd04d29 100644 --- a/lib/src/translations_pigeon.g.dart +++ b/lib/src/translations_pigeon.g.dart @@ -73,6 +73,18 @@ abstract class TranslationsPigeon { String decline(); + String syncPlaySyncingWithGroup(); + + String syncPlayCommandPausing(); + + String syncPlayCommandPlaying(); + + String syncPlayCommandSeeking(); + + String syncPlayCommandStopping(); + + String syncPlayCommandSyncing(); + static void setUp(TranslationsPigeon? api, {BinaryMessenger? binaryMessenger, String messageChannelSuffix = '',}) { messageChannelSuffix = messageChannelSuffix.isNotEmpty ? '.$messageChannelSuffix' : ''; { @@ -399,5 +411,119 @@ abstract class TranslationsPigeon { }); } } + { + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.nl_jknaapen_fladder.settings.TranslationsPigeon.syncPlaySyncingWithGroup$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); + if (api == null) { + pigeonVar_channel.setMessageHandler(null); + } else { + pigeonVar_channel.setMessageHandler((Object? message) async { + try { + final String output = api.syncPlaySyncingWithGroup(); + return wrapResponse(result: output); + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } + }); + } + } + { + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.nl_jknaapen_fladder.settings.TranslationsPigeon.syncPlayCommandPausing$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); + if (api == null) { + pigeonVar_channel.setMessageHandler(null); + } else { + pigeonVar_channel.setMessageHandler((Object? message) async { + try { + final String output = api.syncPlayCommandPausing(); + return wrapResponse(result: output); + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } + }); + } + } + { + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.nl_jknaapen_fladder.settings.TranslationsPigeon.syncPlayCommandPlaying$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); + if (api == null) { + pigeonVar_channel.setMessageHandler(null); + } else { + pigeonVar_channel.setMessageHandler((Object? message) async { + try { + final String output = api.syncPlayCommandPlaying(); + return wrapResponse(result: output); + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } + }); + } + } + { + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.nl_jknaapen_fladder.settings.TranslationsPigeon.syncPlayCommandSeeking$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); + if (api == null) { + pigeonVar_channel.setMessageHandler(null); + } else { + pigeonVar_channel.setMessageHandler((Object? message) async { + try { + final String output = api.syncPlayCommandSeeking(); + return wrapResponse(result: output); + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } + }); + } + } + { + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.nl_jknaapen_fladder.settings.TranslationsPigeon.syncPlayCommandStopping$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); + if (api == null) { + pigeonVar_channel.setMessageHandler(null); + } else { + pigeonVar_channel.setMessageHandler((Object? message) async { + try { + final String output = api.syncPlayCommandStopping(); + return wrapResponse(result: output); + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } + }); + } + } + { + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + 'dev.flutter.pigeon.nl_jknaapen_fladder.settings.TranslationsPigeon.syncPlayCommandSyncing$messageChannelSuffix', pigeonChannelCodec, + binaryMessenger: binaryMessenger); + if (api == null) { + pigeonVar_channel.setMessageHandler(null); + } else { + pigeonVar_channel.setMessageHandler((Object? message) async { + try { + final String output = api.syncPlayCommandSyncing(); + return wrapResponse(result: output); + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); + } + }); + } + } } } diff --git a/lib/src/video_player_helper.g.dart b/lib/src/video_player_helper.g.dart index 9a0152099..8b962e89f 100644 --- a/lib/src/video_player_helper.g.dart +++ b/lib/src/video_player_helper.g.dart @@ -974,11 +974,11 @@ class _PigeonCodec extends StandardMessageCodec { return StartResult.decode(readValue(buffer)!); case 140: return PlaybackState.decode(readValue(buffer)!); - case 141: + case 141: return TVGuideModel.decode(readValue(buffer)!); - case 142: + case 142: return GuideChannel.decode(readValue(buffer)!); - case 143: + case 143: return GuideProgram.decode(readValue(buffer)!); default: return super.readValueOfType(type, buffer); @@ -1340,6 +1340,32 @@ class VideoPlayerApi { return; } } + + /// Sets the SyncPlay command state for the native player overlay. + /// [processing] indicates if a SyncPlay command is being processed. + /// [commandType] is the type of command (e.g., "Pause", "Unpause", "Seek", "Stop"). + Future setSyncPlayCommandState(bool processing, String? commandType) async { + final String pigeonVar_channelName = 'dev.flutter.pigeon.nl_jknaapen_fladder.video.VideoPlayerApi.setSyncPlayCommandState$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( + pigeonVar_channelName, + pigeonChannelCodec, + binaryMessenger: pigeonVar_binaryMessenger, + ); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([processing, commandType]); + final List? pigeonVar_replyList = + await pigeonVar_sendFuture as List?; + if (pigeonVar_replyList == null) { + throw _createConnectionError(pigeonVar_channelName); + } else if (pigeonVar_replyList.length > 1) { + throw PlatformException( + code: pigeonVar_replyList[0]! as String, + message: pigeonVar_replyList[1] as String?, + details: pigeonVar_replyList[2], + ); + } else { + return; + } + } } abstract class VideoPlayerListenerCallback { diff --git a/lib/util/localization_helper.dart b/lib/util/localization_helper.dart index 8306bcccb..bc9da9116 100644 --- a/lib/util/localization_helper.dart +++ b/lib/util/localization_helper.dart @@ -116,4 +116,23 @@ class _TranslationsMessgener extends messenger.TranslationsPigeon { @override String watch() => context.localized.watch; + + // SyncPlay overlay strings + @override + String syncPlaySyncingWithGroup() => context.localized.syncPlaySyncingWithGroup; + + @override + String syncPlayCommandPausing() => context.localized.syncPlayCommandPausing; + + @override + String syncPlayCommandPlaying() => context.localized.syncPlayCommandPlaying; + + @override + String syncPlayCommandSeeking() => context.localized.syncPlayCommandSeeking; + + @override + String syncPlayCommandStopping() => context.localized.syncPlayCommandStopping; + + @override + String syncPlayCommandSyncing() => context.localized.syncPlayCommandSyncing; } diff --git a/lib/wrappers/media_control_wrapper.dart b/lib/wrappers/media_control_wrapper.dart index 698706711..5228be7f9 100644 --- a/lib/wrappers/media_control_wrapper.dart +++ b/lib/wrappers/media_control_wrapper.dart @@ -117,6 +117,16 @@ class MediaControlsWrapper extends BaseAudioHandler implements VideoPlayerContro } } + /// Check if the native Android player is currently active + bool get isNativePlayerActive => _player is NativePlayer; + + /// Update SyncPlay command state for the native player overlay + Future updateSyncPlayCommandState(bool processing, String? commandType) async { + if (_player is NativePlayer) { + await (_player as NativePlayer).player.setSyncPlayCommandState(processing, commandType); + } + } + Future openPlayer(BuildContext context) async => _player?.open(context); void _subscribePlayer() { diff --git a/pigeons/translations_pigeon.dart b/pigeons/translations_pigeon.dart index 52b136937..4fe214d7f 100644 --- a/pigeons/translations_pigeon.dart +++ b/pigeons/translations_pigeon.dart @@ -34,4 +34,12 @@ abstract class TranslationsPigeon { String watch(); String now(); String decline(); + + // SyncPlay overlay strings + String syncPlaySyncingWithGroup(); + String syncPlayCommandPausing(); + String syncPlayCommandPlaying(); + String syncPlayCommandSeeking(); + String syncPlayCommandStopping(); + String syncPlayCommandSyncing(); } diff --git a/pigeons/video_player.dart b/pigeons/video_player.dart index 884bf2458..c8d153179 100644 --- a/pigeons/video_player.dart +++ b/pigeons/video_player.dart @@ -4,7 +4,8 @@ import 'package:pigeon/pigeon.dart'; PigeonOptions( dartOut: 'lib/src/video_player_helper.g.dart', dartOptions: DartOptions(), - kotlinOut: 'android/app/src/main/kotlin/nl/jknaapen/fladder/api/VideoPlayerHelper.g.kt', + kotlinOut: + 'android/app/src/main/kotlin/nl/jknaapen/fladder/api/VideoPlayerHelper.g.kt', kotlinOptions: KotlinOptions(), dartPackageName: 'nl_jknaapen_fladder.video', ), @@ -211,6 +212,11 @@ abstract class VideoPlayerApi { void seekTo(int position); void stop(); + + /// Sets the SyncPlay command state for the native player overlay. + /// [processing] indicates if a SyncPlay command is being processed. + /// [commandType] is the type of command (e.g., "Pause", "Unpause", "Seek", "Stop"). + void setSyncPlayCommandState(bool processing, String? commandType); } class PlaybackState { From cffcccc67e245aa2264549bc5f3dbf83ab3f4cd9 Mon Sep 17 00:00:00 2001 From: Filip Iricanin Date: Tue, 3 Feb 2026 00:29:41 +0100 Subject: [PATCH 15/25] feat: localize SyncPlay command overlay labels - Implement the `Translate` wrapper in `SyncPlayCommandOverlay` to handle asynchronous localization for command labels (Pause, Unpause, Seek, Stop, and Syncing). - Update the "Syncing with group" status text to use the new translation callback mechanism. - Remove the static `getCommandLabel` helper in favor of inline localized callbacks. --- .../overlays/SyncPlayCommandOverlay.kt | 47 +++++++++++-------- 1 file changed, 27 insertions(+), 20 deletions(-) diff --git a/android/app/src/main/kotlin/nl/jknaapen/fladder/composables/overlays/SyncPlayCommandOverlay.kt b/android/app/src/main/kotlin/nl/jknaapen/fladder/composables/overlays/SyncPlayCommandOverlay.kt index 81b6ed14d..bda039dfd 100644 --- a/android/app/src/main/kotlin/nl/jknaapen/fladder/composables/overlays/SyncPlayCommandOverlay.kt +++ b/android/app/src/main/kotlin/nl/jknaapen/fladder/composables/overlays/SyncPlayCommandOverlay.kt @@ -39,6 +39,7 @@ import io.github.rabehx.iconsax.filled.Play import io.github.rabehx.iconsax.filled.Refresh import io.github.rabehx.iconsax.filled.Stop import nl.jknaapen.fladder.objects.Localized +import nl.jknaapen.fladder.objects.Translate import nl.jknaapen.fladder.objects.VideoPlayerObject /** @@ -85,13 +86,26 @@ fun BoxScope.SyncPlayCommandOverlay( Spacer(modifier = Modifier.height(12.dp)) - Text( - text = getCommandLabel(syncPlayState.commandType), - style = MaterialTheme.typography.titleMedium.copy( - fontWeight = FontWeight.SemiBold, - color = MaterialTheme.colorScheme.onSurface + Translate( + callback = { cb -> + when (syncPlayState.commandType) { + "Pause" -> Localized.syncPlayCommandPausing(cb) + "Unpause" -> Localized.syncPlayCommandPlaying(cb) + "Seek" -> Localized.syncPlayCommandSeeking(cb) + "Stop" -> Localized.syncPlayCommandStopping(cb) + else -> Localized.syncPlayCommandSyncing(cb) + } + }, + key = syncPlayState.commandType + ) { label -> + Text( + text = label, + style = MaterialTheme.typography.titleMedium.copy( + fontWeight = FontWeight.SemiBold, + color = MaterialTheme.colorScheme.onSurface + ) ) - ) + } Spacer(modifier = Modifier.height(4.dp)) @@ -107,12 +121,14 @@ fun BoxScope.SyncPlayCommandOverlay( Spacer(modifier = Modifier.width(8.dp)) - Text( - text = Localized.syncPlaySyncingWithGroup(), - style = MaterialTheme.typography.bodySmall.copy( - color = MaterialTheme.colorScheme.onSurfaceVariant + Translate({ Localized.syncPlaySyncingWithGroup(it) }) { syncingText -> + Text( + text = syncingText, + style = MaterialTheme.typography.bodySmall.copy( + color = MaterialTheme.colorScheme.onSurfaceVariant + ) ) - ) + } } } } @@ -147,12 +163,3 @@ private fun CommandIcon(commandType: String?) { } } -private fun getCommandLabel(commandType: String?): String { - return when (commandType) { - "Pause" -> Localized.syncPlayCommandPausing() - "Unpause" -> Localized.syncPlayCommandPlaying() - "Seek" -> Localized.syncPlayCommandSeeking() - "Stop" -> Localized.syncPlayCommandStopping() - else -> Localized.syncPlayCommandSyncing() - } -} From 8db485fa6079514784aa569016cfedea294abb1c Mon Sep 17 00:00:00 2001 From: Filip Iricanin Date: Sun, 22 Feb 2026 11:43:52 +0100 Subject: [PATCH 16/25] feat: improve SyncPlay synchronization and native player state inference This commit refines the SyncPlay implementation by introducing a more robust way to distinguish between user-initiated actions and server-commanded playback changes. It bridges the gap between the native Android player and the Flutter-based SyncPlay controller by tagging playback state updates with their source. Key changes: - **Playback State Inference**: - Added `PlaybackChangeSource` (none, user, syncplay) to the Pigeon API and `PlaybackState` model. - Updated native `ExoPlayer` and `VideoPlayerObject` to track and report whether a state change was triggered by the native UI or a SyncPlay command. - Enhanced `VideoPlayerNotifier` to automatically trigger SyncPlay actions (`userPlay`, `userPause`, `userSeek`) when it detects `PlaybackChangeSource.user` from the native state stream. - **SyncPlay Logic Improvements**: - Introduced `SyncPlayGroups` provider and `SyncPlayGroupsState` (using Freezed) to manage group listing and UI loading states. - Updated `SyncPlayController` and `SyncPlayMessageHandler` to handle "Waiting" and "Playing" states more accurately, ensuring the player recovers if an "Unpause" command is missed. - Improved group lifecycle management: clearing processing states and canceling pending commands when leaving or being kicked from a group to prevent playback from becoming "stuck." - **UI & Extensions**: - Extracted SyncPlay UI logic into `SyncPlayGroupStateExtension` and `SyncPlayCommandLabelExtension` for cleaner, localized badge and indicator rendering. - Refactored `SyncPlayGroupSheet` to use the new `syncPlayGroupsProvider` for better state separation. - Integrated the new `SyncPlayCommandIndicator` and badge logic into the video player overlays. - **Maintenance**: - Updated `web_socket_channel` dependency location and generated files (`syncplay_provider.g.dart`, `VideoPlayerHelper.g.kt`). - Standardized formatting and imports across several provider and model files. --- .../fladder/api/VideoPlayerHelper.g.kt | 84 +- .../composables/controls/ProgressBar.kt | 27 +- .../composables/controls/SkipOverlay.kt | 10 +- .../controls/VideoPlayerControls.kt | 39 +- .../overlays/SyncPlayCommandOverlay.kt | 29 +- .../messengers/VideoPlayerImplementation.kt | 15 +- .../fladder/objects/VideoPlayerObject.kt | 33 +- .../nl/jknaapen/fladder/player/ExoPlayer.kt | 7 +- .../jellyfin_open_api.swagger.chopper.dart | 683 +- lib/jellyfin/jellyfin_open_api.swagger.dart | 11771 +++++----------- lib/jellyfin/jellyfin_open_api.swagger.g.dart | 5848 +++----- lib/models/account_model.freezed.dart | 145 +- lib/models/account_model.g.dart | 41 +- lib/models/boxset_model.mapper.dart | 66 +- lib/models/credentials_model.freezed.dart | 63 +- lib/models/credentials_model.g.dart | 6 +- lib/models/item_base_model.mapper.dart | 53 +- lib/models/items/channel_program.freezed.dart | 3 +- lib/models/items/channel_program.g.dart | 10 +- lib/models/items/episode_model.mapper.dart | 80 +- lib/models/items/folder_model.mapper.dart | 66 +- .../items/item_properties_model.freezed.dart | 3 +- .../items/item_shared_models.mapper.dart | 53 +- .../items/item_stream_model.mapper.dart | 63 +- .../items/media_segments_model.freezed.dart | 18 +- lib/models/items/media_segments_model.g.dart | 19 +- lib/models/items/movie_model.mapper.dart | 177 +- lib/models/items/overview_model.mapper.dart | 127 +- lib/models/items/person_model.mapper.dart | 86 +- lib/models/items/photos_model.mapper.dart | 135 +- lib/models/items/season_model.mapper.dart | 102 +- lib/models/items/series_model.mapper.dart | 192 +- .../items/special_feature_model.mapper.dart | 87 +- .../items/trick_play_model.freezed.dart | 63 +- lib/models/items/trick_play_model.g.dart | 11 +- lib/models/library_filter_model.freezed.dart | 24 +- lib/models/library_filter_model.g.dart | 36 +- lib/models/library_filters_model.freezed.dart | 59 +- lib/models/library_filters_model.g.dart | 10 +- .../library_search_model.freezed.dart | 25 +- lib/models/live_tv_model.freezed.dart | 47 +- lib/models/login_screen_model.freezed.dart | 136 +- lib/models/playback/playback_model.dart | 170 +- lib/models/seerr/seerr_item_models.dart | 12 +- .../seerr_credentials_model.freezed.dart | 55 +- lib/models/seerr_credentials_model.g.dart | 8 +- .../settings/arguments_model.freezed.dart | 12 +- .../client_settings_model.freezed.dart | 39 +- .../settings/client_settings_model.g.dart | 45 +- .../settings/home_settings_model.freezed.dart | 57 +- .../settings/home_settings_model.g.dart | 38 +- .../settings/key_combinations.freezed.dart | 30 +- lib/models/settings/key_combinations.g.dart | 16 +- .../video_player_settings.freezed.dart | 38 +- .../settings/video_player_settings.g.dart | 55 +- lib/models/syncing/database_item.g.dart | 525 +- lib/models/syncing/sync_item.freezed.dart | 31 +- .../syncing/sync_settings_model.freezed.dart | 18 +- lib/models/syncplay/syncplay_models.dart | 2 + .../syncplay/syncplay_models.freezed.dart | 123 +- lib/providers/api_provider.g.dart | 6 +- lib/providers/connectivity_provider.g.dart | 10 +- .../control_active_tasks_provider.g.dart | 10 +- .../control_activity_provider.freezed.dart | 99 +- .../control_activity_provider.g.dart | 7 +- .../control_dashboard_provider.freezed.dart | 60 +- .../control_dashboard_provider.g.dart | 7 +- .../control_libraries_provider.freezed.dart | 57 +- .../control_libraries_provider.g.dart | 7 +- .../control_server_provider.freezed.dart | 54 +- .../control_server_provider.g.dart | 7 +- .../control_users_provider.freezed.dart | 60 +- .../control_users_provider.g.dart | 6 +- lib/providers/cultures_provider.g.dart | 6 +- .../directory_browser_provider.freezed.dart | 59 +- .../directory_browser_provider.g.dart | 7 +- lib/providers/discovery_provider.g.dart | 7 +- lib/providers/discovery_provider.mapper.dart | 15 +- .../items/channel_details_provider.g.dart | 23 +- .../items/movies_details_provider.g.dart | 25 +- lib/providers/library_filters_provider.g.dart | 27 +- .../library_screen_provider.freezed.dart | 62 +- lib/providers/library_screen_provider.g.dart | 9 +- lib/providers/live_tv_provider.g.dart | 3 +- lib/providers/lock_screen_provider.dart | 1 + .../seerr/seerr_details_provider.freezed.dart | 18 +- .../seerr/seerr_details_provider.g.dart | 26 +- .../seerr/seerr_request_provider.freezed.dart | 30 +- .../seerr/seerr_request_provider.g.dart | 8 +- lib/providers/seerr_api_provider.g.dart | 6 +- lib/providers/seerr_dashboard_provider.g.dart | 7 +- .../seerr_search_provider.freezed.dart | 21 +- lib/providers/seerr_search_provider.g.dart | 6 +- lib/providers/seerr_service_provider.dart | 16 +- lib/providers/seerr_user_provider.g.dart | 6 +- lib/providers/service_provider.dart | 16 +- .../session_info_provider.freezed.dart | 12 +- lib/providers/session_info_provider.g.dart | 15 +- .../sync/background_download_provider.g.dart | 10 +- .../sync/sync_provider_helpers.g.dart | 124 +- .../handlers/syncplay_command_handler.dart | 12 +- .../handlers/syncplay_message_handler.dart | 48 +- .../syncplay/syncplay_controller.dart | 100 +- lib/providers/syncplay/syncplay_provider.dart | 47 +- .../syncplay/syncplay_provider.freezed.dart | 327 + .../syncplay/syncplay_provider.g.dart | 36 +- lib/providers/syncplay/time_sync_service.dart | 4 +- lib/providers/syncplay/websocket_manager.dart | 8 +- lib/providers/update_provider.g.dart | 3 +- lib/providers/user_provider.g.dart | 10 +- lib/providers/video_player_provider.dart | 49 +- lib/routes/auto_router.gr.dart | 82 +- .../login/controllers/login_controller.dart | 1 + lib/screens/login/login_code_dialog.dart | 21 +- lib/screens/login/login_screen.dart | 23 +- .../screens/server_selection_screen.dart | 1 + .../widgets/credentials_input_section.dart | 1 + .../login_credentials_input_extensions.dart | 1 + .../login/widgets/server_input_section.dart | 1 + .../login/widgets/server_url_input.dart | 1 + .../widgets/server_url_input_extensions.dart | 1 + .../settings/quick_connect_window.dart | 9 +- .../widgets/seerr_connection_dialog.dart | 12 +- lib/screens/shared/media/person_list_.dart | 10 +- lib/screens/syncing/sync_item_details.dart | 10 +- .../syncplay_command_indicator.dart | 37 +- .../components/video_progress_bar.dart | 113 +- .../video_player/video_player_controls.dart | 4 +- lib/seerr/seerr_chopper_service.chopper.dart | 63 +- lib/seerr/seerr_models.freezed.dart | 287 +- lib/seerr/seerr_models.g.dart | 468 +- lib/src/application_menu.g.dart | 17 +- lib/src/directory_bookmark.g.dart | 19 +- lib/src/player_settings_helper.g.dart | 53 +- lib/src/translations_pigeon.g.dart | 124 +- lib/src/video_player_helper.g.dart | 340 +- lib/util/application_info.freezed.dart | 17 +- .../item_base_model/play_item_helpers.dart | 91 +- lib/util/string_extensions.dart | 2 +- .../components/destination_model.dart | 1 + lib/widgets/shared/back_intent_dpad.dart | 12 +- lib/widgets/shared/background_item_image.dart | 1 + lib/widgets/syncplay/syncplay_badge.dart | 54 +- lib/widgets/syncplay/syncplay_extensions.dart | 79 + .../syncplay/syncplay_group_sheet.dart | 125 +- lib/wrappers/players/native_player.dart | 2 + lib/wrappers/players/player_states.dart | 9 + pigeons/video_player.dart | 21 +- pubspec.lock | 4 +- pubspec.yaml | 2 +- 150 files changed, 8659 insertions(+), 16885 deletions(-) create mode 100644 lib/providers/syncplay/syncplay_provider.freezed.dart create mode 100644 lib/widgets/syncplay/syncplay_extensions.dart diff --git a/android/app/src/main/kotlin/nl/jknaapen/fladder/api/VideoPlayerHelper.g.kt b/android/app/src/main/kotlin/nl/jknaapen/fladder/api/VideoPlayerHelper.g.kt index 30524ad95..ff9332b6c 100644 --- a/android/app/src/main/kotlin/nl/jknaapen/fladder/api/VideoPlayerHelper.g.kt +++ b/android/app/src/main/kotlin/nl/jknaapen/fladder/api/VideoPlayerHelper.g.kt @@ -2,6 +2,7 @@ // See also: https://pub.dev/packages/pigeon @file:Suppress("UNCHECKED_CAST", "ArrayInDataClass") +package nl.jknaapen.fladder.api import android.util.Log import io.flutter.plugin.common.BasicMessageChannel @@ -107,6 +108,22 @@ enum class MediaSegmentType(val raw: Int) { } } +/** Source of the last playback state change (for SyncPlay: infer user actions from stream). */ +enum class PlaybackChangeSource(val raw: Int) { + /** No specific source (e.g. periodic update, buffering). */ + NONE(0), + /** User tapped play/pause/seek on native; Flutter should send SyncPlay if active. */ + USER(1), + /** Change was caused by applying a SyncPlay command; do not send again. */ + SYNCPLAY(2); + + companion object { + fun ofRaw(raw: Int): PlaybackChangeSource? { + return values().firstOrNull { it.raw == raw } + } + } +} + /** Generated class from Pigeon that represents data sent in messages. */ data class SimpleItemModel ( val id: String, @@ -487,7 +504,9 @@ data class PlaybackState ( val playing: Boolean, val buffering: Boolean, val completed: Boolean, - val failed: Boolean + val failed: Boolean, + /** When set, indicates who caused this state update (for SyncPlay inference). */ + val changeSource: PlaybackChangeSource? = null ) { companion object { @@ -499,7 +518,8 @@ data class PlaybackState ( val buffering = pigeonVar_list[4] as Boolean val completed = pigeonVar_list[5] as Boolean val failed = pigeonVar_list[6] as Boolean - return PlaybackState(position, buffered, duration, playing, buffering, completed, failed) + val changeSource = pigeonVar_list[7] as PlaybackChangeSource? + return PlaybackState(position, buffered, duration, playing, buffering, completed, failed, changeSource) } } fun toList(): List { @@ -511,6 +531,7 @@ data class PlaybackState ( buffering, completed, failed, + changeSource, ) } override fun equals(other: Any?): Boolean { @@ -664,66 +685,71 @@ private open class VideoPlayerHelperPigeonCodec : StandardMessageCodec() { } } 131.toByte() -> { + return (readValue(buffer) as Long?)?.let { + PlaybackChangeSource.ofRaw(it.toInt()) + } + } + 132.toByte() -> { return (readValue(buffer) as? List)?.let { SimpleItemModel.fromList(it) } } - 132.toByte() -> { + 133.toByte() -> { return (readValue(buffer) as? List)?.let { MediaInfo.fromList(it) } } - 133.toByte() -> { + 134.toByte() -> { return (readValue(buffer) as? List)?.let { PlayableData.fromList(it) } } - 134.toByte() -> { + 135.toByte() -> { return (readValue(buffer) as? List)?.let { MediaSegment.fromList(it) } } - 135.toByte() -> { + 136.toByte() -> { return (readValue(buffer) as? List)?.let { AudioTrack.fromList(it) } } - 136.toByte() -> { + 137.toByte() -> { return (readValue(buffer) as? List)?.let { SubtitleTrack.fromList(it) } } - 137.toByte() -> { + 138.toByte() -> { return (readValue(buffer) as? List)?.let { Chapter.fromList(it) } } - 138.toByte() -> { + 139.toByte() -> { return (readValue(buffer) as? List)?.let { TrickPlayModel.fromList(it) } } - 139.toByte() -> { + 140.toByte() -> { return (readValue(buffer) as? List)?.let { StartResult.fromList(it) } } - 140.toByte() -> { + 141.toByte() -> { return (readValue(buffer) as? List)?.let { PlaybackState.fromList(it) } } - 141.toByte() -> { + 142.toByte() -> { return (readValue(buffer) as? List)?.let { TVGuideModel.fromList(it) } } - 142.toByte() -> { + 143.toByte() -> { return (readValue(buffer) as? List)?.let { GuideChannel.fromList(it) } } - 143.toByte() -> { + 144.toByte() -> { return (readValue(buffer) as? List)?.let { GuideProgram.fromList(it) } @@ -741,56 +767,60 @@ private open class VideoPlayerHelperPigeonCodec : StandardMessageCodec() { stream.write(130) writeValue(stream, value.raw.toLong()) } - is SimpleItemModel -> { + is PlaybackChangeSource -> { stream.write(131) + writeValue(stream, value.raw.toLong()) + } + is SimpleItemModel -> { + stream.write(132) writeValue(stream, value.toList()) } is MediaInfo -> { - stream.write(132) + stream.write(133) writeValue(stream, value.toList()) } is PlayableData -> { - stream.write(133) + stream.write(134) writeValue(stream, value.toList()) } is MediaSegment -> { - stream.write(134) + stream.write(135) writeValue(stream, value.toList()) } is AudioTrack -> { - stream.write(135) + stream.write(136) writeValue(stream, value.toList()) } is SubtitleTrack -> { - stream.write(136) + stream.write(137) writeValue(stream, value.toList()) } is Chapter -> { - stream.write(137) + stream.write(138) writeValue(stream, value.toList()) } is TrickPlayModel -> { - stream.write(138) + stream.write(139) writeValue(stream, value.toList()) } is StartResult -> { - stream.write(139) + stream.write(140) writeValue(stream, value.toList()) } is PlaybackState -> { - stream.write(140) + stream.write(141) writeValue(stream, value.toList()) } is TVGuideModel -> { - stream.write(141) + stream.write(142) writeValue(stream, value.toList()) } is GuideChannel -> { - stream.write(142) + stream.write(143) writeValue(stream, value.toList()) } is GuideProgram -> { - stream.write(143) + stream.write(144) writeValue(stream, value.toList()) } else -> super.writeValue(stream, value) diff --git a/android/app/src/main/kotlin/nl/jknaapen/fladder/composables/controls/ProgressBar.kt b/android/app/src/main/kotlin/nl/jknaapen/fladder/composables/controls/ProgressBar.kt index 18c50ade4..7b839138f 100644 --- a/android/app/src/main/kotlin/nl/jknaapen/fladder/composables/controls/ProgressBar.kt +++ b/android/app/src/main/kotlin/nl/jknaapen/fladder/composables/controls/ProgressBar.kt @@ -68,6 +68,7 @@ import androidx.compose.ui.unit.dp import androidx.compose.ui.util.fastCoerceIn import androidx.media3.exoplayer.ExoPlayer import kotlinx.coroutines.delay +import nl.jknaapen.fladder.api.PlaybackChangeSource import nl.jknaapen.fladder.objects.Localized import nl.jknaapen.fladder.objects.Translate import nl.jknaapen.fladder.objects.VideoPlayerObject @@ -450,8 +451,8 @@ internal fun RowScope.SimpleProgressBar( val clickRelativeOffset = offset.x / width.toFloat() val newPosition = effectiveDuration.milliseconds * clickRelativeOffset.toDouble() - // Route through Flutter for SyncPlay support - VideoPlayerObject.videoPlayerControls?.onUserSeek(newPosition.toLong(DurationUnit.MILLISECONDS)) {} + VideoPlayerObject.setPendingPlaybackChangeSource(PlaybackChangeSource.USER) + player.seekTo(newPosition.toLong(DurationUnit.MILLISECONDS)) } } .pointerInput(Unit) { @@ -474,8 +475,8 @@ internal fun RowScope.SimpleProgressBar( }, onDragEnd = { onScrubbingChanged(false) - // Route through Flutter for SyncPlay support - VideoPlayerObject.videoPlayerControls?.onUserSeek(internalTempPosition) {} + VideoPlayerObject.setPendingPlaybackChangeSource(PlaybackChangeSource.USER) + player.seekTo(internalTempPosition) }, onDragCancel = { onScrubbingChanged(false) @@ -654,8 +655,8 @@ internal fun RowScope.SimpleProgressBar( if (!scrubbingTimeLine) { onTempPosChanged(effectivePosition) onScrubbingChanged(true) - // Route through Flutter for SyncPlay support - VideoPlayerObject.videoPlayerControls?.onUserPause {} + VideoPlayerObject.setPendingPlaybackChangeSource(PlaybackChangeSource.USER) + player.pause() } val newPos = max( 0L, @@ -676,8 +677,8 @@ internal fun RowScope.SimpleProgressBar( if (!scrubbingTimeLine) { onTempPosChanged(effectivePosition) onScrubbingChanged(true) - // Route through Flutter for SyncPlay support - VideoPlayerObject.videoPlayerControls?.onUserPause {} + VideoPlayerObject.setPendingPlaybackChangeSource(PlaybackChangeSource.USER) + player.pause() } val newPos = min(player.duration.takeIf { it > 0 } ?: 1L, tempPosition + scrubSpeedResult()) @@ -688,9 +689,9 @@ internal fun RowScope.SimpleProgressBar( Enter, Spacebar, ButtonSelect, DirectionCenter -> { if (scrubbingTimeLine) { - // Route through Flutter for SyncPlay support - VideoPlayerObject.videoPlayerControls?.onUserSeek(tempPosition) {} - VideoPlayerObject.videoPlayerControls?.onUserPlay {} + VideoPlayerObject.setPendingPlaybackChangeSource(PlaybackChangeSource.USER) + player.seekTo(tempPosition) + player.play() onScrubbingChanged(false) true } else false @@ -699,8 +700,8 @@ internal fun RowScope.SimpleProgressBar( Escape, Back -> { if (scrubbingTimeLine) { onScrubbingChanged(false) - // Route through Flutter for SyncPlay support - VideoPlayerObject.videoPlayerControls?.onUserPlay {} + VideoPlayerObject.setPendingPlaybackChangeSource(PlaybackChangeSource.USER) + player.play() true } false diff --git a/android/app/src/main/kotlin/nl/jknaapen/fladder/composables/controls/SkipOverlay.kt b/android/app/src/main/kotlin/nl/jknaapen/fladder/composables/controls/SkipOverlay.kt index 59861f55c..a1053d168 100644 --- a/android/app/src/main/kotlin/nl/jknaapen/fladder/composables/controls/SkipOverlay.kt +++ b/android/app/src/main/kotlin/nl/jknaapen/fladder/composables/controls/SkipOverlay.kt @@ -5,6 +5,8 @@ import MediaSegmentType import SegmentSkip import SegmentType import android.os.Build +import nl.jknaapen.fladder.api.PlaybackChangeSource +import nl.jknaapen.fladder.objects.VideoPlayerObject import androidx.annotation.RequiresApi import androidx.compose.animation.AnimatedVisibility import androidx.compose.foundation.background @@ -69,8 +71,8 @@ internal fun BoxScope.SegmentSkipOverlay( val currentSegmentId = activeSegment?.let { "${it.type}-${it.start}-${it.end}" } fun skipSegment(segment: MediaSegment, segmentId: String) { - // Route through Flutter for SyncPlay support - VideoPlayerObject.videoPlayerControls?.onUserSeek(segment.end + 250.milliseconds.inWholeMilliseconds) {} + VideoPlayerObject.setPendingPlaybackChangeSource(PlaybackChangeSource.USER) + VideoPlayerObject.implementation.player?.seekTo(segment.end + 250.milliseconds.inWholeMilliseconds) skippedSegments.add(segmentId) } @@ -109,8 +111,8 @@ internal fun BoxScope.SegmentSkipOverlay( enableScaledFocus = true, onClick = { activeSegment?.let { - // Route through Flutter for SyncPlay support - VideoPlayerObject.videoPlayerControls?.onUserSeek(it.end) {} + VideoPlayerObject.setPendingPlaybackChangeSource(PlaybackChangeSource.USER) + VideoPlayerObject.implementation.player?.seekTo(it.end.toLong()) } } ) { diff --git a/android/app/src/main/kotlin/nl/jknaapen/fladder/composables/controls/VideoPlayerControls.kt b/android/app/src/main/kotlin/nl/jknaapen/fladder/composables/controls/VideoPlayerControls.kt index add42adb1..604db292b 100644 --- a/android/app/src/main/kotlin/nl/jknaapen/fladder/composables/controls/VideoPlayerControls.kt +++ b/android/app/src/main/kotlin/nl/jknaapen/fladder/composables/controls/VideoPlayerControls.kt @@ -75,6 +75,7 @@ import nl.jknaapen.fladder.composables.dialogs.PlaybackSpeedPicker import nl.jknaapen.fladder.composables.dialogs.SubtitlePicker import nl.jknaapen.fladder.composables.overlays.SyncPlayCommandOverlay import nl.jknaapen.fladder.composables.shared.CurrentTime +import nl.jknaapen.fladder.api.PlaybackChangeSource import nl.jknaapen.fladder.objects.PlayerSettingsObject import nl.jknaapen.fladder.objects.VideoPlayerObject import nl.jknaapen.fladder.utility.ImmersiveSystemBars @@ -152,8 +153,9 @@ fun CustomVideoControls( LaunchedEffect(lastSeekInteraction.longValue) { delay(1.seconds) if (currentSkipTime == 0L) return@LaunchedEffect - // Route through Flutter for SyncPlay support - VideoPlayerObject.videoPlayerControls?.onUserSeek(position + currentSkipTime) {} + // SyncPlay: user action is applied locally; Flutter infers from playback state stream and sends to server. + VideoPlayerObject.setPendingPlaybackChangeSource(PlaybackChangeSource.USER) + player?.seekTo(position + currentSkipTime) currentSkipTime = 0L } @@ -185,21 +187,20 @@ fun CustomVideoControls( Key.MediaPlayPause -> { player?.let { + VideoPlayerObject.setPendingPlaybackChangeSource(PlaybackChangeSource.USER) if (it.isPlaying) { - // Route through Flutter for SyncPlay support - VideoPlayerObject.videoPlayerControls?.onUserPause {} + it.pause() updateLastInteraction() } else { - VideoPlayerObject.videoPlayerControls?.onUserPlay {} + it.play() } } return@keyEvent true - } Key.MediaPause, Key.P -> { - // Route through Flutter for SyncPlay support - VideoPlayerObject.videoPlayerControls?.onUserPause {} + VideoPlayerObject.setPendingPlaybackChangeSource(PlaybackChangeSource.USER) + player?.pause() updateLastInteraction() return@keyEvent true } @@ -393,8 +394,8 @@ fun CustomVideoControls( if (showChapterDialog) { ChapterSelectionSheet( onSelected = { - // Route through Flutter for SyncPlay support - VideoPlayerObject.videoPlayerControls?.onUserSeek(it.time) {} + VideoPlayerObject.setPendingPlaybackChangeSource(PlaybackChangeSource.USER) + exoPlayer.seekTo(it.time.toLong()) showChapterDialog = false }, onDismiss = { @@ -455,10 +456,8 @@ fun PlaybackButtons( } CustomButton( onClick = { - // Route through Flutter for SyncPlay support - VideoPlayerObject.videoPlayerControls?.onUserSeek( - player.currentPosition - backwardSpeed.inWholeMilliseconds - ) {} + VideoPlayerObject.setPendingPlaybackChangeSource(PlaybackChangeSource.USER) + player.seekTo((player.currentPosition - backwardSpeed.inWholeMilliseconds).coerceAtLeast(0L)) }, ) { Box( @@ -484,12 +483,12 @@ fun PlaybackButtons( .defaultSelected(true), enableScaledFocus = true, onClick = { - // Route through Flutter for SyncPlay support + VideoPlayerObject.setPendingPlaybackChangeSource(PlaybackChangeSource.USER) if (player.isPlaying) { - VideoPlayerObject.videoPlayerControls?.onUserPause {} + player.pause() onPause() } else { - VideoPlayerObject.videoPlayerControls?.onUserPlay {} + player.play() } }, ) { @@ -502,10 +501,8 @@ fun PlaybackButtons( if (!isTVMode) { CustomButton( onClick = { - // Route through Flutter for SyncPlay support - VideoPlayerObject.videoPlayerControls?.onUserSeek( - player.currentPosition + forwardSpeed.inWholeMilliseconds - ) {} + VideoPlayerObject.setPendingPlaybackChangeSource(PlaybackChangeSource.USER) + player.seekTo(player.currentPosition + forwardSpeed.inWholeMilliseconds) }, ) { Box( diff --git a/android/app/src/main/kotlin/nl/jknaapen/fladder/composables/overlays/SyncPlayCommandOverlay.kt b/android/app/src/main/kotlin/nl/jknaapen/fladder/composables/overlays/SyncPlayCommandOverlay.kt index bda039dfd..57bd09c02 100644 --- a/android/app/src/main/kotlin/nl/jknaapen/fladder/composables/overlays/SyncPlayCommandOverlay.kt +++ b/android/app/src/main/kotlin/nl/jknaapen/fladder/composables/overlays/SyncPlayCommandOverlay.kt @@ -25,7 +25,9 @@ import androidx.compose.material3.MaterialTheme import androidx.compose.material3.Text import androidx.compose.runtime.Composable import androidx.compose.runtime.collectAsState +import androidx.compose.runtime.derivedStateOf import androidx.compose.runtime.getValue +import androidx.compose.runtime.remember import androidx.compose.ui.Alignment import androidx.compose.ui.Modifier import androidx.compose.ui.draw.shadow @@ -38,6 +40,7 @@ import io.github.rabehx.iconsax.filled.Pause import io.github.rabehx.iconsax.filled.Play import io.github.rabehx.iconsax.filled.Refresh import io.github.rabehx.iconsax.filled.Stop +import nl.jknaapen.fladder.api.SyncPlayCommandType import nl.jknaapen.fladder.objects.Localized import nl.jknaapen.fladder.objects.Translate import nl.jknaapen.fladder.objects.VideoPlayerObject @@ -51,7 +54,11 @@ fun BoxScope.SyncPlayCommandOverlay( modifier: Modifier = Modifier ) { val syncPlayState by VideoPlayerObject.syncPlayCommandState.collectAsState() - val visible = syncPlayState.processing && syncPlayState.commandType != null + val visible by remember(syncPlayState) { + derivedStateOf { + syncPlayState.processing && syncPlayState.commandType != SyncPlayCommandType.NONE + } + } AnimatedVisibility( visible = visible, @@ -89,10 +96,10 @@ fun BoxScope.SyncPlayCommandOverlay( Translate( callback = { cb -> when (syncPlayState.commandType) { - "Pause" -> Localized.syncPlayCommandPausing(cb) - "Unpause" -> Localized.syncPlayCommandPlaying(cb) - "Seek" -> Localized.syncPlayCommandSeeking(cb) - "Stop" -> Localized.syncPlayCommandStopping(cb) + SyncPlayCommandType.PAUSE -> Localized.syncPlayCommandPausing(cb) + SyncPlayCommandType.UNPAUSE -> Localized.syncPlayCommandPlaying(cb) + SyncPlayCommandType.SEEK -> Localized.syncPlayCommandSeeking(cb) + SyncPlayCommandType.STOP -> Localized.syncPlayCommandStopping(cb) else -> Localized.syncPlayCommandSyncing(cb) } }, @@ -136,12 +143,12 @@ fun BoxScope.SyncPlayCommandOverlay( } @Composable -private fun CommandIcon(commandType: String?) { +private fun CommandIcon(commandType: SyncPlayCommandType) { val (icon, color) = when (commandType) { - "Pause" -> Pair(Iconsax.Filled.Pause, MaterialTheme.colorScheme.secondary) - "Unpause" -> Pair(Iconsax.Filled.Play, MaterialTheme.colorScheme.primary) - "Seek" -> Pair(Iconsax.Filled.Forward, MaterialTheme.colorScheme.tertiary) - "Stop" -> Pair(Iconsax.Filled.Stop, MaterialTheme.colorScheme.error) + SyncPlayCommandType.PAUSE -> Pair(Iconsax.Filled.Pause, MaterialTheme.colorScheme.secondary) + SyncPlayCommandType.UNPAUSE -> Pair(Iconsax.Filled.Play, MaterialTheme.colorScheme.primary) + SyncPlayCommandType.SEEK -> Pair(Iconsax.Filled.Forward, MaterialTheme.colorScheme.tertiary) + SyncPlayCommandType.STOP -> Pair(Iconsax.Filled.Stop, MaterialTheme.colorScheme.error) else -> Pair(Iconsax.Filled.Refresh, MaterialTheme.colorScheme.primary) } @@ -156,7 +163,7 @@ private fun CommandIcon(commandType: String?) { ) { Icon( imageVector = icon, - contentDescription = commandType ?: "Syncing", + contentDescription = commandType.name, modifier = Modifier.size(48.dp), tint = color ) diff --git a/android/app/src/main/kotlin/nl/jknaapen/fladder/messengers/VideoPlayerImplementation.kt b/android/app/src/main/kotlin/nl/jknaapen/fladder/messengers/VideoPlayerImplementation.kt index 2d643c854..915216f17 100644 --- a/android/app/src/main/kotlin/nl/jknaapen/fladder/messengers/VideoPlayerImplementation.kt +++ b/android/app/src/main/kotlin/nl/jknaapen/fladder/messengers/VideoPlayerImplementation.kt @@ -1,8 +1,10 @@ package nl.jknaapen.fladder.messengers -import PlayableData -import TVGuideModel -import VideoPlayerApi +import nl.jknaapen.fladder.api.PlaybackChangeSource +import nl.jknaapen.fladder.api.PlayableData +import nl.jknaapen.fladder.api.SyncPlayCommandState +import nl.jknaapen.fladder.api.TVGuideModel +import nl.jknaapen.fladder.api.VideoPlayerApi import android.os.Handler import android.os.Looper import androidx.core.net.toUri @@ -127,14 +129,17 @@ class VideoPlayerImplementation( } override fun play() { + VideoPlayerObject.setPendingPlaybackChangeSource(PlaybackChangeSource.SYNCPLAY) player?.play() } override fun pause() { + VideoPlayerObject.setPendingPlaybackChangeSource(PlaybackChangeSource.SYNCPLAY) player?.pause() } override fun seekTo(position: Long) { + VideoPlayerObject.setPendingPlaybackChangeSource(PlaybackChangeSource.SYNCPLAY) player?.seekTo(position) } @@ -142,8 +147,8 @@ class VideoPlayerImplementation( player?.stop() } - override fun setSyncPlayCommandState(processing: Boolean, commandType: String?) { - VideoPlayerObject.setSyncPlayCommandState(processing, commandType) + override fun setSyncPlayCommandState(state: SyncPlayCommandState) { + VideoPlayerObject.setSyncPlayCommandState(state) } fun init(exoPlayer: ExoPlayer?) { diff --git a/android/app/src/main/kotlin/nl/jknaapen/fladder/objects/VideoPlayerObject.kt b/android/app/src/main/kotlin/nl/jknaapen/fladder/objects/VideoPlayerObject.kt index 82ecb7da3..f89ee97e5 100644 --- a/android/app/src/main/kotlin/nl/jknaapen/fladder/objects/VideoPlayerObject.kt +++ b/android/app/src/main/kotlin/nl/jknaapen/fladder/objects/VideoPlayerObject.kt @@ -1,7 +1,10 @@ package nl.jknaapen.fladder.objects -import PlaybackState -import TVGuideModel +import nl.jknaapen.fladder.api.PlaybackChangeSource +import nl.jknaapen.fladder.api.PlaybackState +import nl.jknaapen.fladder.api.SyncPlayCommandState +import nl.jknaapen.fladder.api.SyncPlayCommandType +import nl.jknaapen.fladder.api.TVGuideModel import VideoPlayerControlsCallback import VideoPlayerListenerCallback import kotlinx.coroutines.flow.Flow @@ -104,16 +107,28 @@ object VideoPlayerObject { guideVisible.value = !guideVisible.value } - // SyncPlay command state for overlay - data class SyncPlayCommandState( - val processing: Boolean = false, - val commandType: String? = null + // SyncPlay command state for overlay (Pigeon-generated type) + val syncPlayCommandState = MutableStateFlow( + SyncPlayCommandState(false, SyncPlayCommandType.NONE) ) - val syncPlayCommandState = MutableStateFlow(SyncPlayCommandState()) + fun setSyncPlayCommandState(state: SyncPlayCommandState) { + syncPlayCommandState.value = state + } + + /** Set before updating player so the next PlaybackState sent to Flutter is tagged (for SyncPlay inference). */ + @Volatile + private var pendingPlaybackChangeSource: PlaybackChangeSource? = null + + fun setPendingPlaybackChangeSource(source: PlaybackChangeSource) { + pendingPlaybackChangeSource = source + } - fun setSyncPlayCommandState(processing: Boolean, commandType: String?) { - syncPlayCommandState.value = SyncPlayCommandState(processing, commandType) + /** Consumed when building PlaybackState in ExoPlayer; clears after read. */ + fun getAndClearPendingPlaybackChangeSource(): PlaybackChangeSource? { + val r = pendingPlaybackChangeSource + pendingPlaybackChangeSource = null + return r } var currentActivity: VideoPlayerActivity? = null diff --git a/android/app/src/main/kotlin/nl/jknaapen/fladder/player/ExoPlayer.kt b/android/app/src/main/kotlin/nl/jknaapen/fladder/player/ExoPlayer.kt index 424630ca0..02116055b 100644 --- a/android/app/src/main/kotlin/nl/jknaapen/fladder/player/ExoPlayer.kt +++ b/android/app/src/main/kotlin/nl/jknaapen/fladder/player/ExoPlayer.kt @@ -130,7 +130,8 @@ internal fun ExoPlayer( playing = exoPlayer.isPlaying, buffering = exoPlayer.playbackState == Player.STATE_BUFFERING, completed = exoPlayer.playbackState == Player.STATE_ENDED, - failed = exoPlayer.playbackState == Player.STATE_IDLE + failed = exoPlayer.playbackState == Player.STATE_IDLE, + changeSource = videoHost.getAndClearPendingPlaybackChangeSource() ) ) } @@ -158,7 +159,6 @@ internal fun ExoPlayer( } override fun onPlaybackStateChanged(playbackState: Int) { - videoHost.setPlaybackState( PlaybackState( position = exoPlayer.currentPosition, @@ -167,7 +167,8 @@ internal fun ExoPlayer( playing = exoPlayer.isPlaying, buffering = playbackState == Player.STATE_BUFFERING, completed = playbackState == Player.STATE_ENDED, - failed = playbackState == Player.STATE_IDLE + failed = playbackState == Player.STATE_IDLE, + changeSource = videoHost.getAndClearPendingPlaybackChangeSource() ) ) } diff --git a/lib/jellyfin/jellyfin_open_api.swagger.chopper.dart b/lib/jellyfin/jellyfin_open_api.swagger.chopper.dart index b9aedab7e..ed5b89a87 100644 --- a/lib/jellyfin/jellyfin_open_api.swagger.chopper.dart +++ b/lib/jellyfin/jellyfin_open_api.swagger.chopper.dart @@ -38,8 +38,7 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { client.baseUrl, parameters: $params, ); - return client.send($request); + return client.send($request); } @override @@ -50,8 +49,7 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { $url, client.baseUrl, ); - return client.send($request); + return client.send($request); } @override @@ -154,8 +152,7 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { client.baseUrl, parameters: $params, ); - return client - .send($request); + return client.send($request); } @override @@ -250,8 +247,7 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { client.baseUrl, parameters: $params, ); - return client - .send($request); + return client.send($request); } @override @@ -720,8 +716,7 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { } @override - Future> _backupCreatePost( - {required BackupOptionsDto? body}) { + Future> _backupCreatePost({required BackupOptionsDto? body}) { final Uri $url = Uri.parse('/Backup/Create'); final $body = body; final Request $request = Request( @@ -734,8 +729,7 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { } @override - Future> _backupManifestGet( - {required String? path}) { + Future> _backupManifestGet({required String? path}) { final Uri $url = Uri.parse('/Backup/Manifest'); final Map $params = {'path': path}; final Request $request = Request( @@ -748,8 +742,7 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { } @override - Future> _backupRestorePost( - {required BackupRestoreRequestDto? body}) { + Future> _backupRestorePost({required BackupRestoreRequestDto? body}) { final Uri $url = Uri.parse('/Backup/Restore'); final $body = body; final Request $request = Request( @@ -818,13 +811,11 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { client.baseUrl, parameters: $params, ); - return client - .send($request); + return client.send($request); } @override - Future> _channelsChannelIdFeaturesGet( - {required String? channelId}) { + Future> _channelsChannelIdFeaturesGet({required String? channelId}) { final Uri $url = Uri.parse('/Channels/${channelId}/Features'); final Request $request = Request( 'GET', @@ -863,8 +854,7 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { client.baseUrl, parameters: $params, ); - return client - .send($request); + return client.send($request); } @override @@ -902,13 +892,11 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { client.baseUrl, parameters: $params, ); - return client - .send($request); + return client.send($request); } @override - Future> _clientLogDocumentPost( - {required Object? body}) { + Future> _clientLogDocumentPost({required Object? body}) { final Uri $url = Uri.parse('/ClientLog/Document'); final $body = body; final Request $request = Request( @@ -917,8 +905,7 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { client.baseUrl, body: $body, ); - return client.send($request); + return client.send($request); } @override @@ -941,8 +928,7 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { client.baseUrl, parameters: $params, ); - return client - .send($request); + return client.send($request); } @override @@ -989,8 +975,7 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { } @override - Future> _systemConfigurationPost( - {required ServerConfiguration? body}) { + Future> _systemConfigurationPost({required ServerConfiguration? body}) { final Uri $url = Uri.parse('/System/Configuration'); final $body = body; final Request $request = Request( @@ -1030,8 +1015,7 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { } @override - Future> _systemConfigurationBrandingPost( - {required BrandingOptionsDto? body}) { + Future> _systemConfigurationBrandingPost({required BrandingOptionsDto? body}) { final Uri $url = Uri.parse('/System/Configuration/Branding'); final $body = body; final Request $request = Request( @@ -1044,8 +1028,7 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { } @override - Future> - _systemConfigurationMetadataOptionsDefaultGet() { + Future> _systemConfigurationMetadataOptionsDefaultGet() { final Uri $url = Uri.parse('/System/Configuration/MetadataOptions/Default'); final Request $request = Request( 'GET', @@ -1069,20 +1052,16 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { } @override - Future>> _webConfigurationPagesGet( - {bool? enableInMainMenu}) { + Future>> _webConfigurationPagesGet({bool? enableInMainMenu}) { final Uri $url = Uri.parse('/web/ConfigurationPages'); - final Map $params = { - 'enableInMainMenu': enableInMainMenu - }; + final Map $params = {'enableInMainMenu': enableInMainMenu}; final Request $request = Request( 'GET', $url, client.baseUrl, parameters: $params, ); - return client - .send, ConfigurationPageInfo>($request); + return client.send, ConfigurationPageInfo>($request); } @override @@ -1095,8 +1074,7 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { client.baseUrl, parameters: $params, ); - return client - .send($request); + return client.send($request); } @override @@ -1157,8 +1135,7 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { } @override - Future> - _displayPreferencesDisplayPreferencesIdGet({ + Future> _displayPreferencesDisplayPreferencesIdGet({ required String? displayPreferencesId, String? userId, required String? $client, @@ -1258,8 +1235,7 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { Object? streamOptions, bool? enableAudioVbrEncoding, }) { - final Uri $url = Uri.parse( - '/Audio/${itemId}/hls1/${playlistId}/${segmentId}.${container}'); + final Uri $url = Uri.parse('/Audio/${itemId}/hls1/${playlistId}/${segmentId}.${container}'); final Map $params = { 'runtimeTicks': runtimeTicks, 'actualSegmentLengthTicks': actualSegmentLengthTicks, @@ -1728,8 +1704,7 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { bool? enableAudioVbrEncoding, bool? alwaysBurnInSubtitleWhenTranscoding, }) { - final Uri $url = Uri.parse( - '/Videos/${itemId}/hls1/${playlistId}/${segmentId}.${container}'); + final Uri $url = Uri.parse('/Videos/${itemId}/hls1/${playlistId}/${segmentId}.${container}'); final Map $params = { 'runtimeTicks': runtimeTicks, 'actualSegmentLengthTicks': actualSegmentLengthTicks, @@ -1783,8 +1758,7 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { 'context': context, 'streamOptions': streamOptions, 'enableAudioVbrEncoding': enableAudioVbrEncoding, - 'alwaysBurnInSubtitleWhenTranscoding': - alwaysBurnInSubtitleWhenTranscoding, + 'alwaysBurnInSubtitleWhenTranscoding': alwaysBurnInSubtitleWhenTranscoding, }; final Request $request = Request( 'GET', @@ -1906,8 +1880,7 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { 'maxHeight': maxHeight, 'enableSubtitlesInManifest': enableSubtitlesInManifest, 'enableAudioVbrEncoding': enableAudioVbrEncoding, - 'alwaysBurnInSubtitleWhenTranscoding': - alwaysBurnInSubtitleWhenTranscoding, + 'alwaysBurnInSubtitleWhenTranscoding': alwaysBurnInSubtitleWhenTranscoding, }; final Request $request = Request( 'GET', @@ -2025,8 +1998,7 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { 'context': context, 'streamOptions': streamOptions, 'enableAudioVbrEncoding': enableAudioVbrEncoding, - 'alwaysBurnInSubtitleWhenTranscoding': - alwaysBurnInSubtitleWhenTranscoding, + 'alwaysBurnInSubtitleWhenTranscoding': alwaysBurnInSubtitleWhenTranscoding, }; final Request $request = Request( 'GET', @@ -2148,8 +2120,7 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { 'enableAdaptiveBitrateStreaming': enableAdaptiveBitrateStreaming, 'enableTrickplay': enableTrickplay, 'enableAudioVbrEncoding': enableAudioVbrEncoding, - 'alwaysBurnInSubtitleWhenTranscoding': - alwaysBurnInSubtitleWhenTranscoding, + 'alwaysBurnInSubtitleWhenTranscoding': alwaysBurnInSubtitleWhenTranscoding, }; final Request $request = Request( 'GET', @@ -2271,8 +2242,7 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { 'enableAdaptiveBitrateStreaming': enableAdaptiveBitrateStreaming, 'enableTrickplay': enableTrickplay, 'enableAudioVbrEncoding': enableAudioVbrEncoding, - 'alwaysBurnInSubtitleWhenTranscoding': - alwaysBurnInSubtitleWhenTranscoding, + 'alwaysBurnInSubtitleWhenTranscoding': alwaysBurnInSubtitleWhenTranscoding, }; final Request $request = Request( 'HEAD', @@ -2284,16 +2254,14 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { } @override - Future> - _environmentDefaultDirectoryBrowserGet() { + Future> _environmentDefaultDirectoryBrowserGet() { final Uri $url = Uri.parse('/Environment/DefaultDirectoryBrowser'); final Request $request = Request( 'GET', $url, client.baseUrl, ); - return client.send($request); + return client.send($request); } @override @@ -2314,8 +2282,7 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { client.baseUrl, parameters: $params, ); - return client - .send, FileSystemEntryInfo>($request); + return client.send, FileSystemEntryInfo>($request); } @override @@ -2326,8 +2293,7 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { $url, client.baseUrl, ); - return client - .send, FileSystemEntryInfo>($request); + return client.send, FileSystemEntryInfo>($request); } @override @@ -2338,8 +2304,7 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { $url, client.baseUrl, ); - return client - .send, FileSystemEntryInfo>($request); + return client.send, FileSystemEntryInfo>($request); } @override @@ -2356,8 +2321,7 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { } @override - Future> _environmentValidatePathPost( - {required ValidatePathDto? body}) { + Future> _environmentValidatePathPost({required ValidatePathDto? body}) { final Uri $url = Uri.parse('/Environment/ValidatePath'); final $body = body; final Request $request = Request( @@ -2475,8 +2439,7 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { client.baseUrl, parameters: $params, ); - return client - .send($request); + return client.send($request); } @override @@ -2524,15 +2487,13 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { } @override - Future> - _videosItemIdHlsPlaylistIdSegmentIdSegmentContainerGet({ + Future> _videosItemIdHlsPlaylistIdSegmentIdSegmentContainerGet({ required String? itemId, required String? playlistId, required String? segmentId, required String? segmentContainer, }) { - final Uri $url = Uri.parse( - '/Videos/${itemId}/hls/${playlistId}/${segmentId}.${segmentContainer}'); + final Uri $url = Uri.parse('/Videos/${itemId}/hls/${playlistId}/${segmentId}.${segmentContainer}'); final Request $request = Request( 'GET', $url, @@ -2546,8 +2507,7 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { required String? itemId, required String? playlistId, }) { - final Uri $url = - Uri.parse('/Videos/${itemId}/hls/${playlistId}/stream.m3u8'); + final Uri $url = Uri.parse('/Videos/${itemId}/hls/${playlistId}/stream.m3u8'); final Request $request = Request( 'GET', $url, @@ -2595,8 +2555,7 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { String? foregroundLayer, required int? imageIndex, }) { - final Uri $url = - Uri.parse('/Artists/${name}/Images/${imageType}/${imageIndex}'); + final Uri $url = Uri.parse('/Artists/${name}/Images/${imageType}/${imageIndex}'); final Map $params = { 'tag': tag, 'format': format, @@ -2642,8 +2601,7 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { String? foregroundLayer, required int? imageIndex, }) { - final Uri $url = - Uri.parse('/Artists/${name}/Images/${imageType}/${imageIndex}'); + final Uri $url = Uri.parse('/Artists/${name}/Images/${imageType}/${imageIndex}'); final Map $params = { 'tag': tag, 'format': format, @@ -2826,8 +2784,7 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { String? backgroundColor, String? foregroundLayer, }) { - final Uri $url = - Uri.parse('/Genres/${name}/Images/${imageType}/${imageIndex}'); + final Uri $url = Uri.parse('/Genres/${name}/Images/${imageType}/${imageIndex}'); final Map $params = { 'tag': tag, 'format': format, @@ -2873,8 +2830,7 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { String? backgroundColor, String? foregroundLayer, }) { - final Uri $url = - Uri.parse('/Genres/${name}/Images/${imageType}/${imageIndex}'); + final Uri $url = Uri.parse('/Genres/${name}/Images/${imageType}/${imageIndex}'); final Map $params = { 'tag': tag, 'format': format, @@ -2901,8 +2857,7 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { } @override - Future>> _itemsItemIdImagesGet( - {required String? itemId}) { + Future>> _itemsItemIdImagesGet({required String? itemId}) { final Uri $url = Uri.parse('/Items/${itemId}/Images'); final Request $request = Request( 'GET', @@ -2919,9 +2874,7 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { int? imageIndex, }) { final Uri $url = Uri.parse('/Items/${itemId}/Images/${imageType}'); - final Map $params = { - 'imageIndex': imageIndex - }; + final Map $params = {'imageIndex': imageIndex}; final Request $request = Request( 'DELETE', $url, @@ -3048,8 +3001,7 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { required String? imageType, required int? imageIndex, }) { - final Uri $url = - Uri.parse('/Items/${itemId}/Images/${imageType}/${imageIndex}'); + final Uri $url = Uri.parse('/Items/${itemId}/Images/${imageType}/${imageIndex}'); final Request $request = Request( 'DELETE', $url, @@ -3065,8 +3017,7 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { required int? imageIndex, required Object? body, }) { - final Uri $url = - Uri.parse('/Items/${itemId}/Images/${imageType}/${imageIndex}'); + final Uri $url = Uri.parse('/Items/${itemId}/Images/${imageType}/${imageIndex}'); final $body = body; final Request $request = Request( 'POST', @@ -3097,8 +3048,7 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { String? backgroundColor, String? foregroundLayer, }) { - final Uri $url = - Uri.parse('/Items/${itemId}/Images/${imageType}/${imageIndex}'); + final Uri $url = Uri.parse('/Items/${itemId}/Images/${imageType}/${imageIndex}'); final Map $params = { 'maxWidth': maxWidth, 'maxHeight': maxHeight, @@ -3144,8 +3094,7 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { String? backgroundColor, String? foregroundLayer, }) { - final Uri $url = - Uri.parse('/Items/${itemId}/Images/${imageType}/${imageIndex}'); + final Uri $url = Uri.parse('/Items/${itemId}/Images/${imageType}/${imageIndex}'); final Map $params = { 'maxWidth': maxWidth, 'maxHeight': maxHeight, @@ -3262,11 +3211,8 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { required int? imageIndex, required int? newIndex, }) { - final Uri $url = - Uri.parse('/Items/${itemId}/Images/${imageType}/${imageIndex}/Index'); - final Map $params = { - 'newIndex': newIndex - }; + final Uri $url = Uri.parse('/Items/${itemId}/Images/${imageType}/${imageIndex}/Index'); + final Map $params = {'newIndex': newIndex}; final Request $request = Request( 'POST', $url, @@ -3390,8 +3336,7 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { String? backgroundColor, String? foregroundLayer, }) { - final Uri $url = - Uri.parse('/MusicGenres/${name}/Images/${imageType}/${imageIndex}'); + final Uri $url = Uri.parse('/MusicGenres/${name}/Images/${imageType}/${imageIndex}'); final Map $params = { 'tag': tag, 'format': format, @@ -3437,8 +3382,7 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { String? backgroundColor, String? foregroundLayer, }) { - final Uri $url = - Uri.parse('/MusicGenres/${name}/Images/${imageType}/${imageIndex}'); + final Uri $url = Uri.parse('/MusicGenres/${name}/Images/${imageType}/${imageIndex}'); final Map $params = { 'tag': tag, 'format': format, @@ -3578,8 +3522,7 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { String? backgroundColor, String? foregroundLayer, }) { - final Uri $url = - Uri.parse('/Persons/${name}/Images/${imageType}/${imageIndex}'); + final Uri $url = Uri.parse('/Persons/${name}/Images/${imageType}/${imageIndex}'); final Map $params = { 'tag': tag, 'format': format, @@ -3625,8 +3568,7 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { String? backgroundColor, String? foregroundLayer, }) { - final Uri $url = - Uri.parse('/Persons/${name}/Images/${imageType}/${imageIndex}'); + final Uri $url = Uri.parse('/Persons/${name}/Images/${imageType}/${imageIndex}'); final Map $params = { 'tag': tag, 'format': format, @@ -3766,8 +3708,7 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { String? backgroundColor, String? foregroundLayer, }) { - final Uri $url = - Uri.parse('/Studios/${name}/Images/${imageType}/${imageIndex}'); + final Uri $url = Uri.parse('/Studios/${name}/Images/${imageType}/${imageIndex}'); final Map $params = { 'tag': tag, 'format': format, @@ -3813,8 +3754,7 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { String? backgroundColor, String? foregroundLayer, }) { - final Uri $url = - Uri.parse('/Studios/${name}/Images/${imageType}/${imageIndex}'); + final Uri $url = Uri.parse('/Studios/${name}/Images/${imageType}/${imageIndex}'); final Map $params = { 'tag': tag, 'format': format, @@ -3940,8 +3880,7 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { client.baseUrl, parameters: $params, ); - return client - .send($request); + return client.send($request); } @override @@ -3971,8 +3910,7 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { client.baseUrl, parameters: $params, ); - return client - .send($request); + return client.send($request); } @override @@ -4003,8 +3941,7 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { client.baseUrl, parameters: $params, ); - return client - .send($request); + return client.send($request); } @override @@ -4034,8 +3971,7 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { client.baseUrl, parameters: $params, ); - return client - .send($request); + return client.send($request); } @override @@ -4065,8 +4001,7 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { client.baseUrl, parameters: $params, ); - return client - .send($request); + return client.send($request); } @override @@ -4097,8 +4032,7 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { client.baseUrl, parameters: $params, ); - return client - .send($request); + return client.send($request); } @override @@ -4128,8 +4062,7 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { client.baseUrl, parameters: $params, ); - return client - .send($request); + return client.send($request); } @override @@ -4159,13 +4092,11 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { client.baseUrl, parameters: $params, ); - return client - .send($request); + return client.send($request); } @override - Future>> _itemsItemIdExternalIdInfosGet( - {required String? itemId}) { + Future>> _itemsItemIdExternalIdInfosGet({required String? itemId}) { final Uri $url = Uri.parse('/Items/${itemId}/ExternalIdInfos'); final Request $request = Request( 'GET', @@ -4182,9 +4113,7 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { required RemoteSearchResult? body, }) { final Uri $url = Uri.parse('/Items/RemoteSearch/Apply/${itemId}'); - final Map $params = { - 'replaceAllImages': replaceAllImages - }; + final Map $params = {'replaceAllImages': replaceAllImages}; final $body = body; final Request $request = Request( 'POST', @@ -4197,8 +4126,7 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { } @override - Future>> _itemsRemoteSearchBookPost( - {required BookInfoRemoteSearchQuery? body}) { + Future>> _itemsRemoteSearchBookPost({required BookInfoRemoteSearchQuery? body}) { final Uri $url = Uri.parse('/Items/RemoteSearch/Book'); final $body = body; final Request $request = Request( @@ -4225,8 +4153,7 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { } @override - Future>> _itemsRemoteSearchMoviePost( - {required MovieInfoRemoteSearchQuery? body}) { + Future>> _itemsRemoteSearchMoviePost({required MovieInfoRemoteSearchQuery? body}) { final Uri $url = Uri.parse('/Items/RemoteSearch/Movie'); final $body = body; final Request $request = Request( @@ -4531,8 +4458,7 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { client.baseUrl, parameters: $params, ); - return client - .send($request); + return client.send($request); } @override @@ -4625,8 +4551,7 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { client.baseUrl, parameters: $params, ); - return client - .send($request); + return client.send($request); } @override @@ -4678,9 +4603,7 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { String? contentType, }) { final Uri $url = Uri.parse('/Items/${itemId}/ContentType'); - final Map $params = { - 'contentType': contentType - }; + final Map $params = {'contentType': contentType}; final Request $request = Request( 'POST', $url, @@ -4691,8 +4614,7 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { } @override - Future> _itemsItemIdMetadataEditorGet( - {required String? itemId}) { + Future> _itemsItemIdMetadataEditorGet({required String? itemId}) { final Uri $url = Uri.parse('/Items/${itemId}/MetadataEditor'); final Request $request = Request( 'GET', @@ -4723,8 +4645,7 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { client.baseUrl, parameters: $params, ); - return client - .send($request); + return client.send($request); } @override @@ -4748,8 +4669,7 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { client.baseUrl, parameters: $params, ); - return client - .send($request); + return client.send($request); } @override @@ -4769,16 +4689,14 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { } @override - Future> _itemsItemIdCriticReviewsGet( - {required String? itemId}) { + Future> _itemsItemIdCriticReviewsGet({required String? itemId}) { final Uri $url = Uri.parse('/Items/${itemId}/CriticReviews'); final Request $request = Request( 'GET', $url, client.baseUrl, ); - return client - .send($request); + return client.send($request); } @override @@ -4824,8 +4742,7 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { client.baseUrl, parameters: $params, ); - return client - .send($request); + return client.send($request); } @override @@ -4935,13 +4852,11 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { client.baseUrl, parameters: $params, ); - return client - .send($request); + return client.send($request); } @override - Future> _libraryMediaUpdatedPost( - {required MediaUpdateInfoDto? body}) { + Future> _libraryMediaUpdatedPost({required MediaUpdateInfoDto? body}) { final Uri $url = Uri.parse('/Library/Media/Updated'); final $body = body; final Request $request = Request( @@ -4954,20 +4869,16 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { } @override - Future> _libraryMediaFoldersGet( - {bool? isHidden}) { + Future> _libraryMediaFoldersGet({bool? isHidden}) { final Uri $url = Uri.parse('/Library/MediaFolders'); - final Map $params = { - 'isHidden': isHidden - }; + final Map $params = {'isHidden': isHidden}; final Request $request = Request( 'GET', $url, client.baseUrl, parameters: $params, ); - return client - .send($request); + return client.send($request); } @override @@ -5077,8 +4988,7 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { client.baseUrl, parameters: $params, ); - return client - .send($request); + return client.send($request); } @override @@ -5102,8 +5012,7 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { client.baseUrl, parameters: $params, ); - return client - .send($request); + return client.send($request); } @override @@ -5127,8 +5036,7 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { client.baseUrl, parameters: $params, ); - return client - .send($request); + return client.send($request); } @override @@ -5188,8 +5096,7 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { } @override - Future> _libraryVirtualFoldersLibraryOptionsPost( - {required UpdateLibraryOptionsDto? body}) { + Future> _libraryVirtualFoldersLibraryOptionsPost({required UpdateLibraryOptionsDto? body}) { final Uri $url = Uri.parse('/Library/VirtualFolders/LibraryOptions'); final $body = body; final Request $request = Request( @@ -5228,9 +5135,7 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { required MediaPathDto? body, }) { final Uri $url = Uri.parse('/Library/VirtualFolders/Paths'); - final Map $params = { - 'refreshLibrary': refreshLibrary - }; + final Map $params = {'refreshLibrary': refreshLibrary}; final $body = body; final Request $request = Request( 'POST', @@ -5264,8 +5169,7 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { } @override - Future> _libraryVirtualFoldersPathsUpdatePost( - {required UpdateMediaPathRequestDto? body}) { + Future> _libraryVirtualFoldersPathsUpdatePost({required UpdateMediaPathRequestDto? body}) { final Uri $url = Uri.parse('/Library/VirtualFolders/Paths/Update'); final $body = body; final Request $request = Request( @@ -5278,25 +5182,20 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { } @override - Future> _liveTvChannelMappingOptionsGet( - {String? providerId}) { + Future> _liveTvChannelMappingOptionsGet({String? providerId}) { final Uri $url = Uri.parse('/LiveTv/ChannelMappingOptions'); - final Map $params = { - 'providerId': providerId - }; + final Map $params = {'providerId': providerId}; final Request $request = Request( 'GET', $url, client.baseUrl, parameters: $params, ); - return client - .send($request); + return client.send($request); } @override - Future> _liveTvChannelMappingsPost( - {required SetChannelMappingDto? body}) { + Future> _liveTvChannelMappingsPost({required SetChannelMappingDto? body}) { final Uri $url = Uri.parse('/LiveTv/ChannelMappings'); final $body = body; final Request $request = Request( @@ -5362,8 +5261,7 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { client.baseUrl, parameters: $params, ); - return client - .send($request); + return client.send($request); } @override @@ -5476,10 +5374,8 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { } @override - Future> - _liveTvListingProvidersSchedulesDirectCountriesGet() { - final Uri $url = - Uri.parse('/LiveTv/ListingProviders/SchedulesDirect/Countries'); + Future> _liveTvListingProvidersSchedulesDirectCountriesGet() { + final Uri $url = Uri.parse('/LiveTv/ListingProviders/SchedulesDirect/Countries'); final Request $request = Request( 'GET', $url, @@ -5489,8 +5385,7 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { } @override - Future> _liveTvLiveRecordingsRecordingIdStreamGet( - {required String? recordingId}) { + Future> _liveTvLiveRecordingsRecordingIdStreamGet({required String? recordingId}) { final Uri $url = Uri.parse('/LiveTv/LiveRecordings/${recordingId}/stream'); final Request $request = Request( 'GET', @@ -5505,8 +5400,7 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { required String? streamId, required String? container, }) { - final Uri $url = - Uri.parse('/LiveTv/LiveStreamFiles/${streamId}/stream.${container}'); + final Uri $url = Uri.parse('/LiveTv/LiveStreamFiles/${streamId}/stream.${container}'); final Request $request = Request( 'GET', $url, @@ -5581,13 +5475,11 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { client.baseUrl, parameters: $params, ); - return client - .send($request); + return client.send($request); } @override - Future> _liveTvProgramsPost( - {required GetProgramsDto? body}) { + Future> _liveTvProgramsPost({required GetProgramsDto? body}) { final Uri $url = Uri.parse('/LiveTv/Programs'); final $body = body; final Request $request = Request( @@ -5596,8 +5488,7 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { client.baseUrl, body: $body, ); - return client - .send($request); + return client.send($request); } @override @@ -5662,8 +5553,7 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { client.baseUrl, parameters: $params, ); - return client - .send($request); + return client.send($request); } @override @@ -5716,8 +5606,7 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { client.baseUrl, parameters: $params, ); - return client - .send($request); + return client.send($request); } @override @@ -5737,8 +5626,7 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { } @override - Future> _liveTvRecordingsRecordingIdDelete( - {required String? recordingId}) { + Future> _liveTvRecordingsRecordingIdDelete({required String? recordingId}) { final Uri $url = Uri.parse('/LiveTv/Recordings/${recordingId}'); final Request $request = Request( 'DELETE', @@ -5749,8 +5637,7 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { } @override - Future> _liveTvRecordingsFoldersGet( - {String? userId}) { + Future> _liveTvRecordingsFoldersGet({String? userId}) { final Uri $url = Uri.parse('/LiveTv/Recordings/Folders'); final Map $params = {'userId': userId}; final Request $request = Request( @@ -5759,13 +5646,11 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { client.baseUrl, parameters: $params, ); - return client - .send($request); + return client.send($request); } @override - Future> _liveTvRecordingsGroupsGet( - {String? userId}) { + Future> _liveTvRecordingsGroupsGet({String? userId}) { final Uri $url = Uri.parse('/LiveTv/Recordings/Groups'); final Map $params = {'userId': userId}; final Request $request = Request( @@ -5774,13 +5659,11 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { client.baseUrl, parameters: $params, ); - return client - .send($request); + return client.send($request); } @override - Future> _liveTvRecordingsGroupsGroupIdGet( - {required String? groupId}) { + Future> _liveTvRecordingsGroupsGroupIdGet({required String? groupId}) { final Uri $url = Uri.parse('/LiveTv/Recordings/Groups/${groupId}'); final Request $request = Request( 'GET', @@ -5830,8 +5713,7 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { client.baseUrl, parameters: $params, ); - return client - .send($request); + return client.send($request); } @override @@ -5850,13 +5732,11 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { client.baseUrl, parameters: $params, ); - return client.send($request); + return client.send($request); } @override - Future> _liveTvSeriesTimersPost( - {required SeriesTimerInfoDto? body}) { + Future> _liveTvSeriesTimersPost({required SeriesTimerInfoDto? body}) { final Uri $url = Uri.parse('/LiveTv/SeriesTimers'); final $body = body; final Request $request = Request( @@ -5869,8 +5749,7 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { } @override - Future> _liveTvSeriesTimersTimerIdGet( - {required String? timerId}) { + Future> _liveTvSeriesTimersTimerIdGet({required String? timerId}) { final Uri $url = Uri.parse('/LiveTv/SeriesTimers/${timerId}'); final Request $request = Request( 'GET', @@ -5881,8 +5760,7 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { } @override - Future> _liveTvSeriesTimersTimerIdDelete( - {required String? timerId}) { + Future> _liveTvSeriesTimersTimerIdDelete({required String? timerId}) { final Uri $url = Uri.parse('/LiveTv/SeriesTimers/${timerId}'); final Request $request = Request( 'DELETE', @@ -5928,8 +5806,7 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { client.baseUrl, parameters: $params, ); - return client - .send($request); + return client.send($request); } @override @@ -5946,8 +5823,7 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { } @override - Future> _liveTvTimersTimerIdGet( - {required String? timerId}) { + Future> _liveTvTimersTimerIdGet({required String? timerId}) { final Uri $url = Uri.parse('/LiveTv/Timers/${timerId}'); final Request $request = Request( 'GET', @@ -5958,8 +5834,7 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { } @override - Future> _liveTvTimersTimerIdDelete( - {required String? timerId}) { + Future> _liveTvTimersTimerIdDelete({required String? timerId}) { final Uri $url = Uri.parse('/LiveTv/Timers/${timerId}'); final Request $request = Request( 'DELETE', @@ -5986,12 +5861,9 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { } @override - Future> _liveTvTimersDefaultsGet( - {String? programId}) { + Future> _liveTvTimersDefaultsGet({String? programId}) { final Uri $url = Uri.parse('/LiveTv/Timers/Defaults'); - final Map $params = { - 'programId': programId - }; + final Map $params = {'programId': programId}; final Request $request = Request( 'GET', $url, @@ -6002,8 +5874,7 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { } @override - Future> _liveTvTunerHostsPost( - {required TunerHostInfo? body}) { + Future> _liveTvTunerHostsPost({required TunerHostInfo? body}) { final Uri $url = Uri.parse('/LiveTv/TunerHosts'); final $body = body; final Request $request = Request( @@ -6040,8 +5911,7 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { } @override - Future> _liveTvTunersTunerIdResetPost( - {required String? tunerId}) { + Future> _liveTvTunersTunerIdResetPost({required String? tunerId}) { final Uri $url = Uri.parse('/LiveTv/Tuners/${tunerId}/Reset'); final Request $request = Request( 'POST', @@ -6052,12 +5922,9 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { } @override - Future>> _liveTvTunersDiscoverGet( - {bool? newDevicesOnly}) { + Future>> _liveTvTunersDiscoverGet({bool? newDevicesOnly}) { final Uri $url = Uri.parse('/LiveTv/Tuners/Discover'); - final Map $params = { - 'newDevicesOnly': newDevicesOnly - }; + final Map $params = {'newDevicesOnly': newDevicesOnly}; final Request $request = Request( 'GET', $url, @@ -6068,12 +5935,9 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { } @override - Future>> _liveTvTunersDiscvoverGet( - {bool? newDevicesOnly}) { + Future>> _liveTvTunersDiscvoverGet({bool? newDevicesOnly}) { final Uri $url = Uri.parse('/LiveTv/Tuners/Discvover'); - final Map $params = { - 'newDevicesOnly': newDevicesOnly - }; + final Map $params = {'newDevicesOnly': newDevicesOnly}; final Request $request = Request( 'GET', $url, @@ -6145,9 +6009,7 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { required Object? body, }) { final Uri $url = Uri.parse('/Audio/${itemId}/Lyrics'); - final Map $params = { - 'fileName': fileName - }; + final Map $params = {'fileName': fileName}; final $body = body; final Request $request = Request( 'POST', @@ -6160,8 +6022,7 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { } @override - Future> _audioItemIdLyricsDelete( - {required String? itemId}) { + Future> _audioItemIdLyricsDelete({required String? itemId}) { final Uri $url = Uri.parse('/Audio/${itemId}/Lyrics'); final Request $request = Request( 'DELETE', @@ -6172,8 +6033,7 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { } @override - Future>> _audioItemIdRemoteSearchLyricsGet( - {required String? itemId}) { + Future>> _audioItemIdRemoteSearchLyricsGet({required String? itemId}) { final Uri $url = Uri.parse('/Audio/${itemId}/RemoteSearch/Lyrics'); final Request $request = Request( 'GET', @@ -6188,8 +6048,7 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { required String? itemId, required String? lyricId, }) { - final Uri $url = - Uri.parse('/Audio/${itemId}/RemoteSearch/Lyrics/${lyricId}'); + final Uri $url = Uri.parse('/Audio/${itemId}/RemoteSearch/Lyrics/${lyricId}'); final Request $request = Request( 'POST', $url, @@ -6199,8 +6058,7 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { } @override - Future> _providersLyricsLyricIdGet( - {required String? lyricId}) { + Future> _providersLyricsLyricIdGet({required String? lyricId}) { final Uri $url = Uri.parse('/Providers/Lyrics/${lyricId}'); final Request $request = Request( 'GET', @@ -6274,12 +6132,9 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { } @override - Future> _liveStreamsClosePost( - {required String? liveStreamId}) { + Future> _liveStreamsClosePost({required String? liveStreamId}) { final Uri $url = Uri.parse('/LiveStreams/Close'); - final Map $params = { - 'liveStreamId': liveStreamId - }; + final Map $params = {'liveStreamId': liveStreamId}; final Request $request = Request( 'POST', $url, @@ -6318,8 +6173,7 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { 'itemId': itemId, 'enableDirectPlay': enableDirectPlay, 'enableDirectStream': enableDirectStream, - 'alwaysBurnInSubtitleWhenTranscoding': - alwaysBurnInSubtitleWhenTranscoding, + 'alwaysBurnInSubtitleWhenTranscoding': alwaysBurnInSubtitleWhenTranscoding, }; final $body = body; final Request $request = Request( @@ -6351,17 +6205,14 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { List? includeSegmentTypes, }) { final Uri $url = Uri.parse('/MediaSegments/${itemId}'); - final Map $params = { - 'includeSegmentTypes': includeSegmentTypes - }; + final Map $params = {'includeSegmentTypes': includeSegmentTypes}; final Request $request = Request( 'GET', $url, client.baseUrl, parameters: $params, ); - return client - .send($request); + return client.send($request); } @override @@ -6437,8 +6288,7 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { client.baseUrl, parameters: $params, ); - return client - .send($request); + return client.send($request); } @override @@ -6458,10 +6308,8 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { } @override - Future> _jellyfinPluginOpenSubtitlesValidateLoginInfoPost( - {required LoginInfoInput? body}) { - final Uri $url = - Uri.parse('/Jellyfin.Plugin.OpenSubtitles/ValidateLoginInfo'); + Future> _jellyfinPluginOpenSubtitlesValidateLoginInfoPost({required LoginInfoInput? body}) { + final Uri $url = Uri.parse('/Jellyfin.Plugin.OpenSubtitles/ValidateLoginInfo'); final $body = body; final Request $request = Request( 'POST', @@ -6489,9 +6337,7 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { String? assemblyGuid, }) { final Uri $url = Uri.parse('/Packages/${name}'); - final Map $params = { - 'assemblyGuid': assemblyGuid - }; + final Map $params = {'assemblyGuid': assemblyGuid}; final Request $request = Request( 'GET', $url, @@ -6524,8 +6370,7 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { } @override - Future> _packagesInstallingPackageIdDelete( - {required String? packageId}) { + Future> _packagesInstallingPackageIdDelete({required String? packageId}) { final Uri $url = Uri.parse('/Packages/Installing/${packageId}'); final Request $request = Request( 'DELETE', @@ -6547,8 +6392,7 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { } @override - Future> _repositoriesPost( - {required List? body}) { + Future> _repositoriesPost({required List? body}) { final Uri $url = Uri.parse('/Repositories'); final $body = body; final Request $request = Request( @@ -6598,8 +6442,7 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { client.baseUrl, parameters: $params, ); - return client - .send($request); + return client.send($request); } @override @@ -6625,8 +6468,7 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { DateTime? endDate, num? timezoneOffset, }) { - final Uri $url = - Uri.parse('/user_usage_stats/${breakdownType}/BreakdownReport'); + final Uri $url = Uri.parse('/user_usage_stats/${breakdownType}/BreakdownReport'); final Map $params = { 'days': days, 'endDate': endDate, @@ -6728,12 +6570,9 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { } @override - Future>> _userUsageStatsLoadBackupGet( - {String? backupFilePath}) { + Future>> _userUsageStatsLoadBackupGet({String? backupFilePath}) { final Uri $url = Uri.parse('/user_usage_stats/load_backup'); - final Map $params = { - 'backupFilePath': backupFilePath - }; + final Map $params = {'backupFilePath': backupFilePath}; final Request $request = Request( 'GET', $url, @@ -6801,8 +6640,7 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { } @override - Future> _userUsageStatsSubmitCustomQueryPost( - {required CustomQueryData? body}) { + Future> _userUsageStatsSubmitCustomQueryPost({required CustomQueryData? body}) { final Uri $url = Uri.parse('/user_usage_stats/submit_custom_query'); final $body = body; final Request $request = Request( @@ -6917,8 +6755,7 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { body: $body, parameters: $params, ); - return client - .send($request); + return client.send($request); } @override @@ -6938,8 +6775,7 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { } @override - Future> _playlistsPlaylistIdGet( - {required String? playlistId}) { + Future> _playlistsPlaylistIdGet({required String? playlistId}) { final Uri $url = Uri.parse('/Playlists/${playlistId}'); final Request $request = Request( 'GET', @@ -6975,9 +6811,7 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { List? entryIds, }) { final Uri $url = Uri.parse('/Playlists/${playlistId}/Items'); - final Map $params = { - 'entryIds': entryIds - }; + final Map $params = {'entryIds': entryIds}; final Request $request = Request( 'DELETE', $url, @@ -7016,8 +6850,7 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { client.baseUrl, parameters: $params, ); - return client - .send($request); + return client.send($request); } @override @@ -7026,8 +6859,7 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { required String? itemId, required int? newIndex, }) { - final Uri $url = - Uri.parse('/Playlists/${playlistId}/Items/${itemId}/Move/${newIndex}'); + final Uri $url = Uri.parse('/Playlists/${playlistId}/Items/${itemId}/Move/${newIndex}'); final Request $request = Request( 'POST', $url, @@ -7037,16 +6869,14 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { } @override - Future>> _playlistsPlaylistIdUsersGet( - {required String? playlistId}) { + Future>> _playlistsPlaylistIdUsersGet({required String? playlistId}) { final Uri $url = Uri.parse('/Playlists/${playlistId}/Users'); final Request $request = Request( 'GET', $url, client.baseUrl, ); - return client - .send, PlaylistUserPermissions>($request); + return client.send, PlaylistUserPermissions>($request); } @override @@ -7060,8 +6890,7 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { $url, client.baseUrl, ); - return client - .send($request); + return client.send($request); } @override @@ -7190,8 +7019,7 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { } @override - Future> _sessionsPlayingPost( - {required PlaybackStartInfo? body}) { + Future> _sessionsPlayingPost({required PlaybackStartInfo? body}) { final Uri $url = Uri.parse('/Sessions/Playing'); final $body = body; final Request $request = Request( @@ -7204,12 +7032,9 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { } @override - Future> _sessionsPlayingPingPost( - {required String? playSessionId}) { + Future> _sessionsPlayingPingPost({required String? playSessionId}) { final Uri $url = Uri.parse('/Sessions/Playing/Ping'); - final Map $params = { - 'playSessionId': playSessionId - }; + final Map $params = {'playSessionId': playSessionId}; final Request $request = Request( 'POST', $url, @@ -7220,8 +7045,7 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { } @override - Future> _sessionsPlayingProgressPost( - {required PlaybackProgressInfo? body}) { + Future> _sessionsPlayingProgressPost({required PlaybackProgressInfo? body}) { final Uri $url = Uri.parse('/Sessions/Playing/Progress'); final $body = body; final Request $request = Request( @@ -7234,8 +7058,7 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { } @override - Future> _sessionsPlayingStoppedPost( - {required PlaybackStopInfo? body}) { + Future> _sessionsPlayingStoppedPost({required PlaybackStopInfo? body}) { final Uri $url = Uri.parse('/Sessions/Playing/Stopped'); final $body = body; final Request $request = Request( @@ -7295,8 +7118,7 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { } @override - Future> _pluginsPluginIdDelete( - {required String? pluginId}) { + Future> _pluginsPluginIdDelete({required String? pluginId}) { final Uri $url = Uri.parse('/Plugins/${pluginId}'); final Request $request = Request( 'DELETE', @@ -7363,21 +7185,18 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { } @override - Future> _pluginsPluginIdConfigurationGet( - {required String? pluginId}) { + Future> _pluginsPluginIdConfigurationGet({required String? pluginId}) { final Uri $url = Uri.parse('/Plugins/${pluginId}/Configuration'); final Request $request = Request( 'GET', $url, client.baseUrl, ); - return client - .send($request); + return client.send($request); } @override - Future> _pluginsPluginIdConfigurationPost( - {required String? pluginId}) { + Future> _pluginsPluginIdConfigurationPost({required String? pluginId}) { final Uri $url = Uri.parse('/Plugins/${pluginId}/Configuration'); final Request $request = Request( 'POST', @@ -7388,8 +7207,7 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { } @override - Future> _pluginsPluginIdManifestPost( - {required String? pluginId}) { + Future> _pluginsPluginIdManifestPost({required String? pluginId}) { final Uri $url = Uri.parse('/Plugins/${pluginId}/Manifest'); final Request $request = Request( 'POST', @@ -7419,8 +7237,7 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { } @override - Future> _quickConnectConnectGet( - {required String? secret}) { + Future> _quickConnectConnectGet({required String? secret}) { final Uri $url = Uri.parse('/QuickConnect/Connect'); final Map $params = {'secret': secret}; final Request $request = Request( @@ -7501,8 +7318,7 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { } @override - Future>> - _itemsItemIdRemoteImagesProvidersGet({required String? itemId}) { + Future>> _itemsItemIdRemoteImagesProvidersGet({required String? itemId}) { final Uri $url = Uri.parse('/Items/${itemId}/RemoteImages/Providers'); final Request $request = Request( 'GET', @@ -7532,8 +7348,7 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { } @override - Future> _scheduledTasksTaskIdGet( - {required String? taskId}) { + Future> _scheduledTasksTaskIdGet({required String? taskId}) { final Uri $url = Uri.parse('/ScheduledTasks/${taskId}'); final Request $request = Request( 'GET', @@ -7560,8 +7375,7 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { } @override - Future> _scheduledTasksRunningTaskIdPost( - {required String? taskId}) { + Future> _scheduledTasksRunningTaskIdPost({required String? taskId}) { final Uri $url = Uri.parse('/ScheduledTasks/Running/${taskId}'); final Request $request = Request( 'POST', @@ -7572,8 +7386,7 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { } @override - Future> _scheduledTasksRunningTaskIdDelete( - {required String? taskId}) { + Future> _scheduledTasksRunningTaskIdDelete({required String? taskId}) { final Uri $url = Uri.parse('/ScheduledTasks/Running/${taskId}'); final Request $request = Request( 'DELETE', @@ -7930,13 +7743,11 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { $url, client.baseUrl, ); - return client - .send($request); + return client.send($request); } @override - Future> _startupConfigurationPost( - {required StartupConfigurationDto? body}) { + Future> _startupConfigurationPost({required StartupConfigurationDto? body}) { final Uri $url = Uri.parse('/Startup/Configuration'); final $body = body; final Request $request = Request( @@ -7960,8 +7771,7 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { } @override - Future> _startupRemoteAccessPost( - {required StartupRemoteAccessDto? body}) { + Future> _startupRemoteAccessPost({required StartupRemoteAccessDto? body}) { final Uri $url = Uri.parse('/Startup/RemoteAccess'); final $body = body; final Request $request = Request( @@ -8043,8 +7853,7 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { client.baseUrl, parameters: $params, ); - return client - .send($request); + return client.send($request); } @override @@ -8086,17 +7895,13 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { } @override - Future>> - _itemsItemIdRemoteSearchSubtitlesLanguageGet({ + Future>> _itemsItemIdRemoteSearchSubtitlesLanguageGet({ required String? itemId, required String? language, bool? isPerfectMatch, }) { - final Uri $url = - Uri.parse('/Items/${itemId}/RemoteSearch/Subtitles/${language}'); - final Map $params = { - 'isPerfectMatch': isPerfectMatch - }; + final Uri $url = Uri.parse('/Items/${itemId}/RemoteSearch/Subtitles/${language}'); + final Map $params = {'isPerfectMatch': isPerfectMatch}; final Request $request = Request( 'GET', $url, @@ -8111,8 +7916,7 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { required String? itemId, required String? subtitleId, }) { - final Uri $url = - Uri.parse('/Items/${itemId}/RemoteSearch/Subtitles/${subtitleId}'); + final Uri $url = Uri.parse('/Items/${itemId}/RemoteSearch/Subtitles/${subtitleId}'); final Request $request = Request( 'POST', $url, @@ -8122,8 +7926,7 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { } @override - Future> _providersSubtitlesSubtitlesSubtitleIdGet( - {required String? subtitleId}) { + Future> _providersSubtitlesSubtitlesSubtitleIdGet({required String? subtitleId}) { final Uri $url = Uri.parse('/Providers/Subtitles/Subtitles/${subtitleId}'); final Request $request = Request( 'GET', @@ -8134,18 +7937,14 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { } @override - Future> - _videosItemIdMediaSourceIdSubtitlesIndexSubtitlesM3u8Get({ + Future> _videosItemIdMediaSourceIdSubtitlesIndexSubtitlesM3u8Get({ required String? itemId, required int? index, required String? mediaSourceId, required int? segmentLength, }) { - final Uri $url = Uri.parse( - '/Videos/${itemId}/${mediaSourceId}/Subtitles/${index}/subtitles.m3u8'); - final Map $params = { - 'segmentLength': segmentLength - }; + final Uri $url = Uri.parse('/Videos/${itemId}/${mediaSourceId}/Subtitles/${index}/subtitles.m3u8'); + final Map $params = {'segmentLength': segmentLength}; final Request $request = Request( 'GET', $url, @@ -8224,8 +8023,7 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { } @override - Future> - _videosRouteItemIdRouteMediaSourceIdSubtitlesRouteIndexStreamRouteFormatGet({ + Future> _videosRouteItemIdRouteMediaSourceIdSubtitlesRouteIndexStreamRouteFormatGet({ required String? routeItemId, required String? routeMediaSourceId, required int? routeIndex, @@ -8239,8 +8037,8 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { bool? addVttTimeMap, int? startPositionTicks, }) { - final Uri $url = Uri.parse( - '/Videos/${routeItemId}/${routeMediaSourceId}/Subtitles/${routeIndex}/Stream.${routeFormat}'); + final Uri $url = + Uri.parse('/Videos/${routeItemId}/${routeMediaSourceId}/Subtitles/${routeIndex}/Stream.${routeFormat}'); final Map $params = { 'itemId': itemId, 'mediaSourceId': mediaSourceId, @@ -8284,8 +8082,7 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { client.baseUrl, parameters: $params, ); - return client - .send($request); + return client.send($request); } @override @@ -8300,8 +8097,7 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { } @override - Future> _syncPlayBufferingPost( - {required BufferRequestDto? body}) { + Future> _syncPlayBufferingPost({required BufferRequestDto? body}) { final Uri $url = Uri.parse('/SyncPlay/Buffering'); final $body = body; final Request $request = Request( @@ -8314,8 +8110,7 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { } @override - Future> _syncPlayJoinPost( - {required JoinGroupRequestDto? body}) { + Future> _syncPlayJoinPost({required JoinGroupRequestDto? body}) { final Uri $url = Uri.parse('/SyncPlay/Join'); final $body = body; final Request $request = Request( @@ -8350,8 +8145,7 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { } @override - Future> _syncPlayMovePlaylistItemPost( - {required MovePlaylistItemRequestDto? body}) { + Future> _syncPlayMovePlaylistItemPost({required MovePlaylistItemRequestDto? body}) { final Uri $url = Uri.parse('/SyncPlay/MovePlaylistItem'); final $body = body; final Request $request = Request( @@ -8364,8 +8158,7 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { } @override - Future> _syncPlayNewPost( - {required NewGroupRequestDto? body}) { + Future> _syncPlayNewPost({required NewGroupRequestDto? body}) { final Uri $url = Uri.parse('/SyncPlay/New'); final $body = body; final Request $request = Request( @@ -8378,8 +8171,7 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { } @override - Future> _syncPlayNextItemPost( - {required NextItemRequestDto? body}) { + Future> _syncPlayNextItemPost({required NextItemRequestDto? body}) { final Uri $url = Uri.parse('/SyncPlay/NextItem'); final $body = body; final Request $request = Request( @@ -8416,8 +8208,7 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { } @override - Future> _syncPlayPreviousItemPost( - {required PreviousItemRequestDto? body}) { + Future> _syncPlayPreviousItemPost({required PreviousItemRequestDto? body}) { final Uri $url = Uri.parse('/SyncPlay/PreviousItem'); final $body = body; final Request $request = Request( @@ -8430,8 +8221,7 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { } @override - Future> _syncPlayQueuePost( - {required QueueRequestDto? body}) { + Future> _syncPlayQueuePost({required QueueRequestDto? body}) { final Uri $url = Uri.parse('/SyncPlay/Queue'); final $body = body; final Request $request = Request( @@ -8444,8 +8234,7 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { } @override - Future> _syncPlayReadyPost( - {required ReadyRequestDto? body}) { + Future> _syncPlayReadyPost({required ReadyRequestDto? body}) { final Uri $url = Uri.parse('/SyncPlay/Ready'); final $body = body; final Request $request = Request( @@ -8458,8 +8247,7 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { } @override - Future> _syncPlayRemoveFromPlaylistPost( - {required RemoveFromPlaylistRequestDto? body}) { + Future> _syncPlayRemoveFromPlaylistPost({required RemoveFromPlaylistRequestDto? body}) { final Uri $url = Uri.parse('/SyncPlay/RemoveFromPlaylist'); final $body = body; final Request $request = Request( @@ -8485,8 +8273,7 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { } @override - Future> _syncPlaySetIgnoreWaitPost( - {required IgnoreWaitRequestDto? body}) { + Future> _syncPlaySetIgnoreWaitPost({required IgnoreWaitRequestDto? body}) { final Uri $url = Uri.parse('/SyncPlay/SetIgnoreWait'); final $body = body; final Request $request = Request( @@ -8499,8 +8286,7 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { } @override - Future> _syncPlaySetNewQueuePost( - {required PlayRequestDto? body}) { + Future> _syncPlaySetNewQueuePost({required PlayRequestDto? body}) { final Uri $url = Uri.parse('/SyncPlay/SetNewQueue'); final $body = body; final Request $request = Request( @@ -8513,8 +8299,7 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { } @override - Future> _syncPlaySetPlaylistItemPost( - {required SetPlaylistItemRequestDto? body}) { + Future> _syncPlaySetPlaylistItemPost({required SetPlaylistItemRequestDto? body}) { final Uri $url = Uri.parse('/SyncPlay/SetPlaylistItem'); final $body = body; final Request $request = Request( @@ -8527,8 +8312,7 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { } @override - Future> _syncPlaySetRepeatModePost( - {required SetRepeatModeRequestDto? body}) { + Future> _syncPlaySetRepeatModePost({required SetRepeatModeRequestDto? body}) { final Uri $url = Uri.parse('/SyncPlay/SetRepeatMode'); final $body = body; final Request $request = Request( @@ -8541,8 +8325,7 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { } @override - Future> _syncPlaySetShuffleModePost( - {required SetShuffleModeRequestDto? body}) { + Future> _syncPlaySetShuffleModePost({required SetShuffleModeRequestDto? body}) { final Uri $url = Uri.parse('/SyncPlay/SetShuffleMode'); final $body = body; final Request $request = Request( @@ -8890,8 +8673,7 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { client.baseUrl, parameters: $params, ); - return client - .send($request); + return client.send($request); } @override @@ -8901,11 +8683,8 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { required int? index, String? mediaSourceId, }) { - final Uri $url = - Uri.parse('/Videos/${itemId}/Trickplay/${width}/${index}.jpg'); - final Map $params = { - 'mediaSourceId': mediaSourceId - }; + final Uri $url = Uri.parse('/Videos/${itemId}/Trickplay/${width}/${index}.jpg'); + final Map $params = {'mediaSourceId': mediaSourceId}; final Request $request = Request( 'GET', $url, @@ -8921,11 +8700,8 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { required int? width, String? mediaSourceId, }) { - final Uri $url = - Uri.parse('/Videos/${itemId}/Trickplay/${width}/tiles.m3u8'); - final Map $params = { - 'mediaSourceId': mediaSourceId - }; + final Uri $url = Uri.parse('/Videos/${itemId}/Trickplay/${width}/tiles.m3u8'); + final Map $params = {'mediaSourceId': mediaSourceId}; final Request $request = Request( 'GET', $url, @@ -8976,8 +8752,7 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { client.baseUrl, parameters: $params, ); - return client - .send($request); + return client.send($request); } @override @@ -9011,8 +8786,7 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { client.baseUrl, parameters: $params, ); - return client - .send($request); + return client.send($request); } @override @@ -9057,8 +8831,7 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { client.baseUrl, parameters: $params, ); - return client - .send($request); + return client.send($request); } @override @@ -9091,8 +8864,7 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { client.baseUrl, parameters: $params, ); - return client - .send($request); + return client.send($request); } @override @@ -9275,8 +9047,7 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { } @override - Future> _usersAuthenticateByNamePost( - {required AuthenticateUserByName? body}) { + Future> _usersAuthenticateByNamePost({required AuthenticateUserByName? body}) { final Uri $url = Uri.parse('/Users/AuthenticateByName'); final $body = body; final Request $request = Request( @@ -9289,8 +9060,7 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { } @override - Future> _usersAuthenticateWithQuickConnectPost( - {required QuickConnectDto? body}) { + Future> _usersAuthenticateWithQuickConnectPost({required QuickConnectDto? body}) { final Uri $url = Uri.parse('/Users/AuthenticateWithQuickConnect'); final $body = body; final Request $request = Request( @@ -9321,8 +9091,7 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { } @override - Future> _usersForgotPasswordPost( - {required ForgotPasswordDto? body}) { + Future> _usersForgotPasswordPost({required ForgotPasswordDto? body}) { final Uri $url = Uri.parse('/Users/ForgotPassword'); final $body = body; final Request $request = Request( @@ -9335,8 +9104,7 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { } @override - Future> _usersForgotPasswordPinPost( - {required ForgotPasswordPinDto? body}) { + Future> _usersForgotPasswordPinPost({required ForgotPasswordPinDto? body}) { final Uri $url = Uri.parse('/Users/ForgotPassword/Pin'); final $body = body; final Request $request = Request( @@ -9414,8 +9182,7 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { client.baseUrl, parameters: $params, ); - return client - .send($request); + return client.send($request); } @override @@ -9587,13 +9354,11 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { client.baseUrl, parameters: $params, ); - return client - .send($request); + return client.send($request); } @override - Future>> _userViewsGroupingOptionsGet( - {String? userId}) { + Future>> _userViewsGroupingOptionsGet({String? userId}) { final Uri $url = Uri.parse('/UserViews/GroupingOptions'); final Map $params = {'userId': userId}; final Request $request = Request( @@ -9602,8 +9367,7 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { client.baseUrl, parameters: $params, ); - return client - .send, SpecialViewOptionDto>($request); + return client.send, SpecialViewOptionDto>($request); } @override @@ -9612,8 +9376,7 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { required String? mediaSourceId, required int? index, }) { - final Uri $url = - Uri.parse('/Videos/${videoId}/${mediaSourceId}/Attachments/${index}'); + final Uri $url = Uri.parse('/Videos/${videoId}/${mediaSourceId}/Attachments/${index}'); final Request $request = Request( 'GET', $url, @@ -9635,13 +9398,11 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { client.baseUrl, parameters: $params, ); - return client - .send($request); + return client.send($request); } @override - Future> _videosItemIdAlternateSourcesDelete( - {required String? itemId}) { + Future> _videosItemIdAlternateSourcesDelete({required String? itemId}) { final Uri $url = Uri.parse('/Videos/${itemId}/AlternateSources'); final Request $request = Request( 'DELETE', @@ -10122,8 +9883,7 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { } @override - Future> _videosMergeVersionsPost( - {required List? ids}) { + Future> _videosMergeVersionsPost({required List? ids}) { final Uri $url = Uri.parse('/Videos/MergeVersions'); final Map $params = {'ids': ids}; final Request $request = Request( @@ -10177,8 +9937,7 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { client.baseUrl, parameters: $params, ); - return client - .send($request); + return client.send($request); } @override diff --git a/lib/jellyfin/jellyfin_open_api.swagger.dart b/lib/jellyfin/jellyfin_open_api.swagger.dart index 8d82a2480..6a1598365 100644 --- a/lib/jellyfin/jellyfin_open_api.swagger.dart +++ b/lib/jellyfin/jellyfin_open_api.swagger.dart @@ -54,8 +54,7 @@ abstract class JellyfinOpenApi extends ChopperService { ///@param limit Optional. The maximum number of records to return. ///@param minDate Optional. The minimum date. Format = ISO. ///@param hasUserId Optional. Filter log entries if it has user id, or not. - Future> - systemActivityLogEntriesGet({ + Future> systemActivityLogEntriesGet({ int? startIndex, int? limit, DateTime? minDate, @@ -80,8 +79,7 @@ abstract class JellyfinOpenApi extends ChopperService { ///@param minDate Optional. The minimum date. Format = ISO. ///@param hasUserId Optional. Filter log entries if it has user id, or not. @GET(path: '/System/ActivityLog/Entries') - Future> - _systemActivityLogEntriesGet({ + Future> _systemActivityLogEntriesGet({ @Query('startIndex') int? startIndex, @Query('limit') int? limit, @Query('minDate') DateTime? minDate, @@ -1853,8 +1851,7 @@ abstract class JellyfinOpenApi extends ChopperService { ///Upload a document. @POST(path: '/ClientLog/Document', optionalBody: true) - Future> - _clientLogDocumentPost({@Body() required Object? body}); + Future> _clientLogDocumentPost({@Body() required Object? body}); ///Creates a new collection. ///@param name The name of the collection. @@ -2010,8 +2007,7 @@ abstract class JellyfinOpenApi extends ChopperService { }); ///Gets a default MetadataOptions object. - Future> - systemConfigurationMetadataOptionsDefaultGet() { + Future> systemConfigurationMetadataOptionsDefaultGet() { generatedMapping.putIfAbsent( MetadataOptions, () => MetadataOptions.fromJsonFactory, @@ -2022,8 +2018,7 @@ abstract class JellyfinOpenApi extends ChopperService { ///Gets a default MetadataOptions object. @GET(path: '/System/Configuration/MetadataOptions/Default') - Future> - _systemConfigurationMetadataOptionsDefaultGet(); + Future> _systemConfigurationMetadataOptionsDefaultGet(); ///Gets a dashboard configuration page. ///@param name The name of the page. @@ -2040,8 +2035,7 @@ abstract class JellyfinOpenApi extends ChopperService { ///Gets the configuration pages. ///@param enableInMainMenu Whether to enable in the main menu. - Future>> - webConfigurationPagesGet({bool? enableInMainMenu}) { + Future>> webConfigurationPagesGet({bool? enableInMainMenu}) { generatedMapping.putIfAbsent( ConfigurationPageInfo, () => ConfigurationPageInfo.fromJsonFactory, @@ -2053,8 +2047,7 @@ abstract class JellyfinOpenApi extends ChopperService { ///Gets the configuration pages. ///@param enableInMainMenu Whether to enable in the main menu. @GET(path: '/web/ConfigurationPages') - Future>> - _webConfigurationPagesGet({ + Future>> _webConfigurationPagesGet({ @Query('enableInMainMenu') bool? enableInMainMenu, }); @@ -2150,8 +2143,7 @@ abstract class JellyfinOpenApi extends ChopperService { ///@param displayPreferencesId Display preferences id. ///@param userId User id. ///@param client Client. - Future> - displayPreferencesDisplayPreferencesIdGet({ + Future> displayPreferencesDisplayPreferencesIdGet({ required String? displayPreferencesId, String? userId, required String? $client, @@ -2173,8 +2165,7 @@ abstract class JellyfinOpenApi extends ChopperService { ///@param userId User id. ///@param client Client. @GET(path: '/DisplayPreferences/{displayPreferencesId}') - Future> - _displayPreferencesDisplayPreferencesIdGet({ + Future> _displayPreferencesDisplayPreferencesIdGet({ @Path('displayPreferencesId') required String? displayPreferencesId, @Query('userId') String? userId, @Query('client') required String? $client, @@ -2266,8 +2257,7 @@ abstract class JellyfinOpenApi extends ChopperService { ///@param context Optional. The MediaBrowser.Model.Dlna.EncodingContext. ///@param streamOptions Optional. The streaming options. ///@param enableAudioVbrEncoding Optional. Whether to enable Audio Encoding. - Future> - audioItemIdHls1PlaylistIdSegmentIdContainerGet({ + Future> audioItemIdHls1PlaylistIdSegmentIdContainerGet({ required String? itemId, required String? playlistId, required int? segmentId, @@ -2305,8 +2295,7 @@ abstract class JellyfinOpenApi extends ChopperService { int? height, int? videoBitRate, int? subtitleStreamIndex, - enums.AudioItemIdHls1PlaylistIdSegmentIdContainerGetSubtitleMethod? - subtitleMethod, + enums.AudioItemIdHls1PlaylistIdSegmentIdContainerGetSubtitleMethod? subtitleMethod, int? maxRefFrames, int? maxVideoBitDepth, bool? requireAvc, @@ -2441,8 +2430,7 @@ abstract class JellyfinOpenApi extends ChopperService { ///@param streamOptions Optional. The streaming options. ///@param enableAudioVbrEncoding Optional. Whether to enable Audio Encoding. @GET(path: '/Audio/{itemId}/hls1/{playlistId}/{segmentId}.{container}') - Future> - _audioItemIdHls1PlaylistIdSegmentIdContainerGet({ + Future> _audioItemIdHls1PlaylistIdSegmentIdContainerGet({ @Path('itemId') required String? itemId, @Path('playlistId') required String? playlistId, @Path('segmentId') required int? segmentId, @@ -3025,8 +3013,7 @@ abstract class JellyfinOpenApi extends ChopperService { @Query('videoStreamIndex') int? videoStreamIndex, @Query('context') String? context, @Query('streamOptions') Object? streamOptions, - @Query('enableAdaptiveBitrateStreaming') - bool? enableAdaptiveBitrateStreaming, + @Query('enableAdaptiveBitrateStreaming') bool? enableAdaptiveBitrateStreaming, @Query('enableAudioVbrEncoding') bool? enableAudioVbrEncoding, }); @@ -3293,8 +3280,7 @@ abstract class JellyfinOpenApi extends ChopperService { @Query('videoStreamIndex') int? videoStreamIndex, @Query('context') String? context, @Query('streamOptions') Object? streamOptions, - @Query('enableAdaptiveBitrateStreaming') - bool? enableAdaptiveBitrateStreaming, + @Query('enableAdaptiveBitrateStreaming') bool? enableAdaptiveBitrateStreaming, @Query('enableAudioVbrEncoding') bool? enableAudioVbrEncoding, }); @@ -3356,8 +3342,7 @@ abstract class JellyfinOpenApi extends ChopperService { ///@param streamOptions Optional. The streaming options. ///@param enableAudioVbrEncoding Optional. Whether to enable Audio Encoding. ///@param alwaysBurnInSubtitleWhenTranscoding Whether to always burn in subtitles when transcoding. - Future> - videosItemIdHls1PlaylistIdSegmentIdContainerGet({ + Future> videosItemIdHls1PlaylistIdSegmentIdContainerGet({ required String? itemId, required String? playlistId, required int? segmentId, @@ -3396,8 +3381,7 @@ abstract class JellyfinOpenApi extends ChopperService { int? maxHeight, int? videoBitRate, int? subtitleStreamIndex, - enums.VideosItemIdHls1PlaylistIdSegmentIdContainerGetSubtitleMethod? - subtitleMethod, + enums.VideosItemIdHls1PlaylistIdSegmentIdContainerGetSubtitleMethod? subtitleMethod, int? maxRefFrames, int? maxVideoBitDepth, bool? requireAvc, @@ -3537,8 +3521,7 @@ abstract class JellyfinOpenApi extends ChopperService { ///@param enableAudioVbrEncoding Optional. Whether to enable Audio Encoding. ///@param alwaysBurnInSubtitleWhenTranscoding Whether to always burn in subtitles when transcoding. @GET(path: '/Videos/{itemId}/hls1/{playlistId}/{segmentId}.{container}') - Future> - _videosItemIdHls1PlaylistIdSegmentIdContainerGet({ + Future> _videosItemIdHls1PlaylistIdSegmentIdContainerGet({ @Path('itemId') required String? itemId, @Path('playlistId') required String? playlistId, @Path('segmentId') required int? segmentId, @@ -3595,8 +3578,7 @@ abstract class JellyfinOpenApi extends ChopperService { @Query('context') String? context, @Query('streamOptions') Object? streamOptions, @Query('enableAudioVbrEncoding') bool? enableAudioVbrEncoding, - @Query('alwaysBurnInSubtitleWhenTranscoding') - bool? alwaysBurnInSubtitleWhenTranscoding, + @Query('alwaysBurnInSubtitleWhenTranscoding') bool? alwaysBurnInSubtitleWhenTranscoding, }); ///Gets a hls live stream. @@ -3878,8 +3860,7 @@ abstract class JellyfinOpenApi extends ChopperService { @Query('maxHeight') int? maxHeight, @Query('enableSubtitlesInManifest') bool? enableSubtitlesInManifest, @Query('enableAudioVbrEncoding') bool? enableAudioVbrEncoding, - @Query('alwaysBurnInSubtitleWhenTranscoding') - bool? alwaysBurnInSubtitleWhenTranscoding, + @Query('alwaysBurnInSubtitleWhenTranscoding') bool? alwaysBurnInSubtitleWhenTranscoding, }); ///Gets a video stream using HTTP live streaming. @@ -4151,8 +4132,7 @@ abstract class JellyfinOpenApi extends ChopperService { @Query('context') String? context, @Query('streamOptions') Object? streamOptions, @Query('enableAudioVbrEncoding') bool? enableAudioVbrEncoding, - @Query('alwaysBurnInSubtitleWhenTranscoding') - bool? alwaysBurnInSubtitleWhenTranscoding, + @Query('alwaysBurnInSubtitleWhenTranscoding') bool? alwaysBurnInSubtitleWhenTranscoding, }); ///Gets a video hls playlist stream. @@ -4431,12 +4411,10 @@ abstract class JellyfinOpenApi extends ChopperService { @Query('videoStreamIndex') int? videoStreamIndex, @Query('context') String? context, @Query('streamOptions') Object? streamOptions, - @Query('enableAdaptiveBitrateStreaming') - bool? enableAdaptiveBitrateStreaming, + @Query('enableAdaptiveBitrateStreaming') bool? enableAdaptiveBitrateStreaming, @Query('enableTrickplay') bool? enableTrickplay, @Query('enableAudioVbrEncoding') bool? enableAudioVbrEncoding, - @Query('alwaysBurnInSubtitleWhenTranscoding') - bool? alwaysBurnInSubtitleWhenTranscoding, + @Query('alwaysBurnInSubtitleWhenTranscoding') bool? alwaysBurnInSubtitleWhenTranscoding, }); ///Gets a video hls playlist stream. @@ -4715,17 +4693,14 @@ abstract class JellyfinOpenApi extends ChopperService { @Query('videoStreamIndex') int? videoStreamIndex, @Query('context') String? context, @Query('streamOptions') Object? streamOptions, - @Query('enableAdaptiveBitrateStreaming') - bool? enableAdaptiveBitrateStreaming, + @Query('enableAdaptiveBitrateStreaming') bool? enableAdaptiveBitrateStreaming, @Query('enableTrickplay') bool? enableTrickplay, @Query('enableAudioVbrEncoding') bool? enableAudioVbrEncoding, - @Query('alwaysBurnInSubtitleWhenTranscoding') - bool? alwaysBurnInSubtitleWhenTranscoding, + @Query('alwaysBurnInSubtitleWhenTranscoding') bool? alwaysBurnInSubtitleWhenTranscoding, }); ///Get Default directory browser. - Future> - environmentDefaultDirectoryBrowserGet() { + Future> environmentDefaultDirectoryBrowserGet() { generatedMapping.putIfAbsent( DefaultDirectoryBrowserInfoDto, () => DefaultDirectoryBrowserInfoDto.fromJsonFactory, @@ -4736,15 +4711,13 @@ abstract class JellyfinOpenApi extends ChopperService { ///Get Default directory browser. @GET(path: '/Environment/DefaultDirectoryBrowser') - Future> - _environmentDefaultDirectoryBrowserGet(); + Future> _environmentDefaultDirectoryBrowserGet(); ///Gets the contents of a given directory in the file system. ///@param path The path. ///@param includeFiles An optional filter to include or exclude files from the results. true/false. ///@param includeDirectories An optional filter to include or exclude folders from the results. true/false. - Future>> - environmentDirectoryContentsGet({ + Future>> environmentDirectoryContentsGet({ required String? path, bool? includeFiles, bool? includeDirectories, @@ -4766,8 +4739,7 @@ abstract class JellyfinOpenApi extends ChopperService { ///@param includeFiles An optional filter to include or exclude files from the results. true/false. ///@param includeDirectories An optional filter to include or exclude folders from the results. true/false. @GET(path: '/Environment/DirectoryContents') - Future>> - _environmentDirectoryContentsGet({ + Future>> _environmentDirectoryContentsGet({ @Query('path') required String? path, @Query('includeFiles') bool? includeFiles, @Query('includeDirectories') bool? includeDirectories, @@ -4789,8 +4761,7 @@ abstract class JellyfinOpenApi extends ChopperService { ///Gets network paths. @deprecated - Future>> - environmentNetworkSharesGet() { + Future>> environmentNetworkSharesGet() { generatedMapping.putIfAbsent( FileSystemEntryInfo, () => FileSystemEntryInfo.fromJsonFactory, @@ -4802,8 +4773,7 @@ abstract class JellyfinOpenApi extends ChopperService { ///Gets network paths. @deprecated @GET(path: '/Environment/NetworkShares') - Future>> - _environmentNetworkSharesGet(); + Future>> _environmentNetworkSharesGet(); ///Gets the parent path of a given path. ///@param path The path. @@ -5117,8 +5087,7 @@ abstract class JellyfinOpenApi extends ChopperService { ///@param playlistId The playlist id. ///@param segmentId The segment id. ///@param segmentContainer The segment container. - Future> - videosItemIdHlsPlaylistIdSegmentIdSegmentContainerGet({ + Future> videosItemIdHlsPlaylistIdSegmentIdSegmentContainerGet({ required String? itemId, required String? playlistId, required String? segmentId, @@ -5138,8 +5107,7 @@ abstract class JellyfinOpenApi extends ChopperService { ///@param segmentId The segment id. ///@param segmentContainer The segment container. @GET(path: '/Videos/{itemId}/hls/{playlistId}/{segmentId}.{segmentContainer}') - Future> - _videosItemIdHlsPlaylistIdSegmentIdSegmentContainerGet({ + Future> _videosItemIdHlsPlaylistIdSegmentIdSegmentContainerGet({ @Path('itemId') required String? itemId, @Path('playlistId') required String? playlistId, @Path('segmentId') required String? segmentId, @@ -6085,8 +6053,7 @@ abstract class JellyfinOpenApi extends ChopperService { ///@param imageIndex The image index. Future itemsItemIdImagesImageTypeImageIndexDelete({ required String? itemId, - required enums.ItemsItemIdImagesImageTypeImageIndexDeleteImageType? - imageType, + required enums.ItemsItemIdImagesImageTypeImageIndexDeleteImageType? imageType, required int? imageIndex, }) { return _itemsItemIdImagesImageTypeImageIndexDelete( @@ -6353,10 +6320,10 @@ abstract class JellyfinOpenApi extends ChopperService { ///@param foregroundLayer Optional. Apply a foreground layer on top of the image. ///@param imageIndex Image index. Future> - itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGet({ + itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGet({ required String? itemId, required enums.ItemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetImageType? - imageType, + imageType, required int? maxWidth, required int? maxHeight, int? width, @@ -6366,7 +6333,7 @@ abstract class JellyfinOpenApi extends ChopperService { int? fillHeight, required String? tag, required enums.ItemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetFormat? - format, + format, required num? percentPlayed, required int? unplayedCount, int? blur, @@ -6418,7 +6385,7 @@ abstract class JellyfinOpenApi extends ChopperService { '/Items/{itemId}/Images/{imageType}/{imageIndex}/{tag}/{format}/{maxWidth}/{maxHeight}/{percentPlayed}/{unplayedCount}', ) Future> - _itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGet({ + _itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGet({ @Path('itemId') required String? itemId, @Path('imageType') required String? imageType, @Path('maxWidth') required int? maxWidth, @@ -6457,10 +6424,11 @@ abstract class JellyfinOpenApi extends ChopperService { ///@param foregroundLayer Optional. Apply a foreground layer on top of the image. ///@param imageIndex Image index. Future> - itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHead({ + itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHead({ required String? itemId, - required enums.ItemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadImageType? - imageType, + required enums + .ItemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadImageType? + imageType, required int? maxWidth, required int? maxHeight, int? width, @@ -6470,7 +6438,7 @@ abstract class JellyfinOpenApi extends ChopperService { int? fillHeight, required String? tag, required enums.ItemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadFormat? - format, + format, required num? percentPlayed, required int? unplayedCount, int? blur, @@ -6522,7 +6490,7 @@ abstract class JellyfinOpenApi extends ChopperService { '/Items/{itemId}/Images/{imageType}/{imageIndex}/{tag}/{format}/{maxWidth}/{maxHeight}/{percentPlayed}/{unplayedCount}', ) Future> - _itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHead({ + _itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHead({ @Path('itemId') required String? itemId, @Path('imageType') required String? imageType, @Path('maxWidth') required int? maxWidth, @@ -6549,8 +6517,7 @@ abstract class JellyfinOpenApi extends ChopperService { ///@param newIndex New image index. Future itemsItemIdImagesImageTypeImageIndexIndexPost({ required String? itemId, - required enums.ItemsItemIdImagesImageTypeImageIndexIndexPostImageType? - imageType, + required enums.ItemsItemIdImagesImageTypeImageIndexIndexPostImageType? imageType, required int? imageIndex, required int? newIndex, }) { @@ -6792,8 +6759,7 @@ abstract class JellyfinOpenApi extends ChopperService { ///@param foregroundLayer Optional. Apply a foreground layer on top of the image. Future> musicGenresNameImagesImageTypeImageIndexGet({ required String? name, - required enums.MusicGenresNameImagesImageTypeImageIndexGetImageType? - imageType, + required enums.MusicGenresNameImagesImageTypeImageIndexGetImageType? imageType, required int? imageIndex, String? tag, enums.MusicGenresNameImagesImageTypeImageIndexGetFormat? format, @@ -6850,8 +6816,7 @@ abstract class JellyfinOpenApi extends ChopperService { ///@param backgroundColor Optional. Apply a background color for transparent images. ///@param foregroundLayer Optional. Apply a foreground layer on top of the image. @GET(path: '/MusicGenres/{name}/Images/{imageType}/{imageIndex}') - Future> - _musicGenresNameImagesImageTypeImageIndexGet({ + Future> _musicGenresNameImagesImageTypeImageIndexGet({ @Path('name') required String? name, @Path('imageType') required String? imageType, @Path('imageIndex') required int? imageIndex, @@ -6889,11 +6854,9 @@ abstract class JellyfinOpenApi extends ChopperService { ///@param blur Optional. Blur image. ///@param backgroundColor Optional. Apply a background color for transparent images. ///@param foregroundLayer Optional. Apply a foreground layer on top of the image. - Future> - musicGenresNameImagesImageTypeImageIndexHead({ + Future> musicGenresNameImagesImageTypeImageIndexHead({ required String? name, - required enums.MusicGenresNameImagesImageTypeImageIndexHeadImageType? - imageType, + required enums.MusicGenresNameImagesImageTypeImageIndexHeadImageType? imageType, required int? imageIndex, String? tag, enums.MusicGenresNameImagesImageTypeImageIndexHeadFormat? format, @@ -6950,8 +6913,7 @@ abstract class JellyfinOpenApi extends ChopperService { ///@param backgroundColor Optional. Apply a background color for transparent images. ///@param foregroundLayer Optional. Apply a foreground layer on top of the image. @HEAD(path: '/MusicGenres/{name}/Images/{imageType}/{imageIndex}') - Future> - _musicGenresNameImagesImageTypeImageIndexHead({ + Future> _musicGenresNameImagesImageTypeImageIndexHead({ @Path('name') required String? name, @Path('imageType') required String? imageType, @Path('imageIndex') required int? imageIndex, @@ -8068,8 +8030,7 @@ abstract class JellyfinOpenApi extends ChopperService { ///@param enableUserData Optional. Include user data. ///@param imageTypeLimit Optional. The max number of images to return, per image type. ///@param enableImageTypes Optional. The image types to include in the output. - Future> - musicGenresNameInstantMixGet({ + Future> musicGenresNameInstantMixGet({ required String? name, String? userId, int? limit, @@ -8106,8 +8067,7 @@ abstract class JellyfinOpenApi extends ChopperService { ///@param imageTypeLimit Optional. The max number of images to return, per image type. ///@param enableImageTypes Optional. The image types to include in the output. @GET(path: '/MusicGenres/{name}/InstantMix') - Future> - _musicGenresNameInstantMixGet({ + Future> _musicGenresNameInstantMixGet({ @Path('name') required String? name, @Query('userId') String? userId, @Query('limit') int? limit, @@ -8184,8 +8144,7 @@ abstract class JellyfinOpenApi extends ChopperService { ///@param enableUserData Optional. Include user data. ///@param imageTypeLimit Optional. The max number of images to return, per image type. ///@param enableImageTypes Optional. The image types to include in the output. - Future> - playlistsItemIdInstantMixGet({ + Future> playlistsItemIdInstantMixGet({ required String? itemId, String? userId, int? limit, @@ -8222,8 +8181,7 @@ abstract class JellyfinOpenApi extends ChopperService { ///@param imageTypeLimit Optional. The max number of images to return, per image type. ///@param enableImageTypes Optional. The image types to include in the output. @GET(path: '/Playlists/{itemId}/InstantMix') - Future> - _playlistsItemIdInstantMixGet({ + Future> _playlistsItemIdInstantMixGet({ @Path('itemId') required String? itemId, @Query('userId') String? userId, @Query('limit') int? limit, @@ -8307,8 +8265,8 @@ abstract class JellyfinOpenApi extends ChopperService { ///Get the item's external id info. ///@param itemId Item id. @GET(path: '/Items/{itemId}/ExternalIdInfos') - Future>> - _itemsItemIdExternalIdInfosGet({@Path('itemId') required String? itemId}); + Future>> _itemsItemIdExternalIdInfosGet( + {@Path('itemId') required String? itemId}); ///Applies search criteria to an item and refreshes metadata. ///@param itemId Item id. @@ -8349,14 +8307,13 @@ abstract class JellyfinOpenApi extends ChopperService { ///Get book remote search. @POST(path: '/Items/RemoteSearch/Book', optionalBody: true) - Future>> - _itemsRemoteSearchBookPost({ + Future>> _itemsRemoteSearchBookPost({ @Body() required BookInfoRemoteSearchQuery? body, }); ///Get box set remote search. - Future>> - itemsRemoteSearchBoxSetPost({required BoxSetInfoRemoteSearchQuery? body}) { + Future>> itemsRemoteSearchBoxSetPost( + {required BoxSetInfoRemoteSearchQuery? body}) { generatedMapping.putIfAbsent( RemoteSearchResult, () => RemoteSearchResult.fromJsonFactory, @@ -8367,14 +8324,13 @@ abstract class JellyfinOpenApi extends ChopperService { ///Get box set remote search. @POST(path: '/Items/RemoteSearch/BoxSet', optionalBody: true) - Future>> - _itemsRemoteSearchBoxSetPost({ + Future>> _itemsRemoteSearchBoxSetPost({ @Body() required BoxSetInfoRemoteSearchQuery? body, }); ///Get movie remote search. - Future>> - itemsRemoteSearchMoviePost({required MovieInfoRemoteSearchQuery? body}) { + Future>> itemsRemoteSearchMoviePost( + {required MovieInfoRemoteSearchQuery? body}) { generatedMapping.putIfAbsent( RemoteSearchResult, () => RemoteSearchResult.fromJsonFactory, @@ -8385,14 +8341,13 @@ abstract class JellyfinOpenApi extends ChopperService { ///Get movie remote search. @POST(path: '/Items/RemoteSearch/Movie', optionalBody: true) - Future>> - _itemsRemoteSearchMoviePost({ + Future>> _itemsRemoteSearchMoviePost({ @Body() required MovieInfoRemoteSearchQuery? body, }); ///Get music album remote search. - Future>> - itemsRemoteSearchMusicAlbumPost({required AlbumInfoRemoteSearchQuery? body}) { + Future>> itemsRemoteSearchMusicAlbumPost( + {required AlbumInfoRemoteSearchQuery? body}) { generatedMapping.putIfAbsent( RemoteSearchResult, () => RemoteSearchResult.fromJsonFactory, @@ -8403,14 +8358,12 @@ abstract class JellyfinOpenApi extends ChopperService { ///Get music album remote search. @POST(path: '/Items/RemoteSearch/MusicAlbum', optionalBody: true) - Future>> - _itemsRemoteSearchMusicAlbumPost({ + Future>> _itemsRemoteSearchMusicAlbumPost({ @Body() required AlbumInfoRemoteSearchQuery? body, }); ///Get music artist remote search. - Future>> - itemsRemoteSearchMusicArtistPost({ + Future>> itemsRemoteSearchMusicArtistPost({ required ArtistInfoRemoteSearchQuery? body, }) { generatedMapping.putIfAbsent( @@ -8423,14 +8376,12 @@ abstract class JellyfinOpenApi extends ChopperService { ///Get music artist remote search. @POST(path: '/Items/RemoteSearch/MusicArtist', optionalBody: true) - Future>> - _itemsRemoteSearchMusicArtistPost({ + Future>> _itemsRemoteSearchMusicArtistPost({ @Body() required ArtistInfoRemoteSearchQuery? body, }); ///Get music video remote search. - Future>> - itemsRemoteSearchMusicVideoPost({ + Future>> itemsRemoteSearchMusicVideoPost({ required MusicVideoInfoRemoteSearchQuery? body, }) { generatedMapping.putIfAbsent( @@ -8443,14 +8394,12 @@ abstract class JellyfinOpenApi extends ChopperService { ///Get music video remote search. @POST(path: '/Items/RemoteSearch/MusicVideo', optionalBody: true) - Future>> - _itemsRemoteSearchMusicVideoPost({ + Future>> _itemsRemoteSearchMusicVideoPost({ @Body() required MusicVideoInfoRemoteSearchQuery? body, }); ///Get person remote search. - Future>> - itemsRemoteSearchPersonPost({ + Future>> itemsRemoteSearchPersonPost({ required PersonLookupInfoRemoteSearchQuery? body, }) { generatedMapping.putIfAbsent( @@ -8463,14 +8412,13 @@ abstract class JellyfinOpenApi extends ChopperService { ///Get person remote search. @POST(path: '/Items/RemoteSearch/Person', optionalBody: true) - Future>> - _itemsRemoteSearchPersonPost({ + Future>> _itemsRemoteSearchPersonPost({ @Body() required PersonLookupInfoRemoteSearchQuery? body, }); ///Get series remote search. - Future>> - itemsRemoteSearchSeriesPost({required SeriesInfoRemoteSearchQuery? body}) { + Future>> itemsRemoteSearchSeriesPost( + {required SeriesInfoRemoteSearchQuery? body}) { generatedMapping.putIfAbsent( RemoteSearchResult, () => RemoteSearchResult.fromJsonFactory, @@ -8481,14 +8429,13 @@ abstract class JellyfinOpenApi extends ChopperService { ///Get series remote search. @POST(path: '/Items/RemoteSearch/Series', optionalBody: true) - Future>> - _itemsRemoteSearchSeriesPost({ + Future>> _itemsRemoteSearchSeriesPost({ @Body() required SeriesInfoRemoteSearchQuery? body, }); ///Get trailer remote search. - Future>> - itemsRemoteSearchTrailerPost({required TrailerInfoRemoteSearchQuery? body}) { + Future>> itemsRemoteSearchTrailerPost( + {required TrailerInfoRemoteSearchQuery? body}) { generatedMapping.putIfAbsent( RemoteSearchResult, () => RemoteSearchResult.fromJsonFactory, @@ -8499,8 +8446,7 @@ abstract class JellyfinOpenApi extends ChopperService { ///Get trailer remote search. @POST(path: '/Items/RemoteSearch/Trailer', optionalBody: true) - Future>> - _itemsRemoteSearchTrailerPost({ + Future>> _itemsRemoteSearchTrailerPost({ @Body() required TrailerInfoRemoteSearchQuery? body, }); @@ -9374,8 +9320,8 @@ abstract class JellyfinOpenApi extends ChopperService { ///@param itemId @deprecated @GET(path: '/Items/{itemId}/CriticReviews') - Future> - _itemsItemIdCriticReviewsGet({@Path('itemId') required String? itemId}); + Future> _itemsItemIdCriticReviewsGet( + {@Path('itemId') required String? itemId}); ///Downloads item media. ///@param itemId The item id. @@ -9599,8 +9545,7 @@ abstract class JellyfinOpenApi extends ChopperService { ///Gets the library options info. ///@param libraryContentType Library content type. ///@param isNewLibrary Whether this is a new library. - Future> - librariesAvailableOptionsGet({ + Future> librariesAvailableOptionsGet({ enums.LibrariesAvailableOptionsGetLibraryContentType? libraryContentType, bool? isNewLibrary, }) { @@ -9619,8 +9564,7 @@ abstract class JellyfinOpenApi extends ChopperService { ///@param libraryContentType Library content type. ///@param isNewLibrary Whether this is a new library. @GET(path: '/Libraries/AvailableOptions') - Future> - _librariesAvailableOptionsGet({ + Future> _librariesAvailableOptionsGet({ @Query('libraryContentType') String? libraryContentType, @Query('isNewLibrary') bool? isNewLibrary, }); @@ -10039,8 +9983,7 @@ abstract class JellyfinOpenApi extends ChopperService { ///Get channel mapping options. ///@param providerId Provider id. - Future> - liveTvChannelMappingOptionsGet({String? providerId}) { + Future> liveTvChannelMappingOptionsGet({String? providerId}) { generatedMapping.putIfAbsent( ChannelMappingOptionsDto, () => ChannelMappingOptionsDto.fromJsonFactory, @@ -10052,8 +9995,8 @@ abstract class JellyfinOpenApi extends ChopperService { ///Get channel mapping options. ///@param providerId Provider id. @GET(path: '/LiveTv/ChannelMappingOptions') - Future> - _liveTvChannelMappingOptionsGet({@Query('providerId') String? providerId}); + Future> _liveTvChannelMappingOptionsGet( + {@Query('providerId') String? providerId}); ///Set channel mappings. Future> liveTvChannelMappingsPost({ @@ -10290,8 +10233,7 @@ abstract class JellyfinOpenApi extends ChopperService { }); ///Gets default listings provider info. - Future> - liveTvListingProvidersDefaultGet() { + Future> liveTvListingProvidersDefaultGet() { generatedMapping.putIfAbsent( ListingsProviderInfo, () => ListingsProviderInfo.fromJsonFactory, @@ -10302,8 +10244,7 @@ abstract class JellyfinOpenApi extends ChopperService { ///Gets default listings provider info. @GET(path: '/LiveTv/ListingProviders/Default') - Future> - _liveTvListingProvidersDefaultGet(); + Future> _liveTvListingProvidersDefaultGet(); ///Gets available lineups. ///@param id Provider id. @@ -10340,15 +10281,13 @@ abstract class JellyfinOpenApi extends ChopperService { }); ///Gets available countries. - Future> - liveTvListingProvidersSchedulesDirectCountriesGet() { + Future> liveTvListingProvidersSchedulesDirectCountriesGet() { return _liveTvListingProvidersSchedulesDirectCountriesGet(); } ///Gets available countries. @GET(path: '/LiveTv/ListingProviders/SchedulesDirect/Countries') - Future> - _liveTvListingProvidersSchedulesDirectCountriesGet(); + Future> _liveTvListingProvidersSchedulesDirectCountriesGet(); ///Gets a live tv recording stream. ///@param recordingId Recording id. @@ -10368,8 +10307,7 @@ abstract class JellyfinOpenApi extends ChopperService { ///Gets a live tv channel stream. ///@param streamId Stream id. ///@param container Container type. - Future> - liveTvLiveStreamFilesStreamIdStreamContainerGet({ + Future> liveTvLiveStreamFilesStreamIdStreamContainerGet({ required String? streamId, required String? container, }) { @@ -10383,8 +10321,7 @@ abstract class JellyfinOpenApi extends ChopperService { ///@param streamId Stream id. ///@param container Container type. @GET(path: '/LiveTv/LiveStreamFiles/{streamId}/stream.{container}') - Future> - _liveTvLiveStreamFilesStreamIdStreamContainerGet({ + Future> _liveTvLiveStreamFilesStreamIdStreamContainerGet({ @Path('streamId') required String? streamId, @Path('container') required String? container, }); @@ -10601,8 +10538,7 @@ abstract class JellyfinOpenApi extends ChopperService { ///@param fields Optional. Specify additional fields of information to return in the output. ///@param enableUserData Optional. include user data. ///@param enableTotalRecordCount Retrieve total record count. - Future> - liveTvProgramsRecommendedGet({ + Future> liveTvProgramsRecommendedGet({ String? userId, int? startIndex, int? limit, @@ -10666,8 +10602,7 @@ abstract class JellyfinOpenApi extends ChopperService { ///@param enableUserData Optional. include user data. ///@param enableTotalRecordCount Retrieve total record count. @GET(path: '/LiveTv/Programs/Recommended') - Future> - _liveTvProgramsRecommendedGet({ + Future> _liveTvProgramsRecommendedGet({ @Query('userId') String? userId, @Query('startIndex') int? startIndex, @Query('limit') int? limit, @@ -10992,8 +10927,7 @@ abstract class JellyfinOpenApi extends ChopperService { ///Gets live tv series timers. ///@param sortBy Optional. Sort by SortName or Priority. ///@param sortOrder Optional. Sort in Ascending or Descending order. - Future> - liveTvSeriesTimersGet({ + Future> liveTvSeriesTimersGet({ String? sortBy, enums.LiveTvSeriesTimersGetSortOrder? sortOrder, }) { @@ -11012,8 +10946,7 @@ abstract class JellyfinOpenApi extends ChopperService { ///@param sortBy Optional. Sort by SortName or Priority. ///@param sortOrder Optional. Sort in Ascending or Descending order. @GET(path: '/LiveTv/SeriesTimers') - Future> - _liveTvSeriesTimersGet({ + Future> _liveTvSeriesTimersGet({ @Query('sortBy') String? sortBy, @Query('sortOrder') String? sortOrder, }); @@ -11338,8 +11271,7 @@ abstract class JellyfinOpenApi extends ChopperService { Future>> _localizationOptionsGet(); ///Gets known parental ratings. - Future>> - localizationParentalRatingsGet() { + Future>> localizationParentalRatingsGet() { generatedMapping.putIfAbsent( ParentalRating, () => ParentalRating.fromJsonFactory, @@ -11350,8 +11282,7 @@ abstract class JellyfinOpenApi extends ChopperService { ///Gets known parental ratings. @GET(path: '/Localization/ParentalRatings') - Future>> - _localizationParentalRatingsGet(); + Future>> _localizationParentalRatingsGet(); ///Gets an item's lyrics. ///@param itemId Item id. @@ -11412,8 +11343,7 @@ abstract class JellyfinOpenApi extends ChopperService { ///Search remote lyrics. ///@param itemId The item id. - Future>> - audioItemIdRemoteSearchLyricsGet({required String? itemId}) { + Future>> audioItemIdRemoteSearchLyricsGet({required String? itemId}) { generatedMapping.putIfAbsent( RemoteLyricInfoDto, () => RemoteLyricInfoDto.fromJsonFactory, @@ -11425,8 +11355,8 @@ abstract class JellyfinOpenApi extends ChopperService { ///Search remote lyrics. ///@param itemId The item id. @GET(path: '/Audio/{itemId}/RemoteSearch/Lyrics') - Future>> - _audioItemIdRemoteSearchLyricsGet({@Path('itemId') required String? itemId}); + Future>> _audioItemIdRemoteSearchLyricsGet( + {@Path('itemId') required String? itemId}); ///Downloads a remote lyric. ///@param itemId The item id. @@ -11682,8 +11612,7 @@ abstract class JellyfinOpenApi extends ChopperService { @Query('itemId') String? itemId, @Query('enableDirectPlay') bool? enableDirectPlay, @Query('enableDirectStream') bool? enableDirectStream, - @Query('alwaysBurnInSubtitleWhenTranscoding') - bool? alwaysBurnInSubtitleWhenTranscoding, + @Query('alwaysBurnInSubtitleWhenTranscoding') bool? alwaysBurnInSubtitleWhenTranscoding, @Body() required OpenLiveStreamDto? body, }); @@ -12645,8 +12574,7 @@ abstract class JellyfinOpenApi extends ChopperService { ///@param imageTypeLimit Optional. The max number of images to return, per image type. ///@param enableImageTypes Optional. The image types to include in the output. @GET(path: '/Playlists/{playlistId}/Items') - Future> - _playlistsPlaylistIdItemsGet({ + Future> _playlistsPlaylistIdItemsGet({ @Path('playlistId') required String? playlistId, @Query('userId') String? userId, @Query('startIndex') int? startIndex, @@ -12690,8 +12618,7 @@ abstract class JellyfinOpenApi extends ChopperService { ///Get a playlist's users. ///@param playlistId The playlist id. - Future>> - playlistsPlaylistIdUsersGet({required String? playlistId}) { + Future>> playlistsPlaylistIdUsersGet({required String? playlistId}) { generatedMapping.putIfAbsent( PlaylistUserPermissions, () => PlaylistUserPermissions.fromJsonFactory, @@ -12703,16 +12630,14 @@ abstract class JellyfinOpenApi extends ChopperService { ///Get a playlist's users. ///@param playlistId The playlist id. @GET(path: '/Playlists/{playlistId}/Users') - Future>> - _playlistsPlaylistIdUsersGet({ + Future>> _playlistsPlaylistIdUsersGet({ @Path('playlistId') required String? playlistId, }); ///Get a playlist user. ///@param playlistId The playlist id. ///@param userId The user id. - Future> - playlistsPlaylistIdUsersUserIdGet({ + Future> playlistsPlaylistIdUsersUserIdGet({ required String? playlistId, required String? userId, }) { @@ -12731,8 +12656,7 @@ abstract class JellyfinOpenApi extends ChopperService { ///@param playlistId The playlist id. ///@param userId The user id. @GET(path: '/Playlists/{playlistId}/Users/{userId}') - Future> - _playlistsPlaylistIdUsersUserIdGet({ + Future> _playlistsPlaylistIdUsersUserIdGet({ @Path('playlistId') required String? playlistId, @Path('userId') required String? userId, }); @@ -13179,8 +13103,7 @@ abstract class JellyfinOpenApi extends ChopperService { ///Gets plugin configuration. ///@param pluginId Plugin id. - Future> - pluginsPluginIdConfigurationGet({required String? pluginId}) { + Future> pluginsPluginIdConfigurationGet({required String? pluginId}) { generatedMapping.putIfAbsent( BasePluginConfiguration, () => BasePluginConfiguration.fromJsonFactory, @@ -13192,8 +13115,7 @@ abstract class JellyfinOpenApi extends ChopperService { ///Gets plugin configuration. ///@param pluginId Plugin id. @GET(path: '/Plugins/{pluginId}/Configuration') - Future> - _pluginsPluginIdConfigurationGet({ + Future> _pluginsPluginIdConfigurationGet({ @Path('pluginId') required String? pluginId, }); @@ -13365,8 +13287,7 @@ abstract class JellyfinOpenApi extends ChopperService { ///Gets available remote image providers for an item. ///@param itemId Item Id. - Future>> - itemsItemIdRemoteImagesProvidersGet({required String? itemId}) { + Future>> itemsItemIdRemoteImagesProvidersGet({required String? itemId}) { generatedMapping.putIfAbsent( ImageProviderInfo, () => ImageProviderInfo.fromJsonFactory, @@ -13378,8 +13299,7 @@ abstract class JellyfinOpenApi extends ChopperService { ///Gets available remote image providers for an item. ///@param itemId Item Id. @GET(path: '/Items/{itemId}/RemoteImages/Providers') - Future>> - _itemsItemIdRemoteImagesProvidersGet({ + Future>> _itemsItemIdRemoteImagesProvidersGet({ @Path('itemId') required String? itemId, }); @@ -14193,8 +14113,7 @@ abstract class JellyfinOpenApi extends ChopperService { ///@param itemId The item id. ///@param language The language of the subtitles. ///@param isPerfectMatch Optional. Only show subtitles which are a perfect match. - Future>> - itemsItemIdRemoteSearchSubtitlesLanguageGet({ + Future>> itemsItemIdRemoteSearchSubtitlesLanguageGet({ required String? itemId, required String? language, bool? isPerfectMatch, @@ -14216,8 +14135,7 @@ abstract class JellyfinOpenApi extends ChopperService { ///@param language The language of the subtitles. ///@param isPerfectMatch Optional. Only show subtitles which are a perfect match. @GET(path: '/Items/{itemId}/RemoteSearch/Subtitles/{language}') - Future>> - _itemsItemIdRemoteSearchSubtitlesLanguageGet({ + Future>> _itemsItemIdRemoteSearchSubtitlesLanguageGet({ @Path('itemId') required String? itemId, @Path('language') required String? language, @Query('isPerfectMatch') bool? isPerfectMatch, @@ -14268,8 +14186,7 @@ abstract class JellyfinOpenApi extends ChopperService { ///@param index The subtitle stream index. ///@param mediaSourceId The media source id. ///@param segmentLength The subtitle segment length. - Future> - videosItemIdMediaSourceIdSubtitlesIndexSubtitlesM3u8Get({ + Future> videosItemIdMediaSourceIdSubtitlesIndexSubtitlesM3u8Get({ required String? itemId, required int? index, required String? mediaSourceId, @@ -14291,8 +14208,7 @@ abstract class JellyfinOpenApi extends ChopperService { @GET( path: '/Videos/{itemId}/{mediaSourceId}/Subtitles/{index}/subtitles.m3u8', ) - Future> - _videosItemIdMediaSourceIdSubtitlesIndexSubtitlesM3u8Get({ + Future> _videosItemIdMediaSourceIdSubtitlesIndexSubtitlesM3u8Get({ @Path('itemId') required String? itemId, @Path('index') required int? index, @Path('mediaSourceId') required String? mediaSourceId, @@ -14350,7 +14266,7 @@ abstract class JellyfinOpenApi extends ChopperService { ///@param copyTimestamps Optional. Whether to copy the timestamps. ///@param addVttTimeMap Optional. Whether to add a VTT time map. Future> - videosRouteItemIdRouteMediaSourceIdSubtitlesRouteIndexRouteStartPositionTicksStreamRouteFormatGet({ + videosRouteItemIdRouteMediaSourceIdSubtitlesRouteIndexRouteStartPositionTicksStreamRouteFormatGet({ required String? routeItemId, required String? routeMediaSourceId, required int? routeIndex, @@ -14401,7 +14317,7 @@ abstract class JellyfinOpenApi extends ChopperService { '/Videos/{routeItemId}/{routeMediaSourceId}/Subtitles/{routeIndex}/{routeStartPositionTicks}/Stream.{routeFormat}', ) Future> - _videosRouteItemIdRouteMediaSourceIdSubtitlesRouteIndexRouteStartPositionTicksStreamRouteFormatGet({ + _videosRouteItemIdRouteMediaSourceIdSubtitlesRouteIndexRouteStartPositionTicksStreamRouteFormatGet({ @Path('routeItemId') required String? routeItemId, @Path('routeMediaSourceId') required String? routeMediaSourceId, @Path('routeIndex') required int? routeIndex, @@ -14430,8 +14346,7 @@ abstract class JellyfinOpenApi extends ChopperService { ///@param copyTimestamps Optional. Whether to copy the timestamps. ///@param addVttTimeMap Optional. Whether to add a VTT time map. ///@param startPositionTicks The start position of the subtitle in ticks. - Future> - videosRouteItemIdRouteMediaSourceIdSubtitlesRouteIndexStreamRouteFormatGet({ + Future> videosRouteItemIdRouteMediaSourceIdSubtitlesRouteIndexStreamRouteFormatGet({ required String? routeItemId, required String? routeMediaSourceId, required int? routeIndex, @@ -14475,11 +14390,9 @@ abstract class JellyfinOpenApi extends ChopperService { ///@param addVttTimeMap Optional. Whether to add a VTT time map. ///@param startPositionTicks The start position of the subtitle in ticks. @GET( - path: - '/Videos/{routeItemId}/{routeMediaSourceId}/Subtitles/{routeIndex}/Stream.{routeFormat}', + path: '/Videos/{routeItemId}/{routeMediaSourceId}/Subtitles/{routeIndex}/Stream.{routeFormat}', ) - Future> - _videosRouteItemIdRouteMediaSourceIdSubtitlesRouteIndexStreamRouteFormatGet({ + Future> _videosRouteItemIdRouteMediaSourceIdSubtitlesRouteIndexStreamRouteFormatGet({ @Path('routeItemId') required String? routeItemId, @Path('routeMediaSourceId') required String? routeMediaSourceId, @Path('routeIndex') required int? routeIndex, @@ -16077,8 +15990,8 @@ abstract class JellyfinOpenApi extends ChopperService { }); ///Authenticates a user with quick connect. - Future> - usersAuthenticateWithQuickConnectPost({required QuickConnectDto? body}) { + Future> usersAuthenticateWithQuickConnectPost( + {required QuickConnectDto? body}) { generatedMapping.putIfAbsent( AuthenticationResult, () => AuthenticationResult.fromJsonFactory, @@ -16089,8 +16002,7 @@ abstract class JellyfinOpenApi extends ChopperService { ///Authenticates a user with quick connect. @POST(path: '/Users/AuthenticateWithQuickConnect', optionalBody: true) - Future> - _usersAuthenticateWithQuickConnectPost({ + Future> _usersAuthenticateWithQuickConnectPost({ @Body() required QuickConnectDto? body, }); @@ -16506,8 +16418,7 @@ abstract class JellyfinOpenApi extends ChopperService { ///Get user view grouping options. ///@param userId User id. - Future>> - userViewsGroupingOptionsGet({String? userId}) { + Future>> userViewsGroupingOptionsGet({String? userId}) { generatedMapping.putIfAbsent( SpecialViewOptionDto, () => SpecialViewOptionDto.fromJsonFactory, @@ -16519,15 +16430,13 @@ abstract class JellyfinOpenApi extends ChopperService { ///Get user view grouping options. ///@param userId User id. @GET(path: '/UserViews/GroupingOptions') - Future>> - _userViewsGroupingOptionsGet({@Query('userId') String? userId}); + Future>> _userViewsGroupingOptionsGet({@Query('userId') String? userId}); ///Get video attachment. ///@param videoId Video ID. ///@param mediaSourceId Media Source ID. ///@param index Attachment Index. - Future> - videosVideoIdMediaSourceIdAttachmentsIndexGet({ + Future> videosVideoIdMediaSourceIdAttachmentsIndexGet({ required String? videoId, required String? mediaSourceId, required int? index, @@ -16544,8 +16453,7 @@ abstract class JellyfinOpenApi extends ChopperService { ///@param mediaSourceId Media Source ID. ///@param index Attachment Index. @GET(path: '/Videos/{videoId}/{mediaSourceId}/Attachments/{index}') - Future> - _videosVideoIdMediaSourceIdAttachmentsIndexGet({ + Future> _videosVideoIdMediaSourceIdAttachmentsIndexGet({ @Path('videoId') required String? videoId, @Path('mediaSourceId') required String? mediaSourceId, @Path('index') required int? index, @@ -16554,8 +16462,8 @@ abstract class JellyfinOpenApi extends ChopperService { ///Gets additional parts for a video. ///@param itemId The item id. ///@param userId Optional. Filter by user id, and attach user data. - Future> - videosItemIdAdditionalPartsGet({required String? itemId, String? userId}) { + Future> videosItemIdAdditionalPartsGet( + {required String? itemId, String? userId}) { generatedMapping.putIfAbsent( BaseItemDtoQueryResult, () => BaseItemDtoQueryResult.fromJsonFactory, @@ -16568,8 +16476,7 @@ abstract class JellyfinOpenApi extends ChopperService { ///@param itemId The item id. ///@param userId Optional. Filter by user id, and attach user data. @GET(path: '/Videos/{itemId}/AdditionalParts') - Future> - _videosItemIdAdditionalPartsGet({ + Future> _videosItemIdAdditionalPartsGet({ @Path('itemId') required String? itemId, @Query('userId') String? userId, }); @@ -17819,8 +17726,7 @@ class AccessSchedule { this.endHour, }); - factory AccessSchedule.fromJson(Map json) => - _$AccessScheduleFromJson(json); + factory AccessSchedule.fromJson(Map json) => _$AccessScheduleFromJson(json); static const toJsonFactory = _$AccessScheduleToJson; Map toJson() => _$AccessScheduleToJson(this); @@ -17846,10 +17752,8 @@ class AccessSchedule { bool operator ==(Object other) { return identical(this, other) || (other is AccessSchedule && - (identical(other.id, id) || - const DeepCollectionEquality().equals(other.id, id)) && - (identical(other.userId, userId) || - const DeepCollectionEquality().equals(other.userId, userId)) && + (identical(other.id, id) || const DeepCollectionEquality().equals(other.id, id)) && + (identical(other.userId, userId) || const DeepCollectionEquality().equals(other.userId, userId)) && (identical(other.dayOfWeek, dayOfWeek) || const DeepCollectionEquality().equals( other.dayOfWeek, @@ -17860,8 +17764,7 @@ class AccessSchedule { other.startHour, startHour, )) && - (identical(other.endHour, endHour) || - const DeepCollectionEquality().equals(other.endHour, endHour))); + (identical(other.endHour, endHour) || const DeepCollectionEquality().equals(other.endHour, endHour))); } @override @@ -17926,8 +17829,7 @@ class ActivityLogEntry { this.severity, }); - factory ActivityLogEntry.fromJson(Map json) => - _$ActivityLogEntryFromJson(json); + factory ActivityLogEntry.fromJson(Map json) => _$ActivityLogEntryFromJson(json); static const toJsonFactory = _$ActivityLogEntryToJson; Map toJson() => _$ActivityLogEntryToJson(this); @@ -17964,10 +17866,8 @@ class ActivityLogEntry { bool operator ==(Object other) { return identical(this, other) || (other is ActivityLogEntry && - (identical(other.id, id) || - const DeepCollectionEquality().equals(other.id, id)) && - (identical(other.name, name) || - const DeepCollectionEquality().equals(other.name, name)) && + (identical(other.id, id) || const DeepCollectionEquality().equals(other.id, id)) && + (identical(other.name, name) || const DeepCollectionEquality().equals(other.name, name)) && (identical(other.overview, overview) || const DeepCollectionEquality().equals( other.overview, @@ -17978,14 +17878,10 @@ class ActivityLogEntry { other.shortOverview, shortOverview, )) && - (identical(other.type, type) || - const DeepCollectionEquality().equals(other.type, type)) && - (identical(other.itemId, itemId) || - const DeepCollectionEquality().equals(other.itemId, itemId)) && - (identical(other.date, date) || - const DeepCollectionEquality().equals(other.date, date)) && - (identical(other.userId, userId) || - const DeepCollectionEquality().equals(other.userId, userId)) && + (identical(other.type, type) || const DeepCollectionEquality().equals(other.type, type)) && + (identical(other.itemId, itemId) || const DeepCollectionEquality().equals(other.itemId, itemId)) && + (identical(other.date, date) || const DeepCollectionEquality().equals(other.date, date)) && + (identical(other.userId, userId) || const DeepCollectionEquality().equals(other.userId, userId)) && (identical(other.userPrimaryImageTag, userPrimaryImageTag) || const DeepCollectionEquality().equals( other.userPrimaryImageTag, @@ -18059,16 +17955,12 @@ extension $ActivityLogEntryExtension on ActivityLogEntry { id: (id != null ? id.value : this.id), name: (name != null ? name.value : this.name), overview: (overview != null ? overview.value : this.overview), - shortOverview: (shortOverview != null - ? shortOverview.value - : this.shortOverview), + shortOverview: (shortOverview != null ? shortOverview.value : this.shortOverview), type: (type != null ? type.value : this.type), itemId: (itemId != null ? itemId.value : this.itemId), date: (date != null ? date.value : this.date), userId: (userId != null ? userId.value : this.userId), - userPrimaryImageTag: (userPrimaryImageTag != null - ? userPrimaryImageTag.value - : this.userPrimaryImageTag), + userPrimaryImageTag: (userPrimaryImageTag != null ? userPrimaryImageTag.value : this.userPrimaryImageTag), severity: (severity != null ? severity.value : this.severity), ); } @@ -18078,8 +17970,7 @@ extension $ActivityLogEntryExtension on ActivityLogEntry { class ActivityLogEntryMessage { const ActivityLogEntryMessage({this.data, this.messageId, this.messageType}); - factory ActivityLogEntryMessage.fromJson(Map json) => - _$ActivityLogEntryMessageFromJson(json); + factory ActivityLogEntryMessage.fromJson(Map json) => _$ActivityLogEntryMessageFromJson(json); static const toJsonFactory = _$ActivityLogEntryMessageToJson; Map toJson() => _$ActivityLogEntryMessageToJson(this); @@ -18099,8 +17990,7 @@ class ActivityLogEntryMessage { fromJson: sessionMessageTypeMessageTypeNullableFromJson, ) final enums.SessionMessageType? messageType; - static enums.SessionMessageType? - sessionMessageTypeMessageTypeNullableFromJson(Object? value) => + static enums.SessionMessageType? sessionMessageTypeMessageTypeNullableFromJson(Object? value) => sessionMessageTypeNullableFromJson( value, enums.SessionMessageType.activitylogentry, @@ -18112,8 +18002,7 @@ class ActivityLogEntryMessage { bool operator ==(Object other) { return identical(this, other) || (other is ActivityLogEntryMessage && - (identical(other.data, data) || - const DeepCollectionEquality().equals(other.data, data)) && + (identical(other.data, data) || const DeepCollectionEquality().equals(other.data, data)) && (identical(other.messageId, messageId) || const DeepCollectionEquality().equals( other.messageId, @@ -18193,8 +18082,7 @@ class ActivityLogEntryQueryResult { bool operator ==(Object other) { return identical(this, other) || (other is ActivityLogEntryQueryResult && - (identical(other.items, items) || - const DeepCollectionEquality().equals(other.items, items)) && + (identical(other.items, items) || const DeepCollectionEquality().equals(other.items, items)) && (identical(other.totalRecordCount, totalRecordCount) || const DeepCollectionEquality().equals( other.totalRecordCount, @@ -18238,9 +18126,7 @@ extension $ActivityLogEntryQueryResultExtension on ActivityLogEntryQueryResult { }) { return ActivityLogEntryQueryResult( items: (items != null ? items.value : this.items), - totalRecordCount: (totalRecordCount != null - ? totalRecordCount.value - : this.totalRecordCount), + totalRecordCount: (totalRecordCount != null ? totalRecordCount.value : this.totalRecordCount), startIndex: (startIndex != null ? startIndex.value : this.startIndex), ); } @@ -18265,8 +18151,7 @@ class ActivityLogEntryStartMessage { fromJson: sessionMessageTypeMessageTypeNullableFromJson, ) final enums.SessionMessageType? messageType; - static enums.SessionMessageType? - sessionMessageTypeMessageTypeNullableFromJson(Object? value) => + static enums.SessionMessageType? sessionMessageTypeMessageTypeNullableFromJson(Object? value) => sessionMessageTypeNullableFromJson( value, enums.SessionMessageType.activitylogentrystart, @@ -18278,8 +18163,7 @@ class ActivityLogEntryStartMessage { bool operator ==(Object other) { return identical(this, other) || (other is ActivityLogEntryStartMessage && - (identical(other.data, data) || - const DeepCollectionEquality().equals(other.data, data)) && + (identical(other.data, data) || const DeepCollectionEquality().equals(other.data, data)) && (identical(other.messageType, messageType) || const DeepCollectionEquality().equals( other.messageType, @@ -18297,8 +18181,7 @@ class ActivityLogEntryStartMessage { runtimeType.hashCode; } -extension $ActivityLogEntryStartMessageExtension - on ActivityLogEntryStartMessage { +extension $ActivityLogEntryStartMessageExtension on ActivityLogEntryStartMessage { ActivityLogEntryStartMessage copyWith({ String? data, enums.SessionMessageType? messageType, @@ -18337,8 +18220,7 @@ class ActivityLogEntryStopMessage { fromJson: sessionMessageTypeMessageTypeNullableFromJson, ) final enums.SessionMessageType? messageType; - static enums.SessionMessageType? - sessionMessageTypeMessageTypeNullableFromJson(Object? value) => + static enums.SessionMessageType? sessionMessageTypeMessageTypeNullableFromJson(Object? value) => sessionMessageTypeNullableFromJson( value, enums.SessionMessageType.activitylogentrystop, @@ -18361,8 +18243,7 @@ class ActivityLogEntryStopMessage { String toString() => jsonEncode(this); @override - int get hashCode => - const DeepCollectionEquality().hash(messageType) ^ runtimeType.hashCode; + int get hashCode => const DeepCollectionEquality().hash(messageType) ^ runtimeType.hashCode; } extension $ActivityLogEntryStopMessageExtension on ActivityLogEntryStopMessage { @@ -18387,8 +18268,7 @@ extension $ActivityLogEntryStopMessageExtension on ActivityLogEntryStopMessage { class AddVirtualFolderDto { const AddVirtualFolderDto({this.libraryOptions}); - factory AddVirtualFolderDto.fromJson(Map json) => - _$AddVirtualFolderDtoFromJson(json); + factory AddVirtualFolderDto.fromJson(Map json) => _$AddVirtualFolderDtoFromJson(json); static const toJsonFactory = _$AddVirtualFolderDtoToJson; Map toJson() => _$AddVirtualFolderDtoToJson(this); @@ -18412,9 +18292,7 @@ class AddVirtualFolderDto { String toString() => jsonEncode(this); @override - int get hashCode => - const DeepCollectionEquality().hash(libraryOptions) ^ - runtimeType.hashCode; + int get hashCode => const DeepCollectionEquality().hash(libraryOptions) ^ runtimeType.hashCode; } extension $AddVirtualFolderDtoExtension on AddVirtualFolderDto { @@ -18428,9 +18306,7 @@ extension $AddVirtualFolderDtoExtension on AddVirtualFolderDto { Wrapped? libraryOptions, }) { return AddVirtualFolderDto( - libraryOptions: (libraryOptions != null - ? libraryOptions.value - : this.libraryOptions), + libraryOptions: (libraryOptions != null ? libraryOptions.value : this.libraryOptions), ); } } @@ -18454,8 +18330,7 @@ class AlbumInfo { this.songInfos, }); - factory AlbumInfo.fromJson(Map json) => - _$AlbumInfoFromJson(json); + factory AlbumInfo.fromJson(Map json) => _$AlbumInfoFromJson(json); static const toJsonFactory = _$AlbumInfoToJson; Map toJson() => _$AlbumInfoToJson(this); @@ -18494,15 +18369,13 @@ class AlbumInfo { bool operator ==(Object other) { return identical(this, other) || (other is AlbumInfo && - (identical(other.name, name) || - const DeepCollectionEquality().equals(other.name, name)) && + (identical(other.name, name) || const DeepCollectionEquality().equals(other.name, name)) && (identical(other.originalTitle, originalTitle) || const DeepCollectionEquality().equals( other.originalTitle, originalTitle, )) && - (identical(other.path, path) || - const DeepCollectionEquality().equals(other.path, path)) && + (identical(other.path, path) || const DeepCollectionEquality().equals(other.path, path)) && (identical(other.metadataLanguage, metadataLanguage) || const DeepCollectionEquality().equals( other.metadataLanguage, @@ -18518,8 +18391,7 @@ class AlbumInfo { other.providerIds, providerIds, )) && - (identical(other.year, year) || - const DeepCollectionEquality().equals(other.year, year)) && + (identical(other.year, year) || const DeepCollectionEquality().equals(other.year, year)) && (identical(other.indexNumber, indexNumber) || const DeepCollectionEquality().equals( other.indexNumber, @@ -18632,32 +18504,18 @@ extension $AlbumInfoExtension on AlbumInfo { }) { return AlbumInfo( name: (name != null ? name.value : this.name), - originalTitle: (originalTitle != null - ? originalTitle.value - : this.originalTitle), + originalTitle: (originalTitle != null ? originalTitle.value : this.originalTitle), path: (path != null ? path.value : this.path), - metadataLanguage: (metadataLanguage != null - ? metadataLanguage.value - : this.metadataLanguage), - metadataCountryCode: (metadataCountryCode != null - ? metadataCountryCode.value - : this.metadataCountryCode), + metadataLanguage: (metadataLanguage != null ? metadataLanguage.value : this.metadataLanguage), + metadataCountryCode: (metadataCountryCode != null ? metadataCountryCode.value : this.metadataCountryCode), providerIds: (providerIds != null ? providerIds.value : this.providerIds), year: (year != null ? year.value : this.year), indexNumber: (indexNumber != null ? indexNumber.value : this.indexNumber), - parentIndexNumber: (parentIndexNumber != null - ? parentIndexNumber.value - : this.parentIndexNumber), - premiereDate: (premiereDate != null - ? premiereDate.value - : this.premiereDate), + parentIndexNumber: (parentIndexNumber != null ? parentIndexNumber.value : this.parentIndexNumber), + premiereDate: (premiereDate != null ? premiereDate.value : this.premiereDate), isAutomated: (isAutomated != null ? isAutomated.value : this.isAutomated), - albumArtists: (albumArtists != null - ? albumArtists.value - : this.albumArtists), - artistProviderIds: (artistProviderIds != null - ? artistProviderIds.value - : this.artistProviderIds), + albumArtists: (albumArtists != null ? albumArtists.value : this.albumArtists), + artistProviderIds: (artistProviderIds != null ? artistProviderIds.value : this.artistProviderIds), songInfos: (songInfos != null ? songInfos.value : this.songInfos), ); } @@ -18672,8 +18530,7 @@ class AlbumInfoRemoteSearchQuery { this.includeDisabledProviders, }); - factory AlbumInfoRemoteSearchQuery.fromJson(Map json) => - _$AlbumInfoRemoteSearchQueryFromJson(json); + factory AlbumInfoRemoteSearchQuery.fromJson(Map json) => _$AlbumInfoRemoteSearchQueryFromJson(json); static const toJsonFactory = _$AlbumInfoRemoteSearchQueryToJson; Map toJson() => _$AlbumInfoRemoteSearchQueryToJson(this); @@ -18697,8 +18554,7 @@ class AlbumInfoRemoteSearchQuery { other.searchInfo, searchInfo, )) && - (identical(other.itemId, itemId) || - const DeepCollectionEquality().equals(other.itemId, itemId)) && + (identical(other.itemId, itemId) || const DeepCollectionEquality().equals(other.itemId, itemId)) && (identical(other.searchProviderName, searchProviderName) || const DeepCollectionEquality().equals( other.searchProviderName, @@ -18737,8 +18593,7 @@ extension $AlbumInfoRemoteSearchQueryExtension on AlbumInfoRemoteSearchQuery { searchInfo: searchInfo ?? this.searchInfo, itemId: itemId ?? this.itemId, searchProviderName: searchProviderName ?? this.searchProviderName, - includeDisabledProviders: - includeDisabledProviders ?? this.includeDisabledProviders, + includeDisabledProviders: includeDisabledProviders ?? this.includeDisabledProviders, ); } @@ -18751,12 +18606,9 @@ extension $AlbumInfoRemoteSearchQueryExtension on AlbumInfoRemoteSearchQuery { return AlbumInfoRemoteSearchQuery( searchInfo: (searchInfo != null ? searchInfo.value : this.searchInfo), itemId: (itemId != null ? itemId.value : this.itemId), - searchProviderName: (searchProviderName != null - ? searchProviderName.value - : this.searchProviderName), - includeDisabledProviders: (includeDisabledProviders != null - ? includeDisabledProviders.value - : this.includeDisabledProviders), + searchProviderName: (searchProviderName != null ? searchProviderName.value : this.searchProviderName), + includeDisabledProviders: + (includeDisabledProviders != null ? includeDisabledProviders.value : this.includeDisabledProviders), ); } } @@ -18769,8 +18621,7 @@ class AllThemeMediaResult { this.soundtrackSongsResult, }); - factory AllThemeMediaResult.fromJson(Map json) => - _$AllThemeMediaResultFromJson(json); + factory AllThemeMediaResult.fromJson(Map json) => _$AllThemeMediaResultFromJson(json); static const toJsonFactory = _$AllThemeMediaResultToJson; Map toJson() => _$AllThemeMediaResultToJson(this); @@ -18824,8 +18675,7 @@ extension $AllThemeMediaResultExtension on AllThemeMediaResult { return AllThemeMediaResult( themeVideosResult: themeVideosResult ?? this.themeVideosResult, themeSongsResult: themeSongsResult ?? this.themeSongsResult, - soundtrackSongsResult: - soundtrackSongsResult ?? this.soundtrackSongsResult, + soundtrackSongsResult: soundtrackSongsResult ?? this.soundtrackSongsResult, ); } @@ -18835,15 +18685,9 @@ extension $AllThemeMediaResultExtension on AllThemeMediaResult { Wrapped? soundtrackSongsResult, }) { return AllThemeMediaResult( - themeVideosResult: (themeVideosResult != null - ? themeVideosResult.value - : this.themeVideosResult), - themeSongsResult: (themeSongsResult != null - ? themeSongsResult.value - : this.themeSongsResult), - soundtrackSongsResult: (soundtrackSongsResult != null - ? soundtrackSongsResult.value - : this.soundtrackSongsResult), + themeVideosResult: (themeVideosResult != null ? themeVideosResult.value : this.themeVideosResult), + themeSongsResult: (themeSongsResult != null ? themeSongsResult.value : this.themeSongsResult), + soundtrackSongsResult: (soundtrackSongsResult != null ? soundtrackSongsResult.value : this.soundtrackSongsResult), ); } } @@ -18865,8 +18709,7 @@ class ArtistInfo { this.songInfos, }); - factory ArtistInfo.fromJson(Map json) => - _$ArtistInfoFromJson(json); + factory ArtistInfo.fromJson(Map json) => _$ArtistInfoFromJson(json); static const toJsonFactory = _$ArtistInfoToJson; Map toJson() => _$ArtistInfoToJson(this); @@ -18901,15 +18744,13 @@ class ArtistInfo { bool operator ==(Object other) { return identical(this, other) || (other is ArtistInfo && - (identical(other.name, name) || - const DeepCollectionEquality().equals(other.name, name)) && + (identical(other.name, name) || const DeepCollectionEquality().equals(other.name, name)) && (identical(other.originalTitle, originalTitle) || const DeepCollectionEquality().equals( other.originalTitle, originalTitle, )) && - (identical(other.path, path) || - const DeepCollectionEquality().equals(other.path, path)) && + (identical(other.path, path) || const DeepCollectionEquality().equals(other.path, path)) && (identical(other.metadataLanguage, metadataLanguage) || const DeepCollectionEquality().equals( other.metadataLanguage, @@ -18925,8 +18766,7 @@ class ArtistInfo { other.providerIds, providerIds, )) && - (identical(other.year, year) || - const DeepCollectionEquality().equals(other.year, year)) && + (identical(other.year, year) || const DeepCollectionEquality().equals(other.year, year)) && (identical(other.indexNumber, indexNumber) || const DeepCollectionEquality().equals( other.indexNumber, @@ -19021,25 +18861,15 @@ extension $ArtistInfoExtension on ArtistInfo { }) { return ArtistInfo( name: (name != null ? name.value : this.name), - originalTitle: (originalTitle != null - ? originalTitle.value - : this.originalTitle), + originalTitle: (originalTitle != null ? originalTitle.value : this.originalTitle), path: (path != null ? path.value : this.path), - metadataLanguage: (metadataLanguage != null - ? metadataLanguage.value - : this.metadataLanguage), - metadataCountryCode: (metadataCountryCode != null - ? metadataCountryCode.value - : this.metadataCountryCode), + metadataLanguage: (metadataLanguage != null ? metadataLanguage.value : this.metadataLanguage), + metadataCountryCode: (metadataCountryCode != null ? metadataCountryCode.value : this.metadataCountryCode), providerIds: (providerIds != null ? providerIds.value : this.providerIds), year: (year != null ? year.value : this.year), indexNumber: (indexNumber != null ? indexNumber.value : this.indexNumber), - parentIndexNumber: (parentIndexNumber != null - ? parentIndexNumber.value - : this.parentIndexNumber), - premiereDate: (premiereDate != null - ? premiereDate.value - : this.premiereDate), + parentIndexNumber: (parentIndexNumber != null ? parentIndexNumber.value : this.parentIndexNumber), + premiereDate: (premiereDate != null ? premiereDate.value : this.premiereDate), isAutomated: (isAutomated != null ? isAutomated.value : this.isAutomated), songInfos: (songInfos != null ? songInfos.value : this.songInfos), ); @@ -19080,8 +18910,7 @@ class ArtistInfoRemoteSearchQuery { other.searchInfo, searchInfo, )) && - (identical(other.itemId, itemId) || - const DeepCollectionEquality().equals(other.itemId, itemId)) && + (identical(other.itemId, itemId) || const DeepCollectionEquality().equals(other.itemId, itemId)) && (identical(other.searchProviderName, searchProviderName) || const DeepCollectionEquality().equals( other.searchProviderName, @@ -19120,8 +18949,7 @@ extension $ArtistInfoRemoteSearchQueryExtension on ArtistInfoRemoteSearchQuery { searchInfo: searchInfo ?? this.searchInfo, itemId: itemId ?? this.itemId, searchProviderName: searchProviderName ?? this.searchProviderName, - includeDisabledProviders: - includeDisabledProviders ?? this.includeDisabledProviders, + includeDisabledProviders: includeDisabledProviders ?? this.includeDisabledProviders, ); } @@ -19134,12 +18962,9 @@ extension $ArtistInfoRemoteSearchQueryExtension on ArtistInfoRemoteSearchQuery { return ArtistInfoRemoteSearchQuery( searchInfo: (searchInfo != null ? searchInfo.value : this.searchInfo), itemId: (itemId != null ? itemId.value : this.itemId), - searchProviderName: (searchProviderName != null - ? searchProviderName.value - : this.searchProviderName), - includeDisabledProviders: (includeDisabledProviders != null - ? includeDisabledProviders.value - : this.includeDisabledProviders), + searchProviderName: (searchProviderName != null ? searchProviderName.value : this.searchProviderName), + includeDisabledProviders: + (includeDisabledProviders != null ? includeDisabledProviders.value : this.includeDisabledProviders), ); } } @@ -19148,8 +18973,7 @@ extension $ArtistInfoRemoteSearchQueryExtension on ArtistInfoRemoteSearchQuery { class AuthenticateUserByName { const AuthenticateUserByName({this.username, this.pw}); - factory AuthenticateUserByName.fromJson(Map json) => - _$AuthenticateUserByNameFromJson(json); + factory AuthenticateUserByName.fromJson(Map json) => _$AuthenticateUserByNameFromJson(json); static const toJsonFactory = _$AuthenticateUserByNameToJson; Map toJson() => _$AuthenticateUserByNameToJson(this); @@ -19169,8 +18993,7 @@ class AuthenticateUserByName { other.username, username, )) && - (identical(other.pw, pw) || - const DeepCollectionEquality().equals(other.pw, pw))); + (identical(other.pw, pw) || const DeepCollectionEquality().equals(other.pw, pw))); } @override @@ -19178,9 +19001,7 @@ class AuthenticateUserByName { @override int get hashCode => - const DeepCollectionEquality().hash(username) ^ - const DeepCollectionEquality().hash(pw) ^ - runtimeType.hashCode; + const DeepCollectionEquality().hash(username) ^ const DeepCollectionEquality().hash(pw) ^ runtimeType.hashCode; } extension $AuthenticateUserByNameExtension on AuthenticateUserByName { @@ -19219,8 +19040,7 @@ class AuthenticationInfo { this.userName, }); - factory AuthenticationInfo.fromJson(Map json) => - _$AuthenticationInfoFromJson(json); + factory AuthenticationInfo.fromJson(Map json) => _$AuthenticationInfoFromJson(json); static const toJsonFactory = _$AuthenticationInfoToJson; Map toJson() => _$AuthenticationInfoToJson(this); @@ -19255,8 +19075,7 @@ class AuthenticationInfo { bool operator ==(Object other) { return identical(this, other) || (other is AuthenticationInfo && - (identical(other.id, id) || - const DeepCollectionEquality().equals(other.id, id)) && + (identical(other.id, id) || const DeepCollectionEquality().equals(other.id, id)) && (identical(other.accessToken, accessToken) || const DeepCollectionEquality().equals( other.accessToken, @@ -19282,8 +19101,7 @@ class AuthenticationInfo { other.deviceName, deviceName, )) && - (identical(other.userId, userId) || - const DeepCollectionEquality().equals(other.userId, userId)) && + (identical(other.userId, userId) || const DeepCollectionEquality().equals(other.userId, userId)) && (identical(other.isActive, isActive) || const DeepCollectionEquality().equals( other.isActive, @@ -19387,9 +19205,7 @@ extension $AuthenticationInfoExtension on AuthenticationInfo { isActive: (isActive != null ? isActive.value : this.isActive), dateCreated: (dateCreated != null ? dateCreated.value : this.dateCreated), dateRevoked: (dateRevoked != null ? dateRevoked.value : this.dateRevoked), - dateLastActivity: (dateLastActivity != null - ? dateLastActivity.value - : this.dateLastActivity), + dateLastActivity: (dateLastActivity != null ? dateLastActivity.value : this.dateLastActivity), userName: (userName != null ? userName.value : this.userName), ); } @@ -19425,8 +19241,7 @@ class AuthenticationInfoQueryResult { bool operator ==(Object other) { return identical(this, other) || (other is AuthenticationInfoQueryResult && - (identical(other.items, items) || - const DeepCollectionEquality().equals(other.items, items)) && + (identical(other.items, items) || const DeepCollectionEquality().equals(other.items, items)) && (identical(other.totalRecordCount, totalRecordCount) || const DeepCollectionEquality().equals( other.totalRecordCount, @@ -19450,8 +19265,7 @@ class AuthenticationInfoQueryResult { runtimeType.hashCode; } -extension $AuthenticationInfoQueryResultExtension - on AuthenticationInfoQueryResult { +extension $AuthenticationInfoQueryResultExtension on AuthenticationInfoQueryResult { AuthenticationInfoQueryResult copyWith({ List? items, int? totalRecordCount, @@ -19471,9 +19285,7 @@ extension $AuthenticationInfoQueryResultExtension }) { return AuthenticationInfoQueryResult( items: (items != null ? items.value : this.items), - totalRecordCount: (totalRecordCount != null - ? totalRecordCount.value - : this.totalRecordCount), + totalRecordCount: (totalRecordCount != null ? totalRecordCount.value : this.totalRecordCount), startIndex: (startIndex != null ? startIndex.value : this.startIndex), ); } @@ -19488,8 +19300,7 @@ class AuthenticationResult { this.serverId, }); - factory AuthenticationResult.fromJson(Map json) => - _$AuthenticationResultFromJson(json); + factory AuthenticationResult.fromJson(Map json) => _$AuthenticationResultFromJson(json); static const toJsonFactory = _$AuthenticationResultToJson; Map toJson() => _$AuthenticationResultToJson(this); @@ -19508,8 +19319,7 @@ class AuthenticationResult { bool operator ==(Object other) { return identical(this, other) || (other is AuthenticationResult && - (identical(other.user, user) || - const DeepCollectionEquality().equals(other.user, user)) && + (identical(other.user, user) || const DeepCollectionEquality().equals(other.user, user)) && (identical(other.sessionInfo, sessionInfo) || const DeepCollectionEquality().equals( other.sessionInfo, @@ -19579,8 +19389,7 @@ class BackupManifestDto { this.options, }); - factory BackupManifestDto.fromJson(Map json) => - _$BackupManifestDtoFromJson(json); + factory BackupManifestDto.fromJson(Map json) => _$BackupManifestDtoFromJson(json); static const toJsonFactory = _$BackupManifestDtoToJson; Map toJson() => _$BackupManifestDtoToJson(this); @@ -19616,10 +19425,8 @@ class BackupManifestDto { other.dateCreated, dateCreated, )) && - (identical(other.path, path) || - const DeepCollectionEquality().equals(other.path, path)) && - (identical(other.options, options) || - const DeepCollectionEquality().equals(other.options, options))); + (identical(other.path, path) || const DeepCollectionEquality().equals(other.path, path)) && + (identical(other.options, options) || const DeepCollectionEquality().equals(other.options, options))); } @override @@ -19660,12 +19467,8 @@ extension $BackupManifestDtoExtension on BackupManifestDto { Wrapped? options, }) { return BackupManifestDto( - serverVersion: (serverVersion != null - ? serverVersion.value - : this.serverVersion), - backupEngineVersion: (backupEngineVersion != null - ? backupEngineVersion.value - : this.backupEngineVersion), + serverVersion: (serverVersion != null ? serverVersion.value : this.serverVersion), + backupEngineVersion: (backupEngineVersion != null ? backupEngineVersion.value : this.backupEngineVersion), dateCreated: (dateCreated != null ? dateCreated.value : this.dateCreated), path: (path != null ? path.value : this.path), options: (options != null ? options.value : this.options), @@ -19682,8 +19485,7 @@ class BackupOptionsDto { this.database, }); - factory BackupOptionsDto.fromJson(Map json) => - _$BackupOptionsDtoFromJson(json); + factory BackupOptionsDto.fromJson(Map json) => _$BackupOptionsDtoFromJson(json); static const toJsonFactory = _$BackupOptionsDtoToJson; Map toJson() => _$BackupOptionsDtoToJson(this); @@ -19770,8 +19572,7 @@ extension $BackupOptionsDtoExtension on BackupOptionsDto { class BackupRestoreRequestDto { const BackupRestoreRequestDto({this.archiveFileName}); - factory BackupRestoreRequestDto.fromJson(Map json) => - _$BackupRestoreRequestDtoFromJson(json); + factory BackupRestoreRequestDto.fromJson(Map json) => _$BackupRestoreRequestDtoFromJson(json); static const toJsonFactory = _$BackupRestoreRequestDtoToJson; Map toJson() => _$BackupRestoreRequestDtoToJson(this); @@ -19795,9 +19596,7 @@ class BackupRestoreRequestDto { String toString() => jsonEncode(this); @override - int get hashCode => - const DeepCollectionEquality().hash(archiveFileName) ^ - runtimeType.hashCode; + int get hashCode => const DeepCollectionEquality().hash(archiveFileName) ^ runtimeType.hashCode; } extension $BackupRestoreRequestDtoExtension on BackupRestoreRequestDto { @@ -19809,9 +19608,7 @@ extension $BackupRestoreRequestDtoExtension on BackupRestoreRequestDto { BackupRestoreRequestDto copyWithWrapped({Wrapped? archiveFileName}) { return BackupRestoreRequestDto( - archiveFileName: (archiveFileName != null - ? archiveFileName.value - : this.archiveFileName), + archiveFileName: (archiveFileName != null ? archiveFileName.value : this.archiveFileName), ); } } @@ -19974,8 +19771,7 @@ class BaseItemDto { this.currentProgram, }); - factory BaseItemDto.fromJson(Map json) => - _$BaseItemDtoFromJson(json); + factory BaseItemDto.fromJson(Map json) => _$BaseItemDtoFromJson(json); static const toJsonFactory = _$BaseItemDtoToJson; Map toJson() => _$BaseItemDtoToJson(this); @@ -20421,8 +20217,7 @@ class BaseItemDto { bool operator ==(Object other) { return identical(this, other) || (other is BaseItemDto && - (identical(other.name, name) || - const DeepCollectionEquality().equals(other.name, name)) && + (identical(other.name, name) || const DeepCollectionEquality().equals(other.name, name)) && (identical(other.originalTitle, originalTitle) || const DeepCollectionEquality().equals( other.originalTitle, @@ -20433,10 +20228,8 @@ class BaseItemDto { other.serverId, serverId, )) && - (identical(other.id, id) || - const DeepCollectionEquality().equals(other.id, id)) && - (identical(other.etag, etag) || - const DeepCollectionEquality().equals(other.etag, etag)) && + (identical(other.id, id) || const DeepCollectionEquality().equals(other.id, id)) && + (identical(other.etag, etag) || const DeepCollectionEquality().equals(other.etag, etag)) && (identical(other.sourceType, sourceType) || const DeepCollectionEquality().equals( other.sourceType, @@ -20561,8 +20354,7 @@ class BaseItemDto { other.productionLocations, productionLocations, )) && - (identical(other.path, path) || - const DeepCollectionEquality().equals(other.path, path)) && + (identical(other.path, path) || const DeepCollectionEquality().equals(other.path, path)) && (identical( other.enableMediaSourceDisplay, enableMediaSourceDisplay, @@ -20601,8 +20393,7 @@ class BaseItemDto { other.taglines, taglines, )) && - (identical(other.genres, genres) || - const DeepCollectionEquality().equals(other.genres, genres)) && + (identical(other.genres, genres) || const DeepCollectionEquality().equals(other.genres, genres)) && (identical(other.communityRating, communityRating) || const DeepCollectionEquality().equals( other.communityRating, @@ -20638,8 +20429,7 @@ class BaseItemDto { other.isPlaceHolder, isPlaceHolder, )) && - (identical(other.number, number) || - const DeepCollectionEquality().equals(other.number, number)) && + (identical(other.number, number) || const DeepCollectionEquality().equals(other.number, number)) && (identical(other.channelNumber, channelNumber) || const DeepCollectionEquality().equals( other.channelNumber, @@ -20670,8 +20460,7 @@ class BaseItemDto { other.providerIds, providerIds, )) && - (identical(other.isHD, isHD) || - const DeepCollectionEquality().equals(other.isHD, isHD)) && + (identical(other.isHD, isHD) || const DeepCollectionEquality().equals(other.isHD, isHD)) && (identical(other.isFolder, isFolder) || const DeepCollectionEquality().equals( other.isFolder, @@ -20682,10 +20471,8 @@ class BaseItemDto { other.parentId, parentId, )) && - (identical(other.type, type) || - const DeepCollectionEquality().equals(other.type, type)) && - (identical(other.people, people) || - const DeepCollectionEquality().equals(other.people, people)) && + (identical(other.type, type) || const DeepCollectionEquality().equals(other.type, type)) && + (identical(other.people, people) || const DeepCollectionEquality().equals(other.people, people)) && (identical(other.studios, studios) || const DeepCollectionEquality().equals( other.studios, @@ -20759,8 +20546,7 @@ class BaseItemDto { other.displayPreferencesId, displayPreferencesId, )) && - (identical(other.status, status) || - const DeepCollectionEquality().equals(other.status, status)) && + (identical(other.status, status) || const DeepCollectionEquality().equals(other.status, status)) && (identical(other.airTime, airTime) || const DeepCollectionEquality().equals( other.airTime, @@ -20771,8 +20557,7 @@ class BaseItemDto { other.airDays, airDays, )) && - (identical(other.tags, tags) || - const DeepCollectionEquality().equals(other.tags, tags)) && + (identical(other.tags, tags) || const DeepCollectionEquality().equals(other.tags, tags)) && (identical( other.primaryImageAspectRatio, primaryImageAspectRatio, @@ -20791,8 +20576,7 @@ class BaseItemDto { other.artistItems, artistItems, )) && - (identical(other.album, album) || - const DeepCollectionEquality().equals(other.album, album)) && + (identical(other.album, album) || const DeepCollectionEquality().equals(other.album, album)) && (identical(other.collectionType, collectionType) || const DeepCollectionEquality().equals( other.collectionType, @@ -21006,10 +20790,8 @@ class BaseItemDto { other.lockData, lockData, )) && - (identical(other.width, width) || - const DeepCollectionEquality().equals(other.width, width)) && - (identical(other.height, height) || - const DeepCollectionEquality().equals(other.height, height)) && + (identical(other.width, width) || const DeepCollectionEquality().equals(other.width, width)) && + (identical(other.height, height) || const DeepCollectionEquality().equals(other.height, height)) && (identical(other.cameraMake, cameraMake) || const DeepCollectionEquality().equals( other.cameraMake, @@ -21110,8 +20892,7 @@ class BaseItemDto { other.channelType, channelType, )) && - (identical(other.audio, audio) || - const DeepCollectionEquality().equals(other.audio, audio)) && + (identical(other.audio, audio) || const DeepCollectionEquality().equals(other.audio, audio)) && (identical(other.isMovie, isMovie) || const DeepCollectionEquality().equals( other.isMovie, @@ -21127,12 +20908,9 @@ class BaseItemDto { other.isSeries, isSeries, )) && - (identical(other.isLive, isLive) || - const DeepCollectionEquality().equals(other.isLive, isLive)) && - (identical(other.isNews, isNews) || - const DeepCollectionEquality().equals(other.isNews, isNews)) && - (identical(other.isKids, isKids) || - const DeepCollectionEquality().equals(other.isKids, isKids)) && + (identical(other.isLive, isLive) || const DeepCollectionEquality().equals(other.isLive, isLive)) && + (identical(other.isNews, isNews) || const DeepCollectionEquality().equals(other.isNews, isNews)) && + (identical(other.isKids, isKids) || const DeepCollectionEquality().equals(other.isKids, isKids)) && (identical(other.isPremiere, isPremiere) || const DeepCollectionEquality().equals( other.isPremiere, @@ -21483,20 +21261,15 @@ extension $BaseItemDtoExtension on BaseItemDto { dateCreated: dateCreated ?? this.dateCreated, dateLastMediaAdded: dateLastMediaAdded ?? this.dateLastMediaAdded, extraType: extraType ?? this.extraType, - airsBeforeSeasonNumber: - airsBeforeSeasonNumber ?? this.airsBeforeSeasonNumber, - airsAfterSeasonNumber: - airsAfterSeasonNumber ?? this.airsAfterSeasonNumber, - airsBeforeEpisodeNumber: - airsBeforeEpisodeNumber ?? this.airsBeforeEpisodeNumber, + airsBeforeSeasonNumber: airsBeforeSeasonNumber ?? this.airsBeforeSeasonNumber, + airsAfterSeasonNumber: airsAfterSeasonNumber ?? this.airsAfterSeasonNumber, + airsBeforeEpisodeNumber: airsBeforeEpisodeNumber ?? this.airsBeforeEpisodeNumber, canDelete: canDelete ?? this.canDelete, canDownload: canDownload ?? this.canDownload, hasLyrics: hasLyrics ?? this.hasLyrics, hasSubtitles: hasSubtitles ?? this.hasSubtitles, - preferredMetadataLanguage: - preferredMetadataLanguage ?? this.preferredMetadataLanguage, - preferredMetadataCountryCode: - preferredMetadataCountryCode ?? this.preferredMetadataCountryCode, + preferredMetadataLanguage: preferredMetadataLanguage ?? this.preferredMetadataLanguage, + preferredMetadataCountryCode: preferredMetadataCountryCode ?? this.preferredMetadataCountryCode, container: container ?? this.container, sortName: sortName ?? this.sortName, forcedSortName: forcedSortName ?? this.forcedSortName, @@ -21507,8 +21280,7 @@ extension $BaseItemDtoExtension on BaseItemDto { criticRating: criticRating ?? this.criticRating, productionLocations: productionLocations ?? this.productionLocations, path: path ?? this.path, - enableMediaSourceDisplay: - enableMediaSourceDisplay ?? this.enableMediaSourceDisplay, + enableMediaSourceDisplay: enableMediaSourceDisplay ?? this.enableMediaSourceDisplay, officialRating: officialRating ?? this.officialRating, customRating: customRating ?? this.customRating, channelId: channelId ?? this.channelId, @@ -21517,8 +21289,7 @@ extension $BaseItemDtoExtension on BaseItemDto { taglines: taglines ?? this.taglines, genres: genres ?? this.genres, communityRating: communityRating ?? this.communityRating, - cumulativeRunTimeTicks: - cumulativeRunTimeTicks ?? this.cumulativeRunTimeTicks, + cumulativeRunTimeTicks: cumulativeRunTimeTicks ?? this.cumulativeRunTimeTicks, runTimeTicks: runTimeTicks ?? this.runTimeTicks, playAccess: playAccess ?? this.playAccess, aspectRatio: aspectRatio ?? this.aspectRatio, @@ -21540,8 +21311,7 @@ extension $BaseItemDtoExtension on BaseItemDto { genreItems: genreItems ?? this.genreItems, parentLogoItemId: parentLogoItemId ?? this.parentLogoItemId, parentBackdropItemId: parentBackdropItemId ?? this.parentBackdropItemId, - parentBackdropImageTags: - parentBackdropImageTags ?? this.parentBackdropImageTags, + parentBackdropImageTags: parentBackdropImageTags ?? this.parentBackdropImageTags, localTrailerCount: localTrailerCount ?? this.localTrailerCount, userData: userData ?? this.userData, recursiveItemCount: recursiveItemCount ?? this.recursiveItemCount, @@ -21555,8 +21325,7 @@ extension $BaseItemDtoExtension on BaseItemDto { airTime: airTime ?? this.airTime, airDays: airDays ?? this.airDays, tags: tags ?? this.tags, - primaryImageAspectRatio: - primaryImageAspectRatio ?? this.primaryImageAspectRatio, + primaryImageAspectRatio: primaryImageAspectRatio ?? this.primaryImageAspectRatio, artists: artists ?? this.artists, artistItems: artistItems ?? this.artistItems, album: album ?? this.album, @@ -21564,8 +21333,7 @@ extension $BaseItemDtoExtension on BaseItemDto { displayOrder: displayOrder ?? this.displayOrder, albumId: albumId ?? this.albumId, albumPrimaryImageTag: albumPrimaryImageTag ?? this.albumPrimaryImageTag, - seriesPrimaryImageTag: - seriesPrimaryImageTag ?? this.seriesPrimaryImageTag, + seriesPrimaryImageTag: seriesPrimaryImageTag ?? this.seriesPrimaryImageTag, albumArtist: albumArtist ?? this.albumArtist, albumArtists: albumArtists ?? this.albumArtists, seasonName: seasonName ?? this.seasonName, @@ -21584,10 +21352,8 @@ extension $BaseItemDtoExtension on BaseItemDto { seriesStudio: seriesStudio ?? this.seriesStudio, parentThumbItemId: parentThumbItemId ?? this.parentThumbItemId, parentThumbImageTag: parentThumbImageTag ?? this.parentThumbImageTag, - parentPrimaryImageItemId: - parentPrimaryImageItemId ?? this.parentPrimaryImageItemId, - parentPrimaryImageTag: - parentPrimaryImageTag ?? this.parentPrimaryImageTag, + parentPrimaryImageItemId: parentPrimaryImageItemId ?? this.parentPrimaryImageItemId, + parentPrimaryImageTag: parentPrimaryImageTag ?? this.parentPrimaryImageTag, chapters: chapters ?? this.chapters, trickplay: trickplay ?? this.trickplay, locationType: locationType ?? this.locationType, @@ -21621,8 +21387,7 @@ extension $BaseItemDtoExtension on BaseItemDto { isoSpeedRating: isoSpeedRating ?? this.isoSpeedRating, seriesTimerId: seriesTimerId ?? this.seriesTimerId, programId: programId ?? this.programId, - channelPrimaryImageTag: - channelPrimaryImageTag ?? this.channelPrimaryImageTag, + channelPrimaryImageTag: channelPrimaryImageTag ?? this.channelPrimaryImageTag, startDate: startDate ?? this.startDate, completionPercentage: completionPercentage ?? this.completionPercentage, isRepeat: isRepeat ?? this.isRepeat, @@ -21799,111 +21564,62 @@ extension $BaseItemDtoExtension on BaseItemDto { }) { return BaseItemDto( name: (name != null ? name.value : this.name), - originalTitle: (originalTitle != null - ? originalTitle.value - : this.originalTitle), + originalTitle: (originalTitle != null ? originalTitle.value : this.originalTitle), serverId: (serverId != null ? serverId.value : this.serverId), id: (id != null ? id.value : this.id), etag: (etag != null ? etag.value : this.etag), sourceType: (sourceType != null ? sourceType.value : this.sourceType), - playlistItemId: (playlistItemId != null - ? playlistItemId.value - : this.playlistItemId), + playlistItemId: (playlistItemId != null ? playlistItemId.value : this.playlistItemId), dateCreated: (dateCreated != null ? dateCreated.value : this.dateCreated), - dateLastMediaAdded: (dateLastMediaAdded != null - ? dateLastMediaAdded.value - : this.dateLastMediaAdded), + dateLastMediaAdded: (dateLastMediaAdded != null ? dateLastMediaAdded.value : this.dateLastMediaAdded), extraType: (extraType != null ? extraType.value : this.extraType), - airsBeforeSeasonNumber: (airsBeforeSeasonNumber != null - ? airsBeforeSeasonNumber.value - : this.airsBeforeSeasonNumber), - airsAfterSeasonNumber: (airsAfterSeasonNumber != null - ? airsAfterSeasonNumber.value - : this.airsAfterSeasonNumber), - airsBeforeEpisodeNumber: (airsBeforeEpisodeNumber != null - ? airsBeforeEpisodeNumber.value - : this.airsBeforeEpisodeNumber), + airsBeforeSeasonNumber: + (airsBeforeSeasonNumber != null ? airsBeforeSeasonNumber.value : this.airsBeforeSeasonNumber), + airsAfterSeasonNumber: (airsAfterSeasonNumber != null ? airsAfterSeasonNumber.value : this.airsAfterSeasonNumber), + airsBeforeEpisodeNumber: + (airsBeforeEpisodeNumber != null ? airsBeforeEpisodeNumber.value : this.airsBeforeEpisodeNumber), canDelete: (canDelete != null ? canDelete.value : this.canDelete), canDownload: (canDownload != null ? canDownload.value : this.canDownload), hasLyrics: (hasLyrics != null ? hasLyrics.value : this.hasLyrics), - hasSubtitles: (hasSubtitles != null - ? hasSubtitles.value - : this.hasSubtitles), - preferredMetadataLanguage: (preferredMetadataLanguage != null - ? preferredMetadataLanguage.value - : this.preferredMetadataLanguage), + hasSubtitles: (hasSubtitles != null ? hasSubtitles.value : this.hasSubtitles), + preferredMetadataLanguage: + (preferredMetadataLanguage != null ? preferredMetadataLanguage.value : this.preferredMetadataLanguage), preferredMetadataCountryCode: (preferredMetadataCountryCode != null ? preferredMetadataCountryCode.value : this.preferredMetadataCountryCode), container: (container != null ? container.value : this.container), sortName: (sortName != null ? sortName.value : this.sortName), - forcedSortName: (forcedSortName != null - ? forcedSortName.value - : this.forcedSortName), - video3DFormat: (video3DFormat != null - ? video3DFormat.value - : this.video3DFormat), - premiereDate: (premiereDate != null - ? premiereDate.value - : this.premiereDate), - externalUrls: (externalUrls != null - ? externalUrls.value - : this.externalUrls), - mediaSources: (mediaSources != null - ? mediaSources.value - : this.mediaSources), - criticRating: (criticRating != null - ? criticRating.value - : this.criticRating), - productionLocations: (productionLocations != null - ? productionLocations.value - : this.productionLocations), + forcedSortName: (forcedSortName != null ? forcedSortName.value : this.forcedSortName), + video3DFormat: (video3DFormat != null ? video3DFormat.value : this.video3DFormat), + premiereDate: (premiereDate != null ? premiereDate.value : this.premiereDate), + externalUrls: (externalUrls != null ? externalUrls.value : this.externalUrls), + mediaSources: (mediaSources != null ? mediaSources.value : this.mediaSources), + criticRating: (criticRating != null ? criticRating.value : this.criticRating), + productionLocations: (productionLocations != null ? productionLocations.value : this.productionLocations), path: (path != null ? path.value : this.path), - enableMediaSourceDisplay: (enableMediaSourceDisplay != null - ? enableMediaSourceDisplay.value - : this.enableMediaSourceDisplay), - officialRating: (officialRating != null - ? officialRating.value - : this.officialRating), - customRating: (customRating != null - ? customRating.value - : this.customRating), + enableMediaSourceDisplay: + (enableMediaSourceDisplay != null ? enableMediaSourceDisplay.value : this.enableMediaSourceDisplay), + officialRating: (officialRating != null ? officialRating.value : this.officialRating), + customRating: (customRating != null ? customRating.value : this.customRating), channelId: (channelId != null ? channelId.value : this.channelId), channelName: (channelName != null ? channelName.value : this.channelName), overview: (overview != null ? overview.value : this.overview), taglines: (taglines != null ? taglines.value : this.taglines), genres: (genres != null ? genres.value : this.genres), - communityRating: (communityRating != null - ? communityRating.value - : this.communityRating), - cumulativeRunTimeTicks: (cumulativeRunTimeTicks != null - ? cumulativeRunTimeTicks.value - : this.cumulativeRunTimeTicks), - runTimeTicks: (runTimeTicks != null - ? runTimeTicks.value - : this.runTimeTicks), + communityRating: (communityRating != null ? communityRating.value : this.communityRating), + cumulativeRunTimeTicks: + (cumulativeRunTimeTicks != null ? cumulativeRunTimeTicks.value : this.cumulativeRunTimeTicks), + runTimeTicks: (runTimeTicks != null ? runTimeTicks.value : this.runTimeTicks), playAccess: (playAccess != null ? playAccess.value : this.playAccess), aspectRatio: (aspectRatio != null ? aspectRatio.value : this.aspectRatio), - productionYear: (productionYear != null - ? productionYear.value - : this.productionYear), - isPlaceHolder: (isPlaceHolder != null - ? isPlaceHolder.value - : this.isPlaceHolder), + productionYear: (productionYear != null ? productionYear.value : this.productionYear), + isPlaceHolder: (isPlaceHolder != null ? isPlaceHolder.value : this.isPlaceHolder), number: (number != null ? number.value : this.number), - channelNumber: (channelNumber != null - ? channelNumber.value - : this.channelNumber), + channelNumber: (channelNumber != null ? channelNumber.value : this.channelNumber), indexNumber: (indexNumber != null ? indexNumber.value : this.indexNumber), - indexNumberEnd: (indexNumberEnd != null - ? indexNumberEnd.value - : this.indexNumberEnd), - parentIndexNumber: (parentIndexNumber != null - ? parentIndexNumber.value - : this.parentIndexNumber), - remoteTrailers: (remoteTrailers != null - ? remoteTrailers.value - : this.remoteTrailers), + indexNumberEnd: (indexNumberEnd != null ? indexNumberEnd.value : this.indexNumberEnd), + parentIndexNumber: (parentIndexNumber != null ? parentIndexNumber.value : this.parentIndexNumber), + remoteTrailers: (remoteTrailers != null ? remoteTrailers.value : this.remoteTrailers), providerIds: (providerIds != null ? providerIds.value : this.providerIds), isHD: (isHD != null ? isHD.value : this.isHD), isFolder: (isFolder != null ? isFolder.value : this.isFolder), @@ -21912,171 +21628,93 @@ extension $BaseItemDtoExtension on BaseItemDto { people: (people != null ? people.value : this.people), studios: (studios != null ? studios.value : this.studios), genreItems: (genreItems != null ? genreItems.value : this.genreItems), - parentLogoItemId: (parentLogoItemId != null - ? parentLogoItemId.value - : this.parentLogoItemId), - parentBackdropItemId: (parentBackdropItemId != null - ? parentBackdropItemId.value - : this.parentBackdropItemId), - parentBackdropImageTags: (parentBackdropImageTags != null - ? parentBackdropImageTags.value - : this.parentBackdropImageTags), - localTrailerCount: (localTrailerCount != null - ? localTrailerCount.value - : this.localTrailerCount), + parentLogoItemId: (parentLogoItemId != null ? parentLogoItemId.value : this.parentLogoItemId), + parentBackdropItemId: (parentBackdropItemId != null ? parentBackdropItemId.value : this.parentBackdropItemId), + parentBackdropImageTags: + (parentBackdropImageTags != null ? parentBackdropImageTags.value : this.parentBackdropImageTags), + localTrailerCount: (localTrailerCount != null ? localTrailerCount.value : this.localTrailerCount), userData: (userData != null ? userData.value : this.userData), - recursiveItemCount: (recursiveItemCount != null - ? recursiveItemCount.value - : this.recursiveItemCount), + recursiveItemCount: (recursiveItemCount != null ? recursiveItemCount.value : this.recursiveItemCount), childCount: (childCount != null ? childCount.value : this.childCount), seriesName: (seriesName != null ? seriesName.value : this.seriesName), seriesId: (seriesId != null ? seriesId.value : this.seriesId), seasonId: (seasonId != null ? seasonId.value : this.seasonId), - specialFeatureCount: (specialFeatureCount != null - ? specialFeatureCount.value - : this.specialFeatureCount), - displayPreferencesId: (displayPreferencesId != null - ? displayPreferencesId.value - : this.displayPreferencesId), + specialFeatureCount: (specialFeatureCount != null ? specialFeatureCount.value : this.specialFeatureCount), + displayPreferencesId: (displayPreferencesId != null ? displayPreferencesId.value : this.displayPreferencesId), status: (status != null ? status.value : this.status), airTime: (airTime != null ? airTime.value : this.airTime), airDays: (airDays != null ? airDays.value : this.airDays), tags: (tags != null ? tags.value : this.tags), - primaryImageAspectRatio: (primaryImageAspectRatio != null - ? primaryImageAspectRatio.value - : this.primaryImageAspectRatio), + primaryImageAspectRatio: + (primaryImageAspectRatio != null ? primaryImageAspectRatio.value : this.primaryImageAspectRatio), artists: (artists != null ? artists.value : this.artists), artistItems: (artistItems != null ? artistItems.value : this.artistItems), album: (album != null ? album.value : this.album), - collectionType: (collectionType != null - ? collectionType.value - : this.collectionType), - displayOrder: (displayOrder != null - ? displayOrder.value - : this.displayOrder), + collectionType: (collectionType != null ? collectionType.value : this.collectionType), + displayOrder: (displayOrder != null ? displayOrder.value : this.displayOrder), albumId: (albumId != null ? albumId.value : this.albumId), - albumPrimaryImageTag: (albumPrimaryImageTag != null - ? albumPrimaryImageTag.value - : this.albumPrimaryImageTag), - seriesPrimaryImageTag: (seriesPrimaryImageTag != null - ? seriesPrimaryImageTag.value - : this.seriesPrimaryImageTag), + albumPrimaryImageTag: (albumPrimaryImageTag != null ? albumPrimaryImageTag.value : this.albumPrimaryImageTag), + seriesPrimaryImageTag: (seriesPrimaryImageTag != null ? seriesPrimaryImageTag.value : this.seriesPrimaryImageTag), albumArtist: (albumArtist != null ? albumArtist.value : this.albumArtist), - albumArtists: (albumArtists != null - ? albumArtists.value - : this.albumArtists), + albumArtists: (albumArtists != null ? albumArtists.value : this.albumArtists), seasonName: (seasonName != null ? seasonName.value : this.seasonName), - mediaStreams: (mediaStreams != null - ? mediaStreams.value - : this.mediaStreams), + mediaStreams: (mediaStreams != null ? mediaStreams.value : this.mediaStreams), videoType: (videoType != null ? videoType.value : this.videoType), partCount: (partCount != null ? partCount.value : this.partCount), - mediaSourceCount: (mediaSourceCount != null - ? mediaSourceCount.value - : this.mediaSourceCount), + mediaSourceCount: (mediaSourceCount != null ? mediaSourceCount.value : this.mediaSourceCount), imageTags: (imageTags != null ? imageTags.value : this.imageTags), - backdropImageTags: (backdropImageTags != null - ? backdropImageTags.value - : this.backdropImageTags), - screenshotImageTags: (screenshotImageTags != null - ? screenshotImageTags.value - : this.screenshotImageTags), - parentLogoImageTag: (parentLogoImageTag != null - ? parentLogoImageTag.value - : this.parentLogoImageTag), - parentArtItemId: (parentArtItemId != null - ? parentArtItemId.value - : this.parentArtItemId), - parentArtImageTag: (parentArtImageTag != null - ? parentArtImageTag.value - : this.parentArtImageTag), - seriesThumbImageTag: (seriesThumbImageTag != null - ? seriesThumbImageTag.value - : this.seriesThumbImageTag), - imageBlurHashes: (imageBlurHashes != null - ? imageBlurHashes.value - : this.imageBlurHashes), - seriesStudio: (seriesStudio != null - ? seriesStudio.value - : this.seriesStudio), - parentThumbItemId: (parentThumbItemId != null - ? parentThumbItemId.value - : this.parentThumbItemId), - parentThumbImageTag: (parentThumbImageTag != null - ? parentThumbImageTag.value - : this.parentThumbImageTag), - parentPrimaryImageItemId: (parentPrimaryImageItemId != null - ? parentPrimaryImageItemId.value - : this.parentPrimaryImageItemId), - parentPrimaryImageTag: (parentPrimaryImageTag != null - ? parentPrimaryImageTag.value - : this.parentPrimaryImageTag), + backdropImageTags: (backdropImageTags != null ? backdropImageTags.value : this.backdropImageTags), + screenshotImageTags: (screenshotImageTags != null ? screenshotImageTags.value : this.screenshotImageTags), + parentLogoImageTag: (parentLogoImageTag != null ? parentLogoImageTag.value : this.parentLogoImageTag), + parentArtItemId: (parentArtItemId != null ? parentArtItemId.value : this.parentArtItemId), + parentArtImageTag: (parentArtImageTag != null ? parentArtImageTag.value : this.parentArtImageTag), + seriesThumbImageTag: (seriesThumbImageTag != null ? seriesThumbImageTag.value : this.seriesThumbImageTag), + imageBlurHashes: (imageBlurHashes != null ? imageBlurHashes.value : this.imageBlurHashes), + seriesStudio: (seriesStudio != null ? seriesStudio.value : this.seriesStudio), + parentThumbItemId: (parentThumbItemId != null ? parentThumbItemId.value : this.parentThumbItemId), + parentThumbImageTag: (parentThumbImageTag != null ? parentThumbImageTag.value : this.parentThumbImageTag), + parentPrimaryImageItemId: + (parentPrimaryImageItemId != null ? parentPrimaryImageItemId.value : this.parentPrimaryImageItemId), + parentPrimaryImageTag: (parentPrimaryImageTag != null ? parentPrimaryImageTag.value : this.parentPrimaryImageTag), chapters: (chapters != null ? chapters.value : this.chapters), trickplay: (trickplay != null ? trickplay.value : this.trickplay), - locationType: (locationType != null - ? locationType.value - : this.locationType), + locationType: (locationType != null ? locationType.value : this.locationType), isoType: (isoType != null ? isoType.value : this.isoType), mediaType: (mediaType != null ? mediaType.value : this.mediaType), endDate: (endDate != null ? endDate.value : this.endDate), - lockedFields: (lockedFields != null - ? lockedFields.value - : this.lockedFields), - trailerCount: (trailerCount != null - ? trailerCount.value - : this.trailerCount), + lockedFields: (lockedFields != null ? lockedFields.value : this.lockedFields), + trailerCount: (trailerCount != null ? trailerCount.value : this.trailerCount), movieCount: (movieCount != null ? movieCount.value : this.movieCount), seriesCount: (seriesCount != null ? seriesCount.value : this.seriesCount), - programCount: (programCount != null - ? programCount.value - : this.programCount), - episodeCount: (episodeCount != null - ? episodeCount.value - : this.episodeCount), + programCount: (programCount != null ? programCount.value : this.programCount), + episodeCount: (episodeCount != null ? episodeCount.value : this.episodeCount), songCount: (songCount != null ? songCount.value : this.songCount), albumCount: (albumCount != null ? albumCount.value : this.albumCount), artistCount: (artistCount != null ? artistCount.value : this.artistCount), - musicVideoCount: (musicVideoCount != null - ? musicVideoCount.value - : this.musicVideoCount), + musicVideoCount: (musicVideoCount != null ? musicVideoCount.value : this.musicVideoCount), lockData: (lockData != null ? lockData.value : this.lockData), width: (width != null ? width.value : this.width), height: (height != null ? height.value : this.height), cameraMake: (cameraMake != null ? cameraMake.value : this.cameraMake), cameraModel: (cameraModel != null ? cameraModel.value : this.cameraModel), software: (software != null ? software.value : this.software), - exposureTime: (exposureTime != null - ? exposureTime.value - : this.exposureTime), + exposureTime: (exposureTime != null ? exposureTime.value : this.exposureTime), focalLength: (focalLength != null ? focalLength.value : this.focalLength), - imageOrientation: (imageOrientation != null - ? imageOrientation.value - : this.imageOrientation), + imageOrientation: (imageOrientation != null ? imageOrientation.value : this.imageOrientation), aperture: (aperture != null ? aperture.value : this.aperture), - shutterSpeed: (shutterSpeed != null - ? shutterSpeed.value - : this.shutterSpeed), + shutterSpeed: (shutterSpeed != null ? shutterSpeed.value : this.shutterSpeed), latitude: (latitude != null ? latitude.value : this.latitude), longitude: (longitude != null ? longitude.value : this.longitude), altitude: (altitude != null ? altitude.value : this.altitude), - isoSpeedRating: (isoSpeedRating != null - ? isoSpeedRating.value - : this.isoSpeedRating), - seriesTimerId: (seriesTimerId != null - ? seriesTimerId.value - : this.seriesTimerId), + isoSpeedRating: (isoSpeedRating != null ? isoSpeedRating.value : this.isoSpeedRating), + seriesTimerId: (seriesTimerId != null ? seriesTimerId.value : this.seriesTimerId), programId: (programId != null ? programId.value : this.programId), - channelPrimaryImageTag: (channelPrimaryImageTag != null - ? channelPrimaryImageTag.value - : this.channelPrimaryImageTag), + channelPrimaryImageTag: + (channelPrimaryImageTag != null ? channelPrimaryImageTag.value : this.channelPrimaryImageTag), startDate: (startDate != null ? startDate.value : this.startDate), - completionPercentage: (completionPercentage != null - ? completionPercentage.value - : this.completionPercentage), + completionPercentage: (completionPercentage != null ? completionPercentage.value : this.completionPercentage), isRepeat: (isRepeat != null ? isRepeat.value : this.isRepeat), - episodeTitle: (episodeTitle != null - ? episodeTitle.value - : this.episodeTitle), + episodeTitle: (episodeTitle != null ? episodeTitle.value : this.episodeTitle), channelType: (channelType != null ? channelType.value : this.channelType), audio: (audio != null ? audio.value : this.audio), isMovie: (isMovie != null ? isMovie.value : this.isMovie), @@ -22087,12 +21725,8 @@ extension $BaseItemDtoExtension on BaseItemDto { isKids: (isKids != null ? isKids.value : this.isKids), isPremiere: (isPremiere != null ? isPremiere.value : this.isPremiere), timerId: (timerId != null ? timerId.value : this.timerId), - normalizationGain: (normalizationGain != null - ? normalizationGain.value - : this.normalizationGain), - currentProgram: (currentProgram != null - ? currentProgram.value - : this.currentProgram), + normalizationGain: (normalizationGain != null ? normalizationGain.value : this.normalizationGain), + currentProgram: (currentProgram != null ? currentProgram.value : this.currentProgram), ); } } @@ -22105,8 +21739,7 @@ class BaseItemDtoQueryResult { this.startIndex, }); - factory BaseItemDtoQueryResult.fromJson(Map json) => - _$BaseItemDtoQueryResultFromJson(json); + factory BaseItemDtoQueryResult.fromJson(Map json) => _$BaseItemDtoQueryResultFromJson(json); static const toJsonFactory = _$BaseItemDtoQueryResultToJson; Map toJson() => _$BaseItemDtoQueryResultToJson(this); @@ -22123,8 +21756,7 @@ class BaseItemDtoQueryResult { bool operator ==(Object other) { return identical(this, other) || (other is BaseItemDtoQueryResult && - (identical(other.items, items) || - const DeepCollectionEquality().equals(other.items, items)) && + (identical(other.items, items) || const DeepCollectionEquality().equals(other.items, items)) && (identical(other.totalRecordCount, totalRecordCount) || const DeepCollectionEquality().equals( other.totalRecordCount, @@ -22168,9 +21800,7 @@ extension $BaseItemDtoQueryResultExtension on BaseItemDtoQueryResult { }) { return BaseItemDtoQueryResult( items: (items != null ? items.value : this.items), - totalRecordCount: (totalRecordCount != null - ? totalRecordCount.value - : this.totalRecordCount), + totalRecordCount: (totalRecordCount != null ? totalRecordCount.value : this.totalRecordCount), startIndex: (startIndex != null ? startIndex.value : this.startIndex), ); } @@ -22187,8 +21817,7 @@ class BaseItemPerson { this.imageBlurHashes, }); - factory BaseItemPerson.fromJson(Map json) => - _$BaseItemPersonFromJson(json); + factory BaseItemPerson.fromJson(Map json) => _$BaseItemPersonFromJson(json); static const toJsonFactory = _$BaseItemPersonToJson; Map toJson() => _$BaseItemPersonToJson(this); @@ -22219,14 +21848,10 @@ class BaseItemPerson { bool operator ==(Object other) { return identical(this, other) || (other is BaseItemPerson && - (identical(other.name, name) || - const DeepCollectionEquality().equals(other.name, name)) && - (identical(other.id, id) || - const DeepCollectionEquality().equals(other.id, id)) && - (identical(other.role, role) || - const DeepCollectionEquality().equals(other.role, role)) && - (identical(other.type, type) || - const DeepCollectionEquality().equals(other.type, type)) && + (identical(other.name, name) || const DeepCollectionEquality().equals(other.name, name)) && + (identical(other.id, id) || const DeepCollectionEquality().equals(other.id, id)) && + (identical(other.role, role) || const DeepCollectionEquality().equals(other.role, role)) && + (identical(other.type, type) || const DeepCollectionEquality().equals(other.type, type)) && (identical(other.primaryImageTag, primaryImageTag) || const DeepCollectionEquality().equals( other.primaryImageTag, @@ -22285,12 +21910,8 @@ extension $BaseItemPersonExtension on BaseItemPerson { id: (id != null ? id.value : this.id), role: (role != null ? role.value : this.role), type: (type != null ? type.value : this.type), - primaryImageTag: (primaryImageTag != null - ? primaryImageTag.value - : this.primaryImageTag), - imageBlurHashes: (imageBlurHashes != null - ? imageBlurHashes.value - : this.imageBlurHashes), + primaryImageTag: (primaryImageTag != null ? primaryImageTag.value : this.primaryImageTag), + imageBlurHashes: (imageBlurHashes != null ? imageBlurHashes.value : this.imageBlurHashes), ); } } @@ -22299,8 +21920,7 @@ extension $BaseItemPersonExtension on BaseItemPerson { class BasePluginConfiguration { const BasePluginConfiguration(); - factory BasePluginConfiguration.fromJson(Map json) => - _$BasePluginConfigurationFromJson(json); + factory BasePluginConfiguration.fromJson(Map json) => _$BasePluginConfigurationFromJson(json); static const toJsonFactory = _$BasePluginConfigurationToJson; Map toJson() => _$BasePluginConfigurationToJson(this); @@ -22331,8 +21951,7 @@ class BookInfo { this.seriesName, }); - factory BookInfo.fromJson(Map json) => - _$BookInfoFromJson(json); + factory BookInfo.fromJson(Map json) => _$BookInfoFromJson(json); static const toJsonFactory = _$BookInfoToJson; Map toJson() => _$BookInfoToJson(this); @@ -22367,15 +21986,13 @@ class BookInfo { bool operator ==(Object other) { return identical(this, other) || (other is BookInfo && - (identical(other.name, name) || - const DeepCollectionEquality().equals(other.name, name)) && + (identical(other.name, name) || const DeepCollectionEquality().equals(other.name, name)) && (identical(other.originalTitle, originalTitle) || const DeepCollectionEquality().equals( other.originalTitle, originalTitle, )) && - (identical(other.path, path) || - const DeepCollectionEquality().equals(other.path, path)) && + (identical(other.path, path) || const DeepCollectionEquality().equals(other.path, path)) && (identical(other.metadataLanguage, metadataLanguage) || const DeepCollectionEquality().equals( other.metadataLanguage, @@ -22391,8 +22008,7 @@ class BookInfo { other.providerIds, providerIds, )) && - (identical(other.year, year) || - const DeepCollectionEquality().equals(other.year, year)) && + (identical(other.year, year) || const DeepCollectionEquality().equals(other.year, year)) && (identical(other.indexNumber, indexNumber) || const DeepCollectionEquality().equals( other.indexNumber, @@ -22487,25 +22103,15 @@ extension $BookInfoExtension on BookInfo { }) { return BookInfo( name: (name != null ? name.value : this.name), - originalTitle: (originalTitle != null - ? originalTitle.value - : this.originalTitle), + originalTitle: (originalTitle != null ? originalTitle.value : this.originalTitle), path: (path != null ? path.value : this.path), - metadataLanguage: (metadataLanguage != null - ? metadataLanguage.value - : this.metadataLanguage), - metadataCountryCode: (metadataCountryCode != null - ? metadataCountryCode.value - : this.metadataCountryCode), + metadataLanguage: (metadataLanguage != null ? metadataLanguage.value : this.metadataLanguage), + metadataCountryCode: (metadataCountryCode != null ? metadataCountryCode.value : this.metadataCountryCode), providerIds: (providerIds != null ? providerIds.value : this.providerIds), year: (year != null ? year.value : this.year), indexNumber: (indexNumber != null ? indexNumber.value : this.indexNumber), - parentIndexNumber: (parentIndexNumber != null - ? parentIndexNumber.value - : this.parentIndexNumber), - premiereDate: (premiereDate != null - ? premiereDate.value - : this.premiereDate), + parentIndexNumber: (parentIndexNumber != null ? parentIndexNumber.value : this.parentIndexNumber), + premiereDate: (premiereDate != null ? premiereDate.value : this.premiereDate), isAutomated: (isAutomated != null ? isAutomated.value : this.isAutomated), seriesName: (seriesName != null ? seriesName.value : this.seriesName), ); @@ -22521,8 +22127,7 @@ class BookInfoRemoteSearchQuery { this.includeDisabledProviders, }); - factory BookInfoRemoteSearchQuery.fromJson(Map json) => - _$BookInfoRemoteSearchQueryFromJson(json); + factory BookInfoRemoteSearchQuery.fromJson(Map json) => _$BookInfoRemoteSearchQueryFromJson(json); static const toJsonFactory = _$BookInfoRemoteSearchQueryToJson; Map toJson() => _$BookInfoRemoteSearchQueryToJson(this); @@ -22546,8 +22151,7 @@ class BookInfoRemoteSearchQuery { other.searchInfo, searchInfo, )) && - (identical(other.itemId, itemId) || - const DeepCollectionEquality().equals(other.itemId, itemId)) && + (identical(other.itemId, itemId) || const DeepCollectionEquality().equals(other.itemId, itemId)) && (identical(other.searchProviderName, searchProviderName) || const DeepCollectionEquality().equals( other.searchProviderName, @@ -22586,8 +22190,7 @@ extension $BookInfoRemoteSearchQueryExtension on BookInfoRemoteSearchQuery { searchInfo: searchInfo ?? this.searchInfo, itemId: itemId ?? this.itemId, searchProviderName: searchProviderName ?? this.searchProviderName, - includeDisabledProviders: - includeDisabledProviders ?? this.includeDisabledProviders, + includeDisabledProviders: includeDisabledProviders ?? this.includeDisabledProviders, ); } @@ -22600,12 +22203,9 @@ extension $BookInfoRemoteSearchQueryExtension on BookInfoRemoteSearchQuery { return BookInfoRemoteSearchQuery( searchInfo: (searchInfo != null ? searchInfo.value : this.searchInfo), itemId: (itemId != null ? itemId.value : this.itemId), - searchProviderName: (searchProviderName != null - ? searchProviderName.value - : this.searchProviderName), - includeDisabledProviders: (includeDisabledProviders != null - ? includeDisabledProviders.value - : this.includeDisabledProviders), + searchProviderName: (searchProviderName != null ? searchProviderName.value : this.searchProviderName), + includeDisabledProviders: + (includeDisabledProviders != null ? includeDisabledProviders.value : this.includeDisabledProviders), ); } } @@ -22626,8 +22226,7 @@ class BoxSetInfo { this.isAutomated, }); - factory BoxSetInfo.fromJson(Map json) => - _$BoxSetInfoFromJson(json); + factory BoxSetInfo.fromJson(Map json) => _$BoxSetInfoFromJson(json); static const toJsonFactory = _$BoxSetInfoToJson; Map toJson() => _$BoxSetInfoToJson(this); @@ -22660,15 +22259,13 @@ class BoxSetInfo { bool operator ==(Object other) { return identical(this, other) || (other is BoxSetInfo && - (identical(other.name, name) || - const DeepCollectionEquality().equals(other.name, name)) && + (identical(other.name, name) || const DeepCollectionEquality().equals(other.name, name)) && (identical(other.originalTitle, originalTitle) || const DeepCollectionEquality().equals( other.originalTitle, originalTitle, )) && - (identical(other.path, path) || - const DeepCollectionEquality().equals(other.path, path)) && + (identical(other.path, path) || const DeepCollectionEquality().equals(other.path, path)) && (identical(other.metadataLanguage, metadataLanguage) || const DeepCollectionEquality().equals( other.metadataLanguage, @@ -22684,8 +22281,7 @@ class BoxSetInfo { other.providerIds, providerIds, )) && - (identical(other.year, year) || - const DeepCollectionEquality().equals(other.year, year)) && + (identical(other.year, year) || const DeepCollectionEquality().equals(other.year, year)) && (identical(other.indexNumber, indexNumber) || const DeepCollectionEquality().equals( other.indexNumber, @@ -22771,25 +22367,15 @@ extension $BoxSetInfoExtension on BoxSetInfo { }) { return BoxSetInfo( name: (name != null ? name.value : this.name), - originalTitle: (originalTitle != null - ? originalTitle.value - : this.originalTitle), + originalTitle: (originalTitle != null ? originalTitle.value : this.originalTitle), path: (path != null ? path.value : this.path), - metadataLanguage: (metadataLanguage != null - ? metadataLanguage.value - : this.metadataLanguage), - metadataCountryCode: (metadataCountryCode != null - ? metadataCountryCode.value - : this.metadataCountryCode), + metadataLanguage: (metadataLanguage != null ? metadataLanguage.value : this.metadataLanguage), + metadataCountryCode: (metadataCountryCode != null ? metadataCountryCode.value : this.metadataCountryCode), providerIds: (providerIds != null ? providerIds.value : this.providerIds), year: (year != null ? year.value : this.year), indexNumber: (indexNumber != null ? indexNumber.value : this.indexNumber), - parentIndexNumber: (parentIndexNumber != null - ? parentIndexNumber.value - : this.parentIndexNumber), - premiereDate: (premiereDate != null - ? premiereDate.value - : this.premiereDate), + parentIndexNumber: (parentIndexNumber != null ? parentIndexNumber.value : this.parentIndexNumber), + premiereDate: (premiereDate != null ? premiereDate.value : this.premiereDate), isAutomated: (isAutomated != null ? isAutomated.value : this.isAutomated), ); } @@ -22829,8 +22415,7 @@ class BoxSetInfoRemoteSearchQuery { other.searchInfo, searchInfo, )) && - (identical(other.itemId, itemId) || - const DeepCollectionEquality().equals(other.itemId, itemId)) && + (identical(other.itemId, itemId) || const DeepCollectionEquality().equals(other.itemId, itemId)) && (identical(other.searchProviderName, searchProviderName) || const DeepCollectionEquality().equals( other.searchProviderName, @@ -22869,8 +22454,7 @@ extension $BoxSetInfoRemoteSearchQueryExtension on BoxSetInfoRemoteSearchQuery { searchInfo: searchInfo ?? this.searchInfo, itemId: itemId ?? this.itemId, searchProviderName: searchProviderName ?? this.searchProviderName, - includeDisabledProviders: - includeDisabledProviders ?? this.includeDisabledProviders, + includeDisabledProviders: includeDisabledProviders ?? this.includeDisabledProviders, ); } @@ -22883,12 +22467,9 @@ extension $BoxSetInfoRemoteSearchQueryExtension on BoxSetInfoRemoteSearchQuery { return BoxSetInfoRemoteSearchQuery( searchInfo: (searchInfo != null ? searchInfo.value : this.searchInfo), itemId: (itemId != null ? itemId.value : this.itemId), - searchProviderName: (searchProviderName != null - ? searchProviderName.value - : this.searchProviderName), - includeDisabledProviders: (includeDisabledProviders != null - ? includeDisabledProviders.value - : this.includeDisabledProviders), + searchProviderName: (searchProviderName != null ? searchProviderName.value : this.searchProviderName), + includeDisabledProviders: + (includeDisabledProviders != null ? includeDisabledProviders.value : this.includeDisabledProviders), ); } } @@ -22901,8 +22482,7 @@ class BrandingOptionsDto { this.splashscreenEnabled, }); - factory BrandingOptionsDto.fromJson(Map json) => - _$BrandingOptionsDtoFromJson(json); + factory BrandingOptionsDto.fromJson(Map json) => _$BrandingOptionsDtoFromJson(json); static const toJsonFactory = _$BrandingOptionsDtoToJson; Map toJson() => _$BrandingOptionsDtoToJson(this); @@ -22966,13 +22546,9 @@ extension $BrandingOptionsDtoExtension on BrandingOptionsDto { Wrapped? splashscreenEnabled, }) { return BrandingOptionsDto( - loginDisclaimer: (loginDisclaimer != null - ? loginDisclaimer.value - : this.loginDisclaimer), + loginDisclaimer: (loginDisclaimer != null ? loginDisclaimer.value : this.loginDisclaimer), customCss: (customCss != null ? customCss.value : this.customCss), - splashscreenEnabled: (splashscreenEnabled != null - ? splashscreenEnabled.value - : this.splashscreenEnabled), + splashscreenEnabled: (splashscreenEnabled != null ? splashscreenEnabled.value : this.splashscreenEnabled), ); } } @@ -22986,8 +22562,7 @@ class BufferRequestDto { this.playlistItemId, }); - factory BufferRequestDto.fromJson(Map json) => - _$BufferRequestDtoFromJson(json); + factory BufferRequestDto.fromJson(Map json) => _$BufferRequestDtoFromJson(json); static const toJsonFactory = _$BufferRequestDtoToJson; Map toJson() => _$BufferRequestDtoToJson(this); @@ -23006,8 +22581,7 @@ class BufferRequestDto { bool operator ==(Object other) { return identical(this, other) || (other is BufferRequestDto && - (identical(other.when, when) || - const DeepCollectionEquality().equals(other.when, when)) && + (identical(other.when, when) || const DeepCollectionEquality().equals(other.when, when)) && (identical(other.positionTicks, positionTicks) || const DeepCollectionEquality().equals( other.positionTicks, @@ -23060,13 +22634,9 @@ extension $BufferRequestDtoExtension on BufferRequestDto { }) { return BufferRequestDto( when: (when != null ? when.value : this.when), - positionTicks: (positionTicks != null - ? positionTicks.value - : this.positionTicks), + positionTicks: (positionTicks != null ? positionTicks.value : this.positionTicks), isPlaying: (isPlaying != null ? isPlaying.value : this.isPlaying), - playlistItemId: (playlistItemId != null - ? playlistItemId.value - : this.playlistItemId), + playlistItemId: (playlistItemId != null ? playlistItemId.value : this.playlistItemId), ); } } @@ -23075,8 +22645,7 @@ extension $BufferRequestDtoExtension on BufferRequestDto { class CastReceiverApplication { const CastReceiverApplication({this.id, this.name}); - factory CastReceiverApplication.fromJson(Map json) => - _$CastReceiverApplicationFromJson(json); + factory CastReceiverApplication.fromJson(Map json) => _$CastReceiverApplicationFromJson(json); static const toJsonFactory = _$CastReceiverApplicationToJson; Map toJson() => _$CastReceiverApplicationToJson(this); @@ -23091,10 +22660,8 @@ class CastReceiverApplication { bool operator ==(Object other) { return identical(this, other) || (other is CastReceiverApplication && - (identical(other.id, id) || - const DeepCollectionEquality().equals(other.id, id)) && - (identical(other.name, name) || - const DeepCollectionEquality().equals(other.name, name))); + (identical(other.id, id) || const DeepCollectionEquality().equals(other.id, id)) && + (identical(other.name, name) || const DeepCollectionEquality().equals(other.name, name))); } @override @@ -23102,9 +22669,7 @@ class CastReceiverApplication { @override int get hashCode => - const DeepCollectionEquality().hash(id) ^ - const DeepCollectionEquality().hash(name) ^ - runtimeType.hashCode; + const DeepCollectionEquality().hash(id) ^ const DeepCollectionEquality().hash(name) ^ runtimeType.hashCode; } extension $CastReceiverApplicationExtension on CastReceiverApplication { @@ -23140,8 +22705,7 @@ class ChannelFeatures { this.supportsContentDownloading, }); - factory ChannelFeatures.fromJson(Map json) => - _$ChannelFeaturesFromJson(json); + factory ChannelFeatures.fromJson(Map json) => _$ChannelFeaturesFromJson(json); static const toJsonFactory = _$ChannelFeaturesToJson; Map toJson() => _$ChannelFeaturesToJson(this); @@ -23191,10 +22755,8 @@ class ChannelFeatures { bool operator ==(Object other) { return identical(this, other) || (other is ChannelFeatures && - (identical(other.name, name) || - const DeepCollectionEquality().equals(other.name, name)) && - (identical(other.id, id) || - const DeepCollectionEquality().equals(other.id, id)) && + (identical(other.name, name) || const DeepCollectionEquality().equals(other.name, name)) && + (identical(other.id, id) || const DeepCollectionEquality().equals(other.id, id)) && (identical(other.canSearch, canSearch) || const DeepCollectionEquality().equals( other.canSearch, @@ -23297,12 +22859,10 @@ extension $ChannelFeaturesExtension on ChannelFeatures { maxPageSize: maxPageSize ?? this.maxPageSize, autoRefreshLevels: autoRefreshLevels ?? this.autoRefreshLevels, defaultSortFields: defaultSortFields ?? this.defaultSortFields, - supportsSortOrderToggle: - supportsSortOrderToggle ?? this.supportsSortOrderToggle, + supportsSortOrderToggle: supportsSortOrderToggle ?? this.supportsSortOrderToggle, supportsLatestMedia: supportsLatestMedia ?? this.supportsLatestMedia, canFilter: canFilter ?? this.canFilter, - supportsContentDownloading: - supportsContentDownloading ?? this.supportsContentDownloading, + supportsContentDownloading: supportsContentDownloading ?? this.supportsContentDownloading, ); } @@ -23325,26 +22885,16 @@ extension $ChannelFeaturesExtension on ChannelFeatures { id: (id != null ? id.value : this.id), canSearch: (canSearch != null ? canSearch.value : this.canSearch), mediaTypes: (mediaTypes != null ? mediaTypes.value : this.mediaTypes), - contentTypes: (contentTypes != null - ? contentTypes.value - : this.contentTypes), + contentTypes: (contentTypes != null ? contentTypes.value : this.contentTypes), maxPageSize: (maxPageSize != null ? maxPageSize.value : this.maxPageSize), - autoRefreshLevels: (autoRefreshLevels != null - ? autoRefreshLevels.value - : this.autoRefreshLevels), - defaultSortFields: (defaultSortFields != null - ? defaultSortFields.value - : this.defaultSortFields), - supportsSortOrderToggle: (supportsSortOrderToggle != null - ? supportsSortOrderToggle.value - : this.supportsSortOrderToggle), - supportsLatestMedia: (supportsLatestMedia != null - ? supportsLatestMedia.value - : this.supportsLatestMedia), + autoRefreshLevels: (autoRefreshLevels != null ? autoRefreshLevels.value : this.autoRefreshLevels), + defaultSortFields: (defaultSortFields != null ? defaultSortFields.value : this.defaultSortFields), + supportsSortOrderToggle: + (supportsSortOrderToggle != null ? supportsSortOrderToggle.value : this.supportsSortOrderToggle), + supportsLatestMedia: (supportsLatestMedia != null ? supportsLatestMedia.value : this.supportsLatestMedia), canFilter: (canFilter != null ? canFilter.value : this.canFilter), - supportsContentDownloading: (supportsContentDownloading != null - ? supportsContentDownloading.value - : this.supportsContentDownloading), + supportsContentDownloading: + (supportsContentDownloading != null ? supportsContentDownloading.value : this.supportsContentDownloading), ); } } @@ -23358,8 +22908,7 @@ class ChannelMappingOptionsDto { this.providerName, }); - factory ChannelMappingOptionsDto.fromJson(Map json) => - _$ChannelMappingOptionsDtoFromJson(json); + factory ChannelMappingOptionsDto.fromJson(Map json) => _$ChannelMappingOptionsDtoFromJson(json); static const toJsonFactory = _$ChannelMappingOptionsDtoToJson; Map toJson() => _$ChannelMappingOptionsDtoToJson(this); @@ -23446,16 +22995,10 @@ extension $ChannelMappingOptionsDtoExtension on ChannelMappingOptionsDto { Wrapped? providerName, }) { return ChannelMappingOptionsDto( - tunerChannels: (tunerChannels != null - ? tunerChannels.value - : this.tunerChannels), - providerChannels: (providerChannels != null - ? providerChannels.value - : this.providerChannels), + tunerChannels: (tunerChannels != null ? tunerChannels.value : this.tunerChannels), + providerChannels: (providerChannels != null ? providerChannels.value : this.providerChannels), mappings: (mappings != null ? mappings.value : this.mappings), - providerName: (providerName != null - ? providerName.value - : this.providerName), + providerName: (providerName != null ? providerName.value : this.providerName), ); } } @@ -23470,8 +23013,7 @@ class ChapterInfo { this.imageTag, }); - factory ChapterInfo.fromJson(Map json) => - _$ChapterInfoFromJson(json); + factory ChapterInfo.fromJson(Map json) => _$ChapterInfoFromJson(json); static const toJsonFactory = _$ChapterInfoToJson; Map toJson() => _$ChapterInfoToJson(this); @@ -23497,8 +23039,7 @@ class ChapterInfo { other.startPositionTicks, startPositionTicks, )) && - (identical(other.name, name) || - const DeepCollectionEquality().equals(other.name, name)) && + (identical(other.name, name) || const DeepCollectionEquality().equals(other.name, name)) && (identical(other.imagePath, imagePath) || const DeepCollectionEquality().equals( other.imagePath, @@ -23554,14 +23095,10 @@ extension $ChapterInfoExtension on ChapterInfo { Wrapped? imageTag, }) { return ChapterInfo( - startPositionTicks: (startPositionTicks != null - ? startPositionTicks.value - : this.startPositionTicks), + startPositionTicks: (startPositionTicks != null ? startPositionTicks.value : this.startPositionTicks), name: (name != null ? name.value : this.name), imagePath: (imagePath != null ? imagePath.value : this.imagePath), - imageDateModified: (imageDateModified != null - ? imageDateModified.value - : this.imageDateModified), + imageDateModified: (imageDateModified != null ? imageDateModified.value : this.imageDateModified), imageTag: (imageTag != null ? imageTag.value : this.imageTag), ); } @@ -23579,8 +23116,7 @@ class ClientCapabilitiesDto { this.iconUrl, }); - factory ClientCapabilitiesDto.fromJson(Map json) => - _$ClientCapabilitiesDtoFromJson(json); + factory ClientCapabilitiesDto.fromJson(Map json) => _$ClientCapabilitiesDtoFromJson(json); static const toJsonFactory = _$ClientCapabilitiesDtoToJson; Map toJson() => _$ClientCapabilitiesDtoToJson(this); @@ -23648,8 +23184,7 @@ class ClientCapabilitiesDto { other.appStoreUrl, appStoreUrl, )) && - (identical(other.iconUrl, iconUrl) || - const DeepCollectionEquality().equals(other.iconUrl, iconUrl))); + (identical(other.iconUrl, iconUrl) || const DeepCollectionEquality().equals(other.iconUrl, iconUrl))); } @override @@ -23681,8 +23216,7 @@ extension $ClientCapabilitiesDtoExtension on ClientCapabilitiesDto { playableMediaTypes: playableMediaTypes ?? this.playableMediaTypes, supportedCommands: supportedCommands ?? this.supportedCommands, supportsMediaControl: supportsMediaControl ?? this.supportsMediaControl, - supportsPersistentIdentifier: - supportsPersistentIdentifier ?? this.supportsPersistentIdentifier, + supportsPersistentIdentifier: supportsPersistentIdentifier ?? this.supportsPersistentIdentifier, deviceProfile: deviceProfile ?? this.deviceProfile, appStoreUrl: appStoreUrl ?? this.appStoreUrl, iconUrl: iconUrl ?? this.iconUrl, @@ -23699,21 +23233,13 @@ extension $ClientCapabilitiesDtoExtension on ClientCapabilitiesDto { Wrapped? iconUrl, }) { return ClientCapabilitiesDto( - playableMediaTypes: (playableMediaTypes != null - ? playableMediaTypes.value - : this.playableMediaTypes), - supportedCommands: (supportedCommands != null - ? supportedCommands.value - : this.supportedCommands), - supportsMediaControl: (supportsMediaControl != null - ? supportsMediaControl.value - : this.supportsMediaControl), + playableMediaTypes: (playableMediaTypes != null ? playableMediaTypes.value : this.playableMediaTypes), + supportedCommands: (supportedCommands != null ? supportedCommands.value : this.supportedCommands), + supportsMediaControl: (supportsMediaControl != null ? supportsMediaControl.value : this.supportsMediaControl), supportsPersistentIdentifier: (supportsPersistentIdentifier != null ? supportsPersistentIdentifier.value : this.supportsPersistentIdentifier), - deviceProfile: (deviceProfile != null - ? deviceProfile.value - : this.deviceProfile), + deviceProfile: (deviceProfile != null ? deviceProfile.value : this.deviceProfile), appStoreUrl: (appStoreUrl != null ? appStoreUrl.value : this.appStoreUrl), iconUrl: (iconUrl != null ? iconUrl.value : this.iconUrl), ); @@ -23749,12 +23275,10 @@ class ClientLogDocumentResponseDto { String toString() => jsonEncode(this); @override - int get hashCode => - const DeepCollectionEquality().hash(fileName) ^ runtimeType.hashCode; + int get hashCode => const DeepCollectionEquality().hash(fileName) ^ runtimeType.hashCode; } -extension $ClientLogDocumentResponseDtoExtension - on ClientLogDocumentResponseDto { +extension $ClientLogDocumentResponseDtoExtension on ClientLogDocumentResponseDto { ClientLogDocumentResponseDto copyWith({String? fileName}) { return ClientLogDocumentResponseDto(fileName: fileName ?? this.fileName); } @@ -23777,8 +23301,7 @@ class CodecProfile { this.subContainer, }); - factory CodecProfile.fromJson(Map json) => - _$CodecProfileFromJson(json); + factory CodecProfile.fromJson(Map json) => _$CodecProfileFromJson(json); static const toJsonFactory = _$CodecProfileToJson; Map toJson() => _$CodecProfileToJson(this); @@ -23814,8 +23337,7 @@ class CodecProfile { bool operator ==(Object other) { return identical(this, other) || (other is CodecProfile && - (identical(other.type, type) || - const DeepCollectionEquality().equals(other.type, type)) && + (identical(other.type, type) || const DeepCollectionEquality().equals(other.type, type)) && (identical(other.conditions, conditions) || const DeepCollectionEquality().equals( other.conditions, @@ -23826,8 +23348,7 @@ class CodecProfile { other.applyConditions, applyConditions, )) && - (identical(other.codec, codec) || - const DeepCollectionEquality().equals(other.codec, codec)) && + (identical(other.codec, codec) || const DeepCollectionEquality().equals(other.codec, codec)) && (identical(other.container, container) || const DeepCollectionEquality().equals( other.container, @@ -23884,14 +23405,10 @@ extension $CodecProfileExtension on CodecProfile { return CodecProfile( type: (type != null ? type.value : this.type), conditions: (conditions != null ? conditions.value : this.conditions), - applyConditions: (applyConditions != null - ? applyConditions.value - : this.applyConditions), + applyConditions: (applyConditions != null ? applyConditions.value : this.applyConditions), codec: (codec != null ? codec.value : this.codec), container: (container != null ? container.value : this.container), - subContainer: (subContainer != null - ? subContainer.value - : this.subContainer), + subContainer: (subContainer != null ? subContainer.value : this.subContainer), ); } } @@ -23900,8 +23417,7 @@ extension $CodecProfileExtension on CodecProfile { class CollectionCreationResult { const CollectionCreationResult({this.id}); - factory CollectionCreationResult.fromJson(Map json) => - _$CollectionCreationResultFromJson(json); + factory CollectionCreationResult.fromJson(Map json) => _$CollectionCreationResultFromJson(json); static const toJsonFactory = _$CollectionCreationResultToJson; Map toJson() => _$CollectionCreationResultToJson(this); @@ -23914,16 +23430,14 @@ class CollectionCreationResult { bool operator ==(Object other) { return identical(this, other) || (other is CollectionCreationResult && - (identical(other.id, id) || - const DeepCollectionEquality().equals(other.id, id))); + (identical(other.id, id) || const DeepCollectionEquality().equals(other.id, id))); } @override String toString() => jsonEncode(this); @override - int get hashCode => - const DeepCollectionEquality().hash(id) ^ runtimeType.hashCode; + int get hashCode => const DeepCollectionEquality().hash(id) ^ runtimeType.hashCode; } extension $CollectionCreationResultExtension on CollectionCreationResult { @@ -23948,8 +23462,7 @@ class ConfigImageTypes { this.stillSizes, }); - factory ConfigImageTypes.fromJson(Map json) => - _$ConfigImageTypesFromJson(json); + factory ConfigImageTypes.fromJson(Map json) => _$ConfigImageTypesFromJson(json); static const toJsonFactory = _$ConfigImageTypesToJson; Map toJson() => _$ConfigImageTypesToJson(this); @@ -24061,18 +23574,12 @@ extension $ConfigImageTypesExtension on ConfigImageTypes { Wrapped?>? stillSizes, }) { return ConfigImageTypes( - backdropSizes: (backdropSizes != null - ? backdropSizes.value - : this.backdropSizes), + backdropSizes: (backdropSizes != null ? backdropSizes.value : this.backdropSizes), baseUrl: (baseUrl != null ? baseUrl.value : this.baseUrl), logoSizes: (logoSizes != null ? logoSizes.value : this.logoSizes), posterSizes: (posterSizes != null ? posterSizes.value : this.posterSizes), - profileSizes: (profileSizes != null - ? profileSizes.value - : this.profileSizes), - secureBaseUrl: (secureBaseUrl != null - ? secureBaseUrl.value - : this.secureBaseUrl), + profileSizes: (profileSizes != null ? profileSizes.value : this.profileSizes), + secureBaseUrl: (secureBaseUrl != null ? secureBaseUrl.value : this.secureBaseUrl), stillSizes: (stillSizes != null ? stillSizes.value : this.stillSizes), ); } @@ -24089,8 +23596,7 @@ class ConfigurationPageInfo { this.pluginId, }); - factory ConfigurationPageInfo.fromJson(Map json) => - _$ConfigurationPageInfoFromJson(json); + factory ConfigurationPageInfo.fromJson(Map json) => _$ConfigurationPageInfoFromJson(json); static const toJsonFactory = _$ConfigurationPageInfoToJson; Map toJson() => _$ConfigurationPageInfoToJson(this); @@ -24113,8 +23619,7 @@ class ConfigurationPageInfo { bool operator ==(Object other) { return identical(this, other) || (other is ConfigurationPageInfo && - (identical(other.name, name) || - const DeepCollectionEquality().equals(other.name, name)) && + (identical(other.name, name) || const DeepCollectionEquality().equals(other.name, name)) && (identical(other.enableInMainMenu, enableInMainMenu) || const DeepCollectionEquality().equals( other.enableInMainMenu, @@ -24185,9 +23690,7 @@ extension $ConfigurationPageInfoExtension on ConfigurationPageInfo { }) { return ConfigurationPageInfo( name: (name != null ? name.value : this.name), - enableInMainMenu: (enableInMainMenu != null - ? enableInMainMenu.value - : this.enableInMainMenu), + enableInMainMenu: (enableInMainMenu != null ? enableInMainMenu.value : this.enableInMainMenu), menuSection: (menuSection != null ? menuSection.value : this.menuSection), menuIcon: (menuIcon != null ? menuIcon.value : this.menuIcon), displayName: (displayName != null ? displayName.value : this.displayName), @@ -24205,8 +23708,7 @@ class ContainerProfile { this.subContainer, }); - factory ContainerProfile.fromJson(Map json) => - _$ContainerProfileFromJson(json); + factory ContainerProfile.fromJson(Map json) => _$ContainerProfileFromJson(json); static const toJsonFactory = _$ContainerProfileToJson; Map toJson() => _$ContainerProfileToJson(this); @@ -24234,8 +23736,7 @@ class ContainerProfile { bool operator ==(Object other) { return identical(this, other) || (other is ContainerProfile && - (identical(other.type, type) || - const DeepCollectionEquality().equals(other.type, type)) && + (identical(other.type, type) || const DeepCollectionEquality().equals(other.type, type)) && (identical(other.conditions, conditions) || const DeepCollectionEquality().equals( other.conditions, @@ -24290,9 +23791,7 @@ extension $ContainerProfileExtension on ContainerProfile { type: (type != null ? type.value : this.type), conditions: (conditions != null ? conditions.value : this.conditions), container: (container != null ? container.value : this.container), - subContainer: (subContainer != null - ? subContainer.value - : this.subContainer), + subContainer: (subContainer != null ? subContainer.value : this.subContainer), ); } } @@ -24306,8 +23805,7 @@ class CountryInfo { this.threeLetterISORegionName, }); - factory CountryInfo.fromJson(Map json) => - _$CountryInfoFromJson(json); + factory CountryInfo.fromJson(Map json) => _$CountryInfoFromJson(json); static const toJsonFactory = _$CountryInfoToJson; Map toJson() => _$CountryInfoToJson(this); @@ -24326,8 +23824,7 @@ class CountryInfo { bool operator ==(Object other) { return identical(this, other) || (other is CountryInfo && - (identical(other.name, name) || - const DeepCollectionEquality().equals(other.name, name)) && + (identical(other.name, name) || const DeepCollectionEquality().equals(other.name, name)) && (identical(other.displayName, displayName) || const DeepCollectionEquality().equals( other.displayName, @@ -24370,10 +23867,8 @@ extension $CountryInfoExtension on CountryInfo { return CountryInfo( name: name ?? this.name, displayName: displayName ?? this.displayName, - twoLetterISORegionName: - twoLetterISORegionName ?? this.twoLetterISORegionName, - threeLetterISORegionName: - threeLetterISORegionName ?? this.threeLetterISORegionName, + twoLetterISORegionName: twoLetterISORegionName ?? this.twoLetterISORegionName, + threeLetterISORegionName: threeLetterISORegionName ?? this.threeLetterISORegionName, ); } @@ -24386,12 +23881,10 @@ extension $CountryInfoExtension on CountryInfo { return CountryInfo( name: (name != null ? name.value : this.name), displayName: (displayName != null ? displayName.value : this.displayName), - twoLetterISORegionName: (twoLetterISORegionName != null - ? twoLetterISORegionName.value - : this.twoLetterISORegionName), - threeLetterISORegionName: (threeLetterISORegionName != null - ? threeLetterISORegionName.value - : this.threeLetterISORegionName), + twoLetterISORegionName: + (twoLetterISORegionName != null ? twoLetterISORegionName.value : this.twoLetterISORegionName), + threeLetterISORegionName: + (threeLetterISORegionName != null ? threeLetterISORegionName.value : this.threeLetterISORegionName), ); } } @@ -24407,8 +23900,7 @@ class CreatePlaylistDto { this.isPublic, }); - factory CreatePlaylistDto.fromJson(Map json) => - _$CreatePlaylistDtoFromJson(json); + factory CreatePlaylistDto.fromJson(Map json) => _$CreatePlaylistDtoFromJson(json); static const toJsonFactory = _$CreatePlaylistDtoToJson; Map toJson() => _$CreatePlaylistDtoToJson(this); @@ -24440,19 +23932,15 @@ class CreatePlaylistDto { bool operator ==(Object other) { return identical(this, other) || (other is CreatePlaylistDto && - (identical(other.name, name) || - const DeepCollectionEquality().equals(other.name, name)) && - (identical(other.ids, ids) || - const DeepCollectionEquality().equals(other.ids, ids)) && - (identical(other.userId, userId) || - const DeepCollectionEquality().equals(other.userId, userId)) && + (identical(other.name, name) || const DeepCollectionEquality().equals(other.name, name)) && + (identical(other.ids, ids) || const DeepCollectionEquality().equals(other.ids, ids)) && + (identical(other.userId, userId) || const DeepCollectionEquality().equals(other.userId, userId)) && (identical(other.mediaType, mediaType) || const DeepCollectionEquality().equals( other.mediaType, mediaType, )) && - (identical(other.users, users) || - const DeepCollectionEquality().equals(other.users, users)) && + (identical(other.users, users) || const DeepCollectionEquality().equals(other.users, users)) && (identical(other.isPublic, isPublic) || const DeepCollectionEquality().equals( other.isPublic, @@ -24516,8 +24004,7 @@ extension $CreatePlaylistDtoExtension on CreatePlaylistDto { class CreateUserByName { const CreateUserByName({required this.name, this.password}); - factory CreateUserByName.fromJson(Map json) => - _$CreateUserByNameFromJson(json); + factory CreateUserByName.fromJson(Map json) => _$CreateUserByNameFromJson(json); static const toJsonFactory = _$CreateUserByNameToJson; Map toJson() => _$CreateUserByNameToJson(this); @@ -24532,8 +24019,7 @@ class CreateUserByName { bool operator ==(Object other) { return identical(this, other) || (other is CreateUserByName && - (identical(other.name, name) || - const DeepCollectionEquality().equals(other.name, name)) && + (identical(other.name, name) || const DeepCollectionEquality().equals(other.name, name)) && (identical(other.password, password) || const DeepCollectionEquality().equals( other.password, @@ -24546,9 +24032,7 @@ class CreateUserByName { @override int get hashCode => - const DeepCollectionEquality().hash(name) ^ - const DeepCollectionEquality().hash(password) ^ - runtimeType.hashCode; + const DeepCollectionEquality().hash(name) ^ const DeepCollectionEquality().hash(password) ^ runtimeType.hashCode; } extension $CreateUserByNameExtension on CreateUserByName { @@ -24580,8 +24064,7 @@ class CultureDto { this.threeLetterISOLanguageNames, }); - factory CultureDto.fromJson(Map json) => - _$CultureDtoFromJson(json); + factory CultureDto.fromJson(Map json) => _$CultureDtoFromJson(json); static const toJsonFactory = _$CultureDtoToJson; Map toJson() => _$CultureDtoToJson(this); @@ -24606,8 +24089,7 @@ class CultureDto { bool operator ==(Object other) { return identical(this, other) || (other is CultureDto && - (identical(other.name, name) || - const DeepCollectionEquality().equals(other.name, name)) && + (identical(other.name, name) || const DeepCollectionEquality().equals(other.name, name)) && (identical(other.displayName, displayName) || const DeepCollectionEquality().equals( other.displayName, @@ -24663,12 +24145,9 @@ extension $CultureDtoExtension on CultureDto { return CultureDto( name: name ?? this.name, displayName: displayName ?? this.displayName, - twoLetterISOLanguageName: - twoLetterISOLanguageName ?? this.twoLetterISOLanguageName, - threeLetterISOLanguageName: - threeLetterISOLanguageName ?? this.threeLetterISOLanguageName, - threeLetterISOLanguageNames: - threeLetterISOLanguageNames ?? this.threeLetterISOLanguageNames, + twoLetterISOLanguageName: twoLetterISOLanguageName ?? this.twoLetterISOLanguageName, + threeLetterISOLanguageName: threeLetterISOLanguageName ?? this.threeLetterISOLanguageName, + threeLetterISOLanguageNames: threeLetterISOLanguageNames ?? this.threeLetterISOLanguageNames, ); } @@ -24682,15 +24161,12 @@ extension $CultureDtoExtension on CultureDto { return CultureDto( name: (name != null ? name.value : this.name), displayName: (displayName != null ? displayName.value : this.displayName), - twoLetterISOLanguageName: (twoLetterISOLanguageName != null - ? twoLetterISOLanguageName.value - : this.twoLetterISOLanguageName), - threeLetterISOLanguageName: (threeLetterISOLanguageName != null - ? threeLetterISOLanguageName.value - : this.threeLetterISOLanguageName), - threeLetterISOLanguageNames: (threeLetterISOLanguageNames != null - ? threeLetterISOLanguageNames.value - : this.threeLetterISOLanguageNames), + twoLetterISOLanguageName: + (twoLetterISOLanguageName != null ? twoLetterISOLanguageName.value : this.twoLetterISOLanguageName), + threeLetterISOLanguageName: + (threeLetterISOLanguageName != null ? threeLetterISOLanguageName.value : this.threeLetterISOLanguageName), + threeLetterISOLanguageNames: + (threeLetterISOLanguageNames != null ? threeLetterISOLanguageNames.value : this.threeLetterISOLanguageNames), ); } } @@ -24699,8 +24175,7 @@ extension $CultureDtoExtension on CultureDto { class CustomDatabaseOption { const CustomDatabaseOption({this.key, this.$Value}); - factory CustomDatabaseOption.fromJson(Map json) => - _$CustomDatabaseOptionFromJson(json); + factory CustomDatabaseOption.fromJson(Map json) => _$CustomDatabaseOptionFromJson(json); static const toJsonFactory = _$CustomDatabaseOptionToJson; Map toJson() => _$CustomDatabaseOptionToJson(this); @@ -24715,10 +24190,8 @@ class CustomDatabaseOption { bool operator ==(Object other) { return identical(this, other) || (other is CustomDatabaseOption && - (identical(other.key, key) || - const DeepCollectionEquality().equals(other.key, key)) && - (identical(other.$Value, $Value) || - const DeepCollectionEquality().equals(other.$Value, $Value))); + (identical(other.key, key) || const DeepCollectionEquality().equals(other.key, key)) && + (identical(other.$Value, $Value) || const DeepCollectionEquality().equals(other.$Value, $Value))); } @override @@ -24726,9 +24199,7 @@ class CustomDatabaseOption { @override int get hashCode => - const DeepCollectionEquality().hash(key) ^ - const DeepCollectionEquality().hash($Value) ^ - runtimeType.hashCode; + const DeepCollectionEquality().hash(key) ^ const DeepCollectionEquality().hash($Value) ^ runtimeType.hashCode; } extension $CustomDatabaseOptionExtension on CustomDatabaseOption { @@ -24759,8 +24230,7 @@ class CustomDatabaseOptions { this.options, }); - factory CustomDatabaseOptions.fromJson(Map json) => - _$CustomDatabaseOptionsFromJson(json); + factory CustomDatabaseOptions.fromJson(Map json) => _$CustomDatabaseOptionsFromJson(json); static const toJsonFactory = _$CustomDatabaseOptionsToJson; Map toJson() => _$CustomDatabaseOptionsToJson(this); @@ -24798,8 +24268,7 @@ class CustomDatabaseOptions { other.connectionString, connectionString, )) && - (identical(other.options, options) || - const DeepCollectionEquality().equals(other.options, options))); + (identical(other.options, options) || const DeepCollectionEquality().equals(other.options, options))); } @override @@ -24837,12 +24306,8 @@ extension $CustomDatabaseOptionsExtension on CustomDatabaseOptions { }) { return CustomDatabaseOptions( pluginName: (pluginName != null ? pluginName.value : this.pluginName), - pluginAssembly: (pluginAssembly != null - ? pluginAssembly.value - : this.pluginAssembly), - connectionString: (connectionString != null - ? connectionString.value - : this.connectionString), + pluginAssembly: (pluginAssembly != null ? pluginAssembly.value : this.pluginAssembly), + connectionString: (connectionString != null ? connectionString.value : this.connectionString), options: (options != null ? options.value : this.options), ); } @@ -24852,8 +24317,7 @@ extension $CustomDatabaseOptionsExtension on CustomDatabaseOptions { class CustomQueryData { const CustomQueryData({this.customQueryString, this.replaceUserId}); - factory CustomQueryData.fromJson(Map json) => - _$CustomQueryDataFromJson(json); + factory CustomQueryData.fromJson(Map json) => _$CustomQueryDataFromJson(json); static const toJsonFactory = _$CustomQueryDataToJson; Map toJson() => _$CustomQueryDataToJson(this); @@ -24903,12 +24367,8 @@ extension $CustomQueryDataExtension on CustomQueryData { Wrapped? replaceUserId, }) { return CustomQueryData( - customQueryString: (customQueryString != null - ? customQueryString.value - : this.customQueryString), - replaceUserId: (replaceUserId != null - ? replaceUserId.value - : this.replaceUserId), + customQueryString: (customQueryString != null ? customQueryString.value : this.customQueryString), + replaceUserId: (replaceUserId != null ? replaceUserId.value : this.replaceUserId), ); } } @@ -24972,8 +24432,7 @@ class DatabaseConfigurationOptions { runtimeType.hashCode; } -extension $DatabaseConfigurationOptionsExtension - on DatabaseConfigurationOptions { +extension $DatabaseConfigurationOptionsExtension on DatabaseConfigurationOptions { DatabaseConfigurationOptions copyWith({ String? databaseType, CustomDatabaseOptions? customProviderOptions, @@ -24981,8 +24440,7 @@ extension $DatabaseConfigurationOptionsExtension }) { return DatabaseConfigurationOptions( databaseType: databaseType ?? this.databaseType, - customProviderOptions: - customProviderOptions ?? this.customProviderOptions, + customProviderOptions: customProviderOptions ?? this.customProviderOptions, lockingBehavior: lockingBehavior ?? this.lockingBehavior, ); } @@ -24993,15 +24451,9 @@ extension $DatabaseConfigurationOptionsExtension Wrapped? lockingBehavior, }) { return DatabaseConfigurationOptions( - databaseType: (databaseType != null - ? databaseType.value - : this.databaseType), - customProviderOptions: (customProviderOptions != null - ? customProviderOptions.value - : this.customProviderOptions), - lockingBehavior: (lockingBehavior != null - ? lockingBehavior.value - : this.lockingBehavior), + databaseType: (databaseType != null ? databaseType.value : this.databaseType), + customProviderOptions: (customProviderOptions != null ? customProviderOptions.value : this.customProviderOptions), + lockingBehavior: (lockingBehavior != null ? lockingBehavior.value : this.lockingBehavior), ); } } @@ -25024,20 +24476,17 @@ class DefaultDirectoryBrowserInfoDto { bool operator ==(Object other) { return identical(this, other) || (other is DefaultDirectoryBrowserInfoDto && - (identical(other.path, path) || - const DeepCollectionEquality().equals(other.path, path))); + (identical(other.path, path) || const DeepCollectionEquality().equals(other.path, path))); } @override String toString() => jsonEncode(this); @override - int get hashCode => - const DeepCollectionEquality().hash(path) ^ runtimeType.hashCode; + int get hashCode => const DeepCollectionEquality().hash(path) ^ runtimeType.hashCode; } -extension $DefaultDirectoryBrowserInfoDtoExtension - on DefaultDirectoryBrowserInfoDto { +extension $DefaultDirectoryBrowserInfoDtoExtension on DefaultDirectoryBrowserInfoDto { DefaultDirectoryBrowserInfoDto copyWith({String? path}) { return DefaultDirectoryBrowserInfoDto(path: path ?? this.path); } @@ -25065,8 +24514,7 @@ class DeviceInfoDto { this.iconUrl, }); - factory DeviceInfoDto.fromJson(Map json) => - _$DeviceInfoDtoFromJson(json); + factory DeviceInfoDto.fromJson(Map json) => _$DeviceInfoDtoFromJson(json); static const toJsonFactory = _$DeviceInfoDtoToJson; Map toJson() => _$DeviceInfoDtoToJson(this); @@ -25099,8 +24547,7 @@ class DeviceInfoDto { bool operator ==(Object other) { return identical(this, other) || (other is DeviceInfoDto && - (identical(other.name, name) || - const DeepCollectionEquality().equals(other.name, name)) && + (identical(other.name, name) || const DeepCollectionEquality().equals(other.name, name)) && (identical(other.customName, customName) || const DeepCollectionEquality().equals( other.customName, @@ -25111,8 +24558,7 @@ class DeviceInfoDto { other.accessToken, accessToken, )) && - (identical(other.id, id) || - const DeepCollectionEquality().equals(other.id, id)) && + (identical(other.id, id) || const DeepCollectionEquality().equals(other.id, id)) && (identical(other.lastUserName, lastUserName) || const DeepCollectionEquality().equals( other.lastUserName, @@ -25143,8 +24589,7 @@ class DeviceInfoDto { other.capabilities, capabilities, )) && - (identical(other.iconUrl, iconUrl) || - const DeepCollectionEquality().equals(other.iconUrl, iconUrl))); + (identical(other.iconUrl, iconUrl) || const DeepCollectionEquality().equals(other.iconUrl, iconUrl))); } @override @@ -25213,18 +24658,12 @@ extension $DeviceInfoDtoExtension on DeviceInfoDto { customName: (customName != null ? customName.value : this.customName), accessToken: (accessToken != null ? accessToken.value : this.accessToken), id: (id != null ? id.value : this.id), - lastUserName: (lastUserName != null - ? lastUserName.value - : this.lastUserName), + lastUserName: (lastUserName != null ? lastUserName.value : this.lastUserName), appName: (appName != null ? appName.value : this.appName), appVersion: (appVersion != null ? appVersion.value : this.appVersion), lastUserId: (lastUserId != null ? lastUserId.value : this.lastUserId), - dateLastActivity: (dateLastActivity != null - ? dateLastActivity.value - : this.dateLastActivity), - capabilities: (capabilities != null - ? capabilities.value - : this.capabilities), + dateLastActivity: (dateLastActivity != null ? dateLastActivity.value : this.dateLastActivity), + capabilities: (capabilities != null ? capabilities.value : this.capabilities), iconUrl: (iconUrl != null ? iconUrl.value : this.iconUrl), ); } @@ -25238,8 +24677,7 @@ class DeviceInfoDtoQueryResult { this.startIndex, }); - factory DeviceInfoDtoQueryResult.fromJson(Map json) => - _$DeviceInfoDtoQueryResultFromJson(json); + factory DeviceInfoDtoQueryResult.fromJson(Map json) => _$DeviceInfoDtoQueryResultFromJson(json); static const toJsonFactory = _$DeviceInfoDtoQueryResultToJson; Map toJson() => _$DeviceInfoDtoQueryResultToJson(this); @@ -25256,8 +24694,7 @@ class DeviceInfoDtoQueryResult { bool operator ==(Object other) { return identical(this, other) || (other is DeviceInfoDtoQueryResult && - (identical(other.items, items) || - const DeepCollectionEquality().equals(other.items, items)) && + (identical(other.items, items) || const DeepCollectionEquality().equals(other.items, items)) && (identical(other.totalRecordCount, totalRecordCount) || const DeepCollectionEquality().equals( other.totalRecordCount, @@ -25301,9 +24738,7 @@ extension $DeviceInfoDtoQueryResultExtension on DeviceInfoDtoQueryResult { }) { return DeviceInfoDtoQueryResult( items: (items != null ? items.value : this.items), - totalRecordCount: (totalRecordCount != null - ? totalRecordCount.value - : this.totalRecordCount), + totalRecordCount: (totalRecordCount != null ? totalRecordCount.value : this.totalRecordCount), startIndex: (startIndex != null ? startIndex.value : this.startIndex), ); } @@ -25313,8 +24748,7 @@ extension $DeviceInfoDtoQueryResultExtension on DeviceInfoDtoQueryResult { class DeviceOptionsDto { const DeviceOptionsDto({this.id, this.deviceId, this.customName}); - factory DeviceOptionsDto.fromJson(Map json) => - _$DeviceOptionsDtoFromJson(json); + factory DeviceOptionsDto.fromJson(Map json) => _$DeviceOptionsDtoFromJson(json); static const toJsonFactory = _$DeviceOptionsDtoToJson; Map toJson() => _$DeviceOptionsDtoToJson(this); @@ -25331,8 +24765,7 @@ class DeviceOptionsDto { bool operator ==(Object other) { return identical(this, other) || (other is DeviceOptionsDto && - (identical(other.id, id) || - const DeepCollectionEquality().equals(other.id, id)) && + (identical(other.id, id) || const DeepCollectionEquality().equals(other.id, id)) && (identical(other.deviceId, deviceId) || const DeepCollectionEquality().equals( other.deviceId, @@ -25394,8 +24827,7 @@ class DeviceProfile { this.subtitleProfiles, }); - factory DeviceProfile.fromJson(Map json) => - _$DeviceProfileFromJson(json); + factory DeviceProfile.fromJson(Map json) => _$DeviceProfileFromJson(json); static const toJsonFactory = _$DeviceProfileToJson; Map toJson() => _$DeviceProfileToJson(this); @@ -25448,10 +24880,8 @@ class DeviceProfile { bool operator ==(Object other) { return identical(this, other) || (other is DeviceProfile && - (identical(other.name, name) || - const DeepCollectionEquality().equals(other.name, name)) && - (identical(other.id, id) || - const DeepCollectionEquality().equals(other.id, id)) && + (identical(other.name, name) || const DeepCollectionEquality().equals(other.name, name)) && + (identical(other.id, id) || const DeepCollectionEquality().equals(other.id, id)) && (identical(other.maxStreamingBitrate, maxStreamingBitrate) || const DeepCollectionEquality().equals( other.maxStreamingBitrate, @@ -25540,11 +24970,8 @@ extension $DeviceProfileExtension on DeviceProfile { id: id ?? this.id, maxStreamingBitrate: maxStreamingBitrate ?? this.maxStreamingBitrate, maxStaticBitrate: maxStaticBitrate ?? this.maxStaticBitrate, - musicStreamingTranscodingBitrate: - musicStreamingTranscodingBitrate ?? - this.musicStreamingTranscodingBitrate, - maxStaticMusicBitrate: - maxStaticMusicBitrate ?? this.maxStaticMusicBitrate, + musicStreamingTranscodingBitrate: musicStreamingTranscodingBitrate ?? this.musicStreamingTranscodingBitrate, + maxStaticMusicBitrate: maxStaticMusicBitrate ?? this.maxStaticMusicBitrate, directPlayProfiles: directPlayProfiles ?? this.directPlayProfiles, transcodingProfiles: transcodingProfiles ?? this.transcodingProfiles, containerProfiles: containerProfiles ?? this.containerProfiles, @@ -25569,34 +24996,17 @@ extension $DeviceProfileExtension on DeviceProfile { return DeviceProfile( name: (name != null ? name.value : this.name), id: (id != null ? id.value : this.id), - maxStreamingBitrate: (maxStreamingBitrate != null - ? maxStreamingBitrate.value - : this.maxStreamingBitrate), - maxStaticBitrate: (maxStaticBitrate != null - ? maxStaticBitrate.value - : this.maxStaticBitrate), - musicStreamingTranscodingBitrate: - (musicStreamingTranscodingBitrate != null + maxStreamingBitrate: (maxStreamingBitrate != null ? maxStreamingBitrate.value : this.maxStreamingBitrate), + maxStaticBitrate: (maxStaticBitrate != null ? maxStaticBitrate.value : this.maxStaticBitrate), + musicStreamingTranscodingBitrate: (musicStreamingTranscodingBitrate != null ? musicStreamingTranscodingBitrate.value : this.musicStreamingTranscodingBitrate), - maxStaticMusicBitrate: (maxStaticMusicBitrate != null - ? maxStaticMusicBitrate.value - : this.maxStaticMusicBitrate), - directPlayProfiles: (directPlayProfiles != null - ? directPlayProfiles.value - : this.directPlayProfiles), - transcodingProfiles: (transcodingProfiles != null - ? transcodingProfiles.value - : this.transcodingProfiles), - containerProfiles: (containerProfiles != null - ? containerProfiles.value - : this.containerProfiles), - codecProfiles: (codecProfiles != null - ? codecProfiles.value - : this.codecProfiles), - subtitleProfiles: (subtitleProfiles != null - ? subtitleProfiles.value - : this.subtitleProfiles), + maxStaticMusicBitrate: (maxStaticMusicBitrate != null ? maxStaticMusicBitrate.value : this.maxStaticMusicBitrate), + directPlayProfiles: (directPlayProfiles != null ? directPlayProfiles.value : this.directPlayProfiles), + transcodingProfiles: (transcodingProfiles != null ? transcodingProfiles.value : this.transcodingProfiles), + containerProfiles: (containerProfiles != null ? containerProfiles.value : this.containerProfiles), + codecProfiles: (codecProfiles != null ? codecProfiles.value : this.codecProfiles), + subtitleProfiles: (subtitleProfiles != null ? subtitleProfiles.value : this.subtitleProfiles), ); } } @@ -25610,8 +25020,7 @@ class DirectPlayProfile { this.type, }); - factory DirectPlayProfile.fromJson(Map json) => - _$DirectPlayProfileFromJson(json); + factory DirectPlayProfile.fromJson(Map json) => _$DirectPlayProfileFromJson(json); static const toJsonFactory = _$DirectPlayProfileToJson; Map toJson() => _$DirectPlayProfileToJson(this); @@ -25650,8 +25059,7 @@ class DirectPlayProfile { other.videoCodec, videoCodec, )) && - (identical(other.type, type) || - const DeepCollectionEquality().equals(other.type, type))); + (identical(other.type, type) || const DeepCollectionEquality().equals(other.type, type))); } @override @@ -25715,8 +25123,7 @@ class DisplayPreferencesDto { this.$Client, }); - factory DisplayPreferencesDto.fromJson(Map json) => - _$DisplayPreferencesDtoFromJson(json); + factory DisplayPreferencesDto.fromJson(Map json) => _$DisplayPreferencesDtoFromJson(json); static const toJsonFactory = _$DisplayPreferencesDtoToJson; Map toJson() => _$DisplayPreferencesDtoToJson(this); @@ -25765,15 +25172,13 @@ class DisplayPreferencesDto { bool operator ==(Object other) { return identical(this, other) || (other is DisplayPreferencesDto && - (identical(other.id, id) || - const DeepCollectionEquality().equals(other.id, id)) && + (identical(other.id, id) || const DeepCollectionEquality().equals(other.id, id)) && (identical(other.viewType, viewType) || const DeepCollectionEquality().equals( other.viewType, viewType, )) && - (identical(other.sortBy, sortBy) || - const DeepCollectionEquality().equals(other.sortBy, sortBy)) && + (identical(other.sortBy, sortBy) || const DeepCollectionEquality().equals(other.sortBy, sortBy)) && (identical(other.indexBy, indexBy) || const DeepCollectionEquality().equals( other.indexBy, @@ -25824,8 +25229,7 @@ class DisplayPreferencesDto { other.showSidebar, showSidebar, )) && - (identical(other.$Client, $Client) || - const DeepCollectionEquality().equals(other.$Client, $Client))); + (identical(other.$Client, $Client) || const DeepCollectionEquality().equals(other.$Client, $Client))); } @override @@ -25906,25 +25310,13 @@ extension $DisplayPreferencesDtoExtension on DisplayPreferencesDto { viewType: (viewType != null ? viewType.value : this.viewType), sortBy: (sortBy != null ? sortBy.value : this.sortBy), indexBy: (indexBy != null ? indexBy.value : this.indexBy), - rememberIndexing: (rememberIndexing != null - ? rememberIndexing.value - : this.rememberIndexing), - primaryImageHeight: (primaryImageHeight != null - ? primaryImageHeight.value - : this.primaryImageHeight), - primaryImageWidth: (primaryImageWidth != null - ? primaryImageWidth.value - : this.primaryImageWidth), + rememberIndexing: (rememberIndexing != null ? rememberIndexing.value : this.rememberIndexing), + primaryImageHeight: (primaryImageHeight != null ? primaryImageHeight.value : this.primaryImageHeight), + primaryImageWidth: (primaryImageWidth != null ? primaryImageWidth.value : this.primaryImageWidth), customPrefs: (customPrefs != null ? customPrefs.value : this.customPrefs), - scrollDirection: (scrollDirection != null - ? scrollDirection.value - : this.scrollDirection), - showBackdrop: (showBackdrop != null - ? showBackdrop.value - : this.showBackdrop), - rememberSorting: (rememberSorting != null - ? rememberSorting.value - : this.rememberSorting), + scrollDirection: (scrollDirection != null ? scrollDirection.value : this.scrollDirection), + showBackdrop: (showBackdrop != null ? showBackdrop.value : this.showBackdrop), + rememberSorting: (rememberSorting != null ? rememberSorting.value : this.rememberSorting), sortOrder: (sortOrder != null ? sortOrder.value : this.sortOrder), showSidebar: (showSidebar != null ? showSidebar.value : this.showSidebar), $Client: ($Client != null ? $Client.value : this.$Client), @@ -25984,8 +25376,7 @@ class EncodingOptions { this.allowOnDemandMetadataBasedKeyframeExtractionForExtensions, }); - factory EncodingOptions.fromJson(Map json) => - _$EncodingOptionsFromJson(json); + factory EncodingOptions.fromJson(Map json) => _$EncodingOptionsFromJson(json); static const toJsonFactory = _$EncodingOptionsToJson; Map toJson() => _$EncodingOptionsToJson(this); @@ -26400,13 +25791,11 @@ class EncodingOptions { hardwareDecodingCodecs, )) && (identical( - other - .allowOnDemandMetadataBasedKeyframeExtractionForExtensions, + other.allowOnDemandMetadataBasedKeyframeExtractionForExtensions, allowOnDemandMetadataBasedKeyframeExtractionForExtensions, ) || const DeepCollectionEquality().equals( - other - .allowOnDemandMetadataBasedKeyframeExtractionForExtensions, + other.allowOnDemandMetadataBasedKeyframeExtractionForExtensions, allowOnDemandMetadataBasedKeyframeExtractionForExtensions, ))); } @@ -26525,72 +25914,49 @@ extension $EncodingOptionsExtension on EncodingOptions { enableFallbackFont: enableFallbackFont ?? this.enableFallbackFont, enableAudioVbr: enableAudioVbr ?? this.enableAudioVbr, downMixAudioBoost: downMixAudioBoost ?? this.downMixAudioBoost, - downMixStereoAlgorithm: - downMixStereoAlgorithm ?? this.downMixStereoAlgorithm, + downMixStereoAlgorithm: downMixStereoAlgorithm ?? this.downMixStereoAlgorithm, maxMuxingQueueSize: maxMuxingQueueSize ?? this.maxMuxingQueueSize, enableThrottling: enableThrottling ?? this.enableThrottling, throttleDelaySeconds: throttleDelaySeconds ?? this.throttleDelaySeconds, - enableSegmentDeletion: - enableSegmentDeletion ?? this.enableSegmentDeletion, + enableSegmentDeletion: enableSegmentDeletion ?? this.enableSegmentDeletion, segmentKeepSeconds: segmentKeepSeconds ?? this.segmentKeepSeconds, - hardwareAccelerationType: - hardwareAccelerationType ?? this.hardwareAccelerationType, + hardwareAccelerationType: hardwareAccelerationType ?? this.hardwareAccelerationType, encoderAppPath: encoderAppPath ?? this.encoderAppPath, - encoderAppPathDisplay: - encoderAppPathDisplay ?? this.encoderAppPathDisplay, + encoderAppPathDisplay: encoderAppPathDisplay ?? this.encoderAppPathDisplay, vaapiDevice: vaapiDevice ?? this.vaapiDevice, qsvDevice: qsvDevice ?? this.qsvDevice, enableTonemapping: enableTonemapping ?? this.enableTonemapping, enableVppTonemapping: enableVppTonemapping ?? this.enableVppTonemapping, - enableVideoToolboxTonemapping: - enableVideoToolboxTonemapping ?? this.enableVideoToolboxTonemapping, + enableVideoToolboxTonemapping: enableVideoToolboxTonemapping ?? this.enableVideoToolboxTonemapping, tonemappingAlgorithm: tonemappingAlgorithm ?? this.tonemappingAlgorithm, tonemappingMode: tonemappingMode ?? this.tonemappingMode, tonemappingRange: tonemappingRange ?? this.tonemappingRange, tonemappingDesat: tonemappingDesat ?? this.tonemappingDesat, tonemappingPeak: tonemappingPeak ?? this.tonemappingPeak, tonemappingParam: tonemappingParam ?? this.tonemappingParam, - vppTonemappingBrightness: - vppTonemappingBrightness ?? this.vppTonemappingBrightness, - vppTonemappingContrast: - vppTonemappingContrast ?? this.vppTonemappingContrast, + vppTonemappingBrightness: vppTonemappingBrightness ?? this.vppTonemappingBrightness, + vppTonemappingContrast: vppTonemappingContrast ?? this.vppTonemappingContrast, h264Crf: h264Crf ?? this.h264Crf, h265Crf: h265Crf ?? this.h265Crf, encoderPreset: encoderPreset ?? this.encoderPreset, - deinterlaceDoubleRate: - deinterlaceDoubleRate ?? this.deinterlaceDoubleRate, + deinterlaceDoubleRate: deinterlaceDoubleRate ?? this.deinterlaceDoubleRate, deinterlaceMethod: deinterlaceMethod ?? this.deinterlaceMethod, - enableDecodingColorDepth10Hevc: - enableDecodingColorDepth10Hevc ?? this.enableDecodingColorDepth10Hevc, - enableDecodingColorDepth10Vp9: - enableDecodingColorDepth10Vp9 ?? this.enableDecodingColorDepth10Vp9, - enableDecodingColorDepth10HevcRext: - enableDecodingColorDepth10HevcRext ?? - this.enableDecodingColorDepth10HevcRext, - enableDecodingColorDepth12HevcRext: - enableDecodingColorDepth12HevcRext ?? - this.enableDecodingColorDepth12HevcRext, - enableEnhancedNvdecDecoder: - enableEnhancedNvdecDecoder ?? this.enableEnhancedNvdecDecoder, - preferSystemNativeHwDecoder: - preferSystemNativeHwDecoder ?? this.preferSystemNativeHwDecoder, - enableIntelLowPowerH264HwEncoder: - enableIntelLowPowerH264HwEncoder ?? - this.enableIntelLowPowerH264HwEncoder, - enableIntelLowPowerHevcHwEncoder: - enableIntelLowPowerHevcHwEncoder ?? - this.enableIntelLowPowerHevcHwEncoder, - enableHardwareEncoding: - enableHardwareEncoding ?? this.enableHardwareEncoding, + enableDecodingColorDepth10Hevc: enableDecodingColorDepth10Hevc ?? this.enableDecodingColorDepth10Hevc, + enableDecodingColorDepth10Vp9: enableDecodingColorDepth10Vp9 ?? this.enableDecodingColorDepth10Vp9, + enableDecodingColorDepth10HevcRext: enableDecodingColorDepth10HevcRext ?? this.enableDecodingColorDepth10HevcRext, + enableDecodingColorDepth12HevcRext: enableDecodingColorDepth12HevcRext ?? this.enableDecodingColorDepth12HevcRext, + enableEnhancedNvdecDecoder: enableEnhancedNvdecDecoder ?? this.enableEnhancedNvdecDecoder, + preferSystemNativeHwDecoder: preferSystemNativeHwDecoder ?? this.preferSystemNativeHwDecoder, + enableIntelLowPowerH264HwEncoder: enableIntelLowPowerH264HwEncoder ?? this.enableIntelLowPowerH264HwEncoder, + enableIntelLowPowerHevcHwEncoder: enableIntelLowPowerHevcHwEncoder ?? this.enableIntelLowPowerHevcHwEncoder, + enableHardwareEncoding: enableHardwareEncoding ?? this.enableHardwareEncoding, allowHevcEncoding: allowHevcEncoding ?? this.allowHevcEncoding, allowAv1Encoding: allowAv1Encoding ?? this.allowAv1Encoding, - enableSubtitleExtraction: - enableSubtitleExtraction ?? this.enableSubtitleExtraction, - hardwareDecodingCodecs: - hardwareDecodingCodecs ?? this.hardwareDecodingCodecs, + enableSubtitleExtraction: enableSubtitleExtraction ?? this.enableSubtitleExtraction, + hardwareDecodingCodecs: hardwareDecodingCodecs ?? this.hardwareDecodingCodecs, allowOnDemandMetadataBasedKeyframeExtractionForExtensions: allowOnDemandMetadataBasedKeyframeExtractionForExtensions ?? - this.allowOnDemandMetadataBasedKeyframeExtractionForExtensions, + this.allowOnDemandMetadataBasedKeyframeExtractionForExtensions, ); } @@ -26641,148 +26007,82 @@ extension $EncodingOptionsExtension on EncodingOptions { Wrapped? allowAv1Encoding, Wrapped? enableSubtitleExtraction, Wrapped?>? hardwareDecodingCodecs, - Wrapped?>? - allowOnDemandMetadataBasedKeyframeExtractionForExtensions, + Wrapped?>? allowOnDemandMetadataBasedKeyframeExtractionForExtensions, }) { return EncodingOptions( - encodingThreadCount: (encodingThreadCount != null - ? encodingThreadCount.value - : this.encodingThreadCount), - transcodingTempPath: (transcodingTempPath != null - ? transcodingTempPath.value - : this.transcodingTempPath), - fallbackFontPath: (fallbackFontPath != null - ? fallbackFontPath.value - : this.fallbackFontPath), - enableFallbackFont: (enableFallbackFont != null - ? enableFallbackFont.value - : this.enableFallbackFont), - enableAudioVbr: (enableAudioVbr != null - ? enableAudioVbr.value - : this.enableAudioVbr), - downMixAudioBoost: (downMixAudioBoost != null - ? downMixAudioBoost.value - : this.downMixAudioBoost), - downMixStereoAlgorithm: (downMixStereoAlgorithm != null - ? downMixStereoAlgorithm.value - : this.downMixStereoAlgorithm), - maxMuxingQueueSize: (maxMuxingQueueSize != null - ? maxMuxingQueueSize.value - : this.maxMuxingQueueSize), - enableThrottling: (enableThrottling != null - ? enableThrottling.value - : this.enableThrottling), - throttleDelaySeconds: (throttleDelaySeconds != null - ? throttleDelaySeconds.value - : this.throttleDelaySeconds), - enableSegmentDeletion: (enableSegmentDeletion != null - ? enableSegmentDeletion.value - : this.enableSegmentDeletion), - segmentKeepSeconds: (segmentKeepSeconds != null - ? segmentKeepSeconds.value - : this.segmentKeepSeconds), - hardwareAccelerationType: (hardwareAccelerationType != null - ? hardwareAccelerationType.value - : this.hardwareAccelerationType), - encoderAppPath: (encoderAppPath != null - ? encoderAppPath.value - : this.encoderAppPath), - encoderAppPathDisplay: (encoderAppPathDisplay != null - ? encoderAppPathDisplay.value - : this.encoderAppPathDisplay), + encodingThreadCount: (encodingThreadCount != null ? encodingThreadCount.value : this.encodingThreadCount), + transcodingTempPath: (transcodingTempPath != null ? transcodingTempPath.value : this.transcodingTempPath), + fallbackFontPath: (fallbackFontPath != null ? fallbackFontPath.value : this.fallbackFontPath), + enableFallbackFont: (enableFallbackFont != null ? enableFallbackFont.value : this.enableFallbackFont), + enableAudioVbr: (enableAudioVbr != null ? enableAudioVbr.value : this.enableAudioVbr), + downMixAudioBoost: (downMixAudioBoost != null ? downMixAudioBoost.value : this.downMixAudioBoost), + downMixStereoAlgorithm: + (downMixStereoAlgorithm != null ? downMixStereoAlgorithm.value : this.downMixStereoAlgorithm), + maxMuxingQueueSize: (maxMuxingQueueSize != null ? maxMuxingQueueSize.value : this.maxMuxingQueueSize), + enableThrottling: (enableThrottling != null ? enableThrottling.value : this.enableThrottling), + throttleDelaySeconds: (throttleDelaySeconds != null ? throttleDelaySeconds.value : this.throttleDelaySeconds), + enableSegmentDeletion: (enableSegmentDeletion != null ? enableSegmentDeletion.value : this.enableSegmentDeletion), + segmentKeepSeconds: (segmentKeepSeconds != null ? segmentKeepSeconds.value : this.segmentKeepSeconds), + hardwareAccelerationType: + (hardwareAccelerationType != null ? hardwareAccelerationType.value : this.hardwareAccelerationType), + encoderAppPath: (encoderAppPath != null ? encoderAppPath.value : this.encoderAppPath), + encoderAppPathDisplay: (encoderAppPathDisplay != null ? encoderAppPathDisplay.value : this.encoderAppPathDisplay), vaapiDevice: (vaapiDevice != null ? vaapiDevice.value : this.vaapiDevice), qsvDevice: (qsvDevice != null ? qsvDevice.value : this.qsvDevice), - enableTonemapping: (enableTonemapping != null - ? enableTonemapping.value - : this.enableTonemapping), - enableVppTonemapping: (enableVppTonemapping != null - ? enableVppTonemapping.value - : this.enableVppTonemapping), + enableTonemapping: (enableTonemapping != null ? enableTonemapping.value : this.enableTonemapping), + enableVppTonemapping: (enableVppTonemapping != null ? enableVppTonemapping.value : this.enableVppTonemapping), enableVideoToolboxTonemapping: (enableVideoToolboxTonemapping != null ? enableVideoToolboxTonemapping.value : this.enableVideoToolboxTonemapping), - tonemappingAlgorithm: (tonemappingAlgorithm != null - ? tonemappingAlgorithm.value - : this.tonemappingAlgorithm), - tonemappingMode: (tonemappingMode != null - ? tonemappingMode.value - : this.tonemappingMode), - tonemappingRange: (tonemappingRange != null - ? tonemappingRange.value - : this.tonemappingRange), - tonemappingDesat: (tonemappingDesat != null - ? tonemappingDesat.value - : this.tonemappingDesat), - tonemappingPeak: (tonemappingPeak != null - ? tonemappingPeak.value - : this.tonemappingPeak), - tonemappingParam: (tonemappingParam != null - ? tonemappingParam.value - : this.tonemappingParam), - vppTonemappingBrightness: (vppTonemappingBrightness != null - ? vppTonemappingBrightness.value - : this.vppTonemappingBrightness), - vppTonemappingContrast: (vppTonemappingContrast != null - ? vppTonemappingContrast.value - : this.vppTonemappingContrast), + tonemappingAlgorithm: (tonemappingAlgorithm != null ? tonemappingAlgorithm.value : this.tonemappingAlgorithm), + tonemappingMode: (tonemappingMode != null ? tonemappingMode.value : this.tonemappingMode), + tonemappingRange: (tonemappingRange != null ? tonemappingRange.value : this.tonemappingRange), + tonemappingDesat: (tonemappingDesat != null ? tonemappingDesat.value : this.tonemappingDesat), + tonemappingPeak: (tonemappingPeak != null ? tonemappingPeak.value : this.tonemappingPeak), + tonemappingParam: (tonemappingParam != null ? tonemappingParam.value : this.tonemappingParam), + vppTonemappingBrightness: + (vppTonemappingBrightness != null ? vppTonemappingBrightness.value : this.vppTonemappingBrightness), + vppTonemappingContrast: + (vppTonemappingContrast != null ? vppTonemappingContrast.value : this.vppTonemappingContrast), h264Crf: (h264Crf != null ? h264Crf.value : this.h264Crf), h265Crf: (h265Crf != null ? h265Crf.value : this.h265Crf), - encoderPreset: (encoderPreset != null - ? encoderPreset.value - : this.encoderPreset), - deinterlaceDoubleRate: (deinterlaceDoubleRate != null - ? deinterlaceDoubleRate.value - : this.deinterlaceDoubleRate), - deinterlaceMethod: (deinterlaceMethod != null - ? deinterlaceMethod.value - : this.deinterlaceMethod), + encoderPreset: (encoderPreset != null ? encoderPreset.value : this.encoderPreset), + deinterlaceDoubleRate: (deinterlaceDoubleRate != null ? deinterlaceDoubleRate.value : this.deinterlaceDoubleRate), + deinterlaceMethod: (deinterlaceMethod != null ? deinterlaceMethod.value : this.deinterlaceMethod), enableDecodingColorDepth10Hevc: (enableDecodingColorDepth10Hevc != null ? enableDecodingColorDepth10Hevc.value : this.enableDecodingColorDepth10Hevc), enableDecodingColorDepth10Vp9: (enableDecodingColorDepth10Vp9 != null ? enableDecodingColorDepth10Vp9.value : this.enableDecodingColorDepth10Vp9), - enableDecodingColorDepth10HevcRext: - (enableDecodingColorDepth10HevcRext != null + enableDecodingColorDepth10HevcRext: (enableDecodingColorDepth10HevcRext != null ? enableDecodingColorDepth10HevcRext.value : this.enableDecodingColorDepth10HevcRext), - enableDecodingColorDepth12HevcRext: - (enableDecodingColorDepth12HevcRext != null + enableDecodingColorDepth12HevcRext: (enableDecodingColorDepth12HevcRext != null ? enableDecodingColorDepth12HevcRext.value : this.enableDecodingColorDepth12HevcRext), - enableEnhancedNvdecDecoder: (enableEnhancedNvdecDecoder != null - ? enableEnhancedNvdecDecoder.value - : this.enableEnhancedNvdecDecoder), - preferSystemNativeHwDecoder: (preferSystemNativeHwDecoder != null - ? preferSystemNativeHwDecoder.value - : this.preferSystemNativeHwDecoder), - enableIntelLowPowerH264HwEncoder: - (enableIntelLowPowerH264HwEncoder != null + enableEnhancedNvdecDecoder: + (enableEnhancedNvdecDecoder != null ? enableEnhancedNvdecDecoder.value : this.enableEnhancedNvdecDecoder), + preferSystemNativeHwDecoder: + (preferSystemNativeHwDecoder != null ? preferSystemNativeHwDecoder.value : this.preferSystemNativeHwDecoder), + enableIntelLowPowerH264HwEncoder: (enableIntelLowPowerH264HwEncoder != null ? enableIntelLowPowerH264HwEncoder.value : this.enableIntelLowPowerH264HwEncoder), - enableIntelLowPowerHevcHwEncoder: - (enableIntelLowPowerHevcHwEncoder != null + enableIntelLowPowerHevcHwEncoder: (enableIntelLowPowerHevcHwEncoder != null ? enableIntelLowPowerHevcHwEncoder.value : this.enableIntelLowPowerHevcHwEncoder), - enableHardwareEncoding: (enableHardwareEncoding != null - ? enableHardwareEncoding.value - : this.enableHardwareEncoding), - allowHevcEncoding: (allowHevcEncoding != null - ? allowHevcEncoding.value - : this.allowHevcEncoding), - allowAv1Encoding: (allowAv1Encoding != null - ? allowAv1Encoding.value - : this.allowAv1Encoding), - enableSubtitleExtraction: (enableSubtitleExtraction != null - ? enableSubtitleExtraction.value - : this.enableSubtitleExtraction), - hardwareDecodingCodecs: (hardwareDecodingCodecs != null - ? hardwareDecodingCodecs.value - : this.hardwareDecodingCodecs), + enableHardwareEncoding: + (enableHardwareEncoding != null ? enableHardwareEncoding.value : this.enableHardwareEncoding), + allowHevcEncoding: (allowHevcEncoding != null ? allowHevcEncoding.value : this.allowHevcEncoding), + allowAv1Encoding: (allowAv1Encoding != null ? allowAv1Encoding.value : this.allowAv1Encoding), + enableSubtitleExtraction: + (enableSubtitleExtraction != null ? enableSubtitleExtraction.value : this.enableSubtitleExtraction), + hardwareDecodingCodecs: + (hardwareDecodingCodecs != null ? hardwareDecodingCodecs.value : this.hardwareDecodingCodecs), allowOnDemandMetadataBasedKeyframeExtractionForExtensions: (allowOnDemandMetadataBasedKeyframeExtractionForExtensions != null - ? allowOnDemandMetadataBasedKeyframeExtractionForExtensions.value - : this.allowOnDemandMetadataBasedKeyframeExtractionForExtensions), + ? allowOnDemandMetadataBasedKeyframeExtractionForExtensions.value + : this.allowOnDemandMetadataBasedKeyframeExtractionForExtensions), ); } } @@ -26791,8 +26091,7 @@ extension $EncodingOptionsExtension on EncodingOptions { class EndPointInfo { const EndPointInfo({this.isLocal, this.isInNetwork}); - factory EndPointInfo.fromJson(Map json) => - _$EndPointInfoFromJson(json); + factory EndPointInfo.fromJson(Map json) => _$EndPointInfoFromJson(json); static const toJsonFactory = _$EndPointInfoToJson; Map toJson() => _$EndPointInfoToJson(this); @@ -26852,8 +26151,7 @@ extension $EndPointInfoExtension on EndPointInfo { class ExternalIdInfo { const ExternalIdInfo({this.name, this.key, this.type}); - factory ExternalIdInfo.fromJson(Map json) => - _$ExternalIdInfoFromJson(json); + factory ExternalIdInfo.fromJson(Map json) => _$ExternalIdInfoFromJson(json); static const toJsonFactory = _$ExternalIdInfoToJson; Map toJson() => _$ExternalIdInfoToJson(this); @@ -26875,12 +26173,9 @@ class ExternalIdInfo { bool operator ==(Object other) { return identical(this, other) || (other is ExternalIdInfo && - (identical(other.name, name) || - const DeepCollectionEquality().equals(other.name, name)) && - (identical(other.key, key) || - const DeepCollectionEquality().equals(other.key, key)) && - (identical(other.type, type) || - const DeepCollectionEquality().equals(other.type, type))); + (identical(other.name, name) || const DeepCollectionEquality().equals(other.name, name)) && + (identical(other.key, key) || const DeepCollectionEquality().equals(other.key, key)) && + (identical(other.type, type) || const DeepCollectionEquality().equals(other.type, type))); } @override @@ -26924,8 +26219,7 @@ extension $ExternalIdInfoExtension on ExternalIdInfo { class ExternalUrl { const ExternalUrl({this.name, this.url}); - factory ExternalUrl.fromJson(Map json) => - _$ExternalUrlFromJson(json); + factory ExternalUrl.fromJson(Map json) => _$ExternalUrlFromJson(json); static const toJsonFactory = _$ExternalUrlToJson; Map toJson() => _$ExternalUrlToJson(this); @@ -26940,10 +26234,8 @@ class ExternalUrl { bool operator ==(Object other) { return identical(this, other) || (other is ExternalUrl && - (identical(other.name, name) || - const DeepCollectionEquality().equals(other.name, name)) && - (identical(other.url, url) || - const DeepCollectionEquality().equals(other.url, url))); + (identical(other.name, name) || const DeepCollectionEquality().equals(other.name, name)) && + (identical(other.url, url) || const DeepCollectionEquality().equals(other.url, url))); } @override @@ -26951,9 +26243,7 @@ class ExternalUrl { @override int get hashCode => - const DeepCollectionEquality().hash(name) ^ - const DeepCollectionEquality().hash(url) ^ - runtimeType.hashCode; + const DeepCollectionEquality().hash(name) ^ const DeepCollectionEquality().hash(url) ^ runtimeType.hashCode; } extension $ExternalUrlExtension on ExternalUrl { @@ -26973,8 +26263,7 @@ extension $ExternalUrlExtension on ExternalUrl { class FileSystemEntryInfo { const FileSystemEntryInfo({this.name, this.path, this.type}); - factory FileSystemEntryInfo.fromJson(Map json) => - _$FileSystemEntryInfoFromJson(json); + factory FileSystemEntryInfo.fromJson(Map json) => _$FileSystemEntryInfoFromJson(json); static const toJsonFactory = _$FileSystemEntryInfoToJson; Map toJson() => _$FileSystemEntryInfoToJson(this); @@ -26996,12 +26285,9 @@ class FileSystemEntryInfo { bool operator ==(Object other) { return identical(this, other) || (other is FileSystemEntryInfo && - (identical(other.name, name) || - const DeepCollectionEquality().equals(other.name, name)) && - (identical(other.path, path) || - const DeepCollectionEquality().equals(other.path, path)) && - (identical(other.type, type) || - const DeepCollectionEquality().equals(other.type, type))); + (identical(other.name, name) || const DeepCollectionEquality().equals(other.name, name)) && + (identical(other.path, path) || const DeepCollectionEquality().equals(other.path, path)) && + (identical(other.type, type) || const DeepCollectionEquality().equals(other.type, type))); } @override @@ -27051,8 +26337,7 @@ class FolderStorageDto { this.deviceId, }); - factory FolderStorageDto.fromJson(Map json) => - _$FolderStorageDtoFromJson(json); + factory FolderStorageDto.fromJson(Map json) => _$FolderStorageDtoFromJson(json); static const toJsonFactory = _$FolderStorageDtoToJson; Map toJson() => _$FolderStorageDtoToJson(this); @@ -27073,8 +26358,7 @@ class FolderStorageDto { bool operator ==(Object other) { return identical(this, other) || (other is FolderStorageDto && - (identical(other.path, path) || - const DeepCollectionEquality().equals(other.path, path)) && + (identical(other.path, path) || const DeepCollectionEquality().equals(other.path, path)) && (identical(other.freeSpace, freeSpace) || const DeepCollectionEquality().equals( other.freeSpace, @@ -27148,8 +26432,7 @@ extension $FolderStorageDtoExtension on FolderStorageDto { class FontFile { const FontFile({this.name, this.size, this.dateCreated, this.dateModified}); - factory FontFile.fromJson(Map json) => - _$FontFileFromJson(json); + factory FontFile.fromJson(Map json) => _$FontFileFromJson(json); static const toJsonFactory = _$FontFileToJson; Map toJson() => _$FontFileToJson(this); @@ -27168,10 +26451,8 @@ class FontFile { bool operator ==(Object other) { return identical(this, other) || (other is FontFile && - (identical(other.name, name) || - const DeepCollectionEquality().equals(other.name, name)) && - (identical(other.size, size) || - const DeepCollectionEquality().equals(other.size, size)) && + (identical(other.name, name) || const DeepCollectionEquality().equals(other.name, name)) && + (identical(other.size, size) || const DeepCollectionEquality().equals(other.size, size)) && (identical(other.dateCreated, dateCreated) || const DeepCollectionEquality().equals( other.dateCreated, @@ -27221,9 +26502,7 @@ extension $FontFileExtension on FontFile { name: (name != null ? name.value : this.name), size: (size != null ? size.value : this.size), dateCreated: (dateCreated != null ? dateCreated.value : this.dateCreated), - dateModified: (dateModified != null - ? dateModified.value - : this.dateModified), + dateModified: (dateModified != null ? dateModified.value : this.dateModified), ); } } @@ -27232,8 +26511,7 @@ extension $FontFileExtension on FontFile { class ForceKeepAliveMessage { const ForceKeepAliveMessage({this.data, this.messageId, this.messageType}); - factory ForceKeepAliveMessage.fromJson(Map json) => - _$ForceKeepAliveMessageFromJson(json); + factory ForceKeepAliveMessage.fromJson(Map json) => _$ForceKeepAliveMessageFromJson(json); static const toJsonFactory = _$ForceKeepAliveMessageToJson; Map toJson() => _$ForceKeepAliveMessageToJson(this); @@ -27249,8 +26527,7 @@ class ForceKeepAliveMessage { fromJson: sessionMessageTypeMessageTypeNullableFromJson, ) final enums.SessionMessageType? messageType; - static enums.SessionMessageType? - sessionMessageTypeMessageTypeNullableFromJson(Object? value) => + static enums.SessionMessageType? sessionMessageTypeMessageTypeNullableFromJson(Object? value) => sessionMessageTypeNullableFromJson( value, enums.SessionMessageType.forcekeepalive, @@ -27262,8 +26539,7 @@ class ForceKeepAliveMessage { bool operator ==(Object other) { return identical(this, other) || (other is ForceKeepAliveMessage && - (identical(other.data, data) || - const DeepCollectionEquality().equals(other.data, data)) && + (identical(other.data, data) || const DeepCollectionEquality().equals(other.data, data)) && (identical(other.messageId, messageId) || const DeepCollectionEquality().equals( other.messageId, @@ -27317,8 +26593,7 @@ extension $ForceKeepAliveMessageExtension on ForceKeepAliveMessage { class ForgotPasswordDto { const ForgotPasswordDto({required this.enteredUsername}); - factory ForgotPasswordDto.fromJson(Map json) => - _$ForgotPasswordDtoFromJson(json); + factory ForgotPasswordDto.fromJson(Map json) => _$ForgotPasswordDtoFromJson(json); static const toJsonFactory = _$ForgotPasswordDtoToJson; Map toJson() => _$ForgotPasswordDtoToJson(this); @@ -27342,9 +26617,7 @@ class ForgotPasswordDto { String toString() => jsonEncode(this); @override - int get hashCode => - const DeepCollectionEquality().hash(enteredUsername) ^ - runtimeType.hashCode; + int get hashCode => const DeepCollectionEquality().hash(enteredUsername) ^ runtimeType.hashCode; } extension $ForgotPasswordDtoExtension on ForgotPasswordDto { @@ -27356,9 +26629,7 @@ extension $ForgotPasswordDtoExtension on ForgotPasswordDto { ForgotPasswordDto copyWithWrapped({Wrapped? enteredUsername}) { return ForgotPasswordDto( - enteredUsername: (enteredUsername != null - ? enteredUsername.value - : this.enteredUsername), + enteredUsername: (enteredUsername != null ? enteredUsername.value : this.enteredUsername), ); } } @@ -27367,8 +26638,7 @@ extension $ForgotPasswordDtoExtension on ForgotPasswordDto { class ForgotPasswordPinDto { const ForgotPasswordPinDto({required this.pin}); - factory ForgotPasswordPinDto.fromJson(Map json) => - _$ForgotPasswordPinDtoFromJson(json); + factory ForgotPasswordPinDto.fromJson(Map json) => _$ForgotPasswordPinDtoFromJson(json); static const toJsonFactory = _$ForgotPasswordPinDtoToJson; Map toJson() => _$ForgotPasswordPinDtoToJson(this); @@ -27381,16 +26651,14 @@ class ForgotPasswordPinDto { bool operator ==(Object other) { return identical(this, other) || (other is ForgotPasswordPinDto && - (identical(other.pin, pin) || - const DeepCollectionEquality().equals(other.pin, pin))); + (identical(other.pin, pin) || const DeepCollectionEquality().equals(other.pin, pin))); } @override String toString() => jsonEncode(this); @override - int get hashCode => - const DeepCollectionEquality().hash(pin) ^ runtimeType.hashCode; + int get hashCode => const DeepCollectionEquality().hash(pin) ^ runtimeType.hashCode; } extension $ForgotPasswordPinDtoExtension on ForgotPasswordPinDto { @@ -27411,8 +26679,7 @@ class ForgotPasswordResult { this.pinExpirationDate, }); - factory ForgotPasswordResult.fromJson(Map json) => - _$ForgotPasswordResultFromJson(json); + factory ForgotPasswordResult.fromJson(Map json) => _$ForgotPasswordResultFromJson(json); static const toJsonFactory = _$ForgotPasswordResultToJson; Map toJson() => _$ForgotPasswordResultToJson(this); @@ -27434,8 +26701,7 @@ class ForgotPasswordResult { bool operator ==(Object other) { return identical(this, other) || (other is ForgotPasswordResult && - (identical(other.action, action) || - const DeepCollectionEquality().equals(other.action, action)) && + (identical(other.action, action) || const DeepCollectionEquality().equals(other.action, action)) && (identical(other.pinFile, pinFile) || const DeepCollectionEquality().equals( other.pinFile, @@ -27480,9 +26746,7 @@ extension $ForgotPasswordResultExtension on ForgotPasswordResult { return ForgotPasswordResult( action: (action != null ? action.value : this.action), pinFile: (pinFile != null ? pinFile.value : this.pinFile), - pinExpirationDate: (pinExpirationDate != null - ? pinExpirationDate.value - : this.pinExpirationDate), + pinExpirationDate: (pinExpirationDate != null ? pinExpirationDate.value : this.pinExpirationDate), ); } } @@ -27491,8 +26755,7 @@ extension $ForgotPasswordResultExtension on ForgotPasswordResult { class GeneralCommand { const GeneralCommand({this.name, this.controllingUserId, this.arguments}); - factory GeneralCommand.fromJson(Map json) => - _$GeneralCommandFromJson(json); + factory GeneralCommand.fromJson(Map json) => _$GeneralCommandFromJson(json); static const toJsonFactory = _$GeneralCommandToJson; Map toJson() => _$GeneralCommandToJson(this); @@ -27514,8 +26777,7 @@ class GeneralCommand { bool operator ==(Object other) { return identical(this, other) || (other is GeneralCommand && - (identical(other.name, name) || - const DeepCollectionEquality().equals(other.name, name)) && + (identical(other.name, name) || const DeepCollectionEquality().equals(other.name, name)) && (identical(other.controllingUserId, controllingUserId) || const DeepCollectionEquality().equals( other.controllingUserId, @@ -27559,9 +26821,7 @@ extension $GeneralCommandExtension on GeneralCommand { }) { return GeneralCommand( name: (name != null ? name.value : this.name), - controllingUserId: (controllingUserId != null - ? controllingUserId.value - : this.controllingUserId), + controllingUserId: (controllingUserId != null ? controllingUserId.value : this.controllingUserId), arguments: (arguments != null ? arguments.value : this.arguments), ); } @@ -27571,8 +26831,7 @@ extension $GeneralCommandExtension on GeneralCommand { class GeneralCommandMessage { const GeneralCommandMessage({this.data, this.messageId, this.messageType}); - factory GeneralCommandMessage.fromJson(Map json) => - _$GeneralCommandMessageFromJson(json); + factory GeneralCommandMessage.fromJson(Map json) => _$GeneralCommandMessageFromJson(json); static const toJsonFactory = _$GeneralCommandMessageToJson; Map toJson() => _$GeneralCommandMessageToJson(this); @@ -27588,8 +26847,7 @@ class GeneralCommandMessage { fromJson: sessionMessageTypeMessageTypeNullableFromJson, ) final enums.SessionMessageType? messageType; - static enums.SessionMessageType? - sessionMessageTypeMessageTypeNullableFromJson(Object? value) => + static enums.SessionMessageType? sessionMessageTypeMessageTypeNullableFromJson(Object? value) => sessionMessageTypeNullableFromJson( value, enums.SessionMessageType.generalcommand, @@ -27601,8 +26859,7 @@ class GeneralCommandMessage { bool operator ==(Object other) { return identical(this, other) || (other is GeneralCommandMessage && - (identical(other.data, data) || - const DeepCollectionEquality().equals(other.data, data)) && + (identical(other.data, data) || const DeepCollectionEquality().equals(other.data, data)) && (identical(other.messageId, messageId) || const DeepCollectionEquality().equals( other.messageId, @@ -27684,8 +26941,7 @@ class GetProgramsDto { this.fields, }); - factory GetProgramsDto.fromJson(Map json) => - _$GetProgramsDtoFromJson(json); + factory GetProgramsDto.fromJson(Map json) => _$GetProgramsDtoFromJson(json); static const toJsonFactory = _$GetProgramsDtoToJson; Map toJson() => _$GetProgramsDtoToJson(this); @@ -27779,8 +27035,7 @@ class GetProgramsDto { other.channelIds, channelIds, )) && - (identical(other.userId, userId) || - const DeepCollectionEquality().equals(other.userId, userId)) && + (identical(other.userId, userId) || const DeepCollectionEquality().equals(other.userId, userId)) && (identical(other.minStartDate, minStartDate) || const DeepCollectionEquality().equals( other.minStartDate, @@ -27821,10 +27076,8 @@ class GetProgramsDto { other.isSeries, isSeries, )) && - (identical(other.isNews, isNews) || - const DeepCollectionEquality().equals(other.isNews, isNews)) && - (identical(other.isKids, isKids) || - const DeepCollectionEquality().equals(other.isKids, isKids)) && + (identical(other.isNews, isNews) || const DeepCollectionEquality().equals(other.isNews, isNews)) && + (identical(other.isKids, isKids) || const DeepCollectionEquality().equals(other.isKids, isKids)) && (identical(other.isSports, isSports) || const DeepCollectionEquality().equals( other.isSports, @@ -27835,17 +27088,14 @@ class GetProgramsDto { other.startIndex, startIndex, )) && - (identical(other.limit, limit) || - const DeepCollectionEquality().equals(other.limit, limit)) && - (identical(other.sortBy, sortBy) || - const DeepCollectionEquality().equals(other.sortBy, sortBy)) && + (identical(other.limit, limit) || const DeepCollectionEquality().equals(other.limit, limit)) && + (identical(other.sortBy, sortBy) || const DeepCollectionEquality().equals(other.sortBy, sortBy)) && (identical(other.sortOrder, sortOrder) || const DeepCollectionEquality().equals( other.sortOrder, sortOrder, )) && - (identical(other.genres, genres) || - const DeepCollectionEquality().equals(other.genres, genres)) && + (identical(other.genres, genres) || const DeepCollectionEquality().equals(other.genres, genres)) && (identical(other.genreIds, genreIds) || const DeepCollectionEquality().equals( other.genreIds, @@ -27886,8 +27136,7 @@ class GetProgramsDto { other.librarySeriesId, librarySeriesId, )) && - (identical(other.fields, fields) || - const DeepCollectionEquality().equals(other.fields, fields))); + (identical(other.fields, fields) || const DeepCollectionEquality().equals(other.fields, fields))); } @override @@ -27976,8 +27225,7 @@ extension $GetProgramsDtoExtension on GetProgramsDto { genres: genres ?? this.genres, genreIds: genreIds ?? this.genreIds, enableImages: enableImages ?? this.enableImages, - enableTotalRecordCount: - enableTotalRecordCount ?? this.enableTotalRecordCount, + enableTotalRecordCount: enableTotalRecordCount ?? this.enableTotalRecordCount, imageTypeLimit: imageTypeLimit ?? this.imageTypeLimit, enableImageTypes: enableImageTypes ?? this.enableImageTypes, enableUserData: enableUserData ?? this.enableUserData, @@ -28019,14 +27267,10 @@ extension $GetProgramsDtoExtension on GetProgramsDto { return GetProgramsDto( channelIds: (channelIds != null ? channelIds.value : this.channelIds), userId: (userId != null ? userId.value : this.userId), - minStartDate: (minStartDate != null - ? minStartDate.value - : this.minStartDate), + minStartDate: (minStartDate != null ? minStartDate.value : this.minStartDate), hasAired: (hasAired != null ? hasAired.value : this.hasAired), isAiring: (isAiring != null ? isAiring.value : this.isAiring), - maxStartDate: (maxStartDate != null - ? maxStartDate.value - : this.maxStartDate), + maxStartDate: (maxStartDate != null ? maxStartDate.value : this.maxStartDate), minEndDate: (minEndDate != null ? minEndDate.value : this.minEndDate), maxEndDate: (maxEndDate != null ? maxEndDate.value : this.maxEndDate), isMovie: (isMovie != null ? isMovie.value : this.isMovie), @@ -28040,27 +27284,14 @@ extension $GetProgramsDtoExtension on GetProgramsDto { sortOrder: (sortOrder != null ? sortOrder.value : this.sortOrder), genres: (genres != null ? genres.value : this.genres), genreIds: (genreIds != null ? genreIds.value : this.genreIds), - enableImages: (enableImages != null - ? enableImages.value - : this.enableImages), - enableTotalRecordCount: (enableTotalRecordCount != null - ? enableTotalRecordCount.value - : this.enableTotalRecordCount), - imageTypeLimit: (imageTypeLimit != null - ? imageTypeLimit.value - : this.imageTypeLimit), - enableImageTypes: (enableImageTypes != null - ? enableImageTypes.value - : this.enableImageTypes), - enableUserData: (enableUserData != null - ? enableUserData.value - : this.enableUserData), - seriesTimerId: (seriesTimerId != null - ? seriesTimerId.value - : this.seriesTimerId), - librarySeriesId: (librarySeriesId != null - ? librarySeriesId.value - : this.librarySeriesId), + enableImages: (enableImages != null ? enableImages.value : this.enableImages), + enableTotalRecordCount: + (enableTotalRecordCount != null ? enableTotalRecordCount.value : this.enableTotalRecordCount), + imageTypeLimit: (imageTypeLimit != null ? imageTypeLimit.value : this.imageTypeLimit), + enableImageTypes: (enableImageTypes != null ? enableImageTypes.value : this.enableImageTypes), + enableUserData: (enableUserData != null ? enableUserData.value : this.enableUserData), + seriesTimerId: (seriesTimerId != null ? seriesTimerId.value : this.seriesTimerId), + librarySeriesId: (librarySeriesId != null ? librarySeriesId.value : this.librarySeriesId), fields: (fields != null ? fields.value : this.fields), ); } @@ -28076,8 +27307,7 @@ class GroupInfoDto { this.lastUpdatedAt, }); - factory GroupInfoDto.fromJson(Map json) => - _$GroupInfoDtoFromJson(json); + factory GroupInfoDto.fromJson(Map json) => _$GroupInfoDtoFromJson(json); static const toJsonFactory = _$GroupInfoDtoToJson; Map toJson() => _$GroupInfoDtoToJson(this); @@ -28113,8 +27343,7 @@ class GroupInfoDto { other.groupName, groupName, )) && - (identical(other.state, state) || - const DeepCollectionEquality().equals(other.state, state)) && + (identical(other.state, state) || const DeepCollectionEquality().equals(other.state, state)) && (identical(other.participants, participants) || const DeepCollectionEquality().equals( other.participants, @@ -28168,12 +27397,8 @@ extension $GroupInfoDtoExtension on GroupInfoDto { groupId: (groupId != null ? groupId.value : this.groupId), groupName: (groupName != null ? groupName.value : this.groupName), state: (state != null ? state.value : this.state), - participants: (participants != null - ? participants.value - : this.participants), - lastUpdatedAt: (lastUpdatedAt != null - ? lastUpdatedAt.value - : this.lastUpdatedAt), + participants: (participants != null ? participants.value : this.participants), + lastUpdatedAt: (lastUpdatedAt != null ? lastUpdatedAt.value : this.lastUpdatedAt), ); } } @@ -28182,8 +27407,7 @@ extension $GroupInfoDtoExtension on GroupInfoDto { class GroupStateUpdate { const GroupStateUpdate({this.state, this.reason}); - factory GroupStateUpdate.fromJson(Map json) => - _$GroupStateUpdateFromJson(json); + factory GroupStateUpdate.fromJson(Map json) => _$GroupStateUpdateFromJson(json); static const toJsonFactory = _$GroupStateUpdateToJson; Map toJson() => _$GroupStateUpdateToJson(this); @@ -28208,10 +27432,8 @@ class GroupStateUpdate { bool operator ==(Object other) { return identical(this, other) || (other is GroupStateUpdate && - (identical(other.state, state) || - const DeepCollectionEquality().equals(other.state, state)) && - (identical(other.reason, reason) || - const DeepCollectionEquality().equals(other.reason, reason))); + (identical(other.state, state) || const DeepCollectionEquality().equals(other.state, state)) && + (identical(other.reason, reason) || const DeepCollectionEquality().equals(other.reason, reason))); } @override @@ -28219,9 +27441,7 @@ class GroupStateUpdate { @override int get hashCode => - const DeepCollectionEquality().hash(state) ^ - const DeepCollectionEquality().hash(reason) ^ - runtimeType.hashCode; + const DeepCollectionEquality().hash(state) ^ const DeepCollectionEquality().hash(reason) ^ runtimeType.hashCode; } extension $GroupStateUpdateExtension on GroupStateUpdate { @@ -28250,8 +27470,7 @@ extension $GroupStateUpdateExtension on GroupStateUpdate { class GroupUpdate { const GroupUpdate(); - factory GroupUpdate.fromJson(Map json) => - _$GroupUpdateFromJson(json); + factory GroupUpdate.fromJson(Map json) => _$GroupUpdateFromJson(json); static const toJsonFactory = _$GroupUpdateToJson; Map toJson() => _$GroupUpdateToJson(this); @@ -28269,8 +27488,7 @@ class GroupUpdate { class GuideInfo { const GuideInfo({this.startDate, this.endDate}); - factory GuideInfo.fromJson(Map json) => - _$GuideInfoFromJson(json); + factory GuideInfo.fromJson(Map json) => _$GuideInfoFromJson(json); static const toJsonFactory = _$GuideInfoToJson; Map toJson() => _$GuideInfoToJson(this); @@ -28290,8 +27508,7 @@ class GuideInfo { other.startDate, startDate, )) && - (identical(other.endDate, endDate) || - const DeepCollectionEquality().equals(other.endDate, endDate))); + (identical(other.endDate, endDate) || const DeepCollectionEquality().equals(other.endDate, endDate))); } @override @@ -28327,8 +27544,7 @@ extension $GuideInfoExtension on GuideInfo { class IgnoreWaitRequestDto { const IgnoreWaitRequestDto({this.ignoreWait}); - factory IgnoreWaitRequestDto.fromJson(Map json) => - _$IgnoreWaitRequestDtoFromJson(json); + factory IgnoreWaitRequestDto.fromJson(Map json) => _$IgnoreWaitRequestDtoFromJson(json); static const toJsonFactory = _$IgnoreWaitRequestDtoToJson; Map toJson() => _$IgnoreWaitRequestDtoToJson(this); @@ -28352,8 +27568,7 @@ class IgnoreWaitRequestDto { String toString() => jsonEncode(this); @override - int get hashCode => - const DeepCollectionEquality().hash(ignoreWait) ^ runtimeType.hashCode; + int get hashCode => const DeepCollectionEquality().hash(ignoreWait) ^ runtimeType.hashCode; } extension $IgnoreWaitRequestDtoExtension on IgnoreWaitRequestDto { @@ -28381,8 +27596,7 @@ class ImageInfo { this.size, }); - factory ImageInfo.fromJson(Map json) => - _$ImageInfoFromJson(json); + factory ImageInfo.fromJson(Map json) => _$ImageInfoFromJson(json); static const toJsonFactory = _$ImageInfoToJson; Map toJson() => _$ImageInfoToJson(this); @@ -28429,19 +27643,15 @@ class ImageInfo { other.imageTag, imageTag, )) && - (identical(other.path, path) || - const DeepCollectionEquality().equals(other.path, path)) && + (identical(other.path, path) || const DeepCollectionEquality().equals(other.path, path)) && (identical(other.blurHash, blurHash) || const DeepCollectionEquality().equals( other.blurHash, blurHash, )) && - (identical(other.height, height) || - const DeepCollectionEquality().equals(other.height, height)) && - (identical(other.width, width) || - const DeepCollectionEquality().equals(other.width, width)) && - (identical(other.size, size) || - const DeepCollectionEquality().equals(other.size, size))); + (identical(other.height, height) || const DeepCollectionEquality().equals(other.height, height)) && + (identical(other.width, width) || const DeepCollectionEquality().equals(other.width, width)) && + (identical(other.size, size) || const DeepCollectionEquality().equals(other.size, size))); } @override @@ -28510,8 +27720,7 @@ extension $ImageInfoExtension on ImageInfo { class ImageOption { const ImageOption({this.type, this.limit, this.minWidth}); - factory ImageOption.fromJson(Map json) => - _$ImageOptionFromJson(json); + factory ImageOption.fromJson(Map json) => _$ImageOptionFromJson(json); static const toJsonFactory = _$ImageOptionToJson; Map toJson() => _$ImageOptionToJson(this); @@ -28533,10 +27742,8 @@ class ImageOption { bool operator ==(Object other) { return identical(this, other) || (other is ImageOption && - (identical(other.type, type) || - const DeepCollectionEquality().equals(other.type, type)) && - (identical(other.limit, limit) || - const DeepCollectionEquality().equals(other.limit, limit)) && + (identical(other.type, type) || const DeepCollectionEquality().equals(other.type, type)) && + (identical(other.limit, limit) || const DeepCollectionEquality().equals(other.limit, limit)) && (identical(other.minWidth, minWidth) || const DeepCollectionEquality().equals( other.minWidth, @@ -28581,8 +27788,7 @@ extension $ImageOptionExtension on ImageOption { class ImageProviderInfo { const ImageProviderInfo({this.name, this.supportedImages}); - factory ImageProviderInfo.fromJson(Map json) => - _$ImageProviderInfoFromJson(json); + factory ImageProviderInfo.fromJson(Map json) => _$ImageProviderInfoFromJson(json); static const toJsonFactory = _$ImageProviderInfoToJson; Map toJson() => _$ImageProviderInfoToJson(this); @@ -28602,8 +27808,7 @@ class ImageProviderInfo { bool operator ==(Object other) { return identical(this, other) || (other is ImageProviderInfo && - (identical(other.name, name) || - const DeepCollectionEquality().equals(other.name, name)) && + (identical(other.name, name) || const DeepCollectionEquality().equals(other.name, name)) && (identical(other.supportedImages, supportedImages) || const DeepCollectionEquality().equals( other.supportedImages, @@ -28638,9 +27843,7 @@ extension $ImageProviderInfoExtension on ImageProviderInfo { }) { return ImageProviderInfo( name: (name != null ? name.value : this.name), - supportedImages: (supportedImages != null - ? supportedImages.value - : this.supportedImages), + supportedImages: (supportedImages != null ? supportedImages.value : this.supportedImages), ); } } @@ -28649,8 +27852,7 @@ extension $ImageProviderInfoExtension on ImageProviderInfo { class InboundKeepAliveMessage { const InboundKeepAliveMessage({this.messageType}); - factory InboundKeepAliveMessage.fromJson(Map json) => - _$InboundKeepAliveMessageFromJson(json); + factory InboundKeepAliveMessage.fromJson(Map json) => _$InboundKeepAliveMessageFromJson(json); static const toJsonFactory = _$InboundKeepAliveMessageToJson; Map toJson() => _$InboundKeepAliveMessageToJson(this); @@ -28662,8 +27864,7 @@ class InboundKeepAliveMessage { fromJson: sessionMessageTypeMessageTypeNullableFromJson, ) final enums.SessionMessageType? messageType; - static enums.SessionMessageType? - sessionMessageTypeMessageTypeNullableFromJson(Object? value) => + static enums.SessionMessageType? sessionMessageTypeMessageTypeNullableFromJson(Object? value) => sessionMessageTypeNullableFromJson( value, enums.SessionMessageType.keepalive, @@ -28686,8 +27887,7 @@ class InboundKeepAliveMessage { String toString() => jsonEncode(this); @override - int get hashCode => - const DeepCollectionEquality().hash(messageType) ^ runtimeType.hashCode; + int get hashCode => const DeepCollectionEquality().hash(messageType) ^ runtimeType.hashCode; } extension $InboundKeepAliveMessageExtension on InboundKeepAliveMessage { @@ -28710,8 +27910,7 @@ extension $InboundKeepAliveMessageExtension on InboundKeepAliveMessage { class InboundWebSocketMessage { const InboundWebSocketMessage(); - factory InboundWebSocketMessage.fromJson(Map json) => - _$InboundWebSocketMessageFromJson(json); + factory InboundWebSocketMessage.fromJson(Map json) => _$InboundWebSocketMessageFromJson(json); static const toJsonFactory = _$InboundWebSocketMessageToJson; Map toJson() => _$InboundWebSocketMessageToJson(this); @@ -28737,8 +27936,7 @@ class InstallationInfo { this.packageInfo, }); - factory InstallationInfo.fromJson(Map json) => - _$InstallationInfoFromJson(json); + factory InstallationInfo.fromJson(Map json) => _$InstallationInfoFromJson(json); static const toJsonFactory = _$InstallationInfoToJson; Map toJson() => _$InstallationInfoToJson(this); @@ -28763,10 +27961,8 @@ class InstallationInfo { bool operator ==(Object other) { return identical(this, other) || (other is InstallationInfo && - (identical(other.guid, guid) || - const DeepCollectionEquality().equals(other.guid, guid)) && - (identical(other.name, name) || - const DeepCollectionEquality().equals(other.name, name)) && + (identical(other.guid, guid) || const DeepCollectionEquality().equals(other.guid, guid)) && + (identical(other.name, name) || const DeepCollectionEquality().equals(other.name, name)) && (identical(other.version, version) || const DeepCollectionEquality().equals( other.version, @@ -28863,8 +28059,7 @@ class IPlugin { this.dataFolderPath, }); - factory IPlugin.fromJson(Map json) => - _$IPluginFromJson(json); + factory IPlugin.fromJson(Map json) => _$IPluginFromJson(json); static const toJsonFactory = _$IPluginToJson; Map toJson() => _$IPluginToJson(this); @@ -28889,15 +28084,13 @@ class IPlugin { bool operator ==(Object other) { return identical(this, other) || (other is IPlugin && - (identical(other.name, name) || - const DeepCollectionEquality().equals(other.name, name)) && + (identical(other.name, name) || const DeepCollectionEquality().equals(other.name, name)) && (identical(other.description, description) || const DeepCollectionEquality().equals( other.description, description, )) && - (identical(other.id, id) || - const DeepCollectionEquality().equals(other.id, id)) && + (identical(other.id, id) || const DeepCollectionEquality().equals(other.id, id)) && (identical(other.version, version) || const DeepCollectionEquality().equals( other.version, @@ -28970,15 +28163,9 @@ extension $IPluginExtension on IPlugin { description: (description != null ? description.value : this.description), id: (id != null ? id.value : this.id), version: (version != null ? version.value : this.version), - assemblyFilePath: (assemblyFilePath != null - ? assemblyFilePath.value - : this.assemblyFilePath), - canUninstall: (canUninstall != null - ? canUninstall.value - : this.canUninstall), - dataFolderPath: (dataFolderPath != null - ? dataFolderPath.value - : this.dataFolderPath), + assemblyFilePath: (assemblyFilePath != null ? assemblyFilePath.value : this.assemblyFilePath), + canUninstall: (canUninstall != null ? canUninstall.value : this.canUninstall), + dataFolderPath: (dataFolderPath != null ? dataFolderPath.value : this.dataFolderPath), ); } } @@ -29000,8 +28187,7 @@ class ItemCounts { this.itemCount, }); - factory ItemCounts.fromJson(Map json) => - _$ItemCountsFromJson(json); + factory ItemCounts.fromJson(Map json) => _$ItemCountsFromJson(json); static const toJsonFactory = _$ItemCountsToJson; Map toJson() => _$ItemCountsToJson(this); @@ -29166,21 +28352,13 @@ extension $ItemCountsExtension on ItemCounts { return ItemCounts( movieCount: (movieCount != null ? movieCount.value : this.movieCount), seriesCount: (seriesCount != null ? seriesCount.value : this.seriesCount), - episodeCount: (episodeCount != null - ? episodeCount.value - : this.episodeCount), + episodeCount: (episodeCount != null ? episodeCount.value : this.episodeCount), artistCount: (artistCount != null ? artistCount.value : this.artistCount), - programCount: (programCount != null - ? programCount.value - : this.programCount), - trailerCount: (trailerCount != null - ? trailerCount.value - : this.trailerCount), + programCount: (programCount != null ? programCount.value : this.programCount), + trailerCount: (trailerCount != null ? trailerCount.value : this.trailerCount), songCount: (songCount != null ? songCount.value : this.songCount), albumCount: (albumCount != null ? albumCount.value : this.albumCount), - musicVideoCount: (musicVideoCount != null - ? musicVideoCount.value - : this.musicVideoCount), + musicVideoCount: (musicVideoCount != null ? musicVideoCount.value : this.musicVideoCount), boxSetCount: (boxSetCount != null ? boxSetCount.value : this.boxSetCount), bookCount: (bookCount != null ? bookCount.value : this.bookCount), itemCount: (itemCount != null ? itemCount.value : this.itemCount), @@ -29192,8 +28370,7 @@ extension $ItemCountsExtension on ItemCounts { class JoinGroupRequestDto { const JoinGroupRequestDto({this.groupId}); - factory JoinGroupRequestDto.fromJson(Map json) => - _$JoinGroupRequestDtoFromJson(json); + factory JoinGroupRequestDto.fromJson(Map json) => _$JoinGroupRequestDtoFromJson(json); static const toJsonFactory = _$JoinGroupRequestDtoToJson; Map toJson() => _$JoinGroupRequestDtoToJson(this); @@ -29206,16 +28383,14 @@ class JoinGroupRequestDto { bool operator ==(Object other) { return identical(this, other) || (other is JoinGroupRequestDto && - (identical(other.groupId, groupId) || - const DeepCollectionEquality().equals(other.groupId, groupId))); + (identical(other.groupId, groupId) || const DeepCollectionEquality().equals(other.groupId, groupId))); } @override String toString() => jsonEncode(this); @override - int get hashCode => - const DeepCollectionEquality().hash(groupId) ^ runtimeType.hashCode; + int get hashCode => const DeepCollectionEquality().hash(groupId) ^ runtimeType.hashCode; } extension $JoinGroupRequestDtoExtension on JoinGroupRequestDto { @@ -29234,8 +28409,7 @@ extension $JoinGroupRequestDtoExtension on JoinGroupRequestDto { class LibraryChangedMessage { const LibraryChangedMessage({this.data, this.messageId, this.messageType}); - factory LibraryChangedMessage.fromJson(Map json) => - _$LibraryChangedMessageFromJson(json); + factory LibraryChangedMessage.fromJson(Map json) => _$LibraryChangedMessageFromJson(json); static const toJsonFactory = _$LibraryChangedMessageToJson; Map toJson() => _$LibraryChangedMessageToJson(this); @@ -29251,8 +28425,7 @@ class LibraryChangedMessage { fromJson: sessionMessageTypeMessageTypeNullableFromJson, ) final enums.SessionMessageType? messageType; - static enums.SessionMessageType? - sessionMessageTypeMessageTypeNullableFromJson(Object? value) => + static enums.SessionMessageType? sessionMessageTypeMessageTypeNullableFromJson(Object? value) => sessionMessageTypeNullableFromJson( value, enums.SessionMessageType.librarychanged, @@ -29264,8 +28437,7 @@ class LibraryChangedMessage { bool operator ==(Object other) { return identical(this, other) || (other is LibraryChangedMessage && - (identical(other.data, data) || - const DeepCollectionEquality().equals(other.data, data)) && + (identical(other.data, data) || const DeepCollectionEquality().equals(other.data, data)) && (identical(other.messageId, messageId) || const DeepCollectionEquality().equals( other.messageId, @@ -29319,8 +28491,7 @@ extension $LibraryChangedMessageExtension on LibraryChangedMessage { class LibraryOptionInfoDto { const LibraryOptionInfoDto({this.name, this.defaultEnabled}); - factory LibraryOptionInfoDto.fromJson(Map json) => - _$LibraryOptionInfoDtoFromJson(json); + factory LibraryOptionInfoDto.fromJson(Map json) => _$LibraryOptionInfoDtoFromJson(json); static const toJsonFactory = _$LibraryOptionInfoDtoToJson; Map toJson() => _$LibraryOptionInfoDtoToJson(this); @@ -29335,8 +28506,7 @@ class LibraryOptionInfoDto { bool operator ==(Object other) { return identical(this, other) || (other is LibraryOptionInfoDto && - (identical(other.name, name) || - const DeepCollectionEquality().equals(other.name, name)) && + (identical(other.name, name) || const DeepCollectionEquality().equals(other.name, name)) && (identical(other.defaultEnabled, defaultEnabled) || const DeepCollectionEquality().equals( other.defaultEnabled, @@ -29368,9 +28538,7 @@ extension $LibraryOptionInfoDtoExtension on LibraryOptionInfoDto { }) { return LibraryOptionInfoDto( name: (name != null ? name.value : this.name), - defaultEnabled: (defaultEnabled != null - ? defaultEnabled.value - : this.defaultEnabled), + defaultEnabled: (defaultEnabled != null ? defaultEnabled.value : this.defaultEnabled), ); } } @@ -29422,8 +28590,7 @@ class LibraryOptions { this.typeOptions, }); - factory LibraryOptions.fromJson(Map json) => - _$LibraryOptionsFromJson(json); + factory LibraryOptions.fromJson(Map json) => _$LibraryOptionsFromJson(json); static const toJsonFactory = _$LibraryOptionsToJson; Map toJson() => _$LibraryOptionsToJson(this); @@ -29981,77 +29148,48 @@ extension $LibraryOptionsExtension on LibraryOptions { return LibraryOptions( enabled: enabled ?? this.enabled, enablePhotos: enablePhotos ?? this.enablePhotos, - enableRealtimeMonitor: - enableRealtimeMonitor ?? this.enableRealtimeMonitor, + enableRealtimeMonitor: enableRealtimeMonitor ?? this.enableRealtimeMonitor, enableLUFSScan: enableLUFSScan ?? this.enableLUFSScan, - enableChapterImageExtraction: - enableChapterImageExtraction ?? this.enableChapterImageExtraction, + enableChapterImageExtraction: enableChapterImageExtraction ?? this.enableChapterImageExtraction, extractChapterImagesDuringLibraryScan: - extractChapterImagesDuringLibraryScan ?? - this.extractChapterImagesDuringLibraryScan, - enableTrickplayImageExtraction: - enableTrickplayImageExtraction ?? this.enableTrickplayImageExtraction, + extractChapterImagesDuringLibraryScan ?? this.extractChapterImagesDuringLibraryScan, + enableTrickplayImageExtraction: enableTrickplayImageExtraction ?? this.enableTrickplayImageExtraction, extractTrickplayImagesDuringLibraryScan: - extractTrickplayImagesDuringLibraryScan ?? - this.extractTrickplayImagesDuringLibraryScan, + extractTrickplayImagesDuringLibraryScan ?? this.extractTrickplayImagesDuringLibraryScan, pathInfos: pathInfos ?? this.pathInfos, saveLocalMetadata: saveLocalMetadata ?? this.saveLocalMetadata, - enableInternetProviders: - enableInternetProviders ?? this.enableInternetProviders, - enableAutomaticSeriesGrouping: - enableAutomaticSeriesGrouping ?? this.enableAutomaticSeriesGrouping, + enableInternetProviders: enableInternetProviders ?? this.enableInternetProviders, + enableAutomaticSeriesGrouping: enableAutomaticSeriesGrouping ?? this.enableAutomaticSeriesGrouping, enableEmbeddedTitles: enableEmbeddedTitles ?? this.enableEmbeddedTitles, - enableEmbeddedExtrasTitles: - enableEmbeddedExtrasTitles ?? this.enableEmbeddedExtrasTitles, - enableEmbeddedEpisodeInfos: - enableEmbeddedEpisodeInfos ?? this.enableEmbeddedEpisodeInfos, - automaticRefreshIntervalDays: - automaticRefreshIntervalDays ?? this.automaticRefreshIntervalDays, - preferredMetadataLanguage: - preferredMetadataLanguage ?? this.preferredMetadataLanguage, + enableEmbeddedExtrasTitles: enableEmbeddedExtrasTitles ?? this.enableEmbeddedExtrasTitles, + enableEmbeddedEpisodeInfos: enableEmbeddedEpisodeInfos ?? this.enableEmbeddedEpisodeInfos, + automaticRefreshIntervalDays: automaticRefreshIntervalDays ?? this.automaticRefreshIntervalDays, + preferredMetadataLanguage: preferredMetadataLanguage ?? this.preferredMetadataLanguage, metadataCountryCode: metadataCountryCode ?? this.metadataCountryCode, - seasonZeroDisplayName: - seasonZeroDisplayName ?? this.seasonZeroDisplayName, + seasonZeroDisplayName: seasonZeroDisplayName ?? this.seasonZeroDisplayName, metadataSavers: metadataSavers ?? this.metadataSavers, - disabledLocalMetadataReaders: - disabledLocalMetadataReaders ?? this.disabledLocalMetadataReaders, - localMetadataReaderOrder: - localMetadataReaderOrder ?? this.localMetadataReaderOrder, - disabledSubtitleFetchers: - disabledSubtitleFetchers ?? this.disabledSubtitleFetchers, + disabledLocalMetadataReaders: disabledLocalMetadataReaders ?? this.disabledLocalMetadataReaders, + localMetadataReaderOrder: localMetadataReaderOrder ?? this.localMetadataReaderOrder, + disabledSubtitleFetchers: disabledSubtitleFetchers ?? this.disabledSubtitleFetchers, subtitleFetcherOrder: subtitleFetcherOrder ?? this.subtitleFetcherOrder, - disabledMediaSegmentProviders: - disabledMediaSegmentProviders ?? this.disabledMediaSegmentProviders, - mediaSegmentProviderOrder: - mediaSegmentProviderOrder ?? this.mediaSegmentProviderOrder, + disabledMediaSegmentProviders: disabledMediaSegmentProviders ?? this.disabledMediaSegmentProviders, + mediaSegmentProviderOrder: mediaSegmentProviderOrder ?? this.mediaSegmentProviderOrder, skipSubtitlesIfEmbeddedSubtitlesPresent: - skipSubtitlesIfEmbeddedSubtitlesPresent ?? - this.skipSubtitlesIfEmbeddedSubtitlesPresent, - skipSubtitlesIfAudioTrackMatches: - skipSubtitlesIfAudioTrackMatches ?? - this.skipSubtitlesIfAudioTrackMatches, - subtitleDownloadLanguages: - subtitleDownloadLanguages ?? this.subtitleDownloadLanguages, - requirePerfectSubtitleMatch: - requirePerfectSubtitleMatch ?? this.requirePerfectSubtitleMatch, - saveSubtitlesWithMedia: - saveSubtitlesWithMedia ?? this.saveSubtitlesWithMedia, + skipSubtitlesIfEmbeddedSubtitlesPresent ?? this.skipSubtitlesIfEmbeddedSubtitlesPresent, + skipSubtitlesIfAudioTrackMatches: skipSubtitlesIfAudioTrackMatches ?? this.skipSubtitlesIfAudioTrackMatches, + subtitleDownloadLanguages: subtitleDownloadLanguages ?? this.subtitleDownloadLanguages, + requirePerfectSubtitleMatch: requirePerfectSubtitleMatch ?? this.requirePerfectSubtitleMatch, + saveSubtitlesWithMedia: saveSubtitlesWithMedia ?? this.saveSubtitlesWithMedia, saveLyricsWithMedia: saveLyricsWithMedia ?? this.saveLyricsWithMedia, - saveTrickplayWithMedia: - saveTrickplayWithMedia ?? this.saveTrickplayWithMedia, - disabledLyricFetchers: - disabledLyricFetchers ?? this.disabledLyricFetchers, + saveTrickplayWithMedia: saveTrickplayWithMedia ?? this.saveTrickplayWithMedia, + disabledLyricFetchers: disabledLyricFetchers ?? this.disabledLyricFetchers, lyricFetcherOrder: lyricFetcherOrder ?? this.lyricFetcherOrder, - preferNonstandardArtistsTag: - preferNonstandardArtistsTag ?? this.preferNonstandardArtistsTag, - useCustomTagDelimiters: - useCustomTagDelimiters ?? this.useCustomTagDelimiters, + preferNonstandardArtistsTag: preferNonstandardArtistsTag ?? this.preferNonstandardArtistsTag, + useCustomTagDelimiters: useCustomTagDelimiters ?? this.useCustomTagDelimiters, customTagDelimiters: customTagDelimiters ?? this.customTagDelimiters, delimiterWhitelist: delimiterWhitelist ?? this.delimiterWhitelist, - automaticallyAddToCollection: - automaticallyAddToCollection ?? this.automaticallyAddToCollection, - allowEmbeddedSubtitles: - allowEmbeddedSubtitles ?? this.allowEmbeddedSubtitles, + automaticallyAddToCollection: automaticallyAddToCollection ?? this.automaticallyAddToCollection, + allowEmbeddedSubtitles: allowEmbeddedSubtitles ?? this.allowEmbeddedSubtitles, typeOptions: typeOptions ?? this.typeOptions, ); } @@ -30102,128 +29240,82 @@ extension $LibraryOptionsExtension on LibraryOptions { }) { return LibraryOptions( enabled: (enabled != null ? enabled.value : this.enabled), - enablePhotos: (enablePhotos != null - ? enablePhotos.value - : this.enablePhotos), - enableRealtimeMonitor: (enableRealtimeMonitor != null - ? enableRealtimeMonitor.value - : this.enableRealtimeMonitor), - enableLUFSScan: (enableLUFSScan != null - ? enableLUFSScan.value - : this.enableLUFSScan), + enablePhotos: (enablePhotos != null ? enablePhotos.value : this.enablePhotos), + enableRealtimeMonitor: (enableRealtimeMonitor != null ? enableRealtimeMonitor.value : this.enableRealtimeMonitor), + enableLUFSScan: (enableLUFSScan != null ? enableLUFSScan.value : this.enableLUFSScan), enableChapterImageExtraction: (enableChapterImageExtraction != null ? enableChapterImageExtraction.value : this.enableChapterImageExtraction), - extractChapterImagesDuringLibraryScan: - (extractChapterImagesDuringLibraryScan != null + extractChapterImagesDuringLibraryScan: (extractChapterImagesDuringLibraryScan != null ? extractChapterImagesDuringLibraryScan.value : this.extractChapterImagesDuringLibraryScan), enableTrickplayImageExtraction: (enableTrickplayImageExtraction != null ? enableTrickplayImageExtraction.value : this.enableTrickplayImageExtraction), - extractTrickplayImagesDuringLibraryScan: - (extractTrickplayImagesDuringLibraryScan != null + extractTrickplayImagesDuringLibraryScan: (extractTrickplayImagesDuringLibraryScan != null ? extractTrickplayImagesDuringLibraryScan.value : this.extractTrickplayImagesDuringLibraryScan), pathInfos: (pathInfos != null ? pathInfos.value : this.pathInfos), - saveLocalMetadata: (saveLocalMetadata != null - ? saveLocalMetadata.value - : this.saveLocalMetadata), - enableInternetProviders: (enableInternetProviders != null - ? enableInternetProviders.value - : this.enableInternetProviders), + saveLocalMetadata: (saveLocalMetadata != null ? saveLocalMetadata.value : this.saveLocalMetadata), + enableInternetProviders: + (enableInternetProviders != null ? enableInternetProviders.value : this.enableInternetProviders), enableAutomaticSeriesGrouping: (enableAutomaticSeriesGrouping != null ? enableAutomaticSeriesGrouping.value : this.enableAutomaticSeriesGrouping), - enableEmbeddedTitles: (enableEmbeddedTitles != null - ? enableEmbeddedTitles.value - : this.enableEmbeddedTitles), - enableEmbeddedExtrasTitles: (enableEmbeddedExtrasTitles != null - ? enableEmbeddedExtrasTitles.value - : this.enableEmbeddedExtrasTitles), - enableEmbeddedEpisodeInfos: (enableEmbeddedEpisodeInfos != null - ? enableEmbeddedEpisodeInfos.value - : this.enableEmbeddedEpisodeInfos), + enableEmbeddedTitles: (enableEmbeddedTitles != null ? enableEmbeddedTitles.value : this.enableEmbeddedTitles), + enableEmbeddedExtrasTitles: + (enableEmbeddedExtrasTitles != null ? enableEmbeddedExtrasTitles.value : this.enableEmbeddedExtrasTitles), + enableEmbeddedEpisodeInfos: + (enableEmbeddedEpisodeInfos != null ? enableEmbeddedEpisodeInfos.value : this.enableEmbeddedEpisodeInfos), automaticRefreshIntervalDays: (automaticRefreshIntervalDays != null ? automaticRefreshIntervalDays.value : this.automaticRefreshIntervalDays), - preferredMetadataLanguage: (preferredMetadataLanguage != null - ? preferredMetadataLanguage.value - : this.preferredMetadataLanguage), - metadataCountryCode: (metadataCountryCode != null - ? metadataCountryCode.value - : this.metadataCountryCode), - seasonZeroDisplayName: (seasonZeroDisplayName != null - ? seasonZeroDisplayName.value - : this.seasonZeroDisplayName), - metadataSavers: (metadataSavers != null - ? metadataSavers.value - : this.metadataSavers), + preferredMetadataLanguage: + (preferredMetadataLanguage != null ? preferredMetadataLanguage.value : this.preferredMetadataLanguage), + metadataCountryCode: (metadataCountryCode != null ? metadataCountryCode.value : this.metadataCountryCode), + seasonZeroDisplayName: (seasonZeroDisplayName != null ? seasonZeroDisplayName.value : this.seasonZeroDisplayName), + metadataSavers: (metadataSavers != null ? metadataSavers.value : this.metadataSavers), disabledLocalMetadataReaders: (disabledLocalMetadataReaders != null ? disabledLocalMetadataReaders.value : this.disabledLocalMetadataReaders), - localMetadataReaderOrder: (localMetadataReaderOrder != null - ? localMetadataReaderOrder.value - : this.localMetadataReaderOrder), - disabledSubtitleFetchers: (disabledSubtitleFetchers != null - ? disabledSubtitleFetchers.value - : this.disabledSubtitleFetchers), - subtitleFetcherOrder: (subtitleFetcherOrder != null - ? subtitleFetcherOrder.value - : this.subtitleFetcherOrder), + localMetadataReaderOrder: + (localMetadataReaderOrder != null ? localMetadataReaderOrder.value : this.localMetadataReaderOrder), + disabledSubtitleFetchers: + (disabledSubtitleFetchers != null ? disabledSubtitleFetchers.value : this.disabledSubtitleFetchers), + subtitleFetcherOrder: (subtitleFetcherOrder != null ? subtitleFetcherOrder.value : this.subtitleFetcherOrder), disabledMediaSegmentProviders: (disabledMediaSegmentProviders != null ? disabledMediaSegmentProviders.value : this.disabledMediaSegmentProviders), - mediaSegmentProviderOrder: (mediaSegmentProviderOrder != null - ? mediaSegmentProviderOrder.value - : this.mediaSegmentProviderOrder), - skipSubtitlesIfEmbeddedSubtitlesPresent: - (skipSubtitlesIfEmbeddedSubtitlesPresent != null + mediaSegmentProviderOrder: + (mediaSegmentProviderOrder != null ? mediaSegmentProviderOrder.value : this.mediaSegmentProviderOrder), + skipSubtitlesIfEmbeddedSubtitlesPresent: (skipSubtitlesIfEmbeddedSubtitlesPresent != null ? skipSubtitlesIfEmbeddedSubtitlesPresent.value : this.skipSubtitlesIfEmbeddedSubtitlesPresent), - skipSubtitlesIfAudioTrackMatches: - (skipSubtitlesIfAudioTrackMatches != null + skipSubtitlesIfAudioTrackMatches: (skipSubtitlesIfAudioTrackMatches != null ? skipSubtitlesIfAudioTrackMatches.value : this.skipSubtitlesIfAudioTrackMatches), - subtitleDownloadLanguages: (subtitleDownloadLanguages != null - ? subtitleDownloadLanguages.value - : this.subtitleDownloadLanguages), - requirePerfectSubtitleMatch: (requirePerfectSubtitleMatch != null - ? requirePerfectSubtitleMatch.value - : this.requirePerfectSubtitleMatch), - saveSubtitlesWithMedia: (saveSubtitlesWithMedia != null - ? saveSubtitlesWithMedia.value - : this.saveSubtitlesWithMedia), - saveLyricsWithMedia: (saveLyricsWithMedia != null - ? saveLyricsWithMedia.value - : this.saveLyricsWithMedia), - saveTrickplayWithMedia: (saveTrickplayWithMedia != null - ? saveTrickplayWithMedia.value - : this.saveTrickplayWithMedia), - disabledLyricFetchers: (disabledLyricFetchers != null - ? disabledLyricFetchers.value - : this.disabledLyricFetchers), - lyricFetcherOrder: (lyricFetcherOrder != null - ? lyricFetcherOrder.value - : this.lyricFetcherOrder), - preferNonstandardArtistsTag: (preferNonstandardArtistsTag != null - ? preferNonstandardArtistsTag.value - : this.preferNonstandardArtistsTag), - useCustomTagDelimiters: (useCustomTagDelimiters != null - ? useCustomTagDelimiters.value - : this.useCustomTagDelimiters), - customTagDelimiters: (customTagDelimiters != null - ? customTagDelimiters.value - : this.customTagDelimiters), - delimiterWhitelist: (delimiterWhitelist != null - ? delimiterWhitelist.value - : this.delimiterWhitelist), + subtitleDownloadLanguages: + (subtitleDownloadLanguages != null ? subtitleDownloadLanguages.value : this.subtitleDownloadLanguages), + requirePerfectSubtitleMatch: + (requirePerfectSubtitleMatch != null ? requirePerfectSubtitleMatch.value : this.requirePerfectSubtitleMatch), + saveSubtitlesWithMedia: + (saveSubtitlesWithMedia != null ? saveSubtitlesWithMedia.value : this.saveSubtitlesWithMedia), + saveLyricsWithMedia: (saveLyricsWithMedia != null ? saveLyricsWithMedia.value : this.saveLyricsWithMedia), + saveTrickplayWithMedia: + (saveTrickplayWithMedia != null ? saveTrickplayWithMedia.value : this.saveTrickplayWithMedia), + disabledLyricFetchers: (disabledLyricFetchers != null ? disabledLyricFetchers.value : this.disabledLyricFetchers), + lyricFetcherOrder: (lyricFetcherOrder != null ? lyricFetcherOrder.value : this.lyricFetcherOrder), + preferNonstandardArtistsTag: + (preferNonstandardArtistsTag != null ? preferNonstandardArtistsTag.value : this.preferNonstandardArtistsTag), + useCustomTagDelimiters: + (useCustomTagDelimiters != null ? useCustomTagDelimiters.value : this.useCustomTagDelimiters), + customTagDelimiters: (customTagDelimiters != null ? customTagDelimiters.value : this.customTagDelimiters), + delimiterWhitelist: (delimiterWhitelist != null ? delimiterWhitelist.value : this.delimiterWhitelist), automaticallyAddToCollection: (automaticallyAddToCollection != null ? automaticallyAddToCollection.value : this.automaticallyAddToCollection), - allowEmbeddedSubtitles: (allowEmbeddedSubtitles != null - ? allowEmbeddedSubtitles.value - : this.allowEmbeddedSubtitles), + allowEmbeddedSubtitles: + (allowEmbeddedSubtitles != null ? allowEmbeddedSubtitles.value : this.allowEmbeddedSubtitles), typeOptions: (typeOptions != null ? typeOptions.value : this.typeOptions), ); } @@ -30240,8 +29332,7 @@ class LibraryOptionsResultDto { this.typeOptions, }); - factory LibraryOptionsResultDto.fromJson(Map json) => - _$LibraryOptionsResultDtoFromJson(json); + factory LibraryOptionsResultDto.fromJson(Map json) => _$LibraryOptionsResultDtoFromJson(json); static const toJsonFactory = _$LibraryOptionsResultDtoToJson; Map toJson() => _$LibraryOptionsResultDtoToJson(this); @@ -30348,8 +29439,7 @@ extension $LibraryOptionsResultDtoExtension on LibraryOptionsResultDto { metadataReaders: metadataReaders ?? this.metadataReaders, subtitleFetchers: subtitleFetchers ?? this.subtitleFetchers, lyricFetchers: lyricFetchers ?? this.lyricFetchers, - mediaSegmentProviders: - mediaSegmentProviders ?? this.mediaSegmentProviders, + mediaSegmentProviders: mediaSegmentProviders ?? this.mediaSegmentProviders, typeOptions: typeOptions ?? this.typeOptions, ); } @@ -30363,21 +29453,11 @@ extension $LibraryOptionsResultDtoExtension on LibraryOptionsResultDto { Wrapped?>? typeOptions, }) { return LibraryOptionsResultDto( - metadataSavers: (metadataSavers != null - ? metadataSavers.value - : this.metadataSavers), - metadataReaders: (metadataReaders != null - ? metadataReaders.value - : this.metadataReaders), - subtitleFetchers: (subtitleFetchers != null - ? subtitleFetchers.value - : this.subtitleFetchers), - lyricFetchers: (lyricFetchers != null - ? lyricFetchers.value - : this.lyricFetchers), - mediaSegmentProviders: (mediaSegmentProviders != null - ? mediaSegmentProviders.value - : this.mediaSegmentProviders), + metadataSavers: (metadataSavers != null ? metadataSavers.value : this.metadataSavers), + metadataReaders: (metadataReaders != null ? metadataReaders.value : this.metadataReaders), + subtitleFetchers: (subtitleFetchers != null ? subtitleFetchers.value : this.subtitleFetchers), + lyricFetchers: (lyricFetchers != null ? lyricFetchers.value : this.lyricFetchers), + mediaSegmentProviders: (mediaSegmentProviders != null ? mediaSegmentProviders.value : this.mediaSegmentProviders), typeOptions: (typeOptions != null ? typeOptions.value : this.typeOptions), ); } @@ -30387,8 +29467,7 @@ extension $LibraryOptionsResultDtoExtension on LibraryOptionsResultDto { class LibraryStorageDto { const LibraryStorageDto({this.id, this.name, this.folders}); - factory LibraryStorageDto.fromJson(Map json) => - _$LibraryStorageDtoFromJson(json); + factory LibraryStorageDto.fromJson(Map json) => _$LibraryStorageDtoFromJson(json); static const toJsonFactory = _$LibraryStorageDtoToJson; Map toJson() => _$LibraryStorageDtoToJson(this); @@ -30409,12 +29488,9 @@ class LibraryStorageDto { bool operator ==(Object other) { return identical(this, other) || (other is LibraryStorageDto && - (identical(other.id, id) || - const DeepCollectionEquality().equals(other.id, id)) && - (identical(other.name, name) || - const DeepCollectionEquality().equals(other.name, name)) && - (identical(other.folders, folders) || - const DeepCollectionEquality().equals(other.folders, folders))); + (identical(other.id, id) || const DeepCollectionEquality().equals(other.id, id)) && + (identical(other.name, name) || const DeepCollectionEquality().equals(other.name, name)) && + (identical(other.folders, folders) || const DeepCollectionEquality().equals(other.folders, folders))); } @override @@ -30464,8 +29540,7 @@ class LibraryTypeOptionsDto { this.defaultImageOptions, }); - factory LibraryTypeOptionsDto.fromJson(Map json) => - _$LibraryTypeOptionsDtoFromJson(json); + factory LibraryTypeOptionsDto.fromJson(Map json) => _$LibraryTypeOptionsDtoFromJson(json); static const toJsonFactory = _$LibraryTypeOptionsDtoToJson; Map toJson() => _$LibraryTypeOptionsDtoToJson(this); @@ -30503,8 +29578,7 @@ class LibraryTypeOptionsDto { bool operator ==(Object other) { return identical(this, other) || (other is LibraryTypeOptionsDto && - (identical(other.type, type) || - const DeepCollectionEquality().equals(other.type, type)) && + (identical(other.type, type) || const DeepCollectionEquality().equals(other.type, type)) && (identical(other.metadataFetchers, metadataFetchers) || const DeepCollectionEquality().equals( other.metadataFetchers, @@ -30566,18 +29640,10 @@ extension $LibraryTypeOptionsDtoExtension on LibraryTypeOptionsDto { }) { return LibraryTypeOptionsDto( type: (type != null ? type.value : this.type), - metadataFetchers: (metadataFetchers != null - ? metadataFetchers.value - : this.metadataFetchers), - imageFetchers: (imageFetchers != null - ? imageFetchers.value - : this.imageFetchers), - supportedImageTypes: (supportedImageTypes != null - ? supportedImageTypes.value - : this.supportedImageTypes), - defaultImageOptions: (defaultImageOptions != null - ? defaultImageOptions.value - : this.defaultImageOptions), + metadataFetchers: (metadataFetchers != null ? metadataFetchers.value : this.metadataFetchers), + imageFetchers: (imageFetchers != null ? imageFetchers.value : this.imageFetchers), + supportedImageTypes: (supportedImageTypes != null ? supportedImageTypes.value : this.supportedImageTypes), + defaultImageOptions: (defaultImageOptions != null ? defaultImageOptions.value : this.defaultImageOptions), ); } } @@ -30594,8 +29660,7 @@ class LibraryUpdateInfo { this.isEmpty, }); - factory LibraryUpdateInfo.fromJson(Map json) => - _$LibraryUpdateInfoFromJson(json); + factory LibraryUpdateInfo.fromJson(Map json) => _$LibraryUpdateInfoFromJson(json); static const toJsonFactory = _$LibraryUpdateInfoToJson; Map toJson() => _$LibraryUpdateInfoToJson(this); @@ -30662,8 +29727,7 @@ class LibraryUpdateInfo { other.collectionFolders, collectionFolders, )) && - (identical(other.isEmpty, isEmpty) || - const DeepCollectionEquality().equals(other.isEmpty, isEmpty))); + (identical(other.isEmpty, isEmpty) || const DeepCollectionEquality().equals(other.isEmpty, isEmpty))); } @override @@ -30712,22 +29776,12 @@ extension $LibraryUpdateInfoExtension on LibraryUpdateInfo { Wrapped? isEmpty, }) { return LibraryUpdateInfo( - foldersAddedTo: (foldersAddedTo != null - ? foldersAddedTo.value - : this.foldersAddedTo), - foldersRemovedFrom: (foldersRemovedFrom != null - ? foldersRemovedFrom.value - : this.foldersRemovedFrom), + foldersAddedTo: (foldersAddedTo != null ? foldersAddedTo.value : this.foldersAddedTo), + foldersRemovedFrom: (foldersRemovedFrom != null ? foldersRemovedFrom.value : this.foldersRemovedFrom), itemsAdded: (itemsAdded != null ? itemsAdded.value : this.itemsAdded), - itemsRemoved: (itemsRemoved != null - ? itemsRemoved.value - : this.itemsRemoved), - itemsUpdated: (itemsUpdated != null - ? itemsUpdated.value - : this.itemsUpdated), - collectionFolders: (collectionFolders != null - ? collectionFolders.value - : this.collectionFolders), + itemsRemoved: (itemsRemoved != null ? itemsRemoved.value : this.itemsRemoved), + itemsUpdated: (itemsUpdated != null ? itemsUpdated.value : this.itemsUpdated), + collectionFolders: (collectionFolders != null ? collectionFolders.value : this.collectionFolders), isEmpty: (isEmpty != null ? isEmpty.value : this.isEmpty), ); } @@ -30756,8 +29810,7 @@ class ListingsProviderInfo { this.userAgent, }); - factory ListingsProviderInfo.fromJson(Map json) => - _$ListingsProviderInfoFromJson(json); + factory ListingsProviderInfo.fromJson(Map json) => _$ListingsProviderInfoFromJson(json); static const toJsonFactory = _$ListingsProviderInfoToJson; Map toJson() => _$ListingsProviderInfoToJson(this); @@ -30828,10 +29881,8 @@ class ListingsProviderInfo { bool operator ==(Object other) { return identical(this, other) || (other is ListingsProviderInfo && - (identical(other.id, id) || - const DeepCollectionEquality().equals(other.id, id)) && - (identical(other.type, type) || - const DeepCollectionEquality().equals(other.type, type)) && + (identical(other.id, id) || const DeepCollectionEquality().equals(other.id, id)) && + (identical(other.type, type) || const DeepCollectionEquality().equals(other.type, type)) && (identical(other.username, username) || const DeepCollectionEquality().equals( other.username, @@ -30857,8 +29908,7 @@ class ListingsProviderInfo { other.country, country, )) && - (identical(other.path, path) || - const DeepCollectionEquality().equals(other.path, path)) && + (identical(other.path, path) || const DeepCollectionEquality().equals(other.path, path)) && (identical(other.enabledTuners, enabledTuners) || const DeepCollectionEquality().equals( other.enabledTuners, @@ -31009,31 +30059,15 @@ extension $ListingsProviderInfoExtension on ListingsProviderInfo { zipCode: (zipCode != null ? zipCode.value : this.zipCode), country: (country != null ? country.value : this.country), path: (path != null ? path.value : this.path), - enabledTuners: (enabledTuners != null - ? enabledTuners.value - : this.enabledTuners), - enableAllTuners: (enableAllTuners != null - ? enableAllTuners.value - : this.enableAllTuners), - newsCategories: (newsCategories != null - ? newsCategories.value - : this.newsCategories), - sportsCategories: (sportsCategories != null - ? sportsCategories.value - : this.sportsCategories), - kidsCategories: (kidsCategories != null - ? kidsCategories.value - : this.kidsCategories), - movieCategories: (movieCategories != null - ? movieCategories.value - : this.movieCategories), - channelMappings: (channelMappings != null - ? channelMappings.value - : this.channelMappings), + enabledTuners: (enabledTuners != null ? enabledTuners.value : this.enabledTuners), + enableAllTuners: (enableAllTuners != null ? enableAllTuners.value : this.enableAllTuners), + newsCategories: (newsCategories != null ? newsCategories.value : this.newsCategories), + sportsCategories: (sportsCategories != null ? sportsCategories.value : this.sportsCategories), + kidsCategories: (kidsCategories != null ? kidsCategories.value : this.kidsCategories), + movieCategories: (movieCategories != null ? movieCategories.value : this.movieCategories), + channelMappings: (channelMappings != null ? channelMappings.value : this.channelMappings), moviePrefix: (moviePrefix != null ? moviePrefix.value : this.moviePrefix), - preferredLanguage: (preferredLanguage != null - ? preferredLanguage.value - : this.preferredLanguage), + preferredLanguage: (preferredLanguage != null ? preferredLanguage.value : this.preferredLanguage), userAgent: (userAgent != null ? userAgent.value : this.userAgent), ); } @@ -31043,8 +30077,7 @@ extension $ListingsProviderInfoExtension on ListingsProviderInfo { class LiveStreamResponse { const LiveStreamResponse({this.mediaSource}); - factory LiveStreamResponse.fromJson(Map json) => - _$LiveStreamResponseFromJson(json); + factory LiveStreamResponse.fromJson(Map json) => _$LiveStreamResponseFromJson(json); static const toJsonFactory = _$LiveStreamResponseToJson; Map toJson() => _$LiveStreamResponseToJson(this); @@ -31068,8 +30101,7 @@ class LiveStreamResponse { String toString() => jsonEncode(this); @override - int get hashCode => - const DeepCollectionEquality().hash(mediaSource) ^ runtimeType.hashCode; + int get hashCode => const DeepCollectionEquality().hash(mediaSource) ^ runtimeType.hashCode; } extension $LiveStreamResponseExtension on LiveStreamResponse { @@ -31088,8 +30120,7 @@ extension $LiveStreamResponseExtension on LiveStreamResponse { class LiveTvInfo { const LiveTvInfo({this.services, this.isEnabled, this.enabledUsers}); - factory LiveTvInfo.fromJson(Map json) => - _$LiveTvInfoFromJson(json); + factory LiveTvInfo.fromJson(Map json) => _$LiveTvInfoFromJson(json); static const toJsonFactory = _$LiveTvInfoToJson; Map toJson() => _$LiveTvInfoToJson(this); @@ -31159,9 +30190,7 @@ extension $LiveTvInfoExtension on LiveTvInfo { return LiveTvInfo( services: (services != null ? services.value : this.services), isEnabled: (isEnabled != null ? isEnabled.value : this.isEnabled), - enabledUsers: (enabledUsers != null - ? enabledUsers.value - : this.enabledUsers), + enabledUsers: (enabledUsers != null ? enabledUsers.value : this.enabledUsers), ); } } @@ -31186,8 +30215,7 @@ class LiveTvOptions { this.saveRecordingImages, }); - factory LiveTvOptions.fromJson(Map json) => - _$LiveTvOptionsFromJson(json); + factory LiveTvOptions.fromJson(Map json) => _$LiveTvOptionsFromJson(json); static const toJsonFactory = _$LiveTvOptionsToJson; Map toJson() => _$LiveTvOptionsToJson(this); @@ -31377,22 +30405,16 @@ extension $LiveTvOptionsExtension on LiveTvOptions { recordingPath: recordingPath ?? this.recordingPath, movieRecordingPath: movieRecordingPath ?? this.movieRecordingPath, seriesRecordingPath: seriesRecordingPath ?? this.seriesRecordingPath, - enableRecordingSubfolders: - enableRecordingSubfolders ?? this.enableRecordingSubfolders, + enableRecordingSubfolders: enableRecordingSubfolders ?? this.enableRecordingSubfolders, enableOriginalAudioWithEncodedRecordings: - enableOriginalAudioWithEncodedRecordings ?? - this.enableOriginalAudioWithEncodedRecordings, + enableOriginalAudioWithEncodedRecordings ?? this.enableOriginalAudioWithEncodedRecordings, tunerHosts: tunerHosts ?? this.tunerHosts, listingProviders: listingProviders ?? this.listingProviders, prePaddingSeconds: prePaddingSeconds ?? this.prePaddingSeconds, postPaddingSeconds: postPaddingSeconds ?? this.postPaddingSeconds, - mediaLocationsCreated: - mediaLocationsCreated ?? this.mediaLocationsCreated, - recordingPostProcessor: - recordingPostProcessor ?? this.recordingPostProcessor, - recordingPostProcessorArguments: - recordingPostProcessorArguments ?? - this.recordingPostProcessorArguments, + mediaLocationsCreated: mediaLocationsCreated ?? this.mediaLocationsCreated, + recordingPostProcessor: recordingPostProcessor ?? this.recordingPostProcessor, + recordingPostProcessorArguments: recordingPostProcessorArguments ?? this.recordingPostProcessorArguments, saveRecordingNFO: saveRecordingNFO ?? this.saveRecordingNFO, saveRecordingImages: saveRecordingImages ?? this.saveRecordingImages, ); @@ -31417,47 +30439,26 @@ extension $LiveTvOptionsExtension on LiveTvOptions { }) { return LiveTvOptions( guideDays: (guideDays != null ? guideDays.value : this.guideDays), - recordingPath: (recordingPath != null - ? recordingPath.value - : this.recordingPath), - movieRecordingPath: (movieRecordingPath != null - ? movieRecordingPath.value - : this.movieRecordingPath), - seriesRecordingPath: (seriesRecordingPath != null - ? seriesRecordingPath.value - : this.seriesRecordingPath), - enableRecordingSubfolders: (enableRecordingSubfolders != null - ? enableRecordingSubfolders.value - : this.enableRecordingSubfolders), - enableOriginalAudioWithEncodedRecordings: - (enableOriginalAudioWithEncodedRecordings != null + recordingPath: (recordingPath != null ? recordingPath.value : this.recordingPath), + movieRecordingPath: (movieRecordingPath != null ? movieRecordingPath.value : this.movieRecordingPath), + seriesRecordingPath: (seriesRecordingPath != null ? seriesRecordingPath.value : this.seriesRecordingPath), + enableRecordingSubfolders: + (enableRecordingSubfolders != null ? enableRecordingSubfolders.value : this.enableRecordingSubfolders), + enableOriginalAudioWithEncodedRecordings: (enableOriginalAudioWithEncodedRecordings != null ? enableOriginalAudioWithEncodedRecordings.value : this.enableOriginalAudioWithEncodedRecordings), tunerHosts: (tunerHosts != null ? tunerHosts.value : this.tunerHosts), - listingProviders: (listingProviders != null - ? listingProviders.value - : this.listingProviders), - prePaddingSeconds: (prePaddingSeconds != null - ? prePaddingSeconds.value - : this.prePaddingSeconds), - postPaddingSeconds: (postPaddingSeconds != null - ? postPaddingSeconds.value - : this.postPaddingSeconds), - mediaLocationsCreated: (mediaLocationsCreated != null - ? mediaLocationsCreated.value - : this.mediaLocationsCreated), - recordingPostProcessor: (recordingPostProcessor != null - ? recordingPostProcessor.value - : this.recordingPostProcessor), + listingProviders: (listingProviders != null ? listingProviders.value : this.listingProviders), + prePaddingSeconds: (prePaddingSeconds != null ? prePaddingSeconds.value : this.prePaddingSeconds), + postPaddingSeconds: (postPaddingSeconds != null ? postPaddingSeconds.value : this.postPaddingSeconds), + mediaLocationsCreated: (mediaLocationsCreated != null ? mediaLocationsCreated.value : this.mediaLocationsCreated), + recordingPostProcessor: + (recordingPostProcessor != null ? recordingPostProcessor.value : this.recordingPostProcessor), recordingPostProcessorArguments: (recordingPostProcessorArguments != null ? recordingPostProcessorArguments.value : this.recordingPostProcessorArguments), - saveRecordingNFO: (saveRecordingNFO != null - ? saveRecordingNFO.value - : this.saveRecordingNFO), - saveRecordingImages: (saveRecordingImages != null - ? saveRecordingImages.value - : this.saveRecordingImages), + saveRecordingNFO: (saveRecordingNFO != null ? saveRecordingNFO.value : this.saveRecordingNFO), + saveRecordingImages: (saveRecordingImages != null ? saveRecordingImages.value : this.saveRecordingImages), ); } } @@ -31475,8 +30476,7 @@ class LiveTvServiceInfo { this.tuners, }); - factory LiveTvServiceInfo.fromJson(Map json) => - _$LiveTvServiceInfoFromJson(json); + factory LiveTvServiceInfo.fromJson(Map json) => _$LiveTvServiceInfoFromJson(json); static const toJsonFactory = _$LiveTvServiceInfoToJson; Map toJson() => _$LiveTvServiceInfoToJson(this); @@ -31508,15 +30508,13 @@ class LiveTvServiceInfo { bool operator ==(Object other) { return identical(this, other) || (other is LiveTvServiceInfo && - (identical(other.name, name) || - const DeepCollectionEquality().equals(other.name, name)) && + (identical(other.name, name) || const DeepCollectionEquality().equals(other.name, name)) && (identical(other.homePageUrl, homePageUrl) || const DeepCollectionEquality().equals( other.homePageUrl, homePageUrl, )) && - (identical(other.status, status) || - const DeepCollectionEquality().equals(other.status, status)) && + (identical(other.status, status) || const DeepCollectionEquality().equals(other.status, status)) && (identical(other.statusMessage, statusMessage) || const DeepCollectionEquality().equals( other.statusMessage, @@ -31537,8 +30535,7 @@ class LiveTvServiceInfo { other.isVisible, isVisible, )) && - (identical(other.tuners, tuners) || - const DeepCollectionEquality().equals(other.tuners, tuners))); + (identical(other.tuners, tuners) || const DeepCollectionEquality().equals(other.tuners, tuners))); } @override @@ -31594,13 +30591,9 @@ extension $LiveTvServiceInfoExtension on LiveTvServiceInfo { name: (name != null ? name.value : this.name), homePageUrl: (homePageUrl != null ? homePageUrl.value : this.homePageUrl), status: (status != null ? status.value : this.status), - statusMessage: (statusMessage != null - ? statusMessage.value - : this.statusMessage), + statusMessage: (statusMessage != null ? statusMessage.value : this.statusMessage), version: (version != null ? version.value : this.version), - hasUpdateAvailable: (hasUpdateAvailable != null - ? hasUpdateAvailable.value - : this.hasUpdateAvailable), + hasUpdateAvailable: (hasUpdateAvailable != null ? hasUpdateAvailable.value : this.hasUpdateAvailable), isVisible: (isVisible != null ? isVisible.value : this.isVisible), tuners: (tuners != null ? tuners.value : this.tuners), ); @@ -31611,8 +30604,7 @@ extension $LiveTvServiceInfoExtension on LiveTvServiceInfo { class LocalizationOption { const LocalizationOption({this.name, this.$Value}); - factory LocalizationOption.fromJson(Map json) => - _$LocalizationOptionFromJson(json); + factory LocalizationOption.fromJson(Map json) => _$LocalizationOptionFromJson(json); static const toJsonFactory = _$LocalizationOptionToJson; Map toJson() => _$LocalizationOptionToJson(this); @@ -31627,10 +30619,8 @@ class LocalizationOption { bool operator ==(Object other) { return identical(this, other) || (other is LocalizationOption && - (identical(other.name, name) || - const DeepCollectionEquality().equals(other.name, name)) && - (identical(other.$Value, $Value) || - const DeepCollectionEquality().equals(other.$Value, $Value))); + (identical(other.name, name) || const DeepCollectionEquality().equals(other.name, name)) && + (identical(other.$Value, $Value) || const DeepCollectionEquality().equals(other.$Value, $Value))); } @override @@ -31638,9 +30628,7 @@ class LocalizationOption { @override int get hashCode => - const DeepCollectionEquality().hash(name) ^ - const DeepCollectionEquality().hash($Value) ^ - runtimeType.hashCode; + const DeepCollectionEquality().hash(name) ^ const DeepCollectionEquality().hash($Value) ^ runtimeType.hashCode; } extension $LocalizationOptionExtension on LocalizationOption { @@ -31666,8 +30654,7 @@ extension $LocalizationOptionExtension on LocalizationOption { class LogFile { const LogFile({this.dateCreated, this.dateModified, this.size, this.name}); - factory LogFile.fromJson(Map json) => - _$LogFileFromJson(json); + factory LogFile.fromJson(Map json) => _$LogFileFromJson(json); static const toJsonFactory = _$LogFileToJson; Map toJson() => _$LogFileToJson(this); @@ -31696,10 +30683,8 @@ class LogFile { other.dateModified, dateModified, )) && - (identical(other.size, size) || - const DeepCollectionEquality().equals(other.size, size)) && - (identical(other.name, name) || - const DeepCollectionEquality().equals(other.name, name))); + (identical(other.size, size) || const DeepCollectionEquality().equals(other.size, size)) && + (identical(other.name, name) || const DeepCollectionEquality().equals(other.name, name))); } @override @@ -31737,9 +30722,7 @@ extension $LogFileExtension on LogFile { }) { return LogFile( dateCreated: (dateCreated != null ? dateCreated.value : this.dateCreated), - dateModified: (dateModified != null - ? dateModified.value - : this.dateModified), + dateModified: (dateModified != null ? dateModified.value : this.dateModified), size: (size != null ? size.value : this.size), name: (name != null ? name.value : this.name), ); @@ -31750,8 +30733,7 @@ extension $LogFileExtension on LogFile { class LoginInfoInput { const LoginInfoInput({required this.username, required this.password}); - factory LoginInfoInput.fromJson(Map json) => - _$LoginInfoInputFromJson(json); + factory LoginInfoInput.fromJson(Map json) => _$LoginInfoInputFromJson(json); static const toJsonFactory = _$LoginInfoInputToJson; Map toJson() => _$LoginInfoInputToJson(this); @@ -31811,8 +30793,7 @@ extension $LoginInfoInputExtension on LoginInfoInput { class LyricDto { const LyricDto({this.metadata, this.lyrics}); - factory LyricDto.fromJson(Map json) => - _$LyricDtoFromJson(json); + factory LyricDto.fromJson(Map json) => _$LyricDtoFromJson(json); static const toJsonFactory = _$LyricDtoToJson; Map toJson() => _$LyricDtoToJson(this); @@ -31832,8 +30813,7 @@ class LyricDto { other.metadata, metadata, )) && - (identical(other.lyrics, lyrics) || - const DeepCollectionEquality().equals(other.lyrics, lyrics))); + (identical(other.lyrics, lyrics) || const DeepCollectionEquality().equals(other.lyrics, lyrics))); } @override @@ -31869,8 +30849,7 @@ extension $LyricDtoExtension on LyricDto { class LyricLine { const LyricLine({this.text, this.start, this.cues}); - factory LyricLine.fromJson(Map json) => - _$LyricLineFromJson(json); + factory LyricLine.fromJson(Map json) => _$LyricLineFromJson(json); static const toJsonFactory = _$LyricLineToJson; Map toJson() => _$LyricLineToJson(this); @@ -31887,12 +30866,9 @@ class LyricLine { bool operator ==(Object other) { return identical(this, other) || (other is LyricLine && - (identical(other.text, text) || - const DeepCollectionEquality().equals(other.text, text)) && - (identical(other.start, start) || - const DeepCollectionEquality().equals(other.start, start)) && - (identical(other.cues, cues) || - const DeepCollectionEquality().equals(other.cues, cues))); + (identical(other.text, text) || const DeepCollectionEquality().equals(other.text, text)) && + (identical(other.start, start) || const DeepCollectionEquality().equals(other.start, start)) && + (identical(other.cues, cues) || const DeepCollectionEquality().equals(other.cues, cues))); } @override @@ -31932,8 +30908,7 @@ extension $LyricLineExtension on LyricLine { class LyricLineCue { const LyricLineCue({this.position, this.endPosition, this.start, this.end}); - factory LyricLineCue.fromJson(Map json) => - _$LyricLineCueFromJson(json); + factory LyricLineCue.fromJson(Map json) => _$LyricLineCueFromJson(json); static const toJsonFactory = _$LyricLineCueToJson; Map toJson() => _$LyricLineCueToJson(this); @@ -31962,10 +30937,8 @@ class LyricLineCue { other.endPosition, endPosition, )) && - (identical(other.start, start) || - const DeepCollectionEquality().equals(other.start, start)) && - (identical(other.end, end) || - const DeepCollectionEquality().equals(other.end, end))); + (identical(other.start, start) || const DeepCollectionEquality().equals(other.start, start)) && + (identical(other.end, end) || const DeepCollectionEquality().equals(other.end, end))); } @override @@ -32025,8 +30998,7 @@ class LyricMetadata { this.isSynced, }); - factory LyricMetadata.fromJson(Map json) => - _$LyricMetadataFromJson(json); + factory LyricMetadata.fromJson(Map json) => _$LyricMetadataFromJson(json); static const toJsonFactory = _$LyricMetadataToJson; Map toJson() => _$LyricMetadataToJson(this); @@ -32057,20 +31029,13 @@ class LyricMetadata { bool operator ==(Object other) { return identical(this, other) || (other is LyricMetadata && - (identical(other.artist, artist) || - const DeepCollectionEquality().equals(other.artist, artist)) && - (identical(other.album, album) || - const DeepCollectionEquality().equals(other.album, album)) && - (identical(other.title, title) || - const DeepCollectionEquality().equals(other.title, title)) && - (identical(other.author, author) || - const DeepCollectionEquality().equals(other.author, author)) && - (identical(other.length, length) || - const DeepCollectionEquality().equals(other.length, length)) && - (identical(other.by, by) || - const DeepCollectionEquality().equals(other.by, by)) && - (identical(other.offset, offset) || - const DeepCollectionEquality().equals(other.offset, offset)) && + (identical(other.artist, artist) || const DeepCollectionEquality().equals(other.artist, artist)) && + (identical(other.album, album) || const DeepCollectionEquality().equals(other.album, album)) && + (identical(other.title, title) || const DeepCollectionEquality().equals(other.title, title)) && + (identical(other.author, author) || const DeepCollectionEquality().equals(other.author, author)) && + (identical(other.length, length) || const DeepCollectionEquality().equals(other.length, length)) && + (identical(other.by, by) || const DeepCollectionEquality().equals(other.by, by)) && + (identical(other.offset, offset) || const DeepCollectionEquality().equals(other.offset, offset)) && (identical(other.creator, creator) || const DeepCollectionEquality().equals( other.creator, @@ -32172,8 +31137,7 @@ class MediaAttachment { this.deliveryUrl, }); - factory MediaAttachment.fromJson(Map json) => - _$MediaAttachmentFromJson(json); + factory MediaAttachment.fromJson(Map json) => _$MediaAttachmentFromJson(json); static const toJsonFactory = _$MediaAttachmentToJson; Map toJson() => _$MediaAttachmentToJson(this); @@ -32198,8 +31162,7 @@ class MediaAttachment { bool operator ==(Object other) { return identical(this, other) || (other is MediaAttachment && - (identical(other.codec, codec) || - const DeepCollectionEquality().equals(other.codec, codec)) && + (identical(other.codec, codec) || const DeepCollectionEquality().equals(other.codec, codec)) && (identical(other.codecTag, codecTag) || const DeepCollectionEquality().equals( other.codecTag, @@ -32210,8 +31173,7 @@ class MediaAttachment { other.comment, comment, )) && - (identical(other.index, index) || - const DeepCollectionEquality().equals(other.index, index)) && + (identical(other.index, index) || const DeepCollectionEquality().equals(other.index, index)) && (identical(other.fileName, fileName) || const DeepCollectionEquality().equals( other.fileName, @@ -32290,8 +31252,7 @@ extension $MediaAttachmentExtension on MediaAttachment { class MediaPathDto { const MediaPathDto({required this.name, this.path, this.pathInfo}); - factory MediaPathDto.fromJson(Map json) => - _$MediaPathDtoFromJson(json); + factory MediaPathDto.fromJson(Map json) => _$MediaPathDtoFromJson(json); static const toJsonFactory = _$MediaPathDtoToJson; Map toJson() => _$MediaPathDtoToJson(this); @@ -32308,10 +31269,8 @@ class MediaPathDto { bool operator ==(Object other) { return identical(this, other) || (other is MediaPathDto && - (identical(other.name, name) || - const DeepCollectionEquality().equals(other.name, name)) && - (identical(other.path, path) || - const DeepCollectionEquality().equals(other.path, path)) && + (identical(other.name, name) || const DeepCollectionEquality().equals(other.name, name)) && + (identical(other.path, path) || const DeepCollectionEquality().equals(other.path, path)) && (identical(other.pathInfo, pathInfo) || const DeepCollectionEquality().equals( other.pathInfo, @@ -32356,8 +31315,7 @@ extension $MediaPathDtoExtension on MediaPathDto { class MediaPathInfo { const MediaPathInfo({this.path}); - factory MediaPathInfo.fromJson(Map json) => - _$MediaPathInfoFromJson(json); + factory MediaPathInfo.fromJson(Map json) => _$MediaPathInfoFromJson(json); static const toJsonFactory = _$MediaPathInfoToJson; Map toJson() => _$MediaPathInfoToJson(this); @@ -32370,16 +31328,14 @@ class MediaPathInfo { bool operator ==(Object other) { return identical(this, other) || (other is MediaPathInfo && - (identical(other.path, path) || - const DeepCollectionEquality().equals(other.path, path))); + (identical(other.path, path) || const DeepCollectionEquality().equals(other.path, path))); } @override String toString() => jsonEncode(this); @override - int get hashCode => - const DeepCollectionEquality().hash(path) ^ runtimeType.hashCode; + int get hashCode => const DeepCollectionEquality().hash(path) ^ runtimeType.hashCode; } extension $MediaPathInfoExtension on MediaPathInfo { @@ -32402,8 +31358,7 @@ class MediaSegmentDto { this.endTicks, }); - factory MediaSegmentDto.fromJson(Map json) => - _$MediaSegmentDtoFromJson(json); + factory MediaSegmentDto.fromJson(Map json) => _$MediaSegmentDtoFromJson(json); static const toJsonFactory = _$MediaSegmentDtoToJson; Map toJson() => _$MediaSegmentDtoToJson(this); @@ -32421,7 +31376,8 @@ class MediaSegmentDto { final enums.MediaSegmentType? type; static enums.MediaSegmentType? mediaSegmentTypeTypeNullableFromJson( Object? value, - ) => mediaSegmentTypeNullableFromJson(value, enums.MediaSegmentType.unknown); + ) => + mediaSegmentTypeNullableFromJson(value, enums.MediaSegmentType.unknown); @JsonKey(name: 'StartTicks', includeIfNull: false) final int? startTicks; @@ -32433,12 +31389,9 @@ class MediaSegmentDto { bool operator ==(Object other) { return identical(this, other) || (other is MediaSegmentDto && - (identical(other.id, id) || - const DeepCollectionEquality().equals(other.id, id)) && - (identical(other.itemId, itemId) || - const DeepCollectionEquality().equals(other.itemId, itemId)) && - (identical(other.type, type) || - const DeepCollectionEquality().equals(other.type, type)) && + (identical(other.id, id) || const DeepCollectionEquality().equals(other.id, id)) && + (identical(other.itemId, itemId) || const DeepCollectionEquality().equals(other.itemId, itemId)) && + (identical(other.type, type) || const DeepCollectionEquality().equals(other.type, type)) && (identical(other.startTicks, startTicks) || const DeepCollectionEquality().equals( other.startTicks, @@ -32506,8 +31459,7 @@ class MediaSegmentDtoQueryResult { this.startIndex, }); - factory MediaSegmentDtoQueryResult.fromJson(Map json) => - _$MediaSegmentDtoQueryResultFromJson(json); + factory MediaSegmentDtoQueryResult.fromJson(Map json) => _$MediaSegmentDtoQueryResultFromJson(json); static const toJsonFactory = _$MediaSegmentDtoQueryResultToJson; Map toJson() => _$MediaSegmentDtoQueryResultToJson(this); @@ -32528,8 +31480,7 @@ class MediaSegmentDtoQueryResult { bool operator ==(Object other) { return identical(this, other) || (other is MediaSegmentDtoQueryResult && - (identical(other.items, items) || - const DeepCollectionEquality().equals(other.items, items)) && + (identical(other.items, items) || const DeepCollectionEquality().equals(other.items, items)) && (identical(other.totalRecordCount, totalRecordCount) || const DeepCollectionEquality().equals( other.totalRecordCount, @@ -32573,9 +31524,7 @@ extension $MediaSegmentDtoQueryResultExtension on MediaSegmentDtoQueryResult { }) { return MediaSegmentDtoQueryResult( items: (items != null ? items.value : this.items), - totalRecordCount: (totalRecordCount != null - ? totalRecordCount.value - : this.totalRecordCount), + totalRecordCount: (totalRecordCount != null ? totalRecordCount.value : this.totalRecordCount), startIndex: (startIndex != null ? startIndex.value : this.startIndex), ); } @@ -32631,8 +31580,7 @@ class MediaSourceInfo { this.hasSegments, }); - factory MediaSourceInfo.fromJson(Map json) => - _$MediaSourceInfoFromJson(json); + factory MediaSourceInfo.fromJson(Map json) => _$MediaSourceInfoFromJson(json); static const toJsonFactory = _$MediaSourceInfoToJson; Map toJson() => _$MediaSourceInfoToJson(this); @@ -32790,10 +31738,8 @@ class MediaSourceInfo { other.protocol, protocol, )) && - (identical(other.id, id) || - const DeepCollectionEquality().equals(other.id, id)) && - (identical(other.path, path) || - const DeepCollectionEquality().equals(other.path, path)) && + (identical(other.id, id) || const DeepCollectionEquality().equals(other.id, id)) && + (identical(other.path, path) || const DeepCollectionEquality().equals(other.path, path)) && (identical(other.encoderPath, encoderPath) || const DeepCollectionEquality().equals( other.encoderPath, @@ -32804,24 +31750,20 @@ class MediaSourceInfo { other.encoderProtocol, encoderProtocol, )) && - (identical(other.type, type) || - const DeepCollectionEquality().equals(other.type, type)) && + (identical(other.type, type) || const DeepCollectionEquality().equals(other.type, type)) && (identical(other.container, container) || const DeepCollectionEquality().equals( other.container, container, )) && - (identical(other.size, size) || - const DeepCollectionEquality().equals(other.size, size)) && - (identical(other.name, name) || - const DeepCollectionEquality().equals(other.name, name)) && + (identical(other.size, size) || const DeepCollectionEquality().equals(other.size, size)) && + (identical(other.name, name) || const DeepCollectionEquality().equals(other.name, name)) && (identical(other.isRemote, isRemote) || const DeepCollectionEquality().equals( other.isRemote, isRemote, )) && - (identical(other.eTag, eTag) || - const DeepCollectionEquality().equals(other.eTag, eTag)) && + (identical(other.eTag, eTag) || const DeepCollectionEquality().equals(other.eTag, eTag)) && (identical(other.runTimeTicks, runTimeTicks) || const DeepCollectionEquality().equals( other.runTimeTicks, @@ -33120,8 +32062,7 @@ extension $MediaSourceInfoExtension on MediaSourceInfo { isRemote: isRemote ?? this.isRemote, eTag: eTag ?? this.eTag, runTimeTicks: runTimeTicks ?? this.runTimeTicks, - readAtNativeFramerate: - readAtNativeFramerate ?? this.readAtNativeFramerate, + readAtNativeFramerate: readAtNativeFramerate ?? this.readAtNativeFramerate, ignoreDts: ignoreDts ?? this.ignoreDts, ignoreIndex: ignoreIndex ?? this.ignoreIndex, genPtsInput: genPtsInput ?? this.genPtsInput, @@ -33130,8 +32071,7 @@ extension $MediaSourceInfoExtension on MediaSourceInfo { supportsDirectPlay: supportsDirectPlay ?? this.supportsDirectPlay, isInfiniteStream: isInfiniteStream ?? this.isInfiniteStream, useMostCompatibleTranscodingProfile: - useMostCompatibleTranscodingProfile ?? - this.useMostCompatibleTranscodingProfile, + useMostCompatibleTranscodingProfile ?? this.useMostCompatibleTranscodingProfile, requiresOpening: requiresOpening ?? this.requiresOpening, openToken: openToken ?? this.openToken, requiresClosing: requiresClosing ?? this.requiresClosing, @@ -33146,19 +32086,15 @@ extension $MediaSourceInfoExtension on MediaSourceInfo { mediaAttachments: mediaAttachments ?? this.mediaAttachments, formats: formats ?? this.formats, bitrate: bitrate ?? this.bitrate, - fallbackMaxStreamingBitrate: - fallbackMaxStreamingBitrate ?? this.fallbackMaxStreamingBitrate, + fallbackMaxStreamingBitrate: fallbackMaxStreamingBitrate ?? this.fallbackMaxStreamingBitrate, timestamp: timestamp ?? this.timestamp, requiredHttpHeaders: requiredHttpHeaders ?? this.requiredHttpHeaders, transcodingUrl: transcodingUrl ?? this.transcodingUrl, - transcodingSubProtocol: - transcodingSubProtocol ?? this.transcodingSubProtocol, + transcodingSubProtocol: transcodingSubProtocol ?? this.transcodingSubProtocol, transcodingContainer: transcodingContainer ?? this.transcodingContainer, analyzeDurationMs: analyzeDurationMs ?? this.analyzeDurationMs, - defaultAudioStreamIndex: - defaultAudioStreamIndex ?? this.defaultAudioStreamIndex, - defaultSubtitleStreamIndex: - defaultSubtitleStreamIndex ?? this.defaultSubtitleStreamIndex, + defaultAudioStreamIndex: defaultAudioStreamIndex ?? this.defaultAudioStreamIndex, + defaultSubtitleStreamIndex: defaultSubtitleStreamIndex ?? this.defaultSubtitleStreamIndex, hasSegments: hasSegments ?? this.hasSegments, ); } @@ -33215,95 +32151,52 @@ extension $MediaSourceInfoExtension on MediaSourceInfo { id: (id != null ? id.value : this.id), path: (path != null ? path.value : this.path), encoderPath: (encoderPath != null ? encoderPath.value : this.encoderPath), - encoderProtocol: (encoderProtocol != null - ? encoderProtocol.value - : this.encoderProtocol), + encoderProtocol: (encoderProtocol != null ? encoderProtocol.value : this.encoderProtocol), type: (type != null ? type.value : this.type), container: (container != null ? container.value : this.container), size: (size != null ? size.value : this.size), name: (name != null ? name.value : this.name), isRemote: (isRemote != null ? isRemote.value : this.isRemote), eTag: (eTag != null ? eTag.value : this.eTag), - runTimeTicks: (runTimeTicks != null - ? runTimeTicks.value - : this.runTimeTicks), - readAtNativeFramerate: (readAtNativeFramerate != null - ? readAtNativeFramerate.value - : this.readAtNativeFramerate), + runTimeTicks: (runTimeTicks != null ? runTimeTicks.value : this.runTimeTicks), + readAtNativeFramerate: (readAtNativeFramerate != null ? readAtNativeFramerate.value : this.readAtNativeFramerate), ignoreDts: (ignoreDts != null ? ignoreDts.value : this.ignoreDts), ignoreIndex: (ignoreIndex != null ? ignoreIndex.value : this.ignoreIndex), genPtsInput: (genPtsInput != null ? genPtsInput.value : this.genPtsInput), - supportsTranscoding: (supportsTranscoding != null - ? supportsTranscoding.value - : this.supportsTranscoding), - supportsDirectStream: (supportsDirectStream != null - ? supportsDirectStream.value - : this.supportsDirectStream), - supportsDirectPlay: (supportsDirectPlay != null - ? supportsDirectPlay.value - : this.supportsDirectPlay), - isInfiniteStream: (isInfiniteStream != null - ? isInfiniteStream.value - : this.isInfiniteStream), - useMostCompatibleTranscodingProfile: - (useMostCompatibleTranscodingProfile != null + supportsTranscoding: (supportsTranscoding != null ? supportsTranscoding.value : this.supportsTranscoding), + supportsDirectStream: (supportsDirectStream != null ? supportsDirectStream.value : this.supportsDirectStream), + supportsDirectPlay: (supportsDirectPlay != null ? supportsDirectPlay.value : this.supportsDirectPlay), + isInfiniteStream: (isInfiniteStream != null ? isInfiniteStream.value : this.isInfiniteStream), + useMostCompatibleTranscodingProfile: (useMostCompatibleTranscodingProfile != null ? useMostCompatibleTranscodingProfile.value : this.useMostCompatibleTranscodingProfile), - requiresOpening: (requiresOpening != null - ? requiresOpening.value - : this.requiresOpening), + requiresOpening: (requiresOpening != null ? requiresOpening.value : this.requiresOpening), openToken: (openToken != null ? openToken.value : this.openToken), - requiresClosing: (requiresClosing != null - ? requiresClosing.value - : this.requiresClosing), - liveStreamId: (liveStreamId != null - ? liveStreamId.value - : this.liveStreamId), + requiresClosing: (requiresClosing != null ? requiresClosing.value : this.requiresClosing), + liveStreamId: (liveStreamId != null ? liveStreamId.value : this.liveStreamId), bufferMs: (bufferMs != null ? bufferMs.value : this.bufferMs), - requiresLooping: (requiresLooping != null - ? requiresLooping.value - : this.requiresLooping), - supportsProbing: (supportsProbing != null - ? supportsProbing.value - : this.supportsProbing), + requiresLooping: (requiresLooping != null ? requiresLooping.value : this.requiresLooping), + supportsProbing: (supportsProbing != null ? supportsProbing.value : this.supportsProbing), videoType: (videoType != null ? videoType.value : this.videoType), isoType: (isoType != null ? isoType.value : this.isoType), - video3DFormat: (video3DFormat != null - ? video3DFormat.value - : this.video3DFormat), - mediaStreams: (mediaStreams != null - ? mediaStreams.value - : this.mediaStreams), - mediaAttachments: (mediaAttachments != null - ? mediaAttachments.value - : this.mediaAttachments), + video3DFormat: (video3DFormat != null ? video3DFormat.value : this.video3DFormat), + mediaStreams: (mediaStreams != null ? mediaStreams.value : this.mediaStreams), + mediaAttachments: (mediaAttachments != null ? mediaAttachments.value : this.mediaAttachments), formats: (formats != null ? formats.value : this.formats), bitrate: (bitrate != null ? bitrate.value : this.bitrate), - fallbackMaxStreamingBitrate: (fallbackMaxStreamingBitrate != null - ? fallbackMaxStreamingBitrate.value - : this.fallbackMaxStreamingBitrate), + fallbackMaxStreamingBitrate: + (fallbackMaxStreamingBitrate != null ? fallbackMaxStreamingBitrate.value : this.fallbackMaxStreamingBitrate), timestamp: (timestamp != null ? timestamp.value : this.timestamp), - requiredHttpHeaders: (requiredHttpHeaders != null - ? requiredHttpHeaders.value - : this.requiredHttpHeaders), - transcodingUrl: (transcodingUrl != null - ? transcodingUrl.value - : this.transcodingUrl), - transcodingSubProtocol: (transcodingSubProtocol != null - ? transcodingSubProtocol.value - : this.transcodingSubProtocol), - transcodingContainer: (transcodingContainer != null - ? transcodingContainer.value - : this.transcodingContainer), - analyzeDurationMs: (analyzeDurationMs != null - ? analyzeDurationMs.value - : this.analyzeDurationMs), - defaultAudioStreamIndex: (defaultAudioStreamIndex != null - ? defaultAudioStreamIndex.value - : this.defaultAudioStreamIndex), - defaultSubtitleStreamIndex: (defaultSubtitleStreamIndex != null - ? defaultSubtitleStreamIndex.value - : this.defaultSubtitleStreamIndex), + requiredHttpHeaders: (requiredHttpHeaders != null ? requiredHttpHeaders.value : this.requiredHttpHeaders), + transcodingUrl: (transcodingUrl != null ? transcodingUrl.value : this.transcodingUrl), + transcodingSubProtocol: + (transcodingSubProtocol != null ? transcodingSubProtocol.value : this.transcodingSubProtocol), + transcodingContainer: (transcodingContainer != null ? transcodingContainer.value : this.transcodingContainer), + analyzeDurationMs: (analyzeDurationMs != null ? analyzeDurationMs.value : this.analyzeDurationMs), + defaultAudioStreamIndex: + (defaultAudioStreamIndex != null ? defaultAudioStreamIndex.value : this.defaultAudioStreamIndex), + defaultSubtitleStreamIndex: + (defaultSubtitleStreamIndex != null ? defaultSubtitleStreamIndex.value : this.defaultSubtitleStreamIndex), hasSegments: (hasSegments != null ? hasSegments.value : this.hasSegments), ); } @@ -33378,8 +32271,7 @@ class MediaStream { this.isAnamorphic, }); - factory MediaStream.fromJson(Map json) => - _$MediaStreamFromJson(json); + factory MediaStream.fromJson(Map json) => _$MediaStreamFromJson(json); static const toJsonFactory = _$MediaStreamToJson; Map toJson() => _$MediaStreamToJson(this); @@ -33435,7 +32327,8 @@ class MediaStream { final enums.VideoRange? videoRange; static enums.VideoRange? videoRangeVideoRangeNullableFromJson( Object? value, - ) => videoRangeNullableFromJson(value, enums.VideoRange.unknown); + ) => + videoRangeNullableFromJson(value, enums.VideoRange.unknown); @JsonKey( name: 'VideoRangeType', @@ -33446,7 +32339,8 @@ class MediaStream { final enums.VideoRangeType? videoRangeType; static enums.VideoRangeType? videoRangeTypeVideoRangeTypeNullableFromJson( Object? value, - ) => videoRangeTypeNullableFromJson(value, enums.VideoRangeType.unknown); + ) => + videoRangeTypeNullableFromJson(value, enums.VideoRangeType.unknown); @JsonKey(name: 'VideoDoViTitle', includeIfNull: false) final String? videoDoViTitle; @@ -33457,8 +32351,7 @@ class MediaStream { fromJson: audioSpatialFormatAudioSpatialFormatNullableFromJson, ) final enums.AudioSpatialFormat? audioSpatialFormat; - static enums.AudioSpatialFormat? - audioSpatialFormatAudioSpatialFormatNullableFromJson(Object? value) => + static enums.AudioSpatialFormat? audioSpatialFormatAudioSpatialFormatNullableFromJson(Object? value) => audioSpatialFormatNullableFromJson(value, enums.AudioSpatialFormat.none); @JsonKey(name: 'LocalizedUndefined', includeIfNull: false) @@ -33555,8 +32448,7 @@ class MediaStream { bool operator ==(Object other) { return identical(this, other) || (other is MediaStream && - (identical(other.codec, codec) || - const DeepCollectionEquality().equals(other.codec, codec)) && + (identical(other.codec, codec) || const DeepCollectionEquality().equals(other.codec, codec)) && (identical(other.codecTag, codecTag) || const DeepCollectionEquality().equals( other.codecTag, @@ -33650,8 +32542,7 @@ class MediaStream { other.codecTimeBase, codecTimeBase, )) && - (identical(other.title, title) || - const DeepCollectionEquality().equals(other.title, title)) && + (identical(other.title, title) || const DeepCollectionEquality().equals(other.title, title)) && (identical(other.hdr10PlusPresentFlag, hdr10PlusPresentFlag) || const DeepCollectionEquality().equals( other.hdr10PlusPresentFlag, @@ -33720,8 +32611,7 @@ class MediaStream { other.isInterlaced, isInterlaced, )) && - (identical(other.isAVC, isAVC) || - const DeepCollectionEquality().equals(other.isAVC, isAVC)) && + (identical(other.isAVC, isAVC) || const DeepCollectionEquality().equals(other.isAVC, isAVC)) && (identical(other.channelLayout, channelLayout) || const DeepCollectionEquality().equals( other.channelLayout, @@ -33772,10 +32662,8 @@ class MediaStream { other.isHearingImpaired, isHearingImpaired, )) && - (identical(other.height, height) || - const DeepCollectionEquality().equals(other.height, height)) && - (identical(other.width, width) || - const DeepCollectionEquality().equals(other.width, width)) && + (identical(other.height, height) || const DeepCollectionEquality().equals(other.height, height)) && + (identical(other.width, width) || const DeepCollectionEquality().equals(other.width, width)) && (identical(other.averageFrameRate, averageFrameRate) || const DeepCollectionEquality().equals( other.averageFrameRate, @@ -33796,17 +32684,14 @@ class MediaStream { other.profile, profile, )) && - (identical(other.type, type) || - const DeepCollectionEquality().equals(other.type, type)) && + (identical(other.type, type) || const DeepCollectionEquality().equals(other.type, type)) && (identical(other.aspectRatio, aspectRatio) || const DeepCollectionEquality().equals( other.aspectRatio, aspectRatio, )) && - (identical(other.index, index) || - const DeepCollectionEquality().equals(other.index, index)) && - (identical(other.score, score) || - const DeepCollectionEquality().equals(other.score, score)) && + (identical(other.index, index) || const DeepCollectionEquality().equals(other.index, index)) && + (identical(other.score, score) || const DeepCollectionEquality().equals(other.score, score)) && (identical(other.isExternal, isExternal) || const DeepCollectionEquality().equals( other.isExternal, @@ -33837,15 +32722,13 @@ class MediaStream { other.supportsExternalStream, supportsExternalStream, )) && - (identical(other.path, path) || - const DeepCollectionEquality().equals(other.path, path)) && + (identical(other.path, path) || const DeepCollectionEquality().equals(other.path, path)) && (identical(other.pixelFormat, pixelFormat) || const DeepCollectionEquality().equals( other.pixelFormat, pixelFormat, )) && - (identical(other.level, level) || - const DeepCollectionEquality().equals(other.level, level)) && + (identical(other.level, level) || const DeepCollectionEquality().equals(other.level, level)) && (identical(other.isAnamorphic, isAnamorphic) || const DeepCollectionEquality().equals( other.isAnamorphic, @@ -34007,8 +32890,7 @@ extension $MediaStreamExtension on MediaStream { rpuPresentFlag: rpuPresentFlag ?? this.rpuPresentFlag, elPresentFlag: elPresentFlag ?? this.elPresentFlag, blPresentFlag: blPresentFlag ?? this.blPresentFlag, - dvBlSignalCompatibilityId: - dvBlSignalCompatibilityId ?? this.dvBlSignalCompatibilityId, + dvBlSignalCompatibilityId: dvBlSignalCompatibilityId ?? this.dvBlSignalCompatibilityId, rotation: rotation ?? this.rotation, comment: comment ?? this.comment, timeBase: timeBase ?? this.timeBase, @@ -34023,8 +32905,7 @@ extension $MediaStreamExtension on MediaStream { localizedDefault: localizedDefault ?? this.localizedDefault, localizedForced: localizedForced ?? this.localizedForced, localizedExternal: localizedExternal ?? this.localizedExternal, - localizedHearingImpaired: - localizedHearingImpaired ?? this.localizedHearingImpaired, + localizedHearingImpaired: localizedHearingImpaired ?? this.localizedHearingImpaired, displayTitle: displayTitle ?? this.displayTitle, nalLengthSize: nalLengthSize ?? this.nalLengthSize, isInterlaced: isInterlaced ?? this.isInterlaced, @@ -34054,8 +32935,7 @@ extension $MediaStreamExtension on MediaStream { deliveryUrl: deliveryUrl ?? this.deliveryUrl, isExternalUrl: isExternalUrl ?? this.isExternalUrl, isTextSubtitleStream: isTextSubtitleStream ?? this.isTextSubtitleStream, - supportsExternalStream: - supportsExternalStream ?? this.supportsExternalStream, + supportsExternalStream: supportsExternalStream ?? this.supportsExternalStream, path: path ?? this.path, pixelFormat: pixelFormat ?? this.pixelFormat, level: level ?? this.level, @@ -34135,129 +33015,68 @@ extension $MediaStreamExtension on MediaStream { language: (language != null ? language.value : this.language), colorRange: (colorRange != null ? colorRange.value : this.colorRange), colorSpace: (colorSpace != null ? colorSpace.value : this.colorSpace), - colorTransfer: (colorTransfer != null - ? colorTransfer.value - : this.colorTransfer), - colorPrimaries: (colorPrimaries != null - ? colorPrimaries.value - : this.colorPrimaries), - dvVersionMajor: (dvVersionMajor != null - ? dvVersionMajor.value - : this.dvVersionMajor), - dvVersionMinor: (dvVersionMinor != null - ? dvVersionMinor.value - : this.dvVersionMinor), + colorTransfer: (colorTransfer != null ? colorTransfer.value : this.colorTransfer), + colorPrimaries: (colorPrimaries != null ? colorPrimaries.value : this.colorPrimaries), + dvVersionMajor: (dvVersionMajor != null ? dvVersionMajor.value : this.dvVersionMajor), + dvVersionMinor: (dvVersionMinor != null ? dvVersionMinor.value : this.dvVersionMinor), dvProfile: (dvProfile != null ? dvProfile.value : this.dvProfile), dvLevel: (dvLevel != null ? dvLevel.value : this.dvLevel), - rpuPresentFlag: (rpuPresentFlag != null - ? rpuPresentFlag.value - : this.rpuPresentFlag), - elPresentFlag: (elPresentFlag != null - ? elPresentFlag.value - : this.elPresentFlag), - blPresentFlag: (blPresentFlag != null - ? blPresentFlag.value - : this.blPresentFlag), - dvBlSignalCompatibilityId: (dvBlSignalCompatibilityId != null - ? dvBlSignalCompatibilityId.value - : this.dvBlSignalCompatibilityId), + rpuPresentFlag: (rpuPresentFlag != null ? rpuPresentFlag.value : this.rpuPresentFlag), + elPresentFlag: (elPresentFlag != null ? elPresentFlag.value : this.elPresentFlag), + blPresentFlag: (blPresentFlag != null ? blPresentFlag.value : this.blPresentFlag), + dvBlSignalCompatibilityId: + (dvBlSignalCompatibilityId != null ? dvBlSignalCompatibilityId.value : this.dvBlSignalCompatibilityId), rotation: (rotation != null ? rotation.value : this.rotation), comment: (comment != null ? comment.value : this.comment), timeBase: (timeBase != null ? timeBase.value : this.timeBase), - codecTimeBase: (codecTimeBase != null - ? codecTimeBase.value - : this.codecTimeBase), + codecTimeBase: (codecTimeBase != null ? codecTimeBase.value : this.codecTimeBase), title: (title != null ? title.value : this.title), - hdr10PlusPresentFlag: (hdr10PlusPresentFlag != null - ? hdr10PlusPresentFlag.value - : this.hdr10PlusPresentFlag), + hdr10PlusPresentFlag: (hdr10PlusPresentFlag != null ? hdr10PlusPresentFlag.value : this.hdr10PlusPresentFlag), videoRange: (videoRange != null ? videoRange.value : this.videoRange), - videoRangeType: (videoRangeType != null - ? videoRangeType.value - : this.videoRangeType), - videoDoViTitle: (videoDoViTitle != null - ? videoDoViTitle.value - : this.videoDoViTitle), - audioSpatialFormat: (audioSpatialFormat != null - ? audioSpatialFormat.value - : this.audioSpatialFormat), - localizedUndefined: (localizedUndefined != null - ? localizedUndefined.value - : this.localizedUndefined), - localizedDefault: (localizedDefault != null - ? localizedDefault.value - : this.localizedDefault), - localizedForced: (localizedForced != null - ? localizedForced.value - : this.localizedForced), - localizedExternal: (localizedExternal != null - ? localizedExternal.value - : this.localizedExternal), - localizedHearingImpaired: (localizedHearingImpaired != null - ? localizedHearingImpaired.value - : this.localizedHearingImpaired), - displayTitle: (displayTitle != null - ? displayTitle.value - : this.displayTitle), - nalLengthSize: (nalLengthSize != null - ? nalLengthSize.value - : this.nalLengthSize), - isInterlaced: (isInterlaced != null - ? isInterlaced.value - : this.isInterlaced), + videoRangeType: (videoRangeType != null ? videoRangeType.value : this.videoRangeType), + videoDoViTitle: (videoDoViTitle != null ? videoDoViTitle.value : this.videoDoViTitle), + audioSpatialFormat: (audioSpatialFormat != null ? audioSpatialFormat.value : this.audioSpatialFormat), + localizedUndefined: (localizedUndefined != null ? localizedUndefined.value : this.localizedUndefined), + localizedDefault: (localizedDefault != null ? localizedDefault.value : this.localizedDefault), + localizedForced: (localizedForced != null ? localizedForced.value : this.localizedForced), + localizedExternal: (localizedExternal != null ? localizedExternal.value : this.localizedExternal), + localizedHearingImpaired: + (localizedHearingImpaired != null ? localizedHearingImpaired.value : this.localizedHearingImpaired), + displayTitle: (displayTitle != null ? displayTitle.value : this.displayTitle), + nalLengthSize: (nalLengthSize != null ? nalLengthSize.value : this.nalLengthSize), + isInterlaced: (isInterlaced != null ? isInterlaced.value : this.isInterlaced), isAVC: (isAVC != null ? isAVC.value : this.isAVC), - channelLayout: (channelLayout != null - ? channelLayout.value - : this.channelLayout), + channelLayout: (channelLayout != null ? channelLayout.value : this.channelLayout), bitRate: (bitRate != null ? bitRate.value : this.bitRate), bitDepth: (bitDepth != null ? bitDepth.value : this.bitDepth), refFrames: (refFrames != null ? refFrames.value : this.refFrames), - packetLength: (packetLength != null - ? packetLength.value - : this.packetLength), + packetLength: (packetLength != null ? packetLength.value : this.packetLength), channels: (channels != null ? channels.value : this.channels), sampleRate: (sampleRate != null ? sampleRate.value : this.sampleRate), isDefault: (isDefault != null ? isDefault.value : this.isDefault), isForced: (isForced != null ? isForced.value : this.isForced), - isHearingImpaired: (isHearingImpaired != null - ? isHearingImpaired.value - : this.isHearingImpaired), + isHearingImpaired: (isHearingImpaired != null ? isHearingImpaired.value : this.isHearingImpaired), height: (height != null ? height.value : this.height), width: (width != null ? width.value : this.width), - averageFrameRate: (averageFrameRate != null - ? averageFrameRate.value - : this.averageFrameRate), - realFrameRate: (realFrameRate != null - ? realFrameRate.value - : this.realFrameRate), - referenceFrameRate: (referenceFrameRate != null - ? referenceFrameRate.value - : this.referenceFrameRate), + averageFrameRate: (averageFrameRate != null ? averageFrameRate.value : this.averageFrameRate), + realFrameRate: (realFrameRate != null ? realFrameRate.value : this.realFrameRate), + referenceFrameRate: (referenceFrameRate != null ? referenceFrameRate.value : this.referenceFrameRate), profile: (profile != null ? profile.value : this.profile), type: (type != null ? type.value : this.type), aspectRatio: (aspectRatio != null ? aspectRatio.value : this.aspectRatio), index: (index != null ? index.value : this.index), score: (score != null ? score.value : this.score), isExternal: (isExternal != null ? isExternal.value : this.isExternal), - deliveryMethod: (deliveryMethod != null - ? deliveryMethod.value - : this.deliveryMethod), + deliveryMethod: (deliveryMethod != null ? deliveryMethod.value : this.deliveryMethod), deliveryUrl: (deliveryUrl != null ? deliveryUrl.value : this.deliveryUrl), - isExternalUrl: (isExternalUrl != null - ? isExternalUrl.value - : this.isExternalUrl), - isTextSubtitleStream: (isTextSubtitleStream != null - ? isTextSubtitleStream.value - : this.isTextSubtitleStream), - supportsExternalStream: (supportsExternalStream != null - ? supportsExternalStream.value - : this.supportsExternalStream), + isExternalUrl: (isExternalUrl != null ? isExternalUrl.value : this.isExternalUrl), + isTextSubtitleStream: (isTextSubtitleStream != null ? isTextSubtitleStream.value : this.isTextSubtitleStream), + supportsExternalStream: + (supportsExternalStream != null ? supportsExternalStream.value : this.supportsExternalStream), path: (path != null ? path.value : this.path), pixelFormat: (pixelFormat != null ? pixelFormat.value : this.pixelFormat), level: (level != null ? level.value : this.level), - isAnamorphic: (isAnamorphic != null - ? isAnamorphic.value - : this.isAnamorphic), + isAnamorphic: (isAnamorphic != null ? isAnamorphic.value : this.isAnamorphic), ); } } @@ -34266,8 +33085,7 @@ extension $MediaStreamExtension on MediaStream { class MediaUpdateInfoDto { const MediaUpdateInfoDto({this.updates}); - factory MediaUpdateInfoDto.fromJson(Map json) => - _$MediaUpdateInfoDtoFromJson(json); + factory MediaUpdateInfoDto.fromJson(Map json) => _$MediaUpdateInfoDtoFromJson(json); static const toJsonFactory = _$MediaUpdateInfoDtoToJson; Map toJson() => _$MediaUpdateInfoDtoToJson(this); @@ -34284,16 +33102,14 @@ class MediaUpdateInfoDto { bool operator ==(Object other) { return identical(this, other) || (other is MediaUpdateInfoDto && - (identical(other.updates, updates) || - const DeepCollectionEquality().equals(other.updates, updates))); + (identical(other.updates, updates) || const DeepCollectionEquality().equals(other.updates, updates))); } @override String toString() => jsonEncode(this); @override - int get hashCode => - const DeepCollectionEquality().hash(updates) ^ runtimeType.hashCode; + int get hashCode => const DeepCollectionEquality().hash(updates) ^ runtimeType.hashCode; } extension $MediaUpdateInfoDtoExtension on MediaUpdateInfoDto { @@ -34314,8 +33130,7 @@ extension $MediaUpdateInfoDtoExtension on MediaUpdateInfoDto { class MediaUpdateInfoPathDto { const MediaUpdateInfoPathDto({this.path, this.updateType}); - factory MediaUpdateInfoPathDto.fromJson(Map json) => - _$MediaUpdateInfoPathDtoFromJson(json); + factory MediaUpdateInfoPathDto.fromJson(Map json) => _$MediaUpdateInfoPathDtoFromJson(json); static const toJsonFactory = _$MediaUpdateInfoPathDtoToJson; Map toJson() => _$MediaUpdateInfoPathDtoToJson(this); @@ -34330,8 +33145,7 @@ class MediaUpdateInfoPathDto { bool operator ==(Object other) { return identical(this, other) || (other is MediaUpdateInfoPathDto && - (identical(other.path, path) || - const DeepCollectionEquality().equals(other.path, path)) && + (identical(other.path, path) || const DeepCollectionEquality().equals(other.path, path)) && (identical(other.updateType, updateType) || const DeepCollectionEquality().equals( other.updateType, @@ -34372,8 +33186,7 @@ extension $MediaUpdateInfoPathDtoExtension on MediaUpdateInfoPathDto { class MediaUrl { const MediaUrl({this.url, this.name}); - factory MediaUrl.fromJson(Map json) => - _$MediaUrlFromJson(json); + factory MediaUrl.fromJson(Map json) => _$MediaUrlFromJson(json); static const toJsonFactory = _$MediaUrlToJson; Map toJson() => _$MediaUrlToJson(this); @@ -34388,10 +33201,8 @@ class MediaUrl { bool operator ==(Object other) { return identical(this, other) || (other is MediaUrl && - (identical(other.url, url) || - const DeepCollectionEquality().equals(other.url, url)) && - (identical(other.name, name) || - const DeepCollectionEquality().equals(other.name, name))); + (identical(other.url, url) || const DeepCollectionEquality().equals(other.url, url)) && + (identical(other.name, name) || const DeepCollectionEquality().equals(other.name, name))); } @override @@ -34399,9 +33210,7 @@ class MediaUrl { @override int get hashCode => - const DeepCollectionEquality().hash(url) ^ - const DeepCollectionEquality().hash(name) ^ - runtimeType.hashCode; + const DeepCollectionEquality().hash(url) ^ const DeepCollectionEquality().hash(name) ^ runtimeType.hashCode; } extension $MediaUrlExtension on MediaUrl { @@ -34421,8 +33230,7 @@ extension $MediaUrlExtension on MediaUrl { class MessageCommand { const MessageCommand({this.header, required this.text, this.timeoutMs}); - factory MessageCommand.fromJson(Map json) => - _$MessageCommandFromJson(json); + factory MessageCommand.fromJson(Map json) => _$MessageCommandFromJson(json); static const toJsonFactory = _$MessageCommandToJson; Map toJson() => _$MessageCommandToJson(this); @@ -34439,10 +33247,8 @@ class MessageCommand { bool operator ==(Object other) { return identical(this, other) || (other is MessageCommand && - (identical(other.header, header) || - const DeepCollectionEquality().equals(other.header, header)) && - (identical(other.text, text) || - const DeepCollectionEquality().equals(other.text, text)) && + (identical(other.header, header) || const DeepCollectionEquality().equals(other.header, header)) && + (identical(other.text, text) || const DeepCollectionEquality().equals(other.text, text)) && (identical(other.timeoutMs, timeoutMs) || const DeepCollectionEquality().equals( other.timeoutMs, @@ -34487,8 +33293,7 @@ extension $MessageCommandExtension on MessageCommand { class MetadataConfiguration { const MetadataConfiguration({this.useFileCreationTimeForDateAdded}); - factory MetadataConfiguration.fromJson(Map json) => - _$MetadataConfigurationFromJson(json); + factory MetadataConfiguration.fromJson(Map json) => _$MetadataConfigurationFromJson(json); static const toJsonFactory = _$MetadataConfigurationToJson; Map toJson() => _$MetadataConfigurationToJson(this); @@ -34515,17 +33320,13 @@ class MetadataConfiguration { String toString() => jsonEncode(this); @override - int get hashCode => - const DeepCollectionEquality().hash(useFileCreationTimeForDateAdded) ^ - runtimeType.hashCode; + int get hashCode => const DeepCollectionEquality().hash(useFileCreationTimeForDateAdded) ^ runtimeType.hashCode; } extension $MetadataConfigurationExtension on MetadataConfiguration { MetadataConfiguration copyWith({bool? useFileCreationTimeForDateAdded}) { return MetadataConfiguration( - useFileCreationTimeForDateAdded: - useFileCreationTimeForDateAdded ?? - this.useFileCreationTimeForDateAdded, + useFileCreationTimeForDateAdded: useFileCreationTimeForDateAdded ?? this.useFileCreationTimeForDateAdded, ); } @@ -34551,8 +33352,7 @@ class MetadataEditorInfo { this.contentTypeOptions, }); - factory MetadataEditorInfo.fromJson(Map json) => - _$MetadataEditorInfoFromJson(json); + factory MetadataEditorInfo.fromJson(Map json) => _$MetadataEditorInfoFromJson(json); static const toJsonFactory = _$MetadataEditorInfoToJson; Map toJson() => _$MetadataEditorInfoToJson(this); @@ -34652,8 +33452,7 @@ extension $MetadataEditorInfoExtension on MetadataEditorInfo { List? contentTypeOptions, }) { return MetadataEditorInfo( - parentalRatingOptions: - parentalRatingOptions ?? this.parentalRatingOptions, + parentalRatingOptions: parentalRatingOptions ?? this.parentalRatingOptions, countries: countries ?? this.countries, cultures: cultures ?? this.cultures, externalIdInfos: externalIdInfos ?? this.externalIdInfos, @@ -34671,18 +33470,12 @@ extension $MetadataEditorInfoExtension on MetadataEditorInfo { Wrapped?>? contentTypeOptions, }) { return MetadataEditorInfo( - parentalRatingOptions: (parentalRatingOptions != null - ? parentalRatingOptions.value - : this.parentalRatingOptions), + parentalRatingOptions: (parentalRatingOptions != null ? parentalRatingOptions.value : this.parentalRatingOptions), countries: (countries != null ? countries.value : this.countries), cultures: (cultures != null ? cultures.value : this.cultures), - externalIdInfos: (externalIdInfos != null - ? externalIdInfos.value - : this.externalIdInfos), + externalIdInfos: (externalIdInfos != null ? externalIdInfos.value : this.externalIdInfos), contentType: (contentType != null ? contentType.value : this.contentType), - contentTypeOptions: (contentTypeOptions != null - ? contentTypeOptions.value - : this.contentTypeOptions), + contentTypeOptions: (contentTypeOptions != null ? contentTypeOptions.value : this.contentTypeOptions), ); } } @@ -34699,8 +33492,7 @@ class MetadataOptions { this.imageFetcherOrder, }); - factory MetadataOptions.fromJson(Map json) => - _$MetadataOptionsFromJson(json); + factory MetadataOptions.fromJson(Map json) => _$MetadataOptionsFromJson(json); static const toJsonFactory = _$MetadataOptionsToJson; Map toJson() => _$MetadataOptionsToJson(this); @@ -34819,15 +33611,11 @@ extension $MetadataOptionsExtension on MetadataOptions { }) { return MetadataOptions( itemType: itemType ?? this.itemType, - disabledMetadataSavers: - disabledMetadataSavers ?? this.disabledMetadataSavers, - localMetadataReaderOrder: - localMetadataReaderOrder ?? this.localMetadataReaderOrder, - disabledMetadataFetchers: - disabledMetadataFetchers ?? this.disabledMetadataFetchers, + disabledMetadataSavers: disabledMetadataSavers ?? this.disabledMetadataSavers, + localMetadataReaderOrder: localMetadataReaderOrder ?? this.localMetadataReaderOrder, + disabledMetadataFetchers: disabledMetadataFetchers ?? this.disabledMetadataFetchers, metadataFetcherOrder: metadataFetcherOrder ?? this.metadataFetcherOrder, - disabledImageFetchers: - disabledImageFetchers ?? this.disabledImageFetchers, + disabledImageFetchers: disabledImageFetchers ?? this.disabledImageFetchers, imageFetcherOrder: imageFetcherOrder ?? this.imageFetcherOrder, ); } @@ -34843,24 +33631,15 @@ extension $MetadataOptionsExtension on MetadataOptions { }) { return MetadataOptions( itemType: (itemType != null ? itemType.value : this.itemType), - disabledMetadataSavers: (disabledMetadataSavers != null - ? disabledMetadataSavers.value - : this.disabledMetadataSavers), - localMetadataReaderOrder: (localMetadataReaderOrder != null - ? localMetadataReaderOrder.value - : this.localMetadataReaderOrder), - disabledMetadataFetchers: (disabledMetadataFetchers != null - ? disabledMetadataFetchers.value - : this.disabledMetadataFetchers), - metadataFetcherOrder: (metadataFetcherOrder != null - ? metadataFetcherOrder.value - : this.metadataFetcherOrder), - disabledImageFetchers: (disabledImageFetchers != null - ? disabledImageFetchers.value - : this.disabledImageFetchers), - imageFetcherOrder: (imageFetcherOrder != null - ? imageFetcherOrder.value - : this.imageFetcherOrder), + disabledMetadataSavers: + (disabledMetadataSavers != null ? disabledMetadataSavers.value : this.disabledMetadataSavers), + localMetadataReaderOrder: + (localMetadataReaderOrder != null ? localMetadataReaderOrder.value : this.localMetadataReaderOrder), + disabledMetadataFetchers: + (disabledMetadataFetchers != null ? disabledMetadataFetchers.value : this.disabledMetadataFetchers), + metadataFetcherOrder: (metadataFetcherOrder != null ? metadataFetcherOrder.value : this.metadataFetcherOrder), + disabledImageFetchers: (disabledImageFetchers != null ? disabledImageFetchers.value : this.disabledImageFetchers), + imageFetcherOrder: (imageFetcherOrder != null ? imageFetcherOrder.value : this.imageFetcherOrder), ); } } @@ -34869,8 +33648,7 @@ extension $MetadataOptionsExtension on MetadataOptions { class MovePlaylistItemRequestDto { const MovePlaylistItemRequestDto({this.playlistItemId, this.newIndex}); - factory MovePlaylistItemRequestDto.fromJson(Map json) => - _$MovePlaylistItemRequestDtoFromJson(json); + factory MovePlaylistItemRequestDto.fromJson(Map json) => _$MovePlaylistItemRequestDtoFromJson(json); static const toJsonFactory = _$MovePlaylistItemRequestDtoToJson; Map toJson() => _$MovePlaylistItemRequestDtoToJson(this); @@ -34920,9 +33698,7 @@ extension $MovePlaylistItemRequestDtoExtension on MovePlaylistItemRequestDto { Wrapped? newIndex, }) { return MovePlaylistItemRequestDto( - playlistItemId: (playlistItemId != null - ? playlistItemId.value - : this.playlistItemId), + playlistItemId: (playlistItemId != null ? playlistItemId.value : this.playlistItemId), newIndex: (newIndex != null ? newIndex.value : this.newIndex), ); } @@ -34944,8 +33720,7 @@ class MovieInfo { this.isAutomated, }); - factory MovieInfo.fromJson(Map json) => - _$MovieInfoFromJson(json); + factory MovieInfo.fromJson(Map json) => _$MovieInfoFromJson(json); static const toJsonFactory = _$MovieInfoToJson; Map toJson() => _$MovieInfoToJson(this); @@ -34978,15 +33753,13 @@ class MovieInfo { bool operator ==(Object other) { return identical(this, other) || (other is MovieInfo && - (identical(other.name, name) || - const DeepCollectionEquality().equals(other.name, name)) && + (identical(other.name, name) || const DeepCollectionEquality().equals(other.name, name)) && (identical(other.originalTitle, originalTitle) || const DeepCollectionEquality().equals( other.originalTitle, originalTitle, )) && - (identical(other.path, path) || - const DeepCollectionEquality().equals(other.path, path)) && + (identical(other.path, path) || const DeepCollectionEquality().equals(other.path, path)) && (identical(other.metadataLanguage, metadataLanguage) || const DeepCollectionEquality().equals( other.metadataLanguage, @@ -35002,8 +33775,7 @@ class MovieInfo { other.providerIds, providerIds, )) && - (identical(other.year, year) || - const DeepCollectionEquality().equals(other.year, year)) && + (identical(other.year, year) || const DeepCollectionEquality().equals(other.year, year)) && (identical(other.indexNumber, indexNumber) || const DeepCollectionEquality().equals( other.indexNumber, @@ -35089,25 +33861,15 @@ extension $MovieInfoExtension on MovieInfo { }) { return MovieInfo( name: (name != null ? name.value : this.name), - originalTitle: (originalTitle != null - ? originalTitle.value - : this.originalTitle), + originalTitle: (originalTitle != null ? originalTitle.value : this.originalTitle), path: (path != null ? path.value : this.path), - metadataLanguage: (metadataLanguage != null - ? metadataLanguage.value - : this.metadataLanguage), - metadataCountryCode: (metadataCountryCode != null - ? metadataCountryCode.value - : this.metadataCountryCode), + metadataLanguage: (metadataLanguage != null ? metadataLanguage.value : this.metadataLanguage), + metadataCountryCode: (metadataCountryCode != null ? metadataCountryCode.value : this.metadataCountryCode), providerIds: (providerIds != null ? providerIds.value : this.providerIds), year: (year != null ? year.value : this.year), indexNumber: (indexNumber != null ? indexNumber.value : this.indexNumber), - parentIndexNumber: (parentIndexNumber != null - ? parentIndexNumber.value - : this.parentIndexNumber), - premiereDate: (premiereDate != null - ? premiereDate.value - : this.premiereDate), + parentIndexNumber: (parentIndexNumber != null ? parentIndexNumber.value : this.parentIndexNumber), + premiereDate: (premiereDate != null ? premiereDate.value : this.premiereDate), isAutomated: (isAutomated != null ? isAutomated.value : this.isAutomated), ); } @@ -35122,8 +33884,7 @@ class MovieInfoRemoteSearchQuery { this.includeDisabledProviders, }); - factory MovieInfoRemoteSearchQuery.fromJson(Map json) => - _$MovieInfoRemoteSearchQueryFromJson(json); + factory MovieInfoRemoteSearchQuery.fromJson(Map json) => _$MovieInfoRemoteSearchQueryFromJson(json); static const toJsonFactory = _$MovieInfoRemoteSearchQueryToJson; Map toJson() => _$MovieInfoRemoteSearchQueryToJson(this); @@ -35147,8 +33908,7 @@ class MovieInfoRemoteSearchQuery { other.searchInfo, searchInfo, )) && - (identical(other.itemId, itemId) || - const DeepCollectionEquality().equals(other.itemId, itemId)) && + (identical(other.itemId, itemId) || const DeepCollectionEquality().equals(other.itemId, itemId)) && (identical(other.searchProviderName, searchProviderName) || const DeepCollectionEquality().equals( other.searchProviderName, @@ -35187,8 +33947,7 @@ extension $MovieInfoRemoteSearchQueryExtension on MovieInfoRemoteSearchQuery { searchInfo: searchInfo ?? this.searchInfo, itemId: itemId ?? this.itemId, searchProviderName: searchProviderName ?? this.searchProviderName, - includeDisabledProviders: - includeDisabledProviders ?? this.includeDisabledProviders, + includeDisabledProviders: includeDisabledProviders ?? this.includeDisabledProviders, ); } @@ -35201,12 +33960,9 @@ extension $MovieInfoRemoteSearchQueryExtension on MovieInfoRemoteSearchQuery { return MovieInfoRemoteSearchQuery( searchInfo: (searchInfo != null ? searchInfo.value : this.searchInfo), itemId: (itemId != null ? itemId.value : this.itemId), - searchProviderName: (searchProviderName != null - ? searchProviderName.value - : this.searchProviderName), - includeDisabledProviders: (includeDisabledProviders != null - ? includeDisabledProviders.value - : this.includeDisabledProviders), + searchProviderName: (searchProviderName != null ? searchProviderName.value : this.searchProviderName), + includeDisabledProviders: + (includeDisabledProviders != null ? includeDisabledProviders.value : this.includeDisabledProviders), ); } } @@ -35228,8 +33984,7 @@ class MusicVideoInfo { this.artists, }); - factory MusicVideoInfo.fromJson(Map json) => - _$MusicVideoInfoFromJson(json); + factory MusicVideoInfo.fromJson(Map json) => _$MusicVideoInfoFromJson(json); static const toJsonFactory = _$MusicVideoInfoToJson; Map toJson() => _$MusicVideoInfoToJson(this); @@ -35264,15 +34019,13 @@ class MusicVideoInfo { bool operator ==(Object other) { return identical(this, other) || (other is MusicVideoInfo && - (identical(other.name, name) || - const DeepCollectionEquality().equals(other.name, name)) && + (identical(other.name, name) || const DeepCollectionEquality().equals(other.name, name)) && (identical(other.originalTitle, originalTitle) || const DeepCollectionEquality().equals( other.originalTitle, originalTitle, )) && - (identical(other.path, path) || - const DeepCollectionEquality().equals(other.path, path)) && + (identical(other.path, path) || const DeepCollectionEquality().equals(other.path, path)) && (identical(other.metadataLanguage, metadataLanguage) || const DeepCollectionEquality().equals( other.metadataLanguage, @@ -35288,8 +34041,7 @@ class MusicVideoInfo { other.providerIds, providerIds, )) && - (identical(other.year, year) || - const DeepCollectionEquality().equals(other.year, year)) && + (identical(other.year, year) || const DeepCollectionEquality().equals(other.year, year)) && (identical(other.indexNumber, indexNumber) || const DeepCollectionEquality().equals( other.indexNumber, @@ -35310,8 +34062,7 @@ class MusicVideoInfo { other.isAutomated, isAutomated, )) && - (identical(other.artists, artists) || - const DeepCollectionEquality().equals(other.artists, artists))); + (identical(other.artists, artists) || const DeepCollectionEquality().equals(other.artists, artists))); } @override @@ -35381,25 +34132,15 @@ extension $MusicVideoInfoExtension on MusicVideoInfo { }) { return MusicVideoInfo( name: (name != null ? name.value : this.name), - originalTitle: (originalTitle != null - ? originalTitle.value - : this.originalTitle), + originalTitle: (originalTitle != null ? originalTitle.value : this.originalTitle), path: (path != null ? path.value : this.path), - metadataLanguage: (metadataLanguage != null - ? metadataLanguage.value - : this.metadataLanguage), - metadataCountryCode: (metadataCountryCode != null - ? metadataCountryCode.value - : this.metadataCountryCode), + metadataLanguage: (metadataLanguage != null ? metadataLanguage.value : this.metadataLanguage), + metadataCountryCode: (metadataCountryCode != null ? metadataCountryCode.value : this.metadataCountryCode), providerIds: (providerIds != null ? providerIds.value : this.providerIds), year: (year != null ? year.value : this.year), indexNumber: (indexNumber != null ? indexNumber.value : this.indexNumber), - parentIndexNumber: (parentIndexNumber != null - ? parentIndexNumber.value - : this.parentIndexNumber), - premiereDate: (premiereDate != null - ? premiereDate.value - : this.premiereDate), + parentIndexNumber: (parentIndexNumber != null ? parentIndexNumber.value : this.parentIndexNumber), + premiereDate: (premiereDate != null ? premiereDate.value : this.premiereDate), isAutomated: (isAutomated != null ? isAutomated.value : this.isAutomated), artists: (artists != null ? artists.value : this.artists), ); @@ -35419,8 +34160,7 @@ class MusicVideoInfoRemoteSearchQuery { _$MusicVideoInfoRemoteSearchQueryFromJson(json); static const toJsonFactory = _$MusicVideoInfoRemoteSearchQueryToJson; - Map toJson() => - _$MusicVideoInfoRemoteSearchQueryToJson(this); + Map toJson() => _$MusicVideoInfoRemoteSearchQueryToJson(this); @JsonKey(name: 'SearchInfo', includeIfNull: false) final MusicVideoInfo? searchInfo; @@ -35441,8 +34181,7 @@ class MusicVideoInfoRemoteSearchQuery { other.searchInfo, searchInfo, )) && - (identical(other.itemId, itemId) || - const DeepCollectionEquality().equals(other.itemId, itemId)) && + (identical(other.itemId, itemId) || const DeepCollectionEquality().equals(other.itemId, itemId)) && (identical(other.searchProviderName, searchProviderName) || const DeepCollectionEquality().equals( other.searchProviderName, @@ -35470,8 +34209,7 @@ class MusicVideoInfoRemoteSearchQuery { runtimeType.hashCode; } -extension $MusicVideoInfoRemoteSearchQueryExtension - on MusicVideoInfoRemoteSearchQuery { +extension $MusicVideoInfoRemoteSearchQueryExtension on MusicVideoInfoRemoteSearchQuery { MusicVideoInfoRemoteSearchQuery copyWith({ MusicVideoInfo? searchInfo, String? itemId, @@ -35482,8 +34220,7 @@ extension $MusicVideoInfoRemoteSearchQueryExtension searchInfo: searchInfo ?? this.searchInfo, itemId: itemId ?? this.itemId, searchProviderName: searchProviderName ?? this.searchProviderName, - includeDisabledProviders: - includeDisabledProviders ?? this.includeDisabledProviders, + includeDisabledProviders: includeDisabledProviders ?? this.includeDisabledProviders, ); } @@ -35496,12 +34233,9 @@ extension $MusicVideoInfoRemoteSearchQueryExtension return MusicVideoInfoRemoteSearchQuery( searchInfo: (searchInfo != null ? searchInfo.value : this.searchInfo), itemId: (itemId != null ? itemId.value : this.itemId), - searchProviderName: (searchProviderName != null - ? searchProviderName.value - : this.searchProviderName), - includeDisabledProviders: (includeDisabledProviders != null - ? includeDisabledProviders.value - : this.includeDisabledProviders), + searchProviderName: (searchProviderName != null ? searchProviderName.value : this.searchProviderName), + includeDisabledProviders: + (includeDisabledProviders != null ? includeDisabledProviders.value : this.includeDisabledProviders), ); } } @@ -35510,8 +34244,7 @@ extension $MusicVideoInfoRemoteSearchQueryExtension class NameGuidPair { const NameGuidPair({this.name, this.id}); - factory NameGuidPair.fromJson(Map json) => - _$NameGuidPairFromJson(json); + factory NameGuidPair.fromJson(Map json) => _$NameGuidPairFromJson(json); static const toJsonFactory = _$NameGuidPairToJson; Map toJson() => _$NameGuidPairToJson(this); @@ -35526,10 +34259,8 @@ class NameGuidPair { bool operator ==(Object other) { return identical(this, other) || (other is NameGuidPair && - (identical(other.name, name) || - const DeepCollectionEquality().equals(other.name, name)) && - (identical(other.id, id) || - const DeepCollectionEquality().equals(other.id, id))); + (identical(other.name, name) || const DeepCollectionEquality().equals(other.name, name)) && + (identical(other.id, id) || const DeepCollectionEquality().equals(other.id, id))); } @override @@ -35537,9 +34268,7 @@ class NameGuidPair { @override int get hashCode => - const DeepCollectionEquality().hash(name) ^ - const DeepCollectionEquality().hash(id) ^ - runtimeType.hashCode; + const DeepCollectionEquality().hash(name) ^ const DeepCollectionEquality().hash(id) ^ runtimeType.hashCode; } extension $NameGuidPairExtension on NameGuidPair { @@ -35559,8 +34288,7 @@ extension $NameGuidPairExtension on NameGuidPair { class NameIdPair { const NameIdPair({this.name, this.id}); - factory NameIdPair.fromJson(Map json) => - _$NameIdPairFromJson(json); + factory NameIdPair.fromJson(Map json) => _$NameIdPairFromJson(json); static const toJsonFactory = _$NameIdPairToJson; Map toJson() => _$NameIdPairToJson(this); @@ -35575,10 +34303,8 @@ class NameIdPair { bool operator ==(Object other) { return identical(this, other) || (other is NameIdPair && - (identical(other.name, name) || - const DeepCollectionEquality().equals(other.name, name)) && - (identical(other.id, id) || - const DeepCollectionEquality().equals(other.id, id))); + (identical(other.name, name) || const DeepCollectionEquality().equals(other.name, name)) && + (identical(other.id, id) || const DeepCollectionEquality().equals(other.id, id))); } @override @@ -35586,9 +34312,7 @@ class NameIdPair { @override int get hashCode => - const DeepCollectionEquality().hash(name) ^ - const DeepCollectionEquality().hash(id) ^ - runtimeType.hashCode; + const DeepCollectionEquality().hash(name) ^ const DeepCollectionEquality().hash(id) ^ runtimeType.hashCode; } extension $NameIdPairExtension on NameIdPair { @@ -35608,8 +34332,7 @@ extension $NameIdPairExtension on NameIdPair { class NameValuePair { const NameValuePair({this.name, this.$Value}); - factory NameValuePair.fromJson(Map json) => - _$NameValuePairFromJson(json); + factory NameValuePair.fromJson(Map json) => _$NameValuePairFromJson(json); static const toJsonFactory = _$NameValuePairToJson; Map toJson() => _$NameValuePairToJson(this); @@ -35624,10 +34347,8 @@ class NameValuePair { bool operator ==(Object other) { return identical(this, other) || (other is NameValuePair && - (identical(other.name, name) || - const DeepCollectionEquality().equals(other.name, name)) && - (identical(other.$Value, $Value) || - const DeepCollectionEquality().equals(other.$Value, $Value))); + (identical(other.name, name) || const DeepCollectionEquality().equals(other.name, name)) && + (identical(other.$Value, $Value) || const DeepCollectionEquality().equals(other.$Value, $Value))); } @override @@ -35635,9 +34356,7 @@ class NameValuePair { @override int get hashCode => - const DeepCollectionEquality().hash(name) ^ - const DeepCollectionEquality().hash($Value) ^ - runtimeType.hashCode; + const DeepCollectionEquality().hash(name) ^ const DeepCollectionEquality().hash($Value) ^ runtimeType.hashCode; } extension $NameValuePairExtension on NameValuePair { @@ -35687,8 +34406,7 @@ class NetworkConfiguration { this.isRemoteIPFilterBlacklist, }); - factory NetworkConfiguration.fromJson(Map json) => - _$NetworkConfigurationFromJson(json); + factory NetworkConfiguration.fromJson(Map json) => _$NetworkConfigurationFromJson(json); static const toJsonFactory = _$NetworkConfigurationToJson; Map toJson() => _$NetworkConfigurationToJson(this); @@ -35968,21 +34686,14 @@ extension $NetworkConfigurationExtension on NetworkConfiguration { enableIPv6: enableIPv6 ?? this.enableIPv6, enableRemoteAccess: enableRemoteAccess ?? this.enableRemoteAccess, localNetworkSubnets: localNetworkSubnets ?? this.localNetworkSubnets, - localNetworkAddresses: - localNetworkAddresses ?? this.localNetworkAddresses, + localNetworkAddresses: localNetworkAddresses ?? this.localNetworkAddresses, knownProxies: knownProxies ?? this.knownProxies, - ignoreVirtualInterfaces: - ignoreVirtualInterfaces ?? this.ignoreVirtualInterfaces, - virtualInterfaceNames: - virtualInterfaceNames ?? this.virtualInterfaceNames, - enablePublishedServerUriByRequest: - enablePublishedServerUriByRequest ?? - this.enablePublishedServerUriByRequest, - publishedServerUriBySubnet: - publishedServerUriBySubnet ?? this.publishedServerUriBySubnet, + ignoreVirtualInterfaces: ignoreVirtualInterfaces ?? this.ignoreVirtualInterfaces, + virtualInterfaceNames: virtualInterfaceNames ?? this.virtualInterfaceNames, + enablePublishedServerUriByRequest: enablePublishedServerUriByRequest ?? this.enablePublishedServerUriByRequest, + publishedServerUriBySubnet: publishedServerUriBySubnet ?? this.publishedServerUriBySubnet, remoteIPFilter: remoteIPFilter ?? this.remoteIPFilter, - isRemoteIPFilterBlacklist: - isRemoteIPFilterBlacklist ?? this.isRemoteIPFilterBlacklist, + isRemoteIPFilterBlacklist: isRemoteIPFilterBlacklist ?? this.isRemoteIPFilterBlacklist, ); } @@ -36014,64 +34725,32 @@ extension $NetworkConfigurationExtension on NetworkConfiguration { return NetworkConfiguration( baseUrl: (baseUrl != null ? baseUrl.value : this.baseUrl), enableHttps: (enableHttps != null ? enableHttps.value : this.enableHttps), - requireHttps: (requireHttps != null - ? requireHttps.value - : this.requireHttps), - certificatePath: (certificatePath != null - ? certificatePath.value - : this.certificatePath), - certificatePassword: (certificatePassword != null - ? certificatePassword.value - : this.certificatePassword), - internalHttpPort: (internalHttpPort != null - ? internalHttpPort.value - : this.internalHttpPort), - internalHttpsPort: (internalHttpsPort != null - ? internalHttpsPort.value - : this.internalHttpsPort), - publicHttpPort: (publicHttpPort != null - ? publicHttpPort.value - : this.publicHttpPort), - publicHttpsPort: (publicHttpsPort != null - ? publicHttpsPort.value - : this.publicHttpsPort), - autoDiscovery: (autoDiscovery != null - ? autoDiscovery.value - : this.autoDiscovery), + requireHttps: (requireHttps != null ? requireHttps.value : this.requireHttps), + certificatePath: (certificatePath != null ? certificatePath.value : this.certificatePath), + certificatePassword: (certificatePassword != null ? certificatePassword.value : this.certificatePassword), + internalHttpPort: (internalHttpPort != null ? internalHttpPort.value : this.internalHttpPort), + internalHttpsPort: (internalHttpsPort != null ? internalHttpsPort.value : this.internalHttpsPort), + publicHttpPort: (publicHttpPort != null ? publicHttpPort.value : this.publicHttpPort), + publicHttpsPort: (publicHttpsPort != null ? publicHttpsPort.value : this.publicHttpsPort), + autoDiscovery: (autoDiscovery != null ? autoDiscovery.value : this.autoDiscovery), enableUPnP: (enableUPnP != null ? enableUPnP.value : this.enableUPnP), enableIPv4: (enableIPv4 != null ? enableIPv4.value : this.enableIPv4), enableIPv6: (enableIPv6 != null ? enableIPv6.value : this.enableIPv6), - enableRemoteAccess: (enableRemoteAccess != null - ? enableRemoteAccess.value - : this.enableRemoteAccess), - localNetworkSubnets: (localNetworkSubnets != null - ? localNetworkSubnets.value - : this.localNetworkSubnets), - localNetworkAddresses: (localNetworkAddresses != null - ? localNetworkAddresses.value - : this.localNetworkAddresses), - knownProxies: (knownProxies != null - ? knownProxies.value - : this.knownProxies), - ignoreVirtualInterfaces: (ignoreVirtualInterfaces != null - ? ignoreVirtualInterfaces.value - : this.ignoreVirtualInterfaces), - virtualInterfaceNames: (virtualInterfaceNames != null - ? virtualInterfaceNames.value - : this.virtualInterfaceNames), - enablePublishedServerUriByRequest: - (enablePublishedServerUriByRequest != null + enableRemoteAccess: (enableRemoteAccess != null ? enableRemoteAccess.value : this.enableRemoteAccess), + localNetworkSubnets: (localNetworkSubnets != null ? localNetworkSubnets.value : this.localNetworkSubnets), + localNetworkAddresses: (localNetworkAddresses != null ? localNetworkAddresses.value : this.localNetworkAddresses), + knownProxies: (knownProxies != null ? knownProxies.value : this.knownProxies), + ignoreVirtualInterfaces: + (ignoreVirtualInterfaces != null ? ignoreVirtualInterfaces.value : this.ignoreVirtualInterfaces), + virtualInterfaceNames: (virtualInterfaceNames != null ? virtualInterfaceNames.value : this.virtualInterfaceNames), + enablePublishedServerUriByRequest: (enablePublishedServerUriByRequest != null ? enablePublishedServerUriByRequest.value : this.enablePublishedServerUriByRequest), - publishedServerUriBySubnet: (publishedServerUriBySubnet != null - ? publishedServerUriBySubnet.value - : this.publishedServerUriBySubnet), - remoteIPFilter: (remoteIPFilter != null - ? remoteIPFilter.value - : this.remoteIPFilter), - isRemoteIPFilterBlacklist: (isRemoteIPFilterBlacklist != null - ? isRemoteIPFilterBlacklist.value - : this.isRemoteIPFilterBlacklist), + publishedServerUriBySubnet: + (publishedServerUriBySubnet != null ? publishedServerUriBySubnet.value : this.publishedServerUriBySubnet), + remoteIPFilter: (remoteIPFilter != null ? remoteIPFilter.value : this.remoteIPFilter), + isRemoteIPFilterBlacklist: + (isRemoteIPFilterBlacklist != null ? isRemoteIPFilterBlacklist.value : this.isRemoteIPFilterBlacklist), ); } } @@ -36080,8 +34759,7 @@ extension $NetworkConfigurationExtension on NetworkConfiguration { class NewGroupRequestDto { const NewGroupRequestDto({this.groupName}); - factory NewGroupRequestDto.fromJson(Map json) => - _$NewGroupRequestDtoFromJson(json); + factory NewGroupRequestDto.fromJson(Map json) => _$NewGroupRequestDtoFromJson(json); static const toJsonFactory = _$NewGroupRequestDtoToJson; Map toJson() => _$NewGroupRequestDtoToJson(this); @@ -36105,8 +34783,7 @@ class NewGroupRequestDto { String toString() => jsonEncode(this); @override - int get hashCode => - const DeepCollectionEquality().hash(groupName) ^ runtimeType.hashCode; + int get hashCode => const DeepCollectionEquality().hash(groupName) ^ runtimeType.hashCode; } extension $NewGroupRequestDtoExtension on NewGroupRequestDto { @@ -36125,8 +34802,7 @@ extension $NewGroupRequestDtoExtension on NewGroupRequestDto { class NextItemRequestDto { const NextItemRequestDto({this.playlistItemId}); - factory NextItemRequestDto.fromJson(Map json) => - _$NextItemRequestDtoFromJson(json); + factory NextItemRequestDto.fromJson(Map json) => _$NextItemRequestDtoFromJson(json); static const toJsonFactory = _$NextItemRequestDtoToJson; Map toJson() => _$NextItemRequestDtoToJson(this); @@ -36150,9 +34826,7 @@ class NextItemRequestDto { String toString() => jsonEncode(this); @override - int get hashCode => - const DeepCollectionEquality().hash(playlistItemId) ^ - runtimeType.hashCode; + int get hashCode => const DeepCollectionEquality().hash(playlistItemId) ^ runtimeType.hashCode; } extension $NextItemRequestDtoExtension on NextItemRequestDto { @@ -36164,9 +34838,7 @@ extension $NextItemRequestDtoExtension on NextItemRequestDto { NextItemRequestDto copyWithWrapped({Wrapped? playlistItemId}) { return NextItemRequestDto( - playlistItemId: (playlistItemId != null - ? playlistItemId.value - : this.playlistItemId), + playlistItemId: (playlistItemId != null ? playlistItemId.value : this.playlistItemId), ); } } @@ -36190,8 +34862,7 @@ class OpenLiveStreamDto { this.directPlayProtocols, }); - factory OpenLiveStreamDto.fromJson(Map json) => - _$OpenLiveStreamDtoFromJson(json); + factory OpenLiveStreamDto.fromJson(Map json) => _$OpenLiveStreamDtoFromJson(json); static const toJsonFactory = _$OpenLiveStreamDtoToJson; Map toJson() => _$OpenLiveStreamDtoToJson(this); @@ -36240,8 +34911,7 @@ class OpenLiveStreamDto { other.openToken, openToken, )) && - (identical(other.userId, userId) || - const DeepCollectionEquality().equals(other.userId, userId)) && + (identical(other.userId, userId) || const DeepCollectionEquality().equals(other.userId, userId)) && (identical(other.playSessionId, playSessionId) || const DeepCollectionEquality().equals( other.playSessionId, @@ -36272,8 +34942,7 @@ class OpenLiveStreamDto { other.maxAudioChannels, maxAudioChannels, )) && - (identical(other.itemId, itemId) || - const DeepCollectionEquality().equals(other.itemId, itemId)) && + (identical(other.itemId, itemId) || const DeepCollectionEquality().equals(other.itemId, itemId)) && (identical(other.enableDirectPlay, enableDirectPlay) || const DeepCollectionEquality().equals( other.enableDirectPlay, @@ -36356,8 +35025,7 @@ extension $OpenLiveStreamDtoExtension on OpenLiveStreamDto { enableDirectPlay: enableDirectPlay ?? this.enableDirectPlay, enableDirectStream: enableDirectStream ?? this.enableDirectStream, alwaysBurnInSubtitleWhenTranscoding: - alwaysBurnInSubtitleWhenTranscoding ?? - this.alwaysBurnInSubtitleWhenTranscoding, + alwaysBurnInSubtitleWhenTranscoding ?? this.alwaysBurnInSubtitleWhenTranscoding, deviceProfile: deviceProfile ?? this.deviceProfile, directPlayProtocols: directPlayProtocols ?? this.directPlayProtocols, ); @@ -36382,41 +35050,20 @@ extension $OpenLiveStreamDtoExtension on OpenLiveStreamDto { return OpenLiveStreamDto( openToken: (openToken != null ? openToken.value : this.openToken), userId: (userId != null ? userId.value : this.userId), - playSessionId: (playSessionId != null - ? playSessionId.value - : this.playSessionId), - maxStreamingBitrate: (maxStreamingBitrate != null - ? maxStreamingBitrate.value - : this.maxStreamingBitrate), - startTimeTicks: (startTimeTicks != null - ? startTimeTicks.value - : this.startTimeTicks), - audioStreamIndex: (audioStreamIndex != null - ? audioStreamIndex.value - : this.audioStreamIndex), - subtitleStreamIndex: (subtitleStreamIndex != null - ? subtitleStreamIndex.value - : this.subtitleStreamIndex), - maxAudioChannels: (maxAudioChannels != null - ? maxAudioChannels.value - : this.maxAudioChannels), + playSessionId: (playSessionId != null ? playSessionId.value : this.playSessionId), + maxStreamingBitrate: (maxStreamingBitrate != null ? maxStreamingBitrate.value : this.maxStreamingBitrate), + startTimeTicks: (startTimeTicks != null ? startTimeTicks.value : this.startTimeTicks), + audioStreamIndex: (audioStreamIndex != null ? audioStreamIndex.value : this.audioStreamIndex), + subtitleStreamIndex: (subtitleStreamIndex != null ? subtitleStreamIndex.value : this.subtitleStreamIndex), + maxAudioChannels: (maxAudioChannels != null ? maxAudioChannels.value : this.maxAudioChannels), itemId: (itemId != null ? itemId.value : this.itemId), - enableDirectPlay: (enableDirectPlay != null - ? enableDirectPlay.value - : this.enableDirectPlay), - enableDirectStream: (enableDirectStream != null - ? enableDirectStream.value - : this.enableDirectStream), - alwaysBurnInSubtitleWhenTranscoding: - (alwaysBurnInSubtitleWhenTranscoding != null + enableDirectPlay: (enableDirectPlay != null ? enableDirectPlay.value : this.enableDirectPlay), + enableDirectStream: (enableDirectStream != null ? enableDirectStream.value : this.enableDirectStream), + alwaysBurnInSubtitleWhenTranscoding: (alwaysBurnInSubtitleWhenTranscoding != null ? alwaysBurnInSubtitleWhenTranscoding.value : this.alwaysBurnInSubtitleWhenTranscoding), - deviceProfile: (deviceProfile != null - ? deviceProfile.value - : this.deviceProfile), - directPlayProtocols: (directPlayProtocols != null - ? directPlayProtocols.value - : this.directPlayProtocols), + deviceProfile: (deviceProfile != null ? deviceProfile.value : this.deviceProfile), + directPlayProtocols: (directPlayProtocols != null ? directPlayProtocols.value : this.directPlayProtocols), ); } } @@ -36425,8 +35072,7 @@ extension $OpenLiveStreamDtoExtension on OpenLiveStreamDto { class OutboundKeepAliveMessage { const OutboundKeepAliveMessage({this.messageId, this.messageType}); - factory OutboundKeepAliveMessage.fromJson(Map json) => - _$OutboundKeepAliveMessageFromJson(json); + factory OutboundKeepAliveMessage.fromJson(Map json) => _$OutboundKeepAliveMessageFromJson(json); static const toJsonFactory = _$OutboundKeepAliveMessageToJson; Map toJson() => _$OutboundKeepAliveMessageToJson(this); @@ -36440,8 +35086,7 @@ class OutboundKeepAliveMessage { fromJson: sessionMessageTypeMessageTypeNullableFromJson, ) final enums.SessionMessageType? messageType; - static enums.SessionMessageType? - sessionMessageTypeMessageTypeNullableFromJson(Object? value) => + static enums.SessionMessageType? sessionMessageTypeMessageTypeNullableFromJson(Object? value) => sessionMessageTypeNullableFromJson( value, enums.SessionMessageType.keepalive, @@ -36501,8 +35146,7 @@ extension $OutboundKeepAliveMessageExtension on OutboundKeepAliveMessage { class OutboundWebSocketMessage { const OutboundWebSocketMessage(); - factory OutboundWebSocketMessage.fromJson(Map json) => - _$OutboundWebSocketMessageFromJson(json); + factory OutboundWebSocketMessage.fromJson(Map json) => _$OutboundWebSocketMessageFromJson(json); static const toJsonFactory = _$OutboundWebSocketMessageToJson; Map toJson() => _$OutboundWebSocketMessageToJson(this); @@ -36529,8 +35173,7 @@ class PackageInfo { this.imageUrl, }); - factory PackageInfo.fromJson(Map json) => - _$PackageInfoFromJson(json); + factory PackageInfo.fromJson(Map json) => _$PackageInfoFromJson(json); static const toJsonFactory = _$PackageInfoToJson; Map toJson() => _$PackageInfoToJson(this); @@ -36561,8 +35204,7 @@ class PackageInfo { bool operator ==(Object other) { return identical(this, other) || (other is PackageInfo && - (identical(other.name, name) || - const DeepCollectionEquality().equals(other.name, name)) && + (identical(other.name, name) || const DeepCollectionEquality().equals(other.name, name)) && (identical(other.description, description) || const DeepCollectionEquality().equals( other.description, @@ -36573,15 +35215,13 @@ class PackageInfo { other.overview, overview, )) && - (identical(other.owner, owner) || - const DeepCollectionEquality().equals(other.owner, owner)) && + (identical(other.owner, owner) || const DeepCollectionEquality().equals(other.owner, owner)) && (identical(other.category, category) || const DeepCollectionEquality().equals( other.category, category, )) && - (identical(other.guid, guid) || - const DeepCollectionEquality().equals(other.guid, guid)) && + (identical(other.guid, guid) || const DeepCollectionEquality().equals(other.guid, guid)) && (identical(other.versions, versions) || const DeepCollectionEquality().equals( other.versions, @@ -36660,8 +35300,7 @@ extension $PackageInfoExtension on PackageInfo { class ParentalRating { const ParentalRating({this.name, this.$Value, this.ratingScore}); - factory ParentalRating.fromJson(Map json) => - _$ParentalRatingFromJson(json); + factory ParentalRating.fromJson(Map json) => _$ParentalRatingFromJson(json); static const toJsonFactory = _$ParentalRatingToJson; Map toJson() => _$ParentalRatingToJson(this); @@ -36678,10 +35317,8 @@ class ParentalRating { bool operator ==(Object other) { return identical(this, other) || (other is ParentalRating && - (identical(other.name, name) || - const DeepCollectionEquality().equals(other.name, name)) && - (identical(other.$Value, $Value) || - const DeepCollectionEquality().equals(other.$Value, $Value)) && + (identical(other.name, name) || const DeepCollectionEquality().equals(other.name, name)) && + (identical(other.$Value, $Value) || const DeepCollectionEquality().equals(other.$Value, $Value)) && (identical(other.ratingScore, ratingScore) || const DeepCollectionEquality().equals( other.ratingScore, @@ -36730,8 +35367,7 @@ extension $ParentalRatingExtension on ParentalRating { class ParentalRatingScore { const ParentalRatingScore({this.score, this.subScore}); - factory ParentalRatingScore.fromJson(Map json) => - _$ParentalRatingScoreFromJson(json); + factory ParentalRatingScore.fromJson(Map json) => _$ParentalRatingScoreFromJson(json); static const toJsonFactory = _$ParentalRatingScoreToJson; Map toJson() => _$ParentalRatingScoreToJson(this); @@ -36746,8 +35382,7 @@ class ParentalRatingScore { bool operator ==(Object other) { return identical(this, other) || (other is ParentalRatingScore && - (identical(other.score, score) || - const DeepCollectionEquality().equals(other.score, score)) && + (identical(other.score, score) || const DeepCollectionEquality().equals(other.score, score)) && (identical(other.subScore, subScore) || const DeepCollectionEquality().equals( other.subScore, @@ -36760,9 +35395,7 @@ class ParentalRatingScore { @override int get hashCode => - const DeepCollectionEquality().hash(score) ^ - const DeepCollectionEquality().hash(subScore) ^ - runtimeType.hashCode; + const DeepCollectionEquality().hash(score) ^ const DeepCollectionEquality().hash(subScore) ^ runtimeType.hashCode; } extension $ParentalRatingScoreExtension on ParentalRatingScore { @@ -36788,8 +35421,7 @@ extension $ParentalRatingScoreExtension on ParentalRatingScore { class PathSubstitution { const PathSubstitution({this.from, this.to}); - factory PathSubstitution.fromJson(Map json) => - _$PathSubstitutionFromJson(json); + factory PathSubstitution.fromJson(Map json) => _$PathSubstitutionFromJson(json); static const toJsonFactory = _$PathSubstitutionToJson; Map toJson() => _$PathSubstitutionToJson(this); @@ -36804,10 +35436,8 @@ class PathSubstitution { bool operator ==(Object other) { return identical(this, other) || (other is PathSubstitution && - (identical(other.from, from) || - const DeepCollectionEquality().equals(other.from, from)) && - (identical(other.to, to) || - const DeepCollectionEquality().equals(other.to, to))); + (identical(other.from, from) || const DeepCollectionEquality().equals(other.from, from)) && + (identical(other.to, to) || const DeepCollectionEquality().equals(other.to, to))); } @override @@ -36815,9 +35445,7 @@ class PathSubstitution { @override int get hashCode => - const DeepCollectionEquality().hash(from) ^ - const DeepCollectionEquality().hash(to) ^ - runtimeType.hashCode; + const DeepCollectionEquality().hash(from) ^ const DeepCollectionEquality().hash(to) ^ runtimeType.hashCode; } extension $PathSubstitutionExtension on PathSubstitution { @@ -36852,8 +35480,7 @@ class PersonLookupInfo { this.isAutomated, }); - factory PersonLookupInfo.fromJson(Map json) => - _$PersonLookupInfoFromJson(json); + factory PersonLookupInfo.fromJson(Map json) => _$PersonLookupInfoFromJson(json); static const toJsonFactory = _$PersonLookupInfoToJson; Map toJson() => _$PersonLookupInfoToJson(this); @@ -36886,15 +35513,13 @@ class PersonLookupInfo { bool operator ==(Object other) { return identical(this, other) || (other is PersonLookupInfo && - (identical(other.name, name) || - const DeepCollectionEquality().equals(other.name, name)) && + (identical(other.name, name) || const DeepCollectionEquality().equals(other.name, name)) && (identical(other.originalTitle, originalTitle) || const DeepCollectionEquality().equals( other.originalTitle, originalTitle, )) && - (identical(other.path, path) || - const DeepCollectionEquality().equals(other.path, path)) && + (identical(other.path, path) || const DeepCollectionEquality().equals(other.path, path)) && (identical(other.metadataLanguage, metadataLanguage) || const DeepCollectionEquality().equals( other.metadataLanguage, @@ -36910,8 +35535,7 @@ class PersonLookupInfo { other.providerIds, providerIds, )) && - (identical(other.year, year) || - const DeepCollectionEquality().equals(other.year, year)) && + (identical(other.year, year) || const DeepCollectionEquality().equals(other.year, year)) && (identical(other.indexNumber, indexNumber) || const DeepCollectionEquality().equals( other.indexNumber, @@ -36997,25 +35621,15 @@ extension $PersonLookupInfoExtension on PersonLookupInfo { }) { return PersonLookupInfo( name: (name != null ? name.value : this.name), - originalTitle: (originalTitle != null - ? originalTitle.value - : this.originalTitle), + originalTitle: (originalTitle != null ? originalTitle.value : this.originalTitle), path: (path != null ? path.value : this.path), - metadataLanguage: (metadataLanguage != null - ? metadataLanguage.value - : this.metadataLanguage), - metadataCountryCode: (metadataCountryCode != null - ? metadataCountryCode.value - : this.metadataCountryCode), + metadataLanguage: (metadataLanguage != null ? metadataLanguage.value : this.metadataLanguage), + metadataCountryCode: (metadataCountryCode != null ? metadataCountryCode.value : this.metadataCountryCode), providerIds: (providerIds != null ? providerIds.value : this.providerIds), year: (year != null ? year.value : this.year), indexNumber: (indexNumber != null ? indexNumber.value : this.indexNumber), - parentIndexNumber: (parentIndexNumber != null - ? parentIndexNumber.value - : this.parentIndexNumber), - premiereDate: (premiereDate != null - ? premiereDate.value - : this.premiereDate), + parentIndexNumber: (parentIndexNumber != null ? parentIndexNumber.value : this.parentIndexNumber), + premiereDate: (premiereDate != null ? premiereDate.value : this.premiereDate), isAutomated: (isAutomated != null ? isAutomated.value : this.isAutomated), ); } @@ -37032,11 +35646,11 @@ class PersonLookupInfoRemoteSearchQuery { factory PersonLookupInfoRemoteSearchQuery.fromJson( Map json, - ) => _$PersonLookupInfoRemoteSearchQueryFromJson(json); + ) => + _$PersonLookupInfoRemoteSearchQueryFromJson(json); static const toJsonFactory = _$PersonLookupInfoRemoteSearchQueryToJson; - Map toJson() => - _$PersonLookupInfoRemoteSearchQueryToJson(this); + Map toJson() => _$PersonLookupInfoRemoteSearchQueryToJson(this); @JsonKey(name: 'SearchInfo', includeIfNull: false) final PersonLookupInfo? searchInfo; @@ -37057,8 +35671,7 @@ class PersonLookupInfoRemoteSearchQuery { other.searchInfo, searchInfo, )) && - (identical(other.itemId, itemId) || - const DeepCollectionEquality().equals(other.itemId, itemId)) && + (identical(other.itemId, itemId) || const DeepCollectionEquality().equals(other.itemId, itemId)) && (identical(other.searchProviderName, searchProviderName) || const DeepCollectionEquality().equals( other.searchProviderName, @@ -37086,8 +35699,7 @@ class PersonLookupInfoRemoteSearchQuery { runtimeType.hashCode; } -extension $PersonLookupInfoRemoteSearchQueryExtension - on PersonLookupInfoRemoteSearchQuery { +extension $PersonLookupInfoRemoteSearchQueryExtension on PersonLookupInfoRemoteSearchQuery { PersonLookupInfoRemoteSearchQuery copyWith({ PersonLookupInfo? searchInfo, String? itemId, @@ -37098,8 +35710,7 @@ extension $PersonLookupInfoRemoteSearchQueryExtension searchInfo: searchInfo ?? this.searchInfo, itemId: itemId ?? this.itemId, searchProviderName: searchProviderName ?? this.searchProviderName, - includeDisabledProviders: - includeDisabledProviders ?? this.includeDisabledProviders, + includeDisabledProviders: includeDisabledProviders ?? this.includeDisabledProviders, ); } @@ -37112,12 +35723,9 @@ extension $PersonLookupInfoRemoteSearchQueryExtension return PersonLookupInfoRemoteSearchQuery( searchInfo: (searchInfo != null ? searchInfo.value : this.searchInfo), itemId: (itemId != null ? itemId.value : this.itemId), - searchProviderName: (searchProviderName != null - ? searchProviderName.value - : this.searchProviderName), - includeDisabledProviders: (includeDisabledProviders != null - ? includeDisabledProviders.value - : this.includeDisabledProviders), + searchProviderName: (searchProviderName != null ? searchProviderName.value : this.searchProviderName), + includeDisabledProviders: + (includeDisabledProviders != null ? includeDisabledProviders.value : this.includeDisabledProviders), ); } } @@ -37126,8 +35734,7 @@ extension $PersonLookupInfoRemoteSearchQueryExtension class PingRequestDto { const PingRequestDto({this.ping}); - factory PingRequestDto.fromJson(Map json) => - _$PingRequestDtoFromJson(json); + factory PingRequestDto.fromJson(Map json) => _$PingRequestDtoFromJson(json); static const toJsonFactory = _$PingRequestDtoToJson; Map toJson() => _$PingRequestDtoToJson(this); @@ -37140,16 +35747,14 @@ class PingRequestDto { bool operator ==(Object other) { return identical(this, other) || (other is PingRequestDto && - (identical(other.ping, ping) || - const DeepCollectionEquality().equals(other.ping, ping))); + (identical(other.ping, ping) || const DeepCollectionEquality().equals(other.ping, ping))); } @override String toString() => jsonEncode(this); @override - int get hashCode => - const DeepCollectionEquality().hash(ping) ^ runtimeType.hashCode; + int get hashCode => const DeepCollectionEquality().hash(ping) ^ runtimeType.hashCode; } extension $PingRequestDtoExtension on PingRequestDto { @@ -37166,8 +35771,7 @@ extension $PingRequestDtoExtension on PingRequestDto { class PinRedeemResult { const PinRedeemResult({this.success, this.usersReset}); - factory PinRedeemResult.fromJson(Map json) => - _$PinRedeemResultFromJson(json); + factory PinRedeemResult.fromJson(Map json) => _$PinRedeemResultFromJson(json); static const toJsonFactory = _$PinRedeemResultToJson; Map toJson() => _$PinRedeemResultToJson(this); @@ -37244,8 +35848,7 @@ class PlaybackInfoDto { this.alwaysBurnInSubtitleWhenTranscoding, }); - factory PlaybackInfoDto.fromJson(Map json) => - _$PlaybackInfoDtoFromJson(json); + factory PlaybackInfoDto.fromJson(Map json) => _$PlaybackInfoDtoFromJson(json); static const toJsonFactory = _$PlaybackInfoDtoToJson; Map toJson() => _$PlaybackInfoDtoToJson(this); @@ -37288,8 +35891,7 @@ class PlaybackInfoDto { bool operator ==(Object other) { return identical(this, other) || (other is PlaybackInfoDto && - (identical(other.userId, userId) || - const DeepCollectionEquality().equals(other.userId, userId)) && + (identical(other.userId, userId) || const DeepCollectionEquality().equals(other.userId, userId)) && (identical(other.maxStreamingBitrate, maxStreamingBitrate) || const DeepCollectionEquality().equals( other.maxStreamingBitrate, @@ -37430,8 +36032,7 @@ extension $PlaybackInfoDtoExtension on PlaybackInfoDto { allowAudioStreamCopy: allowAudioStreamCopy ?? this.allowAudioStreamCopy, autoOpenLiveStream: autoOpenLiveStream ?? this.autoOpenLiveStream, alwaysBurnInSubtitleWhenTranscoding: - alwaysBurnInSubtitleWhenTranscoding ?? - this.alwaysBurnInSubtitleWhenTranscoding, + alwaysBurnInSubtitleWhenTranscoding ?? this.alwaysBurnInSubtitleWhenTranscoding, ); } @@ -37455,50 +36056,21 @@ extension $PlaybackInfoDtoExtension on PlaybackInfoDto { }) { return PlaybackInfoDto( userId: (userId != null ? userId.value : this.userId), - maxStreamingBitrate: (maxStreamingBitrate != null - ? maxStreamingBitrate.value - : this.maxStreamingBitrate), - startTimeTicks: (startTimeTicks != null - ? startTimeTicks.value - : this.startTimeTicks), - audioStreamIndex: (audioStreamIndex != null - ? audioStreamIndex.value - : this.audioStreamIndex), - subtitleStreamIndex: (subtitleStreamIndex != null - ? subtitleStreamIndex.value - : this.subtitleStreamIndex), - maxAudioChannels: (maxAudioChannels != null - ? maxAudioChannels.value - : this.maxAudioChannels), - mediaSourceId: (mediaSourceId != null - ? mediaSourceId.value - : this.mediaSourceId), - liveStreamId: (liveStreamId != null - ? liveStreamId.value - : this.liveStreamId), - deviceProfile: (deviceProfile != null - ? deviceProfile.value - : this.deviceProfile), - enableDirectPlay: (enableDirectPlay != null - ? enableDirectPlay.value - : this.enableDirectPlay), - enableDirectStream: (enableDirectStream != null - ? enableDirectStream.value - : this.enableDirectStream), - enableTranscoding: (enableTranscoding != null - ? enableTranscoding.value - : this.enableTranscoding), - allowVideoStreamCopy: (allowVideoStreamCopy != null - ? allowVideoStreamCopy.value - : this.allowVideoStreamCopy), - allowAudioStreamCopy: (allowAudioStreamCopy != null - ? allowAudioStreamCopy.value - : this.allowAudioStreamCopy), - autoOpenLiveStream: (autoOpenLiveStream != null - ? autoOpenLiveStream.value - : this.autoOpenLiveStream), - alwaysBurnInSubtitleWhenTranscoding: - (alwaysBurnInSubtitleWhenTranscoding != null + maxStreamingBitrate: (maxStreamingBitrate != null ? maxStreamingBitrate.value : this.maxStreamingBitrate), + startTimeTicks: (startTimeTicks != null ? startTimeTicks.value : this.startTimeTicks), + audioStreamIndex: (audioStreamIndex != null ? audioStreamIndex.value : this.audioStreamIndex), + subtitleStreamIndex: (subtitleStreamIndex != null ? subtitleStreamIndex.value : this.subtitleStreamIndex), + maxAudioChannels: (maxAudioChannels != null ? maxAudioChannels.value : this.maxAudioChannels), + mediaSourceId: (mediaSourceId != null ? mediaSourceId.value : this.mediaSourceId), + liveStreamId: (liveStreamId != null ? liveStreamId.value : this.liveStreamId), + deviceProfile: (deviceProfile != null ? deviceProfile.value : this.deviceProfile), + enableDirectPlay: (enableDirectPlay != null ? enableDirectPlay.value : this.enableDirectPlay), + enableDirectStream: (enableDirectStream != null ? enableDirectStream.value : this.enableDirectStream), + enableTranscoding: (enableTranscoding != null ? enableTranscoding.value : this.enableTranscoding), + allowVideoStreamCopy: (allowVideoStreamCopy != null ? allowVideoStreamCopy.value : this.allowVideoStreamCopy), + allowAudioStreamCopy: (allowAudioStreamCopy != null ? allowAudioStreamCopy.value : this.allowAudioStreamCopy), + autoOpenLiveStream: (autoOpenLiveStream != null ? autoOpenLiveStream.value : this.autoOpenLiveStream), + alwaysBurnInSubtitleWhenTranscoding: (alwaysBurnInSubtitleWhenTranscoding != null ? alwaysBurnInSubtitleWhenTranscoding.value : this.alwaysBurnInSubtitleWhenTranscoding), ); @@ -37513,8 +36085,7 @@ class PlaybackInfoResponse { this.errorCode, }); - factory PlaybackInfoResponse.fromJson(Map json) => - _$PlaybackInfoResponseFromJson(json); + factory PlaybackInfoResponse.fromJson(Map json) => _$PlaybackInfoResponseFromJson(json); static const toJsonFactory = _$PlaybackInfoResponseToJson; Map toJson() => _$PlaybackInfoResponseToJson(this); @@ -37587,12 +36158,8 @@ extension $PlaybackInfoResponseExtension on PlaybackInfoResponse { Wrapped? errorCode, }) { return PlaybackInfoResponse( - mediaSources: (mediaSources != null - ? mediaSources.value - : this.mediaSources), - playSessionId: (playSessionId != null - ? playSessionId.value - : this.playSessionId), + mediaSources: (mediaSources != null ? mediaSources.value : this.mediaSources), + playSessionId: (playSessionId != null ? playSessionId.value : this.playSessionId), errorCode: (errorCode != null ? errorCode.value : this.errorCode), ); } @@ -37624,8 +36191,7 @@ class PlaybackProgressInfo { this.playlistItemId, }); - factory PlaybackProgressInfo.fromJson(Map json) => - _$PlaybackProgressInfoFromJson(json); + factory PlaybackProgressInfo.fromJson(Map json) => _$PlaybackProgressInfoFromJson(json); static const toJsonFactory = _$PlaybackProgressInfoToJson; Map toJson() => _$PlaybackProgressInfoToJson(this); @@ -37702,10 +36268,8 @@ class PlaybackProgressInfo { other.canSeek, canSeek, )) && - (identical(other.item, item) || - const DeepCollectionEquality().equals(other.item, item)) && - (identical(other.itemId, itemId) || - const DeepCollectionEquality().equals(other.itemId, itemId)) && + (identical(other.item, item) || const DeepCollectionEquality().equals(other.item, item)) && + (identical(other.itemId, itemId) || const DeepCollectionEquality().equals(other.itemId, itemId)) && (identical(other.sessionId, sessionId) || const DeepCollectionEquality().equals( other.sessionId, @@ -37862,8 +36426,7 @@ extension $PlaybackProgressInfoExtension on PlaybackProgressInfo { isPaused: isPaused ?? this.isPaused, isMuted: isMuted ?? this.isMuted, positionTicks: positionTicks ?? this.positionTicks, - playbackStartTimeTicks: - playbackStartTimeTicks ?? this.playbackStartTimeTicks, + playbackStartTimeTicks: playbackStartTimeTicks ?? this.playbackStartTimeTicks, volumeLevel: volumeLevel ?? this.volumeLevel, brightness: brightness ?? this.brightness, aspectRatio: aspectRatio ?? this.aspectRatio, @@ -37905,43 +36468,24 @@ extension $PlaybackProgressInfoExtension on PlaybackProgressInfo { item: (item != null ? item.value : this.item), itemId: (itemId != null ? itemId.value : this.itemId), sessionId: (sessionId != null ? sessionId.value : this.sessionId), - mediaSourceId: (mediaSourceId != null - ? mediaSourceId.value - : this.mediaSourceId), - audioStreamIndex: (audioStreamIndex != null - ? audioStreamIndex.value - : this.audioStreamIndex), - subtitleStreamIndex: (subtitleStreamIndex != null - ? subtitleStreamIndex.value - : this.subtitleStreamIndex), + mediaSourceId: (mediaSourceId != null ? mediaSourceId.value : this.mediaSourceId), + audioStreamIndex: (audioStreamIndex != null ? audioStreamIndex.value : this.audioStreamIndex), + subtitleStreamIndex: (subtitleStreamIndex != null ? subtitleStreamIndex.value : this.subtitleStreamIndex), isPaused: (isPaused != null ? isPaused.value : this.isPaused), isMuted: (isMuted != null ? isMuted.value : this.isMuted), - positionTicks: (positionTicks != null - ? positionTicks.value - : this.positionTicks), - playbackStartTimeTicks: (playbackStartTimeTicks != null - ? playbackStartTimeTicks.value - : this.playbackStartTimeTicks), + positionTicks: (positionTicks != null ? positionTicks.value : this.positionTicks), + playbackStartTimeTicks: + (playbackStartTimeTicks != null ? playbackStartTimeTicks.value : this.playbackStartTimeTicks), volumeLevel: (volumeLevel != null ? volumeLevel.value : this.volumeLevel), brightness: (brightness != null ? brightness.value : this.brightness), aspectRatio: (aspectRatio != null ? aspectRatio.value : this.aspectRatio), playMethod: (playMethod != null ? playMethod.value : this.playMethod), - liveStreamId: (liveStreamId != null - ? liveStreamId.value - : this.liveStreamId), - playSessionId: (playSessionId != null - ? playSessionId.value - : this.playSessionId), + liveStreamId: (liveStreamId != null ? liveStreamId.value : this.liveStreamId), + playSessionId: (playSessionId != null ? playSessionId.value : this.playSessionId), repeatMode: (repeatMode != null ? repeatMode.value : this.repeatMode), - playbackOrder: (playbackOrder != null - ? playbackOrder.value - : this.playbackOrder), - nowPlayingQueue: (nowPlayingQueue != null - ? nowPlayingQueue.value - : this.nowPlayingQueue), - playlistItemId: (playlistItemId != null - ? playlistItemId.value - : this.playlistItemId), + playbackOrder: (playbackOrder != null ? playbackOrder.value : this.playbackOrder), + nowPlayingQueue: (nowPlayingQueue != null ? nowPlayingQueue.value : this.nowPlayingQueue), + playlistItemId: (playlistItemId != null ? playlistItemId.value : this.playlistItemId), ); } } @@ -37972,8 +36516,7 @@ class PlaybackStartInfo { this.playlistItemId, }); - factory PlaybackStartInfo.fromJson(Map json) => - _$PlaybackStartInfoFromJson(json); + factory PlaybackStartInfo.fromJson(Map json) => _$PlaybackStartInfoFromJson(json); static const toJsonFactory = _$PlaybackStartInfoToJson; Map toJson() => _$PlaybackStartInfoToJson(this); @@ -38050,10 +36593,8 @@ class PlaybackStartInfo { other.canSeek, canSeek, )) && - (identical(other.item, item) || - const DeepCollectionEquality().equals(other.item, item)) && - (identical(other.itemId, itemId) || - const DeepCollectionEquality().equals(other.itemId, itemId)) && + (identical(other.item, item) || const DeepCollectionEquality().equals(other.item, item)) && + (identical(other.itemId, itemId) || const DeepCollectionEquality().equals(other.itemId, itemId)) && (identical(other.sessionId, sessionId) || const DeepCollectionEquality().equals( other.sessionId, @@ -38210,8 +36751,7 @@ extension $PlaybackStartInfoExtension on PlaybackStartInfo { isPaused: isPaused ?? this.isPaused, isMuted: isMuted ?? this.isMuted, positionTicks: positionTicks ?? this.positionTicks, - playbackStartTimeTicks: - playbackStartTimeTicks ?? this.playbackStartTimeTicks, + playbackStartTimeTicks: playbackStartTimeTicks ?? this.playbackStartTimeTicks, volumeLevel: volumeLevel ?? this.volumeLevel, brightness: brightness ?? this.brightness, aspectRatio: aspectRatio ?? this.aspectRatio, @@ -38253,43 +36793,24 @@ extension $PlaybackStartInfoExtension on PlaybackStartInfo { item: (item != null ? item.value : this.item), itemId: (itemId != null ? itemId.value : this.itemId), sessionId: (sessionId != null ? sessionId.value : this.sessionId), - mediaSourceId: (mediaSourceId != null - ? mediaSourceId.value - : this.mediaSourceId), - audioStreamIndex: (audioStreamIndex != null - ? audioStreamIndex.value - : this.audioStreamIndex), - subtitleStreamIndex: (subtitleStreamIndex != null - ? subtitleStreamIndex.value - : this.subtitleStreamIndex), + mediaSourceId: (mediaSourceId != null ? mediaSourceId.value : this.mediaSourceId), + audioStreamIndex: (audioStreamIndex != null ? audioStreamIndex.value : this.audioStreamIndex), + subtitleStreamIndex: (subtitleStreamIndex != null ? subtitleStreamIndex.value : this.subtitleStreamIndex), isPaused: (isPaused != null ? isPaused.value : this.isPaused), isMuted: (isMuted != null ? isMuted.value : this.isMuted), - positionTicks: (positionTicks != null - ? positionTicks.value - : this.positionTicks), - playbackStartTimeTicks: (playbackStartTimeTicks != null - ? playbackStartTimeTicks.value - : this.playbackStartTimeTicks), + positionTicks: (positionTicks != null ? positionTicks.value : this.positionTicks), + playbackStartTimeTicks: + (playbackStartTimeTicks != null ? playbackStartTimeTicks.value : this.playbackStartTimeTicks), volumeLevel: (volumeLevel != null ? volumeLevel.value : this.volumeLevel), brightness: (brightness != null ? brightness.value : this.brightness), aspectRatio: (aspectRatio != null ? aspectRatio.value : this.aspectRatio), playMethod: (playMethod != null ? playMethod.value : this.playMethod), - liveStreamId: (liveStreamId != null - ? liveStreamId.value - : this.liveStreamId), - playSessionId: (playSessionId != null - ? playSessionId.value - : this.playSessionId), + liveStreamId: (liveStreamId != null ? liveStreamId.value : this.liveStreamId), + playSessionId: (playSessionId != null ? playSessionId.value : this.playSessionId), repeatMode: (repeatMode != null ? repeatMode.value : this.repeatMode), - playbackOrder: (playbackOrder != null - ? playbackOrder.value - : this.playbackOrder), - nowPlayingQueue: (nowPlayingQueue != null - ? nowPlayingQueue.value - : this.nowPlayingQueue), - playlistItemId: (playlistItemId != null - ? playlistItemId.value - : this.playlistItemId), + playbackOrder: (playbackOrder != null ? playbackOrder.value : this.playbackOrder), + nowPlayingQueue: (nowPlayingQueue != null ? nowPlayingQueue.value : this.nowPlayingQueue), + playlistItemId: (playlistItemId != null ? playlistItemId.value : this.playlistItemId), ); } } @@ -38310,8 +36831,7 @@ class PlaybackStopInfo { this.nowPlayingQueue, }); - factory PlaybackStopInfo.fromJson(Map json) => - _$PlaybackStopInfoFromJson(json); + factory PlaybackStopInfo.fromJson(Map json) => _$PlaybackStopInfoFromJson(json); static const toJsonFactory = _$PlaybackStopInfoToJson; Map toJson() => _$PlaybackStopInfoToJson(this); @@ -38348,10 +36868,8 @@ class PlaybackStopInfo { bool operator ==(Object other) { return identical(this, other) || (other is PlaybackStopInfo && - (identical(other.item, item) || - const DeepCollectionEquality().equals(other.item, item)) && - (identical(other.itemId, itemId) || - const DeepCollectionEquality().equals(other.itemId, itemId)) && + (identical(other.item, item) || const DeepCollectionEquality().equals(other.item, item)) && + (identical(other.itemId, itemId) || const DeepCollectionEquality().equals(other.itemId, itemId)) && (identical(other.sessionId, sessionId) || const DeepCollectionEquality().equals( other.sessionId, @@ -38377,8 +36895,7 @@ class PlaybackStopInfo { other.playSessionId, playSessionId, )) && - (identical(other.failed, failed) || - const DeepCollectionEquality().equals(other.failed, failed)) && + (identical(other.failed, failed) || const DeepCollectionEquality().equals(other.failed, failed)) && (identical(other.nextMediaType, nextMediaType) || const DeepCollectionEquality().equals( other.nextMediaType, @@ -38461,28 +36978,14 @@ extension $PlaybackStopInfoExtension on PlaybackStopInfo { item: (item != null ? item.value : this.item), itemId: (itemId != null ? itemId.value : this.itemId), sessionId: (sessionId != null ? sessionId.value : this.sessionId), - mediaSourceId: (mediaSourceId != null - ? mediaSourceId.value - : this.mediaSourceId), - positionTicks: (positionTicks != null - ? positionTicks.value - : this.positionTicks), - liveStreamId: (liveStreamId != null - ? liveStreamId.value - : this.liveStreamId), - playSessionId: (playSessionId != null - ? playSessionId.value - : this.playSessionId), + mediaSourceId: (mediaSourceId != null ? mediaSourceId.value : this.mediaSourceId), + positionTicks: (positionTicks != null ? positionTicks.value : this.positionTicks), + liveStreamId: (liveStreamId != null ? liveStreamId.value : this.liveStreamId), + playSessionId: (playSessionId != null ? playSessionId.value : this.playSessionId), failed: (failed != null ? failed.value : this.failed), - nextMediaType: (nextMediaType != null - ? nextMediaType.value - : this.nextMediaType), - playlistItemId: (playlistItemId != null - ? playlistItemId.value - : this.playlistItemId), - nowPlayingQueue: (nowPlayingQueue != null - ? nowPlayingQueue.value - : this.nowPlayingQueue), + nextMediaType: (nextMediaType != null ? nextMediaType.value : this.nextMediaType), + playlistItemId: (playlistItemId != null ? playlistItemId.value : this.playlistItemId), + nowPlayingQueue: (nowPlayingQueue != null ? nowPlayingQueue.value : this.nowPlayingQueue), ); } } @@ -38504,8 +37007,7 @@ class PlayerStateInfo { this.liveStreamId, }); - factory PlayerStateInfo.fromJson(Map json) => - _$PlayerStateInfoFromJson(json); + factory PlayerStateInfo.fromJson(Map json) => _$PlayerStateInfoFromJson(json); static const toJsonFactory = _$PlayerStateInfoToJson; Map toJson() => _$PlayerStateInfoToJson(this); @@ -38683,30 +37185,18 @@ extension $PlayerStateInfoExtension on PlayerStateInfo { Wrapped? liveStreamId, }) { return PlayerStateInfo( - positionTicks: (positionTicks != null - ? positionTicks.value - : this.positionTicks), + positionTicks: (positionTicks != null ? positionTicks.value : this.positionTicks), canSeek: (canSeek != null ? canSeek.value : this.canSeek), isPaused: (isPaused != null ? isPaused.value : this.isPaused), isMuted: (isMuted != null ? isMuted.value : this.isMuted), volumeLevel: (volumeLevel != null ? volumeLevel.value : this.volumeLevel), - audioStreamIndex: (audioStreamIndex != null - ? audioStreamIndex.value - : this.audioStreamIndex), - subtitleStreamIndex: (subtitleStreamIndex != null - ? subtitleStreamIndex.value - : this.subtitleStreamIndex), - mediaSourceId: (mediaSourceId != null - ? mediaSourceId.value - : this.mediaSourceId), + audioStreamIndex: (audioStreamIndex != null ? audioStreamIndex.value : this.audioStreamIndex), + subtitleStreamIndex: (subtitleStreamIndex != null ? subtitleStreamIndex.value : this.subtitleStreamIndex), + mediaSourceId: (mediaSourceId != null ? mediaSourceId.value : this.mediaSourceId), playMethod: (playMethod != null ? playMethod.value : this.playMethod), repeatMode: (repeatMode != null ? repeatMode.value : this.repeatMode), - playbackOrder: (playbackOrder != null - ? playbackOrder.value - : this.playbackOrder), - liveStreamId: (liveStreamId != null - ? liveStreamId.value - : this.liveStreamId), + playbackOrder: (playbackOrder != null ? playbackOrder.value : this.playbackOrder), + liveStreamId: (liveStreamId != null ? liveStreamId.value : this.liveStreamId), ); } } @@ -38715,8 +37205,7 @@ extension $PlayerStateInfoExtension on PlayerStateInfo { class PlaylistCreationResult { const PlaylistCreationResult({this.id}); - factory PlaylistCreationResult.fromJson(Map json) => - _$PlaylistCreationResultFromJson(json); + factory PlaylistCreationResult.fromJson(Map json) => _$PlaylistCreationResultFromJson(json); static const toJsonFactory = _$PlaylistCreationResultToJson; Map toJson() => _$PlaylistCreationResultToJson(this); @@ -38729,16 +37218,14 @@ class PlaylistCreationResult { bool operator ==(Object other) { return identical(this, other) || (other is PlaylistCreationResult && - (identical(other.id, id) || - const DeepCollectionEquality().equals(other.id, id))); + (identical(other.id, id) || const DeepCollectionEquality().equals(other.id, id))); } @override String toString() => jsonEncode(this); @override - int get hashCode => - const DeepCollectionEquality().hash(id) ^ runtimeType.hashCode; + int get hashCode => const DeepCollectionEquality().hash(id) ^ runtimeType.hashCode; } extension $PlaylistCreationResultExtension on PlaylistCreationResult { @@ -38755,8 +37242,7 @@ extension $PlaylistCreationResultExtension on PlaylistCreationResult { class PlaylistDto { const PlaylistDto({this.openAccess, this.shares, this.itemIds}); - factory PlaylistDto.fromJson(Map json) => - _$PlaylistDtoFromJson(json); + factory PlaylistDto.fromJson(Map json) => _$PlaylistDtoFromJson(json); static const toJsonFactory = _$PlaylistDtoToJson; Map toJson() => _$PlaylistDtoToJson(this); @@ -38782,10 +37268,8 @@ class PlaylistDto { other.openAccess, openAccess, )) && - (identical(other.shares, shares) || - const DeepCollectionEquality().equals(other.shares, shares)) && - (identical(other.itemIds, itemIds) || - const DeepCollectionEquality().equals(other.itemIds, itemIds))); + (identical(other.shares, shares) || const DeepCollectionEquality().equals(other.shares, shares)) && + (identical(other.itemIds, itemIds) || const DeepCollectionEquality().equals(other.itemIds, itemIds))); } @override @@ -38829,8 +37313,7 @@ extension $PlaylistDtoExtension on PlaylistDto { class PlaylistUserPermissions { const PlaylistUserPermissions({this.userId, this.canEdit}); - factory PlaylistUserPermissions.fromJson(Map json) => - _$PlaylistUserPermissionsFromJson(json); + factory PlaylistUserPermissions.fromJson(Map json) => _$PlaylistUserPermissionsFromJson(json); static const toJsonFactory = _$PlaylistUserPermissionsToJson; Map toJson() => _$PlaylistUserPermissionsToJson(this); @@ -38845,10 +37328,8 @@ class PlaylistUserPermissions { bool operator ==(Object other) { return identical(this, other) || (other is PlaylistUserPermissions && - (identical(other.userId, userId) || - const DeepCollectionEquality().equals(other.userId, userId)) && - (identical(other.canEdit, canEdit) || - const DeepCollectionEquality().equals(other.canEdit, canEdit))); + (identical(other.userId, userId) || const DeepCollectionEquality().equals(other.userId, userId)) && + (identical(other.canEdit, canEdit) || const DeepCollectionEquality().equals(other.canEdit, canEdit))); } @override @@ -38856,9 +37337,7 @@ class PlaylistUserPermissions { @override int get hashCode => - const DeepCollectionEquality().hash(userId) ^ - const DeepCollectionEquality().hash(canEdit) ^ - runtimeType.hashCode; + const DeepCollectionEquality().hash(userId) ^ const DeepCollectionEquality().hash(canEdit) ^ runtimeType.hashCode; } extension $PlaylistUserPermissionsExtension on PlaylistUserPermissions { @@ -38884,8 +37363,7 @@ extension $PlaylistUserPermissionsExtension on PlaylistUserPermissions { class PlayMessage { const PlayMessage({this.data, this.messageId, this.messageType}); - factory PlayMessage.fromJson(Map json) => - _$PlayMessageFromJson(json); + factory PlayMessage.fromJson(Map json) => _$PlayMessageFromJson(json); static const toJsonFactory = _$PlayMessageToJson; Map toJson() => _$PlayMessageToJson(this); @@ -38901,8 +37379,7 @@ class PlayMessage { fromJson: sessionMessageTypeMessageTypeNullableFromJson, ) final enums.SessionMessageType? messageType; - static enums.SessionMessageType? - sessionMessageTypeMessageTypeNullableFromJson(Object? value) => + static enums.SessionMessageType? sessionMessageTypeMessageTypeNullableFromJson(Object? value) => sessionMessageTypeNullableFromJson(value, enums.SessionMessageType.play); static const fromJsonFactory = _$PlayMessageFromJson; @@ -38911,8 +37388,7 @@ class PlayMessage { bool operator ==(Object other) { return identical(this, other) || (other is PlayMessage && - (identical(other.data, data) || - const DeepCollectionEquality().equals(other.data, data)) && + (identical(other.data, data) || const DeepCollectionEquality().equals(other.data, data)) && (identical(other.messageId, messageId) || const DeepCollectionEquality().equals( other.messageId, @@ -38975,8 +37451,7 @@ class PlayQueueUpdate { this.repeatMode, }); - factory PlayQueueUpdate.fromJson(Map json) => - _$PlayQueueUpdateFromJson(json); + factory PlayQueueUpdate.fromJson(Map json) => _$PlayQueueUpdateFromJson(json); static const toJsonFactory = _$PlayQueueUpdateToJson; Map toJson() => _$PlayQueueUpdateToJson(this); @@ -39022,8 +37497,7 @@ class PlayQueueUpdate { bool operator ==(Object other) { return identical(this, other) || (other is PlayQueueUpdate && - (identical(other.reason, reason) || - const DeepCollectionEquality().equals(other.reason, reason)) && + (identical(other.reason, reason) || const DeepCollectionEquality().equals(other.reason, reason)) && (identical(other.lastUpdate, lastUpdate) || const DeepCollectionEquality().equals( other.lastUpdate, @@ -39114,12 +37588,8 @@ extension $PlayQueueUpdateExtension on PlayQueueUpdate { reason: (reason != null ? reason.value : this.reason), lastUpdate: (lastUpdate != null ? lastUpdate.value : this.lastUpdate), playlist: (playlist != null ? playlist.value : this.playlist), - playingItemIndex: (playingItemIndex != null - ? playingItemIndex.value - : this.playingItemIndex), - startPositionTicks: (startPositionTicks != null - ? startPositionTicks.value - : this.startPositionTicks), + playingItemIndex: (playingItemIndex != null ? playingItemIndex.value : this.playingItemIndex), + startPositionTicks: (startPositionTicks != null ? startPositionTicks.value : this.startPositionTicks), isPlaying: (isPlaying != null ? isPlaying.value : this.isPlaying), shuffleMode: (shuffleMode != null ? shuffleMode.value : this.shuffleMode), repeatMode: (repeatMode != null ? repeatMode.value : this.repeatMode), @@ -39140,8 +37610,7 @@ class PlayRequest { this.startIndex, }); - factory PlayRequest.fromJson(Map json) => - _$PlayRequestFromJson(json); + factory PlayRequest.fromJson(Map json) => _$PlayRequestFromJson(json); static const toJsonFactory = _$PlayRequestToJson; Map toJson() => _$PlayRequestToJson(this); @@ -39266,22 +37735,12 @@ extension $PlayRequestExtension on PlayRequest { }) { return PlayRequest( itemIds: (itemIds != null ? itemIds.value : this.itemIds), - startPositionTicks: (startPositionTicks != null - ? startPositionTicks.value - : this.startPositionTicks), + startPositionTicks: (startPositionTicks != null ? startPositionTicks.value : this.startPositionTicks), playCommand: (playCommand != null ? playCommand.value : this.playCommand), - controllingUserId: (controllingUserId != null - ? controllingUserId.value - : this.controllingUserId), - subtitleStreamIndex: (subtitleStreamIndex != null - ? subtitleStreamIndex.value - : this.subtitleStreamIndex), - audioStreamIndex: (audioStreamIndex != null - ? audioStreamIndex.value - : this.audioStreamIndex), - mediaSourceId: (mediaSourceId != null - ? mediaSourceId.value - : this.mediaSourceId), + controllingUserId: (controllingUserId != null ? controllingUserId.value : this.controllingUserId), + subtitleStreamIndex: (subtitleStreamIndex != null ? subtitleStreamIndex.value : this.subtitleStreamIndex), + audioStreamIndex: (audioStreamIndex != null ? audioStreamIndex.value : this.audioStreamIndex), + mediaSourceId: (mediaSourceId != null ? mediaSourceId.value : this.mediaSourceId), startIndex: (startIndex != null ? startIndex.value : this.startIndex), ); } @@ -39295,8 +37754,7 @@ class PlayRequestDto { this.startPositionTicks, }); - factory PlayRequestDto.fromJson(Map json) => - _$PlayRequestDtoFromJson(json); + factory PlayRequestDto.fromJson(Map json) => _$PlayRequestDtoFromJson(json); static const toJsonFactory = _$PlayRequestDtoToJson; Map toJson() => _$PlayRequestDtoToJson(this); @@ -39360,15 +37818,9 @@ extension $PlayRequestDtoExtension on PlayRequestDto { Wrapped? startPositionTicks, }) { return PlayRequestDto( - playingQueue: (playingQueue != null - ? playingQueue.value - : this.playingQueue), - playingItemPosition: (playingItemPosition != null - ? playingItemPosition.value - : this.playingItemPosition), - startPositionTicks: (startPositionTicks != null - ? startPositionTicks.value - : this.startPositionTicks), + playingQueue: (playingQueue != null ? playingQueue.value : this.playingQueue), + playingItemPosition: (playingItemPosition != null ? playingItemPosition.value : this.playingItemPosition), + startPositionTicks: (startPositionTicks != null ? startPositionTicks.value : this.startPositionTicks), ); } } @@ -39377,8 +37829,7 @@ extension $PlayRequestDtoExtension on PlayRequestDto { class PlaystateMessage { const PlaystateMessage({this.data, this.messageId, this.messageType}); - factory PlaystateMessage.fromJson(Map json) => - _$PlaystateMessageFromJson(json); + factory PlaystateMessage.fromJson(Map json) => _$PlaystateMessageFromJson(json); static const toJsonFactory = _$PlaystateMessageToJson; Map toJson() => _$PlaystateMessageToJson(this); @@ -39394,8 +37845,7 @@ class PlaystateMessage { fromJson: sessionMessageTypeMessageTypeNullableFromJson, ) final enums.SessionMessageType? messageType; - static enums.SessionMessageType? - sessionMessageTypeMessageTypeNullableFromJson(Object? value) => + static enums.SessionMessageType? sessionMessageTypeMessageTypeNullableFromJson(Object? value) => sessionMessageTypeNullableFromJson( value, enums.SessionMessageType.playstate, @@ -39407,8 +37857,7 @@ class PlaystateMessage { bool operator ==(Object other) { return identical(this, other) || (other is PlaystateMessage && - (identical(other.data, data) || - const DeepCollectionEquality().equals(other.data, data)) && + (identical(other.data, data) || const DeepCollectionEquality().equals(other.data, data)) && (identical(other.messageId, messageId) || const DeepCollectionEquality().equals( other.messageId, @@ -39466,8 +37915,7 @@ class PlaystateRequest { this.controllingUserId, }); - factory PlaystateRequest.fromJson(Map json) => - _$PlaystateRequestFromJson(json); + factory PlaystateRequest.fromJson(Map json) => _$PlaystateRequestFromJson(json); static const toJsonFactory = _$PlaystateRequestToJson; Map toJson() => _$PlaystateRequestToJson(this); @@ -39537,12 +37985,8 @@ extension $PlaystateRequestExtension on PlaystateRequest { }) { return PlaystateRequest( command: (command != null ? command.value : this.command), - seekPositionTicks: (seekPositionTicks != null - ? seekPositionTicks.value - : this.seekPositionTicks), - controllingUserId: (controllingUserId != null - ? controllingUserId.value - : this.controllingUserId), + seekPositionTicks: (seekPositionTicks != null ? seekPositionTicks.value : this.seekPositionTicks), + controllingUserId: (controllingUserId != null ? controllingUserId.value : this.controllingUserId), ); } } @@ -39560,8 +38004,7 @@ class PluginInfo { this.status, }); - factory PluginInfo.fromJson(Map json) => - _$PluginInfoFromJson(json); + factory PluginInfo.fromJson(Map json) => _$PluginInfoFromJson(json); static const toJsonFactory = _$PluginInfoToJson; Map toJson() => _$PluginInfoToJson(this); @@ -39593,8 +38036,7 @@ class PluginInfo { bool operator ==(Object other) { return identical(this, other) || (other is PluginInfo && - (identical(other.name, name) || - const DeepCollectionEquality().equals(other.name, name)) && + (identical(other.name, name) || const DeepCollectionEquality().equals(other.name, name)) && (identical(other.version, version) || const DeepCollectionEquality().equals( other.version, @@ -39610,8 +38052,7 @@ class PluginInfo { other.description, description, )) && - (identical(other.id, id) || - const DeepCollectionEquality().equals(other.id, id)) && + (identical(other.id, id) || const DeepCollectionEquality().equals(other.id, id)) && (identical(other.canUninstall, canUninstall) || const DeepCollectionEquality().equals( other.canUninstall, @@ -39622,8 +38063,7 @@ class PluginInfo { other.hasImage, hasImage, )) && - (identical(other.status, status) || - const DeepCollectionEquality().equals(other.status, status))); + (identical(other.status, status) || const DeepCollectionEquality().equals(other.status, status))); } @override @@ -39656,8 +38096,7 @@ extension $PluginInfoExtension on PluginInfo { return PluginInfo( name: name ?? this.name, version: version ?? this.version, - configurationFileName: - configurationFileName ?? this.configurationFileName, + configurationFileName: configurationFileName ?? this.configurationFileName, description: description ?? this.description, id: id ?? this.id, canUninstall: canUninstall ?? this.canUninstall, @@ -39679,14 +38118,10 @@ extension $PluginInfoExtension on PluginInfo { return PluginInfo( name: (name != null ? name.value : this.name), version: (version != null ? version.value : this.version), - configurationFileName: (configurationFileName != null - ? configurationFileName.value - : this.configurationFileName), + configurationFileName: (configurationFileName != null ? configurationFileName.value : this.configurationFileName), description: (description != null ? description.value : this.description), id: (id != null ? id.value : this.id), - canUninstall: (canUninstall != null - ? canUninstall.value - : this.canUninstall), + canUninstall: (canUninstall != null ? canUninstall.value : this.canUninstall), hasImage: (hasImage != null ? hasImage.value : this.hasImage), status: (status != null ? status.value : this.status), ); @@ -39703,11 +38138,11 @@ class PluginInstallationCancelledMessage { factory PluginInstallationCancelledMessage.fromJson( Map json, - ) => _$PluginInstallationCancelledMessageFromJson(json); + ) => + _$PluginInstallationCancelledMessageFromJson(json); static const toJsonFactory = _$PluginInstallationCancelledMessageToJson; - Map toJson() => - _$PluginInstallationCancelledMessageToJson(this); + Map toJson() => _$PluginInstallationCancelledMessageToJson(this); @JsonKey(name: 'Data', includeIfNull: false) final InstallationInfo? data; @@ -39720,8 +38155,7 @@ class PluginInstallationCancelledMessage { fromJson: sessionMessageTypeMessageTypeNullableFromJson, ) final enums.SessionMessageType? messageType; - static enums.SessionMessageType? - sessionMessageTypeMessageTypeNullableFromJson(Object? value) => + static enums.SessionMessageType? sessionMessageTypeMessageTypeNullableFromJson(Object? value) => sessionMessageTypeNullableFromJson( value, enums.SessionMessageType.packageinstallationcancelled, @@ -39733,8 +38167,7 @@ class PluginInstallationCancelledMessage { bool operator ==(Object other) { return identical(this, other) || (other is PluginInstallationCancelledMessage && - (identical(other.data, data) || - const DeepCollectionEquality().equals(other.data, data)) && + (identical(other.data, data) || const DeepCollectionEquality().equals(other.data, data)) && (identical(other.messageId, messageId) || const DeepCollectionEquality().equals( other.messageId, @@ -39758,8 +38191,7 @@ class PluginInstallationCancelledMessage { runtimeType.hashCode; } -extension $PluginInstallationCancelledMessageExtension - on PluginInstallationCancelledMessage { +extension $PluginInstallationCancelledMessageExtension on PluginInstallationCancelledMessage { PluginInstallationCancelledMessage copyWith({ InstallationInfo? data, String? messageId, @@ -39795,11 +38227,11 @@ class PluginInstallationCompletedMessage { factory PluginInstallationCompletedMessage.fromJson( Map json, - ) => _$PluginInstallationCompletedMessageFromJson(json); + ) => + _$PluginInstallationCompletedMessageFromJson(json); static const toJsonFactory = _$PluginInstallationCompletedMessageToJson; - Map toJson() => - _$PluginInstallationCompletedMessageToJson(this); + Map toJson() => _$PluginInstallationCompletedMessageToJson(this); @JsonKey(name: 'Data', includeIfNull: false) final InstallationInfo? data; @@ -39812,8 +38244,7 @@ class PluginInstallationCompletedMessage { fromJson: sessionMessageTypeMessageTypeNullableFromJson, ) final enums.SessionMessageType? messageType; - static enums.SessionMessageType? - sessionMessageTypeMessageTypeNullableFromJson(Object? value) => + static enums.SessionMessageType? sessionMessageTypeMessageTypeNullableFromJson(Object? value) => sessionMessageTypeNullableFromJson( value, enums.SessionMessageType.packageinstallationcompleted, @@ -39825,8 +38256,7 @@ class PluginInstallationCompletedMessage { bool operator ==(Object other) { return identical(this, other) || (other is PluginInstallationCompletedMessage && - (identical(other.data, data) || - const DeepCollectionEquality().equals(other.data, data)) && + (identical(other.data, data) || const DeepCollectionEquality().equals(other.data, data)) && (identical(other.messageId, messageId) || const DeepCollectionEquality().equals( other.messageId, @@ -39850,8 +38280,7 @@ class PluginInstallationCompletedMessage { runtimeType.hashCode; } -extension $PluginInstallationCompletedMessageExtension - on PluginInstallationCompletedMessage { +extension $PluginInstallationCompletedMessageExtension on PluginInstallationCompletedMessage { PluginInstallationCompletedMessage copyWith({ InstallationInfo? data, String? messageId, @@ -39889,8 +38318,7 @@ class PluginInstallationFailedMessage { _$PluginInstallationFailedMessageFromJson(json); static const toJsonFactory = _$PluginInstallationFailedMessageToJson; - Map toJson() => - _$PluginInstallationFailedMessageToJson(this); + Map toJson() => _$PluginInstallationFailedMessageToJson(this); @JsonKey(name: 'Data', includeIfNull: false) final InstallationInfo? data; @@ -39903,8 +38331,7 @@ class PluginInstallationFailedMessage { fromJson: sessionMessageTypeMessageTypeNullableFromJson, ) final enums.SessionMessageType? messageType; - static enums.SessionMessageType? - sessionMessageTypeMessageTypeNullableFromJson(Object? value) => + static enums.SessionMessageType? sessionMessageTypeMessageTypeNullableFromJson(Object? value) => sessionMessageTypeNullableFromJson( value, enums.SessionMessageType.packageinstallationfailed, @@ -39916,8 +38343,7 @@ class PluginInstallationFailedMessage { bool operator ==(Object other) { return identical(this, other) || (other is PluginInstallationFailedMessage && - (identical(other.data, data) || - const DeepCollectionEquality().equals(other.data, data)) && + (identical(other.data, data) || const DeepCollectionEquality().equals(other.data, data)) && (identical(other.messageId, messageId) || const DeepCollectionEquality().equals( other.messageId, @@ -39941,8 +38367,7 @@ class PluginInstallationFailedMessage { runtimeType.hashCode; } -extension $PluginInstallationFailedMessageExtension - on PluginInstallationFailedMessage { +extension $PluginInstallationFailedMessageExtension on PluginInstallationFailedMessage { PluginInstallationFailedMessage copyWith({ InstallationInfo? data, String? messageId, @@ -39972,8 +38397,7 @@ extension $PluginInstallationFailedMessageExtension class PluginInstallingMessage { const PluginInstallingMessage({this.data, this.messageId, this.messageType}); - factory PluginInstallingMessage.fromJson(Map json) => - _$PluginInstallingMessageFromJson(json); + factory PluginInstallingMessage.fromJson(Map json) => _$PluginInstallingMessageFromJson(json); static const toJsonFactory = _$PluginInstallingMessageToJson; Map toJson() => _$PluginInstallingMessageToJson(this); @@ -39989,8 +38413,7 @@ class PluginInstallingMessage { fromJson: sessionMessageTypeMessageTypeNullableFromJson, ) final enums.SessionMessageType? messageType; - static enums.SessionMessageType? - sessionMessageTypeMessageTypeNullableFromJson(Object? value) => + static enums.SessionMessageType? sessionMessageTypeMessageTypeNullableFromJson(Object? value) => sessionMessageTypeNullableFromJson( value, enums.SessionMessageType.packageinstalling, @@ -40002,8 +38425,7 @@ class PluginInstallingMessage { bool operator ==(Object other) { return identical(this, other) || (other is PluginInstallingMessage && - (identical(other.data, data) || - const DeepCollectionEquality().equals(other.data, data)) && + (identical(other.data, data) || const DeepCollectionEquality().equals(other.data, data)) && (identical(other.messageId, messageId) || const DeepCollectionEquality().equals( other.messageId, @@ -40057,8 +38479,7 @@ extension $PluginInstallingMessageExtension on PluginInstallingMessage { class PluginUninstalledMessage { const PluginUninstalledMessage({this.data, this.messageId, this.messageType}); - factory PluginUninstalledMessage.fromJson(Map json) => - _$PluginUninstalledMessageFromJson(json); + factory PluginUninstalledMessage.fromJson(Map json) => _$PluginUninstalledMessageFromJson(json); static const toJsonFactory = _$PluginUninstalledMessageToJson; Map toJson() => _$PluginUninstalledMessageToJson(this); @@ -40074,8 +38495,7 @@ class PluginUninstalledMessage { fromJson: sessionMessageTypeMessageTypeNullableFromJson, ) final enums.SessionMessageType? messageType; - static enums.SessionMessageType? - sessionMessageTypeMessageTypeNullableFromJson(Object? value) => + static enums.SessionMessageType? sessionMessageTypeMessageTypeNullableFromJson(Object? value) => sessionMessageTypeNullableFromJson( value, enums.SessionMessageType.packageuninstalled, @@ -40087,8 +38507,7 @@ class PluginUninstalledMessage { bool operator ==(Object other) { return identical(this, other) || (other is PluginUninstalledMessage && - (identical(other.data, data) || - const DeepCollectionEquality().equals(other.data, data)) && + (identical(other.data, data) || const DeepCollectionEquality().equals(other.data, data)) && (identical(other.messageId, messageId) || const DeepCollectionEquality().equals( other.messageId, @@ -40142,8 +38561,7 @@ extension $PluginUninstalledMessageExtension on PluginUninstalledMessage { class PreviousItemRequestDto { const PreviousItemRequestDto({this.playlistItemId}); - factory PreviousItemRequestDto.fromJson(Map json) => - _$PreviousItemRequestDtoFromJson(json); + factory PreviousItemRequestDto.fromJson(Map json) => _$PreviousItemRequestDtoFromJson(json); static const toJsonFactory = _$PreviousItemRequestDtoToJson; Map toJson() => _$PreviousItemRequestDtoToJson(this); @@ -40167,9 +38585,7 @@ class PreviousItemRequestDto { String toString() => jsonEncode(this); @override - int get hashCode => - const DeepCollectionEquality().hash(playlistItemId) ^ - runtimeType.hashCode; + int get hashCode => const DeepCollectionEquality().hash(playlistItemId) ^ runtimeType.hashCode; } extension $PreviousItemRequestDtoExtension on PreviousItemRequestDto { @@ -40181,9 +38597,7 @@ extension $PreviousItemRequestDtoExtension on PreviousItemRequestDto { PreviousItemRequestDto copyWithWrapped({Wrapped? playlistItemId}) { return PreviousItemRequestDto( - playlistItemId: (playlistItemId != null - ? playlistItemId.value - : this.playlistItemId), + playlistItemId: (playlistItemId != null ? playlistItemId.value : this.playlistItemId), ); } } @@ -40198,8 +38612,7 @@ class ProblemDetails { this.instance, }); - factory ProblemDetails.fromJson(Map json) => - _$ProblemDetailsFromJson(json); + factory ProblemDetails.fromJson(Map json) => _$ProblemDetailsFromJson(json); static const toJsonFactory = _$ProblemDetailsToJson; Map toJson() => _$ProblemDetailsToJson(this); @@ -40220,14 +38633,10 @@ class ProblemDetails { bool operator ==(Object other) { return identical(this, other) || (other is ProblemDetails && - (identical(other.type, type) || - const DeepCollectionEquality().equals(other.type, type)) && - (identical(other.title, title) || - const DeepCollectionEquality().equals(other.title, title)) && - (identical(other.status, status) || - const DeepCollectionEquality().equals(other.status, status)) && - (identical(other.detail, detail) || - const DeepCollectionEquality().equals(other.detail, detail)) && + (identical(other.type, type) || const DeepCollectionEquality().equals(other.type, type)) && + (identical(other.title, title) || const DeepCollectionEquality().equals(other.title, title)) && + (identical(other.status, status) || const DeepCollectionEquality().equals(other.status, status)) && + (identical(other.detail, detail) || const DeepCollectionEquality().equals(other.detail, detail)) && (identical(other.instance, instance) || const DeepCollectionEquality().equals( other.instance, @@ -40291,8 +38700,7 @@ class ProfileCondition { this.isRequired, }); - factory ProfileCondition.fromJson(Map json) => - _$ProfileConditionFromJson(json); + factory ProfileCondition.fromJson(Map json) => _$ProfileConditionFromJson(json); static const toJsonFactory = _$ProfileConditionToJson; Map toJson() => _$ProfileConditionToJson(this); @@ -40331,8 +38739,7 @@ class ProfileCondition { other.property, property, )) && - (identical(other.$Value, $Value) || - const DeepCollectionEquality().equals(other.$Value, $Value)) && + (identical(other.$Value, $Value) || const DeepCollectionEquality().equals(other.$Value, $Value)) && (identical(other.isRequired, isRequired) || const DeepCollectionEquality().equals( other.isRequired, @@ -40394,8 +38801,7 @@ class PublicSystemInfo { this.startupWizardCompleted, }); - factory PublicSystemInfo.fromJson(Map json) => - _$PublicSystemInfoFromJson(json); + factory PublicSystemInfo.fromJson(Map json) => _$PublicSystemInfoFromJson(json); static const toJsonFactory = _$PublicSystemInfoToJson; Map toJson() => _$PublicSystemInfoToJson(this); @@ -40446,8 +38852,7 @@ class PublicSystemInfo { other.operatingSystem, operatingSystem, )) && - (identical(other.id, id) || - const DeepCollectionEquality().equals(other.id, id)) && + (identical(other.id, id) || const DeepCollectionEquality().equals(other.id, id)) && (identical(other.startupWizardCompleted, startupWizardCompleted) || const DeepCollectionEquality().equals( other.startupWizardCompleted, @@ -40487,8 +38892,7 @@ extension $PublicSystemInfoExtension on PublicSystemInfo { productName: productName ?? this.productName, operatingSystem: operatingSystem ?? this.operatingSystem, id: id ?? this.id, - startupWizardCompleted: - startupWizardCompleted ?? this.startupWizardCompleted, + startupWizardCompleted: startupWizardCompleted ?? this.startupWizardCompleted, ); } @@ -40502,19 +38906,14 @@ extension $PublicSystemInfoExtension on PublicSystemInfo { Wrapped? startupWizardCompleted, }) { return PublicSystemInfo( - localAddress: (localAddress != null - ? localAddress.value - : this.localAddress), + localAddress: (localAddress != null ? localAddress.value : this.localAddress), serverName: (serverName != null ? serverName.value : this.serverName), version: (version != null ? version.value : this.version), productName: (productName != null ? productName.value : this.productName), - operatingSystem: (operatingSystem != null - ? operatingSystem.value - : this.operatingSystem), + operatingSystem: (operatingSystem != null ? operatingSystem.value : this.operatingSystem), id: (id != null ? id.value : this.id), - startupWizardCompleted: (startupWizardCompleted != null - ? startupWizardCompleted.value - : this.startupWizardCompleted), + startupWizardCompleted: + (startupWizardCompleted != null ? startupWizardCompleted.value : this.startupWizardCompleted), ); } } @@ -40523,8 +38922,7 @@ extension $PublicSystemInfoExtension on PublicSystemInfo { class QueryFilters { const QueryFilters({this.genres, this.tags}); - factory QueryFilters.fromJson(Map json) => - _$QueryFiltersFromJson(json); + factory QueryFilters.fromJson(Map json) => _$QueryFiltersFromJson(json); static const toJsonFactory = _$QueryFiltersToJson; Map toJson() => _$QueryFiltersToJson(this); @@ -40539,10 +38937,8 @@ class QueryFilters { bool operator ==(Object other) { return identical(this, other) || (other is QueryFilters && - (identical(other.genres, genres) || - const DeepCollectionEquality().equals(other.genres, genres)) && - (identical(other.tags, tags) || - const DeepCollectionEquality().equals(other.tags, tags))); + (identical(other.genres, genres) || const DeepCollectionEquality().equals(other.genres, genres)) && + (identical(other.tags, tags) || const DeepCollectionEquality().equals(other.tags, tags))); } @override @@ -40550,9 +38946,7 @@ class QueryFilters { @override int get hashCode => - const DeepCollectionEquality().hash(genres) ^ - const DeepCollectionEquality().hash(tags) ^ - runtimeType.hashCode; + const DeepCollectionEquality().hash(genres) ^ const DeepCollectionEquality().hash(tags) ^ runtimeType.hashCode; } extension $QueryFiltersExtension on QueryFilters { @@ -40580,8 +38974,7 @@ class QueryFiltersLegacy { this.years, }); - factory QueryFiltersLegacy.fromJson(Map json) => - _$QueryFiltersLegacyFromJson(json); + factory QueryFiltersLegacy.fromJson(Map json) => _$QueryFiltersLegacyFromJson(json); static const toJsonFactory = _$QueryFiltersLegacyToJson; Map toJson() => _$QueryFiltersLegacyToJson(this); @@ -40604,17 +38997,14 @@ class QueryFiltersLegacy { bool operator ==(Object other) { return identical(this, other) || (other is QueryFiltersLegacy && - (identical(other.genres, genres) || - const DeepCollectionEquality().equals(other.genres, genres)) && - (identical(other.tags, tags) || - const DeepCollectionEquality().equals(other.tags, tags)) && + (identical(other.genres, genres) || const DeepCollectionEquality().equals(other.genres, genres)) && + (identical(other.tags, tags) || const DeepCollectionEquality().equals(other.tags, tags)) && (identical(other.officialRatings, officialRatings) || const DeepCollectionEquality().equals( other.officialRatings, officialRatings, )) && - (identical(other.years, years) || - const DeepCollectionEquality().equals(other.years, years))); + (identical(other.years, years) || const DeepCollectionEquality().equals(other.years, years))); } @override @@ -40653,9 +39043,7 @@ extension $QueryFiltersLegacyExtension on QueryFiltersLegacy { return QueryFiltersLegacy( genres: (genres != null ? genres.value : this.genres), tags: (tags != null ? tags.value : this.tags), - officialRatings: (officialRatings != null - ? officialRatings.value - : this.officialRatings), + officialRatings: (officialRatings != null ? officialRatings.value : this.officialRatings), years: (years != null ? years.value : this.years), ); } @@ -40665,8 +39053,7 @@ extension $QueryFiltersLegacyExtension on QueryFiltersLegacy { class QueueItem { const QueueItem({this.id, this.playlistItemId}); - factory QueueItem.fromJson(Map json) => - _$QueueItemFromJson(json); + factory QueueItem.fromJson(Map json) => _$QueueItemFromJson(json); static const toJsonFactory = _$QueueItemToJson; Map toJson() => _$QueueItemToJson(this); @@ -40681,8 +39068,7 @@ class QueueItem { bool operator ==(Object other) { return identical(this, other) || (other is QueueItem && - (identical(other.id, id) || - const DeepCollectionEquality().equals(other.id, id)) && + (identical(other.id, id) || const DeepCollectionEquality().equals(other.id, id)) && (identical(other.playlistItemId, playlistItemId) || const DeepCollectionEquality().equals( other.playlistItemId, @@ -40714,9 +39100,7 @@ extension $QueueItemExtension on QueueItem { }) { return QueueItem( id: (id != null ? id.value : this.id), - playlistItemId: (playlistItemId != null - ? playlistItemId.value - : this.playlistItemId), + playlistItemId: (playlistItemId != null ? playlistItemId.value : this.playlistItemId), ); } } @@ -40725,8 +39109,7 @@ extension $QueueItemExtension on QueueItem { class QueueRequestDto { const QueueRequestDto({this.itemIds, this.mode}); - factory QueueRequestDto.fromJson(Map json) => - _$QueueRequestDtoFromJson(json); + factory QueueRequestDto.fromJson(Map json) => _$QueueRequestDtoFromJson(json); static const toJsonFactory = _$QueueRequestDtoToJson; Map toJson() => _$QueueRequestDtoToJson(this); @@ -40751,8 +39134,7 @@ class QueueRequestDto { other.itemIds, itemIds, )) && - (identical(other.mode, mode) || - const DeepCollectionEquality().equals(other.mode, mode))); + (identical(other.mode, mode) || const DeepCollectionEquality().equals(other.mode, mode))); } @override @@ -40760,9 +39142,7 @@ class QueueRequestDto { @override int get hashCode => - const DeepCollectionEquality().hash(itemIds) ^ - const DeepCollectionEquality().hash(mode) ^ - runtimeType.hashCode; + const DeepCollectionEquality().hash(itemIds) ^ const DeepCollectionEquality().hash(mode) ^ runtimeType.hashCode; } extension $QueueRequestDtoExtension on QueueRequestDto { @@ -40791,8 +39171,7 @@ extension $QueueRequestDtoExtension on QueueRequestDto { class QuickConnectDto { const QuickConnectDto({required this.secret}); - factory QuickConnectDto.fromJson(Map json) => - _$QuickConnectDtoFromJson(json); + factory QuickConnectDto.fromJson(Map json) => _$QuickConnectDtoFromJson(json); static const toJsonFactory = _$QuickConnectDtoToJson; Map toJson() => _$QuickConnectDtoToJson(this); @@ -40805,16 +39184,14 @@ class QuickConnectDto { bool operator ==(Object other) { return identical(this, other) || (other is QuickConnectDto && - (identical(other.secret, secret) || - const DeepCollectionEquality().equals(other.secret, secret))); + (identical(other.secret, secret) || const DeepCollectionEquality().equals(other.secret, secret))); } @override String toString() => jsonEncode(this); @override - int get hashCode => - const DeepCollectionEquality().hash(secret) ^ runtimeType.hashCode; + int get hashCode => const DeepCollectionEquality().hash(secret) ^ runtimeType.hashCode; } extension $QuickConnectDtoExtension on QuickConnectDto { @@ -40842,8 +39219,7 @@ class QuickConnectResult { this.dateAdded, }); - factory QuickConnectResult.fromJson(Map json) => - _$QuickConnectResultFromJson(json); + factory QuickConnectResult.fromJson(Map json) => _$QuickConnectResultFromJson(json); static const toJsonFactory = _$QuickConnectResultToJson; Map toJson() => _$QuickConnectResultToJson(this); @@ -40875,10 +39251,8 @@ class QuickConnectResult { other.authenticated, authenticated, )) && - (identical(other.secret, secret) || - const DeepCollectionEquality().equals(other.secret, secret)) && - (identical(other.code, code) || - const DeepCollectionEquality().equals(other.code, code)) && + (identical(other.secret, secret) || const DeepCollectionEquality().equals(other.secret, secret)) && + (identical(other.code, code) || const DeepCollectionEquality().equals(other.code, code)) && (identical(other.deviceId, deviceId) || const DeepCollectionEquality().equals( other.deviceId, @@ -40956,9 +39330,7 @@ extension $QuickConnectResultExtension on QuickConnectResult { Wrapped? dateAdded, }) { return QuickConnectResult( - authenticated: (authenticated != null - ? authenticated.value - : this.authenticated), + authenticated: (authenticated != null ? authenticated.value : this.authenticated), secret: (secret != null ? secret.value : this.secret), code: (code != null ? code.value : this.code), deviceId: (deviceId != null ? deviceId.value : this.deviceId), @@ -40979,8 +39351,7 @@ class ReadyRequestDto { this.playlistItemId, }); - factory ReadyRequestDto.fromJson(Map json) => - _$ReadyRequestDtoFromJson(json); + factory ReadyRequestDto.fromJson(Map json) => _$ReadyRequestDtoFromJson(json); static const toJsonFactory = _$ReadyRequestDtoToJson; Map toJson() => _$ReadyRequestDtoToJson(this); @@ -40999,8 +39370,7 @@ class ReadyRequestDto { bool operator ==(Object other) { return identical(this, other) || (other is ReadyRequestDto && - (identical(other.when, when) || - const DeepCollectionEquality().equals(other.when, when)) && + (identical(other.when, when) || const DeepCollectionEquality().equals(other.when, when)) && (identical(other.positionTicks, positionTicks) || const DeepCollectionEquality().equals( other.positionTicks, @@ -41053,13 +39423,9 @@ extension $ReadyRequestDtoExtension on ReadyRequestDto { }) { return ReadyRequestDto( when: (when != null ? when.value : this.when), - positionTicks: (positionTicks != null - ? positionTicks.value - : this.positionTicks), + positionTicks: (positionTicks != null ? positionTicks.value : this.positionTicks), isPlaying: (isPlaying != null ? isPlaying.value : this.isPlaying), - playlistItemId: (playlistItemId != null - ? playlistItemId.value - : this.playlistItemId), + playlistItemId: (playlistItemId != null ? playlistItemId.value : this.playlistItemId), ); } } @@ -41073,8 +39439,7 @@ class RecommendationDto { this.categoryId, }); - factory RecommendationDto.fromJson(Map json) => - _$RecommendationDtoFromJson(json); + factory RecommendationDto.fromJson(Map json) => _$RecommendationDtoFromJson(json); static const toJsonFactory = _$RecommendationDtoToJson; Map toJson() => _$RecommendationDtoToJson(this); @@ -41098,8 +39463,7 @@ class RecommendationDto { bool operator ==(Object other) { return identical(this, other) || (other is RecommendationDto && - (identical(other.items, items) || - const DeepCollectionEquality().equals(other.items, items)) && + (identical(other.items, items) || const DeepCollectionEquality().equals(other.items, items)) && (identical(other.recommendationType, recommendationType) || const DeepCollectionEquality().equals( other.recommendationType, @@ -41152,12 +39516,8 @@ extension $RecommendationDtoExtension on RecommendationDto { }) { return RecommendationDto( items: (items != null ? items.value : this.items), - recommendationType: (recommendationType != null - ? recommendationType.value - : this.recommendationType), - baselineItemName: (baselineItemName != null - ? baselineItemName.value - : this.baselineItemName), + recommendationType: (recommendationType != null ? recommendationType.value : this.recommendationType), + baselineItemName: (baselineItemName != null ? baselineItemName.value : this.baselineItemName), categoryId: (categoryId != null ? categoryId.value : this.categoryId), ); } @@ -41167,8 +39527,7 @@ extension $RecommendationDtoExtension on RecommendationDto { class RefreshProgressMessage { const RefreshProgressMessage({this.data, this.messageId, this.messageType}); - factory RefreshProgressMessage.fromJson(Map json) => - _$RefreshProgressMessageFromJson(json); + factory RefreshProgressMessage.fromJson(Map json) => _$RefreshProgressMessageFromJson(json); static const toJsonFactory = _$RefreshProgressMessageToJson; Map toJson() => _$RefreshProgressMessageToJson(this); @@ -41184,8 +39543,7 @@ class RefreshProgressMessage { fromJson: sessionMessageTypeMessageTypeNullableFromJson, ) final enums.SessionMessageType? messageType; - static enums.SessionMessageType? - sessionMessageTypeMessageTypeNullableFromJson(Object? value) => + static enums.SessionMessageType? sessionMessageTypeMessageTypeNullableFromJson(Object? value) => sessionMessageTypeNullableFromJson( value, enums.SessionMessageType.refreshprogress, @@ -41197,8 +39555,7 @@ class RefreshProgressMessage { bool operator ==(Object other) { return identical(this, other) || (other is RefreshProgressMessage && - (identical(other.data, data) || - const DeepCollectionEquality().equals(other.data, data)) && + (identical(other.data, data) || const DeepCollectionEquality().equals(other.data, data)) && (identical(other.messageId, messageId) || const DeepCollectionEquality().equals( other.messageId, @@ -41263,8 +39620,7 @@ class RemoteImageInfo { this.ratingType, }); - factory RemoteImageInfo.fromJson(Map json) => - _$RemoteImageInfoFromJson(json); + factory RemoteImageInfo.fromJson(Map json) => _$RemoteImageInfoFromJson(json); static const toJsonFactory = _$RemoteImageInfoToJson; Map toJson() => _$RemoteImageInfoToJson(this); @@ -41310,17 +39666,14 @@ class RemoteImageInfo { other.providerName, providerName, )) && - (identical(other.url, url) || - const DeepCollectionEquality().equals(other.url, url)) && + (identical(other.url, url) || const DeepCollectionEquality().equals(other.url, url)) && (identical(other.thumbnailUrl, thumbnailUrl) || const DeepCollectionEquality().equals( other.thumbnailUrl, thumbnailUrl, )) && - (identical(other.height, height) || - const DeepCollectionEquality().equals(other.height, height)) && - (identical(other.width, width) || - const DeepCollectionEquality().equals(other.width, width)) && + (identical(other.height, height) || const DeepCollectionEquality().equals(other.height, height)) && + (identical(other.width, width) || const DeepCollectionEquality().equals(other.width, width)) && (identical(other.communityRating, communityRating) || const DeepCollectionEquality().equals( other.communityRating, @@ -41336,8 +39689,7 @@ class RemoteImageInfo { other.language, language, )) && - (identical(other.type, type) || - const DeepCollectionEquality().equals(other.type, type)) && + (identical(other.type, type) || const DeepCollectionEquality().equals(other.type, type)) && (identical(other.ratingType, ratingType) || const DeepCollectionEquality().equals( other.ratingType, @@ -41403,18 +39755,12 @@ extension $RemoteImageInfoExtension on RemoteImageInfo { Wrapped? ratingType, }) { return RemoteImageInfo( - providerName: (providerName != null - ? providerName.value - : this.providerName), + providerName: (providerName != null ? providerName.value : this.providerName), url: (url != null ? url.value : this.url), - thumbnailUrl: (thumbnailUrl != null - ? thumbnailUrl.value - : this.thumbnailUrl), + thumbnailUrl: (thumbnailUrl != null ? thumbnailUrl.value : this.thumbnailUrl), height: (height != null ? height.value : this.height), width: (width != null ? width.value : this.width), - communityRating: (communityRating != null - ? communityRating.value - : this.communityRating), + communityRating: (communityRating != null ? communityRating.value : this.communityRating), voteCount: (voteCount != null ? voteCount.value : this.voteCount), language: (language != null ? language.value : this.language), type: (type != null ? type.value : this.type), @@ -41427,8 +39773,7 @@ extension $RemoteImageInfoExtension on RemoteImageInfo { class RemoteImageResult { const RemoteImageResult({this.images, this.totalRecordCount, this.providers}); - factory RemoteImageResult.fromJson(Map json) => - _$RemoteImageResultFromJson(json); + factory RemoteImageResult.fromJson(Map json) => _$RemoteImageResultFromJson(json); static const toJsonFactory = _$RemoteImageResultToJson; Map toJson() => _$RemoteImageResultToJson(this); @@ -41449,8 +39794,7 @@ class RemoteImageResult { bool operator ==(Object other) { return identical(this, other) || (other is RemoteImageResult && - (identical(other.images, images) || - const DeepCollectionEquality().equals(other.images, images)) && + (identical(other.images, images) || const DeepCollectionEquality().equals(other.images, images)) && (identical(other.totalRecordCount, totalRecordCount) || const DeepCollectionEquality().equals( other.totalRecordCount, @@ -41494,9 +39838,7 @@ extension $RemoteImageResultExtension on RemoteImageResult { }) { return RemoteImageResult( images: (images != null ? images.value : this.images), - totalRecordCount: (totalRecordCount != null - ? totalRecordCount.value - : this.totalRecordCount), + totalRecordCount: (totalRecordCount != null ? totalRecordCount.value : this.totalRecordCount), providers: (providers != null ? providers.value : this.providers), ); } @@ -41506,8 +39848,7 @@ extension $RemoteImageResultExtension on RemoteImageResult { class RemoteLyricInfoDto { const RemoteLyricInfoDto({this.id, this.providerName, this.lyrics}); - factory RemoteLyricInfoDto.fromJson(Map json) => - _$RemoteLyricInfoDtoFromJson(json); + factory RemoteLyricInfoDto.fromJson(Map json) => _$RemoteLyricInfoDtoFromJson(json); static const toJsonFactory = _$RemoteLyricInfoDtoToJson; Map toJson() => _$RemoteLyricInfoDtoToJson(this); @@ -41524,15 +39865,13 @@ class RemoteLyricInfoDto { bool operator ==(Object other) { return identical(this, other) || (other is RemoteLyricInfoDto && - (identical(other.id, id) || - const DeepCollectionEquality().equals(other.id, id)) && + (identical(other.id, id) || const DeepCollectionEquality().equals(other.id, id)) && (identical(other.providerName, providerName) || const DeepCollectionEquality().equals( other.providerName, providerName, )) && - (identical(other.lyrics, lyrics) || - const DeepCollectionEquality().equals(other.lyrics, lyrics))); + (identical(other.lyrics, lyrics) || const DeepCollectionEquality().equals(other.lyrics, lyrics))); } @override @@ -41566,9 +39905,7 @@ extension $RemoteLyricInfoDtoExtension on RemoteLyricInfoDto { }) { return RemoteLyricInfoDto( id: (id != null ? id.value : this.id), - providerName: (providerName != null - ? providerName.value - : this.providerName), + providerName: (providerName != null ? providerName.value : this.providerName), lyrics: (lyrics != null ? lyrics.value : this.lyrics), ); } @@ -41591,8 +39928,7 @@ class RemoteSearchResult { this.artists, }); - factory RemoteSearchResult.fromJson(Map json) => - _$RemoteSearchResultFromJson(json); + factory RemoteSearchResult.fromJson(Map json) => _$RemoteSearchResultFromJson(json); static const toJsonFactory = _$RemoteSearchResultToJson; Map toJson() => _$RemoteSearchResultToJson(this); @@ -41631,8 +39967,7 @@ class RemoteSearchResult { bool operator ==(Object other) { return identical(this, other) || (other is RemoteSearchResult && - (identical(other.name, name) || - const DeepCollectionEquality().equals(other.name, name)) && + (identical(other.name, name) || const DeepCollectionEquality().equals(other.name, name)) && (identical(other.providerIds, providerIds) || const DeepCollectionEquality().equals( other.providerIds, @@ -41683,8 +40018,7 @@ class RemoteSearchResult { other.albumArtist, albumArtist, )) && - (identical(other.artists, artists) || - const DeepCollectionEquality().equals(other.artists, artists))); + (identical(other.artists, artists) || const DeepCollectionEquality().equals(other.artists, artists))); } @override @@ -41755,23 +40089,13 @@ extension $RemoteSearchResultExtension on RemoteSearchResult { return RemoteSearchResult( name: (name != null ? name.value : this.name), providerIds: (providerIds != null ? providerIds.value : this.providerIds), - productionYear: (productionYear != null - ? productionYear.value - : this.productionYear), + productionYear: (productionYear != null ? productionYear.value : this.productionYear), indexNumber: (indexNumber != null ? indexNumber.value : this.indexNumber), - indexNumberEnd: (indexNumberEnd != null - ? indexNumberEnd.value - : this.indexNumberEnd), - parentIndexNumber: (parentIndexNumber != null - ? parentIndexNumber.value - : this.parentIndexNumber), - premiereDate: (premiereDate != null - ? premiereDate.value - : this.premiereDate), + indexNumberEnd: (indexNumberEnd != null ? indexNumberEnd.value : this.indexNumberEnd), + parentIndexNumber: (parentIndexNumber != null ? parentIndexNumber.value : this.parentIndexNumber), + premiereDate: (premiereDate != null ? premiereDate.value : this.premiereDate), imageUrl: (imageUrl != null ? imageUrl.value : this.imageUrl), - searchProviderName: (searchProviderName != null - ? searchProviderName.value - : this.searchProviderName), + searchProviderName: (searchProviderName != null ? searchProviderName.value : this.searchProviderName), overview: (overview != null ? overview.value : this.overview), albumArtist: (albumArtist != null ? albumArtist.value : this.albumArtist), artists: (artists != null ? artists.value : this.artists), @@ -41800,8 +40124,7 @@ class RemoteSubtitleInfo { this.hearingImpaired, }); - factory RemoteSubtitleInfo.fromJson(Map json) => - _$RemoteSubtitleInfoFromJson(json); + factory RemoteSubtitleInfo.fromJson(Map json) => _$RemoteSubtitleInfoFromJson(json); static const toJsonFactory = _$RemoteSubtitleInfoToJson; Map toJson() => _$RemoteSubtitleInfoToJson(this); @@ -41852,19 +40175,15 @@ class RemoteSubtitleInfo { other.threeLetterISOLanguageName, threeLetterISOLanguageName, )) && - (identical(other.id, id) || - const DeepCollectionEquality().equals(other.id, id)) && + (identical(other.id, id) || const DeepCollectionEquality().equals(other.id, id)) && (identical(other.providerName, providerName) || const DeepCollectionEquality().equals( other.providerName, providerName, )) && - (identical(other.name, name) || - const DeepCollectionEquality().equals(other.name, name)) && - (identical(other.format, format) || - const DeepCollectionEquality().equals(other.format, format)) && - (identical(other.author, author) || - const DeepCollectionEquality().equals(other.author, author)) && + (identical(other.name, name) || const DeepCollectionEquality().equals(other.name, name)) && + (identical(other.format, format) || const DeepCollectionEquality().equals(other.format, format)) && + (identical(other.author, author) || const DeepCollectionEquality().equals(other.author, author)) && (identical(other.comment, comment) || const DeepCollectionEquality().equals( other.comment, @@ -41905,8 +40224,7 @@ class RemoteSubtitleInfo { other.machineTranslated, machineTranslated, )) && - (identical(other.forced, forced) || - const DeepCollectionEquality().equals(other.forced, forced)) && + (identical(other.forced, forced) || const DeepCollectionEquality().equals(other.forced, forced)) && (identical(other.hearingImpaired, hearingImpaired) || const DeepCollectionEquality().equals( other.hearingImpaired, @@ -41958,8 +40276,7 @@ extension $RemoteSubtitleInfoExtension on RemoteSubtitleInfo { bool? hearingImpaired, }) { return RemoteSubtitleInfo( - threeLetterISOLanguageName: - threeLetterISOLanguageName ?? this.threeLetterISOLanguageName, + threeLetterISOLanguageName: threeLetterISOLanguageName ?? this.threeLetterISOLanguageName, id: id ?? this.id, providerName: providerName ?? this.providerName, name: name ?? this.name, @@ -41997,36 +40314,23 @@ extension $RemoteSubtitleInfoExtension on RemoteSubtitleInfo { Wrapped? hearingImpaired, }) { return RemoteSubtitleInfo( - threeLetterISOLanguageName: (threeLetterISOLanguageName != null - ? threeLetterISOLanguageName.value - : this.threeLetterISOLanguageName), + threeLetterISOLanguageName: + (threeLetterISOLanguageName != null ? threeLetterISOLanguageName.value : this.threeLetterISOLanguageName), id: (id != null ? id.value : this.id), - providerName: (providerName != null - ? providerName.value - : this.providerName), + providerName: (providerName != null ? providerName.value : this.providerName), name: (name != null ? name.value : this.name), format: (format != null ? format.value : this.format), author: (author != null ? author.value : this.author), comment: (comment != null ? comment.value : this.comment), dateCreated: (dateCreated != null ? dateCreated.value : this.dateCreated), - communityRating: (communityRating != null - ? communityRating.value - : this.communityRating), + communityRating: (communityRating != null ? communityRating.value : this.communityRating), frameRate: (frameRate != null ? frameRate.value : this.frameRate), - downloadCount: (downloadCount != null - ? downloadCount.value - : this.downloadCount), + downloadCount: (downloadCount != null ? downloadCount.value : this.downloadCount), isHashMatch: (isHashMatch != null ? isHashMatch.value : this.isHashMatch), - aiTranslated: (aiTranslated != null - ? aiTranslated.value - : this.aiTranslated), - machineTranslated: (machineTranslated != null - ? machineTranslated.value - : this.machineTranslated), + aiTranslated: (aiTranslated != null ? aiTranslated.value : this.aiTranslated), + machineTranslated: (machineTranslated != null ? machineTranslated.value : this.machineTranslated), forced: (forced != null ? forced.value : this.forced), - hearingImpaired: (hearingImpaired != null - ? hearingImpaired.value - : this.hearingImpaired), + hearingImpaired: (hearingImpaired != null ? hearingImpaired.value : this.hearingImpaired), ); } } @@ -42089,8 +40393,7 @@ class RemoveFromPlaylistRequestDto { runtimeType.hashCode; } -extension $RemoveFromPlaylistRequestDtoExtension - on RemoveFromPlaylistRequestDto { +extension $RemoveFromPlaylistRequestDtoExtension on RemoveFromPlaylistRequestDto { RemoveFromPlaylistRequestDto copyWith({ List? playlistItemIds, bool? clearPlaylist, @@ -42109,15 +40412,9 @@ extension $RemoveFromPlaylistRequestDtoExtension Wrapped? clearPlayingItem, }) { return RemoveFromPlaylistRequestDto( - playlistItemIds: (playlistItemIds != null - ? playlistItemIds.value - : this.playlistItemIds), - clearPlaylist: (clearPlaylist != null - ? clearPlaylist.value - : this.clearPlaylist), - clearPlayingItem: (clearPlayingItem != null - ? clearPlayingItem.value - : this.clearPlayingItem), + playlistItemIds: (playlistItemIds != null ? playlistItemIds.value : this.playlistItemIds), + clearPlaylist: (clearPlaylist != null ? clearPlaylist.value : this.clearPlaylist), + clearPlayingItem: (clearPlayingItem != null ? clearPlayingItem.value : this.clearPlayingItem), ); } } @@ -42130,8 +40427,7 @@ class ReportPlaybackOptions { this.maxBackupFiles, }); - factory ReportPlaybackOptions.fromJson(Map json) => - _$ReportPlaybackOptionsFromJson(json); + factory ReportPlaybackOptions.fromJson(Map json) => _$ReportPlaybackOptionsFromJson(json); static const toJsonFactory = _$ReportPlaybackOptionsToJson; Map toJson() => _$ReportPlaybackOptionsToJson(this); @@ -42197,9 +40493,7 @@ extension $ReportPlaybackOptionsExtension on ReportPlaybackOptions { return ReportPlaybackOptions( maxDataAge: (maxDataAge != null ? maxDataAge.value : this.maxDataAge), backupPath: (backupPath != null ? backupPath.value : this.backupPath), - maxBackupFiles: (maxBackupFiles != null - ? maxBackupFiles.value - : this.maxBackupFiles), + maxBackupFiles: (maxBackupFiles != null ? maxBackupFiles.value : this.maxBackupFiles), ); } } @@ -42208,8 +40502,7 @@ extension $ReportPlaybackOptionsExtension on ReportPlaybackOptions { class RepositoryInfo { const RepositoryInfo({this.name, this.url, this.enabled}); - factory RepositoryInfo.fromJson(Map json) => - _$RepositoryInfoFromJson(json); + factory RepositoryInfo.fromJson(Map json) => _$RepositoryInfoFromJson(json); static const toJsonFactory = _$RepositoryInfoToJson; Map toJson() => _$RepositoryInfoToJson(this); @@ -42226,12 +40519,9 @@ class RepositoryInfo { bool operator ==(Object other) { return identical(this, other) || (other is RepositoryInfo && - (identical(other.name, name) || - const DeepCollectionEquality().equals(other.name, name)) && - (identical(other.url, url) || - const DeepCollectionEquality().equals(other.url, url)) && - (identical(other.enabled, enabled) || - const DeepCollectionEquality().equals(other.enabled, enabled))); + (identical(other.name, name) || const DeepCollectionEquality().equals(other.name, name)) && + (identical(other.url, url) || const DeepCollectionEquality().equals(other.url, url)) && + (identical(other.enabled, enabled) || const DeepCollectionEquality().equals(other.enabled, enabled))); } @override @@ -42271,8 +40561,7 @@ extension $RepositoryInfoExtension on RepositoryInfo { class RestartRequiredMessage { const RestartRequiredMessage({this.messageId, this.messageType}); - factory RestartRequiredMessage.fromJson(Map json) => - _$RestartRequiredMessageFromJson(json); + factory RestartRequiredMessage.fromJson(Map json) => _$RestartRequiredMessageFromJson(json); static const toJsonFactory = _$RestartRequiredMessageToJson; Map toJson() => _$RestartRequiredMessageToJson(this); @@ -42286,8 +40575,7 @@ class RestartRequiredMessage { fromJson: sessionMessageTypeMessageTypeNullableFromJson, ) final enums.SessionMessageType? messageType; - static enums.SessionMessageType? - sessionMessageTypeMessageTypeNullableFromJson(Object? value) => + static enums.SessionMessageType? sessionMessageTypeMessageTypeNullableFromJson(Object? value) => sessionMessageTypeNullableFromJson( value, enums.SessionMessageType.restartrequired, @@ -42351,8 +40639,7 @@ class ScheduledTaskEndedMessage { this.messageType, }); - factory ScheduledTaskEndedMessage.fromJson(Map json) => - _$ScheduledTaskEndedMessageFromJson(json); + factory ScheduledTaskEndedMessage.fromJson(Map json) => _$ScheduledTaskEndedMessageFromJson(json); static const toJsonFactory = _$ScheduledTaskEndedMessageToJson; Map toJson() => _$ScheduledTaskEndedMessageToJson(this); @@ -42368,8 +40655,7 @@ class ScheduledTaskEndedMessage { fromJson: sessionMessageTypeMessageTypeNullableFromJson, ) final enums.SessionMessageType? messageType; - static enums.SessionMessageType? - sessionMessageTypeMessageTypeNullableFromJson(Object? value) => + static enums.SessionMessageType? sessionMessageTypeMessageTypeNullableFromJson(Object? value) => sessionMessageTypeNullableFromJson( value, enums.SessionMessageType.scheduledtaskended, @@ -42381,8 +40667,7 @@ class ScheduledTaskEndedMessage { bool operator ==(Object other) { return identical(this, other) || (other is ScheduledTaskEndedMessage && - (identical(other.data, data) || - const DeepCollectionEquality().equals(other.data, data)) && + (identical(other.data, data) || const DeepCollectionEquality().equals(other.data, data)) && (identical(other.messageId, messageId) || const DeepCollectionEquality().equals( other.messageId, @@ -42440,8 +40725,7 @@ class ScheduledTasksInfoMessage { this.messageType, }); - factory ScheduledTasksInfoMessage.fromJson(Map json) => - _$ScheduledTasksInfoMessageFromJson(json); + factory ScheduledTasksInfoMessage.fromJson(Map json) => _$ScheduledTasksInfoMessageFromJson(json); static const toJsonFactory = _$ScheduledTasksInfoMessageToJson; Map toJson() => _$ScheduledTasksInfoMessageToJson(this); @@ -42457,8 +40741,7 @@ class ScheduledTasksInfoMessage { fromJson: sessionMessageTypeMessageTypeNullableFromJson, ) final enums.SessionMessageType? messageType; - static enums.SessionMessageType? - sessionMessageTypeMessageTypeNullableFromJson(Object? value) => + static enums.SessionMessageType? sessionMessageTypeMessageTypeNullableFromJson(Object? value) => sessionMessageTypeNullableFromJson( value, enums.SessionMessageType.scheduledtasksinfo, @@ -42470,8 +40753,7 @@ class ScheduledTasksInfoMessage { bool operator ==(Object other) { return identical(this, other) || (other is ScheduledTasksInfoMessage && - (identical(other.data, data) || - const DeepCollectionEquality().equals(other.data, data)) && + (identical(other.data, data) || const DeepCollectionEquality().equals(other.data, data)) && (identical(other.messageId, messageId) || const DeepCollectionEquality().equals( other.messageId, @@ -42540,8 +40822,7 @@ class ScheduledTasksInfoStartMessage { fromJson: sessionMessageTypeMessageTypeNullableFromJson, ) final enums.SessionMessageType? messageType; - static enums.SessionMessageType? - sessionMessageTypeMessageTypeNullableFromJson(Object? value) => + static enums.SessionMessageType? sessionMessageTypeMessageTypeNullableFromJson(Object? value) => sessionMessageTypeNullableFromJson( value, enums.SessionMessageType.scheduledtasksinfostart, @@ -42553,8 +40834,7 @@ class ScheduledTasksInfoStartMessage { bool operator ==(Object other) { return identical(this, other) || (other is ScheduledTasksInfoStartMessage && - (identical(other.data, data) || - const DeepCollectionEquality().equals(other.data, data)) && + (identical(other.data, data) || const DeepCollectionEquality().equals(other.data, data)) && (identical(other.messageType, messageType) || const DeepCollectionEquality().equals( other.messageType, @@ -42572,8 +40852,7 @@ class ScheduledTasksInfoStartMessage { runtimeType.hashCode; } -extension $ScheduledTasksInfoStartMessageExtension - on ScheduledTasksInfoStartMessage { +extension $ScheduledTasksInfoStartMessageExtension on ScheduledTasksInfoStartMessage { ScheduledTasksInfoStartMessage copyWith({ String? data, enums.SessionMessageType? messageType, @@ -42612,8 +40891,7 @@ class ScheduledTasksInfoStopMessage { fromJson: sessionMessageTypeMessageTypeNullableFromJson, ) final enums.SessionMessageType? messageType; - static enums.SessionMessageType? - sessionMessageTypeMessageTypeNullableFromJson(Object? value) => + static enums.SessionMessageType? sessionMessageTypeMessageTypeNullableFromJson(Object? value) => sessionMessageTypeNullableFromJson( value, enums.SessionMessageType.scheduledtasksinfostop, @@ -42636,12 +40914,10 @@ class ScheduledTasksInfoStopMessage { String toString() => jsonEncode(this); @override - int get hashCode => - const DeepCollectionEquality().hash(messageType) ^ runtimeType.hashCode; + int get hashCode => const DeepCollectionEquality().hash(messageType) ^ runtimeType.hashCode; } -extension $ScheduledTasksInfoStopMessageExtension - on ScheduledTasksInfoStopMessage { +extension $ScheduledTasksInfoStopMessageExtension on ScheduledTasksInfoStopMessage { ScheduledTasksInfoStopMessage copyWith({ enums.SessionMessageType? messageType, }) { @@ -42693,8 +40969,7 @@ class SearchHint { this.primaryImageAspectRatio, }); - factory SearchHint.fromJson(Map json) => - _$SearchHintFromJson(json); + factory SearchHint.fromJson(Map json) => _$SearchHintFromJson(json); static const toJsonFactory = _$SearchHintToJson; Map toJson() => _$SearchHintToJson(this); @@ -42777,12 +41052,9 @@ class SearchHint { bool operator ==(Object other) { return identical(this, other) || (other is SearchHint && - (identical(other.itemId, itemId) || - const DeepCollectionEquality().equals(other.itemId, itemId)) && - (identical(other.id, id) || - const DeepCollectionEquality().equals(other.id, id)) && - (identical(other.name, name) || - const DeepCollectionEquality().equals(other.name, name)) && + (identical(other.itemId, itemId) || const DeepCollectionEquality().equals(other.itemId, itemId)) && + (identical(other.id, id) || const DeepCollectionEquality().equals(other.id, id)) && + (identical(other.name, name) || const DeepCollectionEquality().equals(other.name, name)) && (identical(other.matchedTerm, matchedTerm) || const DeepCollectionEquality().equals( other.matchedTerm, @@ -42828,8 +41100,7 @@ class SearchHint { other.backdropImageItemId, backdropImageItemId, )) && - (identical(other.type, type) || - const DeepCollectionEquality().equals(other.type, type)) && + (identical(other.type, type) || const DeepCollectionEquality().equals(other.type, type)) && (identical(other.isFolder, isFolder) || const DeepCollectionEquality().equals( other.isFolder, @@ -42855,12 +41126,9 @@ class SearchHint { other.endDate, endDate, )) && - (identical(other.series, series) || - const DeepCollectionEquality().equals(other.series, series)) && - (identical(other.status, status) || - const DeepCollectionEquality().equals(other.status, status)) && - (identical(other.album, album) || - const DeepCollectionEquality().equals(other.album, album)) && + (identical(other.series, series) || const DeepCollectionEquality().equals(other.series, series)) && + (identical(other.status, status) || const DeepCollectionEquality().equals(other.status, status)) && + (identical(other.album, album) || const DeepCollectionEquality().equals(other.album, album)) && (identical(other.albumId, albumId) || const DeepCollectionEquality().equals( other.albumId, @@ -43004,8 +41272,7 @@ extension $SearchHintExtension on SearchHint { episodeCount: episodeCount ?? this.episodeCount, channelId: channelId ?? this.channelId, channelName: channelName ?? this.channelName, - primaryImageAspectRatio: - primaryImageAspectRatio ?? this.primaryImageAspectRatio, + primaryImageAspectRatio: primaryImageAspectRatio ?? this.primaryImageAspectRatio, ); } @@ -43046,32 +41313,16 @@ extension $SearchHintExtension on SearchHint { name: (name != null ? name.value : this.name), matchedTerm: (matchedTerm != null ? matchedTerm.value : this.matchedTerm), indexNumber: (indexNumber != null ? indexNumber.value : this.indexNumber), - productionYear: (productionYear != null - ? productionYear.value - : this.productionYear), - parentIndexNumber: (parentIndexNumber != null - ? parentIndexNumber.value - : this.parentIndexNumber), - primaryImageTag: (primaryImageTag != null - ? primaryImageTag.value - : this.primaryImageTag), - thumbImageTag: (thumbImageTag != null - ? thumbImageTag.value - : this.thumbImageTag), - thumbImageItemId: (thumbImageItemId != null - ? thumbImageItemId.value - : this.thumbImageItemId), - backdropImageTag: (backdropImageTag != null - ? backdropImageTag.value - : this.backdropImageTag), - backdropImageItemId: (backdropImageItemId != null - ? backdropImageItemId.value - : this.backdropImageItemId), + productionYear: (productionYear != null ? productionYear.value : this.productionYear), + parentIndexNumber: (parentIndexNumber != null ? parentIndexNumber.value : this.parentIndexNumber), + primaryImageTag: (primaryImageTag != null ? primaryImageTag.value : this.primaryImageTag), + thumbImageTag: (thumbImageTag != null ? thumbImageTag.value : this.thumbImageTag), + thumbImageItemId: (thumbImageItemId != null ? thumbImageItemId.value : this.thumbImageItemId), + backdropImageTag: (backdropImageTag != null ? backdropImageTag.value : this.backdropImageTag), + backdropImageItemId: (backdropImageItemId != null ? backdropImageItemId.value : this.backdropImageItemId), type: (type != null ? type.value : this.type), isFolder: (isFolder != null ? isFolder.value : this.isFolder), - runTimeTicks: (runTimeTicks != null - ? runTimeTicks.value - : this.runTimeTicks), + runTimeTicks: (runTimeTicks != null ? runTimeTicks.value : this.runTimeTicks), mediaType: (mediaType != null ? mediaType.value : this.mediaType), startDate: (startDate != null ? startDate.value : this.startDate), endDate: (endDate != null ? endDate.value : this.endDate), @@ -43082,14 +41333,11 @@ extension $SearchHintExtension on SearchHint { albumArtist: (albumArtist != null ? albumArtist.value : this.albumArtist), artists: (artists != null ? artists.value : this.artists), songCount: (songCount != null ? songCount.value : this.songCount), - episodeCount: (episodeCount != null - ? episodeCount.value - : this.episodeCount), + episodeCount: (episodeCount != null ? episodeCount.value : this.episodeCount), channelId: (channelId != null ? channelId.value : this.channelId), channelName: (channelName != null ? channelName.value : this.channelName), - primaryImageAspectRatio: (primaryImageAspectRatio != null - ? primaryImageAspectRatio.value - : this.primaryImageAspectRatio), + primaryImageAspectRatio: + (primaryImageAspectRatio != null ? primaryImageAspectRatio.value : this.primaryImageAspectRatio), ); } } @@ -43098,8 +41346,7 @@ extension $SearchHintExtension on SearchHint { class SearchHintResult { const SearchHintResult({this.searchHints, this.totalRecordCount}); - factory SearchHintResult.fromJson(Map json) => - _$SearchHintResultFromJson(json); + factory SearchHintResult.fromJson(Map json) => _$SearchHintResultFromJson(json); static const toJsonFactory = _$SearchHintResultToJson; Map toJson() => _$SearchHintResultToJson(this); @@ -43157,9 +41404,7 @@ extension $SearchHintResultExtension on SearchHintResult { }) { return SearchHintResult( searchHints: (searchHints != null ? searchHints.value : this.searchHints), - totalRecordCount: (totalRecordCount != null - ? totalRecordCount.value - : this.totalRecordCount), + totalRecordCount: (totalRecordCount != null ? totalRecordCount.value : this.totalRecordCount), ); } } @@ -43168,8 +41413,7 @@ extension $SearchHintResultExtension on SearchHintResult { class SeekRequestDto { const SeekRequestDto({this.positionTicks}); - factory SeekRequestDto.fromJson(Map json) => - _$SeekRequestDtoFromJson(json); + factory SeekRequestDto.fromJson(Map json) => _$SeekRequestDtoFromJson(json); static const toJsonFactory = _$SeekRequestDtoToJson; Map toJson() => _$SeekRequestDtoToJson(this); @@ -43193,8 +41437,7 @@ class SeekRequestDto { String toString() => jsonEncode(this); @override - int get hashCode => - const DeepCollectionEquality().hash(positionTicks) ^ runtimeType.hashCode; + int get hashCode => const DeepCollectionEquality().hash(positionTicks) ^ runtimeType.hashCode; } extension $SeekRequestDtoExtension on SeekRequestDto { @@ -43204,9 +41447,7 @@ extension $SeekRequestDtoExtension on SeekRequestDto { SeekRequestDto copyWithWrapped({Wrapped? positionTicks}) { return SeekRequestDto( - positionTicks: (positionTicks != null - ? positionTicks.value - : this.positionTicks), + positionTicks: (positionTicks != null ? positionTicks.value : this.positionTicks), ); } } @@ -43222,8 +41463,7 @@ class SendCommand { this.emittedAt, }); - factory SendCommand.fromJson(Map json) => - _$SendCommandFromJson(json); + factory SendCommand.fromJson(Map json) => _$SendCommandFromJson(json); static const toJsonFactory = _$SendCommandToJson; Map toJson() => _$SendCommandToJson(this); @@ -43261,8 +41501,7 @@ class SendCommand { other.playlistItemId, playlistItemId, )) && - (identical(other.when, when) || - const DeepCollectionEquality().equals(other.when, when)) && + (identical(other.when, when) || const DeepCollectionEquality().equals(other.when, when)) && (identical(other.positionTicks, positionTicks) || const DeepCollectionEquality().equals( other.positionTicks, @@ -43323,13 +41562,9 @@ extension $SendCommandExtension on SendCommand { }) { return SendCommand( groupId: (groupId != null ? groupId.value : this.groupId), - playlistItemId: (playlistItemId != null - ? playlistItemId.value - : this.playlistItemId), + playlistItemId: (playlistItemId != null ? playlistItemId.value : this.playlistItemId), when: (when != null ? when.value : this.when), - positionTicks: (positionTicks != null - ? positionTicks.value - : this.positionTicks), + positionTicks: (positionTicks != null ? positionTicks.value : this.positionTicks), command: (command != null ? command.value : this.command), emittedAt: (emittedAt != null ? emittedAt.value : this.emittedAt), ); @@ -43352,8 +41587,7 @@ class SeriesInfo { this.isAutomated, }); - factory SeriesInfo.fromJson(Map json) => - _$SeriesInfoFromJson(json); + factory SeriesInfo.fromJson(Map json) => _$SeriesInfoFromJson(json); static const toJsonFactory = _$SeriesInfoToJson; Map toJson() => _$SeriesInfoToJson(this); @@ -43386,15 +41620,13 @@ class SeriesInfo { bool operator ==(Object other) { return identical(this, other) || (other is SeriesInfo && - (identical(other.name, name) || - const DeepCollectionEquality().equals(other.name, name)) && + (identical(other.name, name) || const DeepCollectionEquality().equals(other.name, name)) && (identical(other.originalTitle, originalTitle) || const DeepCollectionEquality().equals( other.originalTitle, originalTitle, )) && - (identical(other.path, path) || - const DeepCollectionEquality().equals(other.path, path)) && + (identical(other.path, path) || const DeepCollectionEquality().equals(other.path, path)) && (identical(other.metadataLanguage, metadataLanguage) || const DeepCollectionEquality().equals( other.metadataLanguage, @@ -43410,8 +41642,7 @@ class SeriesInfo { other.providerIds, providerIds, )) && - (identical(other.year, year) || - const DeepCollectionEquality().equals(other.year, year)) && + (identical(other.year, year) || const DeepCollectionEquality().equals(other.year, year)) && (identical(other.indexNumber, indexNumber) || const DeepCollectionEquality().equals( other.indexNumber, @@ -43497,25 +41728,15 @@ extension $SeriesInfoExtension on SeriesInfo { }) { return SeriesInfo( name: (name != null ? name.value : this.name), - originalTitle: (originalTitle != null - ? originalTitle.value - : this.originalTitle), + originalTitle: (originalTitle != null ? originalTitle.value : this.originalTitle), path: (path != null ? path.value : this.path), - metadataLanguage: (metadataLanguage != null - ? metadataLanguage.value - : this.metadataLanguage), - metadataCountryCode: (metadataCountryCode != null - ? metadataCountryCode.value - : this.metadataCountryCode), + metadataLanguage: (metadataLanguage != null ? metadataLanguage.value : this.metadataLanguage), + metadataCountryCode: (metadataCountryCode != null ? metadataCountryCode.value : this.metadataCountryCode), providerIds: (providerIds != null ? providerIds.value : this.providerIds), year: (year != null ? year.value : this.year), indexNumber: (indexNumber != null ? indexNumber.value : this.indexNumber), - parentIndexNumber: (parentIndexNumber != null - ? parentIndexNumber.value - : this.parentIndexNumber), - premiereDate: (premiereDate != null - ? premiereDate.value - : this.premiereDate), + parentIndexNumber: (parentIndexNumber != null ? parentIndexNumber.value : this.parentIndexNumber), + premiereDate: (premiereDate != null ? premiereDate.value : this.premiereDate), isAutomated: (isAutomated != null ? isAutomated.value : this.isAutomated), ); } @@ -43555,8 +41776,7 @@ class SeriesInfoRemoteSearchQuery { other.searchInfo, searchInfo, )) && - (identical(other.itemId, itemId) || - const DeepCollectionEquality().equals(other.itemId, itemId)) && + (identical(other.itemId, itemId) || const DeepCollectionEquality().equals(other.itemId, itemId)) && (identical(other.searchProviderName, searchProviderName) || const DeepCollectionEquality().equals( other.searchProviderName, @@ -43595,8 +41815,7 @@ extension $SeriesInfoRemoteSearchQueryExtension on SeriesInfoRemoteSearchQuery { searchInfo: searchInfo ?? this.searchInfo, itemId: itemId ?? this.itemId, searchProviderName: searchProviderName ?? this.searchProviderName, - includeDisabledProviders: - includeDisabledProviders ?? this.includeDisabledProviders, + includeDisabledProviders: includeDisabledProviders ?? this.includeDisabledProviders, ); } @@ -43609,12 +41828,9 @@ extension $SeriesInfoRemoteSearchQueryExtension on SeriesInfoRemoteSearchQuery { return SeriesInfoRemoteSearchQuery( searchInfo: (searchInfo != null ? searchInfo.value : this.searchInfo), itemId: (itemId != null ? itemId.value : this.itemId), - searchProviderName: (searchProviderName != null - ? searchProviderName.value - : this.searchProviderName), - includeDisabledProviders: (includeDisabledProviders != null - ? includeDisabledProviders.value - : this.includeDisabledProviders), + searchProviderName: (searchProviderName != null ? searchProviderName.value : this.searchProviderName), + includeDisabledProviders: + (includeDisabledProviders != null ? includeDisabledProviders.value : this.includeDisabledProviders), ); } } @@ -43644,8 +41860,7 @@ class SeriesTimerCancelledMessage { fromJson: sessionMessageTypeMessageTypeNullableFromJson, ) final enums.SessionMessageType? messageType; - static enums.SessionMessageType? - sessionMessageTypeMessageTypeNullableFromJson(Object? value) => + static enums.SessionMessageType? sessionMessageTypeMessageTypeNullableFromJson(Object? value) => sessionMessageTypeNullableFromJson( value, enums.SessionMessageType.seriestimercancelled, @@ -43657,8 +41872,7 @@ class SeriesTimerCancelledMessage { bool operator ==(Object other) { return identical(this, other) || (other is SeriesTimerCancelledMessage && - (identical(other.data, data) || - const DeepCollectionEquality().equals(other.data, data)) && + (identical(other.data, data) || const DeepCollectionEquality().equals(other.data, data)) && (identical(other.messageId, messageId) || const DeepCollectionEquality().equals( other.messageId, @@ -43716,8 +41930,7 @@ class SeriesTimerCreatedMessage { this.messageType, }); - factory SeriesTimerCreatedMessage.fromJson(Map json) => - _$SeriesTimerCreatedMessageFromJson(json); + factory SeriesTimerCreatedMessage.fromJson(Map json) => _$SeriesTimerCreatedMessageFromJson(json); static const toJsonFactory = _$SeriesTimerCreatedMessageToJson; Map toJson() => _$SeriesTimerCreatedMessageToJson(this); @@ -43733,8 +41946,7 @@ class SeriesTimerCreatedMessage { fromJson: sessionMessageTypeMessageTypeNullableFromJson, ) final enums.SessionMessageType? messageType; - static enums.SessionMessageType? - sessionMessageTypeMessageTypeNullableFromJson(Object? value) => + static enums.SessionMessageType? sessionMessageTypeMessageTypeNullableFromJson(Object? value) => sessionMessageTypeNullableFromJson( value, enums.SessionMessageType.seriestimercreated, @@ -43746,8 +41958,7 @@ class SeriesTimerCreatedMessage { bool operator ==(Object other) { return identical(this, other) || (other is SeriesTimerCreatedMessage && - (identical(other.data, data) || - const DeepCollectionEquality().equals(other.data, data)) && + (identical(other.data, data) || const DeepCollectionEquality().equals(other.data, data)) && (identical(other.messageId, messageId) || const DeepCollectionEquality().equals( other.messageId, @@ -43837,8 +42048,7 @@ class SeriesTimerInfoDto { this.parentPrimaryImageTag, }); - factory SeriesTimerInfoDto.fromJson(Map json) => - _$SeriesTimerInfoDtoFromJson(json); + factory SeriesTimerInfoDto.fromJson(Map json) => _$SeriesTimerInfoDtoFromJson(json); static const toJsonFactory = _$SeriesTimerInfoDtoToJson; Map toJson() => _$SeriesTimerInfoDtoToJson(this); @@ -43938,10 +42148,8 @@ class SeriesTimerInfoDto { bool operator ==(Object other) { return identical(this, other) || (other is SeriesTimerInfoDto && - (identical(other.id, id) || - const DeepCollectionEquality().equals(other.id, id)) && - (identical(other.type, type) || - const DeepCollectionEquality().equals(other.type, type)) && + (identical(other.id, id) || const DeepCollectionEquality().equals(other.id, id)) && + (identical(other.type, type) || const DeepCollectionEquality().equals(other.type, type)) && (identical(other.serverId, serverId) || const DeepCollectionEquality().equals( other.serverId, @@ -43982,8 +42190,7 @@ class SeriesTimerInfoDto { other.externalProgramId, externalProgramId, )) && - (identical(other.name, name) || - const DeepCollectionEquality().equals(other.name, name)) && + (identical(other.name, name) || const DeepCollectionEquality().equals(other.name, name)) && (identical(other.overview, overview) || const DeepCollectionEquality().equals( other.overview, @@ -44072,8 +42279,7 @@ class SeriesTimerInfoDto { other.recordNewOnly, recordNewOnly, )) && - (identical(other.days, days) || - const DeepCollectionEquality().equals(other.days, days)) && + (identical(other.days, days) || const DeepCollectionEquality().equals(other.days, days)) && (identical(other.dayPattern, dayPattern) || const DeepCollectionEquality().equals( other.dayPattern, @@ -44198,8 +42404,7 @@ extension $SeriesTimerInfoDtoExtension on SeriesTimerInfoDto { channelId: channelId ?? this.channelId, externalChannelId: externalChannelId ?? this.externalChannelId, channelName: channelName ?? this.channelName, - channelPrimaryImageTag: - channelPrimaryImageTag ?? this.channelPrimaryImageTag, + channelPrimaryImageTag: channelPrimaryImageTag ?? this.channelPrimaryImageTag, programId: programId ?? this.programId, externalProgramId: externalProgramId ?? this.externalProgramId, name: name ?? this.name, @@ -44212,14 +42417,11 @@ extension $SeriesTimerInfoDtoExtension on SeriesTimerInfoDto { postPaddingSeconds: postPaddingSeconds ?? this.postPaddingSeconds, isPrePaddingRequired: isPrePaddingRequired ?? this.isPrePaddingRequired, parentBackdropItemId: parentBackdropItemId ?? this.parentBackdropItemId, - parentBackdropImageTags: - parentBackdropImageTags ?? this.parentBackdropImageTags, - isPostPaddingRequired: - isPostPaddingRequired ?? this.isPostPaddingRequired, + parentBackdropImageTags: parentBackdropImageTags ?? this.parentBackdropImageTags, + isPostPaddingRequired: isPostPaddingRequired ?? this.isPostPaddingRequired, keepUntil: keepUntil ?? this.keepUntil, recordAnyTime: recordAnyTime ?? this.recordAnyTime, - skipEpisodesInLibrary: - skipEpisodesInLibrary ?? this.skipEpisodesInLibrary, + skipEpisodesInLibrary: skipEpisodesInLibrary ?? this.skipEpisodesInLibrary, recordAnyChannel: recordAnyChannel ?? this.recordAnyChannel, keepUpTo: keepUpTo ?? this.keepUpTo, recordNewOnly: recordNewOnly ?? this.recordNewOnly, @@ -44228,10 +42430,8 @@ extension $SeriesTimerInfoDtoExtension on SeriesTimerInfoDto { imageTags: imageTags ?? this.imageTags, parentThumbItemId: parentThumbItemId ?? this.parentThumbItemId, parentThumbImageTag: parentThumbImageTag ?? this.parentThumbImageTag, - parentPrimaryImageItemId: - parentPrimaryImageItemId ?? this.parentPrimaryImageItemId, - parentPrimaryImageTag: - parentPrimaryImageTag ?? this.parentPrimaryImageTag, + parentPrimaryImageItemId: parentPrimaryImageItemId ?? this.parentPrimaryImageItemId, + parentPrimaryImageTag: parentPrimaryImageTag ?? this.parentPrimaryImageTag, ); } @@ -44278,70 +42478,39 @@ extension $SeriesTimerInfoDtoExtension on SeriesTimerInfoDto { serverId: (serverId != null ? serverId.value : this.serverId), externalId: (externalId != null ? externalId.value : this.externalId), channelId: (channelId != null ? channelId.value : this.channelId), - externalChannelId: (externalChannelId != null - ? externalChannelId.value - : this.externalChannelId), + externalChannelId: (externalChannelId != null ? externalChannelId.value : this.externalChannelId), channelName: (channelName != null ? channelName.value : this.channelName), - channelPrimaryImageTag: (channelPrimaryImageTag != null - ? channelPrimaryImageTag.value - : this.channelPrimaryImageTag), + channelPrimaryImageTag: + (channelPrimaryImageTag != null ? channelPrimaryImageTag.value : this.channelPrimaryImageTag), programId: (programId != null ? programId.value : this.programId), - externalProgramId: (externalProgramId != null - ? externalProgramId.value - : this.externalProgramId), + externalProgramId: (externalProgramId != null ? externalProgramId.value : this.externalProgramId), name: (name != null ? name.value : this.name), overview: (overview != null ? overview.value : this.overview), startDate: (startDate != null ? startDate.value : this.startDate), endDate: (endDate != null ? endDate.value : this.endDate), serviceName: (serviceName != null ? serviceName.value : this.serviceName), priority: (priority != null ? priority.value : this.priority), - prePaddingSeconds: (prePaddingSeconds != null - ? prePaddingSeconds.value - : this.prePaddingSeconds), - postPaddingSeconds: (postPaddingSeconds != null - ? postPaddingSeconds.value - : this.postPaddingSeconds), - isPrePaddingRequired: (isPrePaddingRequired != null - ? isPrePaddingRequired.value - : this.isPrePaddingRequired), - parentBackdropItemId: (parentBackdropItemId != null - ? parentBackdropItemId.value - : this.parentBackdropItemId), - parentBackdropImageTags: (parentBackdropImageTags != null - ? parentBackdropImageTags.value - : this.parentBackdropImageTags), - isPostPaddingRequired: (isPostPaddingRequired != null - ? isPostPaddingRequired.value - : this.isPostPaddingRequired), + prePaddingSeconds: (prePaddingSeconds != null ? prePaddingSeconds.value : this.prePaddingSeconds), + postPaddingSeconds: (postPaddingSeconds != null ? postPaddingSeconds.value : this.postPaddingSeconds), + isPrePaddingRequired: (isPrePaddingRequired != null ? isPrePaddingRequired.value : this.isPrePaddingRequired), + parentBackdropItemId: (parentBackdropItemId != null ? parentBackdropItemId.value : this.parentBackdropItemId), + parentBackdropImageTags: + (parentBackdropImageTags != null ? parentBackdropImageTags.value : this.parentBackdropImageTags), + isPostPaddingRequired: (isPostPaddingRequired != null ? isPostPaddingRequired.value : this.isPostPaddingRequired), keepUntil: (keepUntil != null ? keepUntil.value : this.keepUntil), - recordAnyTime: (recordAnyTime != null - ? recordAnyTime.value - : this.recordAnyTime), - skipEpisodesInLibrary: (skipEpisodesInLibrary != null - ? skipEpisodesInLibrary.value - : this.skipEpisodesInLibrary), - recordAnyChannel: (recordAnyChannel != null - ? recordAnyChannel.value - : this.recordAnyChannel), + recordAnyTime: (recordAnyTime != null ? recordAnyTime.value : this.recordAnyTime), + skipEpisodesInLibrary: (skipEpisodesInLibrary != null ? skipEpisodesInLibrary.value : this.skipEpisodesInLibrary), + recordAnyChannel: (recordAnyChannel != null ? recordAnyChannel.value : this.recordAnyChannel), keepUpTo: (keepUpTo != null ? keepUpTo.value : this.keepUpTo), - recordNewOnly: (recordNewOnly != null - ? recordNewOnly.value - : this.recordNewOnly), + recordNewOnly: (recordNewOnly != null ? recordNewOnly.value : this.recordNewOnly), days: (days != null ? days.value : this.days), dayPattern: (dayPattern != null ? dayPattern.value : this.dayPattern), imageTags: (imageTags != null ? imageTags.value : this.imageTags), - parentThumbItemId: (parentThumbItemId != null - ? parentThumbItemId.value - : this.parentThumbItemId), - parentThumbImageTag: (parentThumbImageTag != null - ? parentThumbImageTag.value - : this.parentThumbImageTag), - parentPrimaryImageItemId: (parentPrimaryImageItemId != null - ? parentPrimaryImageItemId.value - : this.parentPrimaryImageItemId), - parentPrimaryImageTag: (parentPrimaryImageTag != null - ? parentPrimaryImageTag.value - : this.parentPrimaryImageTag), + parentThumbItemId: (parentThumbItemId != null ? parentThumbItemId.value : this.parentThumbItemId), + parentThumbImageTag: (parentThumbImageTag != null ? parentThumbImageTag.value : this.parentThumbImageTag), + parentPrimaryImageItemId: + (parentPrimaryImageItemId != null ? parentPrimaryImageItemId.value : this.parentPrimaryImageItemId), + parentPrimaryImageTag: (parentPrimaryImageTag != null ? parentPrimaryImageTag.value : this.parentPrimaryImageTag), ); } } @@ -44376,8 +42545,7 @@ class SeriesTimerInfoDtoQueryResult { bool operator ==(Object other) { return identical(this, other) || (other is SeriesTimerInfoDtoQueryResult && - (identical(other.items, items) || - const DeepCollectionEquality().equals(other.items, items)) && + (identical(other.items, items) || const DeepCollectionEquality().equals(other.items, items)) && (identical(other.totalRecordCount, totalRecordCount) || const DeepCollectionEquality().equals( other.totalRecordCount, @@ -44401,8 +42569,7 @@ class SeriesTimerInfoDtoQueryResult { runtimeType.hashCode; } -extension $SeriesTimerInfoDtoQueryResultExtension - on SeriesTimerInfoDtoQueryResult { +extension $SeriesTimerInfoDtoQueryResultExtension on SeriesTimerInfoDtoQueryResult { SeriesTimerInfoDtoQueryResult copyWith({ List? items, int? totalRecordCount, @@ -44422,9 +42589,7 @@ extension $SeriesTimerInfoDtoQueryResultExtension }) { return SeriesTimerInfoDtoQueryResult( items: (items != null ? items.value : this.items), - totalRecordCount: (totalRecordCount != null - ? totalRecordCount.value - : this.totalRecordCount), + totalRecordCount: (totalRecordCount != null ? totalRecordCount.value : this.totalRecordCount), startIndex: (startIndex != null ? startIndex.value : this.startIndex), ); } @@ -44491,8 +42656,7 @@ class ServerConfiguration { this.enableLegacyAuthorization, }); - factory ServerConfiguration.fromJson(Map json) => - _$ServerConfigurationFromJson(json); + factory ServerConfiguration.fromJson(Map json) => _$ServerConfigurationFromJson(json); static const toJsonFactory = _$ServerConfigurationToJson; Map toJson() => _$ServerConfigurationToJson(this); @@ -45130,94 +43294,62 @@ extension $ServerConfigurationExtension on ServerConfiguration { }) { return ServerConfiguration( logFileRetentionDays: logFileRetentionDays ?? this.logFileRetentionDays, - isStartupWizardCompleted: - isStartupWizardCompleted ?? this.isStartupWizardCompleted, + isStartupWizardCompleted: isStartupWizardCompleted ?? this.isStartupWizardCompleted, cachePath: cachePath ?? this.cachePath, previousVersion: previousVersion ?? this.previousVersion, previousVersionStr: previousVersionStr ?? this.previousVersionStr, enableMetrics: enableMetrics ?? this.enableMetrics, - enableNormalizedItemByNameIds: - enableNormalizedItemByNameIds ?? this.enableNormalizedItemByNameIds, + enableNormalizedItemByNameIds: enableNormalizedItemByNameIds ?? this.enableNormalizedItemByNameIds, isPortAuthorized: isPortAuthorized ?? this.isPortAuthorized, - quickConnectAvailable: - quickConnectAvailable ?? this.quickConnectAvailable, - enableCaseSensitiveItemIds: - enableCaseSensitiveItemIds ?? this.enableCaseSensitiveItemIds, - disableLiveTvChannelUserDataName: - disableLiveTvChannelUserDataName ?? - this.disableLiveTvChannelUserDataName, + quickConnectAvailable: quickConnectAvailable ?? this.quickConnectAvailable, + enableCaseSensitiveItemIds: enableCaseSensitiveItemIds ?? this.enableCaseSensitiveItemIds, + disableLiveTvChannelUserDataName: disableLiveTvChannelUserDataName ?? this.disableLiveTvChannelUserDataName, metadataPath: metadataPath ?? this.metadataPath, - preferredMetadataLanguage: - preferredMetadataLanguage ?? this.preferredMetadataLanguage, + preferredMetadataLanguage: preferredMetadataLanguage ?? this.preferredMetadataLanguage, metadataCountryCode: metadataCountryCode ?? this.metadataCountryCode, - sortReplaceCharacters: - sortReplaceCharacters ?? this.sortReplaceCharacters, + sortReplaceCharacters: sortReplaceCharacters ?? this.sortReplaceCharacters, sortRemoveCharacters: sortRemoveCharacters ?? this.sortRemoveCharacters, sortRemoveWords: sortRemoveWords ?? this.sortRemoveWords, minResumePct: minResumePct ?? this.minResumePct, maxResumePct: maxResumePct ?? this.maxResumePct, - minResumeDurationSeconds: - minResumeDurationSeconds ?? this.minResumeDurationSeconds, + minResumeDurationSeconds: minResumeDurationSeconds ?? this.minResumeDurationSeconds, minAudiobookResume: minAudiobookResume ?? this.minAudiobookResume, maxAudiobookResume: maxAudiobookResume ?? this.maxAudiobookResume, - inactiveSessionThreshold: - inactiveSessionThreshold ?? this.inactiveSessionThreshold, + inactiveSessionThreshold: inactiveSessionThreshold ?? this.inactiveSessionThreshold, libraryMonitorDelay: libraryMonitorDelay ?? this.libraryMonitorDelay, - libraryUpdateDuration: - libraryUpdateDuration ?? this.libraryUpdateDuration, + libraryUpdateDuration: libraryUpdateDuration ?? this.libraryUpdateDuration, cacheSize: cacheSize ?? this.cacheSize, - imageSavingConvention: - imageSavingConvention ?? this.imageSavingConvention, + imageSavingConvention: imageSavingConvention ?? this.imageSavingConvention, metadataOptions: metadataOptions ?? this.metadataOptions, - skipDeserializationForBasicTypes: - skipDeserializationForBasicTypes ?? - this.skipDeserializationForBasicTypes, + skipDeserializationForBasicTypes: skipDeserializationForBasicTypes ?? this.skipDeserializationForBasicTypes, serverName: serverName ?? this.serverName, uICulture: uICulture ?? this.uICulture, saveMetadataHidden: saveMetadataHidden ?? this.saveMetadataHidden, contentTypes: contentTypes ?? this.contentTypes, - remoteClientBitrateLimit: - remoteClientBitrateLimit ?? this.remoteClientBitrateLimit, + remoteClientBitrateLimit: remoteClientBitrateLimit ?? this.remoteClientBitrateLimit, enableFolderView: enableFolderView ?? this.enableFolderView, enableGroupingMoviesIntoCollections: - enableGroupingMoviesIntoCollections ?? - this.enableGroupingMoviesIntoCollections, - enableGroupingShowsIntoCollections: - enableGroupingShowsIntoCollections ?? - this.enableGroupingShowsIntoCollections, - displaySpecialsWithinSeasons: - displaySpecialsWithinSeasons ?? this.displaySpecialsWithinSeasons, + enableGroupingMoviesIntoCollections ?? this.enableGroupingMoviesIntoCollections, + enableGroupingShowsIntoCollections: enableGroupingShowsIntoCollections ?? this.enableGroupingShowsIntoCollections, + displaySpecialsWithinSeasons: displaySpecialsWithinSeasons ?? this.displaySpecialsWithinSeasons, codecsUsed: codecsUsed ?? this.codecsUsed, pluginRepositories: pluginRepositories ?? this.pluginRepositories, - enableExternalContentInSuggestions: - enableExternalContentInSuggestions ?? - this.enableExternalContentInSuggestions, - imageExtractionTimeoutMs: - imageExtractionTimeoutMs ?? this.imageExtractionTimeoutMs, + enableExternalContentInSuggestions: enableExternalContentInSuggestions ?? this.enableExternalContentInSuggestions, + imageExtractionTimeoutMs: imageExtractionTimeoutMs ?? this.imageExtractionTimeoutMs, pathSubstitutions: pathSubstitutions ?? this.pathSubstitutions, - enableSlowResponseWarning: - enableSlowResponseWarning ?? this.enableSlowResponseWarning, - slowResponseThresholdMs: - slowResponseThresholdMs ?? this.slowResponseThresholdMs, + enableSlowResponseWarning: enableSlowResponseWarning ?? this.enableSlowResponseWarning, + slowResponseThresholdMs: slowResponseThresholdMs ?? this.slowResponseThresholdMs, corsHosts: corsHosts ?? this.corsHosts, - activityLogRetentionDays: - activityLogRetentionDays ?? this.activityLogRetentionDays, - libraryScanFanoutConcurrency: - libraryScanFanoutConcurrency ?? this.libraryScanFanoutConcurrency, - libraryMetadataRefreshConcurrency: - libraryMetadataRefreshConcurrency ?? - this.libraryMetadataRefreshConcurrency, + activityLogRetentionDays: activityLogRetentionDays ?? this.activityLogRetentionDays, + libraryScanFanoutConcurrency: libraryScanFanoutConcurrency ?? this.libraryScanFanoutConcurrency, + libraryMetadataRefreshConcurrency: libraryMetadataRefreshConcurrency ?? this.libraryMetadataRefreshConcurrency, allowClientLogUpload: allowClientLogUpload ?? this.allowClientLogUpload, dummyChapterDuration: dummyChapterDuration ?? this.dummyChapterDuration, - chapterImageResolution: - chapterImageResolution ?? this.chapterImageResolution, - parallelImageEncodingLimit: - parallelImageEncodingLimit ?? this.parallelImageEncodingLimit, - castReceiverApplications: - castReceiverApplications ?? this.castReceiverApplications, + chapterImageResolution: chapterImageResolution ?? this.chapterImageResolution, + parallelImageEncodingLimit: parallelImageEncodingLimit ?? this.parallelImageEncodingLimit, + castReceiverApplications: castReceiverApplications ?? this.castReceiverApplications, trickplayOptions: trickplayOptions ?? this.trickplayOptions, - enableLegacyAuthorization: - enableLegacyAuthorization ?? this.enableLegacyAuthorization, + enableLegacyAuthorization: enableLegacyAuthorization ?? this.enableLegacyAuthorization, ); } @@ -45280,168 +43412,94 @@ extension $ServerConfigurationExtension on ServerConfiguration { Wrapped? enableLegacyAuthorization, }) { return ServerConfiguration( - logFileRetentionDays: (logFileRetentionDays != null - ? logFileRetentionDays.value - : this.logFileRetentionDays), - isStartupWizardCompleted: (isStartupWizardCompleted != null - ? isStartupWizardCompleted.value - : this.isStartupWizardCompleted), + logFileRetentionDays: (logFileRetentionDays != null ? logFileRetentionDays.value : this.logFileRetentionDays), + isStartupWizardCompleted: + (isStartupWizardCompleted != null ? isStartupWizardCompleted.value : this.isStartupWizardCompleted), cachePath: (cachePath != null ? cachePath.value : this.cachePath), - previousVersion: (previousVersion != null - ? previousVersion.value - : this.previousVersion), - previousVersionStr: (previousVersionStr != null - ? previousVersionStr.value - : this.previousVersionStr), - enableMetrics: (enableMetrics != null - ? enableMetrics.value - : this.enableMetrics), + previousVersion: (previousVersion != null ? previousVersion.value : this.previousVersion), + previousVersionStr: (previousVersionStr != null ? previousVersionStr.value : this.previousVersionStr), + enableMetrics: (enableMetrics != null ? enableMetrics.value : this.enableMetrics), enableNormalizedItemByNameIds: (enableNormalizedItemByNameIds != null ? enableNormalizedItemByNameIds.value : this.enableNormalizedItemByNameIds), - isPortAuthorized: (isPortAuthorized != null - ? isPortAuthorized.value - : this.isPortAuthorized), - quickConnectAvailable: (quickConnectAvailable != null - ? quickConnectAvailable.value - : this.quickConnectAvailable), - enableCaseSensitiveItemIds: (enableCaseSensitiveItemIds != null - ? enableCaseSensitiveItemIds.value - : this.enableCaseSensitiveItemIds), - disableLiveTvChannelUserDataName: - (disableLiveTvChannelUserDataName != null + isPortAuthorized: (isPortAuthorized != null ? isPortAuthorized.value : this.isPortAuthorized), + quickConnectAvailable: (quickConnectAvailable != null ? quickConnectAvailable.value : this.quickConnectAvailable), + enableCaseSensitiveItemIds: + (enableCaseSensitiveItemIds != null ? enableCaseSensitiveItemIds.value : this.enableCaseSensitiveItemIds), + disableLiveTvChannelUserDataName: (disableLiveTvChannelUserDataName != null ? disableLiveTvChannelUserDataName.value : this.disableLiveTvChannelUserDataName), - metadataPath: (metadataPath != null - ? metadataPath.value - : this.metadataPath), - preferredMetadataLanguage: (preferredMetadataLanguage != null - ? preferredMetadataLanguage.value - : this.preferredMetadataLanguage), - metadataCountryCode: (metadataCountryCode != null - ? metadataCountryCode.value - : this.metadataCountryCode), - sortReplaceCharacters: (sortReplaceCharacters != null - ? sortReplaceCharacters.value - : this.sortReplaceCharacters), - sortRemoveCharacters: (sortRemoveCharacters != null - ? sortRemoveCharacters.value - : this.sortRemoveCharacters), - sortRemoveWords: (sortRemoveWords != null - ? sortRemoveWords.value - : this.sortRemoveWords), - minResumePct: (minResumePct != null - ? minResumePct.value - : this.minResumePct), - maxResumePct: (maxResumePct != null - ? maxResumePct.value - : this.maxResumePct), - minResumeDurationSeconds: (minResumeDurationSeconds != null - ? minResumeDurationSeconds.value - : this.minResumeDurationSeconds), - minAudiobookResume: (minAudiobookResume != null - ? minAudiobookResume.value - : this.minAudiobookResume), - maxAudiobookResume: (maxAudiobookResume != null - ? maxAudiobookResume.value - : this.maxAudiobookResume), - inactiveSessionThreshold: (inactiveSessionThreshold != null - ? inactiveSessionThreshold.value - : this.inactiveSessionThreshold), - libraryMonitorDelay: (libraryMonitorDelay != null - ? libraryMonitorDelay.value - : this.libraryMonitorDelay), - libraryUpdateDuration: (libraryUpdateDuration != null - ? libraryUpdateDuration.value - : this.libraryUpdateDuration), + metadataPath: (metadataPath != null ? metadataPath.value : this.metadataPath), + preferredMetadataLanguage: + (preferredMetadataLanguage != null ? preferredMetadataLanguage.value : this.preferredMetadataLanguage), + metadataCountryCode: (metadataCountryCode != null ? metadataCountryCode.value : this.metadataCountryCode), + sortReplaceCharacters: (sortReplaceCharacters != null ? sortReplaceCharacters.value : this.sortReplaceCharacters), + sortRemoveCharacters: (sortRemoveCharacters != null ? sortRemoveCharacters.value : this.sortRemoveCharacters), + sortRemoveWords: (sortRemoveWords != null ? sortRemoveWords.value : this.sortRemoveWords), + minResumePct: (minResumePct != null ? minResumePct.value : this.minResumePct), + maxResumePct: (maxResumePct != null ? maxResumePct.value : this.maxResumePct), + minResumeDurationSeconds: + (minResumeDurationSeconds != null ? minResumeDurationSeconds.value : this.minResumeDurationSeconds), + minAudiobookResume: (minAudiobookResume != null ? minAudiobookResume.value : this.minAudiobookResume), + maxAudiobookResume: (maxAudiobookResume != null ? maxAudiobookResume.value : this.maxAudiobookResume), + inactiveSessionThreshold: + (inactiveSessionThreshold != null ? inactiveSessionThreshold.value : this.inactiveSessionThreshold), + libraryMonitorDelay: (libraryMonitorDelay != null ? libraryMonitorDelay.value : this.libraryMonitorDelay), + libraryUpdateDuration: (libraryUpdateDuration != null ? libraryUpdateDuration.value : this.libraryUpdateDuration), cacheSize: (cacheSize != null ? cacheSize.value : this.cacheSize), - imageSavingConvention: (imageSavingConvention != null - ? imageSavingConvention.value - : this.imageSavingConvention), - metadataOptions: (metadataOptions != null - ? metadataOptions.value - : this.metadataOptions), - skipDeserializationForBasicTypes: - (skipDeserializationForBasicTypes != null + imageSavingConvention: (imageSavingConvention != null ? imageSavingConvention.value : this.imageSavingConvention), + metadataOptions: (metadataOptions != null ? metadataOptions.value : this.metadataOptions), + skipDeserializationForBasicTypes: (skipDeserializationForBasicTypes != null ? skipDeserializationForBasicTypes.value : this.skipDeserializationForBasicTypes), serverName: (serverName != null ? serverName.value : this.serverName), uICulture: (uICulture != null ? uICulture.value : this.uICulture), - saveMetadataHidden: (saveMetadataHidden != null - ? saveMetadataHidden.value - : this.saveMetadataHidden), - contentTypes: (contentTypes != null - ? contentTypes.value - : this.contentTypes), - remoteClientBitrateLimit: (remoteClientBitrateLimit != null - ? remoteClientBitrateLimit.value - : this.remoteClientBitrateLimit), - enableFolderView: (enableFolderView != null - ? enableFolderView.value - : this.enableFolderView), - enableGroupingMoviesIntoCollections: - (enableGroupingMoviesIntoCollections != null + saveMetadataHidden: (saveMetadataHidden != null ? saveMetadataHidden.value : this.saveMetadataHidden), + contentTypes: (contentTypes != null ? contentTypes.value : this.contentTypes), + remoteClientBitrateLimit: + (remoteClientBitrateLimit != null ? remoteClientBitrateLimit.value : this.remoteClientBitrateLimit), + enableFolderView: (enableFolderView != null ? enableFolderView.value : this.enableFolderView), + enableGroupingMoviesIntoCollections: (enableGroupingMoviesIntoCollections != null ? enableGroupingMoviesIntoCollections.value : this.enableGroupingMoviesIntoCollections), - enableGroupingShowsIntoCollections: - (enableGroupingShowsIntoCollections != null + enableGroupingShowsIntoCollections: (enableGroupingShowsIntoCollections != null ? enableGroupingShowsIntoCollections.value : this.enableGroupingShowsIntoCollections), displaySpecialsWithinSeasons: (displaySpecialsWithinSeasons != null ? displaySpecialsWithinSeasons.value : this.displaySpecialsWithinSeasons), codecsUsed: (codecsUsed != null ? codecsUsed.value : this.codecsUsed), - pluginRepositories: (pluginRepositories != null - ? pluginRepositories.value - : this.pluginRepositories), - enableExternalContentInSuggestions: - (enableExternalContentInSuggestions != null + pluginRepositories: (pluginRepositories != null ? pluginRepositories.value : this.pluginRepositories), + enableExternalContentInSuggestions: (enableExternalContentInSuggestions != null ? enableExternalContentInSuggestions.value : this.enableExternalContentInSuggestions), - imageExtractionTimeoutMs: (imageExtractionTimeoutMs != null - ? imageExtractionTimeoutMs.value - : this.imageExtractionTimeoutMs), - pathSubstitutions: (pathSubstitutions != null - ? pathSubstitutions.value - : this.pathSubstitutions), - enableSlowResponseWarning: (enableSlowResponseWarning != null - ? enableSlowResponseWarning.value - : this.enableSlowResponseWarning), - slowResponseThresholdMs: (slowResponseThresholdMs != null - ? slowResponseThresholdMs.value - : this.slowResponseThresholdMs), + imageExtractionTimeoutMs: + (imageExtractionTimeoutMs != null ? imageExtractionTimeoutMs.value : this.imageExtractionTimeoutMs), + pathSubstitutions: (pathSubstitutions != null ? pathSubstitutions.value : this.pathSubstitutions), + enableSlowResponseWarning: + (enableSlowResponseWarning != null ? enableSlowResponseWarning.value : this.enableSlowResponseWarning), + slowResponseThresholdMs: + (slowResponseThresholdMs != null ? slowResponseThresholdMs.value : this.slowResponseThresholdMs), corsHosts: (corsHosts != null ? corsHosts.value : this.corsHosts), - activityLogRetentionDays: (activityLogRetentionDays != null - ? activityLogRetentionDays.value - : this.activityLogRetentionDays), + activityLogRetentionDays: + (activityLogRetentionDays != null ? activityLogRetentionDays.value : this.activityLogRetentionDays), libraryScanFanoutConcurrency: (libraryScanFanoutConcurrency != null ? libraryScanFanoutConcurrency.value : this.libraryScanFanoutConcurrency), - libraryMetadataRefreshConcurrency: - (libraryMetadataRefreshConcurrency != null + libraryMetadataRefreshConcurrency: (libraryMetadataRefreshConcurrency != null ? libraryMetadataRefreshConcurrency.value : this.libraryMetadataRefreshConcurrency), - allowClientLogUpload: (allowClientLogUpload != null - ? allowClientLogUpload.value - : this.allowClientLogUpload), - dummyChapterDuration: (dummyChapterDuration != null - ? dummyChapterDuration.value - : this.dummyChapterDuration), - chapterImageResolution: (chapterImageResolution != null - ? chapterImageResolution.value - : this.chapterImageResolution), - parallelImageEncodingLimit: (parallelImageEncodingLimit != null - ? parallelImageEncodingLimit.value - : this.parallelImageEncodingLimit), - castReceiverApplications: (castReceiverApplications != null - ? castReceiverApplications.value - : this.castReceiverApplications), - trickplayOptions: (trickplayOptions != null - ? trickplayOptions.value - : this.trickplayOptions), - enableLegacyAuthorization: (enableLegacyAuthorization != null - ? enableLegacyAuthorization.value - : this.enableLegacyAuthorization), + allowClientLogUpload: (allowClientLogUpload != null ? allowClientLogUpload.value : this.allowClientLogUpload), + dummyChapterDuration: (dummyChapterDuration != null ? dummyChapterDuration.value : this.dummyChapterDuration), + chapterImageResolution: + (chapterImageResolution != null ? chapterImageResolution.value : this.chapterImageResolution), + parallelImageEncodingLimit: + (parallelImageEncodingLimit != null ? parallelImageEncodingLimit.value : this.parallelImageEncodingLimit), + castReceiverApplications: + (castReceiverApplications != null ? castReceiverApplications.value : this.castReceiverApplications), + trickplayOptions: (trickplayOptions != null ? trickplayOptions.value : this.trickplayOptions), + enableLegacyAuthorization: + (enableLegacyAuthorization != null ? enableLegacyAuthorization.value : this.enableLegacyAuthorization), ); } } @@ -45455,8 +43513,7 @@ class ServerDiscoveryInfo { this.endpointAddress, }); - factory ServerDiscoveryInfo.fromJson(Map json) => - _$ServerDiscoveryInfoFromJson(json); + factory ServerDiscoveryInfo.fromJson(Map json) => _$ServerDiscoveryInfoFromJson(json); static const toJsonFactory = _$ServerDiscoveryInfoToJson; Map toJson() => _$ServerDiscoveryInfoToJson(this); @@ -45480,10 +43537,8 @@ class ServerDiscoveryInfo { other.address, address, )) && - (identical(other.id, id) || - const DeepCollectionEquality().equals(other.id, id)) && - (identical(other.name, name) || - const DeepCollectionEquality().equals(other.name, name)) && + (identical(other.id, id) || const DeepCollectionEquality().equals(other.id, id)) && + (identical(other.name, name) || const DeepCollectionEquality().equals(other.name, name)) && (identical(other.endpointAddress, endpointAddress) || const DeepCollectionEquality().equals( other.endpointAddress, @@ -45528,9 +43583,7 @@ extension $ServerDiscoveryInfoExtension on ServerDiscoveryInfo { address: (address != null ? address.value : this.address), id: (id != null ? id.value : this.id), name: (name != null ? name.value : this.name), - endpointAddress: (endpointAddress != null - ? endpointAddress.value - : this.endpointAddress), + endpointAddress: (endpointAddress != null ? endpointAddress.value : this.endpointAddress), ); } } @@ -45539,8 +43592,7 @@ extension $ServerDiscoveryInfoExtension on ServerDiscoveryInfo { class ServerRestartingMessage { const ServerRestartingMessage({this.messageId, this.messageType}); - factory ServerRestartingMessage.fromJson(Map json) => - _$ServerRestartingMessageFromJson(json); + factory ServerRestartingMessage.fromJson(Map json) => _$ServerRestartingMessageFromJson(json); static const toJsonFactory = _$ServerRestartingMessageToJson; Map toJson() => _$ServerRestartingMessageToJson(this); @@ -45554,8 +43606,7 @@ class ServerRestartingMessage { fromJson: sessionMessageTypeMessageTypeNullableFromJson, ) final enums.SessionMessageType? messageType; - static enums.SessionMessageType? - sessionMessageTypeMessageTypeNullableFromJson(Object? value) => + static enums.SessionMessageType? sessionMessageTypeMessageTypeNullableFromJson(Object? value) => sessionMessageTypeNullableFromJson( value, enums.SessionMessageType.serverrestarting, @@ -45615,8 +43666,7 @@ extension $ServerRestartingMessageExtension on ServerRestartingMessage { class ServerShuttingDownMessage { const ServerShuttingDownMessage({this.messageId, this.messageType}); - factory ServerShuttingDownMessage.fromJson(Map json) => - _$ServerShuttingDownMessageFromJson(json); + factory ServerShuttingDownMessage.fromJson(Map json) => _$ServerShuttingDownMessageFromJson(json); static const toJsonFactory = _$ServerShuttingDownMessageToJson; Map toJson() => _$ServerShuttingDownMessageToJson(this); @@ -45630,8 +43680,7 @@ class ServerShuttingDownMessage { fromJson: sessionMessageTypeMessageTypeNullableFromJson, ) final enums.SessionMessageType? messageType; - static enums.SessionMessageType? - sessionMessageTypeMessageTypeNullableFromJson(Object? value) => + static enums.SessionMessageType? sessionMessageTypeMessageTypeNullableFromJson(Object? value) => sessionMessageTypeNullableFromJson( value, enums.SessionMessageType.servershuttingdown, @@ -45721,8 +43770,7 @@ class SessionInfoDto { this.supportedCommands, }); - factory SessionInfoDto.fromJson(Map json) => - _$SessionInfoDtoFromJson(json); + factory SessionInfoDto.fromJson(Map json) => _$SessionInfoDtoFromJson(json); static const toJsonFactory = _$SessionInfoDtoToJson; Map toJson() => _$SessionInfoDtoToJson(this); @@ -45838,10 +43886,8 @@ class SessionInfoDto { other.playableMediaTypes, playableMediaTypes, )) && - (identical(other.id, id) || - const DeepCollectionEquality().equals(other.id, id)) && - (identical(other.userId, userId) || - const DeepCollectionEquality().equals(other.userId, userId)) && + (identical(other.id, id) || const DeepCollectionEquality().equals(other.id, id)) && + (identical(other.userId, userId) || const DeepCollectionEquality().equals(other.userId, userId)) && (identical(other.userName, userName) || const DeepCollectionEquality().equals( other.userName, @@ -46048,11 +44094,9 @@ extension $SessionInfoDtoExtension on SessionInfoDto { transcodingInfo: transcodingInfo ?? this.transcodingInfo, isActive: isActive ?? this.isActive, supportsMediaControl: supportsMediaControl ?? this.supportsMediaControl, - supportsRemoteControl: - supportsRemoteControl ?? this.supportsRemoteControl, + supportsRemoteControl: supportsRemoteControl ?? this.supportsRemoteControl, nowPlayingQueue: nowPlayingQueue ?? this.nowPlayingQueue, - nowPlayingQueueFullItems: - nowPlayingQueueFullItems ?? this.nowPlayingQueueFullItems, + nowPlayingQueueFullItems: nowPlayingQueueFullItems ?? this.nowPlayingQueueFullItems, hasCustomDeviceName: hasCustomDeviceName ?? this.hasCustomDeviceName, playlistItemId: playlistItemId ?? this.playlistItemId, serverId: serverId ?? this.serverId, @@ -46094,72 +44138,35 @@ extension $SessionInfoDtoExtension on SessionInfoDto { }) { return SessionInfoDto( playState: (playState != null ? playState.value : this.playState), - additionalUsers: (additionalUsers != null - ? additionalUsers.value - : this.additionalUsers), - capabilities: (capabilities != null - ? capabilities.value - : this.capabilities), - remoteEndPoint: (remoteEndPoint != null - ? remoteEndPoint.value - : this.remoteEndPoint), - playableMediaTypes: (playableMediaTypes != null - ? playableMediaTypes.value - : this.playableMediaTypes), + additionalUsers: (additionalUsers != null ? additionalUsers.value : this.additionalUsers), + capabilities: (capabilities != null ? capabilities.value : this.capabilities), + remoteEndPoint: (remoteEndPoint != null ? remoteEndPoint.value : this.remoteEndPoint), + playableMediaTypes: (playableMediaTypes != null ? playableMediaTypes.value : this.playableMediaTypes), id: (id != null ? id.value : this.id), userId: (userId != null ? userId.value : this.userId), userName: (userName != null ? userName.value : this.userName), $Client: ($Client != null ? $Client.value : this.$Client), - lastActivityDate: (lastActivityDate != null - ? lastActivityDate.value - : this.lastActivityDate), - lastPlaybackCheckIn: (lastPlaybackCheckIn != null - ? lastPlaybackCheckIn.value - : this.lastPlaybackCheckIn), - lastPausedDate: (lastPausedDate != null - ? lastPausedDate.value - : this.lastPausedDate), + lastActivityDate: (lastActivityDate != null ? lastActivityDate.value : this.lastActivityDate), + lastPlaybackCheckIn: (lastPlaybackCheckIn != null ? lastPlaybackCheckIn.value : this.lastPlaybackCheckIn), + lastPausedDate: (lastPausedDate != null ? lastPausedDate.value : this.lastPausedDate), deviceName: (deviceName != null ? deviceName.value : this.deviceName), deviceType: (deviceType != null ? deviceType.value : this.deviceType), - nowPlayingItem: (nowPlayingItem != null - ? nowPlayingItem.value - : this.nowPlayingItem), - nowViewingItem: (nowViewingItem != null - ? nowViewingItem.value - : this.nowViewingItem), + nowPlayingItem: (nowPlayingItem != null ? nowPlayingItem.value : this.nowPlayingItem), + nowViewingItem: (nowViewingItem != null ? nowViewingItem.value : this.nowViewingItem), deviceId: (deviceId != null ? deviceId.value : this.deviceId), - applicationVersion: (applicationVersion != null - ? applicationVersion.value - : this.applicationVersion), - transcodingInfo: (transcodingInfo != null - ? transcodingInfo.value - : this.transcodingInfo), + applicationVersion: (applicationVersion != null ? applicationVersion.value : this.applicationVersion), + transcodingInfo: (transcodingInfo != null ? transcodingInfo.value : this.transcodingInfo), isActive: (isActive != null ? isActive.value : this.isActive), - supportsMediaControl: (supportsMediaControl != null - ? supportsMediaControl.value - : this.supportsMediaControl), - supportsRemoteControl: (supportsRemoteControl != null - ? supportsRemoteControl.value - : this.supportsRemoteControl), - nowPlayingQueue: (nowPlayingQueue != null - ? nowPlayingQueue.value - : this.nowPlayingQueue), - nowPlayingQueueFullItems: (nowPlayingQueueFullItems != null - ? nowPlayingQueueFullItems.value - : this.nowPlayingQueueFullItems), - hasCustomDeviceName: (hasCustomDeviceName != null - ? hasCustomDeviceName.value - : this.hasCustomDeviceName), - playlistItemId: (playlistItemId != null - ? playlistItemId.value - : this.playlistItemId), + supportsMediaControl: (supportsMediaControl != null ? supportsMediaControl.value : this.supportsMediaControl), + supportsRemoteControl: (supportsRemoteControl != null ? supportsRemoteControl.value : this.supportsRemoteControl), + nowPlayingQueue: (nowPlayingQueue != null ? nowPlayingQueue.value : this.nowPlayingQueue), + nowPlayingQueueFullItems: + (nowPlayingQueueFullItems != null ? nowPlayingQueueFullItems.value : this.nowPlayingQueueFullItems), + hasCustomDeviceName: (hasCustomDeviceName != null ? hasCustomDeviceName.value : this.hasCustomDeviceName), + playlistItemId: (playlistItemId != null ? playlistItemId.value : this.playlistItemId), serverId: (serverId != null ? serverId.value : this.serverId), - userPrimaryImageTag: (userPrimaryImageTag != null - ? userPrimaryImageTag.value - : this.userPrimaryImageTag), - supportedCommands: (supportedCommands != null - ? supportedCommands.value - : this.supportedCommands), + userPrimaryImageTag: (userPrimaryImageTag != null ? userPrimaryImageTag.value : this.userPrimaryImageTag), + supportedCommands: (supportedCommands != null ? supportedCommands.value : this.supportedCommands), ); } } @@ -46168,8 +44175,7 @@ extension $SessionInfoDtoExtension on SessionInfoDto { class SessionsMessage { const SessionsMessage({this.data, this.messageId, this.messageType}); - factory SessionsMessage.fromJson(Map json) => - _$SessionsMessageFromJson(json); + factory SessionsMessage.fromJson(Map json) => _$SessionsMessageFromJson(json); static const toJsonFactory = _$SessionsMessageToJson; Map toJson() => _$SessionsMessageToJson(this); @@ -46185,8 +44191,7 @@ class SessionsMessage { fromJson: sessionMessageTypeMessageTypeNullableFromJson, ) final enums.SessionMessageType? messageType; - static enums.SessionMessageType? - sessionMessageTypeMessageTypeNullableFromJson(Object? value) => + static enums.SessionMessageType? sessionMessageTypeMessageTypeNullableFromJson(Object? value) => sessionMessageTypeNullableFromJson( value, enums.SessionMessageType.sessions, @@ -46198,8 +44203,7 @@ class SessionsMessage { bool operator ==(Object other) { return identical(this, other) || (other is SessionsMessage && - (identical(other.data, data) || - const DeepCollectionEquality().equals(other.data, data)) && + (identical(other.data, data) || const DeepCollectionEquality().equals(other.data, data)) && (identical(other.messageId, messageId) || const DeepCollectionEquality().equals( other.messageId, @@ -46253,8 +44257,7 @@ extension $SessionsMessageExtension on SessionsMessage { class SessionsStartMessage { const SessionsStartMessage({this.data, this.messageType}); - factory SessionsStartMessage.fromJson(Map json) => - _$SessionsStartMessageFromJson(json); + factory SessionsStartMessage.fromJson(Map json) => _$SessionsStartMessageFromJson(json); static const toJsonFactory = _$SessionsStartMessageToJson; Map toJson() => _$SessionsStartMessageToJson(this); @@ -46268,8 +44271,7 @@ class SessionsStartMessage { fromJson: sessionMessageTypeMessageTypeNullableFromJson, ) final enums.SessionMessageType? messageType; - static enums.SessionMessageType? - sessionMessageTypeMessageTypeNullableFromJson(Object? value) => + static enums.SessionMessageType? sessionMessageTypeMessageTypeNullableFromJson(Object? value) => sessionMessageTypeNullableFromJson( value, enums.SessionMessageType.sessionsstart, @@ -46281,8 +44283,7 @@ class SessionsStartMessage { bool operator ==(Object other) { return identical(this, other) || (other is SessionsStartMessage && - (identical(other.data, data) || - const DeepCollectionEquality().equals(other.data, data)) && + (identical(other.data, data) || const DeepCollectionEquality().equals(other.data, data)) && (identical(other.messageType, messageType) || const DeepCollectionEquality().equals( other.messageType, @@ -46326,8 +44327,7 @@ extension $SessionsStartMessageExtension on SessionsStartMessage { class SessionsStopMessage { const SessionsStopMessage({this.messageType}); - factory SessionsStopMessage.fromJson(Map json) => - _$SessionsStopMessageFromJson(json); + factory SessionsStopMessage.fromJson(Map json) => _$SessionsStopMessageFromJson(json); static const toJsonFactory = _$SessionsStopMessageToJson; Map toJson() => _$SessionsStopMessageToJson(this); @@ -46339,8 +44339,7 @@ class SessionsStopMessage { fromJson: sessionMessageTypeMessageTypeNullableFromJson, ) final enums.SessionMessageType? messageType; - static enums.SessionMessageType? - sessionMessageTypeMessageTypeNullableFromJson(Object? value) => + static enums.SessionMessageType? sessionMessageTypeMessageTypeNullableFromJson(Object? value) => sessionMessageTypeNullableFromJson( value, enums.SessionMessageType.sessionsstop, @@ -46363,8 +44362,7 @@ class SessionsStopMessage { String toString() => jsonEncode(this); @override - int get hashCode => - const DeepCollectionEquality().hash(messageType) ^ runtimeType.hashCode; + int get hashCode => const DeepCollectionEquality().hash(messageType) ^ runtimeType.hashCode; } extension $SessionsStopMessageExtension on SessionsStopMessage { @@ -46385,8 +44383,7 @@ extension $SessionsStopMessageExtension on SessionsStopMessage { class SessionUserInfo { const SessionUserInfo({this.userId, this.userName}); - factory SessionUserInfo.fromJson(Map json) => - _$SessionUserInfoFromJson(json); + factory SessionUserInfo.fromJson(Map json) => _$SessionUserInfoFromJson(json); static const toJsonFactory = _$SessionUserInfoToJson; Map toJson() => _$SessionUserInfoToJson(this); @@ -46401,8 +44398,7 @@ class SessionUserInfo { bool operator ==(Object other) { return identical(this, other) || (other is SessionUserInfo && - (identical(other.userId, userId) || - const DeepCollectionEquality().equals(other.userId, userId)) && + (identical(other.userId, userId) || const DeepCollectionEquality().equals(other.userId, userId)) && (identical(other.userName, userName) || const DeepCollectionEquality().equals( other.userName, @@ -46447,8 +44443,7 @@ class SetChannelMappingDto { required this.providerChannelId, }); - factory SetChannelMappingDto.fromJson(Map json) => - _$SetChannelMappingDtoFromJson(json); + factory SetChannelMappingDto.fromJson(Map json) => _$SetChannelMappingDtoFromJson(json); static const toJsonFactory = _$SetChannelMappingDtoToJson; Map toJson() => _$SetChannelMappingDtoToJson(this); @@ -46513,12 +44508,8 @@ extension $SetChannelMappingDtoExtension on SetChannelMappingDto { }) { return SetChannelMappingDto( providerId: (providerId != null ? providerId.value : this.providerId), - tunerChannelId: (tunerChannelId != null - ? tunerChannelId.value - : this.tunerChannelId), - providerChannelId: (providerChannelId != null - ? providerChannelId.value - : this.providerChannelId), + tunerChannelId: (tunerChannelId != null ? tunerChannelId.value : this.tunerChannelId), + providerChannelId: (providerChannelId != null ? providerChannelId.value : this.providerChannelId), ); } } @@ -46527,8 +44518,7 @@ extension $SetChannelMappingDtoExtension on SetChannelMappingDto { class SetPlaylistItemRequestDto { const SetPlaylistItemRequestDto({this.playlistItemId}); - factory SetPlaylistItemRequestDto.fromJson(Map json) => - _$SetPlaylistItemRequestDtoFromJson(json); + factory SetPlaylistItemRequestDto.fromJson(Map json) => _$SetPlaylistItemRequestDtoFromJson(json); static const toJsonFactory = _$SetPlaylistItemRequestDtoToJson; Map toJson() => _$SetPlaylistItemRequestDtoToJson(this); @@ -46552,9 +44542,7 @@ class SetPlaylistItemRequestDto { String toString() => jsonEncode(this); @override - int get hashCode => - const DeepCollectionEquality().hash(playlistItemId) ^ - runtimeType.hashCode; + int get hashCode => const DeepCollectionEquality().hash(playlistItemId) ^ runtimeType.hashCode; } extension $SetPlaylistItemRequestDtoExtension on SetPlaylistItemRequestDto { @@ -46568,9 +44556,7 @@ extension $SetPlaylistItemRequestDtoExtension on SetPlaylistItemRequestDto { Wrapped? playlistItemId, }) { return SetPlaylistItemRequestDto( - playlistItemId: (playlistItemId != null - ? playlistItemId.value - : this.playlistItemId), + playlistItemId: (playlistItemId != null ? playlistItemId.value : this.playlistItemId), ); } } @@ -46579,8 +44565,7 @@ extension $SetPlaylistItemRequestDtoExtension on SetPlaylistItemRequestDto { class SetRepeatModeRequestDto { const SetRepeatModeRequestDto({this.mode}); - factory SetRepeatModeRequestDto.fromJson(Map json) => - _$SetRepeatModeRequestDtoFromJson(json); + factory SetRepeatModeRequestDto.fromJson(Map json) => _$SetRepeatModeRequestDtoFromJson(json); static const toJsonFactory = _$SetRepeatModeRequestDtoToJson; Map toJson() => _$SetRepeatModeRequestDtoToJson(this); @@ -46598,16 +44583,14 @@ class SetRepeatModeRequestDto { bool operator ==(Object other) { return identical(this, other) || (other is SetRepeatModeRequestDto && - (identical(other.mode, mode) || - const DeepCollectionEquality().equals(other.mode, mode))); + (identical(other.mode, mode) || const DeepCollectionEquality().equals(other.mode, mode))); } @override String toString() => jsonEncode(this); @override - int get hashCode => - const DeepCollectionEquality().hash(mode) ^ runtimeType.hashCode; + int get hashCode => const DeepCollectionEquality().hash(mode) ^ runtimeType.hashCode; } extension $SetRepeatModeRequestDtoExtension on SetRepeatModeRequestDto { @@ -46628,8 +44611,7 @@ extension $SetRepeatModeRequestDtoExtension on SetRepeatModeRequestDto { class SetShuffleModeRequestDto { const SetShuffleModeRequestDto({this.mode}); - factory SetShuffleModeRequestDto.fromJson(Map json) => - _$SetShuffleModeRequestDtoFromJson(json); + factory SetShuffleModeRequestDto.fromJson(Map json) => _$SetShuffleModeRequestDtoFromJson(json); static const toJsonFactory = _$SetShuffleModeRequestDtoToJson; Map toJson() => _$SetShuffleModeRequestDtoToJson(this); @@ -46647,16 +44629,14 @@ class SetShuffleModeRequestDto { bool operator ==(Object other) { return identical(this, other) || (other is SetShuffleModeRequestDto && - (identical(other.mode, mode) || - const DeepCollectionEquality().equals(other.mode, mode))); + (identical(other.mode, mode) || const DeepCollectionEquality().equals(other.mode, mode))); } @override String toString() => jsonEncode(this); @override - int get hashCode => - const DeepCollectionEquality().hash(mode) ^ runtimeType.hashCode; + int get hashCode => const DeepCollectionEquality().hash(mode) ^ runtimeType.hashCode; } extension $SetShuffleModeRequestDtoExtension on SetShuffleModeRequestDto { @@ -46692,8 +44672,7 @@ class SongInfo { this.artists, }); - factory SongInfo.fromJson(Map json) => - _$SongInfoFromJson(json); + factory SongInfo.fromJson(Map json) => _$SongInfoFromJson(json); static const toJsonFactory = _$SongInfoToJson; Map toJson() => _$SongInfoToJson(this); @@ -46732,15 +44711,13 @@ class SongInfo { bool operator ==(Object other) { return identical(this, other) || (other is SongInfo && - (identical(other.name, name) || - const DeepCollectionEquality().equals(other.name, name)) && + (identical(other.name, name) || const DeepCollectionEquality().equals(other.name, name)) && (identical(other.originalTitle, originalTitle) || const DeepCollectionEquality().equals( other.originalTitle, originalTitle, )) && - (identical(other.path, path) || - const DeepCollectionEquality().equals(other.path, path)) && + (identical(other.path, path) || const DeepCollectionEquality().equals(other.path, path)) && (identical(other.metadataLanguage, metadataLanguage) || const DeepCollectionEquality().equals( other.metadataLanguage, @@ -46756,8 +44733,7 @@ class SongInfo { other.providerIds, providerIds, )) && - (identical(other.year, year) || - const DeepCollectionEquality().equals(other.year, year)) && + (identical(other.year, year) || const DeepCollectionEquality().equals(other.year, year)) && (identical(other.indexNumber, indexNumber) || const DeepCollectionEquality().equals( other.indexNumber, @@ -46783,10 +44759,8 @@ class SongInfo { other.albumArtists, albumArtists, )) && - (identical(other.album, album) || - const DeepCollectionEquality().equals(other.album, album)) && - (identical(other.artists, artists) || - const DeepCollectionEquality().equals(other.artists, artists))); + (identical(other.album, album) || const DeepCollectionEquality().equals(other.album, album)) && + (identical(other.artists, artists) || const DeepCollectionEquality().equals(other.artists, artists))); } @override @@ -46864,29 +44838,17 @@ extension $SongInfoExtension on SongInfo { }) { return SongInfo( name: (name != null ? name.value : this.name), - originalTitle: (originalTitle != null - ? originalTitle.value - : this.originalTitle), + originalTitle: (originalTitle != null ? originalTitle.value : this.originalTitle), path: (path != null ? path.value : this.path), - metadataLanguage: (metadataLanguage != null - ? metadataLanguage.value - : this.metadataLanguage), - metadataCountryCode: (metadataCountryCode != null - ? metadataCountryCode.value - : this.metadataCountryCode), + metadataLanguage: (metadataLanguage != null ? metadataLanguage.value : this.metadataLanguage), + metadataCountryCode: (metadataCountryCode != null ? metadataCountryCode.value : this.metadataCountryCode), providerIds: (providerIds != null ? providerIds.value : this.providerIds), year: (year != null ? year.value : this.year), indexNumber: (indexNumber != null ? indexNumber.value : this.indexNumber), - parentIndexNumber: (parentIndexNumber != null - ? parentIndexNumber.value - : this.parentIndexNumber), - premiereDate: (premiereDate != null - ? premiereDate.value - : this.premiereDate), + parentIndexNumber: (parentIndexNumber != null ? parentIndexNumber.value : this.parentIndexNumber), + premiereDate: (premiereDate != null ? premiereDate.value : this.premiereDate), isAutomated: (isAutomated != null ? isAutomated.value : this.isAutomated), - albumArtists: (albumArtists != null - ? albumArtists.value - : this.albumArtists), + albumArtists: (albumArtists != null ? albumArtists.value : this.albumArtists), album: (album != null ? album.value : this.album), artists: (artists != null ? artists.value : this.artists), ); @@ -46897,8 +44859,7 @@ extension $SongInfoExtension on SongInfo { class SpecialViewOptionDto { const SpecialViewOptionDto({this.name, this.id}); - factory SpecialViewOptionDto.fromJson(Map json) => - _$SpecialViewOptionDtoFromJson(json); + factory SpecialViewOptionDto.fromJson(Map json) => _$SpecialViewOptionDtoFromJson(json); static const toJsonFactory = _$SpecialViewOptionDtoToJson; Map toJson() => _$SpecialViewOptionDtoToJson(this); @@ -46913,10 +44874,8 @@ class SpecialViewOptionDto { bool operator ==(Object other) { return identical(this, other) || (other is SpecialViewOptionDto && - (identical(other.name, name) || - const DeepCollectionEquality().equals(other.name, name)) && - (identical(other.id, id) || - const DeepCollectionEquality().equals(other.id, id))); + (identical(other.name, name) || const DeepCollectionEquality().equals(other.name, name)) && + (identical(other.id, id) || const DeepCollectionEquality().equals(other.id, id))); } @override @@ -46924,9 +44883,7 @@ class SpecialViewOptionDto { @override int get hashCode => - const DeepCollectionEquality().hash(name) ^ - const DeepCollectionEquality().hash(id) ^ - runtimeType.hashCode; + const DeepCollectionEquality().hash(name) ^ const DeepCollectionEquality().hash(id) ^ runtimeType.hashCode; } extension $SpecialViewOptionDtoExtension on SpecialViewOptionDto { @@ -46954,8 +44911,7 @@ class StartupConfigurationDto { this.preferredMetadataLanguage, }); - factory StartupConfigurationDto.fromJson(Map json) => - _$StartupConfigurationDtoFromJson(json); + factory StartupConfigurationDto.fromJson(Map json) => _$StartupConfigurationDtoFromJson(json); static const toJsonFactory = _$StartupConfigurationDtoToJson; Map toJson() => _$StartupConfigurationDtoToJson(this); @@ -47022,8 +44978,7 @@ extension $StartupConfigurationDtoExtension on StartupConfigurationDto { serverName: serverName ?? this.serverName, uICulture: uICulture ?? this.uICulture, metadataCountryCode: metadataCountryCode ?? this.metadataCountryCode, - preferredMetadataLanguage: - preferredMetadataLanguage ?? this.preferredMetadataLanguage, + preferredMetadataLanguage: preferredMetadataLanguage ?? this.preferredMetadataLanguage, ); } @@ -47036,12 +44991,9 @@ extension $StartupConfigurationDtoExtension on StartupConfigurationDto { return StartupConfigurationDto( serverName: (serverName != null ? serverName.value : this.serverName), uICulture: (uICulture != null ? uICulture.value : this.uICulture), - metadataCountryCode: (metadataCountryCode != null - ? metadataCountryCode.value - : this.metadataCountryCode), - preferredMetadataLanguage: (preferredMetadataLanguage != null - ? preferredMetadataLanguage.value - : this.preferredMetadataLanguage), + metadataCountryCode: (metadataCountryCode != null ? metadataCountryCode.value : this.metadataCountryCode), + preferredMetadataLanguage: + (preferredMetadataLanguage != null ? preferredMetadataLanguage.value : this.preferredMetadataLanguage), ); } } @@ -47053,8 +45005,7 @@ class StartupRemoteAccessDto { required this.enableAutomaticPortMapping, }); - factory StartupRemoteAccessDto.fromJson(Map json) => - _$StartupRemoteAccessDtoFromJson(json); + factory StartupRemoteAccessDto.fromJson(Map json) => _$StartupRemoteAccessDtoFromJson(json); static const toJsonFactory = _$StartupRemoteAccessDtoToJson; Map toJson() => _$StartupRemoteAccessDtoToJson(this); @@ -47102,8 +45053,7 @@ extension $StartupRemoteAccessDtoExtension on StartupRemoteAccessDto { }) { return StartupRemoteAccessDto( enableRemoteAccess: enableRemoteAccess ?? this.enableRemoteAccess, - enableAutomaticPortMapping: - enableAutomaticPortMapping ?? this.enableAutomaticPortMapping, + enableAutomaticPortMapping: enableAutomaticPortMapping ?? this.enableAutomaticPortMapping, ); } @@ -47112,12 +45062,9 @@ extension $StartupRemoteAccessDtoExtension on StartupRemoteAccessDto { Wrapped? enableAutomaticPortMapping, }) { return StartupRemoteAccessDto( - enableRemoteAccess: (enableRemoteAccess != null - ? enableRemoteAccess.value - : this.enableRemoteAccess), - enableAutomaticPortMapping: (enableAutomaticPortMapping != null - ? enableAutomaticPortMapping.value - : this.enableAutomaticPortMapping), + enableRemoteAccess: (enableRemoteAccess != null ? enableRemoteAccess.value : this.enableRemoteAccess), + enableAutomaticPortMapping: + (enableAutomaticPortMapping != null ? enableAutomaticPortMapping.value : this.enableAutomaticPortMapping), ); } } @@ -47126,8 +45073,7 @@ extension $StartupRemoteAccessDtoExtension on StartupRemoteAccessDto { class StartupUserDto { const StartupUserDto({this.name, this.password}); - factory StartupUserDto.fromJson(Map json) => - _$StartupUserDtoFromJson(json); + factory StartupUserDto.fromJson(Map json) => _$StartupUserDtoFromJson(json); static const toJsonFactory = _$StartupUserDtoToJson; Map toJson() => _$StartupUserDtoToJson(this); @@ -47142,8 +45088,7 @@ class StartupUserDto { bool operator ==(Object other) { return identical(this, other) || (other is StartupUserDto && - (identical(other.name, name) || - const DeepCollectionEquality().equals(other.name, name)) && + (identical(other.name, name) || const DeepCollectionEquality().equals(other.name, name)) && (identical(other.password, password) || const DeepCollectionEquality().equals( other.password, @@ -47156,9 +45101,7 @@ class StartupUserDto { @override int get hashCode => - const DeepCollectionEquality().hash(name) ^ - const DeepCollectionEquality().hash(password) ^ - runtimeType.hashCode; + const DeepCollectionEquality().hash(name) ^ const DeepCollectionEquality().hash(password) ^ runtimeType.hashCode; } extension $StartupUserDtoExtension on StartupUserDto { @@ -47194,8 +45137,7 @@ class SubtitleOptions { this.requirePerfectMatch, }); - factory SubtitleOptions.fromJson(Map json) => - _$SubtitleOptionsFromJson(json); + factory SubtitleOptions.fromJson(Map json) => _$SubtitleOptionsFromJson(json); static const toJsonFactory = _$SubtitleOptionsToJson; Map toJson() => _$SubtitleOptionsToJson(this); @@ -47320,21 +45262,14 @@ extension $SubtitleOptionsExtension on SubtitleOptions { bool? requirePerfectMatch, }) { return SubtitleOptions( - skipIfEmbeddedSubtitlesPresent: - skipIfEmbeddedSubtitlesPresent ?? this.skipIfEmbeddedSubtitlesPresent, - skipIfAudioTrackMatches: - skipIfAudioTrackMatches ?? this.skipIfAudioTrackMatches, + skipIfEmbeddedSubtitlesPresent: skipIfEmbeddedSubtitlesPresent ?? this.skipIfEmbeddedSubtitlesPresent, + skipIfAudioTrackMatches: skipIfAudioTrackMatches ?? this.skipIfAudioTrackMatches, downloadLanguages: downloadLanguages ?? this.downloadLanguages, - downloadMovieSubtitles: - downloadMovieSubtitles ?? this.downloadMovieSubtitles, - downloadEpisodeSubtitles: - downloadEpisodeSubtitles ?? this.downloadEpisodeSubtitles, - openSubtitlesUsername: - openSubtitlesUsername ?? this.openSubtitlesUsername, - openSubtitlesPasswordHash: - openSubtitlesPasswordHash ?? this.openSubtitlesPasswordHash, - isOpenSubtitleVipAccount: - isOpenSubtitleVipAccount ?? this.isOpenSubtitleVipAccount, + downloadMovieSubtitles: downloadMovieSubtitles ?? this.downloadMovieSubtitles, + downloadEpisodeSubtitles: downloadEpisodeSubtitles ?? this.downloadEpisodeSubtitles, + openSubtitlesUsername: openSubtitlesUsername ?? this.openSubtitlesUsername, + openSubtitlesPasswordHash: openSubtitlesPasswordHash ?? this.openSubtitlesPasswordHash, + isOpenSubtitleVipAccount: isOpenSubtitleVipAccount ?? this.isOpenSubtitleVipAccount, requirePerfectMatch: requirePerfectMatch ?? this.requirePerfectMatch, ); } @@ -47354,30 +45289,19 @@ extension $SubtitleOptionsExtension on SubtitleOptions { skipIfEmbeddedSubtitlesPresent: (skipIfEmbeddedSubtitlesPresent != null ? skipIfEmbeddedSubtitlesPresent.value : this.skipIfEmbeddedSubtitlesPresent), - skipIfAudioTrackMatches: (skipIfAudioTrackMatches != null - ? skipIfAudioTrackMatches.value - : this.skipIfAudioTrackMatches), - downloadLanguages: (downloadLanguages != null - ? downloadLanguages.value - : this.downloadLanguages), - downloadMovieSubtitles: (downloadMovieSubtitles != null - ? downloadMovieSubtitles.value - : this.downloadMovieSubtitles), - downloadEpisodeSubtitles: (downloadEpisodeSubtitles != null - ? downloadEpisodeSubtitles.value - : this.downloadEpisodeSubtitles), - openSubtitlesUsername: (openSubtitlesUsername != null - ? openSubtitlesUsername.value - : this.openSubtitlesUsername), - openSubtitlesPasswordHash: (openSubtitlesPasswordHash != null - ? openSubtitlesPasswordHash.value - : this.openSubtitlesPasswordHash), - isOpenSubtitleVipAccount: (isOpenSubtitleVipAccount != null - ? isOpenSubtitleVipAccount.value - : this.isOpenSubtitleVipAccount), - requirePerfectMatch: (requirePerfectMatch != null - ? requirePerfectMatch.value - : this.requirePerfectMatch), + skipIfAudioTrackMatches: + (skipIfAudioTrackMatches != null ? skipIfAudioTrackMatches.value : this.skipIfAudioTrackMatches), + downloadLanguages: (downloadLanguages != null ? downloadLanguages.value : this.downloadLanguages), + downloadMovieSubtitles: + (downloadMovieSubtitles != null ? downloadMovieSubtitles.value : this.downloadMovieSubtitles), + downloadEpisodeSubtitles: + (downloadEpisodeSubtitles != null ? downloadEpisodeSubtitles.value : this.downloadEpisodeSubtitles), + openSubtitlesUsername: (openSubtitlesUsername != null ? openSubtitlesUsername.value : this.openSubtitlesUsername), + openSubtitlesPasswordHash: + (openSubtitlesPasswordHash != null ? openSubtitlesPasswordHash.value : this.openSubtitlesPasswordHash), + isOpenSubtitleVipAccount: + (isOpenSubtitleVipAccount != null ? isOpenSubtitleVipAccount.value : this.isOpenSubtitleVipAccount), + requirePerfectMatch: (requirePerfectMatch != null ? requirePerfectMatch.value : this.requirePerfectMatch), ); } } @@ -47392,8 +45316,7 @@ class SubtitleProfile { this.container, }); - factory SubtitleProfile.fromJson(Map json) => - _$SubtitleProfileFromJson(json); + factory SubtitleProfile.fromJson(Map json) => _$SubtitleProfileFromJson(json); static const toJsonFactory = _$SubtitleProfileToJson; Map toJson() => _$SubtitleProfileToJson(this); @@ -47419,10 +45342,8 @@ class SubtitleProfile { bool operator ==(Object other) { return identical(this, other) || (other is SubtitleProfile && - (identical(other.format, format) || - const DeepCollectionEquality().equals(other.format, format)) && - (identical(other.method, method) || - const DeepCollectionEquality().equals(other.method, method)) && + (identical(other.format, format) || const DeepCollectionEquality().equals(other.format, format)) && + (identical(other.method, method) || const DeepCollectionEquality().equals(other.method, method)) && (identical(other.didlMode, didlMode) || const DeepCollectionEquality().equals( other.didlMode, @@ -47491,8 +45412,7 @@ extension $SubtitleProfileExtension on SubtitleProfile { class SyncPlayCommandMessage { const SyncPlayCommandMessage({this.data, this.messageId, this.messageType}); - factory SyncPlayCommandMessage.fromJson(Map json) => - _$SyncPlayCommandMessageFromJson(json); + factory SyncPlayCommandMessage.fromJson(Map json) => _$SyncPlayCommandMessageFromJson(json); static const toJsonFactory = _$SyncPlayCommandMessageToJson; Map toJson() => _$SyncPlayCommandMessageToJson(this); @@ -47508,8 +45428,7 @@ class SyncPlayCommandMessage { fromJson: sessionMessageTypeMessageTypeNullableFromJson, ) final enums.SessionMessageType? messageType; - static enums.SessionMessageType? - sessionMessageTypeMessageTypeNullableFromJson(Object? value) => + static enums.SessionMessageType? sessionMessageTypeMessageTypeNullableFromJson(Object? value) => sessionMessageTypeNullableFromJson( value, enums.SessionMessageType.syncplaycommand, @@ -47521,8 +45440,7 @@ class SyncPlayCommandMessage { bool operator ==(Object other) { return identical(this, other) || (other is SyncPlayCommandMessage && - (identical(other.data, data) || - const DeepCollectionEquality().equals(other.data, data)) && + (identical(other.data, data) || const DeepCollectionEquality().equals(other.data, data)) && (identical(other.messageId, messageId) || const DeepCollectionEquality().equals( other.messageId, @@ -47580,8 +45498,7 @@ class SyncPlayGroupDoesNotExistUpdate { _$SyncPlayGroupDoesNotExistUpdateFromJson(json); static const toJsonFactory = _$SyncPlayGroupDoesNotExistUpdateToJson; - Map toJson() => - _$SyncPlayGroupDoesNotExistUpdateToJson(this); + Map toJson() => _$SyncPlayGroupDoesNotExistUpdateToJson(this); @JsonKey(name: 'GroupId', includeIfNull: false) final String? groupId; @@ -47596,10 +45513,11 @@ class SyncPlayGroupDoesNotExistUpdate { final enums.GroupUpdateType? type; static enums.GroupUpdateType? groupUpdateTypeTypeNullableFromJson( Object? value, - ) => groupUpdateTypeNullableFromJson( - value, - enums.GroupUpdateType.groupdoesnotexist, - ); + ) => + groupUpdateTypeNullableFromJson( + value, + enums.GroupUpdateType.groupdoesnotexist, + ); static const fromJsonFactory = _$SyncPlayGroupDoesNotExistUpdateFromJson; @@ -47612,10 +45530,8 @@ class SyncPlayGroupDoesNotExistUpdate { other.groupId, groupId, )) && - (identical(other.data, data) || - const DeepCollectionEquality().equals(other.data, data)) && - (identical(other.type, type) || - const DeepCollectionEquality().equals(other.type, type))); + (identical(other.data, data) || const DeepCollectionEquality().equals(other.data, data)) && + (identical(other.type, type) || const DeepCollectionEquality().equals(other.type, type))); } @override @@ -47629,8 +45545,7 @@ class SyncPlayGroupDoesNotExistUpdate { runtimeType.hashCode; } -extension $SyncPlayGroupDoesNotExistUpdateExtension - on SyncPlayGroupDoesNotExistUpdate { +extension $SyncPlayGroupDoesNotExistUpdateExtension on SyncPlayGroupDoesNotExistUpdate { SyncPlayGroupDoesNotExistUpdate copyWith({ String? groupId, String? data, @@ -47660,8 +45575,7 @@ extension $SyncPlayGroupDoesNotExistUpdateExtension class SyncPlayGroupJoinedUpdate { const SyncPlayGroupJoinedUpdate({this.groupId, this.data, this.type}); - factory SyncPlayGroupJoinedUpdate.fromJson(Map json) => - _$SyncPlayGroupJoinedUpdateFromJson(json); + factory SyncPlayGroupJoinedUpdate.fromJson(Map json) => _$SyncPlayGroupJoinedUpdateFromJson(json); static const toJsonFactory = _$SyncPlayGroupJoinedUpdateToJson; Map toJson() => _$SyncPlayGroupJoinedUpdateToJson(this); @@ -47693,10 +45607,8 @@ class SyncPlayGroupJoinedUpdate { other.groupId, groupId, )) && - (identical(other.data, data) || - const DeepCollectionEquality().equals(other.data, data)) && - (identical(other.type, type) || - const DeepCollectionEquality().equals(other.type, type))); + (identical(other.data, data) || const DeepCollectionEquality().equals(other.data, data)) && + (identical(other.type, type) || const DeepCollectionEquality().equals(other.type, type))); } @override @@ -47740,8 +45652,7 @@ extension $SyncPlayGroupJoinedUpdateExtension on SyncPlayGroupJoinedUpdate { class SyncPlayGroupLeftUpdate { const SyncPlayGroupLeftUpdate({this.groupId, this.data, this.type}); - factory SyncPlayGroupLeftUpdate.fromJson(Map json) => - _$SyncPlayGroupLeftUpdateFromJson(json); + factory SyncPlayGroupLeftUpdate.fromJson(Map json) => _$SyncPlayGroupLeftUpdateFromJson(json); static const toJsonFactory = _$SyncPlayGroupLeftUpdateToJson; Map toJson() => _$SyncPlayGroupLeftUpdateToJson(this); @@ -47759,7 +45670,8 @@ class SyncPlayGroupLeftUpdate { final enums.GroupUpdateType? type; static enums.GroupUpdateType? groupUpdateTypeTypeNullableFromJson( Object? value, - ) => groupUpdateTypeNullableFromJson(value, enums.GroupUpdateType.groupleft); + ) => + groupUpdateTypeNullableFromJson(value, enums.GroupUpdateType.groupleft); static const fromJsonFactory = _$SyncPlayGroupLeftUpdateFromJson; @@ -47772,10 +45684,8 @@ class SyncPlayGroupLeftUpdate { other.groupId, groupId, )) && - (identical(other.data, data) || - const DeepCollectionEquality().equals(other.data, data)) && - (identical(other.type, type) || - const DeepCollectionEquality().equals(other.type, type))); + (identical(other.data, data) || const DeepCollectionEquality().equals(other.data, data)) && + (identical(other.type, type) || const DeepCollectionEquality().equals(other.type, type))); } @override @@ -47823,8 +45733,7 @@ class SyncPlayGroupUpdateMessage { this.messageType, }); - factory SyncPlayGroupUpdateMessage.fromJson(Map json) => - _$SyncPlayGroupUpdateMessageFromJson(json); + factory SyncPlayGroupUpdateMessage.fromJson(Map json) => _$SyncPlayGroupUpdateMessageFromJson(json); static const toJsonFactory = _$SyncPlayGroupUpdateMessageToJson; Map toJson() => _$SyncPlayGroupUpdateMessageToJson(this); @@ -47840,8 +45749,7 @@ class SyncPlayGroupUpdateMessage { fromJson: sessionMessageTypeMessageTypeNullableFromJson, ) final enums.SessionMessageType? messageType; - static enums.SessionMessageType? - sessionMessageTypeMessageTypeNullableFromJson(Object? value) => + static enums.SessionMessageType? sessionMessageTypeMessageTypeNullableFromJson(Object? value) => sessionMessageTypeNullableFromJson( value, enums.SessionMessageType.syncplaygroupupdate, @@ -47853,8 +45761,7 @@ class SyncPlayGroupUpdateMessage { bool operator ==(Object other) { return identical(this, other) || (other is SyncPlayGroupUpdateMessage && - (identical(other.data, data) || - const DeepCollectionEquality().equals(other.data, data)) && + (identical(other.data, data) || const DeepCollectionEquality().equals(other.data, data)) && (identical(other.messageId, messageId) || const DeepCollectionEquality().equals( other.messageId, @@ -47910,11 +45817,11 @@ class SyncPlayLibraryAccessDeniedUpdate { factory SyncPlayLibraryAccessDeniedUpdate.fromJson( Map json, - ) => _$SyncPlayLibraryAccessDeniedUpdateFromJson(json); + ) => + _$SyncPlayLibraryAccessDeniedUpdateFromJson(json); static const toJsonFactory = _$SyncPlayLibraryAccessDeniedUpdateToJson; - Map toJson() => - _$SyncPlayLibraryAccessDeniedUpdateToJson(this); + Map toJson() => _$SyncPlayLibraryAccessDeniedUpdateToJson(this); @JsonKey(name: 'GroupId', includeIfNull: false) final String? groupId; @@ -47929,10 +45836,11 @@ class SyncPlayLibraryAccessDeniedUpdate { final enums.GroupUpdateType? type; static enums.GroupUpdateType? groupUpdateTypeTypeNullableFromJson( Object? value, - ) => groupUpdateTypeNullableFromJson( - value, - enums.GroupUpdateType.libraryaccessdenied, - ); + ) => + groupUpdateTypeNullableFromJson( + value, + enums.GroupUpdateType.libraryaccessdenied, + ); static const fromJsonFactory = _$SyncPlayLibraryAccessDeniedUpdateFromJson; @@ -47945,10 +45853,8 @@ class SyncPlayLibraryAccessDeniedUpdate { other.groupId, groupId, )) && - (identical(other.data, data) || - const DeepCollectionEquality().equals(other.data, data)) && - (identical(other.type, type) || - const DeepCollectionEquality().equals(other.type, type))); + (identical(other.data, data) || const DeepCollectionEquality().equals(other.data, data)) && + (identical(other.type, type) || const DeepCollectionEquality().equals(other.type, type))); } @override @@ -47962,8 +45868,7 @@ class SyncPlayLibraryAccessDeniedUpdate { runtimeType.hashCode; } -extension $SyncPlayLibraryAccessDeniedUpdateExtension - on SyncPlayLibraryAccessDeniedUpdate { +extension $SyncPlayLibraryAccessDeniedUpdateExtension on SyncPlayLibraryAccessDeniedUpdate { SyncPlayLibraryAccessDeniedUpdate copyWith({ String? groupId, String? data, @@ -47993,8 +45898,7 @@ extension $SyncPlayLibraryAccessDeniedUpdateExtension class SyncPlayNotInGroupUpdate { const SyncPlayNotInGroupUpdate({this.groupId, this.data, this.type}); - factory SyncPlayNotInGroupUpdate.fromJson(Map json) => - _$SyncPlayNotInGroupUpdateFromJson(json); + factory SyncPlayNotInGroupUpdate.fromJson(Map json) => _$SyncPlayNotInGroupUpdateFromJson(json); static const toJsonFactory = _$SyncPlayNotInGroupUpdateToJson; Map toJson() => _$SyncPlayNotInGroupUpdateToJson(this); @@ -48012,7 +45916,8 @@ class SyncPlayNotInGroupUpdate { final enums.GroupUpdateType? type; static enums.GroupUpdateType? groupUpdateTypeTypeNullableFromJson( Object? value, - ) => groupUpdateTypeNullableFromJson(value, enums.GroupUpdateType.notingroup); + ) => + groupUpdateTypeNullableFromJson(value, enums.GroupUpdateType.notingroup); static const fromJsonFactory = _$SyncPlayNotInGroupUpdateFromJson; @@ -48025,10 +45930,8 @@ class SyncPlayNotInGroupUpdate { other.groupId, groupId, )) && - (identical(other.data, data) || - const DeepCollectionEquality().equals(other.data, data)) && - (identical(other.type, type) || - const DeepCollectionEquality().equals(other.type, type))); + (identical(other.data, data) || const DeepCollectionEquality().equals(other.data, data)) && + (identical(other.type, type) || const DeepCollectionEquality().equals(other.type, type))); } @override @@ -48072,8 +45975,7 @@ extension $SyncPlayNotInGroupUpdateExtension on SyncPlayNotInGroupUpdate { class SyncPlayPlayQueueUpdate { const SyncPlayPlayQueueUpdate({this.groupId, this.data, this.type}); - factory SyncPlayPlayQueueUpdate.fromJson(Map json) => - _$SyncPlayPlayQueueUpdateFromJson(json); + factory SyncPlayPlayQueueUpdate.fromJson(Map json) => _$SyncPlayPlayQueueUpdateFromJson(json); static const toJsonFactory = _$SyncPlayPlayQueueUpdateToJson; Map toJson() => _$SyncPlayPlayQueueUpdateToJson(this); @@ -48091,7 +45993,8 @@ class SyncPlayPlayQueueUpdate { final enums.GroupUpdateType? type; static enums.GroupUpdateType? groupUpdateTypeTypeNullableFromJson( Object? value, - ) => groupUpdateTypeNullableFromJson(value, enums.GroupUpdateType.playqueue); + ) => + groupUpdateTypeNullableFromJson(value, enums.GroupUpdateType.playqueue); static const fromJsonFactory = _$SyncPlayPlayQueueUpdateFromJson; @@ -48104,10 +46007,8 @@ class SyncPlayPlayQueueUpdate { other.groupId, groupId, )) && - (identical(other.data, data) || - const DeepCollectionEquality().equals(other.data, data)) && - (identical(other.type, type) || - const DeepCollectionEquality().equals(other.type, type))); + (identical(other.data, data) || const DeepCollectionEquality().equals(other.data, data)) && + (identical(other.type, type) || const DeepCollectionEquality().equals(other.type, type))); } @override @@ -48151,8 +46052,7 @@ extension $SyncPlayPlayQueueUpdateExtension on SyncPlayPlayQueueUpdate { class SyncPlayQueueItem { const SyncPlayQueueItem({this.itemId, this.playlistItemId}); - factory SyncPlayQueueItem.fromJson(Map json) => - _$SyncPlayQueueItemFromJson(json); + factory SyncPlayQueueItem.fromJson(Map json) => _$SyncPlayQueueItemFromJson(json); static const toJsonFactory = _$SyncPlayQueueItemToJson; Map toJson() => _$SyncPlayQueueItemToJson(this); @@ -48167,8 +46067,7 @@ class SyncPlayQueueItem { bool operator ==(Object other) { return identical(this, other) || (other is SyncPlayQueueItem && - (identical(other.itemId, itemId) || - const DeepCollectionEquality().equals(other.itemId, itemId)) && + (identical(other.itemId, itemId) || const DeepCollectionEquality().equals(other.itemId, itemId)) && (identical(other.playlistItemId, playlistItemId) || const DeepCollectionEquality().equals( other.playlistItemId, @@ -48200,9 +46099,7 @@ extension $SyncPlayQueueItemExtension on SyncPlayQueueItem { }) { return SyncPlayQueueItem( itemId: (itemId != null ? itemId.value : this.itemId), - playlistItemId: (playlistItemId != null - ? playlistItemId.value - : this.playlistItemId), + playlistItemId: (playlistItemId != null ? playlistItemId.value : this.playlistItemId), ); } } @@ -48211,8 +46108,7 @@ extension $SyncPlayQueueItemExtension on SyncPlayQueueItem { class SyncPlayStateUpdate { const SyncPlayStateUpdate({this.groupId, this.data, this.type}); - factory SyncPlayStateUpdate.fromJson(Map json) => - _$SyncPlayStateUpdateFromJson(json); + factory SyncPlayStateUpdate.fromJson(Map json) => _$SyncPlayStateUpdateFromJson(json); static const toJsonFactory = _$SyncPlayStateUpdateToJson; Map toJson() => _$SyncPlayStateUpdateToJson(this); @@ -48244,10 +46140,8 @@ class SyncPlayStateUpdate { other.groupId, groupId, )) && - (identical(other.data, data) || - const DeepCollectionEquality().equals(other.data, data)) && - (identical(other.type, type) || - const DeepCollectionEquality().equals(other.type, type))); + (identical(other.data, data) || const DeepCollectionEquality().equals(other.data, data)) && + (identical(other.type, type) || const DeepCollectionEquality().equals(other.type, type))); } @override @@ -48291,8 +46185,7 @@ extension $SyncPlayStateUpdateExtension on SyncPlayStateUpdate { class SyncPlayUserJoinedUpdate { const SyncPlayUserJoinedUpdate({this.groupId, this.data, this.type}); - factory SyncPlayUserJoinedUpdate.fromJson(Map json) => - _$SyncPlayUserJoinedUpdateFromJson(json); + factory SyncPlayUserJoinedUpdate.fromJson(Map json) => _$SyncPlayUserJoinedUpdateFromJson(json); static const toJsonFactory = _$SyncPlayUserJoinedUpdateToJson; Map toJson() => _$SyncPlayUserJoinedUpdateToJson(this); @@ -48310,7 +46203,8 @@ class SyncPlayUserJoinedUpdate { final enums.GroupUpdateType? type; static enums.GroupUpdateType? groupUpdateTypeTypeNullableFromJson( Object? value, - ) => groupUpdateTypeNullableFromJson(value, enums.GroupUpdateType.userjoined); + ) => + groupUpdateTypeNullableFromJson(value, enums.GroupUpdateType.userjoined); static const fromJsonFactory = _$SyncPlayUserJoinedUpdateFromJson; @@ -48323,10 +46217,8 @@ class SyncPlayUserJoinedUpdate { other.groupId, groupId, )) && - (identical(other.data, data) || - const DeepCollectionEquality().equals(other.data, data)) && - (identical(other.type, type) || - const DeepCollectionEquality().equals(other.type, type))); + (identical(other.data, data) || const DeepCollectionEquality().equals(other.data, data)) && + (identical(other.type, type) || const DeepCollectionEquality().equals(other.type, type))); } @override @@ -48370,8 +46262,7 @@ extension $SyncPlayUserJoinedUpdateExtension on SyncPlayUserJoinedUpdate { class SyncPlayUserLeftUpdate { const SyncPlayUserLeftUpdate({this.groupId, this.data, this.type}); - factory SyncPlayUserLeftUpdate.fromJson(Map json) => - _$SyncPlayUserLeftUpdateFromJson(json); + factory SyncPlayUserLeftUpdate.fromJson(Map json) => _$SyncPlayUserLeftUpdateFromJson(json); static const toJsonFactory = _$SyncPlayUserLeftUpdateToJson; Map toJson() => _$SyncPlayUserLeftUpdateToJson(this); @@ -48389,7 +46280,8 @@ class SyncPlayUserLeftUpdate { final enums.GroupUpdateType? type; static enums.GroupUpdateType? groupUpdateTypeTypeNullableFromJson( Object? value, - ) => groupUpdateTypeNullableFromJson(value, enums.GroupUpdateType.userleft); + ) => + groupUpdateTypeNullableFromJson(value, enums.GroupUpdateType.userleft); static const fromJsonFactory = _$SyncPlayUserLeftUpdateFromJson; @@ -48402,10 +46294,8 @@ class SyncPlayUserLeftUpdate { other.groupId, groupId, )) && - (identical(other.data, data) || - const DeepCollectionEquality().equals(other.data, data)) && - (identical(other.type, type) || - const DeepCollectionEquality().equals(other.type, type))); + (identical(other.data, data) || const DeepCollectionEquality().equals(other.data, data)) && + (identical(other.type, type) || const DeepCollectionEquality().equals(other.type, type))); } @override @@ -48477,8 +46367,7 @@ class SystemInfo { this.systemArchitecture, }); - factory SystemInfo.fromJson(Map json) => - _$SystemInfoFromJson(json); + factory SystemInfo.fromJson(Map json) => _$SystemInfoFromJson(json); static const toJsonFactory = _$SystemInfoToJson; Map toJson() => _$SystemInfoToJson(this); @@ -48598,8 +46487,7 @@ class SystemInfo { other.operatingSystem, operatingSystem, )) && - (identical(other.id, id) || - const DeepCollectionEquality().equals(other.id, id)) && + (identical(other.id, id) || const DeepCollectionEquality().equals(other.id, id)) && (identical(other.startupWizardCompleted, startupWizardCompleted) || const DeepCollectionEquality().equals( other.startupWizardCompleted, @@ -48785,18 +46673,14 @@ extension $SystemInfoExtension on SystemInfo { productName: productName ?? this.productName, operatingSystem: operatingSystem ?? this.operatingSystem, id: id ?? this.id, - startupWizardCompleted: - startupWizardCompleted ?? this.startupWizardCompleted, - operatingSystemDisplayName: - operatingSystemDisplayName ?? this.operatingSystemDisplayName, + startupWizardCompleted: startupWizardCompleted ?? this.startupWizardCompleted, + operatingSystemDisplayName: operatingSystemDisplayName ?? this.operatingSystemDisplayName, packageName: packageName ?? this.packageName, hasPendingRestart: hasPendingRestart ?? this.hasPendingRestart, isShuttingDown: isShuttingDown ?? this.isShuttingDown, - supportsLibraryMonitor: - supportsLibraryMonitor ?? this.supportsLibraryMonitor, + supportsLibraryMonitor: supportsLibraryMonitor ?? this.supportsLibraryMonitor, webSocketPortNumber: webSocketPortNumber ?? this.webSocketPortNumber, - completedInstallations: - completedInstallations ?? this.completedInstallations, + completedInstallations: completedInstallations ?? this.completedInstallations, canSelfRestart: canSelfRestart ?? this.canSelfRestart, canLaunchWebBrowser: canLaunchWebBrowser ?? this.canLaunchWebBrowser, programDataPath: programDataPath ?? this.programDataPath, @@ -48806,8 +46690,7 @@ extension $SystemInfoExtension on SystemInfo { logPath: logPath ?? this.logPath, internalMetadataPath: internalMetadataPath ?? this.internalMetadataPath, transcodingTempPath: transcodingTempPath ?? this.transcodingTempPath, - castReceiverApplications: - castReceiverApplications ?? this.castReceiverApplications, + castReceiverApplications: castReceiverApplications ?? this.castReceiverApplications, hasUpdateAvailable: hasUpdateAvailable ?? this.hasUpdateAvailable, encoderLocation: encoderLocation ?? this.encoderLocation, systemArchitecture: systemArchitecture ?? this.systemArchitecture, @@ -48844,71 +46727,38 @@ extension $SystemInfoExtension on SystemInfo { Wrapped? systemArchitecture, }) { return SystemInfo( - localAddress: (localAddress != null - ? localAddress.value - : this.localAddress), + localAddress: (localAddress != null ? localAddress.value : this.localAddress), serverName: (serverName != null ? serverName.value : this.serverName), version: (version != null ? version.value : this.version), productName: (productName != null ? productName.value : this.productName), - operatingSystem: (operatingSystem != null - ? operatingSystem.value - : this.operatingSystem), + operatingSystem: (operatingSystem != null ? operatingSystem.value : this.operatingSystem), id: (id != null ? id.value : this.id), - startupWizardCompleted: (startupWizardCompleted != null - ? startupWizardCompleted.value - : this.startupWizardCompleted), - operatingSystemDisplayName: (operatingSystemDisplayName != null - ? operatingSystemDisplayName.value - : this.operatingSystemDisplayName), + startupWizardCompleted: + (startupWizardCompleted != null ? startupWizardCompleted.value : this.startupWizardCompleted), + operatingSystemDisplayName: + (operatingSystemDisplayName != null ? operatingSystemDisplayName.value : this.operatingSystemDisplayName), packageName: (packageName != null ? packageName.value : this.packageName), - hasPendingRestart: (hasPendingRestart != null - ? hasPendingRestart.value - : this.hasPendingRestart), - isShuttingDown: (isShuttingDown != null - ? isShuttingDown.value - : this.isShuttingDown), - supportsLibraryMonitor: (supportsLibraryMonitor != null - ? supportsLibraryMonitor.value - : this.supportsLibraryMonitor), - webSocketPortNumber: (webSocketPortNumber != null - ? webSocketPortNumber.value - : this.webSocketPortNumber), - completedInstallations: (completedInstallations != null - ? completedInstallations.value - : this.completedInstallations), - canSelfRestart: (canSelfRestart != null - ? canSelfRestart.value - : this.canSelfRestart), - canLaunchWebBrowser: (canLaunchWebBrowser != null - ? canLaunchWebBrowser.value - : this.canLaunchWebBrowser), - programDataPath: (programDataPath != null - ? programDataPath.value - : this.programDataPath), + hasPendingRestart: (hasPendingRestart != null ? hasPendingRestart.value : this.hasPendingRestart), + isShuttingDown: (isShuttingDown != null ? isShuttingDown.value : this.isShuttingDown), + supportsLibraryMonitor: + (supportsLibraryMonitor != null ? supportsLibraryMonitor.value : this.supportsLibraryMonitor), + webSocketPortNumber: (webSocketPortNumber != null ? webSocketPortNumber.value : this.webSocketPortNumber), + completedInstallations: + (completedInstallations != null ? completedInstallations.value : this.completedInstallations), + canSelfRestart: (canSelfRestart != null ? canSelfRestart.value : this.canSelfRestart), + canLaunchWebBrowser: (canLaunchWebBrowser != null ? canLaunchWebBrowser.value : this.canLaunchWebBrowser), + programDataPath: (programDataPath != null ? programDataPath.value : this.programDataPath), webPath: (webPath != null ? webPath.value : this.webPath), - itemsByNamePath: (itemsByNamePath != null - ? itemsByNamePath.value - : this.itemsByNamePath), + itemsByNamePath: (itemsByNamePath != null ? itemsByNamePath.value : this.itemsByNamePath), cachePath: (cachePath != null ? cachePath.value : this.cachePath), logPath: (logPath != null ? logPath.value : this.logPath), - internalMetadataPath: (internalMetadataPath != null - ? internalMetadataPath.value - : this.internalMetadataPath), - transcodingTempPath: (transcodingTempPath != null - ? transcodingTempPath.value - : this.transcodingTempPath), - castReceiverApplications: (castReceiverApplications != null - ? castReceiverApplications.value - : this.castReceiverApplications), - hasUpdateAvailable: (hasUpdateAvailable != null - ? hasUpdateAvailable.value - : this.hasUpdateAvailable), - encoderLocation: (encoderLocation != null - ? encoderLocation.value - : this.encoderLocation), - systemArchitecture: (systemArchitecture != null - ? systemArchitecture.value - : this.systemArchitecture), + internalMetadataPath: (internalMetadataPath != null ? internalMetadataPath.value : this.internalMetadataPath), + transcodingTempPath: (transcodingTempPath != null ? transcodingTempPath.value : this.transcodingTempPath), + castReceiverApplications: + (castReceiverApplications != null ? castReceiverApplications.value : this.castReceiverApplications), + hasUpdateAvailable: (hasUpdateAvailable != null ? hasUpdateAvailable.value : this.hasUpdateAvailable), + encoderLocation: (encoderLocation != null ? encoderLocation.value : this.encoderLocation), + systemArchitecture: (systemArchitecture != null ? systemArchitecture.value : this.systemArchitecture), ); } } @@ -48926,8 +46776,7 @@ class SystemStorageDto { this.libraries, }); - factory SystemStorageDto.fromJson(Map json) => - _$SystemStorageDtoFromJson(json); + factory SystemStorageDto.fromJson(Map json) => _$SystemStorageDtoFromJson(json); static const toJsonFactory = _$SystemStorageDtoToJson; Map toJson() => _$SystemStorageDtoToJson(this); @@ -49033,10 +46882,8 @@ extension $SystemStorageDtoExtension on SystemStorageDto { imageCacheFolder: imageCacheFolder ?? this.imageCacheFolder, cacheFolder: cacheFolder ?? this.cacheFolder, logFolder: logFolder ?? this.logFolder, - internalMetadataFolder: - internalMetadataFolder ?? this.internalMetadataFolder, - transcodingTempFolder: - transcodingTempFolder ?? this.transcodingTempFolder, + internalMetadataFolder: internalMetadataFolder ?? this.internalMetadataFolder, + transcodingTempFolder: transcodingTempFolder ?? this.transcodingTempFolder, libraries: libraries ?? this.libraries, ); } @@ -49052,21 +46899,14 @@ extension $SystemStorageDtoExtension on SystemStorageDto { Wrapped?>? libraries, }) { return SystemStorageDto( - programDataFolder: (programDataFolder != null - ? programDataFolder.value - : this.programDataFolder), + programDataFolder: (programDataFolder != null ? programDataFolder.value : this.programDataFolder), webFolder: (webFolder != null ? webFolder.value : this.webFolder), - imageCacheFolder: (imageCacheFolder != null - ? imageCacheFolder.value - : this.imageCacheFolder), + imageCacheFolder: (imageCacheFolder != null ? imageCacheFolder.value : this.imageCacheFolder), cacheFolder: (cacheFolder != null ? cacheFolder.value : this.cacheFolder), logFolder: (logFolder != null ? logFolder.value : this.logFolder), - internalMetadataFolder: (internalMetadataFolder != null - ? internalMetadataFolder.value - : this.internalMetadataFolder), - transcodingTempFolder: (transcodingTempFolder != null - ? transcodingTempFolder.value - : this.transcodingTempFolder), + internalMetadataFolder: + (internalMetadataFolder != null ? internalMetadataFolder.value : this.internalMetadataFolder), + transcodingTempFolder: (transcodingTempFolder != null ? transcodingTempFolder.value : this.transcodingTempFolder), libraries: (libraries != null ? libraries.value : this.libraries), ); } @@ -49087,8 +46927,7 @@ class TaskInfo { this.key, }); - factory TaskInfo.fromJson(Map json) => - _$TaskInfoFromJson(json); + factory TaskInfo.fromJson(Map json) => _$TaskInfoFromJson(json); static const toJsonFactory = _$TaskInfoToJson; Map toJson() => _$TaskInfoToJson(this); @@ -49128,10 +46967,8 @@ class TaskInfo { bool operator ==(Object other) { return identical(this, other) || (other is TaskInfo && - (identical(other.name, name) || - const DeepCollectionEquality().equals(other.name, name)) && - (identical(other.state, state) || - const DeepCollectionEquality().equals(other.state, state)) && + (identical(other.name, name) || const DeepCollectionEquality().equals(other.name, name)) && + (identical(other.state, state) || const DeepCollectionEquality().equals(other.state, state)) && (identical( other.currentProgressPercentage, currentProgressPercentage, @@ -49140,8 +46977,7 @@ class TaskInfo { other.currentProgressPercentage, currentProgressPercentage, )) && - (identical(other.id, id) || - const DeepCollectionEquality().equals(other.id, id)) && + (identical(other.id, id) || const DeepCollectionEquality().equals(other.id, id)) && (identical(other.lastExecutionResult, lastExecutionResult) || const DeepCollectionEquality().equals( other.lastExecutionResult, @@ -49167,8 +47003,7 @@ class TaskInfo { other.isHidden, isHidden, )) && - (identical(other.key, key) || - const DeepCollectionEquality().equals(other.key, key))); + (identical(other.key, key) || const DeepCollectionEquality().equals(other.key, key))); } @override @@ -49205,8 +47040,7 @@ extension $TaskInfoExtension on TaskInfo { return TaskInfo( name: name ?? this.name, state: state ?? this.state, - currentProgressPercentage: - currentProgressPercentage ?? this.currentProgressPercentage, + currentProgressPercentage: currentProgressPercentage ?? this.currentProgressPercentage, id: id ?? this.id, lastExecutionResult: lastExecutionResult ?? this.lastExecutionResult, triggers: triggers ?? this.triggers, @@ -49232,13 +47066,10 @@ extension $TaskInfoExtension on TaskInfo { return TaskInfo( name: (name != null ? name.value : this.name), state: (state != null ? state.value : this.state), - currentProgressPercentage: (currentProgressPercentage != null - ? currentProgressPercentage.value - : this.currentProgressPercentage), + currentProgressPercentage: + (currentProgressPercentage != null ? currentProgressPercentage.value : this.currentProgressPercentage), id: (id != null ? id.value : this.id), - lastExecutionResult: (lastExecutionResult != null - ? lastExecutionResult.value - : this.lastExecutionResult), + lastExecutionResult: (lastExecutionResult != null ? lastExecutionResult.value : this.lastExecutionResult), triggers: (triggers != null ? triggers.value : this.triggers), description: (description != null ? description.value : this.description), category: (category != null ? category.value : this.category), @@ -49261,8 +47092,7 @@ class TaskResult { this.longErrorMessage, }); - factory TaskResult.fromJson(Map json) => - _$TaskResultFromJson(json); + factory TaskResult.fromJson(Map json) => _$TaskResultFromJson(json); static const toJsonFactory = _$TaskResultToJson; Map toJson() => _$TaskResultToJson(this); @@ -49304,14 +47134,10 @@ class TaskResult { other.endTimeUtc, endTimeUtc, )) && - (identical(other.status, status) || - const DeepCollectionEquality().equals(other.status, status)) && - (identical(other.name, name) || - const DeepCollectionEquality().equals(other.name, name)) && - (identical(other.key, key) || - const DeepCollectionEquality().equals(other.key, key)) && - (identical(other.id, id) || - const DeepCollectionEquality().equals(other.id, id)) && + (identical(other.status, status) || const DeepCollectionEquality().equals(other.status, status)) && + (identical(other.name, name) || const DeepCollectionEquality().equals(other.name, name)) && + (identical(other.key, key) || const DeepCollectionEquality().equals(other.key, key)) && + (identical(other.id, id) || const DeepCollectionEquality().equals(other.id, id)) && (identical(other.errorMessage, errorMessage) || const DeepCollectionEquality().equals( other.errorMessage, @@ -49374,20 +47200,14 @@ extension $TaskResultExtension on TaskResult { Wrapped? longErrorMessage, }) { return TaskResult( - startTimeUtc: (startTimeUtc != null - ? startTimeUtc.value - : this.startTimeUtc), + startTimeUtc: (startTimeUtc != null ? startTimeUtc.value : this.startTimeUtc), endTimeUtc: (endTimeUtc != null ? endTimeUtc.value : this.endTimeUtc), status: (status != null ? status.value : this.status), name: (name != null ? name.value : this.name), key: (key != null ? key.value : this.key), id: (id != null ? id.value : this.id), - errorMessage: (errorMessage != null - ? errorMessage.value - : this.errorMessage), - longErrorMessage: (longErrorMessage != null - ? longErrorMessage.value - : this.longErrorMessage), + errorMessage: (errorMessage != null ? errorMessage.value : this.errorMessage), + longErrorMessage: (longErrorMessage != null ? longErrorMessage.value : this.longErrorMessage), ); } } @@ -49402,8 +47222,7 @@ class TaskTriggerInfo { this.maxRuntimeTicks, }); - factory TaskTriggerInfo.fromJson(Map json) => - _$TaskTriggerInfoFromJson(json); + factory TaskTriggerInfo.fromJson(Map json) => _$TaskTriggerInfoFromJson(json); static const toJsonFactory = _$TaskTriggerInfoToJson; Map toJson() => _$TaskTriggerInfoToJson(this); @@ -49434,8 +47253,7 @@ class TaskTriggerInfo { bool operator ==(Object other) { return identical(this, other) || (other is TaskTriggerInfo && - (identical(other.type, type) || - const DeepCollectionEquality().equals(other.type, type)) && + (identical(other.type, type) || const DeepCollectionEquality().equals(other.type, type)) && (identical(other.timeOfDayTicks, timeOfDayTicks) || const DeepCollectionEquality().equals( other.timeOfDayTicks, @@ -49497,16 +47315,10 @@ extension $TaskTriggerInfoExtension on TaskTriggerInfo { }) { return TaskTriggerInfo( type: (type != null ? type.value : this.type), - timeOfDayTicks: (timeOfDayTicks != null - ? timeOfDayTicks.value - : this.timeOfDayTicks), - intervalTicks: (intervalTicks != null - ? intervalTicks.value - : this.intervalTicks), + timeOfDayTicks: (timeOfDayTicks != null ? timeOfDayTicks.value : this.timeOfDayTicks), + intervalTicks: (intervalTicks != null ? intervalTicks.value : this.intervalTicks), dayOfWeek: (dayOfWeek != null ? dayOfWeek.value : this.dayOfWeek), - maxRuntimeTicks: (maxRuntimeTicks != null - ? maxRuntimeTicks.value - : this.maxRuntimeTicks), + maxRuntimeTicks: (maxRuntimeTicks != null ? maxRuntimeTicks.value : this.maxRuntimeTicks), ); } } @@ -49520,8 +47332,7 @@ class ThemeMediaResult { this.ownerId, }); - factory ThemeMediaResult.fromJson(Map json) => - _$ThemeMediaResultFromJson(json); + factory ThemeMediaResult.fromJson(Map json) => _$ThemeMediaResultFromJson(json); static const toJsonFactory = _$ThemeMediaResultToJson; Map toJson() => _$ThemeMediaResultToJson(this); @@ -49540,8 +47351,7 @@ class ThemeMediaResult { bool operator ==(Object other) { return identical(this, other) || (other is ThemeMediaResult && - (identical(other.items, items) || - const DeepCollectionEquality().equals(other.items, items)) && + (identical(other.items, items) || const DeepCollectionEquality().equals(other.items, items)) && (identical(other.totalRecordCount, totalRecordCount) || const DeepCollectionEquality().equals( other.totalRecordCount, @@ -49552,8 +47362,7 @@ class ThemeMediaResult { other.startIndex, startIndex, )) && - (identical(other.ownerId, ownerId) || - const DeepCollectionEquality().equals(other.ownerId, ownerId))); + (identical(other.ownerId, ownerId) || const DeepCollectionEquality().equals(other.ownerId, ownerId))); } @override @@ -49591,9 +47400,7 @@ extension $ThemeMediaResultExtension on ThemeMediaResult { }) { return ThemeMediaResult( items: (items != null ? items.value : this.items), - totalRecordCount: (totalRecordCount != null - ? totalRecordCount.value - : this.totalRecordCount), + totalRecordCount: (totalRecordCount != null ? totalRecordCount.value : this.totalRecordCount), startIndex: (startIndex != null ? startIndex.value : this.startIndex), ownerId: (ownerId != null ? ownerId.value : this.ownerId), ); @@ -49604,8 +47411,7 @@ extension $ThemeMediaResultExtension on ThemeMediaResult { class TimerCancelledMessage { const TimerCancelledMessage({this.data, this.messageId, this.messageType}); - factory TimerCancelledMessage.fromJson(Map json) => - _$TimerCancelledMessageFromJson(json); + factory TimerCancelledMessage.fromJson(Map json) => _$TimerCancelledMessageFromJson(json); static const toJsonFactory = _$TimerCancelledMessageToJson; Map toJson() => _$TimerCancelledMessageToJson(this); @@ -49621,8 +47427,7 @@ class TimerCancelledMessage { fromJson: sessionMessageTypeMessageTypeNullableFromJson, ) final enums.SessionMessageType? messageType; - static enums.SessionMessageType? - sessionMessageTypeMessageTypeNullableFromJson(Object? value) => + static enums.SessionMessageType? sessionMessageTypeMessageTypeNullableFromJson(Object? value) => sessionMessageTypeNullableFromJson( value, enums.SessionMessageType.timercancelled, @@ -49634,8 +47439,7 @@ class TimerCancelledMessage { bool operator ==(Object other) { return identical(this, other) || (other is TimerCancelledMessage && - (identical(other.data, data) || - const DeepCollectionEquality().equals(other.data, data)) && + (identical(other.data, data) || const DeepCollectionEquality().equals(other.data, data)) && (identical(other.messageId, messageId) || const DeepCollectionEquality().equals( other.messageId, @@ -49689,8 +47493,7 @@ extension $TimerCancelledMessageExtension on TimerCancelledMessage { class TimerCreatedMessage { const TimerCreatedMessage({this.data, this.messageId, this.messageType}); - factory TimerCreatedMessage.fromJson(Map json) => - _$TimerCreatedMessageFromJson(json); + factory TimerCreatedMessage.fromJson(Map json) => _$TimerCreatedMessageFromJson(json); static const toJsonFactory = _$TimerCreatedMessageToJson; Map toJson() => _$TimerCreatedMessageToJson(this); @@ -49706,8 +47509,7 @@ class TimerCreatedMessage { fromJson: sessionMessageTypeMessageTypeNullableFromJson, ) final enums.SessionMessageType? messageType; - static enums.SessionMessageType? - sessionMessageTypeMessageTypeNullableFromJson(Object? value) => + static enums.SessionMessageType? sessionMessageTypeMessageTypeNullableFromJson(Object? value) => sessionMessageTypeNullableFromJson( value, enums.SessionMessageType.timercreated, @@ -49719,8 +47521,7 @@ class TimerCreatedMessage { bool operator ==(Object other) { return identical(this, other) || (other is TimerCreatedMessage && - (identical(other.data, data) || - const DeepCollectionEquality().equals(other.data, data)) && + (identical(other.data, data) || const DeepCollectionEquality().equals(other.data, data)) && (identical(other.messageId, messageId) || const DeepCollectionEquality().equals( other.messageId, @@ -49774,8 +47575,7 @@ extension $TimerCreatedMessageExtension on TimerCreatedMessage { class TimerEventInfo { const TimerEventInfo({this.id, this.programId}); - factory TimerEventInfo.fromJson(Map json) => - _$TimerEventInfoFromJson(json); + factory TimerEventInfo.fromJson(Map json) => _$TimerEventInfoFromJson(json); static const toJsonFactory = _$TimerEventInfoToJson; Map toJson() => _$TimerEventInfoToJson(this); @@ -49790,8 +47590,7 @@ class TimerEventInfo { bool operator ==(Object other) { return identical(this, other) || (other is TimerEventInfo && - (identical(other.id, id) || - const DeepCollectionEquality().equals(other.id, id)) && + (identical(other.id, id) || const DeepCollectionEquality().equals(other.id, id)) && (identical(other.programId, programId) || const DeepCollectionEquality().equals( other.programId, @@ -49804,9 +47603,7 @@ class TimerEventInfo { @override int get hashCode => - const DeepCollectionEquality().hash(id) ^ - const DeepCollectionEquality().hash(programId) ^ - runtimeType.hashCode; + const DeepCollectionEquality().hash(id) ^ const DeepCollectionEquality().hash(programId) ^ runtimeType.hashCode; } extension $TimerEventInfoExtension on TimerEventInfo { @@ -49861,8 +47658,7 @@ class TimerInfoDto { this.programInfo, }); - factory TimerInfoDto.fromJson(Map json) => - _$TimerInfoDtoFromJson(json); + factory TimerInfoDto.fromJson(Map json) => _$TimerInfoDtoFromJson(json); static const toJsonFactory = _$TimerInfoDtoToJson; Map toJson() => _$TimerInfoDtoToJson(this); @@ -49943,10 +47739,8 @@ class TimerInfoDto { bool operator ==(Object other) { return identical(this, other) || (other is TimerInfoDto && - (identical(other.id, id) || - const DeepCollectionEquality().equals(other.id, id)) && - (identical(other.type, type) || - const DeepCollectionEquality().equals(other.type, type)) && + (identical(other.id, id) || const DeepCollectionEquality().equals(other.id, id)) && + (identical(other.type, type) || const DeepCollectionEquality().equals(other.type, type)) && (identical(other.serverId, serverId) || const DeepCollectionEquality().equals( other.serverId, @@ -49987,8 +47781,7 @@ class TimerInfoDto { other.externalProgramId, externalProgramId, )) && - (identical(other.name, name) || - const DeepCollectionEquality().equals(other.name, name)) && + (identical(other.name, name) || const DeepCollectionEquality().equals(other.name, name)) && (identical(other.overview, overview) || const DeepCollectionEquality().equals( other.overview, @@ -50052,8 +47845,7 @@ class TimerInfoDto { other.keepUntil, keepUntil, )) && - (identical(other.status, status) || - const DeepCollectionEquality().equals(other.status, status)) && + (identical(other.status, status) || const DeepCollectionEquality().equals(other.status, status)) && (identical(other.seriesTimerId, seriesTimerId) || const DeepCollectionEquality().equals( other.seriesTimerId, @@ -50151,8 +47943,7 @@ extension $TimerInfoDtoExtension on TimerInfoDto { channelId: channelId ?? this.channelId, externalChannelId: externalChannelId ?? this.externalChannelId, channelName: channelName ?? this.channelName, - channelPrimaryImageTag: - channelPrimaryImageTag ?? this.channelPrimaryImageTag, + channelPrimaryImageTag: channelPrimaryImageTag ?? this.channelPrimaryImageTag, programId: programId ?? this.programId, externalProgramId: externalProgramId ?? this.externalProgramId, name: name ?? this.name, @@ -50165,15 +47956,12 @@ extension $TimerInfoDtoExtension on TimerInfoDto { postPaddingSeconds: postPaddingSeconds ?? this.postPaddingSeconds, isPrePaddingRequired: isPrePaddingRequired ?? this.isPrePaddingRequired, parentBackdropItemId: parentBackdropItemId ?? this.parentBackdropItemId, - parentBackdropImageTags: - parentBackdropImageTags ?? this.parentBackdropImageTags, - isPostPaddingRequired: - isPostPaddingRequired ?? this.isPostPaddingRequired, + parentBackdropImageTags: parentBackdropImageTags ?? this.parentBackdropImageTags, + isPostPaddingRequired: isPostPaddingRequired ?? this.isPostPaddingRequired, keepUntil: keepUntil ?? this.keepUntil, status: status ?? this.status, seriesTimerId: seriesTimerId ?? this.seriesTimerId, - externalSeriesTimerId: - externalSeriesTimerId ?? this.externalSeriesTimerId, + externalSeriesTimerId: externalSeriesTimerId ?? this.externalSeriesTimerId, runTimeTicks: runTimeTicks ?? this.runTimeTicks, programInfo: programInfo ?? this.programInfo, ); @@ -50215,52 +48003,30 @@ extension $TimerInfoDtoExtension on TimerInfoDto { serverId: (serverId != null ? serverId.value : this.serverId), externalId: (externalId != null ? externalId.value : this.externalId), channelId: (channelId != null ? channelId.value : this.channelId), - externalChannelId: (externalChannelId != null - ? externalChannelId.value - : this.externalChannelId), + externalChannelId: (externalChannelId != null ? externalChannelId.value : this.externalChannelId), channelName: (channelName != null ? channelName.value : this.channelName), - channelPrimaryImageTag: (channelPrimaryImageTag != null - ? channelPrimaryImageTag.value - : this.channelPrimaryImageTag), + channelPrimaryImageTag: + (channelPrimaryImageTag != null ? channelPrimaryImageTag.value : this.channelPrimaryImageTag), programId: (programId != null ? programId.value : this.programId), - externalProgramId: (externalProgramId != null - ? externalProgramId.value - : this.externalProgramId), + externalProgramId: (externalProgramId != null ? externalProgramId.value : this.externalProgramId), name: (name != null ? name.value : this.name), overview: (overview != null ? overview.value : this.overview), startDate: (startDate != null ? startDate.value : this.startDate), endDate: (endDate != null ? endDate.value : this.endDate), serviceName: (serviceName != null ? serviceName.value : this.serviceName), priority: (priority != null ? priority.value : this.priority), - prePaddingSeconds: (prePaddingSeconds != null - ? prePaddingSeconds.value - : this.prePaddingSeconds), - postPaddingSeconds: (postPaddingSeconds != null - ? postPaddingSeconds.value - : this.postPaddingSeconds), - isPrePaddingRequired: (isPrePaddingRequired != null - ? isPrePaddingRequired.value - : this.isPrePaddingRequired), - parentBackdropItemId: (parentBackdropItemId != null - ? parentBackdropItemId.value - : this.parentBackdropItemId), - parentBackdropImageTags: (parentBackdropImageTags != null - ? parentBackdropImageTags.value - : this.parentBackdropImageTags), - isPostPaddingRequired: (isPostPaddingRequired != null - ? isPostPaddingRequired.value - : this.isPostPaddingRequired), + prePaddingSeconds: (prePaddingSeconds != null ? prePaddingSeconds.value : this.prePaddingSeconds), + postPaddingSeconds: (postPaddingSeconds != null ? postPaddingSeconds.value : this.postPaddingSeconds), + isPrePaddingRequired: (isPrePaddingRequired != null ? isPrePaddingRequired.value : this.isPrePaddingRequired), + parentBackdropItemId: (parentBackdropItemId != null ? parentBackdropItemId.value : this.parentBackdropItemId), + parentBackdropImageTags: + (parentBackdropImageTags != null ? parentBackdropImageTags.value : this.parentBackdropImageTags), + isPostPaddingRequired: (isPostPaddingRequired != null ? isPostPaddingRequired.value : this.isPostPaddingRequired), keepUntil: (keepUntil != null ? keepUntil.value : this.keepUntil), status: (status != null ? status.value : this.status), - seriesTimerId: (seriesTimerId != null - ? seriesTimerId.value - : this.seriesTimerId), - externalSeriesTimerId: (externalSeriesTimerId != null - ? externalSeriesTimerId.value - : this.externalSeriesTimerId), - runTimeTicks: (runTimeTicks != null - ? runTimeTicks.value - : this.runTimeTicks), + seriesTimerId: (seriesTimerId != null ? seriesTimerId.value : this.seriesTimerId), + externalSeriesTimerId: (externalSeriesTimerId != null ? externalSeriesTimerId.value : this.externalSeriesTimerId), + runTimeTicks: (runTimeTicks != null ? runTimeTicks.value : this.runTimeTicks), programInfo: (programInfo != null ? programInfo.value : this.programInfo), ); } @@ -50274,8 +48040,7 @@ class TimerInfoDtoQueryResult { this.startIndex, }); - factory TimerInfoDtoQueryResult.fromJson(Map json) => - _$TimerInfoDtoQueryResultFromJson(json); + factory TimerInfoDtoQueryResult.fromJson(Map json) => _$TimerInfoDtoQueryResultFromJson(json); static const toJsonFactory = _$TimerInfoDtoQueryResultToJson; Map toJson() => _$TimerInfoDtoQueryResultToJson(this); @@ -50292,8 +48057,7 @@ class TimerInfoDtoQueryResult { bool operator ==(Object other) { return identical(this, other) || (other is TimerInfoDtoQueryResult && - (identical(other.items, items) || - const DeepCollectionEquality().equals(other.items, items)) && + (identical(other.items, items) || const DeepCollectionEquality().equals(other.items, items)) && (identical(other.totalRecordCount, totalRecordCount) || const DeepCollectionEquality().equals( other.totalRecordCount, @@ -50337,9 +48101,7 @@ extension $TimerInfoDtoQueryResultExtension on TimerInfoDtoQueryResult { }) { return TimerInfoDtoQueryResult( items: (items != null ? items.value : this.items), - totalRecordCount: (totalRecordCount != null - ? totalRecordCount.value - : this.totalRecordCount), + totalRecordCount: (totalRecordCount != null ? totalRecordCount.value : this.totalRecordCount), startIndex: (startIndex != null ? startIndex.value : this.startIndex), ); } @@ -50361,8 +48123,7 @@ class TrailerInfo { this.isAutomated, }); - factory TrailerInfo.fromJson(Map json) => - _$TrailerInfoFromJson(json); + factory TrailerInfo.fromJson(Map json) => _$TrailerInfoFromJson(json); static const toJsonFactory = _$TrailerInfoToJson; Map toJson() => _$TrailerInfoToJson(this); @@ -50395,15 +48156,13 @@ class TrailerInfo { bool operator ==(Object other) { return identical(this, other) || (other is TrailerInfo && - (identical(other.name, name) || - const DeepCollectionEquality().equals(other.name, name)) && + (identical(other.name, name) || const DeepCollectionEquality().equals(other.name, name)) && (identical(other.originalTitle, originalTitle) || const DeepCollectionEquality().equals( other.originalTitle, originalTitle, )) && - (identical(other.path, path) || - const DeepCollectionEquality().equals(other.path, path)) && + (identical(other.path, path) || const DeepCollectionEquality().equals(other.path, path)) && (identical(other.metadataLanguage, metadataLanguage) || const DeepCollectionEquality().equals( other.metadataLanguage, @@ -50419,8 +48178,7 @@ class TrailerInfo { other.providerIds, providerIds, )) && - (identical(other.year, year) || - const DeepCollectionEquality().equals(other.year, year)) && + (identical(other.year, year) || const DeepCollectionEquality().equals(other.year, year)) && (identical(other.indexNumber, indexNumber) || const DeepCollectionEquality().equals( other.indexNumber, @@ -50506,25 +48264,15 @@ extension $TrailerInfoExtension on TrailerInfo { }) { return TrailerInfo( name: (name != null ? name.value : this.name), - originalTitle: (originalTitle != null - ? originalTitle.value - : this.originalTitle), + originalTitle: (originalTitle != null ? originalTitle.value : this.originalTitle), path: (path != null ? path.value : this.path), - metadataLanguage: (metadataLanguage != null - ? metadataLanguage.value - : this.metadataLanguage), - metadataCountryCode: (metadataCountryCode != null - ? metadataCountryCode.value - : this.metadataCountryCode), + metadataLanguage: (metadataLanguage != null ? metadataLanguage.value : this.metadataLanguage), + metadataCountryCode: (metadataCountryCode != null ? metadataCountryCode.value : this.metadataCountryCode), providerIds: (providerIds != null ? providerIds.value : this.providerIds), year: (year != null ? year.value : this.year), indexNumber: (indexNumber != null ? indexNumber.value : this.indexNumber), - parentIndexNumber: (parentIndexNumber != null - ? parentIndexNumber.value - : this.parentIndexNumber), - premiereDate: (premiereDate != null - ? premiereDate.value - : this.premiereDate), + parentIndexNumber: (parentIndexNumber != null ? parentIndexNumber.value : this.parentIndexNumber), + premiereDate: (premiereDate != null ? premiereDate.value : this.premiereDate), isAutomated: (isAutomated != null ? isAutomated.value : this.isAutomated), ); } @@ -50564,8 +48312,7 @@ class TrailerInfoRemoteSearchQuery { other.searchInfo, searchInfo, )) && - (identical(other.itemId, itemId) || - const DeepCollectionEquality().equals(other.itemId, itemId)) && + (identical(other.itemId, itemId) || const DeepCollectionEquality().equals(other.itemId, itemId)) && (identical(other.searchProviderName, searchProviderName) || const DeepCollectionEquality().equals( other.searchProviderName, @@ -50593,8 +48340,7 @@ class TrailerInfoRemoteSearchQuery { runtimeType.hashCode; } -extension $TrailerInfoRemoteSearchQueryExtension - on TrailerInfoRemoteSearchQuery { +extension $TrailerInfoRemoteSearchQueryExtension on TrailerInfoRemoteSearchQuery { TrailerInfoRemoteSearchQuery copyWith({ TrailerInfo? searchInfo, String? itemId, @@ -50605,8 +48351,7 @@ extension $TrailerInfoRemoteSearchQueryExtension searchInfo: searchInfo ?? this.searchInfo, itemId: itemId ?? this.itemId, searchProviderName: searchProviderName ?? this.searchProviderName, - includeDisabledProviders: - includeDisabledProviders ?? this.includeDisabledProviders, + includeDisabledProviders: includeDisabledProviders ?? this.includeDisabledProviders, ); } @@ -50619,12 +48364,9 @@ extension $TrailerInfoRemoteSearchQueryExtension return TrailerInfoRemoteSearchQuery( searchInfo: (searchInfo != null ? searchInfo.value : this.searchInfo), itemId: (itemId != null ? itemId.value : this.itemId), - searchProviderName: (searchProviderName != null - ? searchProviderName.value - : this.searchProviderName), - includeDisabledProviders: (includeDisabledProviders != null - ? includeDisabledProviders.value - : this.includeDisabledProviders), + searchProviderName: (searchProviderName != null ? searchProviderName.value : this.searchProviderName), + includeDisabledProviders: + (includeDisabledProviders != null ? includeDisabledProviders.value : this.includeDisabledProviders), ); } } @@ -50647,8 +48389,7 @@ class TranscodingInfo { this.transcodeReasons, }); - factory TranscodingInfo.fromJson(Map json) => - _$TranscodingInfoFromJson(json); + factory TranscodingInfo.fromJson(Map json) => _$TranscodingInfoFromJson(json); static const toJsonFactory = _$TranscodingInfoToJson; Map toJson() => _$TranscodingInfoToJson(this); @@ -50735,10 +48476,8 @@ class TranscodingInfo { other.completionPercentage, completionPercentage, )) && - (identical(other.width, width) || - const DeepCollectionEquality().equals(other.width, width)) && - (identical(other.height, height) || - const DeepCollectionEquality().equals(other.height, height)) && + (identical(other.width, width) || const DeepCollectionEquality().equals(other.width, width)) && + (identical(other.height, height) || const DeepCollectionEquality().equals(other.height, height)) && (identical(other.audioChannels, audioChannels) || const DeepCollectionEquality().equals( other.audioChannels, @@ -50808,8 +48547,7 @@ extension $TranscodingInfoExtension on TranscodingInfo { width: width ?? this.width, height: height ?? this.height, audioChannels: audioChannels ?? this.audioChannels, - hardwareAccelerationType: - hardwareAccelerationType ?? this.hardwareAccelerationType, + hardwareAccelerationType: hardwareAccelerationType ?? this.hardwareAccelerationType, transcodeReasons: transcodeReasons ?? this.transcodeReasons, ); } @@ -50833,28 +48571,17 @@ extension $TranscodingInfoExtension on TranscodingInfo { audioCodec: (audioCodec != null ? audioCodec.value : this.audioCodec), videoCodec: (videoCodec != null ? videoCodec.value : this.videoCodec), container: (container != null ? container.value : this.container), - isVideoDirect: (isVideoDirect != null - ? isVideoDirect.value - : this.isVideoDirect), - isAudioDirect: (isAudioDirect != null - ? isAudioDirect.value - : this.isAudioDirect), + isVideoDirect: (isVideoDirect != null ? isVideoDirect.value : this.isVideoDirect), + isAudioDirect: (isAudioDirect != null ? isAudioDirect.value : this.isAudioDirect), bitrate: (bitrate != null ? bitrate.value : this.bitrate), framerate: (framerate != null ? framerate.value : this.framerate), - completionPercentage: (completionPercentage != null - ? completionPercentage.value - : this.completionPercentage), + completionPercentage: (completionPercentage != null ? completionPercentage.value : this.completionPercentage), width: (width != null ? width.value : this.width), height: (height != null ? height.value : this.height), - audioChannels: (audioChannels != null - ? audioChannels.value - : this.audioChannels), - hardwareAccelerationType: (hardwareAccelerationType != null - ? hardwareAccelerationType.value - : this.hardwareAccelerationType), - transcodeReasons: (transcodeReasons != null - ? transcodeReasons.value - : this.transcodeReasons), + audioChannels: (audioChannels != null ? audioChannels.value : this.audioChannels), + hardwareAccelerationType: + (hardwareAccelerationType != null ? hardwareAccelerationType.value : this.hardwareAccelerationType), + transcodeReasons: (transcodeReasons != null ? transcodeReasons.value : this.transcodeReasons), ); } } @@ -50881,8 +48608,7 @@ class TranscodingProfile { this.enableAudioVbrEncoding, }); - factory TranscodingProfile.fromJson(Map json) => - _$TranscodingProfileFromJson(json); + factory TranscodingProfile.fromJson(Map json) => _$TranscodingProfileFromJson(json); static const toJsonFactory = _$TranscodingProfileToJson; Map toJson() => _$TranscodingProfileToJson(this); @@ -50926,8 +48652,7 @@ class TranscodingProfile { fromJson: transcodeSeekInfoTranscodeSeekInfoNullableFromJson, ) final enums.TranscodeSeekInfo? transcodeSeekInfo; - static enums.TranscodeSeekInfo? - transcodeSeekInfoTranscodeSeekInfoNullableFromJson(Object? value) => + static enums.TranscodeSeekInfo? transcodeSeekInfoTranscodeSeekInfoNullableFromJson(Object? value) => transcodeSeekInfoNullableFromJson(value, enums.TranscodeSeekInfo.auto); @JsonKey(name: 'CopyTimestamps', includeIfNull: false, defaultValue: false) @@ -50941,7 +48666,8 @@ class TranscodingProfile { final enums.EncodingContext? context; static enums.EncodingContext? encodingContextContextNullableFromJson( Object? value, - ) => encodingContextNullableFromJson(value, enums.EncodingContext.streaming); + ) => + encodingContextNullableFromJson(value, enums.EncodingContext.streaming); @JsonKey( name: 'EnableSubtitlesInManifest', @@ -50984,8 +48710,7 @@ class TranscodingProfile { other.container, container, )) && - (identical(other.type, type) || - const DeepCollectionEquality().equals(other.type, type)) && + (identical(other.type, type) || const DeepCollectionEquality().equals(other.type, type)) && (identical(other.videoCodec, videoCodec) || const DeepCollectionEquality().equals( other.videoCodec, @@ -51117,21 +48842,18 @@ extension $TranscodingProfileExtension on TranscodingProfile { videoCodec: videoCodec ?? this.videoCodec, audioCodec: audioCodec ?? this.audioCodec, protocol: protocol ?? this.protocol, - estimateContentLength: - estimateContentLength ?? this.estimateContentLength, + estimateContentLength: estimateContentLength ?? this.estimateContentLength, enableMpegtsM2TsMode: enableMpegtsM2TsMode ?? this.enableMpegtsM2TsMode, transcodeSeekInfo: transcodeSeekInfo ?? this.transcodeSeekInfo, copyTimestamps: copyTimestamps ?? this.copyTimestamps, context: context ?? this.context, - enableSubtitlesInManifest: - enableSubtitlesInManifest ?? this.enableSubtitlesInManifest, + enableSubtitlesInManifest: enableSubtitlesInManifest ?? this.enableSubtitlesInManifest, maxAudioChannels: maxAudioChannels ?? this.maxAudioChannels, minSegments: minSegments ?? this.minSegments, segmentLength: segmentLength ?? this.segmentLength, breakOnNonKeyFrames: breakOnNonKeyFrames ?? this.breakOnNonKeyFrames, conditions: conditions ?? this.conditions, - enableAudioVbrEncoding: - enableAudioVbrEncoding ?? this.enableAudioVbrEncoding, + enableAudioVbrEncoding: enableAudioVbrEncoding ?? this.enableAudioVbrEncoding, ); } @@ -51160,36 +48882,20 @@ extension $TranscodingProfileExtension on TranscodingProfile { videoCodec: (videoCodec != null ? videoCodec.value : this.videoCodec), audioCodec: (audioCodec != null ? audioCodec.value : this.audioCodec), protocol: (protocol != null ? protocol.value : this.protocol), - estimateContentLength: (estimateContentLength != null - ? estimateContentLength.value - : this.estimateContentLength), - enableMpegtsM2TsMode: (enableMpegtsM2TsMode != null - ? enableMpegtsM2TsMode.value - : this.enableMpegtsM2TsMode), - transcodeSeekInfo: (transcodeSeekInfo != null - ? transcodeSeekInfo.value - : this.transcodeSeekInfo), - copyTimestamps: (copyTimestamps != null - ? copyTimestamps.value - : this.copyTimestamps), + estimateContentLength: (estimateContentLength != null ? estimateContentLength.value : this.estimateContentLength), + enableMpegtsM2TsMode: (enableMpegtsM2TsMode != null ? enableMpegtsM2TsMode.value : this.enableMpegtsM2TsMode), + transcodeSeekInfo: (transcodeSeekInfo != null ? transcodeSeekInfo.value : this.transcodeSeekInfo), + copyTimestamps: (copyTimestamps != null ? copyTimestamps.value : this.copyTimestamps), context: (context != null ? context.value : this.context), - enableSubtitlesInManifest: (enableSubtitlesInManifest != null - ? enableSubtitlesInManifest.value - : this.enableSubtitlesInManifest), - maxAudioChannels: (maxAudioChannels != null - ? maxAudioChannels.value - : this.maxAudioChannels), + enableSubtitlesInManifest: + (enableSubtitlesInManifest != null ? enableSubtitlesInManifest.value : this.enableSubtitlesInManifest), + maxAudioChannels: (maxAudioChannels != null ? maxAudioChannels.value : this.maxAudioChannels), minSegments: (minSegments != null ? minSegments.value : this.minSegments), - segmentLength: (segmentLength != null - ? segmentLength.value - : this.segmentLength), - breakOnNonKeyFrames: (breakOnNonKeyFrames != null - ? breakOnNonKeyFrames.value - : this.breakOnNonKeyFrames), + segmentLength: (segmentLength != null ? segmentLength.value : this.segmentLength), + breakOnNonKeyFrames: (breakOnNonKeyFrames != null ? breakOnNonKeyFrames.value : this.breakOnNonKeyFrames), conditions: (conditions != null ? conditions.value : this.conditions), - enableAudioVbrEncoding: (enableAudioVbrEncoding != null - ? enableAudioVbrEncoding.value - : this.enableAudioVbrEncoding), + enableAudioVbrEncoding: + (enableAudioVbrEncoding != null ? enableAudioVbrEncoding.value : this.enableAudioVbrEncoding), ); } } @@ -51206,8 +48912,7 @@ class TrickplayInfoDto { this.bandwidth, }); - factory TrickplayInfoDto.fromJson(Map json) => - _$TrickplayInfoDtoFromJson(json); + factory TrickplayInfoDto.fromJson(Map json) => _$TrickplayInfoDtoFromJson(json); static const toJsonFactory = _$TrickplayInfoDtoToJson; Map toJson() => _$TrickplayInfoDtoToJson(this); @@ -51232,10 +48937,8 @@ class TrickplayInfoDto { bool operator ==(Object other) { return identical(this, other) || (other is TrickplayInfoDto && - (identical(other.width, width) || - const DeepCollectionEquality().equals(other.width, width)) && - (identical(other.height, height) || - const DeepCollectionEquality().equals(other.height, height)) && + (identical(other.width, width) || const DeepCollectionEquality().equals(other.width, width)) && + (identical(other.height, height) || const DeepCollectionEquality().equals(other.height, height)) && (identical(other.tileWidth, tileWidth) || const DeepCollectionEquality().equals( other.tileWidth, @@ -51313,9 +49016,7 @@ extension $TrickplayInfoDtoExtension on TrickplayInfoDto { height: (height != null ? height.value : this.height), tileWidth: (tileWidth != null ? tileWidth.value : this.tileWidth), tileHeight: (tileHeight != null ? tileHeight.value : this.tileHeight), - thumbnailCount: (thumbnailCount != null - ? thumbnailCount.value - : this.thumbnailCount), + thumbnailCount: (thumbnailCount != null ? thumbnailCount.value : this.thumbnailCount), interval: (interval != null ? interval.value : this.interval), bandwidth: (bandwidth != null ? bandwidth.value : this.bandwidth), ); @@ -51339,8 +49040,7 @@ class TrickplayOptions { this.processThreads, }); - factory TrickplayOptions.fromJson(Map json) => - _$TrickplayOptionsFromJson(json); + factory TrickplayOptions.fromJson(Map json) => _$TrickplayOptionsFromJson(json); static const toJsonFactory = _$TrickplayOptionsToJson; Map toJson() => _$TrickplayOptionsToJson(this); @@ -51437,8 +49137,7 @@ class TrickplayOptions { other.tileHeight, tileHeight, )) && - (identical(other.qscale, qscale) || - const DeepCollectionEquality().equals(other.qscale, qscale)) && + (identical(other.qscale, qscale) || const DeepCollectionEquality().equals(other.qscale, qscale)) && (identical(other.jpegQuality, jpegQuality) || const DeepCollectionEquality().equals( other.jpegQuality, @@ -51489,8 +49188,7 @@ extension $TrickplayOptionsExtension on TrickplayOptions { return TrickplayOptions( enableHwAcceleration: enableHwAcceleration ?? this.enableHwAcceleration, enableHwEncoding: enableHwEncoding ?? this.enableHwEncoding, - enableKeyFrameOnlyExtraction: - enableKeyFrameOnlyExtraction ?? this.enableKeyFrameOnlyExtraction, + enableKeyFrameOnlyExtraction: enableKeyFrameOnlyExtraction ?? this.enableKeyFrameOnlyExtraction, scanBehavior: scanBehavior ?? this.scanBehavior, processPriority: processPriority ?? this.processPriority, interval: interval ?? this.interval, @@ -51518,32 +49216,20 @@ extension $TrickplayOptionsExtension on TrickplayOptions { Wrapped? processThreads, }) { return TrickplayOptions( - enableHwAcceleration: (enableHwAcceleration != null - ? enableHwAcceleration.value - : this.enableHwAcceleration), - enableHwEncoding: (enableHwEncoding != null - ? enableHwEncoding.value - : this.enableHwEncoding), + enableHwAcceleration: (enableHwAcceleration != null ? enableHwAcceleration.value : this.enableHwAcceleration), + enableHwEncoding: (enableHwEncoding != null ? enableHwEncoding.value : this.enableHwEncoding), enableKeyFrameOnlyExtraction: (enableKeyFrameOnlyExtraction != null ? enableKeyFrameOnlyExtraction.value : this.enableKeyFrameOnlyExtraction), - scanBehavior: (scanBehavior != null - ? scanBehavior.value - : this.scanBehavior), - processPriority: (processPriority != null - ? processPriority.value - : this.processPriority), + scanBehavior: (scanBehavior != null ? scanBehavior.value : this.scanBehavior), + processPriority: (processPriority != null ? processPriority.value : this.processPriority), interval: (interval != null ? interval.value : this.interval), - widthResolutions: (widthResolutions != null - ? widthResolutions.value - : this.widthResolutions), + widthResolutions: (widthResolutions != null ? widthResolutions.value : this.widthResolutions), tileWidth: (tileWidth != null ? tileWidth.value : this.tileWidth), tileHeight: (tileHeight != null ? tileHeight.value : this.tileHeight), qscale: (qscale != null ? qscale.value : this.qscale), jpegQuality: (jpegQuality != null ? jpegQuality.value : this.jpegQuality), - processThreads: (processThreads != null - ? processThreads.value - : this.processThreads), + processThreads: (processThreads != null ? processThreads.value : this.processThreads), ); } } @@ -51557,8 +49243,7 @@ class TunerChannelMapping { this.id, }); - factory TunerChannelMapping.fromJson(Map json) => - _$TunerChannelMappingFromJson(json); + factory TunerChannelMapping.fromJson(Map json) => _$TunerChannelMappingFromJson(json); static const toJsonFactory = _$TunerChannelMappingToJson; Map toJson() => _$TunerChannelMappingToJson(this); @@ -51577,8 +49262,7 @@ class TunerChannelMapping { bool operator ==(Object other) { return identical(this, other) || (other is TunerChannelMapping && - (identical(other.name, name) || - const DeepCollectionEquality().equals(other.name, name)) && + (identical(other.name, name) || const DeepCollectionEquality().equals(other.name, name)) && (identical(other.providerChannelName, providerChannelName) || const DeepCollectionEquality().equals( other.providerChannelName, @@ -51589,8 +49273,7 @@ class TunerChannelMapping { other.providerChannelId, providerChannelId, )) && - (identical(other.id, id) || - const DeepCollectionEquality().equals(other.id, id))); + (identical(other.id, id) || const DeepCollectionEquality().equals(other.id, id))); } @override @@ -51628,12 +49311,8 @@ extension $TunerChannelMappingExtension on TunerChannelMapping { }) { return TunerChannelMapping( name: (name != null ? name.value : this.name), - providerChannelName: (providerChannelName != null - ? providerChannelName.value - : this.providerChannelName), - providerChannelId: (providerChannelId != null - ? providerChannelId.value - : this.providerChannelId), + providerChannelName: (providerChannelName != null ? providerChannelName.value : this.providerChannelName), + providerChannelId: (providerChannelId != null ? providerChannelId.value : this.providerChannelId), id: (id != null ? id.value : this.id), ); } @@ -51660,8 +49339,7 @@ class TunerHostInfo { this.readAtNativeFramerate, }); - factory TunerHostInfo.fromJson(Map json) => - _$TunerHostInfoFromJson(json); + factory TunerHostInfo.fromJson(Map json) => _$TunerHostInfoFromJson(json); static const toJsonFactory = _$TunerHostInfoToJson; Map toJson() => _$TunerHostInfoToJson(this); @@ -51704,12 +49382,9 @@ class TunerHostInfo { bool operator ==(Object other) { return identical(this, other) || (other is TunerHostInfo && - (identical(other.id, id) || - const DeepCollectionEquality().equals(other.id, id)) && - (identical(other.url, url) || - const DeepCollectionEquality().equals(other.url, url)) && - (identical(other.type, type) || - const DeepCollectionEquality().equals(other.type, type)) && + (identical(other.id, id) || const DeepCollectionEquality().equals(other.id, id)) && + (identical(other.url, url) || const DeepCollectionEquality().equals(other.url, url)) && + (identical(other.type, type) || const DeepCollectionEquality().equals(other.type, type)) && (identical(other.deviceId, deviceId) || const DeepCollectionEquality().equals( other.deviceId, @@ -51756,8 +49431,7 @@ class TunerHostInfo { other.enableStreamLooping, enableStreamLooping, )) && - (identical(other.source, source) || - const DeepCollectionEquality().equals(other.source, source)) && + (identical(other.source, source) || const DeepCollectionEquality().equals(other.source, source)) && (identical(other.tunerCount, tunerCount) || const DeepCollectionEquality().equals( other.tunerCount, @@ -51831,18 +49505,15 @@ extension $TunerHostInfoExtension on TunerHostInfo { friendlyName: friendlyName ?? this.friendlyName, importFavoritesOnly: importFavoritesOnly ?? this.importFavoritesOnly, allowHWTranscoding: allowHWTranscoding ?? this.allowHWTranscoding, - allowFmp4TranscodingContainer: - allowFmp4TranscodingContainer ?? this.allowFmp4TranscodingContainer, + allowFmp4TranscodingContainer: allowFmp4TranscodingContainer ?? this.allowFmp4TranscodingContainer, allowStreamSharing: allowStreamSharing ?? this.allowStreamSharing, - fallbackMaxStreamingBitrate: - fallbackMaxStreamingBitrate ?? this.fallbackMaxStreamingBitrate, + fallbackMaxStreamingBitrate: fallbackMaxStreamingBitrate ?? this.fallbackMaxStreamingBitrate, enableStreamLooping: enableStreamLooping ?? this.enableStreamLooping, source: source ?? this.source, tunerCount: tunerCount ?? this.tunerCount, userAgent: userAgent ?? this.userAgent, ignoreDts: ignoreDts ?? this.ignoreDts, - readAtNativeFramerate: - readAtNativeFramerate ?? this.readAtNativeFramerate, + readAtNativeFramerate: readAtNativeFramerate ?? this.readAtNativeFramerate, ); } @@ -51869,34 +49540,21 @@ extension $TunerHostInfoExtension on TunerHostInfo { url: (url != null ? url.value : this.url), type: (type != null ? type.value : this.type), deviceId: (deviceId != null ? deviceId.value : this.deviceId), - friendlyName: (friendlyName != null - ? friendlyName.value - : this.friendlyName), - importFavoritesOnly: (importFavoritesOnly != null - ? importFavoritesOnly.value - : this.importFavoritesOnly), - allowHWTranscoding: (allowHWTranscoding != null - ? allowHWTranscoding.value - : this.allowHWTranscoding), + friendlyName: (friendlyName != null ? friendlyName.value : this.friendlyName), + importFavoritesOnly: (importFavoritesOnly != null ? importFavoritesOnly.value : this.importFavoritesOnly), + allowHWTranscoding: (allowHWTranscoding != null ? allowHWTranscoding.value : this.allowHWTranscoding), allowFmp4TranscodingContainer: (allowFmp4TranscodingContainer != null ? allowFmp4TranscodingContainer.value : this.allowFmp4TranscodingContainer), - allowStreamSharing: (allowStreamSharing != null - ? allowStreamSharing.value - : this.allowStreamSharing), - fallbackMaxStreamingBitrate: (fallbackMaxStreamingBitrate != null - ? fallbackMaxStreamingBitrate.value - : this.fallbackMaxStreamingBitrate), - enableStreamLooping: (enableStreamLooping != null - ? enableStreamLooping.value - : this.enableStreamLooping), + allowStreamSharing: (allowStreamSharing != null ? allowStreamSharing.value : this.allowStreamSharing), + fallbackMaxStreamingBitrate: + (fallbackMaxStreamingBitrate != null ? fallbackMaxStreamingBitrate.value : this.fallbackMaxStreamingBitrate), + enableStreamLooping: (enableStreamLooping != null ? enableStreamLooping.value : this.enableStreamLooping), source: (source != null ? source.value : this.source), tunerCount: (tunerCount != null ? tunerCount.value : this.tunerCount), userAgent: (userAgent != null ? userAgent.value : this.userAgent), ignoreDts: (ignoreDts != null ? ignoreDts.value : this.ignoreDts), - readAtNativeFramerate: (readAtNativeFramerate != null - ? readAtNativeFramerate.value - : this.readAtNativeFramerate), + readAtNativeFramerate: (readAtNativeFramerate != null ? readAtNativeFramerate.value : this.readAtNativeFramerate), ); } } @@ -51912,8 +49570,7 @@ class TypeOptions { this.imageOptions, }); - factory TypeOptions.fromJson(Map json) => - _$TypeOptionsFromJson(json); + factory TypeOptions.fromJson(Map json) => _$TypeOptionsFromJson(json); static const toJsonFactory = _$TypeOptionsToJson; Map toJson() => _$TypeOptionsToJson(this); @@ -51956,8 +49613,7 @@ class TypeOptions { bool operator ==(Object other) { return identical(this, other) || (other is TypeOptions && - (identical(other.type, type) || - const DeepCollectionEquality().equals(other.type, type)) && + (identical(other.type, type) || const DeepCollectionEquality().equals(other.type, type)) && (identical(other.metadataFetchers, metadataFetchers) || const DeepCollectionEquality().equals( other.metadataFetchers, @@ -52028,21 +49684,11 @@ extension $TypeOptionsExtension on TypeOptions { }) { return TypeOptions( type: (type != null ? type.value : this.type), - metadataFetchers: (metadataFetchers != null - ? metadataFetchers.value - : this.metadataFetchers), - metadataFetcherOrder: (metadataFetcherOrder != null - ? metadataFetcherOrder.value - : this.metadataFetcherOrder), - imageFetchers: (imageFetchers != null - ? imageFetchers.value - : this.imageFetchers), - imageFetcherOrder: (imageFetcherOrder != null - ? imageFetcherOrder.value - : this.imageFetcherOrder), - imageOptions: (imageOptions != null - ? imageOptions.value - : this.imageOptions), + metadataFetchers: (metadataFetchers != null ? metadataFetchers.value : this.metadataFetchers), + metadataFetcherOrder: (metadataFetcherOrder != null ? metadataFetcherOrder.value : this.metadataFetcherOrder), + imageFetchers: (imageFetchers != null ? imageFetchers.value : this.imageFetchers), + imageFetcherOrder: (imageFetcherOrder != null ? imageFetcherOrder.value : this.imageFetcherOrder), + imageOptions: (imageOptions != null ? imageOptions.value : this.imageOptions), ); } } @@ -52051,8 +49697,7 @@ extension $TypeOptionsExtension on TypeOptions { class UpdateLibraryOptionsDto { const UpdateLibraryOptionsDto({this.id, this.libraryOptions}); - factory UpdateLibraryOptionsDto.fromJson(Map json) => - _$UpdateLibraryOptionsDtoFromJson(json); + factory UpdateLibraryOptionsDto.fromJson(Map json) => _$UpdateLibraryOptionsDtoFromJson(json); static const toJsonFactory = _$UpdateLibraryOptionsDtoToJson; Map toJson() => _$UpdateLibraryOptionsDtoToJson(this); @@ -52067,8 +49712,7 @@ class UpdateLibraryOptionsDto { bool operator ==(Object other) { return identical(this, other) || (other is UpdateLibraryOptionsDto && - (identical(other.id, id) || - const DeepCollectionEquality().equals(other.id, id)) && + (identical(other.id, id) || const DeepCollectionEquality().equals(other.id, id)) && (identical(other.libraryOptions, libraryOptions) || const DeepCollectionEquality().equals( other.libraryOptions, @@ -52103,9 +49747,7 @@ extension $UpdateLibraryOptionsDtoExtension on UpdateLibraryOptionsDto { }) { return UpdateLibraryOptionsDto( id: (id != null ? id.value : this.id), - libraryOptions: (libraryOptions != null - ? libraryOptions.value - : this.libraryOptions), + libraryOptions: (libraryOptions != null ? libraryOptions.value : this.libraryOptions), ); } } @@ -52114,8 +49756,7 @@ extension $UpdateLibraryOptionsDtoExtension on UpdateLibraryOptionsDto { class UpdateMediaPathRequestDto { const UpdateMediaPathRequestDto({required this.name, required this.pathInfo}); - factory UpdateMediaPathRequestDto.fromJson(Map json) => - _$UpdateMediaPathRequestDtoFromJson(json); + factory UpdateMediaPathRequestDto.fromJson(Map json) => _$UpdateMediaPathRequestDtoFromJson(json); static const toJsonFactory = _$UpdateMediaPathRequestDtoToJson; Map toJson() => _$UpdateMediaPathRequestDtoToJson(this); @@ -52130,8 +49771,7 @@ class UpdateMediaPathRequestDto { bool operator ==(Object other) { return identical(this, other) || (other is UpdateMediaPathRequestDto && - (identical(other.name, name) || - const DeepCollectionEquality().equals(other.name, name)) && + (identical(other.name, name) || const DeepCollectionEquality().equals(other.name, name)) && (identical(other.pathInfo, pathInfo) || const DeepCollectionEquality().equals( other.pathInfo, @@ -52144,9 +49784,7 @@ class UpdateMediaPathRequestDto { @override int get hashCode => - const DeepCollectionEquality().hash(name) ^ - const DeepCollectionEquality().hash(pathInfo) ^ - runtimeType.hashCode; + const DeepCollectionEquality().hash(name) ^ const DeepCollectionEquality().hash(pathInfo) ^ runtimeType.hashCode; } extension $UpdateMediaPathRequestDtoExtension on UpdateMediaPathRequestDto { @@ -52172,8 +49810,7 @@ extension $UpdateMediaPathRequestDtoExtension on UpdateMediaPathRequestDto { class UpdatePlaylistDto { const UpdatePlaylistDto({this.name, this.ids, this.users, this.isPublic}); - factory UpdatePlaylistDto.fromJson(Map json) => - _$UpdatePlaylistDtoFromJson(json); + factory UpdatePlaylistDto.fromJson(Map json) => _$UpdatePlaylistDtoFromJson(json); static const toJsonFactory = _$UpdatePlaylistDtoToJson; Map toJson() => _$UpdatePlaylistDtoToJson(this); @@ -52196,12 +49833,9 @@ class UpdatePlaylistDto { bool operator ==(Object other) { return identical(this, other) || (other is UpdatePlaylistDto && - (identical(other.name, name) || - const DeepCollectionEquality().equals(other.name, name)) && - (identical(other.ids, ids) || - const DeepCollectionEquality().equals(other.ids, ids)) && - (identical(other.users, users) || - const DeepCollectionEquality().equals(other.users, users)) && + (identical(other.name, name) || const DeepCollectionEquality().equals(other.name, name)) && + (identical(other.ids, ids) || const DeepCollectionEquality().equals(other.ids, ids)) && + (identical(other.users, users) || const DeepCollectionEquality().equals(other.users, users)) && (identical(other.isPublic, isPublic) || const DeepCollectionEquality().equals( other.isPublic, @@ -52255,8 +49889,7 @@ extension $UpdatePlaylistDtoExtension on UpdatePlaylistDto { class UpdatePlaylistUserDto { const UpdatePlaylistUserDto({this.canEdit}); - factory UpdatePlaylistUserDto.fromJson(Map json) => - _$UpdatePlaylistUserDtoFromJson(json); + factory UpdatePlaylistUserDto.fromJson(Map json) => _$UpdatePlaylistUserDtoFromJson(json); static const toJsonFactory = _$UpdatePlaylistUserDtoToJson; Map toJson() => _$UpdatePlaylistUserDtoToJson(this); @@ -52269,16 +49902,14 @@ class UpdatePlaylistUserDto { bool operator ==(Object other) { return identical(this, other) || (other is UpdatePlaylistUserDto && - (identical(other.canEdit, canEdit) || - const DeepCollectionEquality().equals(other.canEdit, canEdit))); + (identical(other.canEdit, canEdit) || const DeepCollectionEquality().equals(other.canEdit, canEdit))); } @override String toString() => jsonEncode(this); @override - int get hashCode => - const DeepCollectionEquality().hash(canEdit) ^ runtimeType.hashCode; + int get hashCode => const DeepCollectionEquality().hash(canEdit) ^ runtimeType.hashCode; } extension $UpdatePlaylistUserDtoExtension on UpdatePlaylistUserDto { @@ -52309,8 +49940,7 @@ class UpdateUserItemDataDto { this.itemId, }); - factory UpdateUserItemDataDto.fromJson(Map json) => - _$UpdateUserItemDataDtoFromJson(json); + factory UpdateUserItemDataDto.fromJson(Map json) => _$UpdateUserItemDataDtoFromJson(json); static const toJsonFactory = _$UpdateUserItemDataDtoToJson; Map toJson() => _$UpdateUserItemDataDtoToJson(this); @@ -52343,8 +49973,7 @@ class UpdateUserItemDataDto { bool operator ==(Object other) { return identical(this, other) || (other is UpdateUserItemDataDto && - (identical(other.rating, rating) || - const DeepCollectionEquality().equals(other.rating, rating)) && + (identical(other.rating, rating) || const DeepCollectionEquality().equals(other.rating, rating)) && (identical(other.playedPercentage, playedPercentage) || const DeepCollectionEquality().equals( other.playedPercentage, @@ -52370,19 +49999,15 @@ class UpdateUserItemDataDto { other.isFavorite, isFavorite, )) && - (identical(other.likes, likes) || - const DeepCollectionEquality().equals(other.likes, likes)) && + (identical(other.likes, likes) || const DeepCollectionEquality().equals(other.likes, likes)) && (identical(other.lastPlayedDate, lastPlayedDate) || const DeepCollectionEquality().equals( other.lastPlayedDate, lastPlayedDate, )) && - (identical(other.played, played) || - const DeepCollectionEquality().equals(other.played, played)) && - (identical(other.key, key) || - const DeepCollectionEquality().equals(other.key, key)) && - (identical(other.itemId, itemId) || - const DeepCollectionEquality().equals(other.itemId, itemId))); + (identical(other.played, played) || const DeepCollectionEquality().equals(other.played, played)) && + (identical(other.key, key) || const DeepCollectionEquality().equals(other.key, key)) && + (identical(other.itemId, itemId) || const DeepCollectionEquality().equals(other.itemId, itemId))); } @override @@ -52422,8 +50047,7 @@ extension $UpdateUserItemDataDtoExtension on UpdateUserItemDataDto { rating: rating ?? this.rating, playedPercentage: playedPercentage ?? this.playedPercentage, unplayedItemCount: unplayedItemCount ?? this.unplayedItemCount, - playbackPositionTicks: - playbackPositionTicks ?? this.playbackPositionTicks, + playbackPositionTicks: playbackPositionTicks ?? this.playbackPositionTicks, playCount: playCount ?? this.playCount, isFavorite: isFavorite ?? this.isFavorite, likes: likes ?? this.likes, @@ -52449,21 +50073,13 @@ extension $UpdateUserItemDataDtoExtension on UpdateUserItemDataDto { }) { return UpdateUserItemDataDto( rating: (rating != null ? rating.value : this.rating), - playedPercentage: (playedPercentage != null - ? playedPercentage.value - : this.playedPercentage), - unplayedItemCount: (unplayedItemCount != null - ? unplayedItemCount.value - : this.unplayedItemCount), - playbackPositionTicks: (playbackPositionTicks != null - ? playbackPositionTicks.value - : this.playbackPositionTicks), + playedPercentage: (playedPercentage != null ? playedPercentage.value : this.playedPercentage), + unplayedItemCount: (unplayedItemCount != null ? unplayedItemCount.value : this.unplayedItemCount), + playbackPositionTicks: (playbackPositionTicks != null ? playbackPositionTicks.value : this.playbackPositionTicks), playCount: (playCount != null ? playCount.value : this.playCount), isFavorite: (isFavorite != null ? isFavorite.value : this.isFavorite), likes: (likes != null ? likes.value : this.likes), - lastPlayedDate: (lastPlayedDate != null - ? lastPlayedDate.value - : this.lastPlayedDate), + lastPlayedDate: (lastPlayedDate != null ? lastPlayedDate.value : this.lastPlayedDate), played: (played != null ? played.value : this.played), key: (key != null ? key.value : this.key), itemId: (itemId != null ? itemId.value : this.itemId), @@ -52480,8 +50096,7 @@ class UpdateUserPassword { this.resetPassword, }); - factory UpdateUserPassword.fromJson(Map json) => - _$UpdateUserPasswordFromJson(json); + factory UpdateUserPassword.fromJson(Map json) => _$UpdateUserPasswordFromJson(json); static const toJsonFactory = _$UpdateUserPasswordToJson; Map toJson() => _$UpdateUserPasswordToJson(this); @@ -52510,8 +50125,7 @@ class UpdateUserPassword { other.currentPw, currentPw, )) && - (identical(other.newPw, newPw) || - const DeepCollectionEquality().equals(other.newPw, newPw)) && + (identical(other.newPw, newPw) || const DeepCollectionEquality().equals(other.newPw, newPw)) && (identical(other.resetPassword, resetPassword) || const DeepCollectionEquality().equals( other.resetPassword, @@ -52553,14 +50167,10 @@ extension $UpdateUserPasswordExtension on UpdateUserPassword { Wrapped? resetPassword, }) { return UpdateUserPassword( - currentPassword: (currentPassword != null - ? currentPassword.value - : this.currentPassword), + currentPassword: (currentPassword != null ? currentPassword.value : this.currentPassword), currentPw: (currentPw != null ? currentPw.value : this.currentPw), newPw: (newPw != null ? newPw.value : this.newPw), - resetPassword: (resetPassword != null - ? resetPassword.value - : this.resetPassword), + resetPassword: (resetPassword != null ? resetPassword.value : this.resetPassword), ); } } @@ -52575,8 +50185,7 @@ class UploadSubtitleDto { required this.data, }); - factory UploadSubtitleDto.fromJson(Map json) => - _$UploadSubtitleDtoFromJson(json); + factory UploadSubtitleDto.fromJson(Map json) => _$UploadSubtitleDtoFromJson(json); static const toJsonFactory = _$UploadSubtitleDtoToJson; Map toJson() => _$UploadSubtitleDtoToJson(this); @@ -52602,8 +50211,7 @@ class UploadSubtitleDto { other.language, language, )) && - (identical(other.format, format) || - const DeepCollectionEquality().equals(other.format, format)) && + (identical(other.format, format) || const DeepCollectionEquality().equals(other.format, format)) && (identical(other.isForced, isForced) || const DeepCollectionEquality().equals( other.isForced, @@ -52614,8 +50222,7 @@ class UploadSubtitleDto { other.isHearingImpaired, isHearingImpaired, )) && - (identical(other.data, data) || - const DeepCollectionEquality().equals(other.data, data))); + (identical(other.data, data) || const DeepCollectionEquality().equals(other.data, data))); } @override @@ -52659,9 +50266,7 @@ extension $UploadSubtitleDtoExtension on UploadSubtitleDto { language: (language != null ? language.value : this.language), format: (format != null ? format.value : this.format), isForced: (isForced != null ? isForced.value : this.isForced), - isHearingImpaired: (isHearingImpaired != null - ? isHearingImpaired.value - : this.isHearingImpaired), + isHearingImpaired: (isHearingImpaired != null ? isHearingImpaired.value : this.isHearingImpaired), data: (data != null ? data.value : this.data), ); } @@ -52688,8 +50293,7 @@ class UserConfiguration { this.castReceiverId, }); - factory UserConfiguration.fromJson(Map json) => - _$UserConfigurationFromJson(json); + factory UserConfiguration.fromJson(Map json) => _$UserConfigurationFromJson(json); static const toJsonFactory = _$UserConfigurationToJson; Map toJson() => _$UserConfigurationToJson(this); @@ -52890,29 +50494,21 @@ extension $UserConfigurationExtension on UserConfiguration { String? castReceiverId, }) { return UserConfiguration( - audioLanguagePreference: - audioLanguagePreference ?? this.audioLanguagePreference, - playDefaultAudioTrack: - playDefaultAudioTrack ?? this.playDefaultAudioTrack, - subtitleLanguagePreference: - subtitleLanguagePreference ?? this.subtitleLanguagePreference, - displayMissingEpisodes: - displayMissingEpisodes ?? this.displayMissingEpisodes, + audioLanguagePreference: audioLanguagePreference ?? this.audioLanguagePreference, + playDefaultAudioTrack: playDefaultAudioTrack ?? this.playDefaultAudioTrack, + subtitleLanguagePreference: subtitleLanguagePreference ?? this.subtitleLanguagePreference, + displayMissingEpisodes: displayMissingEpisodes ?? this.displayMissingEpisodes, groupedFolders: groupedFolders ?? this.groupedFolders, subtitleMode: subtitleMode ?? this.subtitleMode, - displayCollectionsView: - displayCollectionsView ?? this.displayCollectionsView, + displayCollectionsView: displayCollectionsView ?? this.displayCollectionsView, enableLocalPassword: enableLocalPassword ?? this.enableLocalPassword, orderedViews: orderedViews ?? this.orderedViews, latestItemsExcludes: latestItemsExcludes ?? this.latestItemsExcludes, myMediaExcludes: myMediaExcludes ?? this.myMediaExcludes, hidePlayedInLatest: hidePlayedInLatest ?? this.hidePlayedInLatest, - rememberAudioSelections: - rememberAudioSelections ?? this.rememberAudioSelections, - rememberSubtitleSelections: - rememberSubtitleSelections ?? this.rememberSubtitleSelections, - enableNextEpisodeAutoPlay: - enableNextEpisodeAutoPlay ?? this.enableNextEpisodeAutoPlay, + rememberAudioSelections: rememberAudioSelections ?? this.rememberAudioSelections, + rememberSubtitleSelections: rememberSubtitleSelections ?? this.rememberSubtitleSelections, + enableNextEpisodeAutoPlay: enableNextEpisodeAutoPlay ?? this.enableNextEpisodeAutoPlay, castReceiverId: castReceiverId ?? this.castReceiverId, ); } @@ -52936,54 +50532,29 @@ extension $UserConfigurationExtension on UserConfiguration { Wrapped? castReceiverId, }) { return UserConfiguration( - audioLanguagePreference: (audioLanguagePreference != null - ? audioLanguagePreference.value - : this.audioLanguagePreference), - playDefaultAudioTrack: (playDefaultAudioTrack != null - ? playDefaultAudioTrack.value - : this.playDefaultAudioTrack), - subtitleLanguagePreference: (subtitleLanguagePreference != null - ? subtitleLanguagePreference.value - : this.subtitleLanguagePreference), - displayMissingEpisodes: (displayMissingEpisodes != null - ? displayMissingEpisodes.value - : this.displayMissingEpisodes), - groupedFolders: (groupedFolders != null - ? groupedFolders.value - : this.groupedFolders), - subtitleMode: (subtitleMode != null - ? subtitleMode.value - : this.subtitleMode), - displayCollectionsView: (displayCollectionsView != null - ? displayCollectionsView.value - : this.displayCollectionsView), - enableLocalPassword: (enableLocalPassword != null - ? enableLocalPassword.value - : this.enableLocalPassword), - orderedViews: (orderedViews != null - ? orderedViews.value - : this.orderedViews), - latestItemsExcludes: (latestItemsExcludes != null - ? latestItemsExcludes.value - : this.latestItemsExcludes), - myMediaExcludes: (myMediaExcludes != null - ? myMediaExcludes.value - : this.myMediaExcludes), - hidePlayedInLatest: (hidePlayedInLatest != null - ? hidePlayedInLatest.value - : this.hidePlayedInLatest), - rememberAudioSelections: (rememberAudioSelections != null - ? rememberAudioSelections.value - : this.rememberAudioSelections), - rememberSubtitleSelections: (rememberSubtitleSelections != null - ? rememberSubtitleSelections.value - : this.rememberSubtitleSelections), - enableNextEpisodeAutoPlay: (enableNextEpisodeAutoPlay != null - ? enableNextEpisodeAutoPlay.value - : this.enableNextEpisodeAutoPlay), - castReceiverId: (castReceiverId != null - ? castReceiverId.value - : this.castReceiverId), + audioLanguagePreference: + (audioLanguagePreference != null ? audioLanguagePreference.value : this.audioLanguagePreference), + playDefaultAudioTrack: (playDefaultAudioTrack != null ? playDefaultAudioTrack.value : this.playDefaultAudioTrack), + subtitleLanguagePreference: + (subtitleLanguagePreference != null ? subtitleLanguagePreference.value : this.subtitleLanguagePreference), + displayMissingEpisodes: + (displayMissingEpisodes != null ? displayMissingEpisodes.value : this.displayMissingEpisodes), + groupedFolders: (groupedFolders != null ? groupedFolders.value : this.groupedFolders), + subtitleMode: (subtitleMode != null ? subtitleMode.value : this.subtitleMode), + displayCollectionsView: + (displayCollectionsView != null ? displayCollectionsView.value : this.displayCollectionsView), + enableLocalPassword: (enableLocalPassword != null ? enableLocalPassword.value : this.enableLocalPassword), + orderedViews: (orderedViews != null ? orderedViews.value : this.orderedViews), + latestItemsExcludes: (latestItemsExcludes != null ? latestItemsExcludes.value : this.latestItemsExcludes), + myMediaExcludes: (myMediaExcludes != null ? myMediaExcludes.value : this.myMediaExcludes), + hidePlayedInLatest: (hidePlayedInLatest != null ? hidePlayedInLatest.value : this.hidePlayedInLatest), + rememberAudioSelections: + (rememberAudioSelections != null ? rememberAudioSelections.value : this.rememberAudioSelections), + rememberSubtitleSelections: + (rememberSubtitleSelections != null ? rememberSubtitleSelections.value : this.rememberSubtitleSelections), + enableNextEpisodeAutoPlay: + (enableNextEpisodeAutoPlay != null ? enableNextEpisodeAutoPlay.value : this.enableNextEpisodeAutoPlay), + castReceiverId: (castReceiverId != null ? castReceiverId.value : this.castReceiverId), ); } } @@ -52992,8 +50563,7 @@ extension $UserConfigurationExtension on UserConfiguration { class UserDataChangedMessage { const UserDataChangedMessage({this.data, this.messageId, this.messageType}); - factory UserDataChangedMessage.fromJson(Map json) => - _$UserDataChangedMessageFromJson(json); + factory UserDataChangedMessage.fromJson(Map json) => _$UserDataChangedMessageFromJson(json); static const toJsonFactory = _$UserDataChangedMessageToJson; Map toJson() => _$UserDataChangedMessageToJson(this); @@ -53009,8 +50579,7 @@ class UserDataChangedMessage { fromJson: sessionMessageTypeMessageTypeNullableFromJson, ) final enums.SessionMessageType? messageType; - static enums.SessionMessageType? - sessionMessageTypeMessageTypeNullableFromJson(Object? value) => + static enums.SessionMessageType? sessionMessageTypeMessageTypeNullableFromJson(Object? value) => sessionMessageTypeNullableFromJson( value, enums.SessionMessageType.userdatachanged, @@ -53022,8 +50591,7 @@ class UserDataChangedMessage { bool operator ==(Object other) { return identical(this, other) || (other is UserDataChangedMessage && - (identical(other.data, data) || - const DeepCollectionEquality().equals(other.data, data)) && + (identical(other.data, data) || const DeepCollectionEquality().equals(other.data, data)) && (identical(other.messageId, messageId) || const DeepCollectionEquality().equals( other.messageId, @@ -53077,8 +50645,7 @@ extension $UserDataChangedMessageExtension on UserDataChangedMessage { class UserDataChangeInfo { const UserDataChangeInfo({this.userId, this.userDataList}); - factory UserDataChangeInfo.fromJson(Map json) => - _$UserDataChangeInfoFromJson(json); + factory UserDataChangeInfo.fromJson(Map json) => _$UserDataChangeInfoFromJson(json); static const toJsonFactory = _$UserDataChangeInfoToJson; Map toJson() => _$UserDataChangeInfoToJson(this); @@ -53097,8 +50664,7 @@ class UserDataChangeInfo { bool operator ==(Object other) { return identical(this, other) || (other is UserDataChangeInfo && - (identical(other.userId, userId) || - const DeepCollectionEquality().equals(other.userId, userId)) && + (identical(other.userId, userId) || const DeepCollectionEquality().equals(other.userId, userId)) && (identical(other.userDataList, userDataList) || const DeepCollectionEquality().equals( other.userDataList, @@ -53133,9 +50699,7 @@ extension $UserDataChangeInfoExtension on UserDataChangeInfo { }) { return UserDataChangeInfo( userId: (userId != null ? userId.value : this.userId), - userDataList: (userDataList != null - ? userDataList.value - : this.userDataList), + userDataList: (userDataList != null ? userDataList.value : this.userDataList), ); } } @@ -53144,8 +50708,7 @@ extension $UserDataChangeInfoExtension on UserDataChangeInfo { class UserDeletedMessage { const UserDeletedMessage({this.data, this.messageId, this.messageType}); - factory UserDeletedMessage.fromJson(Map json) => - _$UserDeletedMessageFromJson(json); + factory UserDeletedMessage.fromJson(Map json) => _$UserDeletedMessageFromJson(json); static const toJsonFactory = _$UserDeletedMessageToJson; Map toJson() => _$UserDeletedMessageToJson(this); @@ -53161,8 +50724,7 @@ class UserDeletedMessage { fromJson: sessionMessageTypeMessageTypeNullableFromJson, ) final enums.SessionMessageType? messageType; - static enums.SessionMessageType? - sessionMessageTypeMessageTypeNullableFromJson(Object? value) => + static enums.SessionMessageType? sessionMessageTypeMessageTypeNullableFromJson(Object? value) => sessionMessageTypeNullableFromJson( value, enums.SessionMessageType.userdeleted, @@ -53174,8 +50736,7 @@ class UserDeletedMessage { bool operator ==(Object other) { return identical(this, other) || (other is UserDeletedMessage && - (identical(other.data, data) || - const DeepCollectionEquality().equals(other.data, data)) && + (identical(other.data, data) || const DeepCollectionEquality().equals(other.data, data)) && (identical(other.messageId, messageId) || const DeepCollectionEquality().equals( other.messageId, @@ -53244,8 +50805,7 @@ class UserDto { this.primaryImageAspectRatio, }); - factory UserDto.fromJson(Map json) => - _$UserDtoFromJson(json); + factory UserDto.fromJson(Map json) => _$UserDtoFromJson(json); static const toJsonFactory = _$UserDtoToJson; Map toJson() => _$UserDtoToJson(this); @@ -53285,8 +50845,7 @@ class UserDto { bool operator ==(Object other) { return identical(this, other) || (other is UserDto && - (identical(other.name, name) || - const DeepCollectionEquality().equals(other.name, name)) && + (identical(other.name, name) || const DeepCollectionEquality().equals(other.name, name)) && (identical(other.serverId, serverId) || const DeepCollectionEquality().equals( other.serverId, @@ -53297,8 +50856,7 @@ class UserDto { other.serverName, serverName, )) && - (identical(other.id, id) || - const DeepCollectionEquality().equals(other.id, id)) && + (identical(other.id, id) || const DeepCollectionEquality().equals(other.id, id)) && (identical(other.primaryImageTag, primaryImageTag) || const DeepCollectionEquality().equals( other.primaryImageTag, @@ -53342,8 +50900,7 @@ class UserDto { other.configuration, configuration, )) && - (identical(other.policy, policy) || - const DeepCollectionEquality().equals(other.policy, policy)) && + (identical(other.policy, policy) || const DeepCollectionEquality().equals(other.policy, policy)) && (identical( other.primaryImageAspectRatio, primaryImageAspectRatio, @@ -53400,17 +50957,14 @@ extension $UserDtoExtension on UserDto { id: id ?? this.id, primaryImageTag: primaryImageTag ?? this.primaryImageTag, hasPassword: hasPassword ?? this.hasPassword, - hasConfiguredPassword: - hasConfiguredPassword ?? this.hasConfiguredPassword, - hasConfiguredEasyPassword: - hasConfiguredEasyPassword ?? this.hasConfiguredEasyPassword, + hasConfiguredPassword: hasConfiguredPassword ?? this.hasConfiguredPassword, + hasConfiguredEasyPassword: hasConfiguredEasyPassword ?? this.hasConfiguredEasyPassword, enableAutoLogin: enableAutoLogin ?? this.enableAutoLogin, lastLoginDate: lastLoginDate ?? this.lastLoginDate, lastActivityDate: lastActivityDate ?? this.lastActivityDate, configuration: configuration ?? this.configuration, policy: policy ?? this.policy, - primaryImageAspectRatio: - primaryImageAspectRatio ?? this.primaryImageAspectRatio, + primaryImageAspectRatio: primaryImageAspectRatio ?? this.primaryImageAspectRatio, ); } @@ -53435,32 +50989,18 @@ extension $UserDtoExtension on UserDto { serverId: (serverId != null ? serverId.value : this.serverId), serverName: (serverName != null ? serverName.value : this.serverName), id: (id != null ? id.value : this.id), - primaryImageTag: (primaryImageTag != null - ? primaryImageTag.value - : this.primaryImageTag), + primaryImageTag: (primaryImageTag != null ? primaryImageTag.value : this.primaryImageTag), hasPassword: (hasPassword != null ? hasPassword.value : this.hasPassword), - hasConfiguredPassword: (hasConfiguredPassword != null - ? hasConfiguredPassword.value - : this.hasConfiguredPassword), - hasConfiguredEasyPassword: (hasConfiguredEasyPassword != null - ? hasConfiguredEasyPassword.value - : this.hasConfiguredEasyPassword), - enableAutoLogin: (enableAutoLogin != null - ? enableAutoLogin.value - : this.enableAutoLogin), - lastLoginDate: (lastLoginDate != null - ? lastLoginDate.value - : this.lastLoginDate), - lastActivityDate: (lastActivityDate != null - ? lastActivityDate.value - : this.lastActivityDate), - configuration: (configuration != null - ? configuration.value - : this.configuration), + hasConfiguredPassword: (hasConfiguredPassword != null ? hasConfiguredPassword.value : this.hasConfiguredPassword), + hasConfiguredEasyPassword: + (hasConfiguredEasyPassword != null ? hasConfiguredEasyPassword.value : this.hasConfiguredEasyPassword), + enableAutoLogin: (enableAutoLogin != null ? enableAutoLogin.value : this.enableAutoLogin), + lastLoginDate: (lastLoginDate != null ? lastLoginDate.value : this.lastLoginDate), + lastActivityDate: (lastActivityDate != null ? lastActivityDate.value : this.lastActivityDate), + configuration: (configuration != null ? configuration.value : this.configuration), policy: (policy != null ? policy.value : this.policy), - primaryImageAspectRatio: (primaryImageAspectRatio != null - ? primaryImageAspectRatio.value - : this.primaryImageAspectRatio), + primaryImageAspectRatio: + (primaryImageAspectRatio != null ? primaryImageAspectRatio.value : this.primaryImageAspectRatio), ); } } @@ -53481,8 +51021,7 @@ class UserItemDataDto { this.itemId, }); - factory UserItemDataDto.fromJson(Map json) => - _$UserItemDataDtoFromJson(json); + factory UserItemDataDto.fromJson(Map json) => _$UserItemDataDtoFromJson(json); static const toJsonFactory = _$UserItemDataDtoToJson; Map toJson() => _$UserItemDataDtoToJson(this); @@ -53515,8 +51054,7 @@ class UserItemDataDto { bool operator ==(Object other) { return identical(this, other) || (other is UserItemDataDto && - (identical(other.rating, rating) || - const DeepCollectionEquality().equals(other.rating, rating)) && + (identical(other.rating, rating) || const DeepCollectionEquality().equals(other.rating, rating)) && (identical(other.playedPercentage, playedPercentage) || const DeepCollectionEquality().equals( other.playedPercentage, @@ -53542,19 +51080,15 @@ class UserItemDataDto { other.isFavorite, isFavorite, )) && - (identical(other.likes, likes) || - const DeepCollectionEquality().equals(other.likes, likes)) && + (identical(other.likes, likes) || const DeepCollectionEquality().equals(other.likes, likes)) && (identical(other.lastPlayedDate, lastPlayedDate) || const DeepCollectionEquality().equals( other.lastPlayedDate, lastPlayedDate, )) && - (identical(other.played, played) || - const DeepCollectionEquality().equals(other.played, played)) && - (identical(other.key, key) || - const DeepCollectionEquality().equals(other.key, key)) && - (identical(other.itemId, itemId) || - const DeepCollectionEquality().equals(other.itemId, itemId))); + (identical(other.played, played) || const DeepCollectionEquality().equals(other.played, played)) && + (identical(other.key, key) || const DeepCollectionEquality().equals(other.key, key)) && + (identical(other.itemId, itemId) || const DeepCollectionEquality().equals(other.itemId, itemId))); } @override @@ -53594,8 +51128,7 @@ extension $UserItemDataDtoExtension on UserItemDataDto { rating: rating ?? this.rating, playedPercentage: playedPercentage ?? this.playedPercentage, unplayedItemCount: unplayedItemCount ?? this.unplayedItemCount, - playbackPositionTicks: - playbackPositionTicks ?? this.playbackPositionTicks, + playbackPositionTicks: playbackPositionTicks ?? this.playbackPositionTicks, playCount: playCount ?? this.playCount, isFavorite: isFavorite ?? this.isFavorite, likes: likes ?? this.likes, @@ -53621,21 +51154,13 @@ extension $UserItemDataDtoExtension on UserItemDataDto { }) { return UserItemDataDto( rating: (rating != null ? rating.value : this.rating), - playedPercentage: (playedPercentage != null - ? playedPercentage.value - : this.playedPercentage), - unplayedItemCount: (unplayedItemCount != null - ? unplayedItemCount.value - : this.unplayedItemCount), - playbackPositionTicks: (playbackPositionTicks != null - ? playbackPositionTicks.value - : this.playbackPositionTicks), + playedPercentage: (playedPercentage != null ? playedPercentage.value : this.playedPercentage), + unplayedItemCount: (unplayedItemCount != null ? unplayedItemCount.value : this.unplayedItemCount), + playbackPositionTicks: (playbackPositionTicks != null ? playbackPositionTicks.value : this.playbackPositionTicks), playCount: (playCount != null ? playCount.value : this.playCount), isFavorite: (isFavorite != null ? isFavorite.value : this.isFavorite), likes: (likes != null ? likes.value : this.likes), - lastPlayedDate: (lastPlayedDate != null - ? lastPlayedDate.value - : this.lastPlayedDate), + lastPlayedDate: (lastPlayedDate != null ? lastPlayedDate.value : this.lastPlayedDate), played: (played != null ? played.value : this.played), key: (key != null ? key.value : this.key), itemId: (itemId != null ? itemId.value : this.itemId), @@ -53692,8 +51217,7 @@ class UserPolicy { this.syncPlayAccess, }); - factory UserPolicy.fromJson(Map json) => - _$UserPolicyFromJson(json); + factory UserPolicy.fromJson(Map json) => _$UserPolicyFromJson(json); static const toJsonFactory = _$UserPolicyToJson; Map toJson() => _$UserPolicyToJson(this); @@ -54211,70 +51735,47 @@ extension $UserPolicyExtension on UserPolicy { return UserPolicy( isAdministrator: isAdministrator ?? this.isAdministrator, isHidden: isHidden ?? this.isHidden, - enableCollectionManagement: - enableCollectionManagement ?? this.enableCollectionManagement, - enableSubtitleManagement: - enableSubtitleManagement ?? this.enableSubtitleManagement, - enableLyricManagement: - enableLyricManagement ?? this.enableLyricManagement, + enableCollectionManagement: enableCollectionManagement ?? this.enableCollectionManagement, + enableSubtitleManagement: enableSubtitleManagement ?? this.enableSubtitleManagement, + enableLyricManagement: enableLyricManagement ?? this.enableLyricManagement, isDisabled: isDisabled ?? this.isDisabled, maxParentalRating: maxParentalRating ?? this.maxParentalRating, maxParentalSubRating: maxParentalSubRating ?? this.maxParentalSubRating, blockedTags: blockedTags ?? this.blockedTags, allowedTags: allowedTags ?? this.allowedTags, - enableUserPreferenceAccess: - enableUserPreferenceAccess ?? this.enableUserPreferenceAccess, + enableUserPreferenceAccess: enableUserPreferenceAccess ?? this.enableUserPreferenceAccess, accessSchedules: accessSchedules ?? this.accessSchedules, blockUnratedItems: blockUnratedItems ?? this.blockUnratedItems, - enableRemoteControlOfOtherUsers: - enableRemoteControlOfOtherUsers ?? - this.enableRemoteControlOfOtherUsers, - enableSharedDeviceControl: - enableSharedDeviceControl ?? this.enableSharedDeviceControl, + enableRemoteControlOfOtherUsers: enableRemoteControlOfOtherUsers ?? this.enableRemoteControlOfOtherUsers, + enableSharedDeviceControl: enableSharedDeviceControl ?? this.enableSharedDeviceControl, enableRemoteAccess: enableRemoteAccess ?? this.enableRemoteAccess, - enableLiveTvManagement: - enableLiveTvManagement ?? this.enableLiveTvManagement, + enableLiveTvManagement: enableLiveTvManagement ?? this.enableLiveTvManagement, enableLiveTvAccess: enableLiveTvAccess ?? this.enableLiveTvAccess, enableMediaPlayback: enableMediaPlayback ?? this.enableMediaPlayback, - enableAudioPlaybackTranscoding: - enableAudioPlaybackTranscoding ?? this.enableAudioPlaybackTranscoding, - enableVideoPlaybackTranscoding: - enableVideoPlaybackTranscoding ?? this.enableVideoPlaybackTranscoding, - enablePlaybackRemuxing: - enablePlaybackRemuxing ?? this.enablePlaybackRemuxing, - forceRemoteSourceTranscoding: - forceRemoteSourceTranscoding ?? this.forceRemoteSourceTranscoding, - enableContentDeletion: - enableContentDeletion ?? this.enableContentDeletion, - enableContentDeletionFromFolders: - enableContentDeletionFromFolders ?? - this.enableContentDeletionFromFolders, - enableContentDownloading: - enableContentDownloading ?? this.enableContentDownloading, - enableSyncTranscoding: - enableSyncTranscoding ?? this.enableSyncTranscoding, - enableMediaConversion: - enableMediaConversion ?? this.enableMediaConversion, + enableAudioPlaybackTranscoding: enableAudioPlaybackTranscoding ?? this.enableAudioPlaybackTranscoding, + enableVideoPlaybackTranscoding: enableVideoPlaybackTranscoding ?? this.enableVideoPlaybackTranscoding, + enablePlaybackRemuxing: enablePlaybackRemuxing ?? this.enablePlaybackRemuxing, + forceRemoteSourceTranscoding: forceRemoteSourceTranscoding ?? this.forceRemoteSourceTranscoding, + enableContentDeletion: enableContentDeletion ?? this.enableContentDeletion, + enableContentDeletionFromFolders: enableContentDeletionFromFolders ?? this.enableContentDeletionFromFolders, + enableContentDownloading: enableContentDownloading ?? this.enableContentDownloading, + enableSyncTranscoding: enableSyncTranscoding ?? this.enableSyncTranscoding, + enableMediaConversion: enableMediaConversion ?? this.enableMediaConversion, enabledDevices: enabledDevices ?? this.enabledDevices, enableAllDevices: enableAllDevices ?? this.enableAllDevices, enabledChannels: enabledChannels ?? this.enabledChannels, enableAllChannels: enableAllChannels ?? this.enableAllChannels, enabledFolders: enabledFolders ?? this.enabledFolders, enableAllFolders: enableAllFolders ?? this.enableAllFolders, - invalidLoginAttemptCount: - invalidLoginAttemptCount ?? this.invalidLoginAttemptCount, - loginAttemptsBeforeLockout: - loginAttemptsBeforeLockout ?? this.loginAttemptsBeforeLockout, + invalidLoginAttemptCount: invalidLoginAttemptCount ?? this.invalidLoginAttemptCount, + loginAttemptsBeforeLockout: loginAttemptsBeforeLockout ?? this.loginAttemptsBeforeLockout, maxActiveSessions: maxActiveSessions ?? this.maxActiveSessions, enablePublicSharing: enablePublicSharing ?? this.enablePublicSharing, blockedMediaFolders: blockedMediaFolders ?? this.blockedMediaFolders, blockedChannels: blockedChannels ?? this.blockedChannels, - remoteClientBitrateLimit: - remoteClientBitrateLimit ?? this.remoteClientBitrateLimit, - authenticationProviderId: - authenticationProviderId ?? this.authenticationProviderId, - passwordResetProviderId: - passwordResetProviderId ?? this.passwordResetProviderId, + remoteClientBitrateLimit: remoteClientBitrateLimit ?? this.remoteClientBitrateLimit, + authenticationProviderId: authenticationProviderId ?? this.authenticationProviderId, + passwordResetProviderId: passwordResetProviderId ?? this.passwordResetProviderId, syncPlayAccess: syncPlayAccess ?? this.syncPlayAccess, ); } @@ -54326,131 +51827,72 @@ extension $UserPolicyExtension on UserPolicy { Wrapped? syncPlayAccess, }) { return UserPolicy( - isAdministrator: (isAdministrator != null - ? isAdministrator.value - : this.isAdministrator), + isAdministrator: (isAdministrator != null ? isAdministrator.value : this.isAdministrator), isHidden: (isHidden != null ? isHidden.value : this.isHidden), - enableCollectionManagement: (enableCollectionManagement != null - ? enableCollectionManagement.value - : this.enableCollectionManagement), - enableSubtitleManagement: (enableSubtitleManagement != null - ? enableSubtitleManagement.value - : this.enableSubtitleManagement), - enableLyricManagement: (enableLyricManagement != null - ? enableLyricManagement.value - : this.enableLyricManagement), + enableCollectionManagement: + (enableCollectionManagement != null ? enableCollectionManagement.value : this.enableCollectionManagement), + enableSubtitleManagement: + (enableSubtitleManagement != null ? enableSubtitleManagement.value : this.enableSubtitleManagement), + enableLyricManagement: (enableLyricManagement != null ? enableLyricManagement.value : this.enableLyricManagement), isDisabled: (isDisabled != null ? isDisabled.value : this.isDisabled), - maxParentalRating: (maxParentalRating != null - ? maxParentalRating.value - : this.maxParentalRating), - maxParentalSubRating: (maxParentalSubRating != null - ? maxParentalSubRating.value - : this.maxParentalSubRating), + maxParentalRating: (maxParentalRating != null ? maxParentalRating.value : this.maxParentalRating), + maxParentalSubRating: (maxParentalSubRating != null ? maxParentalSubRating.value : this.maxParentalSubRating), blockedTags: (blockedTags != null ? blockedTags.value : this.blockedTags), allowedTags: (allowedTags != null ? allowedTags.value : this.allowedTags), - enableUserPreferenceAccess: (enableUserPreferenceAccess != null - ? enableUserPreferenceAccess.value - : this.enableUserPreferenceAccess), - accessSchedules: (accessSchedules != null - ? accessSchedules.value - : this.accessSchedules), - blockUnratedItems: (blockUnratedItems != null - ? blockUnratedItems.value - : this.blockUnratedItems), + enableUserPreferenceAccess: + (enableUserPreferenceAccess != null ? enableUserPreferenceAccess.value : this.enableUserPreferenceAccess), + accessSchedules: (accessSchedules != null ? accessSchedules.value : this.accessSchedules), + blockUnratedItems: (blockUnratedItems != null ? blockUnratedItems.value : this.blockUnratedItems), enableRemoteControlOfOtherUsers: (enableRemoteControlOfOtherUsers != null ? enableRemoteControlOfOtherUsers.value : this.enableRemoteControlOfOtherUsers), - enableSharedDeviceControl: (enableSharedDeviceControl != null - ? enableSharedDeviceControl.value - : this.enableSharedDeviceControl), - enableRemoteAccess: (enableRemoteAccess != null - ? enableRemoteAccess.value - : this.enableRemoteAccess), - enableLiveTvManagement: (enableLiveTvManagement != null - ? enableLiveTvManagement.value - : this.enableLiveTvManagement), - enableLiveTvAccess: (enableLiveTvAccess != null - ? enableLiveTvAccess.value - : this.enableLiveTvAccess), - enableMediaPlayback: (enableMediaPlayback != null - ? enableMediaPlayback.value - : this.enableMediaPlayback), + enableSharedDeviceControl: + (enableSharedDeviceControl != null ? enableSharedDeviceControl.value : this.enableSharedDeviceControl), + enableRemoteAccess: (enableRemoteAccess != null ? enableRemoteAccess.value : this.enableRemoteAccess), + enableLiveTvManagement: + (enableLiveTvManagement != null ? enableLiveTvManagement.value : this.enableLiveTvManagement), + enableLiveTvAccess: (enableLiveTvAccess != null ? enableLiveTvAccess.value : this.enableLiveTvAccess), + enableMediaPlayback: (enableMediaPlayback != null ? enableMediaPlayback.value : this.enableMediaPlayback), enableAudioPlaybackTranscoding: (enableAudioPlaybackTranscoding != null ? enableAudioPlaybackTranscoding.value : this.enableAudioPlaybackTranscoding), enableVideoPlaybackTranscoding: (enableVideoPlaybackTranscoding != null ? enableVideoPlaybackTranscoding.value : this.enableVideoPlaybackTranscoding), - enablePlaybackRemuxing: (enablePlaybackRemuxing != null - ? enablePlaybackRemuxing.value - : this.enablePlaybackRemuxing), + enablePlaybackRemuxing: + (enablePlaybackRemuxing != null ? enablePlaybackRemuxing.value : this.enablePlaybackRemuxing), forceRemoteSourceTranscoding: (forceRemoteSourceTranscoding != null ? forceRemoteSourceTranscoding.value : this.forceRemoteSourceTranscoding), - enableContentDeletion: (enableContentDeletion != null - ? enableContentDeletion.value - : this.enableContentDeletion), - enableContentDeletionFromFolders: - (enableContentDeletionFromFolders != null + enableContentDeletion: (enableContentDeletion != null ? enableContentDeletion.value : this.enableContentDeletion), + enableContentDeletionFromFolders: (enableContentDeletionFromFolders != null ? enableContentDeletionFromFolders.value : this.enableContentDeletionFromFolders), - enableContentDownloading: (enableContentDownloading != null - ? enableContentDownloading.value - : this.enableContentDownloading), - enableSyncTranscoding: (enableSyncTranscoding != null - ? enableSyncTranscoding.value - : this.enableSyncTranscoding), - enableMediaConversion: (enableMediaConversion != null - ? enableMediaConversion.value - : this.enableMediaConversion), - enabledDevices: (enabledDevices != null - ? enabledDevices.value - : this.enabledDevices), - enableAllDevices: (enableAllDevices != null - ? enableAllDevices.value - : this.enableAllDevices), - enabledChannels: (enabledChannels != null - ? enabledChannels.value - : this.enabledChannels), - enableAllChannels: (enableAllChannels != null - ? enableAllChannels.value - : this.enableAllChannels), - enabledFolders: (enabledFolders != null - ? enabledFolders.value - : this.enabledFolders), - enableAllFolders: (enableAllFolders != null - ? enableAllFolders.value - : this.enableAllFolders), - invalidLoginAttemptCount: (invalidLoginAttemptCount != null - ? invalidLoginAttemptCount.value - : this.invalidLoginAttemptCount), - loginAttemptsBeforeLockout: (loginAttemptsBeforeLockout != null - ? loginAttemptsBeforeLockout.value - : this.loginAttemptsBeforeLockout), - maxActiveSessions: (maxActiveSessions != null - ? maxActiveSessions.value - : this.maxActiveSessions), - enablePublicSharing: (enablePublicSharing != null - ? enablePublicSharing.value - : this.enablePublicSharing), - blockedMediaFolders: (blockedMediaFolders != null - ? blockedMediaFolders.value - : this.blockedMediaFolders), - blockedChannels: (blockedChannels != null - ? blockedChannels.value - : this.blockedChannels), - remoteClientBitrateLimit: (remoteClientBitrateLimit != null - ? remoteClientBitrateLimit.value - : this.remoteClientBitrateLimit), - authenticationProviderId: (authenticationProviderId != null - ? authenticationProviderId.value - : this.authenticationProviderId), - passwordResetProviderId: (passwordResetProviderId != null - ? passwordResetProviderId.value - : this.passwordResetProviderId), - syncPlayAccess: (syncPlayAccess != null - ? syncPlayAccess.value - : this.syncPlayAccess), + enableContentDownloading: + (enableContentDownloading != null ? enableContentDownloading.value : this.enableContentDownloading), + enableSyncTranscoding: (enableSyncTranscoding != null ? enableSyncTranscoding.value : this.enableSyncTranscoding), + enableMediaConversion: (enableMediaConversion != null ? enableMediaConversion.value : this.enableMediaConversion), + enabledDevices: (enabledDevices != null ? enabledDevices.value : this.enabledDevices), + enableAllDevices: (enableAllDevices != null ? enableAllDevices.value : this.enableAllDevices), + enabledChannels: (enabledChannels != null ? enabledChannels.value : this.enabledChannels), + enableAllChannels: (enableAllChannels != null ? enableAllChannels.value : this.enableAllChannels), + enabledFolders: (enabledFolders != null ? enabledFolders.value : this.enabledFolders), + enableAllFolders: (enableAllFolders != null ? enableAllFolders.value : this.enableAllFolders), + invalidLoginAttemptCount: + (invalidLoginAttemptCount != null ? invalidLoginAttemptCount.value : this.invalidLoginAttemptCount), + loginAttemptsBeforeLockout: + (loginAttemptsBeforeLockout != null ? loginAttemptsBeforeLockout.value : this.loginAttemptsBeforeLockout), + maxActiveSessions: (maxActiveSessions != null ? maxActiveSessions.value : this.maxActiveSessions), + enablePublicSharing: (enablePublicSharing != null ? enablePublicSharing.value : this.enablePublicSharing), + blockedMediaFolders: (blockedMediaFolders != null ? blockedMediaFolders.value : this.blockedMediaFolders), + blockedChannels: (blockedChannels != null ? blockedChannels.value : this.blockedChannels), + remoteClientBitrateLimit: + (remoteClientBitrateLimit != null ? remoteClientBitrateLimit.value : this.remoteClientBitrateLimit), + authenticationProviderId: + (authenticationProviderId != null ? authenticationProviderId.value : this.authenticationProviderId), + passwordResetProviderId: + (passwordResetProviderId != null ? passwordResetProviderId.value : this.passwordResetProviderId), + syncPlayAccess: (syncPlayAccess != null ? syncPlayAccess.value : this.syncPlayAccess), ); } } @@ -54459,8 +51901,7 @@ extension $UserPolicyExtension on UserPolicy { class UserUpdatedMessage { const UserUpdatedMessage({this.data, this.messageId, this.messageType}); - factory UserUpdatedMessage.fromJson(Map json) => - _$UserUpdatedMessageFromJson(json); + factory UserUpdatedMessage.fromJson(Map json) => _$UserUpdatedMessageFromJson(json); static const toJsonFactory = _$UserUpdatedMessageToJson; Map toJson() => _$UserUpdatedMessageToJson(this); @@ -54476,8 +51917,7 @@ class UserUpdatedMessage { fromJson: sessionMessageTypeMessageTypeNullableFromJson, ) final enums.SessionMessageType? messageType; - static enums.SessionMessageType? - sessionMessageTypeMessageTypeNullableFromJson(Object? value) => + static enums.SessionMessageType? sessionMessageTypeMessageTypeNullableFromJson(Object? value) => sessionMessageTypeNullableFromJson( value, enums.SessionMessageType.userupdated, @@ -54489,8 +51929,7 @@ class UserUpdatedMessage { bool operator ==(Object other) { return identical(this, other) || (other is UserUpdatedMessage && - (identical(other.data, data) || - const DeepCollectionEquality().equals(other.data, data)) && + (identical(other.data, data) || const DeepCollectionEquality().equals(other.data, data)) && (identical(other.messageId, messageId) || const DeepCollectionEquality().equals( other.messageId, @@ -54547,8 +51986,7 @@ class UtcTimeResponse { this.responseTransmissionTime, }); - factory UtcTimeResponse.fromJson(Map json) => - _$UtcTimeResponseFromJson(json); + factory UtcTimeResponse.fromJson(Map json) => _$UtcTimeResponseFromJson(json); static const toJsonFactory = _$UtcTimeResponseToJson; Map toJson() => _$UtcTimeResponseToJson(this); @@ -54595,8 +52033,7 @@ extension $UtcTimeResponseExtension on UtcTimeResponse { }) { return UtcTimeResponse( requestReceptionTime: requestReceptionTime ?? this.requestReceptionTime, - responseTransmissionTime: - responseTransmissionTime ?? this.responseTransmissionTime, + responseTransmissionTime: responseTransmissionTime ?? this.responseTransmissionTime, ); } @@ -54605,12 +52042,9 @@ extension $UtcTimeResponseExtension on UtcTimeResponse { Wrapped? responseTransmissionTime, }) { return UtcTimeResponse( - requestReceptionTime: (requestReceptionTime != null - ? requestReceptionTime.value - : this.requestReceptionTime), - responseTransmissionTime: (responseTransmissionTime != null - ? responseTransmissionTime.value - : this.responseTransmissionTime), + requestReceptionTime: (requestReceptionTime != null ? requestReceptionTime.value : this.requestReceptionTime), + responseTransmissionTime: + (responseTransmissionTime != null ? responseTransmissionTime.value : this.responseTransmissionTime), ); } } @@ -54619,8 +52053,7 @@ extension $UtcTimeResponseExtension on UtcTimeResponse { class ValidatePathDto { const ValidatePathDto({this.validateWritable, this.path, this.isFile}); - factory ValidatePathDto.fromJson(Map json) => - _$ValidatePathDtoFromJson(json); + factory ValidatePathDto.fromJson(Map json) => _$ValidatePathDtoFromJson(json); static const toJsonFactory = _$ValidatePathDtoToJson; Map toJson() => _$ValidatePathDtoToJson(this); @@ -54642,10 +52075,8 @@ class ValidatePathDto { other.validateWritable, validateWritable, )) && - (identical(other.path, path) || - const DeepCollectionEquality().equals(other.path, path)) && - (identical(other.isFile, isFile) || - const DeepCollectionEquality().equals(other.isFile, isFile))); + (identical(other.path, path) || const DeepCollectionEquality().equals(other.path, path)) && + (identical(other.isFile, isFile) || const DeepCollectionEquality().equals(other.isFile, isFile))); } @override @@ -54678,9 +52109,7 @@ extension $ValidatePathDtoExtension on ValidatePathDto { Wrapped? isFile, }) { return ValidatePathDto( - validateWritable: (validateWritable != null - ? validateWritable.value - : this.validateWritable), + validateWritable: (validateWritable != null ? validateWritable.value : this.validateWritable), path: (path != null ? path.value : this.path), isFile: (isFile != null ? isFile.value : this.isFile), ); @@ -54701,8 +52130,7 @@ class VersionInfo { this.repositoryUrl, }); - factory VersionInfo.fromJson(Map json) => - _$VersionInfoFromJson(json); + factory VersionInfo.fromJson(Map json) => _$VersionInfoFromJson(json); static const toJsonFactory = _$VersionInfoToJson; Map toJson() => _$VersionInfoToJson(this); @@ -54833,20 +52261,14 @@ extension $VersionInfoExtension on VersionInfo { }) { return VersionInfo( version: (version != null ? version.value : this.version), - versionNumber: (versionNumber != null - ? versionNumber.value - : this.versionNumber), + versionNumber: (versionNumber != null ? versionNumber.value : this.versionNumber), changelog: (changelog != null ? changelog.value : this.changelog), targetAbi: (targetAbi != null ? targetAbi.value : this.targetAbi), sourceUrl: (sourceUrl != null ? sourceUrl.value : this.sourceUrl), checksum: (checksum != null ? checksum.value : this.checksum), timestamp: (timestamp != null ? timestamp.value : this.timestamp), - repositoryName: (repositoryName != null - ? repositoryName.value - : this.repositoryName), - repositoryUrl: (repositoryUrl != null - ? repositoryUrl.value - : this.repositoryUrl), + repositoryName: (repositoryName != null ? repositoryName.value : this.repositoryName), + repositoryUrl: (repositoryUrl != null ? repositoryUrl.value : this.repositoryUrl), ); } } @@ -54864,8 +52286,7 @@ class VirtualFolderInfo { this.refreshStatus, }); - factory VirtualFolderInfo.fromJson(Map json) => - _$VirtualFolderInfoFromJson(json); + factory VirtualFolderInfo.fromJson(Map json) => _$VirtualFolderInfoFromJson(json); static const toJsonFactory = _$VirtualFolderInfoToJson; Map toJson() => _$VirtualFolderInfoToJson(this); @@ -54897,8 +52318,7 @@ class VirtualFolderInfo { bool operator ==(Object other) { return identical(this, other) || (other is VirtualFolderInfo && - (identical(other.name, name) || - const DeepCollectionEquality().equals(other.name, name)) && + (identical(other.name, name) || const DeepCollectionEquality().equals(other.name, name)) && (identical(other.locations, locations) || const DeepCollectionEquality().equals( other.locations, @@ -54914,8 +52334,7 @@ class VirtualFolderInfo { other.libraryOptions, libraryOptions, )) && - (identical(other.itemId, itemId) || - const DeepCollectionEquality().equals(other.itemId, itemId)) && + (identical(other.itemId, itemId) || const DeepCollectionEquality().equals(other.itemId, itemId)) && (identical(other.primaryImageItemId, primaryImageItemId) || const DeepCollectionEquality().equals( other.primaryImageItemId, @@ -54985,22 +52404,12 @@ extension $VirtualFolderInfoExtension on VirtualFolderInfo { return VirtualFolderInfo( name: (name != null ? name.value : this.name), locations: (locations != null ? locations.value : this.locations), - collectionType: (collectionType != null - ? collectionType.value - : this.collectionType), - libraryOptions: (libraryOptions != null - ? libraryOptions.value - : this.libraryOptions), + collectionType: (collectionType != null ? collectionType.value : this.collectionType), + libraryOptions: (libraryOptions != null ? libraryOptions.value : this.libraryOptions), itemId: (itemId != null ? itemId.value : this.itemId), - primaryImageItemId: (primaryImageItemId != null - ? primaryImageItemId.value - : this.primaryImageItemId), - refreshProgress: (refreshProgress != null - ? refreshProgress.value - : this.refreshProgress), - refreshStatus: (refreshStatus != null - ? refreshStatus.value - : this.refreshStatus), + primaryImageItemId: (primaryImageItemId != null ? primaryImageItemId.value : this.primaryImageItemId), + refreshProgress: (refreshProgress != null ? refreshProgress.value : this.refreshProgress), + refreshStatus: (refreshStatus != null ? refreshStatus.value : this.refreshStatus), ); } } @@ -55009,8 +52418,7 @@ extension $VirtualFolderInfoExtension on VirtualFolderInfo { class WebSocketMessage { const WebSocketMessage(); - factory WebSocketMessage.fromJson(Map json) => - _$WebSocketMessageFromJson(json); + factory WebSocketMessage.fromJson(Map json) => _$WebSocketMessageFromJson(json); static const toJsonFactory = _$WebSocketMessageToJson; Map toJson() => _$WebSocketMessageToJson(this); @@ -55034,8 +52442,7 @@ class XbmcMetadataOptions { this.enableExtraThumbsDuplication, }); - factory XbmcMetadataOptions.fromJson(Map json) => - _$XbmcMetadataOptionsFromJson(json); + factory XbmcMetadataOptions.fromJson(Map json) => _$XbmcMetadataOptionsFromJson(json); static const toJsonFactory = _$XbmcMetadataOptionsToJson; Map toJson() => _$XbmcMetadataOptionsToJson(this); @@ -55056,8 +52463,7 @@ class XbmcMetadataOptions { bool operator ==(Object other) { return identical(this, other) || (other is XbmcMetadataOptions && - (identical(other.userId, userId) || - const DeepCollectionEquality().equals(other.userId, userId)) && + (identical(other.userId, userId) || const DeepCollectionEquality().equals(other.userId, userId)) && (identical(other.releaseDateFormat, releaseDateFormat) || const DeepCollectionEquality().equals( other.releaseDateFormat, @@ -55108,10 +52514,8 @@ extension $XbmcMetadataOptionsExtension on XbmcMetadataOptions { userId: userId ?? this.userId, releaseDateFormat: releaseDateFormat ?? this.releaseDateFormat, saveImagePathsInNfo: saveImagePathsInNfo ?? this.saveImagePathsInNfo, - enablePathSubstitution: - enablePathSubstitution ?? this.enablePathSubstitution, - enableExtraThumbsDuplication: - enableExtraThumbsDuplication ?? this.enableExtraThumbsDuplication, + enablePathSubstitution: enablePathSubstitution ?? this.enablePathSubstitution, + enableExtraThumbsDuplication: enableExtraThumbsDuplication ?? this.enableExtraThumbsDuplication, ); } @@ -55124,15 +52528,10 @@ extension $XbmcMetadataOptionsExtension on XbmcMetadataOptions { }) { return XbmcMetadataOptions( userId: (userId != null ? userId.value : this.userId), - releaseDateFormat: (releaseDateFormat != null - ? releaseDateFormat.value - : this.releaseDateFormat), - saveImagePathsInNfo: (saveImagePathsInNfo != null - ? saveImagePathsInNfo.value - : this.saveImagePathsInNfo), - enablePathSubstitution: (enablePathSubstitution != null - ? enablePathSubstitution.value - : this.enablePathSubstitution), + releaseDateFormat: (releaseDateFormat != null ? releaseDateFormat.value : this.releaseDateFormat), + saveImagePathsInNfo: (saveImagePathsInNfo != null ? saveImagePathsInNfo.value : this.saveImagePathsInNfo), + enablePathSubstitution: + (enablePathSubstitution != null ? enablePathSubstitution.value : this.enablePathSubstitution), enableExtraThumbsDuplication: (enableExtraThumbsDuplication != null ? enableExtraThumbsDuplication.value : this.enableExtraThumbsDuplication), @@ -55201,30 +52600,23 @@ class BaseItemDto$ImageBlurHashes { other.primary, primary, )) && - (identical(other.art, art) || - const DeepCollectionEquality().equals(other.art, art)) && + (identical(other.art, art) || const DeepCollectionEquality().equals(other.art, art)) && (identical(other.backdrop, backdrop) || const DeepCollectionEquality().equals( other.backdrop, backdrop, )) && - (identical(other.banner, banner) || - const DeepCollectionEquality().equals(other.banner, banner)) && - (identical(other.logo, logo) || - const DeepCollectionEquality().equals(other.logo, logo)) && - (identical(other.thumb, thumb) || - const DeepCollectionEquality().equals(other.thumb, thumb)) && - (identical(other.disc, disc) || - const DeepCollectionEquality().equals(other.disc, disc)) && - (identical(other.box, box) || - const DeepCollectionEquality().equals(other.box, box)) && + (identical(other.banner, banner) || const DeepCollectionEquality().equals(other.banner, banner)) && + (identical(other.logo, logo) || const DeepCollectionEquality().equals(other.logo, logo)) && + (identical(other.thumb, thumb) || const DeepCollectionEquality().equals(other.thumb, thumb)) && + (identical(other.disc, disc) || const DeepCollectionEquality().equals(other.disc, disc)) && + (identical(other.box, box) || const DeepCollectionEquality().equals(other.box, box)) && (identical(other.screenshot, screenshot) || const DeepCollectionEquality().equals( other.screenshot, screenshot, )) && - (identical(other.menu, menu) || - const DeepCollectionEquality().equals(other.menu, menu)) && + (identical(other.menu, menu) || const DeepCollectionEquality().equals(other.menu, menu)) && (identical(other.chapter, chapter) || const DeepCollectionEquality().equals( other.chapter, @@ -55235,8 +52627,7 @@ class BaseItemDto$ImageBlurHashes { other.boxRear, boxRear, )) && - (identical(other.profile, profile) || - const DeepCollectionEquality().equals(other.profile, profile))); + (identical(other.profile, profile) || const DeepCollectionEquality().equals(other.profile, profile))); } @override @@ -55387,30 +52778,23 @@ class BaseItemPerson$ImageBlurHashes { other.primary, primary, )) && - (identical(other.art, art) || - const DeepCollectionEquality().equals(other.art, art)) && + (identical(other.art, art) || const DeepCollectionEquality().equals(other.art, art)) && (identical(other.backdrop, backdrop) || const DeepCollectionEquality().equals( other.backdrop, backdrop, )) && - (identical(other.banner, banner) || - const DeepCollectionEquality().equals(other.banner, banner)) && - (identical(other.logo, logo) || - const DeepCollectionEquality().equals(other.logo, logo)) && - (identical(other.thumb, thumb) || - const DeepCollectionEquality().equals(other.thumb, thumb)) && - (identical(other.disc, disc) || - const DeepCollectionEquality().equals(other.disc, disc)) && - (identical(other.box, box) || - const DeepCollectionEquality().equals(other.box, box)) && + (identical(other.banner, banner) || const DeepCollectionEquality().equals(other.banner, banner)) && + (identical(other.logo, logo) || const DeepCollectionEquality().equals(other.logo, logo)) && + (identical(other.thumb, thumb) || const DeepCollectionEquality().equals(other.thumb, thumb)) && + (identical(other.disc, disc) || const DeepCollectionEquality().equals(other.disc, disc)) && + (identical(other.box, box) || const DeepCollectionEquality().equals(other.box, box)) && (identical(other.screenshot, screenshot) || const DeepCollectionEquality().equals( other.screenshot, screenshot, )) && - (identical(other.menu, menu) || - const DeepCollectionEquality().equals(other.menu, menu)) && + (identical(other.menu, menu) || const DeepCollectionEquality().equals(other.menu, menu)) && (identical(other.chapter, chapter) || const DeepCollectionEquality().equals( other.chapter, @@ -55421,8 +52805,7 @@ class BaseItemPerson$ImageBlurHashes { other.boxRear, boxRear, )) && - (identical(other.profile, profile) || - const DeepCollectionEquality().equals(other.profile, profile))); + (identical(other.profile, profile) || const DeepCollectionEquality().equals(other.profile, profile))); } @override @@ -55446,8 +52829,7 @@ class BaseItemPerson$ImageBlurHashes { runtimeType.hashCode; } -extension $BaseItemPerson$ImageBlurHashesExtension - on BaseItemPerson$ImageBlurHashes { +extension $BaseItemPerson$ImageBlurHashesExtension on BaseItemPerson$ImageBlurHashes { BaseItemPerson$ImageBlurHashes copyWith({ Map? primary, Map? art, @@ -55571,9 +52953,7 @@ List audioSpatialFormatListFromJson( return defaultValue ?? []; } - return audioSpatialFormat - .map((e) => audioSpatialFormatFromJson(e.toString())) - .toList(); + return audioSpatialFormat.map((e) => audioSpatialFormatFromJson(e.toString())).toList(); } List? audioSpatialFormatNullableListFromJson( @@ -55584,9 +52964,7 @@ List? audioSpatialFormatNullableListFromJson( return defaultValue; } - return audioSpatialFormat - .map((e) => audioSpatialFormatFromJson(e.toString())) - .toList(); + return audioSpatialFormat.map((e) => audioSpatialFormatFromJson(e.toString())).toList(); } String? baseItemKindNullableToJson(enums.BaseItemKind? baseItemKind) { @@ -55715,9 +53093,7 @@ List channelItemSortFieldListFromJson( return defaultValue ?? []; } - return channelItemSortField - .map((e) => channelItemSortFieldFromJson(e.toString())) - .toList(); + return channelItemSortField.map((e) => channelItemSortFieldFromJson(e.toString())).toList(); } List? channelItemSortFieldNullableListFromJson( @@ -55728,9 +53104,7 @@ List? channelItemSortFieldNullableListFromJson( return defaultValue; } - return channelItemSortField - .map((e) => channelItemSortFieldFromJson(e.toString())) - .toList(); + return channelItemSortField.map((e) => channelItemSortFieldFromJson(e.toString())).toList(); } String? channelMediaContentTypeNullableToJson( @@ -55793,13 +53167,10 @@ List channelMediaContentTypeListFromJson( return defaultValue ?? []; } - return channelMediaContentType - .map((e) => channelMediaContentTypeFromJson(e.toString())) - .toList(); + return channelMediaContentType.map((e) => channelMediaContentTypeFromJson(e.toString())).toList(); } -List? -channelMediaContentTypeNullableListFromJson( +List? channelMediaContentTypeNullableListFromJson( List? channelMediaContentType, [ List? defaultValue, ]) { @@ -55807,9 +53178,7 @@ channelMediaContentTypeNullableListFromJson( return defaultValue; } - return channelMediaContentType - .map((e) => channelMediaContentTypeFromJson(e.toString())) - .toList(); + return channelMediaContentType.map((e) => channelMediaContentTypeFromJson(e.toString())).toList(); } String? channelMediaTypeNullableToJson( @@ -55870,9 +53239,7 @@ List channelMediaTypeListFromJson( return defaultValue ?? []; } - return channelMediaType - .map((e) => channelMediaTypeFromJson(e.toString())) - .toList(); + return channelMediaType.map((e) => channelMediaTypeFromJson(e.toString())).toList(); } List? channelMediaTypeNullableListFromJson( @@ -55883,9 +53250,7 @@ List? channelMediaTypeNullableListFromJson( return defaultValue; } - return channelMediaType - .map((e) => channelMediaTypeFromJson(e.toString())) - .toList(); + return channelMediaType.map((e) => channelMediaTypeFromJson(e.toString())).toList(); } String? channelTypeNullableToJson(enums.ChannelType? channelType) { @@ -55978,8 +53343,7 @@ enums.CodecType? codecTypeNullableFromJson( if (codecType == null) { return null; } - return enums.CodecType.values.firstWhereOrNull((e) => e.value == codecType) ?? - defaultValue; + return enums.CodecType.values.firstWhereOrNull((e) => e.value == codecType) ?? defaultValue; } String codecTypeExplodedListToJson(List? codecType) { @@ -56072,9 +53436,7 @@ List collectionTypeListFromJson( return defaultValue ?? []; } - return collectionType - .map((e) => collectionTypeFromJson(e.toString())) - .toList(); + return collectionType.map((e) => collectionTypeFromJson(e.toString())).toList(); } List? collectionTypeNullableListFromJson( @@ -56085,9 +53447,7 @@ List? collectionTypeNullableListFromJson( return defaultValue; } - return collectionType - .map((e) => collectionTypeFromJson(e.toString())) - .toList(); + return collectionType.map((e) => collectionTypeFromJson(e.toString())).toList(); } String? collectionTypeOptionsNullableToJson( @@ -56150,9 +53510,7 @@ List collectionTypeOptionsListFromJson( return defaultValue ?? []; } - return collectionTypeOptions - .map((e) => collectionTypeOptionsFromJson(e.toString())) - .toList(); + return collectionTypeOptions.map((e) => collectionTypeOptionsFromJson(e.toString())).toList(); } List? collectionTypeOptionsNullableListFromJson( @@ -56163,9 +53521,7 @@ List? collectionTypeOptionsNullableListFromJson( return defaultValue; } - return collectionTypeOptions - .map((e) => collectionTypeOptionsFromJson(e.toString())) - .toList(); + return collectionTypeOptions.map((e) => collectionTypeOptionsFromJson(e.toString())).toList(); } String? databaseLockingBehaviorTypesNullableToJson( @@ -56191,8 +53547,7 @@ enums.DatabaseLockingBehaviorTypes databaseLockingBehaviorTypesFromJson( enums.DatabaseLockingBehaviorTypes.swaggerGeneratedUnknown; } -enums.DatabaseLockingBehaviorTypes? -databaseLockingBehaviorTypesNullableFromJson( +enums.DatabaseLockingBehaviorTypes? databaseLockingBehaviorTypesNullableFromJson( Object? databaseLockingBehaviorTypes, [ enums.DatabaseLockingBehaviorTypes? defaultValue, ]) { @@ -56221,8 +53576,7 @@ List databaseLockingBehaviorTypesListToJson( return databaseLockingBehaviorTypes.map((e) => e.value!).toList(); } -List -databaseLockingBehaviorTypesListFromJson( +List databaseLockingBehaviorTypesListFromJson( List? databaseLockingBehaviorTypes, [ List? defaultValue, ]) { @@ -56230,13 +53584,10 @@ databaseLockingBehaviorTypesListFromJson( return defaultValue ?? []; } - return databaseLockingBehaviorTypes - .map((e) => databaseLockingBehaviorTypesFromJson(e.toString())) - .toList(); + return databaseLockingBehaviorTypes.map((e) => databaseLockingBehaviorTypesFromJson(e.toString())).toList(); } -List? -databaseLockingBehaviorTypesNullableListFromJson( +List? databaseLockingBehaviorTypesNullableListFromJson( List? databaseLockingBehaviorTypes, [ List? defaultValue, ]) { @@ -56244,9 +53595,7 @@ databaseLockingBehaviorTypesNullableListFromJson( return defaultValue; } - return databaseLockingBehaviorTypes - .map((e) => databaseLockingBehaviorTypesFromJson(e.toString())) - .toList(); + return databaseLockingBehaviorTypes.map((e) => databaseLockingBehaviorTypesFromJson(e.toString())).toList(); } String? dayOfWeekNullableToJson(enums.DayOfWeek? dayOfWeek) { @@ -56273,8 +53622,7 @@ enums.DayOfWeek? dayOfWeekNullableFromJson( if (dayOfWeek == null) { return null; } - return enums.DayOfWeek.values.firstWhereOrNull((e) => e.value == dayOfWeek) ?? - defaultValue; + return enums.DayOfWeek.values.firstWhereOrNull((e) => e.value == dayOfWeek) ?? defaultValue; } String dayOfWeekExplodedListToJson(List? dayOfWeek) { @@ -56435,9 +53783,7 @@ List deinterlaceMethodListFromJson( return defaultValue ?? []; } - return deinterlaceMethod - .map((e) => deinterlaceMethodFromJson(e.toString())) - .toList(); + return deinterlaceMethod.map((e) => deinterlaceMethodFromJson(e.toString())).toList(); } List? deinterlaceMethodNullableListFromJson( @@ -56448,9 +53794,7 @@ List? deinterlaceMethodNullableListFromJson( return defaultValue; } - return deinterlaceMethod - .map((e) => deinterlaceMethodFromJson(e.toString())) - .toList(); + return deinterlaceMethod.map((e) => deinterlaceMethodFromJson(e.toString())).toList(); } String? dlnaProfileTypeNullableToJson(enums.DlnaProfileType? dlnaProfileType) { @@ -56509,9 +53853,7 @@ List dlnaProfileTypeListFromJson( return defaultValue ?? []; } - return dlnaProfileType - .map((e) => dlnaProfileTypeFromJson(e.toString())) - .toList(); + return dlnaProfileType.map((e) => dlnaProfileTypeFromJson(e.toString())).toList(); } List? dlnaProfileTypeNullableListFromJson( @@ -56522,9 +53864,7 @@ List? dlnaProfileTypeNullableListFromJson( return defaultValue; } - return dlnaProfileType - .map((e) => dlnaProfileTypeFromJson(e.toString())) - .toList(); + return dlnaProfileType.map((e) => dlnaProfileTypeFromJson(e.toString())).toList(); } String? downMixStereoAlgorithmsNullableToJson( @@ -56587,13 +53927,10 @@ List downMixStereoAlgorithmsListFromJson( return defaultValue ?? []; } - return downMixStereoAlgorithms - .map((e) => downMixStereoAlgorithmsFromJson(e.toString())) - .toList(); + return downMixStereoAlgorithms.map((e) => downMixStereoAlgorithmsFromJson(e.toString())).toList(); } -List? -downMixStereoAlgorithmsNullableListFromJson( +List? downMixStereoAlgorithmsNullableListFromJson( List? downMixStereoAlgorithms, [ List? defaultValue, ]) { @@ -56601,9 +53938,7 @@ downMixStereoAlgorithmsNullableListFromJson( return defaultValue; } - return downMixStereoAlgorithms - .map((e) => downMixStereoAlgorithmsFromJson(e.toString())) - .toList(); + return downMixStereoAlgorithms.map((e) => downMixStereoAlgorithmsFromJson(e.toString())).toList(); } String? dynamicDayOfWeekNullableToJson( @@ -56664,9 +53999,7 @@ List dynamicDayOfWeekListFromJson( return defaultValue ?? []; } - return dynamicDayOfWeek - .map((e) => dynamicDayOfWeekFromJson(e.toString())) - .toList(); + return dynamicDayOfWeek.map((e) => dynamicDayOfWeekFromJson(e.toString())).toList(); } List? dynamicDayOfWeekNullableListFromJson( @@ -56677,9 +54010,7 @@ List? dynamicDayOfWeekNullableListFromJson( return defaultValue; } - return dynamicDayOfWeek - .map((e) => dynamicDayOfWeekFromJson(e.toString())) - .toList(); + return dynamicDayOfWeek.map((e) => dynamicDayOfWeekFromJson(e.toString())).toList(); } String? embeddedSubtitleOptionsNullableToJson( @@ -56742,13 +54073,10 @@ List embeddedSubtitleOptionsListFromJson( return defaultValue ?? []; } - return embeddedSubtitleOptions - .map((e) => embeddedSubtitleOptionsFromJson(e.toString())) - .toList(); + return embeddedSubtitleOptions.map((e) => embeddedSubtitleOptionsFromJson(e.toString())).toList(); } -List? -embeddedSubtitleOptionsNullableListFromJson( +List? embeddedSubtitleOptionsNullableListFromJson( List? embeddedSubtitleOptions, [ List? defaultValue, ]) { @@ -56756,9 +54084,7 @@ embeddedSubtitleOptionsNullableListFromJson( return defaultValue; } - return embeddedSubtitleOptions - .map((e) => embeddedSubtitleOptionsFromJson(e.toString())) - .toList(); + return embeddedSubtitleOptions.map((e) => embeddedSubtitleOptionsFromJson(e.toString())).toList(); } String? encoderPresetNullableToJson(enums.EncoderPreset? encoderPreset) { @@ -56885,9 +54211,7 @@ List encodingContextListFromJson( return defaultValue ?? []; } - return encodingContext - .map((e) => encodingContextFromJson(e.toString())) - .toList(); + return encodingContext.map((e) => encodingContextFromJson(e.toString())).toList(); } List? encodingContextNullableListFromJson( @@ -56898,9 +54222,7 @@ List? encodingContextNullableListFromJson( return defaultValue; } - return encodingContext - .map((e) => encodingContextFromJson(e.toString())) - .toList(); + return encodingContext.map((e) => encodingContextFromJson(e.toString())).toList(); } String? externalIdMediaTypeNullableToJson( @@ -56963,9 +54285,7 @@ List externalIdMediaTypeListFromJson( return defaultValue ?? []; } - return externalIdMediaType - .map((e) => externalIdMediaTypeFromJson(e.toString())) - .toList(); + return externalIdMediaType.map((e) => externalIdMediaTypeFromJson(e.toString())).toList(); } List? externalIdMediaTypeNullableListFromJson( @@ -56976,9 +54296,7 @@ List? externalIdMediaTypeNullableListFromJson( return defaultValue; } - return externalIdMediaType - .map((e) => externalIdMediaTypeFromJson(e.toString())) - .toList(); + return externalIdMediaType.map((e) => externalIdMediaTypeFromJson(e.toString())).toList(); } String? extraTypeNullableToJson(enums.ExtraType? extraType) { @@ -57005,8 +54323,7 @@ enums.ExtraType? extraTypeNullableFromJson( if (extraType == null) { return null; } - return enums.ExtraType.values.firstWhereOrNull((e) => e.value == extraType) ?? - defaultValue; + return enums.ExtraType.values.firstWhereOrNull((e) => e.value == extraType) ?? defaultValue; } String extraTypeExplodedListToJson(List? extraType) { @@ -57103,9 +54420,7 @@ List fileSystemEntryTypeListFromJson( return defaultValue ?? []; } - return fileSystemEntryType - .map((e) => fileSystemEntryTypeFromJson(e.toString())) - .toList(); + return fileSystemEntryType.map((e) => fileSystemEntryTypeFromJson(e.toString())).toList(); } List? fileSystemEntryTypeNullableListFromJson( @@ -57116,9 +54431,7 @@ List? fileSystemEntryTypeNullableListFromJson( return defaultValue; } - return fileSystemEntryType - .map((e) => fileSystemEntryTypeFromJson(e.toString())) - .toList(); + return fileSystemEntryType.map((e) => fileSystemEntryTypeFromJson(e.toString())).toList(); } String? forgotPasswordActionNullableToJson( @@ -57181,9 +54494,7 @@ List forgotPasswordActionListFromJson( return defaultValue ?? []; } - return forgotPasswordAction - .map((e) => forgotPasswordActionFromJson(e.toString())) - .toList(); + return forgotPasswordAction.map((e) => forgotPasswordActionFromJson(e.toString())).toList(); } List? forgotPasswordActionNullableListFromJson( @@ -57194,9 +54505,7 @@ List? forgotPasswordActionNullableListFromJson( return defaultValue; } - return forgotPasswordAction - .map((e) => forgotPasswordActionFromJson(e.toString())) - .toList(); + return forgotPasswordAction.map((e) => forgotPasswordActionFromJson(e.toString())).toList(); } String? generalCommandTypeNullableToJson( @@ -57257,9 +54566,7 @@ List generalCommandTypeListFromJson( return defaultValue ?? []; } - return generalCommandType - .map((e) => generalCommandTypeFromJson(e.toString())) - .toList(); + return generalCommandType.map((e) => generalCommandTypeFromJson(e.toString())).toList(); } List? generalCommandTypeNullableListFromJson( @@ -57270,9 +54577,7 @@ List? generalCommandTypeNullableListFromJson( return defaultValue; } - return generalCommandType - .map((e) => generalCommandTypeFromJson(e.toString())) - .toList(); + return generalCommandType.map((e) => generalCommandTypeFromJson(e.toString())).toList(); } String? groupQueueModeNullableToJson(enums.GroupQueueMode? groupQueueMode) { @@ -57331,9 +54636,7 @@ List groupQueueModeListFromJson( return defaultValue ?? []; } - return groupQueueMode - .map((e) => groupQueueModeFromJson(e.toString())) - .toList(); + return groupQueueMode.map((e) => groupQueueModeFromJson(e.toString())).toList(); } List? groupQueueModeNullableListFromJson( @@ -57344,9 +54647,7 @@ List? groupQueueModeNullableListFromJson( return defaultValue; } - return groupQueueMode - .map((e) => groupQueueModeFromJson(e.toString())) - .toList(); + return groupQueueMode.map((e) => groupQueueModeFromJson(e.toString())).toList(); } String? groupRepeatModeNullableToJson(enums.GroupRepeatMode? groupRepeatMode) { @@ -57405,9 +54706,7 @@ List groupRepeatModeListFromJson( return defaultValue ?? []; } - return groupRepeatMode - .map((e) => groupRepeatModeFromJson(e.toString())) - .toList(); + return groupRepeatMode.map((e) => groupRepeatModeFromJson(e.toString())).toList(); } List? groupRepeatModeNullableListFromJson( @@ -57418,9 +54717,7 @@ List? groupRepeatModeNullableListFromJson( return defaultValue; } - return groupRepeatMode - .map((e) => groupRepeatModeFromJson(e.toString())) - .toList(); + return groupRepeatMode.map((e) => groupRepeatModeFromJson(e.toString())).toList(); } String? groupShuffleModeNullableToJson( @@ -57481,9 +54778,7 @@ List groupShuffleModeListFromJson( return defaultValue ?? []; } - return groupShuffleMode - .map((e) => groupShuffleModeFromJson(e.toString())) - .toList(); + return groupShuffleMode.map((e) => groupShuffleModeFromJson(e.toString())).toList(); } List? groupShuffleModeNullableListFromJson( @@ -57494,9 +54789,7 @@ List? groupShuffleModeNullableListFromJson( return defaultValue; } - return groupShuffleMode - .map((e) => groupShuffleModeFromJson(e.toString())) - .toList(); + return groupShuffleMode.map((e) => groupShuffleModeFromJson(e.toString())).toList(); } String? groupStateTypeNullableToJson(enums.GroupStateType? groupStateType) { @@ -57555,9 +54848,7 @@ List groupStateTypeListFromJson( return defaultValue ?? []; } - return groupStateType - .map((e) => groupStateTypeFromJson(e.toString())) - .toList(); + return groupStateType.map((e) => groupStateTypeFromJson(e.toString())).toList(); } List? groupStateTypeNullableListFromJson( @@ -57568,9 +54859,7 @@ List? groupStateTypeNullableListFromJson( return defaultValue; } - return groupStateType - .map((e) => groupStateTypeFromJson(e.toString())) - .toList(); + return groupStateType.map((e) => groupStateTypeFromJson(e.toString())).toList(); } String? groupUpdateTypeNullableToJson(enums.GroupUpdateType? groupUpdateType) { @@ -57629,9 +54918,7 @@ List groupUpdateTypeListFromJson( return defaultValue ?? []; } - return groupUpdateType - .map((e) => groupUpdateTypeFromJson(e.toString())) - .toList(); + return groupUpdateType.map((e) => groupUpdateTypeFromJson(e.toString())).toList(); } List? groupUpdateTypeNullableListFromJson( @@ -57642,9 +54929,7 @@ List? groupUpdateTypeNullableListFromJson( return defaultValue; } - return groupUpdateType - .map((e) => groupUpdateTypeFromJson(e.toString())) - .toList(); + return groupUpdateType.map((e) => groupUpdateTypeFromJson(e.toString())).toList(); } String? hardwareAccelerationTypeNullableToJson( @@ -57707,13 +54992,10 @@ List hardwareAccelerationTypeListFromJson( return defaultValue ?? []; } - return hardwareAccelerationType - .map((e) => hardwareAccelerationTypeFromJson(e.toString())) - .toList(); + return hardwareAccelerationType.map((e) => hardwareAccelerationTypeFromJson(e.toString())).toList(); } -List? -hardwareAccelerationTypeNullableListFromJson( +List? hardwareAccelerationTypeNullableListFromJson( List? hardwareAccelerationType, [ List? defaultValue, ]) { @@ -57721,9 +55003,7 @@ hardwareAccelerationTypeNullableListFromJson( return defaultValue; } - return hardwareAccelerationType - .map((e) => hardwareAccelerationTypeFromJson(e.toString())) - .toList(); + return hardwareAccelerationType.map((e) => hardwareAccelerationTypeFromJson(e.toString())).toList(); } String? imageFormatNullableToJson(enums.ImageFormat? imageFormat) { @@ -57850,9 +55130,7 @@ List imageOrientationListFromJson( return defaultValue ?? []; } - return imageOrientation - .map((e) => imageOrientationFromJson(e.toString())) - .toList(); + return imageOrientation.map((e) => imageOrientationFromJson(e.toString())).toList(); } List? imageOrientationNullableListFromJson( @@ -57863,9 +55141,7 @@ List? imageOrientationNullableListFromJson( return defaultValue; } - return imageOrientation - .map((e) => imageOrientationFromJson(e.toString())) - .toList(); + return imageOrientation.map((e) => imageOrientationFromJson(e.toString())).toList(); } String? imageResolutionNullableToJson(enums.ImageResolution? imageResolution) { @@ -57924,9 +55200,7 @@ List imageResolutionListFromJson( return defaultValue ?? []; } - return imageResolution - .map((e) => imageResolutionFromJson(e.toString())) - .toList(); + return imageResolution.map((e) => imageResolutionFromJson(e.toString())).toList(); } List? imageResolutionNullableListFromJson( @@ -57937,9 +55211,7 @@ List? imageResolutionNullableListFromJson( return defaultValue; } - return imageResolution - .map((e) => imageResolutionFromJson(e.toString())) - .toList(); + return imageResolution.map((e) => imageResolutionFromJson(e.toString())).toList(); } String? imageSavingConventionNullableToJson( @@ -58002,9 +55274,7 @@ List imageSavingConventionListFromJson( return defaultValue ?? []; } - return imageSavingConvention - .map((e) => imageSavingConventionFromJson(e.toString())) - .toList(); + return imageSavingConvention.map((e) => imageSavingConventionFromJson(e.toString())).toList(); } List? imageSavingConventionNullableListFromJson( @@ -58015,9 +55285,7 @@ List? imageSavingConventionNullableListFromJson( return defaultValue; } - return imageSavingConvention - .map((e) => imageSavingConventionFromJson(e.toString())) - .toList(); + return imageSavingConvention.map((e) => imageSavingConventionFromJson(e.toString())).toList(); } String? imageTypeNullableToJson(enums.ImageType? imageType) { @@ -58044,8 +55312,7 @@ enums.ImageType? imageTypeNullableFromJson( if (imageType == null) { return null; } - return enums.ImageType.values.firstWhereOrNull((e) => e.value == imageType) ?? - defaultValue; + return enums.ImageType.values.firstWhereOrNull((e) => e.value == imageType) ?? defaultValue; } String imageTypeExplodedListToJson(List? imageType) { @@ -58103,8 +55370,7 @@ enums.IsoType? isoTypeNullableFromJson( if (isoType == null) { return null; } - return enums.IsoType.values.firstWhereOrNull((e) => e.value == isoType) ?? - defaultValue; + return enums.IsoType.values.firstWhereOrNull((e) => e.value == isoType) ?? defaultValue; } String isoTypeExplodedListToJson(List? isoType) { @@ -58363,8 +55629,7 @@ enums.KeepUntil? keepUntilNullableFromJson( if (keepUntil == null) { return null; } - return enums.KeepUntil.values.firstWhereOrNull((e) => e.value == keepUntil) ?? - defaultValue; + return enums.KeepUntil.values.firstWhereOrNull((e) => e.value == keepUntil) ?? defaultValue; } String keepUntilExplodedListToJson(List? keepUntil) { @@ -58461,9 +55726,7 @@ List liveTvServiceStatusListFromJson( return defaultValue ?? []; } - return liveTvServiceStatus - .map((e) => liveTvServiceStatusFromJson(e.toString())) - .toList(); + return liveTvServiceStatus.map((e) => liveTvServiceStatusFromJson(e.toString())).toList(); } List? liveTvServiceStatusNullableListFromJson( @@ -58474,9 +55737,7 @@ List? liveTvServiceStatusNullableListFromJson( return defaultValue; } - return liveTvServiceStatus - .map((e) => liveTvServiceStatusFromJson(e.toString())) - .toList(); + return liveTvServiceStatus.map((e) => liveTvServiceStatusFromJson(e.toString())).toList(); } String? locationTypeNullableToJson(enums.LocationType? locationType) { @@ -58569,8 +55830,7 @@ enums.LogLevel? logLevelNullableFromJson( if (logLevel == null) { return null; } - return enums.LogLevel.values.firstWhereOrNull((e) => e.value == logLevel) ?? - defaultValue; + return enums.LogLevel.values.firstWhereOrNull((e) => e.value == logLevel) ?? defaultValue; } String logLevelExplodedListToJson(List? logLevel) { @@ -58733,9 +55993,7 @@ List mediaSegmentTypeListFromJson( return defaultValue ?? []; } - return mediaSegmentType - .map((e) => mediaSegmentTypeFromJson(e.toString())) - .toList(); + return mediaSegmentType.map((e) => mediaSegmentTypeFromJson(e.toString())).toList(); } List? mediaSegmentTypeNullableListFromJson( @@ -58746,9 +56004,7 @@ List? mediaSegmentTypeNullableListFromJson( return defaultValue; } - return mediaSegmentType - .map((e) => mediaSegmentTypeFromJson(e.toString())) - .toList(); + return mediaSegmentType.map((e) => mediaSegmentTypeFromJson(e.toString())).toList(); } String? mediaSourceTypeNullableToJson(enums.MediaSourceType? mediaSourceType) { @@ -58807,9 +56063,7 @@ List mediaSourceTypeListFromJson( return defaultValue ?? []; } - return mediaSourceType - .map((e) => mediaSourceTypeFromJson(e.toString())) - .toList(); + return mediaSourceType.map((e) => mediaSourceTypeFromJson(e.toString())).toList(); } List? mediaSourceTypeNullableListFromJson( @@ -58820,9 +56074,7 @@ List? mediaSourceTypeNullableListFromJson( return defaultValue; } - return mediaSourceType - .map((e) => mediaSourceTypeFromJson(e.toString())) - .toList(); + return mediaSourceType.map((e) => mediaSourceTypeFromJson(e.toString())).toList(); } String? mediaStreamProtocolNullableToJson( @@ -58885,9 +56137,7 @@ List mediaStreamProtocolListFromJson( return defaultValue ?? []; } - return mediaStreamProtocol - .map((e) => mediaStreamProtocolFromJson(e.toString())) - .toList(); + return mediaStreamProtocol.map((e) => mediaStreamProtocolFromJson(e.toString())).toList(); } List? mediaStreamProtocolNullableListFromJson( @@ -58898,9 +56148,7 @@ List? mediaStreamProtocolNullableListFromJson( return defaultValue; } - return mediaStreamProtocol - .map((e) => mediaStreamProtocolFromJson(e.toString())) - .toList(); + return mediaStreamProtocol.map((e) => mediaStreamProtocolFromJson(e.toString())).toList(); } String? mediaStreamTypeNullableToJson(enums.MediaStreamType? mediaStreamType) { @@ -58959,9 +56207,7 @@ List mediaStreamTypeListFromJson( return defaultValue ?? []; } - return mediaStreamType - .map((e) => mediaStreamTypeFromJson(e.toString())) - .toList(); + return mediaStreamType.map((e) => mediaStreamTypeFromJson(e.toString())).toList(); } List? mediaStreamTypeNullableListFromJson( @@ -58972,9 +56218,7 @@ List? mediaStreamTypeNullableListFromJson( return defaultValue; } - return mediaStreamType - .map((e) => mediaStreamTypeFromJson(e.toString())) - .toList(); + return mediaStreamType.map((e) => mediaStreamTypeFromJson(e.toString())).toList(); } String? mediaTypeNullableToJson(enums.MediaType? mediaType) { @@ -59001,8 +56245,7 @@ enums.MediaType? mediaTypeNullableFromJson( if (mediaType == null) { return null; } - return enums.MediaType.values.firstWhereOrNull((e) => e.value == mediaType) ?? - defaultValue; + return enums.MediaType.values.firstWhereOrNull((e) => e.value == mediaType) ?? defaultValue; } String mediaTypeExplodedListToJson(List? mediaType) { @@ -59167,9 +56410,7 @@ List metadataRefreshModeListFromJson( return defaultValue ?? []; } - return metadataRefreshMode - .map((e) => metadataRefreshModeFromJson(e.toString())) - .toList(); + return metadataRefreshMode.map((e) => metadataRefreshModeFromJson(e.toString())).toList(); } List? metadataRefreshModeNullableListFromJson( @@ -59180,9 +56421,7 @@ List? metadataRefreshModeNullableListFromJson( return defaultValue; } - return metadataRefreshMode - .map((e) => metadataRefreshModeFromJson(e.toString())) - .toList(); + return metadataRefreshMode.map((e) => metadataRefreshModeFromJson(e.toString())).toList(); } String? personKindNullableToJson(enums.PersonKind? personKind) { @@ -59375,9 +56614,7 @@ List playbackErrorCodeListFromJson( return defaultValue ?? []; } - return playbackErrorCode - .map((e) => playbackErrorCodeFromJson(e.toString())) - .toList(); + return playbackErrorCode.map((e) => playbackErrorCodeFromJson(e.toString())).toList(); } List? playbackErrorCodeNullableListFromJson( @@ -59388,9 +56625,7 @@ List? playbackErrorCodeNullableListFromJson( return defaultValue; } - return playbackErrorCode - .map((e) => playbackErrorCodeFromJson(e.toString())) - .toList(); + return playbackErrorCode.map((e) => playbackErrorCodeFromJson(e.toString())).toList(); } String? playbackOrderNullableToJson(enums.PlaybackOrder? playbackOrder) { @@ -59521,9 +56756,7 @@ List playbackRequestTypeListFromJson( return defaultValue ?? []; } - return playbackRequestType - .map((e) => playbackRequestTypeFromJson(e.toString())) - .toList(); + return playbackRequestType.map((e) => playbackRequestTypeFromJson(e.toString())).toList(); } List? playbackRequestTypeNullableListFromJson( @@ -59534,9 +56767,7 @@ List? playbackRequestTypeNullableListFromJson( return defaultValue; } - return playbackRequestType - .map((e) => playbackRequestTypeFromJson(e.toString())) - .toList(); + return playbackRequestType.map((e) => playbackRequestTypeFromJson(e.toString())).toList(); } String? playCommandNullableToJson(enums.PlayCommand? playCommand) { @@ -59731,9 +56962,7 @@ List playQueueUpdateReasonListFromJson( return defaultValue ?? []; } - return playQueueUpdateReason - .map((e) => playQueueUpdateReasonFromJson(e.toString())) - .toList(); + return playQueueUpdateReason.map((e) => playQueueUpdateReasonFromJson(e.toString())).toList(); } List? playQueueUpdateReasonNullableListFromJson( @@ -59744,9 +56973,7 @@ List? playQueueUpdateReasonNullableListFromJson( return defaultValue; } - return playQueueUpdateReason - .map((e) => playQueueUpdateReasonFromJson(e.toString())) - .toList(); + return playQueueUpdateReason.map((e) => playQueueUpdateReasonFromJson(e.toString())).toList(); } String? playstateCommandNullableToJson( @@ -59807,9 +57034,7 @@ List playstateCommandListFromJson( return defaultValue ?? []; } - return playstateCommand - .map((e) => playstateCommandFromJson(e.toString())) - .toList(); + return playstateCommand.map((e) => playstateCommandFromJson(e.toString())).toList(); } List? playstateCommandNullableListFromJson( @@ -59820,9 +57045,7 @@ List? playstateCommandNullableListFromJson( return defaultValue; } - return playstateCommand - .map((e) => playstateCommandFromJson(e.toString())) - .toList(); + return playstateCommand.map((e) => playstateCommandFromJson(e.toString())).toList(); } String? pluginStatusNullableToJson(enums.PluginStatus? pluginStatus) { @@ -59951,9 +57174,7 @@ List processPriorityClassListFromJson( return defaultValue ?? []; } - return processPriorityClass - .map((e) => processPriorityClassFromJson(e.toString())) - .toList(); + return processPriorityClass.map((e) => processPriorityClassFromJson(e.toString())).toList(); } List? processPriorityClassNullableListFromJson( @@ -59964,9 +57185,7 @@ List? processPriorityClassNullableListFromJson( return defaultValue; } - return processPriorityClass - .map((e) => processPriorityClassFromJson(e.toString())) - .toList(); + return processPriorityClass.map((e) => processPriorityClassFromJson(e.toString())).toList(); } String? profileConditionTypeNullableToJson( @@ -60029,9 +57248,7 @@ List profileConditionTypeListFromJson( return defaultValue ?? []; } - return profileConditionType - .map((e) => profileConditionTypeFromJson(e.toString())) - .toList(); + return profileConditionType.map((e) => profileConditionTypeFromJson(e.toString())).toList(); } List? profileConditionTypeNullableListFromJson( @@ -60042,9 +57259,7 @@ List? profileConditionTypeNullableListFromJson( return defaultValue; } - return profileConditionType - .map((e) => profileConditionTypeFromJson(e.toString())) - .toList(); + return profileConditionType.map((e) => profileConditionTypeFromJson(e.toString())).toList(); } String? profileConditionValueNullableToJson( @@ -60107,9 +57322,7 @@ List profileConditionValueListFromJson( return defaultValue ?? []; } - return profileConditionValue - .map((e) => profileConditionValueFromJson(e.toString())) - .toList(); + return profileConditionValue.map((e) => profileConditionValueFromJson(e.toString())).toList(); } List? profileConditionValueNullableListFromJson( @@ -60120,9 +57333,7 @@ List? profileConditionValueNullableListFromJson( return defaultValue; } - return profileConditionValue - .map((e) => profileConditionValueFromJson(e.toString())) - .toList(); + return profileConditionValue.map((e) => profileConditionValueFromJson(e.toString())).toList(); } String? programAudioNullableToJson(enums.ProgramAudio? programAudio) { @@ -60315,9 +57526,7 @@ List recommendationTypeListFromJson( return defaultValue ?? []; } - return recommendationType - .map((e) => recommendationTypeFromJson(e.toString())) - .toList(); + return recommendationType.map((e) => recommendationTypeFromJson(e.toString())).toList(); } List? recommendationTypeNullableListFromJson( @@ -60328,9 +57537,7 @@ List? recommendationTypeNullableListFromJson( return defaultValue; } - return recommendationType - .map((e) => recommendationTypeFromJson(e.toString())) - .toList(); + return recommendationType.map((e) => recommendationTypeFromJson(e.toString())).toList(); } String? recordingStatusNullableToJson(enums.RecordingStatus? recordingStatus) { @@ -60389,9 +57596,7 @@ List recordingStatusListFromJson( return defaultValue ?? []; } - return recordingStatus - .map((e) => recordingStatusFromJson(e.toString())) - .toList(); + return recordingStatus.map((e) => recordingStatusFromJson(e.toString())).toList(); } List? recordingStatusNullableListFromJson( @@ -60402,9 +57607,7 @@ List? recordingStatusNullableListFromJson( return defaultValue; } - return recordingStatus - .map((e) => recordingStatusFromJson(e.toString())) - .toList(); + return recordingStatus.map((e) => recordingStatusFromJson(e.toString())).toList(); } String? repeatModeNullableToJson(enums.RepeatMode? repeatMode) { @@ -60529,9 +57732,7 @@ List scrollDirectionListFromJson( return defaultValue ?? []; } - return scrollDirection - .map((e) => scrollDirectionFromJson(e.toString())) - .toList(); + return scrollDirection.map((e) => scrollDirectionFromJson(e.toString())).toList(); } List? scrollDirectionNullableListFromJson( @@ -60542,9 +57743,7 @@ List? scrollDirectionNullableListFromJson( return defaultValue; } - return scrollDirection - .map((e) => scrollDirectionFromJson(e.toString())) - .toList(); + return scrollDirection.map((e) => scrollDirectionFromJson(e.toString())).toList(); } String? sendCommandTypeNullableToJson(enums.SendCommandType? sendCommandType) { @@ -60603,9 +57802,7 @@ List sendCommandTypeListFromJson( return defaultValue ?? []; } - return sendCommandType - .map((e) => sendCommandTypeFromJson(e.toString())) - .toList(); + return sendCommandType.map((e) => sendCommandTypeFromJson(e.toString())).toList(); } List? sendCommandTypeNullableListFromJson( @@ -60616,9 +57813,7 @@ List? sendCommandTypeNullableListFromJson( return defaultValue; } - return sendCommandType - .map((e) => sendCommandTypeFromJson(e.toString())) - .toList(); + return sendCommandType.map((e) => sendCommandTypeFromJson(e.toString())).toList(); } String? seriesStatusNullableToJson(enums.SeriesStatus? seriesStatus) { @@ -60745,9 +57940,7 @@ List sessionMessageTypeListFromJson( return defaultValue ?? []; } - return sessionMessageType - .map((e) => sessionMessageTypeFromJson(e.toString())) - .toList(); + return sessionMessageType.map((e) => sessionMessageTypeFromJson(e.toString())).toList(); } List? sessionMessageTypeNullableListFromJson( @@ -60758,9 +57951,7 @@ List? sessionMessageTypeNullableListFromJson( return defaultValue; } - return sessionMessageType - .map((e) => sessionMessageTypeFromJson(e.toString())) - .toList(); + return sessionMessageType.map((e) => sessionMessageTypeFromJson(e.toString())).toList(); } String? sortOrderNullableToJson(enums.SortOrder? sortOrder) { @@ -60787,8 +57978,7 @@ enums.SortOrder? sortOrderNullableFromJson( if (sortOrder == null) { return null; } - return enums.SortOrder.values.firstWhereOrNull((e) => e.value == sortOrder) ?? - defaultValue; + return enums.SortOrder.values.firstWhereOrNull((e) => e.value == sortOrder) ?? defaultValue; } String sortOrderExplodedListToJson(List? sortOrder) { @@ -60885,9 +58075,7 @@ List subtitleDeliveryMethodListFromJson( return defaultValue ?? []; } - return subtitleDeliveryMethod - .map((e) => subtitleDeliveryMethodFromJson(e.toString())) - .toList(); + return subtitleDeliveryMethod.map((e) => subtitleDeliveryMethodFromJson(e.toString())).toList(); } List? subtitleDeliveryMethodNullableListFromJson( @@ -60898,9 +58086,7 @@ List? subtitleDeliveryMethodNullableListFromJson( return defaultValue; } - return subtitleDeliveryMethod - .map((e) => subtitleDeliveryMethodFromJson(e.toString())) - .toList(); + return subtitleDeliveryMethod.map((e) => subtitleDeliveryMethodFromJson(e.toString())).toList(); } String? subtitlePlaybackModeNullableToJson( @@ -60963,9 +58149,7 @@ List subtitlePlaybackModeListFromJson( return defaultValue ?? []; } - return subtitlePlaybackMode - .map((e) => subtitlePlaybackModeFromJson(e.toString())) - .toList(); + return subtitlePlaybackMode.map((e) => subtitlePlaybackModeFromJson(e.toString())).toList(); } List? subtitlePlaybackModeNullableListFromJson( @@ -60976,9 +58160,7 @@ List? subtitlePlaybackModeNullableListFromJson( return defaultValue; } - return subtitlePlaybackMode - .map((e) => subtitlePlaybackModeFromJson(e.toString())) - .toList(); + return subtitlePlaybackMode.map((e) => subtitlePlaybackModeFromJson(e.toString())).toList(); } String? syncPlayUserAccessTypeNullableToJson( @@ -61041,9 +58223,7 @@ List syncPlayUserAccessTypeListFromJson( return defaultValue ?? []; } - return syncPlayUserAccessType - .map((e) => syncPlayUserAccessTypeFromJson(e.toString())) - .toList(); + return syncPlayUserAccessType.map((e) => syncPlayUserAccessTypeFromJson(e.toString())).toList(); } List? syncPlayUserAccessTypeNullableListFromJson( @@ -61054,9 +58234,7 @@ List? syncPlayUserAccessTypeNullableListFromJson( return defaultValue; } - return syncPlayUserAccessType - .map((e) => syncPlayUserAccessTypeFromJson(e.toString())) - .toList(); + return syncPlayUserAccessType.map((e) => syncPlayUserAccessTypeFromJson(e.toString())).toList(); } String? taskCompletionStatusNullableToJson( @@ -61119,9 +58297,7 @@ List taskCompletionStatusListFromJson( return defaultValue ?? []; } - return taskCompletionStatus - .map((e) => taskCompletionStatusFromJson(e.toString())) - .toList(); + return taskCompletionStatus.map((e) => taskCompletionStatusFromJson(e.toString())).toList(); } List? taskCompletionStatusNullableListFromJson( @@ -61132,9 +58308,7 @@ List? taskCompletionStatusNullableListFromJson( return defaultValue; } - return taskCompletionStatus - .map((e) => taskCompletionStatusFromJson(e.toString())) - .toList(); + return taskCompletionStatus.map((e) => taskCompletionStatusFromJson(e.toString())).toList(); } String? taskStateNullableToJson(enums.TaskState? taskState) { @@ -61161,8 +58335,7 @@ enums.TaskState? taskStateNullableFromJson( if (taskState == null) { return null; } - return enums.TaskState.values.firstWhereOrNull((e) => e.value == taskState) ?? - defaultValue; + return enums.TaskState.values.firstWhereOrNull((e) => e.value == taskState) ?? defaultValue; } String taskStateExplodedListToJson(List? taskState) { @@ -61259,9 +58432,7 @@ List taskTriggerInfoTypeListFromJson( return defaultValue ?? []; } - return taskTriggerInfoType - .map((e) => taskTriggerInfoTypeFromJson(e.toString())) - .toList(); + return taskTriggerInfoType.map((e) => taskTriggerInfoTypeFromJson(e.toString())).toList(); } List? taskTriggerInfoTypeNullableListFromJson( @@ -61272,9 +58443,7 @@ List? taskTriggerInfoTypeNullableListFromJson( return defaultValue; } - return taskTriggerInfoType - .map((e) => taskTriggerInfoTypeFromJson(e.toString())) - .toList(); + return taskTriggerInfoType.map((e) => taskTriggerInfoTypeFromJson(e.toString())).toList(); } String? tonemappingAlgorithmNullableToJson( @@ -61337,9 +58506,7 @@ List tonemappingAlgorithmListFromJson( return defaultValue ?? []; } - return tonemappingAlgorithm - .map((e) => tonemappingAlgorithmFromJson(e.toString())) - .toList(); + return tonemappingAlgorithm.map((e) => tonemappingAlgorithmFromJson(e.toString())).toList(); } List? tonemappingAlgorithmNullableListFromJson( @@ -61350,9 +58517,7 @@ List? tonemappingAlgorithmNullableListFromJson( return defaultValue; } - return tonemappingAlgorithm - .map((e) => tonemappingAlgorithmFromJson(e.toString())) - .toList(); + return tonemappingAlgorithm.map((e) => tonemappingAlgorithmFromJson(e.toString())).toList(); } String? tonemappingModeNullableToJson(enums.TonemappingMode? tonemappingMode) { @@ -61411,9 +58576,7 @@ List tonemappingModeListFromJson( return defaultValue ?? []; } - return tonemappingMode - .map((e) => tonemappingModeFromJson(e.toString())) - .toList(); + return tonemappingMode.map((e) => tonemappingModeFromJson(e.toString())).toList(); } List? tonemappingModeNullableListFromJson( @@ -61424,9 +58587,7 @@ List? tonemappingModeNullableListFromJson( return defaultValue; } - return tonemappingMode - .map((e) => tonemappingModeFromJson(e.toString())) - .toList(); + return tonemappingMode.map((e) => tonemappingModeFromJson(e.toString())).toList(); } String? tonemappingRangeNullableToJson( @@ -61487,9 +58648,7 @@ List tonemappingRangeListFromJson( return defaultValue ?? []; } - return tonemappingRange - .map((e) => tonemappingRangeFromJson(e.toString())) - .toList(); + return tonemappingRange.map((e) => tonemappingRangeFromJson(e.toString())).toList(); } List? tonemappingRangeNullableListFromJson( @@ -61500,9 +58659,7 @@ List? tonemappingRangeNullableListFromJson( return defaultValue; } - return tonemappingRange - .map((e) => tonemappingRangeFromJson(e.toString())) - .toList(); + return tonemappingRange.map((e) => tonemappingRangeFromJson(e.toString())).toList(); } String? transcodeReasonNullableToJson(enums.TranscodeReason? transcodeReason) { @@ -61561,9 +58718,7 @@ List transcodeReasonListFromJson( return defaultValue ?? []; } - return transcodeReason - .map((e) => transcodeReasonFromJson(e.toString())) - .toList(); + return transcodeReason.map((e) => transcodeReasonFromJson(e.toString())).toList(); } List? transcodeReasonNullableListFromJson( @@ -61574,9 +58729,7 @@ List? transcodeReasonNullableListFromJson( return defaultValue; } - return transcodeReason - .map((e) => transcodeReasonFromJson(e.toString())) - .toList(); + return transcodeReason.map((e) => transcodeReasonFromJson(e.toString())).toList(); } String? transcodeSeekInfoNullableToJson( @@ -61637,9 +58790,7 @@ List transcodeSeekInfoListFromJson( return defaultValue ?? []; } - return transcodeSeekInfo - .map((e) => transcodeSeekInfoFromJson(e.toString())) - .toList(); + return transcodeSeekInfo.map((e) => transcodeSeekInfoFromJson(e.toString())).toList(); } List? transcodeSeekInfoNullableListFromJson( @@ -61650,9 +58801,7 @@ List? transcodeSeekInfoNullableListFromJson( return defaultValue; } - return transcodeSeekInfo - .map((e) => transcodeSeekInfoFromJson(e.toString())) - .toList(); + return transcodeSeekInfo.map((e) => transcodeSeekInfoFromJson(e.toString())).toList(); } String? transcodingInfoTranscodeReasonsNullableToJson( @@ -61678,8 +58827,7 @@ enums.TranscodingInfoTranscodeReasons transcodingInfoTranscodeReasonsFromJson( enums.TranscodingInfoTranscodeReasons.swaggerGeneratedUnknown; } -enums.TranscodingInfoTranscodeReasons? -transcodingInfoTranscodeReasonsNullableFromJson( +enums.TranscodingInfoTranscodeReasons? transcodingInfoTranscodeReasonsNullableFromJson( Object? transcodingInfoTranscodeReasons, [ enums.TranscodingInfoTranscodeReasons? defaultValue, ]) { @@ -61708,8 +58856,7 @@ List transcodingInfoTranscodeReasonsListToJson( return transcodingInfoTranscodeReasons.map((e) => e.value!).toList(); } -List -transcodingInfoTranscodeReasonsListFromJson( +List transcodingInfoTranscodeReasonsListFromJson( List? transcodingInfoTranscodeReasons, [ List? defaultValue, ]) { @@ -61717,13 +58864,10 @@ transcodingInfoTranscodeReasonsListFromJson( return defaultValue ?? []; } - return transcodingInfoTranscodeReasons - .map((e) => transcodingInfoTranscodeReasonsFromJson(e.toString())) - .toList(); + return transcodingInfoTranscodeReasons.map((e) => transcodingInfoTranscodeReasonsFromJson(e.toString())).toList(); } -List? -transcodingInfoTranscodeReasonsNullableListFromJson( +List? transcodingInfoTranscodeReasonsNullableListFromJson( List? transcodingInfoTranscodeReasons, [ List? defaultValue, ]) { @@ -61731,9 +58875,7 @@ transcodingInfoTranscodeReasonsNullableListFromJson( return defaultValue; } - return transcodingInfoTranscodeReasons - .map((e) => transcodingInfoTranscodeReasonsFromJson(e.toString())) - .toList(); + return transcodingInfoTranscodeReasons.map((e) => transcodingInfoTranscodeReasonsFromJson(e.toString())).toList(); } String? transportStreamTimestampNullableToJson( @@ -61796,13 +58938,10 @@ List transportStreamTimestampListFromJson( return defaultValue ?? []; } - return transportStreamTimestamp - .map((e) => transportStreamTimestampFromJson(e.toString())) - .toList(); + return transportStreamTimestamp.map((e) => transportStreamTimestampFromJson(e.toString())).toList(); } -List? -transportStreamTimestampNullableListFromJson( +List? transportStreamTimestampNullableListFromJson( List? transportStreamTimestamp, [ List? defaultValue, ]) { @@ -61810,9 +58949,7 @@ transportStreamTimestampNullableListFromJson( return defaultValue; } - return transportStreamTimestamp - .map((e) => transportStreamTimestampFromJson(e.toString())) - .toList(); + return transportStreamTimestamp.map((e) => transportStreamTimestampFromJson(e.toString())).toList(); } String? trickplayScanBehaviorNullableToJson( @@ -61875,9 +59012,7 @@ List trickplayScanBehaviorListFromJson( return defaultValue ?? []; } - return trickplayScanBehavior - .map((e) => trickplayScanBehaviorFromJson(e.toString())) - .toList(); + return trickplayScanBehavior.map((e) => trickplayScanBehaviorFromJson(e.toString())).toList(); } List? trickplayScanBehaviorNullableListFromJson( @@ -61888,9 +59023,7 @@ List? trickplayScanBehaviorNullableListFromJson( return defaultValue; } - return trickplayScanBehavior - .map((e) => trickplayScanBehaviorFromJson(e.toString())) - .toList(); + return trickplayScanBehavior.map((e) => trickplayScanBehaviorFromJson(e.toString())).toList(); } String? unratedItemNullableToJson(enums.UnratedItem? unratedItem) { @@ -62149,9 +59282,7 @@ List videoRangeTypeListFromJson( return defaultValue ?? []; } - return videoRangeType - .map((e) => videoRangeTypeFromJson(e.toString())) - .toList(); + return videoRangeType.map((e) => videoRangeTypeFromJson(e.toString())).toList(); } List? videoRangeTypeNullableListFromJson( @@ -62162,9 +59293,7 @@ List? videoRangeTypeNullableListFromJson( return defaultValue; } - return videoRangeType - .map((e) => videoRangeTypeFromJson(e.toString())) - .toList(); + return videoRangeType.map((e) => videoRangeTypeFromJson(e.toString())).toList(); } String? videoTypeNullableToJson(enums.VideoType? videoType) { @@ -62191,8 +59320,7 @@ enums.VideoType? videoTypeNullableFromJson( if (videoType == null) { return null; } - return enums.VideoType.values.firstWhereOrNull((e) => e.value == videoType) ?? - defaultValue; + return enums.VideoType.values.firstWhereOrNull((e) => e.value == videoType) ?? defaultValue; } String videoTypeExplodedListToJson(List? videoType) { @@ -62241,8 +59369,7 @@ String? audioItemIdStreamGetSubtitleMethodToJson( return audioItemIdStreamGetSubtitleMethod.value; } -enums.AudioItemIdStreamGetSubtitleMethod -audioItemIdStreamGetSubtitleMethodFromJson( +enums.AudioItemIdStreamGetSubtitleMethod audioItemIdStreamGetSubtitleMethodFromJson( Object? audioItemIdStreamGetSubtitleMethod, [ enums.AudioItemIdStreamGetSubtitleMethod? defaultValue, ]) { @@ -62253,8 +59380,7 @@ audioItemIdStreamGetSubtitleMethodFromJson( enums.AudioItemIdStreamGetSubtitleMethod.swaggerGeneratedUnknown; } -enums.AudioItemIdStreamGetSubtitleMethod? -audioItemIdStreamGetSubtitleMethodNullableFromJson( +enums.AudioItemIdStreamGetSubtitleMethod? audioItemIdStreamGetSubtitleMethodNullableFromJson( Object? audioItemIdStreamGetSubtitleMethod, [ enums.AudioItemIdStreamGetSubtitleMethod? defaultValue, ]) { @@ -62268,16 +59394,13 @@ audioItemIdStreamGetSubtitleMethodNullableFromJson( } String audioItemIdStreamGetSubtitleMethodExplodedListToJson( - List? - audioItemIdStreamGetSubtitleMethod, + List? audioItemIdStreamGetSubtitleMethod, ) { - return audioItemIdStreamGetSubtitleMethod?.map((e) => e.value!).join(',') ?? - ''; + return audioItemIdStreamGetSubtitleMethod?.map((e) => e.value!).join(',') ?? ''; } List audioItemIdStreamGetSubtitleMethodListToJson( - List? - audioItemIdStreamGetSubtitleMethod, + List? audioItemIdStreamGetSubtitleMethod, ) { if (audioItemIdStreamGetSubtitleMethod == null) { return []; @@ -62286,8 +59409,7 @@ List audioItemIdStreamGetSubtitleMethodListToJson( return audioItemIdStreamGetSubtitleMethod.map((e) => e.value!).toList(); } -List -audioItemIdStreamGetSubtitleMethodListFromJson( +List audioItemIdStreamGetSubtitleMethodListFromJson( List? audioItemIdStreamGetSubtitleMethod, [ List? defaultValue, ]) { @@ -62300,8 +59422,7 @@ audioItemIdStreamGetSubtitleMethodListFromJson( .toList(); } -List? -audioItemIdStreamGetSubtitleMethodNullableListFromJson( +List? audioItemIdStreamGetSubtitleMethodNullableListFromJson( List? audioItemIdStreamGetSubtitleMethod, [ List? defaultValue, ]) { @@ -62374,13 +59495,10 @@ List audioItemIdStreamGetContextListFromJson( return defaultValue ?? []; } - return audioItemIdStreamGetContext - .map((e) => audioItemIdStreamGetContextFromJson(e.toString())) - .toList(); + return audioItemIdStreamGetContext.map((e) => audioItemIdStreamGetContextFromJson(e.toString())).toList(); } -List? -audioItemIdStreamGetContextNullableListFromJson( +List? audioItemIdStreamGetContextNullableListFromJson( List? audioItemIdStreamGetContext, [ List? defaultValue, ]) { @@ -62388,14 +59506,11 @@ audioItemIdStreamGetContextNullableListFromJson( return defaultValue; } - return audioItemIdStreamGetContext - .map((e) => audioItemIdStreamGetContextFromJson(e.toString())) - .toList(); + return audioItemIdStreamGetContext.map((e) => audioItemIdStreamGetContextFromJson(e.toString())).toList(); } String? audioItemIdStreamHeadSubtitleMethodNullableToJson( - enums.AudioItemIdStreamHeadSubtitleMethod? - audioItemIdStreamHeadSubtitleMethod, + enums.AudioItemIdStreamHeadSubtitleMethod? audioItemIdStreamHeadSubtitleMethod, ) { return audioItemIdStreamHeadSubtitleMethod?.value; } @@ -62406,8 +59521,7 @@ String? audioItemIdStreamHeadSubtitleMethodToJson( return audioItemIdStreamHeadSubtitleMethod.value; } -enums.AudioItemIdStreamHeadSubtitleMethod -audioItemIdStreamHeadSubtitleMethodFromJson( +enums.AudioItemIdStreamHeadSubtitleMethod audioItemIdStreamHeadSubtitleMethodFromJson( Object? audioItemIdStreamHeadSubtitleMethod, [ enums.AudioItemIdStreamHeadSubtitleMethod? defaultValue, ]) { @@ -62418,8 +59532,7 @@ audioItemIdStreamHeadSubtitleMethodFromJson( enums.AudioItemIdStreamHeadSubtitleMethod.swaggerGeneratedUnknown; } -enums.AudioItemIdStreamHeadSubtitleMethod? -audioItemIdStreamHeadSubtitleMethodNullableFromJson( +enums.AudioItemIdStreamHeadSubtitleMethod? audioItemIdStreamHeadSubtitleMethodNullableFromJson( Object? audioItemIdStreamHeadSubtitleMethod, [ enums.AudioItemIdStreamHeadSubtitleMethod? defaultValue, ]) { @@ -62433,16 +59546,13 @@ audioItemIdStreamHeadSubtitleMethodNullableFromJson( } String audioItemIdStreamHeadSubtitleMethodExplodedListToJson( - List? - audioItemIdStreamHeadSubtitleMethod, + List? audioItemIdStreamHeadSubtitleMethod, ) { - return audioItemIdStreamHeadSubtitleMethod?.map((e) => e.value!).join(',') ?? - ''; + return audioItemIdStreamHeadSubtitleMethod?.map((e) => e.value!).join(',') ?? ''; } List audioItemIdStreamHeadSubtitleMethodListToJson( - List? - audioItemIdStreamHeadSubtitleMethod, + List? audioItemIdStreamHeadSubtitleMethod, ) { if (audioItemIdStreamHeadSubtitleMethod == null) { return []; @@ -62451,8 +59561,7 @@ List audioItemIdStreamHeadSubtitleMethodListToJson( return audioItemIdStreamHeadSubtitleMethod.map((e) => e.value!).toList(); } -List -audioItemIdStreamHeadSubtitleMethodListFromJson( +List audioItemIdStreamHeadSubtitleMethodListFromJson( List? audioItemIdStreamHeadSubtitleMethod, [ List? defaultValue, ]) { @@ -62465,8 +59574,7 @@ audioItemIdStreamHeadSubtitleMethodListFromJson( .toList(); } -List? -audioItemIdStreamHeadSubtitleMethodNullableListFromJson( +List? audioItemIdStreamHeadSubtitleMethodNullableListFromJson( List? audioItemIdStreamHeadSubtitleMethod, [ List? defaultValue, ]) { @@ -62502,8 +59610,7 @@ enums.AudioItemIdStreamHeadContext audioItemIdStreamHeadContextFromJson( enums.AudioItemIdStreamHeadContext.swaggerGeneratedUnknown; } -enums.AudioItemIdStreamHeadContext? -audioItemIdStreamHeadContextNullableFromJson( +enums.AudioItemIdStreamHeadContext? audioItemIdStreamHeadContextNullableFromJson( Object? audioItemIdStreamHeadContext, [ enums.AudioItemIdStreamHeadContext? defaultValue, ]) { @@ -62532,8 +59639,7 @@ List audioItemIdStreamHeadContextListToJson( return audioItemIdStreamHeadContext.map((e) => e.value!).toList(); } -List -audioItemIdStreamHeadContextListFromJson( +List audioItemIdStreamHeadContextListFromJson( List? audioItemIdStreamHeadContext, [ List? defaultValue, ]) { @@ -62541,13 +59647,10 @@ audioItemIdStreamHeadContextListFromJson( return defaultValue ?? []; } - return audioItemIdStreamHeadContext - .map((e) => audioItemIdStreamHeadContextFromJson(e.toString())) - .toList(); + return audioItemIdStreamHeadContext.map((e) => audioItemIdStreamHeadContextFromJson(e.toString())).toList(); } -List? -audioItemIdStreamHeadContextNullableListFromJson( +List? audioItemIdStreamHeadContextNullableListFromJson( List? audioItemIdStreamHeadContext, [ List? defaultValue, ]) { @@ -62555,78 +59658,62 @@ audioItemIdStreamHeadContextNullableListFromJson( return defaultValue; } - return audioItemIdStreamHeadContext - .map((e) => audioItemIdStreamHeadContextFromJson(e.toString())) - .toList(); + return audioItemIdStreamHeadContext.map((e) => audioItemIdStreamHeadContextFromJson(e.toString())).toList(); } String? audioItemIdStreamContainerGetSubtitleMethodNullableToJson( - enums.AudioItemIdStreamContainerGetSubtitleMethod? - audioItemIdStreamContainerGetSubtitleMethod, + enums.AudioItemIdStreamContainerGetSubtitleMethod? audioItemIdStreamContainerGetSubtitleMethod, ) { return audioItemIdStreamContainerGetSubtitleMethod?.value; } String? audioItemIdStreamContainerGetSubtitleMethodToJson( - enums.AudioItemIdStreamContainerGetSubtitleMethod - audioItemIdStreamContainerGetSubtitleMethod, + enums.AudioItemIdStreamContainerGetSubtitleMethod audioItemIdStreamContainerGetSubtitleMethod, ) { return audioItemIdStreamContainerGetSubtitleMethod.value; } -enums.AudioItemIdStreamContainerGetSubtitleMethod -audioItemIdStreamContainerGetSubtitleMethodFromJson( +enums.AudioItemIdStreamContainerGetSubtitleMethod audioItemIdStreamContainerGetSubtitleMethodFromJson( Object? audioItemIdStreamContainerGetSubtitleMethod, [ enums.AudioItemIdStreamContainerGetSubtitleMethod? defaultValue, ]) { - return enums.AudioItemIdStreamContainerGetSubtitleMethod.values - .firstWhereOrNull( - (e) => e.value == audioItemIdStreamContainerGetSubtitleMethod, - ) ?? + return enums.AudioItemIdStreamContainerGetSubtitleMethod.values.firstWhereOrNull( + (e) => e.value == audioItemIdStreamContainerGetSubtitleMethod, + ) ?? defaultValue ?? enums.AudioItemIdStreamContainerGetSubtitleMethod.swaggerGeneratedUnknown; } -enums.AudioItemIdStreamContainerGetSubtitleMethod? -audioItemIdStreamContainerGetSubtitleMethodNullableFromJson( +enums.AudioItemIdStreamContainerGetSubtitleMethod? audioItemIdStreamContainerGetSubtitleMethodNullableFromJson( Object? audioItemIdStreamContainerGetSubtitleMethod, [ enums.AudioItemIdStreamContainerGetSubtitleMethod? defaultValue, ]) { if (audioItemIdStreamContainerGetSubtitleMethod == null) { return null; } - return enums.AudioItemIdStreamContainerGetSubtitleMethod.values - .firstWhereOrNull( - (e) => e.value == audioItemIdStreamContainerGetSubtitleMethod, - ) ?? + return enums.AudioItemIdStreamContainerGetSubtitleMethod.values.firstWhereOrNull( + (e) => e.value == audioItemIdStreamContainerGetSubtitleMethod, + ) ?? defaultValue; } String audioItemIdStreamContainerGetSubtitleMethodExplodedListToJson( - List? - audioItemIdStreamContainerGetSubtitleMethod, + List? audioItemIdStreamContainerGetSubtitleMethod, ) { - return audioItemIdStreamContainerGetSubtitleMethod - ?.map((e) => e.value!) - .join(',') ?? - ''; + return audioItemIdStreamContainerGetSubtitleMethod?.map((e) => e.value!).join(',') ?? ''; } List audioItemIdStreamContainerGetSubtitleMethodListToJson( - List? - audioItemIdStreamContainerGetSubtitleMethod, + List? audioItemIdStreamContainerGetSubtitleMethod, ) { if (audioItemIdStreamContainerGetSubtitleMethod == null) { return []; } - return audioItemIdStreamContainerGetSubtitleMethod - .map((e) => e.value!) - .toList(); + return audioItemIdStreamContainerGetSubtitleMethod.map((e) => e.value!).toList(); } -List -audioItemIdStreamContainerGetSubtitleMethodListFromJson( +List audioItemIdStreamContainerGetSubtitleMethodListFromJson( List? audioItemIdStreamContainerGetSubtitleMethod, [ List? defaultValue, ]) { @@ -62636,14 +59723,13 @@ audioItemIdStreamContainerGetSubtitleMethodListFromJson( return audioItemIdStreamContainerGetSubtitleMethod .map( - (e) => - audioItemIdStreamContainerGetSubtitleMethodFromJson(e.toString()), + (e) => audioItemIdStreamContainerGetSubtitleMethodFromJson(e.toString()), ) .toList(); } List? -audioItemIdStreamContainerGetSubtitleMethodNullableListFromJson( + audioItemIdStreamContainerGetSubtitleMethodNullableListFromJson( List? audioItemIdStreamContainerGetSubtitleMethod, [ List? defaultValue, ]) { @@ -62653,28 +59739,24 @@ audioItemIdStreamContainerGetSubtitleMethodNullableListFromJson( return audioItemIdStreamContainerGetSubtitleMethod .map( - (e) => - audioItemIdStreamContainerGetSubtitleMethodFromJson(e.toString()), + (e) => audioItemIdStreamContainerGetSubtitleMethodFromJson(e.toString()), ) .toList(); } String? audioItemIdStreamContainerGetContextNullableToJson( - enums.AudioItemIdStreamContainerGetContext? - audioItemIdStreamContainerGetContext, + enums.AudioItemIdStreamContainerGetContext? audioItemIdStreamContainerGetContext, ) { return audioItemIdStreamContainerGetContext?.value; } String? audioItemIdStreamContainerGetContextToJson( - enums.AudioItemIdStreamContainerGetContext - audioItemIdStreamContainerGetContext, + enums.AudioItemIdStreamContainerGetContext audioItemIdStreamContainerGetContext, ) { return audioItemIdStreamContainerGetContext.value; } -enums.AudioItemIdStreamContainerGetContext -audioItemIdStreamContainerGetContextFromJson( +enums.AudioItemIdStreamContainerGetContext audioItemIdStreamContainerGetContextFromJson( Object? audioItemIdStreamContainerGetContext, [ enums.AudioItemIdStreamContainerGetContext? defaultValue, ]) { @@ -62685,8 +59767,7 @@ audioItemIdStreamContainerGetContextFromJson( enums.AudioItemIdStreamContainerGetContext.swaggerGeneratedUnknown; } -enums.AudioItemIdStreamContainerGetContext? -audioItemIdStreamContainerGetContextNullableFromJson( +enums.AudioItemIdStreamContainerGetContext? audioItemIdStreamContainerGetContextNullableFromJson( Object? audioItemIdStreamContainerGetContext, [ enums.AudioItemIdStreamContainerGetContext? defaultValue, ]) { @@ -62700,16 +59781,13 @@ audioItemIdStreamContainerGetContextNullableFromJson( } String audioItemIdStreamContainerGetContextExplodedListToJson( - List? - audioItemIdStreamContainerGetContext, + List? audioItemIdStreamContainerGetContext, ) { - return audioItemIdStreamContainerGetContext?.map((e) => e.value!).join(',') ?? - ''; + return audioItemIdStreamContainerGetContext?.map((e) => e.value!).join(',') ?? ''; } List audioItemIdStreamContainerGetContextListToJson( - List? - audioItemIdStreamContainerGetContext, + List? audioItemIdStreamContainerGetContext, ) { if (audioItemIdStreamContainerGetContext == null) { return []; @@ -62718,8 +59796,7 @@ List audioItemIdStreamContainerGetContextListToJson( return audioItemIdStreamContainerGetContext.map((e) => e.value!).toList(); } -List -audioItemIdStreamContainerGetContextListFromJson( +List audioItemIdStreamContainerGetContextListFromJson( List? audioItemIdStreamContainerGetContext, [ List? defaultValue, ]) { @@ -62732,8 +59809,7 @@ audioItemIdStreamContainerGetContextListFromJson( .toList(); } -List? -audioItemIdStreamContainerGetContextNullableListFromJson( +List? audioItemIdStreamContainerGetContextNullableListFromJson( List? audioItemIdStreamContainerGetContext, [ List? defaultValue, ]) { @@ -62747,74 +59823,58 @@ audioItemIdStreamContainerGetContextNullableListFromJson( } String? audioItemIdStreamContainerHeadSubtitleMethodNullableToJson( - enums.AudioItemIdStreamContainerHeadSubtitleMethod? - audioItemIdStreamContainerHeadSubtitleMethod, + enums.AudioItemIdStreamContainerHeadSubtitleMethod? audioItemIdStreamContainerHeadSubtitleMethod, ) { return audioItemIdStreamContainerHeadSubtitleMethod?.value; } String? audioItemIdStreamContainerHeadSubtitleMethodToJson( - enums.AudioItemIdStreamContainerHeadSubtitleMethod - audioItemIdStreamContainerHeadSubtitleMethod, + enums.AudioItemIdStreamContainerHeadSubtitleMethod audioItemIdStreamContainerHeadSubtitleMethod, ) { return audioItemIdStreamContainerHeadSubtitleMethod.value; } -enums.AudioItemIdStreamContainerHeadSubtitleMethod -audioItemIdStreamContainerHeadSubtitleMethodFromJson( +enums.AudioItemIdStreamContainerHeadSubtitleMethod audioItemIdStreamContainerHeadSubtitleMethodFromJson( Object? audioItemIdStreamContainerHeadSubtitleMethod, [ enums.AudioItemIdStreamContainerHeadSubtitleMethod? defaultValue, ]) { - return enums.AudioItemIdStreamContainerHeadSubtitleMethod.values - .firstWhereOrNull( - (e) => e.value == audioItemIdStreamContainerHeadSubtitleMethod, - ) ?? + return enums.AudioItemIdStreamContainerHeadSubtitleMethod.values.firstWhereOrNull( + (e) => e.value == audioItemIdStreamContainerHeadSubtitleMethod, + ) ?? defaultValue ?? - enums - .AudioItemIdStreamContainerHeadSubtitleMethod - .swaggerGeneratedUnknown; + enums.AudioItemIdStreamContainerHeadSubtitleMethod.swaggerGeneratedUnknown; } -enums.AudioItemIdStreamContainerHeadSubtitleMethod? -audioItemIdStreamContainerHeadSubtitleMethodNullableFromJson( +enums.AudioItemIdStreamContainerHeadSubtitleMethod? audioItemIdStreamContainerHeadSubtitleMethodNullableFromJson( Object? audioItemIdStreamContainerHeadSubtitleMethod, [ enums.AudioItemIdStreamContainerHeadSubtitleMethod? defaultValue, ]) { if (audioItemIdStreamContainerHeadSubtitleMethod == null) { return null; } - return enums.AudioItemIdStreamContainerHeadSubtitleMethod.values - .firstWhereOrNull( - (e) => e.value == audioItemIdStreamContainerHeadSubtitleMethod, - ) ?? + return enums.AudioItemIdStreamContainerHeadSubtitleMethod.values.firstWhereOrNull( + (e) => e.value == audioItemIdStreamContainerHeadSubtitleMethod, + ) ?? defaultValue; } String audioItemIdStreamContainerHeadSubtitleMethodExplodedListToJson( - List? - audioItemIdStreamContainerHeadSubtitleMethod, + List? audioItemIdStreamContainerHeadSubtitleMethod, ) { - return audioItemIdStreamContainerHeadSubtitleMethod - ?.map((e) => e.value!) - .join(',') ?? - ''; + return audioItemIdStreamContainerHeadSubtitleMethod?.map((e) => e.value!).join(',') ?? ''; } List audioItemIdStreamContainerHeadSubtitleMethodListToJson( - List? - audioItemIdStreamContainerHeadSubtitleMethod, + List? audioItemIdStreamContainerHeadSubtitleMethod, ) { if (audioItemIdStreamContainerHeadSubtitleMethod == null) { return []; } - return audioItemIdStreamContainerHeadSubtitleMethod - .map((e) => e.value!) - .toList(); + return audioItemIdStreamContainerHeadSubtitleMethod.map((e) => e.value!).toList(); } -List -audioItemIdStreamContainerHeadSubtitleMethodListFromJson( +List audioItemIdStreamContainerHeadSubtitleMethodListFromJson( List? audioItemIdStreamContainerHeadSubtitleMethod, [ List? defaultValue, ]) { @@ -62824,14 +59884,13 @@ audioItemIdStreamContainerHeadSubtitleMethodListFromJson( return audioItemIdStreamContainerHeadSubtitleMethod .map( - (e) => - audioItemIdStreamContainerHeadSubtitleMethodFromJson(e.toString()), + (e) => audioItemIdStreamContainerHeadSubtitleMethodFromJson(e.toString()), ) .toList(); } List? -audioItemIdStreamContainerHeadSubtitleMethodNullableListFromJson( + audioItemIdStreamContainerHeadSubtitleMethodNullableListFromJson( List? audioItemIdStreamContainerHeadSubtitleMethod, [ List? defaultValue, ]) { @@ -62841,28 +59900,24 @@ audioItemIdStreamContainerHeadSubtitleMethodNullableListFromJson( return audioItemIdStreamContainerHeadSubtitleMethod .map( - (e) => - audioItemIdStreamContainerHeadSubtitleMethodFromJson(e.toString()), + (e) => audioItemIdStreamContainerHeadSubtitleMethodFromJson(e.toString()), ) .toList(); } String? audioItemIdStreamContainerHeadContextNullableToJson( - enums.AudioItemIdStreamContainerHeadContext? - audioItemIdStreamContainerHeadContext, + enums.AudioItemIdStreamContainerHeadContext? audioItemIdStreamContainerHeadContext, ) { return audioItemIdStreamContainerHeadContext?.value; } String? audioItemIdStreamContainerHeadContextToJson( - enums.AudioItemIdStreamContainerHeadContext - audioItemIdStreamContainerHeadContext, + enums.AudioItemIdStreamContainerHeadContext audioItemIdStreamContainerHeadContext, ) { return audioItemIdStreamContainerHeadContext.value; } -enums.AudioItemIdStreamContainerHeadContext -audioItemIdStreamContainerHeadContextFromJson( +enums.AudioItemIdStreamContainerHeadContext audioItemIdStreamContainerHeadContextFromJson( Object? audioItemIdStreamContainerHeadContext, [ enums.AudioItemIdStreamContainerHeadContext? defaultValue, ]) { @@ -62873,8 +59928,7 @@ audioItemIdStreamContainerHeadContextFromJson( enums.AudioItemIdStreamContainerHeadContext.swaggerGeneratedUnknown; } -enums.AudioItemIdStreamContainerHeadContext? -audioItemIdStreamContainerHeadContextNullableFromJson( +enums.AudioItemIdStreamContainerHeadContext? audioItemIdStreamContainerHeadContextNullableFromJson( Object? audioItemIdStreamContainerHeadContext, [ enums.AudioItemIdStreamContainerHeadContext? defaultValue, ]) { @@ -62888,18 +59942,13 @@ audioItemIdStreamContainerHeadContextNullableFromJson( } String audioItemIdStreamContainerHeadContextExplodedListToJson( - List? - audioItemIdStreamContainerHeadContext, + List? audioItemIdStreamContainerHeadContext, ) { - return audioItemIdStreamContainerHeadContext - ?.map((e) => e.value!) - .join(',') ?? - ''; + return audioItemIdStreamContainerHeadContext?.map((e) => e.value!).join(',') ?? ''; } List audioItemIdStreamContainerHeadContextListToJson( - List? - audioItemIdStreamContainerHeadContext, + List? audioItemIdStreamContainerHeadContext, ) { if (audioItemIdStreamContainerHeadContext == null) { return []; @@ -62908,8 +59957,7 @@ List audioItemIdStreamContainerHeadContextListToJson( return audioItemIdStreamContainerHeadContext.map((e) => e.value!).toList(); } -List -audioItemIdStreamContainerHeadContextListFromJson( +List audioItemIdStreamContainerHeadContextListFromJson( List? audioItemIdStreamContainerHeadContext, [ List? defaultValue, ]) { @@ -62922,8 +59970,7 @@ audioItemIdStreamContainerHeadContextListFromJson( .toList(); } -List? -audioItemIdStreamContainerHeadContextNullableListFromJson( +List? audioItemIdStreamContainerHeadContextNullableListFromJson( List? audioItemIdStreamContainerHeadContext, [ List? defaultValue, ]) { @@ -62936,91 +59983,68 @@ audioItemIdStreamContainerHeadContextNullableListFromJson( .toList(); } -String? -audioItemIdHls1PlaylistIdSegmentIdContainerGetSubtitleMethodNullableToJson( +String? audioItemIdHls1PlaylistIdSegmentIdContainerGetSubtitleMethodNullableToJson( enums.AudioItemIdHls1PlaylistIdSegmentIdContainerGetSubtitleMethod? - audioItemIdHls1PlaylistIdSegmentIdContainerGetSubtitleMethod, + audioItemIdHls1PlaylistIdSegmentIdContainerGetSubtitleMethod, ) { return audioItemIdHls1PlaylistIdSegmentIdContainerGetSubtitleMethod?.value; } String? audioItemIdHls1PlaylistIdSegmentIdContainerGetSubtitleMethodToJson( enums.AudioItemIdHls1PlaylistIdSegmentIdContainerGetSubtitleMethod - audioItemIdHls1PlaylistIdSegmentIdContainerGetSubtitleMethod, + audioItemIdHls1PlaylistIdSegmentIdContainerGetSubtitleMethod, ) { return audioItemIdHls1PlaylistIdSegmentIdContainerGetSubtitleMethod.value; } enums.AudioItemIdHls1PlaylistIdSegmentIdContainerGetSubtitleMethod -audioItemIdHls1PlaylistIdSegmentIdContainerGetSubtitleMethodFromJson( + audioItemIdHls1PlaylistIdSegmentIdContainerGetSubtitleMethodFromJson( Object? audioItemIdHls1PlaylistIdSegmentIdContainerGetSubtitleMethod, [ - enums.AudioItemIdHls1PlaylistIdSegmentIdContainerGetSubtitleMethod? - defaultValue, + enums.AudioItemIdHls1PlaylistIdSegmentIdContainerGetSubtitleMethod? defaultValue, ]) { - return enums - .AudioItemIdHls1PlaylistIdSegmentIdContainerGetSubtitleMethod - .values - .firstWhereOrNull( - (e) => - e.value == - audioItemIdHls1PlaylistIdSegmentIdContainerGetSubtitleMethod, - ) ?? + return enums.AudioItemIdHls1PlaylistIdSegmentIdContainerGetSubtitleMethod.values.firstWhereOrNull( + (e) => e.value == audioItemIdHls1PlaylistIdSegmentIdContainerGetSubtitleMethod, + ) ?? defaultValue ?? - enums - .AudioItemIdHls1PlaylistIdSegmentIdContainerGetSubtitleMethod - .swaggerGeneratedUnknown; + enums.AudioItemIdHls1PlaylistIdSegmentIdContainerGetSubtitleMethod.swaggerGeneratedUnknown; } enums.AudioItemIdHls1PlaylistIdSegmentIdContainerGetSubtitleMethod? -audioItemIdHls1PlaylistIdSegmentIdContainerGetSubtitleMethodNullableFromJson( + audioItemIdHls1PlaylistIdSegmentIdContainerGetSubtitleMethodNullableFromJson( Object? audioItemIdHls1PlaylistIdSegmentIdContainerGetSubtitleMethod, [ - enums.AudioItemIdHls1PlaylistIdSegmentIdContainerGetSubtitleMethod? - defaultValue, + enums.AudioItemIdHls1PlaylistIdSegmentIdContainerGetSubtitleMethod? defaultValue, ]) { if (audioItemIdHls1PlaylistIdSegmentIdContainerGetSubtitleMethod == null) { return null; } - return enums - .AudioItemIdHls1PlaylistIdSegmentIdContainerGetSubtitleMethod - .values - .firstWhereOrNull( - (e) => - e.value == - audioItemIdHls1PlaylistIdSegmentIdContainerGetSubtitleMethod, - ) ?? + return enums.AudioItemIdHls1PlaylistIdSegmentIdContainerGetSubtitleMethod.values.firstWhereOrNull( + (e) => e.value == audioItemIdHls1PlaylistIdSegmentIdContainerGetSubtitleMethod, + ) ?? defaultValue; } -String -audioItemIdHls1PlaylistIdSegmentIdContainerGetSubtitleMethodExplodedListToJson( +String audioItemIdHls1PlaylistIdSegmentIdContainerGetSubtitleMethodExplodedListToJson( List? - audioItemIdHls1PlaylistIdSegmentIdContainerGetSubtitleMethod, + audioItemIdHls1PlaylistIdSegmentIdContainerGetSubtitleMethod, ) { - return audioItemIdHls1PlaylistIdSegmentIdContainerGetSubtitleMethod - ?.map((e) => e.value!) - .join(',') ?? - ''; + return audioItemIdHls1PlaylistIdSegmentIdContainerGetSubtitleMethod?.map((e) => e.value!).join(',') ?? ''; } -List -audioItemIdHls1PlaylistIdSegmentIdContainerGetSubtitleMethodListToJson( +List audioItemIdHls1PlaylistIdSegmentIdContainerGetSubtitleMethodListToJson( List? - audioItemIdHls1PlaylistIdSegmentIdContainerGetSubtitleMethod, + audioItemIdHls1PlaylistIdSegmentIdContainerGetSubtitleMethod, ) { if (audioItemIdHls1PlaylistIdSegmentIdContainerGetSubtitleMethod == null) { return []; } - return audioItemIdHls1PlaylistIdSegmentIdContainerGetSubtitleMethod - .map((e) => e.value!) - .toList(); + return audioItemIdHls1PlaylistIdSegmentIdContainerGetSubtitleMethod.map((e) => e.value!).toList(); } List -audioItemIdHls1PlaylistIdSegmentIdContainerGetSubtitleMethodListFromJson( + audioItemIdHls1PlaylistIdSegmentIdContainerGetSubtitleMethodListFromJson( List? audioItemIdHls1PlaylistIdSegmentIdContainerGetSubtitleMethod, [ - List? - defaultValue, + List? defaultValue, ]) { if (audioItemIdHls1PlaylistIdSegmentIdContainerGetSubtitleMethod == null) { return defaultValue ?? []; @@ -63028,19 +60052,17 @@ audioItemIdHls1PlaylistIdSegmentIdContainerGetSubtitleMethodListFromJson( return audioItemIdHls1PlaylistIdSegmentIdContainerGetSubtitleMethod .map( - (e) => - audioItemIdHls1PlaylistIdSegmentIdContainerGetSubtitleMethodFromJson( - e.toString(), - ), + (e) => audioItemIdHls1PlaylistIdSegmentIdContainerGetSubtitleMethodFromJson( + e.toString(), + ), ) .toList(); } List? -audioItemIdHls1PlaylistIdSegmentIdContainerGetSubtitleMethodNullableListFromJson( + audioItemIdHls1PlaylistIdSegmentIdContainerGetSubtitleMethodNullableListFromJson( List? audioItemIdHls1PlaylistIdSegmentIdContainerGetSubtitleMethod, [ - List? - defaultValue, + List? defaultValue, ]) { if (audioItemIdHls1PlaylistIdSegmentIdContainerGetSubtitleMethod == null) { return defaultValue; @@ -63048,90 +60070,73 @@ audioItemIdHls1PlaylistIdSegmentIdContainerGetSubtitleMethodNullableListFromJson return audioItemIdHls1PlaylistIdSegmentIdContainerGetSubtitleMethod .map( - (e) => - audioItemIdHls1PlaylistIdSegmentIdContainerGetSubtitleMethodFromJson( - e.toString(), - ), + (e) => audioItemIdHls1PlaylistIdSegmentIdContainerGetSubtitleMethodFromJson( + e.toString(), + ), ) .toList(); } String? audioItemIdHls1PlaylistIdSegmentIdContainerGetContextNullableToJson( - enums.AudioItemIdHls1PlaylistIdSegmentIdContainerGetContext? - audioItemIdHls1PlaylistIdSegmentIdContainerGetContext, + enums.AudioItemIdHls1PlaylistIdSegmentIdContainerGetContext? audioItemIdHls1PlaylistIdSegmentIdContainerGetContext, ) { return audioItemIdHls1PlaylistIdSegmentIdContainerGetContext?.value; } String? audioItemIdHls1PlaylistIdSegmentIdContainerGetContextToJson( - enums.AudioItemIdHls1PlaylistIdSegmentIdContainerGetContext - audioItemIdHls1PlaylistIdSegmentIdContainerGetContext, + enums.AudioItemIdHls1PlaylistIdSegmentIdContainerGetContext audioItemIdHls1PlaylistIdSegmentIdContainerGetContext, ) { return audioItemIdHls1PlaylistIdSegmentIdContainerGetContext.value; } enums.AudioItemIdHls1PlaylistIdSegmentIdContainerGetContext -audioItemIdHls1PlaylistIdSegmentIdContainerGetContextFromJson( + audioItemIdHls1PlaylistIdSegmentIdContainerGetContextFromJson( Object? audioItemIdHls1PlaylistIdSegmentIdContainerGetContext, [ enums.AudioItemIdHls1PlaylistIdSegmentIdContainerGetContext? defaultValue, ]) { - return enums.AudioItemIdHls1PlaylistIdSegmentIdContainerGetContext.values - .firstWhereOrNull( - (e) => - e.value == - audioItemIdHls1PlaylistIdSegmentIdContainerGetContext, - ) ?? + return enums.AudioItemIdHls1PlaylistIdSegmentIdContainerGetContext.values.firstWhereOrNull( + (e) => e.value == audioItemIdHls1PlaylistIdSegmentIdContainerGetContext, + ) ?? defaultValue ?? - enums - .AudioItemIdHls1PlaylistIdSegmentIdContainerGetContext - .swaggerGeneratedUnknown; + enums.AudioItemIdHls1PlaylistIdSegmentIdContainerGetContext.swaggerGeneratedUnknown; } enums.AudioItemIdHls1PlaylistIdSegmentIdContainerGetContext? -audioItemIdHls1PlaylistIdSegmentIdContainerGetContextNullableFromJson( + audioItemIdHls1PlaylistIdSegmentIdContainerGetContextNullableFromJson( Object? audioItemIdHls1PlaylistIdSegmentIdContainerGetContext, [ enums.AudioItemIdHls1PlaylistIdSegmentIdContainerGetContext? defaultValue, ]) { if (audioItemIdHls1PlaylistIdSegmentIdContainerGetContext == null) { return null; } - return enums.AudioItemIdHls1PlaylistIdSegmentIdContainerGetContext.values - .firstWhereOrNull( - (e) => - e.value == - audioItemIdHls1PlaylistIdSegmentIdContainerGetContext, - ) ?? + return enums.AudioItemIdHls1PlaylistIdSegmentIdContainerGetContext.values.firstWhereOrNull( + (e) => e.value == audioItemIdHls1PlaylistIdSegmentIdContainerGetContext, + ) ?? defaultValue; } String audioItemIdHls1PlaylistIdSegmentIdContainerGetContextExplodedListToJson( List? - audioItemIdHls1PlaylistIdSegmentIdContainerGetContext, + audioItemIdHls1PlaylistIdSegmentIdContainerGetContext, ) { - return audioItemIdHls1PlaylistIdSegmentIdContainerGetContext - ?.map((e) => e.value!) - .join(',') ?? - ''; + return audioItemIdHls1PlaylistIdSegmentIdContainerGetContext?.map((e) => e.value!).join(',') ?? ''; } List audioItemIdHls1PlaylistIdSegmentIdContainerGetContextListToJson( List? - audioItemIdHls1PlaylistIdSegmentIdContainerGetContext, + audioItemIdHls1PlaylistIdSegmentIdContainerGetContext, ) { if (audioItemIdHls1PlaylistIdSegmentIdContainerGetContext == null) { return []; } - return audioItemIdHls1PlaylistIdSegmentIdContainerGetContext - .map((e) => e.value!) - .toList(); + return audioItemIdHls1PlaylistIdSegmentIdContainerGetContext.map((e) => e.value!).toList(); } List -audioItemIdHls1PlaylistIdSegmentIdContainerGetContextListFromJson( + audioItemIdHls1PlaylistIdSegmentIdContainerGetContextListFromJson( List? audioItemIdHls1PlaylistIdSegmentIdContainerGetContext, [ - List? - defaultValue, + List? defaultValue, ]) { if (audioItemIdHls1PlaylistIdSegmentIdContainerGetContext == null) { return defaultValue ?? []; @@ -63147,10 +60152,9 @@ audioItemIdHls1PlaylistIdSegmentIdContainerGetContextListFromJson( } List? -audioItemIdHls1PlaylistIdSegmentIdContainerGetContextNullableListFromJson( + audioItemIdHls1PlaylistIdSegmentIdContainerGetContextNullableListFromJson( List? audioItemIdHls1PlaylistIdSegmentIdContainerGetContext, [ - List? - defaultValue, + List? defaultValue, ]) { if (audioItemIdHls1PlaylistIdSegmentIdContainerGetContext == null) { return defaultValue; @@ -63166,21 +60170,18 @@ audioItemIdHls1PlaylistIdSegmentIdContainerGetContextNullableListFromJson( } String? audioItemIdMainM3u8GetSubtitleMethodNullableToJson( - enums.AudioItemIdMainM3u8GetSubtitleMethod? - audioItemIdMainM3u8GetSubtitleMethod, + enums.AudioItemIdMainM3u8GetSubtitleMethod? audioItemIdMainM3u8GetSubtitleMethod, ) { return audioItemIdMainM3u8GetSubtitleMethod?.value; } String? audioItemIdMainM3u8GetSubtitleMethodToJson( - enums.AudioItemIdMainM3u8GetSubtitleMethod - audioItemIdMainM3u8GetSubtitleMethod, + enums.AudioItemIdMainM3u8GetSubtitleMethod audioItemIdMainM3u8GetSubtitleMethod, ) { return audioItemIdMainM3u8GetSubtitleMethod.value; } -enums.AudioItemIdMainM3u8GetSubtitleMethod -audioItemIdMainM3u8GetSubtitleMethodFromJson( +enums.AudioItemIdMainM3u8GetSubtitleMethod audioItemIdMainM3u8GetSubtitleMethodFromJson( Object? audioItemIdMainM3u8GetSubtitleMethod, [ enums.AudioItemIdMainM3u8GetSubtitleMethod? defaultValue, ]) { @@ -63191,8 +60192,7 @@ audioItemIdMainM3u8GetSubtitleMethodFromJson( enums.AudioItemIdMainM3u8GetSubtitleMethod.swaggerGeneratedUnknown; } -enums.AudioItemIdMainM3u8GetSubtitleMethod? -audioItemIdMainM3u8GetSubtitleMethodNullableFromJson( +enums.AudioItemIdMainM3u8GetSubtitleMethod? audioItemIdMainM3u8GetSubtitleMethodNullableFromJson( Object? audioItemIdMainM3u8GetSubtitleMethod, [ enums.AudioItemIdMainM3u8GetSubtitleMethod? defaultValue, ]) { @@ -63206,16 +60206,13 @@ audioItemIdMainM3u8GetSubtitleMethodNullableFromJson( } String audioItemIdMainM3u8GetSubtitleMethodExplodedListToJson( - List? - audioItemIdMainM3u8GetSubtitleMethod, + List? audioItemIdMainM3u8GetSubtitleMethod, ) { - return audioItemIdMainM3u8GetSubtitleMethod?.map((e) => e.value!).join(',') ?? - ''; + return audioItemIdMainM3u8GetSubtitleMethod?.map((e) => e.value!).join(',') ?? ''; } List audioItemIdMainM3u8GetSubtitleMethodListToJson( - List? - audioItemIdMainM3u8GetSubtitleMethod, + List? audioItemIdMainM3u8GetSubtitleMethod, ) { if (audioItemIdMainM3u8GetSubtitleMethod == null) { return []; @@ -63224,8 +60221,7 @@ List audioItemIdMainM3u8GetSubtitleMethodListToJson( return audioItemIdMainM3u8GetSubtitleMethod.map((e) => e.value!).toList(); } -List -audioItemIdMainM3u8GetSubtitleMethodListFromJson( +List audioItemIdMainM3u8GetSubtitleMethodListFromJson( List? audioItemIdMainM3u8GetSubtitleMethod, [ List? defaultValue, ]) { @@ -63238,8 +60234,7 @@ audioItemIdMainM3u8GetSubtitleMethodListFromJson( .toList(); } -List? -audioItemIdMainM3u8GetSubtitleMethodNullableListFromJson( +List? audioItemIdMainM3u8GetSubtitleMethodNullableListFromJson( List? audioItemIdMainM3u8GetSubtitleMethod, [ List? defaultValue, ]) { @@ -63275,8 +60270,7 @@ enums.AudioItemIdMainM3u8GetContext audioItemIdMainM3u8GetContextFromJson( enums.AudioItemIdMainM3u8GetContext.swaggerGeneratedUnknown; } -enums.AudioItemIdMainM3u8GetContext? -audioItemIdMainM3u8GetContextNullableFromJson( +enums.AudioItemIdMainM3u8GetContext? audioItemIdMainM3u8GetContextNullableFromJson( Object? audioItemIdMainM3u8GetContext, [ enums.AudioItemIdMainM3u8GetContext? defaultValue, ]) { @@ -63305,8 +60299,7 @@ List audioItemIdMainM3u8GetContextListToJson( return audioItemIdMainM3u8GetContext.map((e) => e.value!).toList(); } -List -audioItemIdMainM3u8GetContextListFromJson( +List audioItemIdMainM3u8GetContextListFromJson( List? audioItemIdMainM3u8GetContext, [ List? defaultValue, ]) { @@ -63314,13 +60307,10 @@ audioItemIdMainM3u8GetContextListFromJson( return defaultValue ?? []; } - return audioItemIdMainM3u8GetContext - .map((e) => audioItemIdMainM3u8GetContextFromJson(e.toString())) - .toList(); + return audioItemIdMainM3u8GetContext.map((e) => audioItemIdMainM3u8GetContextFromJson(e.toString())).toList(); } -List? -audioItemIdMainM3u8GetContextNullableListFromJson( +List? audioItemIdMainM3u8GetContextNullableListFromJson( List? audioItemIdMainM3u8GetContext, [ List? defaultValue, ]) { @@ -63328,27 +60318,22 @@ audioItemIdMainM3u8GetContextNullableListFromJson( return defaultValue; } - return audioItemIdMainM3u8GetContext - .map((e) => audioItemIdMainM3u8GetContextFromJson(e.toString())) - .toList(); + return audioItemIdMainM3u8GetContext.map((e) => audioItemIdMainM3u8GetContextFromJson(e.toString())).toList(); } String? audioItemIdMasterM3u8GetSubtitleMethodNullableToJson( - enums.AudioItemIdMasterM3u8GetSubtitleMethod? - audioItemIdMasterM3u8GetSubtitleMethod, + enums.AudioItemIdMasterM3u8GetSubtitleMethod? audioItemIdMasterM3u8GetSubtitleMethod, ) { return audioItemIdMasterM3u8GetSubtitleMethod?.value; } String? audioItemIdMasterM3u8GetSubtitleMethodToJson( - enums.AudioItemIdMasterM3u8GetSubtitleMethod - audioItemIdMasterM3u8GetSubtitleMethod, + enums.AudioItemIdMasterM3u8GetSubtitleMethod audioItemIdMasterM3u8GetSubtitleMethod, ) { return audioItemIdMasterM3u8GetSubtitleMethod.value; } -enums.AudioItemIdMasterM3u8GetSubtitleMethod -audioItemIdMasterM3u8GetSubtitleMethodFromJson( +enums.AudioItemIdMasterM3u8GetSubtitleMethod audioItemIdMasterM3u8GetSubtitleMethodFromJson( Object? audioItemIdMasterM3u8GetSubtitleMethod, [ enums.AudioItemIdMasterM3u8GetSubtitleMethod? defaultValue, ]) { @@ -63359,8 +60344,7 @@ audioItemIdMasterM3u8GetSubtitleMethodFromJson( enums.AudioItemIdMasterM3u8GetSubtitleMethod.swaggerGeneratedUnknown; } -enums.AudioItemIdMasterM3u8GetSubtitleMethod? -audioItemIdMasterM3u8GetSubtitleMethodNullableFromJson( +enums.AudioItemIdMasterM3u8GetSubtitleMethod? audioItemIdMasterM3u8GetSubtitleMethodNullableFromJson( Object? audioItemIdMasterM3u8GetSubtitleMethod, [ enums.AudioItemIdMasterM3u8GetSubtitleMethod? defaultValue, ]) { @@ -63374,18 +60358,13 @@ audioItemIdMasterM3u8GetSubtitleMethodNullableFromJson( } String audioItemIdMasterM3u8GetSubtitleMethodExplodedListToJson( - List? - audioItemIdMasterM3u8GetSubtitleMethod, + List? audioItemIdMasterM3u8GetSubtitleMethod, ) { - return audioItemIdMasterM3u8GetSubtitleMethod - ?.map((e) => e.value!) - .join(',') ?? - ''; + return audioItemIdMasterM3u8GetSubtitleMethod?.map((e) => e.value!).join(',') ?? ''; } List audioItemIdMasterM3u8GetSubtitleMethodListToJson( - List? - audioItemIdMasterM3u8GetSubtitleMethod, + List? audioItemIdMasterM3u8GetSubtitleMethod, ) { if (audioItemIdMasterM3u8GetSubtitleMethod == null) { return []; @@ -63394,8 +60373,7 @@ List audioItemIdMasterM3u8GetSubtitleMethodListToJson( return audioItemIdMasterM3u8GetSubtitleMethod.map((e) => e.value!).toList(); } -List -audioItemIdMasterM3u8GetSubtitleMethodListFromJson( +List audioItemIdMasterM3u8GetSubtitleMethodListFromJson( List? audioItemIdMasterM3u8GetSubtitleMethod, [ List? defaultValue, ]) { @@ -63408,8 +60386,7 @@ audioItemIdMasterM3u8GetSubtitleMethodListFromJson( .toList(); } -List? -audioItemIdMasterM3u8GetSubtitleMethodNullableListFromJson( +List? audioItemIdMasterM3u8GetSubtitleMethodNullableListFromJson( List? audioItemIdMasterM3u8GetSubtitleMethod, [ List? defaultValue, ]) { @@ -63445,8 +60422,7 @@ enums.AudioItemIdMasterM3u8GetContext audioItemIdMasterM3u8GetContextFromJson( enums.AudioItemIdMasterM3u8GetContext.swaggerGeneratedUnknown; } -enums.AudioItemIdMasterM3u8GetContext? -audioItemIdMasterM3u8GetContextNullableFromJson( +enums.AudioItemIdMasterM3u8GetContext? audioItemIdMasterM3u8GetContextNullableFromJson( Object? audioItemIdMasterM3u8GetContext, [ enums.AudioItemIdMasterM3u8GetContext? defaultValue, ]) { @@ -63475,8 +60451,7 @@ List audioItemIdMasterM3u8GetContextListToJson( return audioItemIdMasterM3u8GetContext.map((e) => e.value!).toList(); } -List -audioItemIdMasterM3u8GetContextListFromJson( +List audioItemIdMasterM3u8GetContextListFromJson( List? audioItemIdMasterM3u8GetContext, [ List? defaultValue, ]) { @@ -63484,13 +60459,10 @@ audioItemIdMasterM3u8GetContextListFromJson( return defaultValue ?? []; } - return audioItemIdMasterM3u8GetContext - .map((e) => audioItemIdMasterM3u8GetContextFromJson(e.toString())) - .toList(); + return audioItemIdMasterM3u8GetContext.map((e) => audioItemIdMasterM3u8GetContextFromJson(e.toString())).toList(); } -List? -audioItemIdMasterM3u8GetContextNullableListFromJson( +List? audioItemIdMasterM3u8GetContextNullableListFromJson( List? audioItemIdMasterM3u8GetContext, [ List? defaultValue, ]) { @@ -63498,27 +60470,22 @@ audioItemIdMasterM3u8GetContextNullableListFromJson( return defaultValue; } - return audioItemIdMasterM3u8GetContext - .map((e) => audioItemIdMasterM3u8GetContextFromJson(e.toString())) - .toList(); + return audioItemIdMasterM3u8GetContext.map((e) => audioItemIdMasterM3u8GetContextFromJson(e.toString())).toList(); } String? audioItemIdMasterM3u8HeadSubtitleMethodNullableToJson( - enums.AudioItemIdMasterM3u8HeadSubtitleMethod? - audioItemIdMasterM3u8HeadSubtitleMethod, + enums.AudioItemIdMasterM3u8HeadSubtitleMethod? audioItemIdMasterM3u8HeadSubtitleMethod, ) { return audioItemIdMasterM3u8HeadSubtitleMethod?.value; } String? audioItemIdMasterM3u8HeadSubtitleMethodToJson( - enums.AudioItemIdMasterM3u8HeadSubtitleMethod - audioItemIdMasterM3u8HeadSubtitleMethod, + enums.AudioItemIdMasterM3u8HeadSubtitleMethod audioItemIdMasterM3u8HeadSubtitleMethod, ) { return audioItemIdMasterM3u8HeadSubtitleMethod.value; } -enums.AudioItemIdMasterM3u8HeadSubtitleMethod -audioItemIdMasterM3u8HeadSubtitleMethodFromJson( +enums.AudioItemIdMasterM3u8HeadSubtitleMethod audioItemIdMasterM3u8HeadSubtitleMethodFromJson( Object? audioItemIdMasterM3u8HeadSubtitleMethod, [ enums.AudioItemIdMasterM3u8HeadSubtitleMethod? defaultValue, ]) { @@ -63529,8 +60496,7 @@ audioItemIdMasterM3u8HeadSubtitleMethodFromJson( enums.AudioItemIdMasterM3u8HeadSubtitleMethod.swaggerGeneratedUnknown; } -enums.AudioItemIdMasterM3u8HeadSubtitleMethod? -audioItemIdMasterM3u8HeadSubtitleMethodNullableFromJson( +enums.AudioItemIdMasterM3u8HeadSubtitleMethod? audioItemIdMasterM3u8HeadSubtitleMethodNullableFromJson( Object? audioItemIdMasterM3u8HeadSubtitleMethod, [ enums.AudioItemIdMasterM3u8HeadSubtitleMethod? defaultValue, ]) { @@ -63544,18 +60510,13 @@ audioItemIdMasterM3u8HeadSubtitleMethodNullableFromJson( } String audioItemIdMasterM3u8HeadSubtitleMethodExplodedListToJson( - List? - audioItemIdMasterM3u8HeadSubtitleMethod, + List? audioItemIdMasterM3u8HeadSubtitleMethod, ) { - return audioItemIdMasterM3u8HeadSubtitleMethod - ?.map((e) => e.value!) - .join(',') ?? - ''; + return audioItemIdMasterM3u8HeadSubtitleMethod?.map((e) => e.value!).join(',') ?? ''; } List audioItemIdMasterM3u8HeadSubtitleMethodListToJson( - List? - audioItemIdMasterM3u8HeadSubtitleMethod, + List? audioItemIdMasterM3u8HeadSubtitleMethod, ) { if (audioItemIdMasterM3u8HeadSubtitleMethod == null) { return []; @@ -63564,8 +60525,7 @@ List audioItemIdMasterM3u8HeadSubtitleMethodListToJson( return audioItemIdMasterM3u8HeadSubtitleMethod.map((e) => e.value!).toList(); } -List -audioItemIdMasterM3u8HeadSubtitleMethodListFromJson( +List audioItemIdMasterM3u8HeadSubtitleMethodListFromJson( List? audioItemIdMasterM3u8HeadSubtitleMethod, [ List? defaultValue, ]) { @@ -63578,8 +60538,7 @@ audioItemIdMasterM3u8HeadSubtitleMethodListFromJson( .toList(); } -List? -audioItemIdMasterM3u8HeadSubtitleMethodNullableListFromJson( +List? audioItemIdMasterM3u8HeadSubtitleMethodNullableListFromJson( List? audioItemIdMasterM3u8HeadSubtitleMethod, [ List? defaultValue, ]) { @@ -63615,8 +60574,7 @@ enums.AudioItemIdMasterM3u8HeadContext audioItemIdMasterM3u8HeadContextFromJson( enums.AudioItemIdMasterM3u8HeadContext.swaggerGeneratedUnknown; } -enums.AudioItemIdMasterM3u8HeadContext? -audioItemIdMasterM3u8HeadContextNullableFromJson( +enums.AudioItemIdMasterM3u8HeadContext? audioItemIdMasterM3u8HeadContextNullableFromJson( Object? audioItemIdMasterM3u8HeadContext, [ enums.AudioItemIdMasterM3u8HeadContext? defaultValue, ]) { @@ -63630,15 +60588,13 @@ audioItemIdMasterM3u8HeadContextNullableFromJson( } String audioItemIdMasterM3u8HeadContextExplodedListToJson( - List? - audioItemIdMasterM3u8HeadContext, + List? audioItemIdMasterM3u8HeadContext, ) { return audioItemIdMasterM3u8HeadContext?.map((e) => e.value!).join(',') ?? ''; } List audioItemIdMasterM3u8HeadContextListToJson( - List? - audioItemIdMasterM3u8HeadContext, + List? audioItemIdMasterM3u8HeadContext, ) { if (audioItemIdMasterM3u8HeadContext == null) { return []; @@ -63647,8 +60603,7 @@ List audioItemIdMasterM3u8HeadContextListToJson( return audioItemIdMasterM3u8HeadContext.map((e) => e.value!).toList(); } -List -audioItemIdMasterM3u8HeadContextListFromJson( +List audioItemIdMasterM3u8HeadContextListFromJson( List? audioItemIdMasterM3u8HeadContext, [ List? defaultValue, ]) { @@ -63656,13 +60611,10 @@ audioItemIdMasterM3u8HeadContextListFromJson( return defaultValue ?? []; } - return audioItemIdMasterM3u8HeadContext - .map((e) => audioItemIdMasterM3u8HeadContextFromJson(e.toString())) - .toList(); + return audioItemIdMasterM3u8HeadContext.map((e) => audioItemIdMasterM3u8HeadContextFromJson(e.toString())).toList(); } -List? -audioItemIdMasterM3u8HeadContextNullableListFromJson( +List? audioItemIdMasterM3u8HeadContextNullableListFromJson( List? audioItemIdMasterM3u8HeadContext, [ List? defaultValue, ]) { @@ -63670,96 +60622,71 @@ audioItemIdMasterM3u8HeadContextNullableListFromJson( return defaultValue; } - return audioItemIdMasterM3u8HeadContext - .map((e) => audioItemIdMasterM3u8HeadContextFromJson(e.toString())) - .toList(); + return audioItemIdMasterM3u8HeadContext.map((e) => audioItemIdMasterM3u8HeadContextFromJson(e.toString())).toList(); } -String? -videosItemIdHls1PlaylistIdSegmentIdContainerGetSubtitleMethodNullableToJson( +String? videosItemIdHls1PlaylistIdSegmentIdContainerGetSubtitleMethodNullableToJson( enums.VideosItemIdHls1PlaylistIdSegmentIdContainerGetSubtitleMethod? - videosItemIdHls1PlaylistIdSegmentIdContainerGetSubtitleMethod, + videosItemIdHls1PlaylistIdSegmentIdContainerGetSubtitleMethod, ) { return videosItemIdHls1PlaylistIdSegmentIdContainerGetSubtitleMethod?.value; } String? videosItemIdHls1PlaylistIdSegmentIdContainerGetSubtitleMethodToJson( enums.VideosItemIdHls1PlaylistIdSegmentIdContainerGetSubtitleMethod - videosItemIdHls1PlaylistIdSegmentIdContainerGetSubtitleMethod, + videosItemIdHls1PlaylistIdSegmentIdContainerGetSubtitleMethod, ) { return videosItemIdHls1PlaylistIdSegmentIdContainerGetSubtitleMethod.value; } enums.VideosItemIdHls1PlaylistIdSegmentIdContainerGetSubtitleMethod -videosItemIdHls1PlaylistIdSegmentIdContainerGetSubtitleMethodFromJson( + videosItemIdHls1PlaylistIdSegmentIdContainerGetSubtitleMethodFromJson( Object? videosItemIdHls1PlaylistIdSegmentIdContainerGetSubtitleMethod, [ - enums.VideosItemIdHls1PlaylistIdSegmentIdContainerGetSubtitleMethod? - defaultValue, + enums.VideosItemIdHls1PlaylistIdSegmentIdContainerGetSubtitleMethod? defaultValue, ]) { - return enums - .VideosItemIdHls1PlaylistIdSegmentIdContainerGetSubtitleMethod - .values - .firstWhereOrNull( - (e) => - e.value == - videosItemIdHls1PlaylistIdSegmentIdContainerGetSubtitleMethod, - ) ?? + return enums.VideosItemIdHls1PlaylistIdSegmentIdContainerGetSubtitleMethod.values.firstWhereOrNull( + (e) => e.value == videosItemIdHls1PlaylistIdSegmentIdContainerGetSubtitleMethod, + ) ?? defaultValue ?? - enums - .VideosItemIdHls1PlaylistIdSegmentIdContainerGetSubtitleMethod - .swaggerGeneratedUnknown; + enums.VideosItemIdHls1PlaylistIdSegmentIdContainerGetSubtitleMethod.swaggerGeneratedUnknown; } enums.VideosItemIdHls1PlaylistIdSegmentIdContainerGetSubtitleMethod? -videosItemIdHls1PlaylistIdSegmentIdContainerGetSubtitleMethodNullableFromJson( + videosItemIdHls1PlaylistIdSegmentIdContainerGetSubtitleMethodNullableFromJson( Object? videosItemIdHls1PlaylistIdSegmentIdContainerGetSubtitleMethod, [ - enums.VideosItemIdHls1PlaylistIdSegmentIdContainerGetSubtitleMethod? - defaultValue, + enums.VideosItemIdHls1PlaylistIdSegmentIdContainerGetSubtitleMethod? defaultValue, ]) { if (videosItemIdHls1PlaylistIdSegmentIdContainerGetSubtitleMethod == null) { return null; } - return enums - .VideosItemIdHls1PlaylistIdSegmentIdContainerGetSubtitleMethod - .values - .firstWhereOrNull( - (e) => - e.value == - videosItemIdHls1PlaylistIdSegmentIdContainerGetSubtitleMethod, - ) ?? + return enums.VideosItemIdHls1PlaylistIdSegmentIdContainerGetSubtitleMethod.values.firstWhereOrNull( + (e) => e.value == videosItemIdHls1PlaylistIdSegmentIdContainerGetSubtitleMethod, + ) ?? defaultValue; } -String -videosItemIdHls1PlaylistIdSegmentIdContainerGetSubtitleMethodExplodedListToJson( +String videosItemIdHls1PlaylistIdSegmentIdContainerGetSubtitleMethodExplodedListToJson( List? - videosItemIdHls1PlaylistIdSegmentIdContainerGetSubtitleMethod, + videosItemIdHls1PlaylistIdSegmentIdContainerGetSubtitleMethod, ) { - return videosItemIdHls1PlaylistIdSegmentIdContainerGetSubtitleMethod - ?.map((e) => e.value!) - .join(',') ?? - ''; + return videosItemIdHls1PlaylistIdSegmentIdContainerGetSubtitleMethod?.map((e) => e.value!).join(',') ?? ''; } -List -videosItemIdHls1PlaylistIdSegmentIdContainerGetSubtitleMethodListToJson( +List videosItemIdHls1PlaylistIdSegmentIdContainerGetSubtitleMethodListToJson( List? - videosItemIdHls1PlaylistIdSegmentIdContainerGetSubtitleMethod, + videosItemIdHls1PlaylistIdSegmentIdContainerGetSubtitleMethod, ) { if (videosItemIdHls1PlaylistIdSegmentIdContainerGetSubtitleMethod == null) { return []; } - return videosItemIdHls1PlaylistIdSegmentIdContainerGetSubtitleMethod - .map((e) => e.value!) - .toList(); + return videosItemIdHls1PlaylistIdSegmentIdContainerGetSubtitleMethod.map((e) => e.value!).toList(); } List -videosItemIdHls1PlaylistIdSegmentIdContainerGetSubtitleMethodListFromJson( + videosItemIdHls1PlaylistIdSegmentIdContainerGetSubtitleMethodListFromJson( List? videosItemIdHls1PlaylistIdSegmentIdContainerGetSubtitleMethod, [ - List? - defaultValue, + List? defaultValue, ]) { if (videosItemIdHls1PlaylistIdSegmentIdContainerGetSubtitleMethod == null) { return defaultValue ?? []; @@ -63767,19 +60694,17 @@ videosItemIdHls1PlaylistIdSegmentIdContainerGetSubtitleMethodListFromJson( return videosItemIdHls1PlaylistIdSegmentIdContainerGetSubtitleMethod .map( - (e) => - videosItemIdHls1PlaylistIdSegmentIdContainerGetSubtitleMethodFromJson( - e.toString(), - ), + (e) => videosItemIdHls1PlaylistIdSegmentIdContainerGetSubtitleMethodFromJson( + e.toString(), + ), ) .toList(); } List? -videosItemIdHls1PlaylistIdSegmentIdContainerGetSubtitleMethodNullableListFromJson( + videosItemIdHls1PlaylistIdSegmentIdContainerGetSubtitleMethodNullableListFromJson( List? videosItemIdHls1PlaylistIdSegmentIdContainerGetSubtitleMethod, [ - List? - defaultValue, + List? defaultValue, ]) { if (videosItemIdHls1PlaylistIdSegmentIdContainerGetSubtitleMethod == null) { return defaultValue; @@ -63787,90 +60712,73 @@ videosItemIdHls1PlaylistIdSegmentIdContainerGetSubtitleMethodNullableListFromJso return videosItemIdHls1PlaylistIdSegmentIdContainerGetSubtitleMethod .map( - (e) => - videosItemIdHls1PlaylistIdSegmentIdContainerGetSubtitleMethodFromJson( - e.toString(), - ), + (e) => videosItemIdHls1PlaylistIdSegmentIdContainerGetSubtitleMethodFromJson( + e.toString(), + ), ) .toList(); } String? videosItemIdHls1PlaylistIdSegmentIdContainerGetContextNullableToJson( - enums.VideosItemIdHls1PlaylistIdSegmentIdContainerGetContext? - videosItemIdHls1PlaylistIdSegmentIdContainerGetContext, + enums.VideosItemIdHls1PlaylistIdSegmentIdContainerGetContext? videosItemIdHls1PlaylistIdSegmentIdContainerGetContext, ) { return videosItemIdHls1PlaylistIdSegmentIdContainerGetContext?.value; } String? videosItemIdHls1PlaylistIdSegmentIdContainerGetContextToJson( - enums.VideosItemIdHls1PlaylistIdSegmentIdContainerGetContext - videosItemIdHls1PlaylistIdSegmentIdContainerGetContext, + enums.VideosItemIdHls1PlaylistIdSegmentIdContainerGetContext videosItemIdHls1PlaylistIdSegmentIdContainerGetContext, ) { return videosItemIdHls1PlaylistIdSegmentIdContainerGetContext.value; } enums.VideosItemIdHls1PlaylistIdSegmentIdContainerGetContext -videosItemIdHls1PlaylistIdSegmentIdContainerGetContextFromJson( + videosItemIdHls1PlaylistIdSegmentIdContainerGetContextFromJson( Object? videosItemIdHls1PlaylistIdSegmentIdContainerGetContext, [ enums.VideosItemIdHls1PlaylistIdSegmentIdContainerGetContext? defaultValue, ]) { - return enums.VideosItemIdHls1PlaylistIdSegmentIdContainerGetContext.values - .firstWhereOrNull( - (e) => - e.value == - videosItemIdHls1PlaylistIdSegmentIdContainerGetContext, - ) ?? + return enums.VideosItemIdHls1PlaylistIdSegmentIdContainerGetContext.values.firstWhereOrNull( + (e) => e.value == videosItemIdHls1PlaylistIdSegmentIdContainerGetContext, + ) ?? defaultValue ?? - enums - .VideosItemIdHls1PlaylistIdSegmentIdContainerGetContext - .swaggerGeneratedUnknown; + enums.VideosItemIdHls1PlaylistIdSegmentIdContainerGetContext.swaggerGeneratedUnknown; } enums.VideosItemIdHls1PlaylistIdSegmentIdContainerGetContext? -videosItemIdHls1PlaylistIdSegmentIdContainerGetContextNullableFromJson( + videosItemIdHls1PlaylistIdSegmentIdContainerGetContextNullableFromJson( Object? videosItemIdHls1PlaylistIdSegmentIdContainerGetContext, [ enums.VideosItemIdHls1PlaylistIdSegmentIdContainerGetContext? defaultValue, ]) { if (videosItemIdHls1PlaylistIdSegmentIdContainerGetContext == null) { return null; } - return enums.VideosItemIdHls1PlaylistIdSegmentIdContainerGetContext.values - .firstWhereOrNull( - (e) => - e.value == - videosItemIdHls1PlaylistIdSegmentIdContainerGetContext, - ) ?? + return enums.VideosItemIdHls1PlaylistIdSegmentIdContainerGetContext.values.firstWhereOrNull( + (e) => e.value == videosItemIdHls1PlaylistIdSegmentIdContainerGetContext, + ) ?? defaultValue; } String videosItemIdHls1PlaylistIdSegmentIdContainerGetContextExplodedListToJson( List? - videosItemIdHls1PlaylistIdSegmentIdContainerGetContext, + videosItemIdHls1PlaylistIdSegmentIdContainerGetContext, ) { - return videosItemIdHls1PlaylistIdSegmentIdContainerGetContext - ?.map((e) => e.value!) - .join(',') ?? - ''; + return videosItemIdHls1PlaylistIdSegmentIdContainerGetContext?.map((e) => e.value!).join(',') ?? ''; } List videosItemIdHls1PlaylistIdSegmentIdContainerGetContextListToJson( List? - videosItemIdHls1PlaylistIdSegmentIdContainerGetContext, + videosItemIdHls1PlaylistIdSegmentIdContainerGetContext, ) { if (videosItemIdHls1PlaylistIdSegmentIdContainerGetContext == null) { return []; } - return videosItemIdHls1PlaylistIdSegmentIdContainerGetContext - .map((e) => e.value!) - .toList(); + return videosItemIdHls1PlaylistIdSegmentIdContainerGetContext.map((e) => e.value!).toList(); } List -videosItemIdHls1PlaylistIdSegmentIdContainerGetContextListFromJson( + videosItemIdHls1PlaylistIdSegmentIdContainerGetContextListFromJson( List? videosItemIdHls1PlaylistIdSegmentIdContainerGetContext, [ - List? - defaultValue, + List? defaultValue, ]) { if (videosItemIdHls1PlaylistIdSegmentIdContainerGetContext == null) { return defaultValue ?? []; @@ -63886,10 +60794,9 @@ videosItemIdHls1PlaylistIdSegmentIdContainerGetContextListFromJson( } List? -videosItemIdHls1PlaylistIdSegmentIdContainerGetContextNullableListFromJson( + videosItemIdHls1PlaylistIdSegmentIdContainerGetContextNullableListFromJson( List? videosItemIdHls1PlaylistIdSegmentIdContainerGetContext, [ - List? - defaultValue, + List? defaultValue, ]) { if (videosItemIdHls1PlaylistIdSegmentIdContainerGetContext == null) { return defaultValue; @@ -63905,21 +60812,18 @@ videosItemIdHls1PlaylistIdSegmentIdContainerGetContextNullableListFromJson( } String? videosItemIdLiveM3u8GetSubtitleMethodNullableToJson( - enums.VideosItemIdLiveM3u8GetSubtitleMethod? - videosItemIdLiveM3u8GetSubtitleMethod, + enums.VideosItemIdLiveM3u8GetSubtitleMethod? videosItemIdLiveM3u8GetSubtitleMethod, ) { return videosItemIdLiveM3u8GetSubtitleMethod?.value; } String? videosItemIdLiveM3u8GetSubtitleMethodToJson( - enums.VideosItemIdLiveM3u8GetSubtitleMethod - videosItemIdLiveM3u8GetSubtitleMethod, + enums.VideosItemIdLiveM3u8GetSubtitleMethod videosItemIdLiveM3u8GetSubtitleMethod, ) { return videosItemIdLiveM3u8GetSubtitleMethod.value; } -enums.VideosItemIdLiveM3u8GetSubtitleMethod -videosItemIdLiveM3u8GetSubtitleMethodFromJson( +enums.VideosItemIdLiveM3u8GetSubtitleMethod videosItemIdLiveM3u8GetSubtitleMethodFromJson( Object? videosItemIdLiveM3u8GetSubtitleMethod, [ enums.VideosItemIdLiveM3u8GetSubtitleMethod? defaultValue, ]) { @@ -63930,8 +60834,7 @@ videosItemIdLiveM3u8GetSubtitleMethodFromJson( enums.VideosItemIdLiveM3u8GetSubtitleMethod.swaggerGeneratedUnknown; } -enums.VideosItemIdLiveM3u8GetSubtitleMethod? -videosItemIdLiveM3u8GetSubtitleMethodNullableFromJson( +enums.VideosItemIdLiveM3u8GetSubtitleMethod? videosItemIdLiveM3u8GetSubtitleMethodNullableFromJson( Object? videosItemIdLiveM3u8GetSubtitleMethod, [ enums.VideosItemIdLiveM3u8GetSubtitleMethod? defaultValue, ]) { @@ -63945,18 +60848,13 @@ videosItemIdLiveM3u8GetSubtitleMethodNullableFromJson( } String videosItemIdLiveM3u8GetSubtitleMethodExplodedListToJson( - List? - videosItemIdLiveM3u8GetSubtitleMethod, + List? videosItemIdLiveM3u8GetSubtitleMethod, ) { - return videosItemIdLiveM3u8GetSubtitleMethod - ?.map((e) => e.value!) - .join(',') ?? - ''; + return videosItemIdLiveM3u8GetSubtitleMethod?.map((e) => e.value!).join(',') ?? ''; } List videosItemIdLiveM3u8GetSubtitleMethodListToJson( - List? - videosItemIdLiveM3u8GetSubtitleMethod, + List? videosItemIdLiveM3u8GetSubtitleMethod, ) { if (videosItemIdLiveM3u8GetSubtitleMethod == null) { return []; @@ -63965,8 +60863,7 @@ List videosItemIdLiveM3u8GetSubtitleMethodListToJson( return videosItemIdLiveM3u8GetSubtitleMethod.map((e) => e.value!).toList(); } -List -videosItemIdLiveM3u8GetSubtitleMethodListFromJson( +List videosItemIdLiveM3u8GetSubtitleMethodListFromJson( List? videosItemIdLiveM3u8GetSubtitleMethod, [ List? defaultValue, ]) { @@ -63979,8 +60876,7 @@ videosItemIdLiveM3u8GetSubtitleMethodListFromJson( .toList(); } -List? -videosItemIdLiveM3u8GetSubtitleMethodNullableListFromJson( +List? videosItemIdLiveM3u8GetSubtitleMethodNullableListFromJson( List? videosItemIdLiveM3u8GetSubtitleMethod, [ List? defaultValue, ]) { @@ -64016,8 +60912,7 @@ enums.VideosItemIdLiveM3u8GetContext videosItemIdLiveM3u8GetContextFromJson( enums.VideosItemIdLiveM3u8GetContext.swaggerGeneratedUnknown; } -enums.VideosItemIdLiveM3u8GetContext? -videosItemIdLiveM3u8GetContextNullableFromJson( +enums.VideosItemIdLiveM3u8GetContext? videosItemIdLiveM3u8GetContextNullableFromJson( Object? videosItemIdLiveM3u8GetContext, [ enums.VideosItemIdLiveM3u8GetContext? defaultValue, ]) { @@ -64046,8 +60941,7 @@ List videosItemIdLiveM3u8GetContextListToJson( return videosItemIdLiveM3u8GetContext.map((e) => e.value!).toList(); } -List -videosItemIdLiveM3u8GetContextListFromJson( +List videosItemIdLiveM3u8GetContextListFromJson( List? videosItemIdLiveM3u8GetContext, [ List? defaultValue, ]) { @@ -64055,13 +60949,10 @@ videosItemIdLiveM3u8GetContextListFromJson( return defaultValue ?? []; } - return videosItemIdLiveM3u8GetContext - .map((e) => videosItemIdLiveM3u8GetContextFromJson(e.toString())) - .toList(); + return videosItemIdLiveM3u8GetContext.map((e) => videosItemIdLiveM3u8GetContextFromJson(e.toString())).toList(); } -List? -videosItemIdLiveM3u8GetContextNullableListFromJson( +List? videosItemIdLiveM3u8GetContextNullableListFromJson( List? videosItemIdLiveM3u8GetContext, [ List? defaultValue, ]) { @@ -64069,27 +60960,22 @@ videosItemIdLiveM3u8GetContextNullableListFromJson( return defaultValue; } - return videosItemIdLiveM3u8GetContext - .map((e) => videosItemIdLiveM3u8GetContextFromJson(e.toString())) - .toList(); + return videosItemIdLiveM3u8GetContext.map((e) => videosItemIdLiveM3u8GetContextFromJson(e.toString())).toList(); } String? videosItemIdMainM3u8GetSubtitleMethodNullableToJson( - enums.VideosItemIdMainM3u8GetSubtitleMethod? - videosItemIdMainM3u8GetSubtitleMethod, + enums.VideosItemIdMainM3u8GetSubtitleMethod? videosItemIdMainM3u8GetSubtitleMethod, ) { return videosItemIdMainM3u8GetSubtitleMethod?.value; } String? videosItemIdMainM3u8GetSubtitleMethodToJson( - enums.VideosItemIdMainM3u8GetSubtitleMethod - videosItemIdMainM3u8GetSubtitleMethod, + enums.VideosItemIdMainM3u8GetSubtitleMethod videosItemIdMainM3u8GetSubtitleMethod, ) { return videosItemIdMainM3u8GetSubtitleMethod.value; } -enums.VideosItemIdMainM3u8GetSubtitleMethod -videosItemIdMainM3u8GetSubtitleMethodFromJson( +enums.VideosItemIdMainM3u8GetSubtitleMethod videosItemIdMainM3u8GetSubtitleMethodFromJson( Object? videosItemIdMainM3u8GetSubtitleMethod, [ enums.VideosItemIdMainM3u8GetSubtitleMethod? defaultValue, ]) { @@ -64100,8 +60986,7 @@ videosItemIdMainM3u8GetSubtitleMethodFromJson( enums.VideosItemIdMainM3u8GetSubtitleMethod.swaggerGeneratedUnknown; } -enums.VideosItemIdMainM3u8GetSubtitleMethod? -videosItemIdMainM3u8GetSubtitleMethodNullableFromJson( +enums.VideosItemIdMainM3u8GetSubtitleMethod? videosItemIdMainM3u8GetSubtitleMethodNullableFromJson( Object? videosItemIdMainM3u8GetSubtitleMethod, [ enums.VideosItemIdMainM3u8GetSubtitleMethod? defaultValue, ]) { @@ -64115,18 +61000,13 @@ videosItemIdMainM3u8GetSubtitleMethodNullableFromJson( } String videosItemIdMainM3u8GetSubtitleMethodExplodedListToJson( - List? - videosItemIdMainM3u8GetSubtitleMethod, + List? videosItemIdMainM3u8GetSubtitleMethod, ) { - return videosItemIdMainM3u8GetSubtitleMethod - ?.map((e) => e.value!) - .join(',') ?? - ''; + return videosItemIdMainM3u8GetSubtitleMethod?.map((e) => e.value!).join(',') ?? ''; } List videosItemIdMainM3u8GetSubtitleMethodListToJson( - List? - videosItemIdMainM3u8GetSubtitleMethod, + List? videosItemIdMainM3u8GetSubtitleMethod, ) { if (videosItemIdMainM3u8GetSubtitleMethod == null) { return []; @@ -64135,8 +61015,7 @@ List videosItemIdMainM3u8GetSubtitleMethodListToJson( return videosItemIdMainM3u8GetSubtitleMethod.map((e) => e.value!).toList(); } -List -videosItemIdMainM3u8GetSubtitleMethodListFromJson( +List videosItemIdMainM3u8GetSubtitleMethodListFromJson( List? videosItemIdMainM3u8GetSubtitleMethod, [ List? defaultValue, ]) { @@ -64149,8 +61028,7 @@ videosItemIdMainM3u8GetSubtitleMethodListFromJson( .toList(); } -List? -videosItemIdMainM3u8GetSubtitleMethodNullableListFromJson( +List? videosItemIdMainM3u8GetSubtitleMethodNullableListFromJson( List? videosItemIdMainM3u8GetSubtitleMethod, [ List? defaultValue, ]) { @@ -64186,8 +61064,7 @@ enums.VideosItemIdMainM3u8GetContext videosItemIdMainM3u8GetContextFromJson( enums.VideosItemIdMainM3u8GetContext.swaggerGeneratedUnknown; } -enums.VideosItemIdMainM3u8GetContext? -videosItemIdMainM3u8GetContextNullableFromJson( +enums.VideosItemIdMainM3u8GetContext? videosItemIdMainM3u8GetContextNullableFromJson( Object? videosItemIdMainM3u8GetContext, [ enums.VideosItemIdMainM3u8GetContext? defaultValue, ]) { @@ -64216,8 +61093,7 @@ List videosItemIdMainM3u8GetContextListToJson( return videosItemIdMainM3u8GetContext.map((e) => e.value!).toList(); } -List -videosItemIdMainM3u8GetContextListFromJson( +List videosItemIdMainM3u8GetContextListFromJson( List? videosItemIdMainM3u8GetContext, [ List? defaultValue, ]) { @@ -64225,13 +61101,10 @@ videosItemIdMainM3u8GetContextListFromJson( return defaultValue ?? []; } - return videosItemIdMainM3u8GetContext - .map((e) => videosItemIdMainM3u8GetContextFromJson(e.toString())) - .toList(); + return videosItemIdMainM3u8GetContext.map((e) => videosItemIdMainM3u8GetContextFromJson(e.toString())).toList(); } -List? -videosItemIdMainM3u8GetContextNullableListFromJson( +List? videosItemIdMainM3u8GetContextNullableListFromJson( List? videosItemIdMainM3u8GetContext, [ List? defaultValue, ]) { @@ -64239,27 +61112,22 @@ videosItemIdMainM3u8GetContextNullableListFromJson( return defaultValue; } - return videosItemIdMainM3u8GetContext - .map((e) => videosItemIdMainM3u8GetContextFromJson(e.toString())) - .toList(); + return videosItemIdMainM3u8GetContext.map((e) => videosItemIdMainM3u8GetContextFromJson(e.toString())).toList(); } String? videosItemIdMasterM3u8GetSubtitleMethodNullableToJson( - enums.VideosItemIdMasterM3u8GetSubtitleMethod? - videosItemIdMasterM3u8GetSubtitleMethod, + enums.VideosItemIdMasterM3u8GetSubtitleMethod? videosItemIdMasterM3u8GetSubtitleMethod, ) { return videosItemIdMasterM3u8GetSubtitleMethod?.value; } String? videosItemIdMasterM3u8GetSubtitleMethodToJson( - enums.VideosItemIdMasterM3u8GetSubtitleMethod - videosItemIdMasterM3u8GetSubtitleMethod, + enums.VideosItemIdMasterM3u8GetSubtitleMethod videosItemIdMasterM3u8GetSubtitleMethod, ) { return videosItemIdMasterM3u8GetSubtitleMethod.value; } -enums.VideosItemIdMasterM3u8GetSubtitleMethod -videosItemIdMasterM3u8GetSubtitleMethodFromJson( +enums.VideosItemIdMasterM3u8GetSubtitleMethod videosItemIdMasterM3u8GetSubtitleMethodFromJson( Object? videosItemIdMasterM3u8GetSubtitleMethod, [ enums.VideosItemIdMasterM3u8GetSubtitleMethod? defaultValue, ]) { @@ -64270,8 +61138,7 @@ videosItemIdMasterM3u8GetSubtitleMethodFromJson( enums.VideosItemIdMasterM3u8GetSubtitleMethod.swaggerGeneratedUnknown; } -enums.VideosItemIdMasterM3u8GetSubtitleMethod? -videosItemIdMasterM3u8GetSubtitleMethodNullableFromJson( +enums.VideosItemIdMasterM3u8GetSubtitleMethod? videosItemIdMasterM3u8GetSubtitleMethodNullableFromJson( Object? videosItemIdMasterM3u8GetSubtitleMethod, [ enums.VideosItemIdMasterM3u8GetSubtitleMethod? defaultValue, ]) { @@ -64285,18 +61152,13 @@ videosItemIdMasterM3u8GetSubtitleMethodNullableFromJson( } String videosItemIdMasterM3u8GetSubtitleMethodExplodedListToJson( - List? - videosItemIdMasterM3u8GetSubtitleMethod, + List? videosItemIdMasterM3u8GetSubtitleMethod, ) { - return videosItemIdMasterM3u8GetSubtitleMethod - ?.map((e) => e.value!) - .join(',') ?? - ''; + return videosItemIdMasterM3u8GetSubtitleMethod?.map((e) => e.value!).join(',') ?? ''; } List videosItemIdMasterM3u8GetSubtitleMethodListToJson( - List? - videosItemIdMasterM3u8GetSubtitleMethod, + List? videosItemIdMasterM3u8GetSubtitleMethod, ) { if (videosItemIdMasterM3u8GetSubtitleMethod == null) { return []; @@ -64305,8 +61167,7 @@ List videosItemIdMasterM3u8GetSubtitleMethodListToJson( return videosItemIdMasterM3u8GetSubtitleMethod.map((e) => e.value!).toList(); } -List -videosItemIdMasterM3u8GetSubtitleMethodListFromJson( +List videosItemIdMasterM3u8GetSubtitleMethodListFromJson( List? videosItemIdMasterM3u8GetSubtitleMethod, [ List? defaultValue, ]) { @@ -64319,8 +61180,7 @@ videosItemIdMasterM3u8GetSubtitleMethodListFromJson( .toList(); } -List? -videosItemIdMasterM3u8GetSubtitleMethodNullableListFromJson( +List? videosItemIdMasterM3u8GetSubtitleMethodNullableListFromJson( List? videosItemIdMasterM3u8GetSubtitleMethod, [ List? defaultValue, ]) { @@ -64356,8 +61216,7 @@ enums.VideosItemIdMasterM3u8GetContext videosItemIdMasterM3u8GetContextFromJson( enums.VideosItemIdMasterM3u8GetContext.swaggerGeneratedUnknown; } -enums.VideosItemIdMasterM3u8GetContext? -videosItemIdMasterM3u8GetContextNullableFromJson( +enums.VideosItemIdMasterM3u8GetContext? videosItemIdMasterM3u8GetContextNullableFromJson( Object? videosItemIdMasterM3u8GetContext, [ enums.VideosItemIdMasterM3u8GetContext? defaultValue, ]) { @@ -64371,15 +61230,13 @@ videosItemIdMasterM3u8GetContextNullableFromJson( } String videosItemIdMasterM3u8GetContextExplodedListToJson( - List? - videosItemIdMasterM3u8GetContext, + List? videosItemIdMasterM3u8GetContext, ) { return videosItemIdMasterM3u8GetContext?.map((e) => e.value!).join(',') ?? ''; } List videosItemIdMasterM3u8GetContextListToJson( - List? - videosItemIdMasterM3u8GetContext, + List? videosItemIdMasterM3u8GetContext, ) { if (videosItemIdMasterM3u8GetContext == null) { return []; @@ -64388,8 +61245,7 @@ List videosItemIdMasterM3u8GetContextListToJson( return videosItemIdMasterM3u8GetContext.map((e) => e.value!).toList(); } -List -videosItemIdMasterM3u8GetContextListFromJson( +List videosItemIdMasterM3u8GetContextListFromJson( List? videosItemIdMasterM3u8GetContext, [ List? defaultValue, ]) { @@ -64397,13 +61253,10 @@ videosItemIdMasterM3u8GetContextListFromJson( return defaultValue ?? []; } - return videosItemIdMasterM3u8GetContext - .map((e) => videosItemIdMasterM3u8GetContextFromJson(e.toString())) - .toList(); + return videosItemIdMasterM3u8GetContext.map((e) => videosItemIdMasterM3u8GetContextFromJson(e.toString())).toList(); } -List? -videosItemIdMasterM3u8GetContextNullableListFromJson( +List? videosItemIdMasterM3u8GetContextNullableListFromJson( List? videosItemIdMasterM3u8GetContext, [ List? defaultValue, ]) { @@ -64411,27 +61264,22 @@ videosItemIdMasterM3u8GetContextNullableListFromJson( return defaultValue; } - return videosItemIdMasterM3u8GetContext - .map((e) => videosItemIdMasterM3u8GetContextFromJson(e.toString())) - .toList(); + return videosItemIdMasterM3u8GetContext.map((e) => videosItemIdMasterM3u8GetContextFromJson(e.toString())).toList(); } String? videosItemIdMasterM3u8HeadSubtitleMethodNullableToJson( - enums.VideosItemIdMasterM3u8HeadSubtitleMethod? - videosItemIdMasterM3u8HeadSubtitleMethod, + enums.VideosItemIdMasterM3u8HeadSubtitleMethod? videosItemIdMasterM3u8HeadSubtitleMethod, ) { return videosItemIdMasterM3u8HeadSubtitleMethod?.value; } String? videosItemIdMasterM3u8HeadSubtitleMethodToJson( - enums.VideosItemIdMasterM3u8HeadSubtitleMethod - videosItemIdMasterM3u8HeadSubtitleMethod, + enums.VideosItemIdMasterM3u8HeadSubtitleMethod videosItemIdMasterM3u8HeadSubtitleMethod, ) { return videosItemIdMasterM3u8HeadSubtitleMethod.value; } -enums.VideosItemIdMasterM3u8HeadSubtitleMethod -videosItemIdMasterM3u8HeadSubtitleMethodFromJson( +enums.VideosItemIdMasterM3u8HeadSubtitleMethod videosItemIdMasterM3u8HeadSubtitleMethodFromJson( Object? videosItemIdMasterM3u8HeadSubtitleMethod, [ enums.VideosItemIdMasterM3u8HeadSubtitleMethod? defaultValue, ]) { @@ -64442,8 +61290,7 @@ videosItemIdMasterM3u8HeadSubtitleMethodFromJson( enums.VideosItemIdMasterM3u8HeadSubtitleMethod.swaggerGeneratedUnknown; } -enums.VideosItemIdMasterM3u8HeadSubtitleMethod? -videosItemIdMasterM3u8HeadSubtitleMethodNullableFromJson( +enums.VideosItemIdMasterM3u8HeadSubtitleMethod? videosItemIdMasterM3u8HeadSubtitleMethodNullableFromJson( Object? videosItemIdMasterM3u8HeadSubtitleMethod, [ enums.VideosItemIdMasterM3u8HeadSubtitleMethod? defaultValue, ]) { @@ -64457,18 +61304,13 @@ videosItemIdMasterM3u8HeadSubtitleMethodNullableFromJson( } String videosItemIdMasterM3u8HeadSubtitleMethodExplodedListToJson( - List? - videosItemIdMasterM3u8HeadSubtitleMethod, + List? videosItemIdMasterM3u8HeadSubtitleMethod, ) { - return videosItemIdMasterM3u8HeadSubtitleMethod - ?.map((e) => e.value!) - .join(',') ?? - ''; + return videosItemIdMasterM3u8HeadSubtitleMethod?.map((e) => e.value!).join(',') ?? ''; } List videosItemIdMasterM3u8HeadSubtitleMethodListToJson( - List? - videosItemIdMasterM3u8HeadSubtitleMethod, + List? videosItemIdMasterM3u8HeadSubtitleMethod, ) { if (videosItemIdMasterM3u8HeadSubtitleMethod == null) { return []; @@ -64477,8 +61319,7 @@ List videosItemIdMasterM3u8HeadSubtitleMethodListToJson( return videosItemIdMasterM3u8HeadSubtitleMethod.map((e) => e.value!).toList(); } -List -videosItemIdMasterM3u8HeadSubtitleMethodListFromJson( +List videosItemIdMasterM3u8HeadSubtitleMethodListFromJson( List? videosItemIdMasterM3u8HeadSubtitleMethod, [ List? defaultValue, ]) { @@ -64493,8 +61334,7 @@ videosItemIdMasterM3u8HeadSubtitleMethodListFromJson( .toList(); } -List? -videosItemIdMasterM3u8HeadSubtitleMethodNullableListFromJson( +List? videosItemIdMasterM3u8HeadSubtitleMethodNullableListFromJson( List? videosItemIdMasterM3u8HeadSubtitleMethod, [ List? defaultValue, ]) { @@ -64521,8 +61361,7 @@ String? videosItemIdMasterM3u8HeadContextToJson( return videosItemIdMasterM3u8HeadContext.value; } -enums.VideosItemIdMasterM3u8HeadContext -videosItemIdMasterM3u8HeadContextFromJson( +enums.VideosItemIdMasterM3u8HeadContext videosItemIdMasterM3u8HeadContextFromJson( Object? videosItemIdMasterM3u8HeadContext, [ enums.VideosItemIdMasterM3u8HeadContext? defaultValue, ]) { @@ -64533,8 +61372,7 @@ videosItemIdMasterM3u8HeadContextFromJson( enums.VideosItemIdMasterM3u8HeadContext.swaggerGeneratedUnknown; } -enums.VideosItemIdMasterM3u8HeadContext? -videosItemIdMasterM3u8HeadContextNullableFromJson( +enums.VideosItemIdMasterM3u8HeadContext? videosItemIdMasterM3u8HeadContextNullableFromJson( Object? videosItemIdMasterM3u8HeadContext, [ enums.VideosItemIdMasterM3u8HeadContext? defaultValue, ]) { @@ -64548,16 +61386,13 @@ videosItemIdMasterM3u8HeadContextNullableFromJson( } String videosItemIdMasterM3u8HeadContextExplodedListToJson( - List? - videosItemIdMasterM3u8HeadContext, + List? videosItemIdMasterM3u8HeadContext, ) { - return videosItemIdMasterM3u8HeadContext?.map((e) => e.value!).join(',') ?? - ''; + return videosItemIdMasterM3u8HeadContext?.map((e) => e.value!).join(',') ?? ''; } List videosItemIdMasterM3u8HeadContextListToJson( - List? - videosItemIdMasterM3u8HeadContext, + List? videosItemIdMasterM3u8HeadContext, ) { if (videosItemIdMasterM3u8HeadContext == null) { return []; @@ -64566,8 +61401,7 @@ List videosItemIdMasterM3u8HeadContextListToJson( return videosItemIdMasterM3u8HeadContext.map((e) => e.value!).toList(); } -List -videosItemIdMasterM3u8HeadContextListFromJson( +List videosItemIdMasterM3u8HeadContextListFromJson( List? videosItemIdMasterM3u8HeadContext, [ List? defaultValue, ]) { @@ -64575,13 +61409,10 @@ videosItemIdMasterM3u8HeadContextListFromJson( return defaultValue ?? []; } - return videosItemIdMasterM3u8HeadContext - .map((e) => videosItemIdMasterM3u8HeadContextFromJson(e.toString())) - .toList(); + return videosItemIdMasterM3u8HeadContext.map((e) => videosItemIdMasterM3u8HeadContextFromJson(e.toString())).toList(); } -List? -videosItemIdMasterM3u8HeadContextNullableListFromJson( +List? videosItemIdMasterM3u8HeadContextNullableListFromJson( List? videosItemIdMasterM3u8HeadContext, [ List? defaultValue, ]) { @@ -64589,80 +61420,64 @@ videosItemIdMasterM3u8HeadContextNullableListFromJson( return defaultValue; } - return videosItemIdMasterM3u8HeadContext - .map((e) => videosItemIdMasterM3u8HeadContextFromJson(e.toString())) - .toList(); + return videosItemIdMasterM3u8HeadContext.map((e) => videosItemIdMasterM3u8HeadContextFromJson(e.toString())).toList(); } String? artistsNameImagesImageTypeImageIndexGetImageTypeNullableToJson( - enums.ArtistsNameImagesImageTypeImageIndexGetImageType? - artistsNameImagesImageTypeImageIndexGetImageType, + enums.ArtistsNameImagesImageTypeImageIndexGetImageType? artistsNameImagesImageTypeImageIndexGetImageType, ) { return artistsNameImagesImageTypeImageIndexGetImageType?.value; } String? artistsNameImagesImageTypeImageIndexGetImageTypeToJson( - enums.ArtistsNameImagesImageTypeImageIndexGetImageType - artistsNameImagesImageTypeImageIndexGetImageType, + enums.ArtistsNameImagesImageTypeImageIndexGetImageType artistsNameImagesImageTypeImageIndexGetImageType, ) { return artistsNameImagesImageTypeImageIndexGetImageType.value; } -enums.ArtistsNameImagesImageTypeImageIndexGetImageType -artistsNameImagesImageTypeImageIndexGetImageTypeFromJson( +enums.ArtistsNameImagesImageTypeImageIndexGetImageType artistsNameImagesImageTypeImageIndexGetImageTypeFromJson( Object? artistsNameImagesImageTypeImageIndexGetImageType, [ enums.ArtistsNameImagesImageTypeImageIndexGetImageType? defaultValue, ]) { - return enums.ArtistsNameImagesImageTypeImageIndexGetImageType.values - .firstWhereOrNull( - (e) => e.value == artistsNameImagesImageTypeImageIndexGetImageType, - ) ?? + return enums.ArtistsNameImagesImageTypeImageIndexGetImageType.values.firstWhereOrNull( + (e) => e.value == artistsNameImagesImageTypeImageIndexGetImageType, + ) ?? defaultValue ?? - enums - .ArtistsNameImagesImageTypeImageIndexGetImageType - .swaggerGeneratedUnknown; + enums.ArtistsNameImagesImageTypeImageIndexGetImageType.swaggerGeneratedUnknown; } enums.ArtistsNameImagesImageTypeImageIndexGetImageType? -artistsNameImagesImageTypeImageIndexGetImageTypeNullableFromJson( + artistsNameImagesImageTypeImageIndexGetImageTypeNullableFromJson( Object? artistsNameImagesImageTypeImageIndexGetImageType, [ enums.ArtistsNameImagesImageTypeImageIndexGetImageType? defaultValue, ]) { if (artistsNameImagesImageTypeImageIndexGetImageType == null) { return null; } - return enums.ArtistsNameImagesImageTypeImageIndexGetImageType.values - .firstWhereOrNull( - (e) => e.value == artistsNameImagesImageTypeImageIndexGetImageType, - ) ?? + return enums.ArtistsNameImagesImageTypeImageIndexGetImageType.values.firstWhereOrNull( + (e) => e.value == artistsNameImagesImageTypeImageIndexGetImageType, + ) ?? defaultValue; } String artistsNameImagesImageTypeImageIndexGetImageTypeExplodedListToJson( - List? - artistsNameImagesImageTypeImageIndexGetImageType, + List? artistsNameImagesImageTypeImageIndexGetImageType, ) { - return artistsNameImagesImageTypeImageIndexGetImageType - ?.map((e) => e.value!) - .join(',') ?? - ''; + return artistsNameImagesImageTypeImageIndexGetImageType?.map((e) => e.value!).join(',') ?? ''; } List artistsNameImagesImageTypeImageIndexGetImageTypeListToJson( - List? - artistsNameImagesImageTypeImageIndexGetImageType, + List? artistsNameImagesImageTypeImageIndexGetImageType, ) { if (artistsNameImagesImageTypeImageIndexGetImageType == null) { return []; } - return artistsNameImagesImageTypeImageIndexGetImageType - .map((e) => e.value!) - .toList(); + return artistsNameImagesImageTypeImageIndexGetImageType.map((e) => e.value!).toList(); } List -artistsNameImagesImageTypeImageIndexGetImageTypeListFromJson( + artistsNameImagesImageTypeImageIndexGetImageTypeListFromJson( List? artistsNameImagesImageTypeImageIndexGetImageType, [ List? defaultValue, ]) { @@ -64680,7 +61495,7 @@ artistsNameImagesImageTypeImageIndexGetImageTypeListFromJson( } List? -artistsNameImagesImageTypeImageIndexGetImageTypeNullableListFromJson( + artistsNameImagesImageTypeImageIndexGetImageTypeNullableListFromJson( List? artistsNameImagesImageTypeImageIndexGetImageType, [ List? defaultValue, ]) { @@ -64698,74 +61513,58 @@ artistsNameImagesImageTypeImageIndexGetImageTypeNullableListFromJson( } String? artistsNameImagesImageTypeImageIndexGetFormatNullableToJson( - enums.ArtistsNameImagesImageTypeImageIndexGetFormat? - artistsNameImagesImageTypeImageIndexGetFormat, + enums.ArtistsNameImagesImageTypeImageIndexGetFormat? artistsNameImagesImageTypeImageIndexGetFormat, ) { return artistsNameImagesImageTypeImageIndexGetFormat?.value; } String? artistsNameImagesImageTypeImageIndexGetFormatToJson( - enums.ArtistsNameImagesImageTypeImageIndexGetFormat - artistsNameImagesImageTypeImageIndexGetFormat, + enums.ArtistsNameImagesImageTypeImageIndexGetFormat artistsNameImagesImageTypeImageIndexGetFormat, ) { return artistsNameImagesImageTypeImageIndexGetFormat.value; } -enums.ArtistsNameImagesImageTypeImageIndexGetFormat -artistsNameImagesImageTypeImageIndexGetFormatFromJson( +enums.ArtistsNameImagesImageTypeImageIndexGetFormat artistsNameImagesImageTypeImageIndexGetFormatFromJson( Object? artistsNameImagesImageTypeImageIndexGetFormat, [ enums.ArtistsNameImagesImageTypeImageIndexGetFormat? defaultValue, ]) { - return enums.ArtistsNameImagesImageTypeImageIndexGetFormat.values - .firstWhereOrNull( - (e) => e.value == artistsNameImagesImageTypeImageIndexGetFormat, - ) ?? + return enums.ArtistsNameImagesImageTypeImageIndexGetFormat.values.firstWhereOrNull( + (e) => e.value == artistsNameImagesImageTypeImageIndexGetFormat, + ) ?? defaultValue ?? - enums - .ArtistsNameImagesImageTypeImageIndexGetFormat - .swaggerGeneratedUnknown; + enums.ArtistsNameImagesImageTypeImageIndexGetFormat.swaggerGeneratedUnknown; } -enums.ArtistsNameImagesImageTypeImageIndexGetFormat? -artistsNameImagesImageTypeImageIndexGetFormatNullableFromJson( +enums.ArtistsNameImagesImageTypeImageIndexGetFormat? artistsNameImagesImageTypeImageIndexGetFormatNullableFromJson( Object? artistsNameImagesImageTypeImageIndexGetFormat, [ enums.ArtistsNameImagesImageTypeImageIndexGetFormat? defaultValue, ]) { if (artistsNameImagesImageTypeImageIndexGetFormat == null) { return null; } - return enums.ArtistsNameImagesImageTypeImageIndexGetFormat.values - .firstWhereOrNull( - (e) => e.value == artistsNameImagesImageTypeImageIndexGetFormat, - ) ?? + return enums.ArtistsNameImagesImageTypeImageIndexGetFormat.values.firstWhereOrNull( + (e) => e.value == artistsNameImagesImageTypeImageIndexGetFormat, + ) ?? defaultValue; } String artistsNameImagesImageTypeImageIndexGetFormatExplodedListToJson( - List? - artistsNameImagesImageTypeImageIndexGetFormat, + List? artistsNameImagesImageTypeImageIndexGetFormat, ) { - return artistsNameImagesImageTypeImageIndexGetFormat - ?.map((e) => e.value!) - .join(',') ?? - ''; + return artistsNameImagesImageTypeImageIndexGetFormat?.map((e) => e.value!).join(',') ?? ''; } List artistsNameImagesImageTypeImageIndexGetFormatListToJson( - List? - artistsNameImagesImageTypeImageIndexGetFormat, + List? artistsNameImagesImageTypeImageIndexGetFormat, ) { if (artistsNameImagesImageTypeImageIndexGetFormat == null) { return []; } - return artistsNameImagesImageTypeImageIndexGetFormat - .map((e) => e.value!) - .toList(); + return artistsNameImagesImageTypeImageIndexGetFormat.map((e) => e.value!).toList(); } -List -artistsNameImagesImageTypeImageIndexGetFormatListFromJson( +List artistsNameImagesImageTypeImageIndexGetFormatListFromJson( List? artistsNameImagesImageTypeImageIndexGetFormat, [ List? defaultValue, ]) { @@ -64775,14 +61574,13 @@ artistsNameImagesImageTypeImageIndexGetFormatListFromJson( return artistsNameImagesImageTypeImageIndexGetFormat .map( - (e) => - artistsNameImagesImageTypeImageIndexGetFormatFromJson(e.toString()), + (e) => artistsNameImagesImageTypeImageIndexGetFormatFromJson(e.toString()), ) .toList(); } List? -artistsNameImagesImageTypeImageIndexGetFormatNullableListFromJson( + artistsNameImagesImageTypeImageIndexGetFormatNullableListFromJson( List? artistsNameImagesImageTypeImageIndexGetFormat, [ List? defaultValue, ]) { @@ -64792,81 +61590,66 @@ artistsNameImagesImageTypeImageIndexGetFormatNullableListFromJson( return artistsNameImagesImageTypeImageIndexGetFormat .map( - (e) => - artistsNameImagesImageTypeImageIndexGetFormatFromJson(e.toString()), + (e) => artistsNameImagesImageTypeImageIndexGetFormatFromJson(e.toString()), ) .toList(); } String? artistsNameImagesImageTypeImageIndexHeadImageTypeNullableToJson( - enums.ArtistsNameImagesImageTypeImageIndexHeadImageType? - artistsNameImagesImageTypeImageIndexHeadImageType, + enums.ArtistsNameImagesImageTypeImageIndexHeadImageType? artistsNameImagesImageTypeImageIndexHeadImageType, ) { return artistsNameImagesImageTypeImageIndexHeadImageType?.value; } String? artistsNameImagesImageTypeImageIndexHeadImageTypeToJson( - enums.ArtistsNameImagesImageTypeImageIndexHeadImageType - artistsNameImagesImageTypeImageIndexHeadImageType, + enums.ArtistsNameImagesImageTypeImageIndexHeadImageType artistsNameImagesImageTypeImageIndexHeadImageType, ) { return artistsNameImagesImageTypeImageIndexHeadImageType.value; } -enums.ArtistsNameImagesImageTypeImageIndexHeadImageType -artistsNameImagesImageTypeImageIndexHeadImageTypeFromJson( +enums.ArtistsNameImagesImageTypeImageIndexHeadImageType artistsNameImagesImageTypeImageIndexHeadImageTypeFromJson( Object? artistsNameImagesImageTypeImageIndexHeadImageType, [ enums.ArtistsNameImagesImageTypeImageIndexHeadImageType? defaultValue, ]) { - return enums.ArtistsNameImagesImageTypeImageIndexHeadImageType.values - .firstWhereOrNull( - (e) => e.value == artistsNameImagesImageTypeImageIndexHeadImageType, - ) ?? + return enums.ArtistsNameImagesImageTypeImageIndexHeadImageType.values.firstWhereOrNull( + (e) => e.value == artistsNameImagesImageTypeImageIndexHeadImageType, + ) ?? defaultValue ?? - enums - .ArtistsNameImagesImageTypeImageIndexHeadImageType - .swaggerGeneratedUnknown; + enums.ArtistsNameImagesImageTypeImageIndexHeadImageType.swaggerGeneratedUnknown; } enums.ArtistsNameImagesImageTypeImageIndexHeadImageType? -artistsNameImagesImageTypeImageIndexHeadImageTypeNullableFromJson( + artistsNameImagesImageTypeImageIndexHeadImageTypeNullableFromJson( Object? artistsNameImagesImageTypeImageIndexHeadImageType, [ enums.ArtistsNameImagesImageTypeImageIndexHeadImageType? defaultValue, ]) { if (artistsNameImagesImageTypeImageIndexHeadImageType == null) { return null; } - return enums.ArtistsNameImagesImageTypeImageIndexHeadImageType.values - .firstWhereOrNull( - (e) => e.value == artistsNameImagesImageTypeImageIndexHeadImageType, - ) ?? + return enums.ArtistsNameImagesImageTypeImageIndexHeadImageType.values.firstWhereOrNull( + (e) => e.value == artistsNameImagesImageTypeImageIndexHeadImageType, + ) ?? defaultValue; } String artistsNameImagesImageTypeImageIndexHeadImageTypeExplodedListToJson( - List? - artistsNameImagesImageTypeImageIndexHeadImageType, + List? artistsNameImagesImageTypeImageIndexHeadImageType, ) { - return artistsNameImagesImageTypeImageIndexHeadImageType - ?.map((e) => e.value!) - .join(',') ?? - ''; + return artistsNameImagesImageTypeImageIndexHeadImageType?.map((e) => e.value!).join(',') ?? ''; } List artistsNameImagesImageTypeImageIndexHeadImageTypeListToJson( - List? - artistsNameImagesImageTypeImageIndexHeadImageType, + List? artistsNameImagesImageTypeImageIndexHeadImageType, ) { if (artistsNameImagesImageTypeImageIndexHeadImageType == null) { return []; } - return artistsNameImagesImageTypeImageIndexHeadImageType - .map((e) => e.value!) - .toList(); + return artistsNameImagesImageTypeImageIndexHeadImageType.map((e) => e.value!).toList(); } List -artistsNameImagesImageTypeImageIndexHeadImageTypeListFromJson( + artistsNameImagesImageTypeImageIndexHeadImageTypeListFromJson( List? artistsNameImagesImageTypeImageIndexHeadImageType, [ List? defaultValue, ]) { @@ -64884,7 +61667,7 @@ artistsNameImagesImageTypeImageIndexHeadImageTypeListFromJson( } List? -artistsNameImagesImageTypeImageIndexHeadImageTypeNullableListFromJson( + artistsNameImagesImageTypeImageIndexHeadImageTypeNullableListFromJson( List? artistsNameImagesImageTypeImageIndexHeadImageType, [ List? defaultValue, ]) { @@ -64902,74 +61685,58 @@ artistsNameImagesImageTypeImageIndexHeadImageTypeNullableListFromJson( } String? artistsNameImagesImageTypeImageIndexHeadFormatNullableToJson( - enums.ArtistsNameImagesImageTypeImageIndexHeadFormat? - artistsNameImagesImageTypeImageIndexHeadFormat, + enums.ArtistsNameImagesImageTypeImageIndexHeadFormat? artistsNameImagesImageTypeImageIndexHeadFormat, ) { return artistsNameImagesImageTypeImageIndexHeadFormat?.value; } String? artistsNameImagesImageTypeImageIndexHeadFormatToJson( - enums.ArtistsNameImagesImageTypeImageIndexHeadFormat - artistsNameImagesImageTypeImageIndexHeadFormat, + enums.ArtistsNameImagesImageTypeImageIndexHeadFormat artistsNameImagesImageTypeImageIndexHeadFormat, ) { return artistsNameImagesImageTypeImageIndexHeadFormat.value; } -enums.ArtistsNameImagesImageTypeImageIndexHeadFormat -artistsNameImagesImageTypeImageIndexHeadFormatFromJson( +enums.ArtistsNameImagesImageTypeImageIndexHeadFormat artistsNameImagesImageTypeImageIndexHeadFormatFromJson( Object? artistsNameImagesImageTypeImageIndexHeadFormat, [ enums.ArtistsNameImagesImageTypeImageIndexHeadFormat? defaultValue, ]) { - return enums.ArtistsNameImagesImageTypeImageIndexHeadFormat.values - .firstWhereOrNull( - (e) => e.value == artistsNameImagesImageTypeImageIndexHeadFormat, - ) ?? + return enums.ArtistsNameImagesImageTypeImageIndexHeadFormat.values.firstWhereOrNull( + (e) => e.value == artistsNameImagesImageTypeImageIndexHeadFormat, + ) ?? defaultValue ?? - enums - .ArtistsNameImagesImageTypeImageIndexHeadFormat - .swaggerGeneratedUnknown; + enums.ArtistsNameImagesImageTypeImageIndexHeadFormat.swaggerGeneratedUnknown; } -enums.ArtistsNameImagesImageTypeImageIndexHeadFormat? -artistsNameImagesImageTypeImageIndexHeadFormatNullableFromJson( +enums.ArtistsNameImagesImageTypeImageIndexHeadFormat? artistsNameImagesImageTypeImageIndexHeadFormatNullableFromJson( Object? artistsNameImagesImageTypeImageIndexHeadFormat, [ enums.ArtistsNameImagesImageTypeImageIndexHeadFormat? defaultValue, ]) { if (artistsNameImagesImageTypeImageIndexHeadFormat == null) { return null; } - return enums.ArtistsNameImagesImageTypeImageIndexHeadFormat.values - .firstWhereOrNull( - (e) => e.value == artistsNameImagesImageTypeImageIndexHeadFormat, - ) ?? + return enums.ArtistsNameImagesImageTypeImageIndexHeadFormat.values.firstWhereOrNull( + (e) => e.value == artistsNameImagesImageTypeImageIndexHeadFormat, + ) ?? defaultValue; } String artistsNameImagesImageTypeImageIndexHeadFormatExplodedListToJson( - List? - artistsNameImagesImageTypeImageIndexHeadFormat, + List? artistsNameImagesImageTypeImageIndexHeadFormat, ) { - return artistsNameImagesImageTypeImageIndexHeadFormat - ?.map((e) => e.value!) - .join(',') ?? - ''; + return artistsNameImagesImageTypeImageIndexHeadFormat?.map((e) => e.value!).join(',') ?? ''; } List artistsNameImagesImageTypeImageIndexHeadFormatListToJson( - List? - artistsNameImagesImageTypeImageIndexHeadFormat, + List? artistsNameImagesImageTypeImageIndexHeadFormat, ) { if (artistsNameImagesImageTypeImageIndexHeadFormat == null) { return []; } - return artistsNameImagesImageTypeImageIndexHeadFormat - .map((e) => e.value!) - .toList(); + return artistsNameImagesImageTypeImageIndexHeadFormat.map((e) => e.value!).toList(); } -List -artistsNameImagesImageTypeImageIndexHeadFormatListFromJson( +List artistsNameImagesImageTypeImageIndexHeadFormatListFromJson( List? artistsNameImagesImageTypeImageIndexHeadFormat, [ List? defaultValue, ]) { @@ -64987,7 +61754,7 @@ artistsNameImagesImageTypeImageIndexHeadFormatListFromJson( } List? -artistsNameImagesImageTypeImageIndexHeadFormatNullableListFromJson( + artistsNameImagesImageTypeImageIndexHeadFormatNullableListFromJson( List? artistsNameImagesImageTypeImageIndexHeadFormat, [ List? defaultValue, ]) { @@ -65027,8 +61794,7 @@ enums.BrandingSplashscreenGetFormat brandingSplashscreenGetFormatFromJson( enums.BrandingSplashscreenGetFormat.swaggerGeneratedUnknown; } -enums.BrandingSplashscreenGetFormat? -brandingSplashscreenGetFormatNullableFromJson( +enums.BrandingSplashscreenGetFormat? brandingSplashscreenGetFormatNullableFromJson( Object? brandingSplashscreenGetFormat, [ enums.BrandingSplashscreenGetFormat? defaultValue, ]) { @@ -65057,8 +61823,7 @@ List brandingSplashscreenGetFormatListToJson( return brandingSplashscreenGetFormat.map((e) => e.value!).toList(); } -List -brandingSplashscreenGetFormatListFromJson( +List brandingSplashscreenGetFormatListFromJson( List? brandingSplashscreenGetFormat, [ List? defaultValue, ]) { @@ -65066,13 +61831,10 @@ brandingSplashscreenGetFormatListFromJson( return defaultValue ?? []; } - return brandingSplashscreenGetFormat - .map((e) => brandingSplashscreenGetFormatFromJson(e.toString())) - .toList(); + return brandingSplashscreenGetFormat.map((e) => brandingSplashscreenGetFormatFromJson(e.toString())).toList(); } -List? -brandingSplashscreenGetFormatNullableListFromJson( +List? brandingSplashscreenGetFormatNullableListFromJson( List? brandingSplashscreenGetFormat, [ List? defaultValue, ]) { @@ -65080,27 +61842,22 @@ brandingSplashscreenGetFormatNullableListFromJson( return defaultValue; } - return brandingSplashscreenGetFormat - .map((e) => brandingSplashscreenGetFormatFromJson(e.toString())) - .toList(); + return brandingSplashscreenGetFormat.map((e) => brandingSplashscreenGetFormatFromJson(e.toString())).toList(); } String? genresNameImagesImageTypeGetImageTypeNullableToJson( - enums.GenresNameImagesImageTypeGetImageType? - genresNameImagesImageTypeGetImageType, + enums.GenresNameImagesImageTypeGetImageType? genresNameImagesImageTypeGetImageType, ) { return genresNameImagesImageTypeGetImageType?.value; } String? genresNameImagesImageTypeGetImageTypeToJson( - enums.GenresNameImagesImageTypeGetImageType - genresNameImagesImageTypeGetImageType, + enums.GenresNameImagesImageTypeGetImageType genresNameImagesImageTypeGetImageType, ) { return genresNameImagesImageTypeGetImageType.value; } -enums.GenresNameImagesImageTypeGetImageType -genresNameImagesImageTypeGetImageTypeFromJson( +enums.GenresNameImagesImageTypeGetImageType genresNameImagesImageTypeGetImageTypeFromJson( Object? genresNameImagesImageTypeGetImageType, [ enums.GenresNameImagesImageTypeGetImageType? defaultValue, ]) { @@ -65111,8 +61868,7 @@ genresNameImagesImageTypeGetImageTypeFromJson( enums.GenresNameImagesImageTypeGetImageType.swaggerGeneratedUnknown; } -enums.GenresNameImagesImageTypeGetImageType? -genresNameImagesImageTypeGetImageTypeNullableFromJson( +enums.GenresNameImagesImageTypeGetImageType? genresNameImagesImageTypeGetImageTypeNullableFromJson( Object? genresNameImagesImageTypeGetImageType, [ enums.GenresNameImagesImageTypeGetImageType? defaultValue, ]) { @@ -65126,18 +61882,13 @@ genresNameImagesImageTypeGetImageTypeNullableFromJson( } String genresNameImagesImageTypeGetImageTypeExplodedListToJson( - List? - genresNameImagesImageTypeGetImageType, + List? genresNameImagesImageTypeGetImageType, ) { - return genresNameImagesImageTypeGetImageType - ?.map((e) => e.value!) - .join(',') ?? - ''; + return genresNameImagesImageTypeGetImageType?.map((e) => e.value!).join(',') ?? ''; } List genresNameImagesImageTypeGetImageTypeListToJson( - List? - genresNameImagesImageTypeGetImageType, + List? genresNameImagesImageTypeGetImageType, ) { if (genresNameImagesImageTypeGetImageType == null) { return []; @@ -65146,8 +61897,7 @@ List genresNameImagesImageTypeGetImageTypeListToJson( return genresNameImagesImageTypeGetImageType.map((e) => e.value!).toList(); } -List -genresNameImagesImageTypeGetImageTypeListFromJson( +List genresNameImagesImageTypeGetImageTypeListFromJson( List? genresNameImagesImageTypeGetImageType, [ List? defaultValue, ]) { @@ -65160,8 +61910,7 @@ genresNameImagesImageTypeGetImageTypeListFromJson( .toList(); } -List? -genresNameImagesImageTypeGetImageTypeNullableListFromJson( +List? genresNameImagesImageTypeGetImageTypeNullableListFromJson( List? genresNameImagesImageTypeGetImageType, [ List? defaultValue, ]) { @@ -65186,8 +61935,7 @@ String? genresNameImagesImageTypeGetFormatToJson( return genresNameImagesImageTypeGetFormat.value; } -enums.GenresNameImagesImageTypeGetFormat -genresNameImagesImageTypeGetFormatFromJson( +enums.GenresNameImagesImageTypeGetFormat genresNameImagesImageTypeGetFormatFromJson( Object? genresNameImagesImageTypeGetFormat, [ enums.GenresNameImagesImageTypeGetFormat? defaultValue, ]) { @@ -65198,8 +61946,7 @@ genresNameImagesImageTypeGetFormatFromJson( enums.GenresNameImagesImageTypeGetFormat.swaggerGeneratedUnknown; } -enums.GenresNameImagesImageTypeGetFormat? -genresNameImagesImageTypeGetFormatNullableFromJson( +enums.GenresNameImagesImageTypeGetFormat? genresNameImagesImageTypeGetFormatNullableFromJson( Object? genresNameImagesImageTypeGetFormat, [ enums.GenresNameImagesImageTypeGetFormat? defaultValue, ]) { @@ -65213,16 +61960,13 @@ genresNameImagesImageTypeGetFormatNullableFromJson( } String genresNameImagesImageTypeGetFormatExplodedListToJson( - List? - genresNameImagesImageTypeGetFormat, + List? genresNameImagesImageTypeGetFormat, ) { - return genresNameImagesImageTypeGetFormat?.map((e) => e.value!).join(',') ?? - ''; + return genresNameImagesImageTypeGetFormat?.map((e) => e.value!).join(',') ?? ''; } List genresNameImagesImageTypeGetFormatListToJson( - List? - genresNameImagesImageTypeGetFormat, + List? genresNameImagesImageTypeGetFormat, ) { if (genresNameImagesImageTypeGetFormat == null) { return []; @@ -65231,8 +61975,7 @@ List genresNameImagesImageTypeGetFormatListToJson( return genresNameImagesImageTypeGetFormat.map((e) => e.value!).toList(); } -List -genresNameImagesImageTypeGetFormatListFromJson( +List genresNameImagesImageTypeGetFormatListFromJson( List? genresNameImagesImageTypeGetFormat, [ List? defaultValue, ]) { @@ -65245,8 +61988,7 @@ genresNameImagesImageTypeGetFormatListFromJson( .toList(); } -List? -genresNameImagesImageTypeGetFormatNullableListFromJson( +List? genresNameImagesImageTypeGetFormatNullableListFromJson( List? genresNameImagesImageTypeGetFormat, [ List? defaultValue, ]) { @@ -65260,21 +62002,18 @@ genresNameImagesImageTypeGetFormatNullableListFromJson( } String? genresNameImagesImageTypeHeadImageTypeNullableToJson( - enums.GenresNameImagesImageTypeHeadImageType? - genresNameImagesImageTypeHeadImageType, + enums.GenresNameImagesImageTypeHeadImageType? genresNameImagesImageTypeHeadImageType, ) { return genresNameImagesImageTypeHeadImageType?.value; } String? genresNameImagesImageTypeHeadImageTypeToJson( - enums.GenresNameImagesImageTypeHeadImageType - genresNameImagesImageTypeHeadImageType, + enums.GenresNameImagesImageTypeHeadImageType genresNameImagesImageTypeHeadImageType, ) { return genresNameImagesImageTypeHeadImageType.value; } -enums.GenresNameImagesImageTypeHeadImageType -genresNameImagesImageTypeHeadImageTypeFromJson( +enums.GenresNameImagesImageTypeHeadImageType genresNameImagesImageTypeHeadImageTypeFromJson( Object? genresNameImagesImageTypeHeadImageType, [ enums.GenresNameImagesImageTypeHeadImageType? defaultValue, ]) { @@ -65285,8 +62024,7 @@ genresNameImagesImageTypeHeadImageTypeFromJson( enums.GenresNameImagesImageTypeHeadImageType.swaggerGeneratedUnknown; } -enums.GenresNameImagesImageTypeHeadImageType? -genresNameImagesImageTypeHeadImageTypeNullableFromJson( +enums.GenresNameImagesImageTypeHeadImageType? genresNameImagesImageTypeHeadImageTypeNullableFromJson( Object? genresNameImagesImageTypeHeadImageType, [ enums.GenresNameImagesImageTypeHeadImageType? defaultValue, ]) { @@ -65300,18 +62038,13 @@ genresNameImagesImageTypeHeadImageTypeNullableFromJson( } String genresNameImagesImageTypeHeadImageTypeExplodedListToJson( - List? - genresNameImagesImageTypeHeadImageType, + List? genresNameImagesImageTypeHeadImageType, ) { - return genresNameImagesImageTypeHeadImageType - ?.map((e) => e.value!) - .join(',') ?? - ''; + return genresNameImagesImageTypeHeadImageType?.map((e) => e.value!).join(',') ?? ''; } List genresNameImagesImageTypeHeadImageTypeListToJson( - List? - genresNameImagesImageTypeHeadImageType, + List? genresNameImagesImageTypeHeadImageType, ) { if (genresNameImagesImageTypeHeadImageType == null) { return []; @@ -65320,8 +62053,7 @@ List genresNameImagesImageTypeHeadImageTypeListToJson( return genresNameImagesImageTypeHeadImageType.map((e) => e.value!).toList(); } -List -genresNameImagesImageTypeHeadImageTypeListFromJson( +List genresNameImagesImageTypeHeadImageTypeListFromJson( List? genresNameImagesImageTypeHeadImageType, [ List? defaultValue, ]) { @@ -65334,8 +62066,7 @@ genresNameImagesImageTypeHeadImageTypeListFromJson( .toList(); } -List? -genresNameImagesImageTypeHeadImageTypeNullableListFromJson( +List? genresNameImagesImageTypeHeadImageTypeNullableListFromJson( List? genresNameImagesImageTypeHeadImageType, [ List? defaultValue, ]) { @@ -65349,8 +62080,7 @@ genresNameImagesImageTypeHeadImageTypeNullableListFromJson( } String? genresNameImagesImageTypeHeadFormatNullableToJson( - enums.GenresNameImagesImageTypeHeadFormat? - genresNameImagesImageTypeHeadFormat, + enums.GenresNameImagesImageTypeHeadFormat? genresNameImagesImageTypeHeadFormat, ) { return genresNameImagesImageTypeHeadFormat?.value; } @@ -65361,8 +62091,7 @@ String? genresNameImagesImageTypeHeadFormatToJson( return genresNameImagesImageTypeHeadFormat.value; } -enums.GenresNameImagesImageTypeHeadFormat -genresNameImagesImageTypeHeadFormatFromJson( +enums.GenresNameImagesImageTypeHeadFormat genresNameImagesImageTypeHeadFormatFromJson( Object? genresNameImagesImageTypeHeadFormat, [ enums.GenresNameImagesImageTypeHeadFormat? defaultValue, ]) { @@ -65373,8 +62102,7 @@ genresNameImagesImageTypeHeadFormatFromJson( enums.GenresNameImagesImageTypeHeadFormat.swaggerGeneratedUnknown; } -enums.GenresNameImagesImageTypeHeadFormat? -genresNameImagesImageTypeHeadFormatNullableFromJson( +enums.GenresNameImagesImageTypeHeadFormat? genresNameImagesImageTypeHeadFormatNullableFromJson( Object? genresNameImagesImageTypeHeadFormat, [ enums.GenresNameImagesImageTypeHeadFormat? defaultValue, ]) { @@ -65388,16 +62116,13 @@ genresNameImagesImageTypeHeadFormatNullableFromJson( } String genresNameImagesImageTypeHeadFormatExplodedListToJson( - List? - genresNameImagesImageTypeHeadFormat, + List? genresNameImagesImageTypeHeadFormat, ) { - return genresNameImagesImageTypeHeadFormat?.map((e) => e.value!).join(',') ?? - ''; + return genresNameImagesImageTypeHeadFormat?.map((e) => e.value!).join(',') ?? ''; } List genresNameImagesImageTypeHeadFormatListToJson( - List? - genresNameImagesImageTypeHeadFormat, + List? genresNameImagesImageTypeHeadFormat, ) { if (genresNameImagesImageTypeHeadFormat == null) { return []; @@ -65406,8 +62131,7 @@ List genresNameImagesImageTypeHeadFormatListToJson( return genresNameImagesImageTypeHeadFormat.map((e) => e.value!).toList(); } -List -genresNameImagesImageTypeHeadFormatListFromJson( +List genresNameImagesImageTypeHeadFormatListFromJson( List? genresNameImagesImageTypeHeadFormat, [ List? defaultValue, ]) { @@ -65420,8 +62144,7 @@ genresNameImagesImageTypeHeadFormatListFromJson( .toList(); } -List? -genresNameImagesImageTypeHeadFormatNullableListFromJson( +List? genresNameImagesImageTypeHeadFormatNullableListFromJson( List? genresNameImagesImageTypeHeadFormat, [ List? defaultValue, ]) { @@ -65435,74 +62158,58 @@ genresNameImagesImageTypeHeadFormatNullableListFromJson( } String? genresNameImagesImageTypeImageIndexGetImageTypeNullableToJson( - enums.GenresNameImagesImageTypeImageIndexGetImageType? - genresNameImagesImageTypeImageIndexGetImageType, + enums.GenresNameImagesImageTypeImageIndexGetImageType? genresNameImagesImageTypeImageIndexGetImageType, ) { return genresNameImagesImageTypeImageIndexGetImageType?.value; } String? genresNameImagesImageTypeImageIndexGetImageTypeToJson( - enums.GenresNameImagesImageTypeImageIndexGetImageType - genresNameImagesImageTypeImageIndexGetImageType, + enums.GenresNameImagesImageTypeImageIndexGetImageType genresNameImagesImageTypeImageIndexGetImageType, ) { return genresNameImagesImageTypeImageIndexGetImageType.value; } -enums.GenresNameImagesImageTypeImageIndexGetImageType -genresNameImagesImageTypeImageIndexGetImageTypeFromJson( +enums.GenresNameImagesImageTypeImageIndexGetImageType genresNameImagesImageTypeImageIndexGetImageTypeFromJson( Object? genresNameImagesImageTypeImageIndexGetImageType, [ enums.GenresNameImagesImageTypeImageIndexGetImageType? defaultValue, ]) { - return enums.GenresNameImagesImageTypeImageIndexGetImageType.values - .firstWhereOrNull( - (e) => e.value == genresNameImagesImageTypeImageIndexGetImageType, - ) ?? + return enums.GenresNameImagesImageTypeImageIndexGetImageType.values.firstWhereOrNull( + (e) => e.value == genresNameImagesImageTypeImageIndexGetImageType, + ) ?? defaultValue ?? - enums - .GenresNameImagesImageTypeImageIndexGetImageType - .swaggerGeneratedUnknown; + enums.GenresNameImagesImageTypeImageIndexGetImageType.swaggerGeneratedUnknown; } -enums.GenresNameImagesImageTypeImageIndexGetImageType? -genresNameImagesImageTypeImageIndexGetImageTypeNullableFromJson( +enums.GenresNameImagesImageTypeImageIndexGetImageType? genresNameImagesImageTypeImageIndexGetImageTypeNullableFromJson( Object? genresNameImagesImageTypeImageIndexGetImageType, [ enums.GenresNameImagesImageTypeImageIndexGetImageType? defaultValue, ]) { if (genresNameImagesImageTypeImageIndexGetImageType == null) { return null; } - return enums.GenresNameImagesImageTypeImageIndexGetImageType.values - .firstWhereOrNull( - (e) => e.value == genresNameImagesImageTypeImageIndexGetImageType, - ) ?? + return enums.GenresNameImagesImageTypeImageIndexGetImageType.values.firstWhereOrNull( + (e) => e.value == genresNameImagesImageTypeImageIndexGetImageType, + ) ?? defaultValue; } String genresNameImagesImageTypeImageIndexGetImageTypeExplodedListToJson( - List? - genresNameImagesImageTypeImageIndexGetImageType, + List? genresNameImagesImageTypeImageIndexGetImageType, ) { - return genresNameImagesImageTypeImageIndexGetImageType - ?.map((e) => e.value!) - .join(',') ?? - ''; + return genresNameImagesImageTypeImageIndexGetImageType?.map((e) => e.value!).join(',') ?? ''; } List genresNameImagesImageTypeImageIndexGetImageTypeListToJson( - List? - genresNameImagesImageTypeImageIndexGetImageType, + List? genresNameImagesImageTypeImageIndexGetImageType, ) { if (genresNameImagesImageTypeImageIndexGetImageType == null) { return []; } - return genresNameImagesImageTypeImageIndexGetImageType - .map((e) => e.value!) - .toList(); + return genresNameImagesImageTypeImageIndexGetImageType.map((e) => e.value!).toList(); } -List -genresNameImagesImageTypeImageIndexGetImageTypeListFromJson( +List genresNameImagesImageTypeImageIndexGetImageTypeListFromJson( List? genresNameImagesImageTypeImageIndexGetImageType, [ List? defaultValue, ]) { @@ -65520,7 +62227,7 @@ genresNameImagesImageTypeImageIndexGetImageTypeListFromJson( } List? -genresNameImagesImageTypeImageIndexGetImageTypeNullableListFromJson( + genresNameImagesImageTypeImageIndexGetImageTypeNullableListFromJson( List? genresNameImagesImageTypeImageIndexGetImageType, [ List? defaultValue, ]) { @@ -65538,74 +62245,58 @@ genresNameImagesImageTypeImageIndexGetImageTypeNullableListFromJson( } String? genresNameImagesImageTypeImageIndexGetFormatNullableToJson( - enums.GenresNameImagesImageTypeImageIndexGetFormat? - genresNameImagesImageTypeImageIndexGetFormat, + enums.GenresNameImagesImageTypeImageIndexGetFormat? genresNameImagesImageTypeImageIndexGetFormat, ) { return genresNameImagesImageTypeImageIndexGetFormat?.value; } String? genresNameImagesImageTypeImageIndexGetFormatToJson( - enums.GenresNameImagesImageTypeImageIndexGetFormat - genresNameImagesImageTypeImageIndexGetFormat, + enums.GenresNameImagesImageTypeImageIndexGetFormat genresNameImagesImageTypeImageIndexGetFormat, ) { return genresNameImagesImageTypeImageIndexGetFormat.value; } -enums.GenresNameImagesImageTypeImageIndexGetFormat -genresNameImagesImageTypeImageIndexGetFormatFromJson( +enums.GenresNameImagesImageTypeImageIndexGetFormat genresNameImagesImageTypeImageIndexGetFormatFromJson( Object? genresNameImagesImageTypeImageIndexGetFormat, [ enums.GenresNameImagesImageTypeImageIndexGetFormat? defaultValue, ]) { - return enums.GenresNameImagesImageTypeImageIndexGetFormat.values - .firstWhereOrNull( - (e) => e.value == genresNameImagesImageTypeImageIndexGetFormat, - ) ?? + return enums.GenresNameImagesImageTypeImageIndexGetFormat.values.firstWhereOrNull( + (e) => e.value == genresNameImagesImageTypeImageIndexGetFormat, + ) ?? defaultValue ?? - enums - .GenresNameImagesImageTypeImageIndexGetFormat - .swaggerGeneratedUnknown; + enums.GenresNameImagesImageTypeImageIndexGetFormat.swaggerGeneratedUnknown; } -enums.GenresNameImagesImageTypeImageIndexGetFormat? -genresNameImagesImageTypeImageIndexGetFormatNullableFromJson( +enums.GenresNameImagesImageTypeImageIndexGetFormat? genresNameImagesImageTypeImageIndexGetFormatNullableFromJson( Object? genresNameImagesImageTypeImageIndexGetFormat, [ enums.GenresNameImagesImageTypeImageIndexGetFormat? defaultValue, ]) { if (genresNameImagesImageTypeImageIndexGetFormat == null) { return null; } - return enums.GenresNameImagesImageTypeImageIndexGetFormat.values - .firstWhereOrNull( - (e) => e.value == genresNameImagesImageTypeImageIndexGetFormat, - ) ?? + return enums.GenresNameImagesImageTypeImageIndexGetFormat.values.firstWhereOrNull( + (e) => e.value == genresNameImagesImageTypeImageIndexGetFormat, + ) ?? defaultValue; } String genresNameImagesImageTypeImageIndexGetFormatExplodedListToJson( - List? - genresNameImagesImageTypeImageIndexGetFormat, + List? genresNameImagesImageTypeImageIndexGetFormat, ) { - return genresNameImagesImageTypeImageIndexGetFormat - ?.map((e) => e.value!) - .join(',') ?? - ''; + return genresNameImagesImageTypeImageIndexGetFormat?.map((e) => e.value!).join(',') ?? ''; } List genresNameImagesImageTypeImageIndexGetFormatListToJson( - List? - genresNameImagesImageTypeImageIndexGetFormat, + List? genresNameImagesImageTypeImageIndexGetFormat, ) { if (genresNameImagesImageTypeImageIndexGetFormat == null) { return []; } - return genresNameImagesImageTypeImageIndexGetFormat - .map((e) => e.value!) - .toList(); + return genresNameImagesImageTypeImageIndexGetFormat.map((e) => e.value!).toList(); } -List -genresNameImagesImageTypeImageIndexGetFormatListFromJson( +List genresNameImagesImageTypeImageIndexGetFormatListFromJson( List? genresNameImagesImageTypeImageIndexGetFormat, [ List? defaultValue, ]) { @@ -65615,14 +62306,13 @@ genresNameImagesImageTypeImageIndexGetFormatListFromJson( return genresNameImagesImageTypeImageIndexGetFormat .map( - (e) => - genresNameImagesImageTypeImageIndexGetFormatFromJson(e.toString()), + (e) => genresNameImagesImageTypeImageIndexGetFormatFromJson(e.toString()), ) .toList(); } List? -genresNameImagesImageTypeImageIndexGetFormatNullableListFromJson( + genresNameImagesImageTypeImageIndexGetFormatNullableListFromJson( List? genresNameImagesImageTypeImageIndexGetFormat, [ List? defaultValue, ]) { @@ -65632,81 +62322,66 @@ genresNameImagesImageTypeImageIndexGetFormatNullableListFromJson( return genresNameImagesImageTypeImageIndexGetFormat .map( - (e) => - genresNameImagesImageTypeImageIndexGetFormatFromJson(e.toString()), + (e) => genresNameImagesImageTypeImageIndexGetFormatFromJson(e.toString()), ) .toList(); } String? genresNameImagesImageTypeImageIndexHeadImageTypeNullableToJson( - enums.GenresNameImagesImageTypeImageIndexHeadImageType? - genresNameImagesImageTypeImageIndexHeadImageType, + enums.GenresNameImagesImageTypeImageIndexHeadImageType? genresNameImagesImageTypeImageIndexHeadImageType, ) { return genresNameImagesImageTypeImageIndexHeadImageType?.value; } String? genresNameImagesImageTypeImageIndexHeadImageTypeToJson( - enums.GenresNameImagesImageTypeImageIndexHeadImageType - genresNameImagesImageTypeImageIndexHeadImageType, + enums.GenresNameImagesImageTypeImageIndexHeadImageType genresNameImagesImageTypeImageIndexHeadImageType, ) { return genresNameImagesImageTypeImageIndexHeadImageType.value; } -enums.GenresNameImagesImageTypeImageIndexHeadImageType -genresNameImagesImageTypeImageIndexHeadImageTypeFromJson( +enums.GenresNameImagesImageTypeImageIndexHeadImageType genresNameImagesImageTypeImageIndexHeadImageTypeFromJson( Object? genresNameImagesImageTypeImageIndexHeadImageType, [ enums.GenresNameImagesImageTypeImageIndexHeadImageType? defaultValue, ]) { - return enums.GenresNameImagesImageTypeImageIndexHeadImageType.values - .firstWhereOrNull( - (e) => e.value == genresNameImagesImageTypeImageIndexHeadImageType, - ) ?? + return enums.GenresNameImagesImageTypeImageIndexHeadImageType.values.firstWhereOrNull( + (e) => e.value == genresNameImagesImageTypeImageIndexHeadImageType, + ) ?? defaultValue ?? - enums - .GenresNameImagesImageTypeImageIndexHeadImageType - .swaggerGeneratedUnknown; + enums.GenresNameImagesImageTypeImageIndexHeadImageType.swaggerGeneratedUnknown; } enums.GenresNameImagesImageTypeImageIndexHeadImageType? -genresNameImagesImageTypeImageIndexHeadImageTypeNullableFromJson( + genresNameImagesImageTypeImageIndexHeadImageTypeNullableFromJson( Object? genresNameImagesImageTypeImageIndexHeadImageType, [ enums.GenresNameImagesImageTypeImageIndexHeadImageType? defaultValue, ]) { if (genresNameImagesImageTypeImageIndexHeadImageType == null) { return null; } - return enums.GenresNameImagesImageTypeImageIndexHeadImageType.values - .firstWhereOrNull( - (e) => e.value == genresNameImagesImageTypeImageIndexHeadImageType, - ) ?? + return enums.GenresNameImagesImageTypeImageIndexHeadImageType.values.firstWhereOrNull( + (e) => e.value == genresNameImagesImageTypeImageIndexHeadImageType, + ) ?? defaultValue; } String genresNameImagesImageTypeImageIndexHeadImageTypeExplodedListToJson( - List? - genresNameImagesImageTypeImageIndexHeadImageType, + List? genresNameImagesImageTypeImageIndexHeadImageType, ) { - return genresNameImagesImageTypeImageIndexHeadImageType - ?.map((e) => e.value!) - .join(',') ?? - ''; + return genresNameImagesImageTypeImageIndexHeadImageType?.map((e) => e.value!).join(',') ?? ''; } List genresNameImagesImageTypeImageIndexHeadImageTypeListToJson( - List? - genresNameImagesImageTypeImageIndexHeadImageType, + List? genresNameImagesImageTypeImageIndexHeadImageType, ) { if (genresNameImagesImageTypeImageIndexHeadImageType == null) { return []; } - return genresNameImagesImageTypeImageIndexHeadImageType - .map((e) => e.value!) - .toList(); + return genresNameImagesImageTypeImageIndexHeadImageType.map((e) => e.value!).toList(); } List -genresNameImagesImageTypeImageIndexHeadImageTypeListFromJson( + genresNameImagesImageTypeImageIndexHeadImageTypeListFromJson( List? genresNameImagesImageTypeImageIndexHeadImageType, [ List? defaultValue, ]) { @@ -65724,7 +62399,7 @@ genresNameImagesImageTypeImageIndexHeadImageTypeListFromJson( } List? -genresNameImagesImageTypeImageIndexHeadImageTypeNullableListFromJson( + genresNameImagesImageTypeImageIndexHeadImageTypeNullableListFromJson( List? genresNameImagesImageTypeImageIndexHeadImageType, [ List? defaultValue, ]) { @@ -65742,74 +62417,58 @@ genresNameImagesImageTypeImageIndexHeadImageTypeNullableListFromJson( } String? genresNameImagesImageTypeImageIndexHeadFormatNullableToJson( - enums.GenresNameImagesImageTypeImageIndexHeadFormat? - genresNameImagesImageTypeImageIndexHeadFormat, + enums.GenresNameImagesImageTypeImageIndexHeadFormat? genresNameImagesImageTypeImageIndexHeadFormat, ) { return genresNameImagesImageTypeImageIndexHeadFormat?.value; } String? genresNameImagesImageTypeImageIndexHeadFormatToJson( - enums.GenresNameImagesImageTypeImageIndexHeadFormat - genresNameImagesImageTypeImageIndexHeadFormat, + enums.GenresNameImagesImageTypeImageIndexHeadFormat genresNameImagesImageTypeImageIndexHeadFormat, ) { return genresNameImagesImageTypeImageIndexHeadFormat.value; } -enums.GenresNameImagesImageTypeImageIndexHeadFormat -genresNameImagesImageTypeImageIndexHeadFormatFromJson( +enums.GenresNameImagesImageTypeImageIndexHeadFormat genresNameImagesImageTypeImageIndexHeadFormatFromJson( Object? genresNameImagesImageTypeImageIndexHeadFormat, [ enums.GenresNameImagesImageTypeImageIndexHeadFormat? defaultValue, ]) { - return enums.GenresNameImagesImageTypeImageIndexHeadFormat.values - .firstWhereOrNull( - (e) => e.value == genresNameImagesImageTypeImageIndexHeadFormat, - ) ?? + return enums.GenresNameImagesImageTypeImageIndexHeadFormat.values.firstWhereOrNull( + (e) => e.value == genresNameImagesImageTypeImageIndexHeadFormat, + ) ?? defaultValue ?? - enums - .GenresNameImagesImageTypeImageIndexHeadFormat - .swaggerGeneratedUnknown; + enums.GenresNameImagesImageTypeImageIndexHeadFormat.swaggerGeneratedUnknown; } -enums.GenresNameImagesImageTypeImageIndexHeadFormat? -genresNameImagesImageTypeImageIndexHeadFormatNullableFromJson( +enums.GenresNameImagesImageTypeImageIndexHeadFormat? genresNameImagesImageTypeImageIndexHeadFormatNullableFromJson( Object? genresNameImagesImageTypeImageIndexHeadFormat, [ enums.GenresNameImagesImageTypeImageIndexHeadFormat? defaultValue, ]) { if (genresNameImagesImageTypeImageIndexHeadFormat == null) { return null; } - return enums.GenresNameImagesImageTypeImageIndexHeadFormat.values - .firstWhereOrNull( - (e) => e.value == genresNameImagesImageTypeImageIndexHeadFormat, - ) ?? + return enums.GenresNameImagesImageTypeImageIndexHeadFormat.values.firstWhereOrNull( + (e) => e.value == genresNameImagesImageTypeImageIndexHeadFormat, + ) ?? defaultValue; } String genresNameImagesImageTypeImageIndexHeadFormatExplodedListToJson( - List? - genresNameImagesImageTypeImageIndexHeadFormat, + List? genresNameImagesImageTypeImageIndexHeadFormat, ) { - return genresNameImagesImageTypeImageIndexHeadFormat - ?.map((e) => e.value!) - .join(',') ?? - ''; + return genresNameImagesImageTypeImageIndexHeadFormat?.map((e) => e.value!).join(',') ?? ''; } List genresNameImagesImageTypeImageIndexHeadFormatListToJson( - List? - genresNameImagesImageTypeImageIndexHeadFormat, + List? genresNameImagesImageTypeImageIndexHeadFormat, ) { if (genresNameImagesImageTypeImageIndexHeadFormat == null) { return []; } - return genresNameImagesImageTypeImageIndexHeadFormat - .map((e) => e.value!) - .toList(); + return genresNameImagesImageTypeImageIndexHeadFormat.map((e) => e.value!).toList(); } -List -genresNameImagesImageTypeImageIndexHeadFormatListFromJson( +List genresNameImagesImageTypeImageIndexHeadFormatListFromJson( List? genresNameImagesImageTypeImageIndexHeadFormat, [ List? defaultValue, ]) { @@ -65819,14 +62478,13 @@ genresNameImagesImageTypeImageIndexHeadFormatListFromJson( return genresNameImagesImageTypeImageIndexHeadFormat .map( - (e) => - genresNameImagesImageTypeImageIndexHeadFormatFromJson(e.toString()), + (e) => genresNameImagesImageTypeImageIndexHeadFormatFromJson(e.toString()), ) .toList(); } List? -genresNameImagesImageTypeImageIndexHeadFormatNullableListFromJson( + genresNameImagesImageTypeImageIndexHeadFormatNullableListFromJson( List? genresNameImagesImageTypeImageIndexHeadFormat, [ List? defaultValue, ]) { @@ -65836,79 +62494,64 @@ genresNameImagesImageTypeImageIndexHeadFormatNullableListFromJson( return genresNameImagesImageTypeImageIndexHeadFormat .map( - (e) => - genresNameImagesImageTypeImageIndexHeadFormatFromJson(e.toString()), + (e) => genresNameImagesImageTypeImageIndexHeadFormatFromJson(e.toString()), ) .toList(); } String? itemsItemIdImagesImageTypeDeleteImageTypeNullableToJson( - enums.ItemsItemIdImagesImageTypeDeleteImageType? - itemsItemIdImagesImageTypeDeleteImageType, + enums.ItemsItemIdImagesImageTypeDeleteImageType? itemsItemIdImagesImageTypeDeleteImageType, ) { return itemsItemIdImagesImageTypeDeleteImageType?.value; } String? itemsItemIdImagesImageTypeDeleteImageTypeToJson( - enums.ItemsItemIdImagesImageTypeDeleteImageType - itemsItemIdImagesImageTypeDeleteImageType, + enums.ItemsItemIdImagesImageTypeDeleteImageType itemsItemIdImagesImageTypeDeleteImageType, ) { return itemsItemIdImagesImageTypeDeleteImageType.value; } -enums.ItemsItemIdImagesImageTypeDeleteImageType -itemsItemIdImagesImageTypeDeleteImageTypeFromJson( +enums.ItemsItemIdImagesImageTypeDeleteImageType itemsItemIdImagesImageTypeDeleteImageTypeFromJson( Object? itemsItemIdImagesImageTypeDeleteImageType, [ enums.ItemsItemIdImagesImageTypeDeleteImageType? defaultValue, ]) { - return enums.ItemsItemIdImagesImageTypeDeleteImageType.values - .firstWhereOrNull( - (e) => e.value == itemsItemIdImagesImageTypeDeleteImageType, - ) ?? + return enums.ItemsItemIdImagesImageTypeDeleteImageType.values.firstWhereOrNull( + (e) => e.value == itemsItemIdImagesImageTypeDeleteImageType, + ) ?? defaultValue ?? enums.ItemsItemIdImagesImageTypeDeleteImageType.swaggerGeneratedUnknown; } -enums.ItemsItemIdImagesImageTypeDeleteImageType? -itemsItemIdImagesImageTypeDeleteImageTypeNullableFromJson( +enums.ItemsItemIdImagesImageTypeDeleteImageType? itemsItemIdImagesImageTypeDeleteImageTypeNullableFromJson( Object? itemsItemIdImagesImageTypeDeleteImageType, [ enums.ItemsItemIdImagesImageTypeDeleteImageType? defaultValue, ]) { if (itemsItemIdImagesImageTypeDeleteImageType == null) { return null; } - return enums.ItemsItemIdImagesImageTypeDeleteImageType.values - .firstWhereOrNull( - (e) => e.value == itemsItemIdImagesImageTypeDeleteImageType, - ) ?? + return enums.ItemsItemIdImagesImageTypeDeleteImageType.values.firstWhereOrNull( + (e) => e.value == itemsItemIdImagesImageTypeDeleteImageType, + ) ?? defaultValue; } String itemsItemIdImagesImageTypeDeleteImageTypeExplodedListToJson( - List? - itemsItemIdImagesImageTypeDeleteImageType, + List? itemsItemIdImagesImageTypeDeleteImageType, ) { - return itemsItemIdImagesImageTypeDeleteImageType - ?.map((e) => e.value!) - .join(',') ?? - ''; + return itemsItemIdImagesImageTypeDeleteImageType?.map((e) => e.value!).join(',') ?? ''; } List itemsItemIdImagesImageTypeDeleteImageTypeListToJson( - List? - itemsItemIdImagesImageTypeDeleteImageType, + List? itemsItemIdImagesImageTypeDeleteImageType, ) { if (itemsItemIdImagesImageTypeDeleteImageType == null) { return []; } - return itemsItemIdImagesImageTypeDeleteImageType - .map((e) => e.value!) - .toList(); + return itemsItemIdImagesImageTypeDeleteImageType.map((e) => e.value!).toList(); } -List -itemsItemIdImagesImageTypeDeleteImageTypeListFromJson( +List itemsItemIdImagesImageTypeDeleteImageTypeListFromJson( List? itemsItemIdImagesImageTypeDeleteImageType, [ List? defaultValue, ]) { @@ -65923,8 +62566,7 @@ itemsItemIdImagesImageTypeDeleteImageTypeListFromJson( .toList(); } -List? -itemsItemIdImagesImageTypeDeleteImageTypeNullableListFromJson( +List? itemsItemIdImagesImageTypeDeleteImageTypeNullableListFromJson( List? itemsItemIdImagesImageTypeDeleteImageType, [ List? defaultValue, ]) { @@ -65940,21 +62582,18 @@ itemsItemIdImagesImageTypeDeleteImageTypeNullableListFromJson( } String? itemsItemIdImagesImageTypePostImageTypeNullableToJson( - enums.ItemsItemIdImagesImageTypePostImageType? - itemsItemIdImagesImageTypePostImageType, + enums.ItemsItemIdImagesImageTypePostImageType? itemsItemIdImagesImageTypePostImageType, ) { return itemsItemIdImagesImageTypePostImageType?.value; } String? itemsItemIdImagesImageTypePostImageTypeToJson( - enums.ItemsItemIdImagesImageTypePostImageType - itemsItemIdImagesImageTypePostImageType, + enums.ItemsItemIdImagesImageTypePostImageType itemsItemIdImagesImageTypePostImageType, ) { return itemsItemIdImagesImageTypePostImageType.value; } -enums.ItemsItemIdImagesImageTypePostImageType -itemsItemIdImagesImageTypePostImageTypeFromJson( +enums.ItemsItemIdImagesImageTypePostImageType itemsItemIdImagesImageTypePostImageTypeFromJson( Object? itemsItemIdImagesImageTypePostImageType, [ enums.ItemsItemIdImagesImageTypePostImageType? defaultValue, ]) { @@ -65965,8 +62604,7 @@ itemsItemIdImagesImageTypePostImageTypeFromJson( enums.ItemsItemIdImagesImageTypePostImageType.swaggerGeneratedUnknown; } -enums.ItemsItemIdImagesImageTypePostImageType? -itemsItemIdImagesImageTypePostImageTypeNullableFromJson( +enums.ItemsItemIdImagesImageTypePostImageType? itemsItemIdImagesImageTypePostImageTypeNullableFromJson( Object? itemsItemIdImagesImageTypePostImageType, [ enums.ItemsItemIdImagesImageTypePostImageType? defaultValue, ]) { @@ -65980,18 +62618,13 @@ itemsItemIdImagesImageTypePostImageTypeNullableFromJson( } String itemsItemIdImagesImageTypePostImageTypeExplodedListToJson( - List? - itemsItemIdImagesImageTypePostImageType, + List? itemsItemIdImagesImageTypePostImageType, ) { - return itemsItemIdImagesImageTypePostImageType - ?.map((e) => e.value!) - .join(',') ?? - ''; + return itemsItemIdImagesImageTypePostImageType?.map((e) => e.value!).join(',') ?? ''; } List itemsItemIdImagesImageTypePostImageTypeListToJson( - List? - itemsItemIdImagesImageTypePostImageType, + List? itemsItemIdImagesImageTypePostImageType, ) { if (itemsItemIdImagesImageTypePostImageType == null) { return []; @@ -66000,8 +62633,7 @@ List itemsItemIdImagesImageTypePostImageTypeListToJson( return itemsItemIdImagesImageTypePostImageType.map((e) => e.value!).toList(); } -List -itemsItemIdImagesImageTypePostImageTypeListFromJson( +List itemsItemIdImagesImageTypePostImageTypeListFromJson( List? itemsItemIdImagesImageTypePostImageType, [ List? defaultValue, ]) { @@ -66014,8 +62646,7 @@ itemsItemIdImagesImageTypePostImageTypeListFromJson( .toList(); } -List? -itemsItemIdImagesImageTypePostImageTypeNullableListFromJson( +List? itemsItemIdImagesImageTypePostImageTypeNullableListFromJson( List? itemsItemIdImagesImageTypePostImageType, [ List? defaultValue, ]) { @@ -66029,21 +62660,18 @@ itemsItemIdImagesImageTypePostImageTypeNullableListFromJson( } String? itemsItemIdImagesImageTypeGetImageTypeNullableToJson( - enums.ItemsItemIdImagesImageTypeGetImageType? - itemsItemIdImagesImageTypeGetImageType, + enums.ItemsItemIdImagesImageTypeGetImageType? itemsItemIdImagesImageTypeGetImageType, ) { return itemsItemIdImagesImageTypeGetImageType?.value; } String? itemsItemIdImagesImageTypeGetImageTypeToJson( - enums.ItemsItemIdImagesImageTypeGetImageType - itemsItemIdImagesImageTypeGetImageType, + enums.ItemsItemIdImagesImageTypeGetImageType itemsItemIdImagesImageTypeGetImageType, ) { return itemsItemIdImagesImageTypeGetImageType.value; } -enums.ItemsItemIdImagesImageTypeGetImageType -itemsItemIdImagesImageTypeGetImageTypeFromJson( +enums.ItemsItemIdImagesImageTypeGetImageType itemsItemIdImagesImageTypeGetImageTypeFromJson( Object? itemsItemIdImagesImageTypeGetImageType, [ enums.ItemsItemIdImagesImageTypeGetImageType? defaultValue, ]) { @@ -66054,8 +62682,7 @@ itemsItemIdImagesImageTypeGetImageTypeFromJson( enums.ItemsItemIdImagesImageTypeGetImageType.swaggerGeneratedUnknown; } -enums.ItemsItemIdImagesImageTypeGetImageType? -itemsItemIdImagesImageTypeGetImageTypeNullableFromJson( +enums.ItemsItemIdImagesImageTypeGetImageType? itemsItemIdImagesImageTypeGetImageTypeNullableFromJson( Object? itemsItemIdImagesImageTypeGetImageType, [ enums.ItemsItemIdImagesImageTypeGetImageType? defaultValue, ]) { @@ -66069,18 +62696,13 @@ itemsItemIdImagesImageTypeGetImageTypeNullableFromJson( } String itemsItemIdImagesImageTypeGetImageTypeExplodedListToJson( - List? - itemsItemIdImagesImageTypeGetImageType, + List? itemsItemIdImagesImageTypeGetImageType, ) { - return itemsItemIdImagesImageTypeGetImageType - ?.map((e) => e.value!) - .join(',') ?? - ''; + return itemsItemIdImagesImageTypeGetImageType?.map((e) => e.value!).join(',') ?? ''; } List itemsItemIdImagesImageTypeGetImageTypeListToJson( - List? - itemsItemIdImagesImageTypeGetImageType, + List? itemsItemIdImagesImageTypeGetImageType, ) { if (itemsItemIdImagesImageTypeGetImageType == null) { return []; @@ -66089,8 +62711,7 @@ List itemsItemIdImagesImageTypeGetImageTypeListToJson( return itemsItemIdImagesImageTypeGetImageType.map((e) => e.value!).toList(); } -List -itemsItemIdImagesImageTypeGetImageTypeListFromJson( +List itemsItemIdImagesImageTypeGetImageTypeListFromJson( List? itemsItemIdImagesImageTypeGetImageType, [ List? defaultValue, ]) { @@ -66103,8 +62724,7 @@ itemsItemIdImagesImageTypeGetImageTypeListFromJson( .toList(); } -List? -itemsItemIdImagesImageTypeGetImageTypeNullableListFromJson( +List? itemsItemIdImagesImageTypeGetImageTypeNullableListFromJson( List? itemsItemIdImagesImageTypeGetImageType, [ List? defaultValue, ]) { @@ -66118,8 +62738,7 @@ itemsItemIdImagesImageTypeGetImageTypeNullableListFromJson( } String? itemsItemIdImagesImageTypeGetFormatNullableToJson( - enums.ItemsItemIdImagesImageTypeGetFormat? - itemsItemIdImagesImageTypeGetFormat, + enums.ItemsItemIdImagesImageTypeGetFormat? itemsItemIdImagesImageTypeGetFormat, ) { return itemsItemIdImagesImageTypeGetFormat?.value; } @@ -66130,8 +62749,7 @@ String? itemsItemIdImagesImageTypeGetFormatToJson( return itemsItemIdImagesImageTypeGetFormat.value; } -enums.ItemsItemIdImagesImageTypeGetFormat -itemsItemIdImagesImageTypeGetFormatFromJson( +enums.ItemsItemIdImagesImageTypeGetFormat itemsItemIdImagesImageTypeGetFormatFromJson( Object? itemsItemIdImagesImageTypeGetFormat, [ enums.ItemsItemIdImagesImageTypeGetFormat? defaultValue, ]) { @@ -66142,8 +62760,7 @@ itemsItemIdImagesImageTypeGetFormatFromJson( enums.ItemsItemIdImagesImageTypeGetFormat.swaggerGeneratedUnknown; } -enums.ItemsItemIdImagesImageTypeGetFormat? -itemsItemIdImagesImageTypeGetFormatNullableFromJson( +enums.ItemsItemIdImagesImageTypeGetFormat? itemsItemIdImagesImageTypeGetFormatNullableFromJson( Object? itemsItemIdImagesImageTypeGetFormat, [ enums.ItemsItemIdImagesImageTypeGetFormat? defaultValue, ]) { @@ -66157,16 +62774,13 @@ itemsItemIdImagesImageTypeGetFormatNullableFromJson( } String itemsItemIdImagesImageTypeGetFormatExplodedListToJson( - List? - itemsItemIdImagesImageTypeGetFormat, + List? itemsItemIdImagesImageTypeGetFormat, ) { - return itemsItemIdImagesImageTypeGetFormat?.map((e) => e.value!).join(',') ?? - ''; + return itemsItemIdImagesImageTypeGetFormat?.map((e) => e.value!).join(',') ?? ''; } List itemsItemIdImagesImageTypeGetFormatListToJson( - List? - itemsItemIdImagesImageTypeGetFormat, + List? itemsItemIdImagesImageTypeGetFormat, ) { if (itemsItemIdImagesImageTypeGetFormat == null) { return []; @@ -66175,8 +62789,7 @@ List itemsItemIdImagesImageTypeGetFormatListToJson( return itemsItemIdImagesImageTypeGetFormat.map((e) => e.value!).toList(); } -List -itemsItemIdImagesImageTypeGetFormatListFromJson( +List itemsItemIdImagesImageTypeGetFormatListFromJson( List? itemsItemIdImagesImageTypeGetFormat, [ List? defaultValue, ]) { @@ -66189,8 +62802,7 @@ itemsItemIdImagesImageTypeGetFormatListFromJson( .toList(); } -List? -itemsItemIdImagesImageTypeGetFormatNullableListFromJson( +List? itemsItemIdImagesImageTypeGetFormatNullableListFromJson( List? itemsItemIdImagesImageTypeGetFormat, [ List? defaultValue, ]) { @@ -66204,21 +62816,18 @@ itemsItemIdImagesImageTypeGetFormatNullableListFromJson( } String? itemsItemIdImagesImageTypeHeadImageTypeNullableToJson( - enums.ItemsItemIdImagesImageTypeHeadImageType? - itemsItemIdImagesImageTypeHeadImageType, + enums.ItemsItemIdImagesImageTypeHeadImageType? itemsItemIdImagesImageTypeHeadImageType, ) { return itemsItemIdImagesImageTypeHeadImageType?.value; } String? itemsItemIdImagesImageTypeHeadImageTypeToJson( - enums.ItemsItemIdImagesImageTypeHeadImageType - itemsItemIdImagesImageTypeHeadImageType, + enums.ItemsItemIdImagesImageTypeHeadImageType itemsItemIdImagesImageTypeHeadImageType, ) { return itemsItemIdImagesImageTypeHeadImageType.value; } -enums.ItemsItemIdImagesImageTypeHeadImageType -itemsItemIdImagesImageTypeHeadImageTypeFromJson( +enums.ItemsItemIdImagesImageTypeHeadImageType itemsItemIdImagesImageTypeHeadImageTypeFromJson( Object? itemsItemIdImagesImageTypeHeadImageType, [ enums.ItemsItemIdImagesImageTypeHeadImageType? defaultValue, ]) { @@ -66229,8 +62838,7 @@ itemsItemIdImagesImageTypeHeadImageTypeFromJson( enums.ItemsItemIdImagesImageTypeHeadImageType.swaggerGeneratedUnknown; } -enums.ItemsItemIdImagesImageTypeHeadImageType? -itemsItemIdImagesImageTypeHeadImageTypeNullableFromJson( +enums.ItemsItemIdImagesImageTypeHeadImageType? itemsItemIdImagesImageTypeHeadImageTypeNullableFromJson( Object? itemsItemIdImagesImageTypeHeadImageType, [ enums.ItemsItemIdImagesImageTypeHeadImageType? defaultValue, ]) { @@ -66244,18 +62852,13 @@ itemsItemIdImagesImageTypeHeadImageTypeNullableFromJson( } String itemsItemIdImagesImageTypeHeadImageTypeExplodedListToJson( - List? - itemsItemIdImagesImageTypeHeadImageType, + List? itemsItemIdImagesImageTypeHeadImageType, ) { - return itemsItemIdImagesImageTypeHeadImageType - ?.map((e) => e.value!) - .join(',') ?? - ''; + return itemsItemIdImagesImageTypeHeadImageType?.map((e) => e.value!).join(',') ?? ''; } List itemsItemIdImagesImageTypeHeadImageTypeListToJson( - List? - itemsItemIdImagesImageTypeHeadImageType, + List? itemsItemIdImagesImageTypeHeadImageType, ) { if (itemsItemIdImagesImageTypeHeadImageType == null) { return []; @@ -66264,8 +62867,7 @@ List itemsItemIdImagesImageTypeHeadImageTypeListToJson( return itemsItemIdImagesImageTypeHeadImageType.map((e) => e.value!).toList(); } -List -itemsItemIdImagesImageTypeHeadImageTypeListFromJson( +List itemsItemIdImagesImageTypeHeadImageTypeListFromJson( List? itemsItemIdImagesImageTypeHeadImageType, [ List? defaultValue, ]) { @@ -66278,8 +62880,7 @@ itemsItemIdImagesImageTypeHeadImageTypeListFromJson( .toList(); } -List? -itemsItemIdImagesImageTypeHeadImageTypeNullableListFromJson( +List? itemsItemIdImagesImageTypeHeadImageTypeNullableListFromJson( List? itemsItemIdImagesImageTypeHeadImageType, [ List? defaultValue, ]) { @@ -66293,21 +62894,18 @@ itemsItemIdImagesImageTypeHeadImageTypeNullableListFromJson( } String? itemsItemIdImagesImageTypeHeadFormatNullableToJson( - enums.ItemsItemIdImagesImageTypeHeadFormat? - itemsItemIdImagesImageTypeHeadFormat, + enums.ItemsItemIdImagesImageTypeHeadFormat? itemsItemIdImagesImageTypeHeadFormat, ) { return itemsItemIdImagesImageTypeHeadFormat?.value; } String? itemsItemIdImagesImageTypeHeadFormatToJson( - enums.ItemsItemIdImagesImageTypeHeadFormat - itemsItemIdImagesImageTypeHeadFormat, + enums.ItemsItemIdImagesImageTypeHeadFormat itemsItemIdImagesImageTypeHeadFormat, ) { return itemsItemIdImagesImageTypeHeadFormat.value; } -enums.ItemsItemIdImagesImageTypeHeadFormat -itemsItemIdImagesImageTypeHeadFormatFromJson( +enums.ItemsItemIdImagesImageTypeHeadFormat itemsItemIdImagesImageTypeHeadFormatFromJson( Object? itemsItemIdImagesImageTypeHeadFormat, [ enums.ItemsItemIdImagesImageTypeHeadFormat? defaultValue, ]) { @@ -66318,8 +62916,7 @@ itemsItemIdImagesImageTypeHeadFormatFromJson( enums.ItemsItemIdImagesImageTypeHeadFormat.swaggerGeneratedUnknown; } -enums.ItemsItemIdImagesImageTypeHeadFormat? -itemsItemIdImagesImageTypeHeadFormatNullableFromJson( +enums.ItemsItemIdImagesImageTypeHeadFormat? itemsItemIdImagesImageTypeHeadFormatNullableFromJson( Object? itemsItemIdImagesImageTypeHeadFormat, [ enums.ItemsItemIdImagesImageTypeHeadFormat? defaultValue, ]) { @@ -66333,16 +62930,13 @@ itemsItemIdImagesImageTypeHeadFormatNullableFromJson( } String itemsItemIdImagesImageTypeHeadFormatExplodedListToJson( - List? - itemsItemIdImagesImageTypeHeadFormat, + List? itemsItemIdImagesImageTypeHeadFormat, ) { - return itemsItemIdImagesImageTypeHeadFormat?.map((e) => e.value!).join(',') ?? - ''; + return itemsItemIdImagesImageTypeHeadFormat?.map((e) => e.value!).join(',') ?? ''; } List itemsItemIdImagesImageTypeHeadFormatListToJson( - List? - itemsItemIdImagesImageTypeHeadFormat, + List? itemsItemIdImagesImageTypeHeadFormat, ) { if (itemsItemIdImagesImageTypeHeadFormat == null) { return []; @@ -66351,8 +62945,7 @@ List itemsItemIdImagesImageTypeHeadFormatListToJson( return itemsItemIdImagesImageTypeHeadFormat.map((e) => e.value!).toList(); } -List -itemsItemIdImagesImageTypeHeadFormatListFromJson( +List itemsItemIdImagesImageTypeHeadFormatListFromJson( List? itemsItemIdImagesImageTypeHeadFormat, [ List? defaultValue, ]) { @@ -66365,8 +62958,7 @@ itemsItemIdImagesImageTypeHeadFormatListFromJson( .toList(); } -List? -itemsItemIdImagesImageTypeHeadFormatNullableListFromJson( +List? itemsItemIdImagesImageTypeHeadFormatNullableListFromJson( List? itemsItemIdImagesImageTypeHeadFormat, [ List? defaultValue, ]) { @@ -66380,76 +62972,60 @@ itemsItemIdImagesImageTypeHeadFormatNullableListFromJson( } String? itemsItemIdImagesImageTypeImageIndexDeleteImageTypeNullableToJson( - enums.ItemsItemIdImagesImageTypeImageIndexDeleteImageType? - itemsItemIdImagesImageTypeImageIndexDeleteImageType, + enums.ItemsItemIdImagesImageTypeImageIndexDeleteImageType? itemsItemIdImagesImageTypeImageIndexDeleteImageType, ) { return itemsItemIdImagesImageTypeImageIndexDeleteImageType?.value; } String? itemsItemIdImagesImageTypeImageIndexDeleteImageTypeToJson( - enums.ItemsItemIdImagesImageTypeImageIndexDeleteImageType - itemsItemIdImagesImageTypeImageIndexDeleteImageType, + enums.ItemsItemIdImagesImageTypeImageIndexDeleteImageType itemsItemIdImagesImageTypeImageIndexDeleteImageType, ) { return itemsItemIdImagesImageTypeImageIndexDeleteImageType.value; } -enums.ItemsItemIdImagesImageTypeImageIndexDeleteImageType -itemsItemIdImagesImageTypeImageIndexDeleteImageTypeFromJson( +enums.ItemsItemIdImagesImageTypeImageIndexDeleteImageType itemsItemIdImagesImageTypeImageIndexDeleteImageTypeFromJson( Object? itemsItemIdImagesImageTypeImageIndexDeleteImageType, [ enums.ItemsItemIdImagesImageTypeImageIndexDeleteImageType? defaultValue, ]) { - return enums.ItemsItemIdImagesImageTypeImageIndexDeleteImageType.values - .firstWhereOrNull( - (e) => - e.value == itemsItemIdImagesImageTypeImageIndexDeleteImageType, - ) ?? + return enums.ItemsItemIdImagesImageTypeImageIndexDeleteImageType.values.firstWhereOrNull( + (e) => e.value == itemsItemIdImagesImageTypeImageIndexDeleteImageType, + ) ?? defaultValue ?? - enums - .ItemsItemIdImagesImageTypeImageIndexDeleteImageType - .swaggerGeneratedUnknown; + enums.ItemsItemIdImagesImageTypeImageIndexDeleteImageType.swaggerGeneratedUnknown; } enums.ItemsItemIdImagesImageTypeImageIndexDeleteImageType? -itemsItemIdImagesImageTypeImageIndexDeleteImageTypeNullableFromJson( + itemsItemIdImagesImageTypeImageIndexDeleteImageTypeNullableFromJson( Object? itemsItemIdImagesImageTypeImageIndexDeleteImageType, [ enums.ItemsItemIdImagesImageTypeImageIndexDeleteImageType? defaultValue, ]) { if (itemsItemIdImagesImageTypeImageIndexDeleteImageType == null) { return null; } - return enums.ItemsItemIdImagesImageTypeImageIndexDeleteImageType.values - .firstWhereOrNull( - (e) => - e.value == itemsItemIdImagesImageTypeImageIndexDeleteImageType, - ) ?? + return enums.ItemsItemIdImagesImageTypeImageIndexDeleteImageType.values.firstWhereOrNull( + (e) => e.value == itemsItemIdImagesImageTypeImageIndexDeleteImageType, + ) ?? defaultValue; } String itemsItemIdImagesImageTypeImageIndexDeleteImageTypeExplodedListToJson( - List? - itemsItemIdImagesImageTypeImageIndexDeleteImageType, + List? itemsItemIdImagesImageTypeImageIndexDeleteImageType, ) { - return itemsItemIdImagesImageTypeImageIndexDeleteImageType - ?.map((e) => e.value!) - .join(',') ?? - ''; + return itemsItemIdImagesImageTypeImageIndexDeleteImageType?.map((e) => e.value!).join(',') ?? ''; } List itemsItemIdImagesImageTypeImageIndexDeleteImageTypeListToJson( - List? - itemsItemIdImagesImageTypeImageIndexDeleteImageType, + List? itemsItemIdImagesImageTypeImageIndexDeleteImageType, ) { if (itemsItemIdImagesImageTypeImageIndexDeleteImageType == null) { return []; } - return itemsItemIdImagesImageTypeImageIndexDeleteImageType - .map((e) => e.value!) - .toList(); + return itemsItemIdImagesImageTypeImageIndexDeleteImageType.map((e) => e.value!).toList(); } List -itemsItemIdImagesImageTypeImageIndexDeleteImageTypeListFromJson( + itemsItemIdImagesImageTypeImageIndexDeleteImageTypeListFromJson( List? itemsItemIdImagesImageTypeImageIndexDeleteImageType, [ List? defaultValue, ]) { @@ -66467,7 +63043,7 @@ itemsItemIdImagesImageTypeImageIndexDeleteImageTypeListFromJson( } List? -itemsItemIdImagesImageTypeImageIndexDeleteImageTypeNullableListFromJson( + itemsItemIdImagesImageTypeImageIndexDeleteImageTypeNullableListFromJson( List? itemsItemIdImagesImageTypeImageIndexDeleteImageType, [ List? defaultValue, ]) { @@ -66485,74 +63061,60 @@ itemsItemIdImagesImageTypeImageIndexDeleteImageTypeNullableListFromJson( } String? itemsItemIdImagesImageTypeImageIndexPostImageTypeNullableToJson( - enums.ItemsItemIdImagesImageTypeImageIndexPostImageType? - itemsItemIdImagesImageTypeImageIndexPostImageType, + enums.ItemsItemIdImagesImageTypeImageIndexPostImageType? itemsItemIdImagesImageTypeImageIndexPostImageType, ) { return itemsItemIdImagesImageTypeImageIndexPostImageType?.value; } String? itemsItemIdImagesImageTypeImageIndexPostImageTypeToJson( - enums.ItemsItemIdImagesImageTypeImageIndexPostImageType - itemsItemIdImagesImageTypeImageIndexPostImageType, + enums.ItemsItemIdImagesImageTypeImageIndexPostImageType itemsItemIdImagesImageTypeImageIndexPostImageType, ) { return itemsItemIdImagesImageTypeImageIndexPostImageType.value; } -enums.ItemsItemIdImagesImageTypeImageIndexPostImageType -itemsItemIdImagesImageTypeImageIndexPostImageTypeFromJson( +enums.ItemsItemIdImagesImageTypeImageIndexPostImageType itemsItemIdImagesImageTypeImageIndexPostImageTypeFromJson( Object? itemsItemIdImagesImageTypeImageIndexPostImageType, [ enums.ItemsItemIdImagesImageTypeImageIndexPostImageType? defaultValue, ]) { - return enums.ItemsItemIdImagesImageTypeImageIndexPostImageType.values - .firstWhereOrNull( - (e) => e.value == itemsItemIdImagesImageTypeImageIndexPostImageType, - ) ?? + return enums.ItemsItemIdImagesImageTypeImageIndexPostImageType.values.firstWhereOrNull( + (e) => e.value == itemsItemIdImagesImageTypeImageIndexPostImageType, + ) ?? defaultValue ?? - enums - .ItemsItemIdImagesImageTypeImageIndexPostImageType - .swaggerGeneratedUnknown; + enums.ItemsItemIdImagesImageTypeImageIndexPostImageType.swaggerGeneratedUnknown; } enums.ItemsItemIdImagesImageTypeImageIndexPostImageType? -itemsItemIdImagesImageTypeImageIndexPostImageTypeNullableFromJson( + itemsItemIdImagesImageTypeImageIndexPostImageTypeNullableFromJson( Object? itemsItemIdImagesImageTypeImageIndexPostImageType, [ enums.ItemsItemIdImagesImageTypeImageIndexPostImageType? defaultValue, ]) { if (itemsItemIdImagesImageTypeImageIndexPostImageType == null) { return null; } - return enums.ItemsItemIdImagesImageTypeImageIndexPostImageType.values - .firstWhereOrNull( - (e) => e.value == itemsItemIdImagesImageTypeImageIndexPostImageType, - ) ?? + return enums.ItemsItemIdImagesImageTypeImageIndexPostImageType.values.firstWhereOrNull( + (e) => e.value == itemsItemIdImagesImageTypeImageIndexPostImageType, + ) ?? defaultValue; } String itemsItemIdImagesImageTypeImageIndexPostImageTypeExplodedListToJson( - List? - itemsItemIdImagesImageTypeImageIndexPostImageType, + List? itemsItemIdImagesImageTypeImageIndexPostImageType, ) { - return itemsItemIdImagesImageTypeImageIndexPostImageType - ?.map((e) => e.value!) - .join(',') ?? - ''; + return itemsItemIdImagesImageTypeImageIndexPostImageType?.map((e) => e.value!).join(',') ?? ''; } List itemsItemIdImagesImageTypeImageIndexPostImageTypeListToJson( - List? - itemsItemIdImagesImageTypeImageIndexPostImageType, + List? itemsItemIdImagesImageTypeImageIndexPostImageType, ) { if (itemsItemIdImagesImageTypeImageIndexPostImageType == null) { return []; } - return itemsItemIdImagesImageTypeImageIndexPostImageType - .map((e) => e.value!) - .toList(); + return itemsItemIdImagesImageTypeImageIndexPostImageType.map((e) => e.value!).toList(); } List -itemsItemIdImagesImageTypeImageIndexPostImageTypeListFromJson( + itemsItemIdImagesImageTypeImageIndexPostImageTypeListFromJson( List? itemsItemIdImagesImageTypeImageIndexPostImageType, [ List? defaultValue, ]) { @@ -66570,7 +63132,7 @@ itemsItemIdImagesImageTypeImageIndexPostImageTypeListFromJson( } List? -itemsItemIdImagesImageTypeImageIndexPostImageTypeNullableListFromJson( + itemsItemIdImagesImageTypeImageIndexPostImageTypeNullableListFromJson( List? itemsItemIdImagesImageTypeImageIndexPostImageType, [ List? defaultValue, ]) { @@ -66588,74 +63150,60 @@ itemsItemIdImagesImageTypeImageIndexPostImageTypeNullableListFromJson( } String? itemsItemIdImagesImageTypeImageIndexGetImageTypeNullableToJson( - enums.ItemsItemIdImagesImageTypeImageIndexGetImageType? - itemsItemIdImagesImageTypeImageIndexGetImageType, + enums.ItemsItemIdImagesImageTypeImageIndexGetImageType? itemsItemIdImagesImageTypeImageIndexGetImageType, ) { return itemsItemIdImagesImageTypeImageIndexGetImageType?.value; } String? itemsItemIdImagesImageTypeImageIndexGetImageTypeToJson( - enums.ItemsItemIdImagesImageTypeImageIndexGetImageType - itemsItemIdImagesImageTypeImageIndexGetImageType, + enums.ItemsItemIdImagesImageTypeImageIndexGetImageType itemsItemIdImagesImageTypeImageIndexGetImageType, ) { return itemsItemIdImagesImageTypeImageIndexGetImageType.value; } -enums.ItemsItemIdImagesImageTypeImageIndexGetImageType -itemsItemIdImagesImageTypeImageIndexGetImageTypeFromJson( +enums.ItemsItemIdImagesImageTypeImageIndexGetImageType itemsItemIdImagesImageTypeImageIndexGetImageTypeFromJson( Object? itemsItemIdImagesImageTypeImageIndexGetImageType, [ enums.ItemsItemIdImagesImageTypeImageIndexGetImageType? defaultValue, ]) { - return enums.ItemsItemIdImagesImageTypeImageIndexGetImageType.values - .firstWhereOrNull( - (e) => e.value == itemsItemIdImagesImageTypeImageIndexGetImageType, - ) ?? + return enums.ItemsItemIdImagesImageTypeImageIndexGetImageType.values.firstWhereOrNull( + (e) => e.value == itemsItemIdImagesImageTypeImageIndexGetImageType, + ) ?? defaultValue ?? - enums - .ItemsItemIdImagesImageTypeImageIndexGetImageType - .swaggerGeneratedUnknown; + enums.ItemsItemIdImagesImageTypeImageIndexGetImageType.swaggerGeneratedUnknown; } enums.ItemsItemIdImagesImageTypeImageIndexGetImageType? -itemsItemIdImagesImageTypeImageIndexGetImageTypeNullableFromJson( + itemsItemIdImagesImageTypeImageIndexGetImageTypeNullableFromJson( Object? itemsItemIdImagesImageTypeImageIndexGetImageType, [ enums.ItemsItemIdImagesImageTypeImageIndexGetImageType? defaultValue, ]) { if (itemsItemIdImagesImageTypeImageIndexGetImageType == null) { return null; } - return enums.ItemsItemIdImagesImageTypeImageIndexGetImageType.values - .firstWhereOrNull( - (e) => e.value == itemsItemIdImagesImageTypeImageIndexGetImageType, - ) ?? + return enums.ItemsItemIdImagesImageTypeImageIndexGetImageType.values.firstWhereOrNull( + (e) => e.value == itemsItemIdImagesImageTypeImageIndexGetImageType, + ) ?? defaultValue; } String itemsItemIdImagesImageTypeImageIndexGetImageTypeExplodedListToJson( - List? - itemsItemIdImagesImageTypeImageIndexGetImageType, + List? itemsItemIdImagesImageTypeImageIndexGetImageType, ) { - return itemsItemIdImagesImageTypeImageIndexGetImageType - ?.map((e) => e.value!) - .join(',') ?? - ''; + return itemsItemIdImagesImageTypeImageIndexGetImageType?.map((e) => e.value!).join(',') ?? ''; } List itemsItemIdImagesImageTypeImageIndexGetImageTypeListToJson( - List? - itemsItemIdImagesImageTypeImageIndexGetImageType, + List? itemsItemIdImagesImageTypeImageIndexGetImageType, ) { if (itemsItemIdImagesImageTypeImageIndexGetImageType == null) { return []; } - return itemsItemIdImagesImageTypeImageIndexGetImageType - .map((e) => e.value!) - .toList(); + return itemsItemIdImagesImageTypeImageIndexGetImageType.map((e) => e.value!).toList(); } List -itemsItemIdImagesImageTypeImageIndexGetImageTypeListFromJson( + itemsItemIdImagesImageTypeImageIndexGetImageTypeListFromJson( List? itemsItemIdImagesImageTypeImageIndexGetImageType, [ List? defaultValue, ]) { @@ -66673,7 +63221,7 @@ itemsItemIdImagesImageTypeImageIndexGetImageTypeListFromJson( } List? -itemsItemIdImagesImageTypeImageIndexGetImageTypeNullableListFromJson( + itemsItemIdImagesImageTypeImageIndexGetImageTypeNullableListFromJson( List? itemsItemIdImagesImageTypeImageIndexGetImageType, [ List? defaultValue, ]) { @@ -66691,74 +63239,58 @@ itemsItemIdImagesImageTypeImageIndexGetImageTypeNullableListFromJson( } String? itemsItemIdImagesImageTypeImageIndexGetFormatNullableToJson( - enums.ItemsItemIdImagesImageTypeImageIndexGetFormat? - itemsItemIdImagesImageTypeImageIndexGetFormat, + enums.ItemsItemIdImagesImageTypeImageIndexGetFormat? itemsItemIdImagesImageTypeImageIndexGetFormat, ) { return itemsItemIdImagesImageTypeImageIndexGetFormat?.value; } String? itemsItemIdImagesImageTypeImageIndexGetFormatToJson( - enums.ItemsItemIdImagesImageTypeImageIndexGetFormat - itemsItemIdImagesImageTypeImageIndexGetFormat, + enums.ItemsItemIdImagesImageTypeImageIndexGetFormat itemsItemIdImagesImageTypeImageIndexGetFormat, ) { return itemsItemIdImagesImageTypeImageIndexGetFormat.value; } -enums.ItemsItemIdImagesImageTypeImageIndexGetFormat -itemsItemIdImagesImageTypeImageIndexGetFormatFromJson( +enums.ItemsItemIdImagesImageTypeImageIndexGetFormat itemsItemIdImagesImageTypeImageIndexGetFormatFromJson( Object? itemsItemIdImagesImageTypeImageIndexGetFormat, [ enums.ItemsItemIdImagesImageTypeImageIndexGetFormat? defaultValue, ]) { - return enums.ItemsItemIdImagesImageTypeImageIndexGetFormat.values - .firstWhereOrNull( - (e) => e.value == itemsItemIdImagesImageTypeImageIndexGetFormat, - ) ?? + return enums.ItemsItemIdImagesImageTypeImageIndexGetFormat.values.firstWhereOrNull( + (e) => e.value == itemsItemIdImagesImageTypeImageIndexGetFormat, + ) ?? defaultValue ?? - enums - .ItemsItemIdImagesImageTypeImageIndexGetFormat - .swaggerGeneratedUnknown; + enums.ItemsItemIdImagesImageTypeImageIndexGetFormat.swaggerGeneratedUnknown; } -enums.ItemsItemIdImagesImageTypeImageIndexGetFormat? -itemsItemIdImagesImageTypeImageIndexGetFormatNullableFromJson( +enums.ItemsItemIdImagesImageTypeImageIndexGetFormat? itemsItemIdImagesImageTypeImageIndexGetFormatNullableFromJson( Object? itemsItemIdImagesImageTypeImageIndexGetFormat, [ enums.ItemsItemIdImagesImageTypeImageIndexGetFormat? defaultValue, ]) { if (itemsItemIdImagesImageTypeImageIndexGetFormat == null) { return null; } - return enums.ItemsItemIdImagesImageTypeImageIndexGetFormat.values - .firstWhereOrNull( - (e) => e.value == itemsItemIdImagesImageTypeImageIndexGetFormat, - ) ?? + return enums.ItemsItemIdImagesImageTypeImageIndexGetFormat.values.firstWhereOrNull( + (e) => e.value == itemsItemIdImagesImageTypeImageIndexGetFormat, + ) ?? defaultValue; } String itemsItemIdImagesImageTypeImageIndexGetFormatExplodedListToJson( - List? - itemsItemIdImagesImageTypeImageIndexGetFormat, + List? itemsItemIdImagesImageTypeImageIndexGetFormat, ) { - return itemsItemIdImagesImageTypeImageIndexGetFormat - ?.map((e) => e.value!) - .join(',') ?? - ''; + return itemsItemIdImagesImageTypeImageIndexGetFormat?.map((e) => e.value!).join(',') ?? ''; } List itemsItemIdImagesImageTypeImageIndexGetFormatListToJson( - List? - itemsItemIdImagesImageTypeImageIndexGetFormat, + List? itemsItemIdImagesImageTypeImageIndexGetFormat, ) { if (itemsItemIdImagesImageTypeImageIndexGetFormat == null) { return []; } - return itemsItemIdImagesImageTypeImageIndexGetFormat - .map((e) => e.value!) - .toList(); + return itemsItemIdImagesImageTypeImageIndexGetFormat.map((e) => e.value!).toList(); } -List -itemsItemIdImagesImageTypeImageIndexGetFormatListFromJson( +List itemsItemIdImagesImageTypeImageIndexGetFormatListFromJson( List? itemsItemIdImagesImageTypeImageIndexGetFormat, [ List? defaultValue, ]) { @@ -66768,14 +63300,13 @@ itemsItemIdImagesImageTypeImageIndexGetFormatListFromJson( return itemsItemIdImagesImageTypeImageIndexGetFormat .map( - (e) => - itemsItemIdImagesImageTypeImageIndexGetFormatFromJson(e.toString()), + (e) => itemsItemIdImagesImageTypeImageIndexGetFormatFromJson(e.toString()), ) .toList(); } List? -itemsItemIdImagesImageTypeImageIndexGetFormatNullableListFromJson( + itemsItemIdImagesImageTypeImageIndexGetFormatNullableListFromJson( List? itemsItemIdImagesImageTypeImageIndexGetFormat, [ List? defaultValue, ]) { @@ -66785,81 +63316,66 @@ itemsItemIdImagesImageTypeImageIndexGetFormatNullableListFromJson( return itemsItemIdImagesImageTypeImageIndexGetFormat .map( - (e) => - itemsItemIdImagesImageTypeImageIndexGetFormatFromJson(e.toString()), + (e) => itemsItemIdImagesImageTypeImageIndexGetFormatFromJson(e.toString()), ) .toList(); } String? itemsItemIdImagesImageTypeImageIndexHeadImageTypeNullableToJson( - enums.ItemsItemIdImagesImageTypeImageIndexHeadImageType? - itemsItemIdImagesImageTypeImageIndexHeadImageType, + enums.ItemsItemIdImagesImageTypeImageIndexHeadImageType? itemsItemIdImagesImageTypeImageIndexHeadImageType, ) { return itemsItemIdImagesImageTypeImageIndexHeadImageType?.value; } String? itemsItemIdImagesImageTypeImageIndexHeadImageTypeToJson( - enums.ItemsItemIdImagesImageTypeImageIndexHeadImageType - itemsItemIdImagesImageTypeImageIndexHeadImageType, + enums.ItemsItemIdImagesImageTypeImageIndexHeadImageType itemsItemIdImagesImageTypeImageIndexHeadImageType, ) { return itemsItemIdImagesImageTypeImageIndexHeadImageType.value; } -enums.ItemsItemIdImagesImageTypeImageIndexHeadImageType -itemsItemIdImagesImageTypeImageIndexHeadImageTypeFromJson( +enums.ItemsItemIdImagesImageTypeImageIndexHeadImageType itemsItemIdImagesImageTypeImageIndexHeadImageTypeFromJson( Object? itemsItemIdImagesImageTypeImageIndexHeadImageType, [ enums.ItemsItemIdImagesImageTypeImageIndexHeadImageType? defaultValue, ]) { - return enums.ItemsItemIdImagesImageTypeImageIndexHeadImageType.values - .firstWhereOrNull( - (e) => e.value == itemsItemIdImagesImageTypeImageIndexHeadImageType, - ) ?? + return enums.ItemsItemIdImagesImageTypeImageIndexHeadImageType.values.firstWhereOrNull( + (e) => e.value == itemsItemIdImagesImageTypeImageIndexHeadImageType, + ) ?? defaultValue ?? - enums - .ItemsItemIdImagesImageTypeImageIndexHeadImageType - .swaggerGeneratedUnknown; + enums.ItemsItemIdImagesImageTypeImageIndexHeadImageType.swaggerGeneratedUnknown; } enums.ItemsItemIdImagesImageTypeImageIndexHeadImageType? -itemsItemIdImagesImageTypeImageIndexHeadImageTypeNullableFromJson( + itemsItemIdImagesImageTypeImageIndexHeadImageTypeNullableFromJson( Object? itemsItemIdImagesImageTypeImageIndexHeadImageType, [ enums.ItemsItemIdImagesImageTypeImageIndexHeadImageType? defaultValue, ]) { if (itemsItemIdImagesImageTypeImageIndexHeadImageType == null) { return null; } - return enums.ItemsItemIdImagesImageTypeImageIndexHeadImageType.values - .firstWhereOrNull( - (e) => e.value == itemsItemIdImagesImageTypeImageIndexHeadImageType, - ) ?? + return enums.ItemsItemIdImagesImageTypeImageIndexHeadImageType.values.firstWhereOrNull( + (e) => e.value == itemsItemIdImagesImageTypeImageIndexHeadImageType, + ) ?? defaultValue; } String itemsItemIdImagesImageTypeImageIndexHeadImageTypeExplodedListToJson( - List? - itemsItemIdImagesImageTypeImageIndexHeadImageType, + List? itemsItemIdImagesImageTypeImageIndexHeadImageType, ) { - return itemsItemIdImagesImageTypeImageIndexHeadImageType - ?.map((e) => e.value!) - .join(',') ?? - ''; + return itemsItemIdImagesImageTypeImageIndexHeadImageType?.map((e) => e.value!).join(',') ?? ''; } List itemsItemIdImagesImageTypeImageIndexHeadImageTypeListToJson( - List? - itemsItemIdImagesImageTypeImageIndexHeadImageType, + List? itemsItemIdImagesImageTypeImageIndexHeadImageType, ) { if (itemsItemIdImagesImageTypeImageIndexHeadImageType == null) { return []; } - return itemsItemIdImagesImageTypeImageIndexHeadImageType - .map((e) => e.value!) - .toList(); + return itemsItemIdImagesImageTypeImageIndexHeadImageType.map((e) => e.value!).toList(); } List -itemsItemIdImagesImageTypeImageIndexHeadImageTypeListFromJson( + itemsItemIdImagesImageTypeImageIndexHeadImageTypeListFromJson( List? itemsItemIdImagesImageTypeImageIndexHeadImageType, [ List? defaultValue, ]) { @@ -66877,7 +63393,7 @@ itemsItemIdImagesImageTypeImageIndexHeadImageTypeListFromJson( } List? -itemsItemIdImagesImageTypeImageIndexHeadImageTypeNullableListFromJson( + itemsItemIdImagesImageTypeImageIndexHeadImageTypeNullableListFromJson( List? itemsItemIdImagesImageTypeImageIndexHeadImageType, [ List? defaultValue, ]) { @@ -66895,74 +63411,58 @@ itemsItemIdImagesImageTypeImageIndexHeadImageTypeNullableListFromJson( } String? itemsItemIdImagesImageTypeImageIndexHeadFormatNullableToJson( - enums.ItemsItemIdImagesImageTypeImageIndexHeadFormat? - itemsItemIdImagesImageTypeImageIndexHeadFormat, + enums.ItemsItemIdImagesImageTypeImageIndexHeadFormat? itemsItemIdImagesImageTypeImageIndexHeadFormat, ) { return itemsItemIdImagesImageTypeImageIndexHeadFormat?.value; } String? itemsItemIdImagesImageTypeImageIndexHeadFormatToJson( - enums.ItemsItemIdImagesImageTypeImageIndexHeadFormat - itemsItemIdImagesImageTypeImageIndexHeadFormat, + enums.ItemsItemIdImagesImageTypeImageIndexHeadFormat itemsItemIdImagesImageTypeImageIndexHeadFormat, ) { return itemsItemIdImagesImageTypeImageIndexHeadFormat.value; } -enums.ItemsItemIdImagesImageTypeImageIndexHeadFormat -itemsItemIdImagesImageTypeImageIndexHeadFormatFromJson( +enums.ItemsItemIdImagesImageTypeImageIndexHeadFormat itemsItemIdImagesImageTypeImageIndexHeadFormatFromJson( Object? itemsItemIdImagesImageTypeImageIndexHeadFormat, [ enums.ItemsItemIdImagesImageTypeImageIndexHeadFormat? defaultValue, ]) { - return enums.ItemsItemIdImagesImageTypeImageIndexHeadFormat.values - .firstWhereOrNull( - (e) => e.value == itemsItemIdImagesImageTypeImageIndexHeadFormat, - ) ?? + return enums.ItemsItemIdImagesImageTypeImageIndexHeadFormat.values.firstWhereOrNull( + (e) => e.value == itemsItemIdImagesImageTypeImageIndexHeadFormat, + ) ?? defaultValue ?? - enums - .ItemsItemIdImagesImageTypeImageIndexHeadFormat - .swaggerGeneratedUnknown; + enums.ItemsItemIdImagesImageTypeImageIndexHeadFormat.swaggerGeneratedUnknown; } -enums.ItemsItemIdImagesImageTypeImageIndexHeadFormat? -itemsItemIdImagesImageTypeImageIndexHeadFormatNullableFromJson( +enums.ItemsItemIdImagesImageTypeImageIndexHeadFormat? itemsItemIdImagesImageTypeImageIndexHeadFormatNullableFromJson( Object? itemsItemIdImagesImageTypeImageIndexHeadFormat, [ enums.ItemsItemIdImagesImageTypeImageIndexHeadFormat? defaultValue, ]) { if (itemsItemIdImagesImageTypeImageIndexHeadFormat == null) { return null; } - return enums.ItemsItemIdImagesImageTypeImageIndexHeadFormat.values - .firstWhereOrNull( - (e) => e.value == itemsItemIdImagesImageTypeImageIndexHeadFormat, - ) ?? + return enums.ItemsItemIdImagesImageTypeImageIndexHeadFormat.values.firstWhereOrNull( + (e) => e.value == itemsItemIdImagesImageTypeImageIndexHeadFormat, + ) ?? defaultValue; } String itemsItemIdImagesImageTypeImageIndexHeadFormatExplodedListToJson( - List? - itemsItemIdImagesImageTypeImageIndexHeadFormat, + List? itemsItemIdImagesImageTypeImageIndexHeadFormat, ) { - return itemsItemIdImagesImageTypeImageIndexHeadFormat - ?.map((e) => e.value!) - .join(',') ?? - ''; + return itemsItemIdImagesImageTypeImageIndexHeadFormat?.map((e) => e.value!).join(',') ?? ''; } List itemsItemIdImagesImageTypeImageIndexHeadFormatListToJson( - List? - itemsItemIdImagesImageTypeImageIndexHeadFormat, + List? itemsItemIdImagesImageTypeImageIndexHeadFormat, ) { if (itemsItemIdImagesImageTypeImageIndexHeadFormat == null) { return []; } - return itemsItemIdImagesImageTypeImageIndexHeadFormat - .map((e) => e.value!) - .toList(); + return itemsItemIdImagesImageTypeImageIndexHeadFormat.map((e) => e.value!).toList(); } -List -itemsItemIdImagesImageTypeImageIndexHeadFormatListFromJson( +List itemsItemIdImagesImageTypeImageIndexHeadFormatListFromJson( List? itemsItemIdImagesImageTypeImageIndexHeadFormat, [ List? defaultValue, ]) { @@ -66980,7 +63480,7 @@ itemsItemIdImagesImageTypeImageIndexHeadFormatListFromJson( } List? -itemsItemIdImagesImageTypeImageIndexHeadFormatNullableListFromJson( + itemsItemIdImagesImageTypeImageIndexHeadFormatNullableListFromJson( List? itemsItemIdImagesImageTypeImageIndexHeadFormat, [ List? defaultValue, ]) { @@ -66998,72 +63498,61 @@ itemsItemIdImagesImageTypeImageIndexHeadFormatNullableListFromJson( } String? -itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetImageTypeNullableToJson( + itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetImageTypeNullableToJson( enums.ItemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetImageType? - itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetImageType, + itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetImageType, ) { - return itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetImageType - ?.value; + return itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetImageType?.value; } -String? -itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetImageTypeToJson( +String? itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetImageTypeToJson( enums.ItemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetImageType - itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetImageType, + itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetImageType, ) { - return itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetImageType - .value; + return itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetImageType.value; } enums.ItemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetImageType -itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetImageTypeFromJson( - Object? - itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetImageType, [ + itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetImageTypeFromJson( + Object? itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetImageType, [ enums.ItemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetImageType? - defaultValue, + defaultValue, ]) { return enums - .ItemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetImageType - .values + .ItemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetImageType.values .firstWhereOrNull( - (e) => - e.value == - itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetImageType, - ) ?? + (e) => + e.value == + itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetImageType, + ) ?? defaultValue ?? - enums - .ItemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetImageType + enums.ItemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetImageType .swaggerGeneratedUnknown; } enums.ItemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetImageType? -itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetImageTypeNullableFromJson( - Object? - itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetImageType, [ + itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetImageTypeNullableFromJson( + Object? itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetImageType, [ enums.ItemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetImageType? - defaultValue, + defaultValue, ]) { - if (itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetImageType == - null) { + if (itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetImageType == null) { return null; } return enums - .ItemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetImageType - .values + .ItemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetImageType.values .firstWhereOrNull( - (e) => - e.value == - itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetImageType, - ) ?? + (e) => + e.value == + itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetImageType, + ) ?? defaultValue; } String -itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetImageTypeExplodedListToJson( - List< - enums.ItemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetImageType - >? - itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetImageType, + itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetImageTypeExplodedListToJson( + List? + itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetImageType, ) { return itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetImageType ?.map((e) => e.value!) @@ -67072,14 +63561,11 @@ itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnpla } List -itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetImageTypeListToJson( - List< - enums.ItemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetImageType - >? - itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetImageType, -) { - if (itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetImageType == - null) { + itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetImageTypeListToJson( + List? + itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetImageType, +) { + if (itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetImageType == null) { return []; } @@ -67088,19 +63574,13 @@ itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnpla .toList(); } -List< - enums.ItemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetImageType -> -itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetImageTypeListFromJson( - List? - itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetImageType, [ - List< - enums.ItemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetImageType - >? - defaultValue, -]) { - if (itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetImageType == - null) { +List + itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetImageTypeListFromJson( + List? itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetImageType, [ + List? + defaultValue, +]) { + if (itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetImageType == null) { return defaultValue ?? []; } @@ -67108,25 +63588,19 @@ itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnpla .map( (e) => itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetImageTypeFromJson( - e.toString(), - ), + e.toString(), + ), ) .toList(); } -List< - enums.ItemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetImageType ->? -itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetImageTypeNullableListFromJson( - List? - itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetImageType, [ - List< - enums.ItemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetImageType - >? - defaultValue, -]) { - if (itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetImageType == - null) { +List? + itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetImageTypeNullableListFromJson( + List? itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetImageType, [ + List? + defaultValue, +]) { + if (itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetImageType == null) { return defaultValue; } @@ -67134,79 +63608,63 @@ itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnpla .map( (e) => itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetImageTypeFromJson( - e.toString(), - ), + e.toString(), + ), ) .toList(); } -String? -itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetFormatNullableToJson( +String? itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetFormatNullableToJson( enums.ItemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetFormat? - itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetFormat, + itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetFormat, ) { - return itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetFormat - ?.value; + return itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetFormat?.value; } -String? -itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetFormatToJson( +String? itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetFormatToJson( enums.ItemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetFormat - itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetFormat, + itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetFormat, ) { - return itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetFormat - .value; + return itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetFormat.value; } enums.ItemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetFormat -itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetFormatFromJson( - Object? - itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetFormat, [ - enums.ItemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetFormat? - defaultValue, + itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetFormatFromJson( + Object? itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetFormat, [ + enums.ItemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetFormat? defaultValue, ]) { - return enums - .ItemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetFormat - .values + return enums.ItemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetFormat.values .firstWhereOrNull( - (e) => - e.value == - itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetFormat, - ) ?? + (e) => + e.value == + itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetFormat, + ) ?? defaultValue ?? - enums - .ItemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetFormat + enums.ItemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetFormat .swaggerGeneratedUnknown; } enums.ItemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetFormat? -itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetFormatNullableFromJson( - Object? - itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetFormat, [ - enums.ItemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetFormat? - defaultValue, + itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetFormatNullableFromJson( + Object? itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetFormat, [ + enums.ItemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetFormat? defaultValue, ]) { - if (itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetFormat == - null) { + if (itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetFormat == null) { return null; } - return enums - .ItemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetFormat - .values + return enums.ItemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetFormat.values .firstWhereOrNull( - (e) => - e.value == - itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetFormat, - ) ?? + (e) => + e.value == + itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetFormat, + ) ?? defaultValue; } String -itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetFormatExplodedListToJson( - List< - enums.ItemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetFormat - >? - itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetFormat, + itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetFormatExplodedListToJson( + List? + itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetFormat, ) { return itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetFormat ?.map((e) => e.value!) @@ -67215,14 +63673,11 @@ itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnpla } List -itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetFormatListToJson( - List< - enums.ItemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetFormat - >? - itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetFormat, -) { - if (itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetFormat == - null) { + itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetFormatListToJson( + List? + itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetFormat, +) { + if (itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetFormat == null) { return []; } @@ -67231,19 +63686,13 @@ itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnpla .toList(); } -List< - enums.ItemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetFormat -> -itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetFormatListFromJson( - List? - itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetFormat, [ - List< - enums.ItemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetFormat - >? - defaultValue, -]) { - if (itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetFormat == - null) { +List + itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetFormatListFromJson( + List? itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetFormat, [ + List? + defaultValue, +]) { + if (itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetFormat == null) { return defaultValue ?? []; } @@ -67251,25 +63700,19 @@ itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnpla .map( (e) => itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetFormatFromJson( - e.toString(), - ), + e.toString(), + ), ) .toList(); } -List< - enums.ItemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetFormat ->? -itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetFormatNullableListFromJson( - List? - itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetFormat, [ - List< - enums.ItemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetFormat - >? - defaultValue, -]) { - if (itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetFormat == - null) { +List? + itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetFormatNullableListFromJson( + List? itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetFormat, [ + List? + defaultValue, +]) { + if (itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetFormat == null) { return defaultValue; } @@ -67277,79 +63720,68 @@ itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnpla .map( (e) => itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetFormatFromJson( - e.toString(), - ), + e.toString(), + ), ) .toList(); } String? -itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadImageTypeNullableToJson( + itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadImageTypeNullableToJson( enums.ItemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadImageType? - itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadImageType, + itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadImageType, ) { - return itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadImageType - ?.value; + return itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadImageType?.value; } -String? -itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadImageTypeToJson( +String? itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadImageTypeToJson( enums.ItemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadImageType - itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadImageType, + itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadImageType, ) { - return itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadImageType - .value; + return itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadImageType.value; } enums.ItemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadImageType -itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadImageTypeFromJson( - Object? - itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadImageType, [ + itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadImageTypeFromJson( + Object? itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadImageType, [ enums.ItemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadImageType? - defaultValue, + defaultValue, ]) { return enums - .ItemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadImageType - .values + .ItemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadImageType.values .firstWhereOrNull( - (e) => - e.value == - itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadImageType, - ) ?? + (e) => + e.value == + itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadImageType, + ) ?? defaultValue ?? - enums - .ItemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadImageType + enums.ItemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadImageType .swaggerGeneratedUnknown; } enums.ItemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadImageType? -itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadImageTypeNullableFromJson( - Object? - itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadImageType, [ + itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadImageTypeNullableFromJson( + Object? itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadImageType, [ enums.ItemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadImageType? - defaultValue, + defaultValue, ]) { - if (itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadImageType == - null) { + if (itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadImageType == null) { return null; } return enums - .ItemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadImageType - .values + .ItemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadImageType.values .firstWhereOrNull( - (e) => - e.value == - itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadImageType, - ) ?? + (e) => + e.value == + itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadImageType, + ) ?? defaultValue; } String -itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadImageTypeExplodedListToJson( - List< - enums.ItemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadImageType - >? - itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadImageType, + itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadImageTypeExplodedListToJson( + List? + itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadImageType, ) { return itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadImageType ?.map((e) => e.value!) @@ -67358,14 +63790,11 @@ itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnpla } List -itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadImageTypeListToJson( - List< - enums.ItemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadImageType - >? - itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadImageType, -) { - if (itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadImageType == - null) { + itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadImageTypeListToJson( + List? + itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadImageType, +) { + if (itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadImageType == null) { return []; } @@ -67374,19 +63803,13 @@ itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnpla .toList(); } -List< - enums.ItemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadImageType -> -itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadImageTypeListFromJson( - List? - itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadImageType, [ - List< - enums.ItemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadImageType - >? - defaultValue, -]) { - if (itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadImageType == - null) { +List + itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadImageTypeListFromJson( + List? itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadImageType, [ + List? + defaultValue, +]) { + if (itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadImageType == null) { return defaultValue ?? []; } @@ -67394,25 +63817,19 @@ itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnpla .map( (e) => itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadImageTypeFromJson( - e.toString(), - ), + e.toString(), + ), ) .toList(); } -List< - enums.ItemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadImageType ->? -itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadImageTypeNullableListFromJson( - List? - itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadImageType, [ - List< - enums.ItemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadImageType - >? - defaultValue, -]) { - if (itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadImageType == - null) { +List? + itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadImageTypeNullableListFromJson( + List? itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadImageType, [ + List? + defaultValue, +]) { + if (itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadImageType == null) { return defaultValue; } @@ -67420,79 +63837,66 @@ itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnpla .map( (e) => itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadImageTypeFromJson( - e.toString(), - ), + e.toString(), + ), ) .toList(); } String? -itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadFormatNullableToJson( + itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadFormatNullableToJson( enums.ItemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadFormat? - itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadFormat, + itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadFormat, ) { - return itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadFormat - ?.value; + return itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadFormat?.value; } -String? -itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadFormatToJson( +String? itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadFormatToJson( enums.ItemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadFormat - itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadFormat, + itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadFormat, ) { - return itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadFormat - .value; + return itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadFormat.value; } enums.ItemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadFormat -itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadFormatFromJson( - Object? - itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadFormat, [ + itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadFormatFromJson( + Object? itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadFormat, [ enums.ItemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadFormat? - defaultValue, + defaultValue, ]) { - return enums - .ItemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadFormat - .values + return enums.ItemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadFormat.values .firstWhereOrNull( - (e) => - e.value == - itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadFormat, - ) ?? + (e) => + e.value == + itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadFormat, + ) ?? defaultValue ?? - enums - .ItemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadFormat + enums.ItemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadFormat .swaggerGeneratedUnknown; } enums.ItemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadFormat? -itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadFormatNullableFromJson( - Object? - itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadFormat, [ + itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadFormatNullableFromJson( + Object? itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadFormat, [ enums.ItemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadFormat? - defaultValue, + defaultValue, ]) { - if (itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadFormat == - null) { + if (itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadFormat == null) { return null; } - return enums - .ItemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadFormat - .values + return enums.ItemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadFormat.values .firstWhereOrNull( - (e) => - e.value == - itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadFormat, - ) ?? + (e) => + e.value == + itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadFormat, + ) ?? defaultValue; } String -itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadFormatExplodedListToJson( - List< - enums.ItemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadFormat - >? - itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadFormat, + itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadFormatExplodedListToJson( + List? + itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadFormat, ) { return itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadFormat ?.map((e) => e.value!) @@ -67501,14 +63905,11 @@ itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnpla } List -itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadFormatListToJson( - List< - enums.ItemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadFormat - >? - itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadFormat, -) { - if (itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadFormat == - null) { + itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadFormatListToJson( + List? + itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadFormat, +) { + if (itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadFormat == null) { return []; } @@ -67517,19 +63918,13 @@ itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnpla .toList(); } -List< - enums.ItemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadFormat -> -itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadFormatListFromJson( - List? - itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadFormat, [ - List< - enums.ItemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadFormat - >? - defaultValue, -]) { - if (itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadFormat == - null) { +List + itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadFormatListFromJson( + List? itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadFormat, [ + List? + defaultValue, +]) { + if (itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadFormat == null) { return defaultValue ?? []; } @@ -67537,25 +63932,19 @@ itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnpla .map( (e) => itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadFormatFromJson( - e.toString(), - ), + e.toString(), + ), ) .toList(); } -List< - enums.ItemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadFormat ->? -itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadFormatNullableListFromJson( - List? - itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadFormat, [ - List< - enums.ItemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadFormat - >? - defaultValue, -]) { - if (itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadFormat == - null) { +List? + itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadFormatNullableListFromJson( + List? itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadFormat, [ + List? + defaultValue, +]) { + if (itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadFormat == null) { return defaultValue; } @@ -67563,88 +63952,72 @@ itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnpla .map( (e) => itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadFormatFromJson( - e.toString(), - ), + e.toString(), + ), ) .toList(); } String? itemsItemIdImagesImageTypeImageIndexIndexPostImageTypeNullableToJson( - enums.ItemsItemIdImagesImageTypeImageIndexIndexPostImageType? - itemsItemIdImagesImageTypeImageIndexIndexPostImageType, + enums.ItemsItemIdImagesImageTypeImageIndexIndexPostImageType? itemsItemIdImagesImageTypeImageIndexIndexPostImageType, ) { return itemsItemIdImagesImageTypeImageIndexIndexPostImageType?.value; } String? itemsItemIdImagesImageTypeImageIndexIndexPostImageTypeToJson( - enums.ItemsItemIdImagesImageTypeImageIndexIndexPostImageType - itemsItemIdImagesImageTypeImageIndexIndexPostImageType, + enums.ItemsItemIdImagesImageTypeImageIndexIndexPostImageType itemsItemIdImagesImageTypeImageIndexIndexPostImageType, ) { return itemsItemIdImagesImageTypeImageIndexIndexPostImageType.value; } enums.ItemsItemIdImagesImageTypeImageIndexIndexPostImageType -itemsItemIdImagesImageTypeImageIndexIndexPostImageTypeFromJson( + itemsItemIdImagesImageTypeImageIndexIndexPostImageTypeFromJson( Object? itemsItemIdImagesImageTypeImageIndexIndexPostImageType, [ enums.ItemsItemIdImagesImageTypeImageIndexIndexPostImageType? defaultValue, ]) { - return enums.ItemsItemIdImagesImageTypeImageIndexIndexPostImageType.values - .firstWhereOrNull( - (e) => - e.value == - itemsItemIdImagesImageTypeImageIndexIndexPostImageType, - ) ?? + return enums.ItemsItemIdImagesImageTypeImageIndexIndexPostImageType.values.firstWhereOrNull( + (e) => e.value == itemsItemIdImagesImageTypeImageIndexIndexPostImageType, + ) ?? defaultValue ?? - enums - .ItemsItemIdImagesImageTypeImageIndexIndexPostImageType - .swaggerGeneratedUnknown; + enums.ItemsItemIdImagesImageTypeImageIndexIndexPostImageType.swaggerGeneratedUnknown; } enums.ItemsItemIdImagesImageTypeImageIndexIndexPostImageType? -itemsItemIdImagesImageTypeImageIndexIndexPostImageTypeNullableFromJson( + itemsItemIdImagesImageTypeImageIndexIndexPostImageTypeNullableFromJson( Object? itemsItemIdImagesImageTypeImageIndexIndexPostImageType, [ enums.ItemsItemIdImagesImageTypeImageIndexIndexPostImageType? defaultValue, ]) { if (itemsItemIdImagesImageTypeImageIndexIndexPostImageType == null) { return null; } - return enums.ItemsItemIdImagesImageTypeImageIndexIndexPostImageType.values - .firstWhereOrNull( - (e) => - e.value == - itemsItemIdImagesImageTypeImageIndexIndexPostImageType, - ) ?? + return enums.ItemsItemIdImagesImageTypeImageIndexIndexPostImageType.values.firstWhereOrNull( + (e) => e.value == itemsItemIdImagesImageTypeImageIndexIndexPostImageType, + ) ?? defaultValue; } String itemsItemIdImagesImageTypeImageIndexIndexPostImageTypeExplodedListToJson( List? - itemsItemIdImagesImageTypeImageIndexIndexPostImageType, + itemsItemIdImagesImageTypeImageIndexIndexPostImageType, ) { - return itemsItemIdImagesImageTypeImageIndexIndexPostImageType - ?.map((e) => e.value!) - .join(',') ?? - ''; + return itemsItemIdImagesImageTypeImageIndexIndexPostImageType?.map((e) => e.value!).join(',') ?? ''; } List itemsItemIdImagesImageTypeImageIndexIndexPostImageTypeListToJson( List? - itemsItemIdImagesImageTypeImageIndexIndexPostImageType, + itemsItemIdImagesImageTypeImageIndexIndexPostImageType, ) { if (itemsItemIdImagesImageTypeImageIndexIndexPostImageType == null) { return []; } - return itemsItemIdImagesImageTypeImageIndexIndexPostImageType - .map((e) => e.value!) - .toList(); + return itemsItemIdImagesImageTypeImageIndexIndexPostImageType.map((e) => e.value!).toList(); } List -itemsItemIdImagesImageTypeImageIndexIndexPostImageTypeListFromJson( + itemsItemIdImagesImageTypeImageIndexIndexPostImageTypeListFromJson( List? itemsItemIdImagesImageTypeImageIndexIndexPostImageType, [ - List? - defaultValue, + List? defaultValue, ]) { if (itemsItemIdImagesImageTypeImageIndexIndexPostImageType == null) { return defaultValue ?? []; @@ -67660,10 +64033,9 @@ itemsItemIdImagesImageTypeImageIndexIndexPostImageTypeListFromJson( } List? -itemsItemIdImagesImageTypeImageIndexIndexPostImageTypeNullableListFromJson( + itemsItemIdImagesImageTypeImageIndexIndexPostImageTypeNullableListFromJson( List? itemsItemIdImagesImageTypeImageIndexIndexPostImageType, [ - List? - defaultValue, + List? defaultValue, ]) { if (itemsItemIdImagesImageTypeImageIndexIndexPostImageType == null) { return defaultValue; @@ -67679,72 +64051,58 @@ itemsItemIdImagesImageTypeImageIndexIndexPostImageTypeNullableListFromJson( } String? musicGenresNameImagesImageTypeGetImageTypeNullableToJson( - enums.MusicGenresNameImagesImageTypeGetImageType? - musicGenresNameImagesImageTypeGetImageType, + enums.MusicGenresNameImagesImageTypeGetImageType? musicGenresNameImagesImageTypeGetImageType, ) { return musicGenresNameImagesImageTypeGetImageType?.value; } String? musicGenresNameImagesImageTypeGetImageTypeToJson( - enums.MusicGenresNameImagesImageTypeGetImageType - musicGenresNameImagesImageTypeGetImageType, + enums.MusicGenresNameImagesImageTypeGetImageType musicGenresNameImagesImageTypeGetImageType, ) { return musicGenresNameImagesImageTypeGetImageType.value; } -enums.MusicGenresNameImagesImageTypeGetImageType -musicGenresNameImagesImageTypeGetImageTypeFromJson( +enums.MusicGenresNameImagesImageTypeGetImageType musicGenresNameImagesImageTypeGetImageTypeFromJson( Object? musicGenresNameImagesImageTypeGetImageType, [ enums.MusicGenresNameImagesImageTypeGetImageType? defaultValue, ]) { - return enums.MusicGenresNameImagesImageTypeGetImageType.values - .firstWhereOrNull( - (e) => e.value == musicGenresNameImagesImageTypeGetImageType, - ) ?? + return enums.MusicGenresNameImagesImageTypeGetImageType.values.firstWhereOrNull( + (e) => e.value == musicGenresNameImagesImageTypeGetImageType, + ) ?? defaultValue ?? enums.MusicGenresNameImagesImageTypeGetImageType.swaggerGeneratedUnknown; } -enums.MusicGenresNameImagesImageTypeGetImageType? -musicGenresNameImagesImageTypeGetImageTypeNullableFromJson( +enums.MusicGenresNameImagesImageTypeGetImageType? musicGenresNameImagesImageTypeGetImageTypeNullableFromJson( Object? musicGenresNameImagesImageTypeGetImageType, [ enums.MusicGenresNameImagesImageTypeGetImageType? defaultValue, ]) { if (musicGenresNameImagesImageTypeGetImageType == null) { return null; } - return enums.MusicGenresNameImagesImageTypeGetImageType.values - .firstWhereOrNull( - (e) => e.value == musicGenresNameImagesImageTypeGetImageType, - ) ?? + return enums.MusicGenresNameImagesImageTypeGetImageType.values.firstWhereOrNull( + (e) => e.value == musicGenresNameImagesImageTypeGetImageType, + ) ?? defaultValue; } String musicGenresNameImagesImageTypeGetImageTypeExplodedListToJson( - List? - musicGenresNameImagesImageTypeGetImageType, + List? musicGenresNameImagesImageTypeGetImageType, ) { - return musicGenresNameImagesImageTypeGetImageType - ?.map((e) => e.value!) - .join(',') ?? - ''; + return musicGenresNameImagesImageTypeGetImageType?.map((e) => e.value!).join(',') ?? ''; } List musicGenresNameImagesImageTypeGetImageTypeListToJson( - List? - musicGenresNameImagesImageTypeGetImageType, + List? musicGenresNameImagesImageTypeGetImageType, ) { if (musicGenresNameImagesImageTypeGetImageType == null) { return []; } - return musicGenresNameImagesImageTypeGetImageType - .map((e) => e.value!) - .toList(); + return musicGenresNameImagesImageTypeGetImageType.map((e) => e.value!).toList(); } -List -musicGenresNameImagesImageTypeGetImageTypeListFromJson( +List musicGenresNameImagesImageTypeGetImageTypeListFromJson( List? musicGenresNameImagesImageTypeGetImageType, [ List? defaultValue, ]) { @@ -67759,8 +64117,7 @@ musicGenresNameImagesImageTypeGetImageTypeListFromJson( .toList(); } -List? -musicGenresNameImagesImageTypeGetImageTypeNullableListFromJson( +List? musicGenresNameImagesImageTypeGetImageTypeNullableListFromJson( List? musicGenresNameImagesImageTypeGetImageType, [ List? defaultValue, ]) { @@ -67776,21 +64133,18 @@ musicGenresNameImagesImageTypeGetImageTypeNullableListFromJson( } String? musicGenresNameImagesImageTypeGetFormatNullableToJson( - enums.MusicGenresNameImagesImageTypeGetFormat? - musicGenresNameImagesImageTypeGetFormat, + enums.MusicGenresNameImagesImageTypeGetFormat? musicGenresNameImagesImageTypeGetFormat, ) { return musicGenresNameImagesImageTypeGetFormat?.value; } String? musicGenresNameImagesImageTypeGetFormatToJson( - enums.MusicGenresNameImagesImageTypeGetFormat - musicGenresNameImagesImageTypeGetFormat, + enums.MusicGenresNameImagesImageTypeGetFormat musicGenresNameImagesImageTypeGetFormat, ) { return musicGenresNameImagesImageTypeGetFormat.value; } -enums.MusicGenresNameImagesImageTypeGetFormat -musicGenresNameImagesImageTypeGetFormatFromJson( +enums.MusicGenresNameImagesImageTypeGetFormat musicGenresNameImagesImageTypeGetFormatFromJson( Object? musicGenresNameImagesImageTypeGetFormat, [ enums.MusicGenresNameImagesImageTypeGetFormat? defaultValue, ]) { @@ -67801,8 +64155,7 @@ musicGenresNameImagesImageTypeGetFormatFromJson( enums.MusicGenresNameImagesImageTypeGetFormat.swaggerGeneratedUnknown; } -enums.MusicGenresNameImagesImageTypeGetFormat? -musicGenresNameImagesImageTypeGetFormatNullableFromJson( +enums.MusicGenresNameImagesImageTypeGetFormat? musicGenresNameImagesImageTypeGetFormatNullableFromJson( Object? musicGenresNameImagesImageTypeGetFormat, [ enums.MusicGenresNameImagesImageTypeGetFormat? defaultValue, ]) { @@ -67816,18 +64169,13 @@ musicGenresNameImagesImageTypeGetFormatNullableFromJson( } String musicGenresNameImagesImageTypeGetFormatExplodedListToJson( - List? - musicGenresNameImagesImageTypeGetFormat, + List? musicGenresNameImagesImageTypeGetFormat, ) { - return musicGenresNameImagesImageTypeGetFormat - ?.map((e) => e.value!) - .join(',') ?? - ''; + return musicGenresNameImagesImageTypeGetFormat?.map((e) => e.value!).join(',') ?? ''; } List musicGenresNameImagesImageTypeGetFormatListToJson( - List? - musicGenresNameImagesImageTypeGetFormat, + List? musicGenresNameImagesImageTypeGetFormat, ) { if (musicGenresNameImagesImageTypeGetFormat == null) { return []; @@ -67836,8 +64184,7 @@ List musicGenresNameImagesImageTypeGetFormatListToJson( return musicGenresNameImagesImageTypeGetFormat.map((e) => e.value!).toList(); } -List -musicGenresNameImagesImageTypeGetFormatListFromJson( +List musicGenresNameImagesImageTypeGetFormatListFromJson( List? musicGenresNameImagesImageTypeGetFormat, [ List? defaultValue, ]) { @@ -67850,8 +64197,7 @@ musicGenresNameImagesImageTypeGetFormatListFromJson( .toList(); } -List? -musicGenresNameImagesImageTypeGetFormatNullableListFromJson( +List? musicGenresNameImagesImageTypeGetFormatNullableListFromJson( List? musicGenresNameImagesImageTypeGetFormat, [ List? defaultValue, ]) { @@ -67865,72 +64211,58 @@ musicGenresNameImagesImageTypeGetFormatNullableListFromJson( } String? musicGenresNameImagesImageTypeHeadImageTypeNullableToJson( - enums.MusicGenresNameImagesImageTypeHeadImageType? - musicGenresNameImagesImageTypeHeadImageType, + enums.MusicGenresNameImagesImageTypeHeadImageType? musicGenresNameImagesImageTypeHeadImageType, ) { return musicGenresNameImagesImageTypeHeadImageType?.value; } String? musicGenresNameImagesImageTypeHeadImageTypeToJson( - enums.MusicGenresNameImagesImageTypeHeadImageType - musicGenresNameImagesImageTypeHeadImageType, + enums.MusicGenresNameImagesImageTypeHeadImageType musicGenresNameImagesImageTypeHeadImageType, ) { return musicGenresNameImagesImageTypeHeadImageType.value; } -enums.MusicGenresNameImagesImageTypeHeadImageType -musicGenresNameImagesImageTypeHeadImageTypeFromJson( +enums.MusicGenresNameImagesImageTypeHeadImageType musicGenresNameImagesImageTypeHeadImageTypeFromJson( Object? musicGenresNameImagesImageTypeHeadImageType, [ enums.MusicGenresNameImagesImageTypeHeadImageType? defaultValue, ]) { - return enums.MusicGenresNameImagesImageTypeHeadImageType.values - .firstWhereOrNull( - (e) => e.value == musicGenresNameImagesImageTypeHeadImageType, - ) ?? + return enums.MusicGenresNameImagesImageTypeHeadImageType.values.firstWhereOrNull( + (e) => e.value == musicGenresNameImagesImageTypeHeadImageType, + ) ?? defaultValue ?? enums.MusicGenresNameImagesImageTypeHeadImageType.swaggerGeneratedUnknown; } -enums.MusicGenresNameImagesImageTypeHeadImageType? -musicGenresNameImagesImageTypeHeadImageTypeNullableFromJson( +enums.MusicGenresNameImagesImageTypeHeadImageType? musicGenresNameImagesImageTypeHeadImageTypeNullableFromJson( Object? musicGenresNameImagesImageTypeHeadImageType, [ enums.MusicGenresNameImagesImageTypeHeadImageType? defaultValue, ]) { if (musicGenresNameImagesImageTypeHeadImageType == null) { return null; } - return enums.MusicGenresNameImagesImageTypeHeadImageType.values - .firstWhereOrNull( - (e) => e.value == musicGenresNameImagesImageTypeHeadImageType, - ) ?? + return enums.MusicGenresNameImagesImageTypeHeadImageType.values.firstWhereOrNull( + (e) => e.value == musicGenresNameImagesImageTypeHeadImageType, + ) ?? defaultValue; } String musicGenresNameImagesImageTypeHeadImageTypeExplodedListToJson( - List? - musicGenresNameImagesImageTypeHeadImageType, + List? musicGenresNameImagesImageTypeHeadImageType, ) { - return musicGenresNameImagesImageTypeHeadImageType - ?.map((e) => e.value!) - .join(',') ?? - ''; + return musicGenresNameImagesImageTypeHeadImageType?.map((e) => e.value!).join(',') ?? ''; } List musicGenresNameImagesImageTypeHeadImageTypeListToJson( - List? - musicGenresNameImagesImageTypeHeadImageType, + List? musicGenresNameImagesImageTypeHeadImageType, ) { if (musicGenresNameImagesImageTypeHeadImageType == null) { return []; } - return musicGenresNameImagesImageTypeHeadImageType - .map((e) => e.value!) - .toList(); + return musicGenresNameImagesImageTypeHeadImageType.map((e) => e.value!).toList(); } -List -musicGenresNameImagesImageTypeHeadImageTypeListFromJson( +List musicGenresNameImagesImageTypeHeadImageTypeListFromJson( List? musicGenresNameImagesImageTypeHeadImageType, [ List? defaultValue, ]) { @@ -67940,14 +64272,13 @@ musicGenresNameImagesImageTypeHeadImageTypeListFromJson( return musicGenresNameImagesImageTypeHeadImageType .map( - (e) => - musicGenresNameImagesImageTypeHeadImageTypeFromJson(e.toString()), + (e) => musicGenresNameImagesImageTypeHeadImageTypeFromJson(e.toString()), ) .toList(); } List? -musicGenresNameImagesImageTypeHeadImageTypeNullableListFromJson( + musicGenresNameImagesImageTypeHeadImageTypeNullableListFromJson( List? musicGenresNameImagesImageTypeHeadImageType, [ List? defaultValue, ]) { @@ -67957,28 +64288,24 @@ musicGenresNameImagesImageTypeHeadImageTypeNullableListFromJson( return musicGenresNameImagesImageTypeHeadImageType .map( - (e) => - musicGenresNameImagesImageTypeHeadImageTypeFromJson(e.toString()), + (e) => musicGenresNameImagesImageTypeHeadImageTypeFromJson(e.toString()), ) .toList(); } String? musicGenresNameImagesImageTypeHeadFormatNullableToJson( - enums.MusicGenresNameImagesImageTypeHeadFormat? - musicGenresNameImagesImageTypeHeadFormat, + enums.MusicGenresNameImagesImageTypeHeadFormat? musicGenresNameImagesImageTypeHeadFormat, ) { return musicGenresNameImagesImageTypeHeadFormat?.value; } String? musicGenresNameImagesImageTypeHeadFormatToJson( - enums.MusicGenresNameImagesImageTypeHeadFormat - musicGenresNameImagesImageTypeHeadFormat, + enums.MusicGenresNameImagesImageTypeHeadFormat musicGenresNameImagesImageTypeHeadFormat, ) { return musicGenresNameImagesImageTypeHeadFormat.value; } -enums.MusicGenresNameImagesImageTypeHeadFormat -musicGenresNameImagesImageTypeHeadFormatFromJson( +enums.MusicGenresNameImagesImageTypeHeadFormat musicGenresNameImagesImageTypeHeadFormatFromJson( Object? musicGenresNameImagesImageTypeHeadFormat, [ enums.MusicGenresNameImagesImageTypeHeadFormat? defaultValue, ]) { @@ -67989,8 +64316,7 @@ musicGenresNameImagesImageTypeHeadFormatFromJson( enums.MusicGenresNameImagesImageTypeHeadFormat.swaggerGeneratedUnknown; } -enums.MusicGenresNameImagesImageTypeHeadFormat? -musicGenresNameImagesImageTypeHeadFormatNullableFromJson( +enums.MusicGenresNameImagesImageTypeHeadFormat? musicGenresNameImagesImageTypeHeadFormatNullableFromJson( Object? musicGenresNameImagesImageTypeHeadFormat, [ enums.MusicGenresNameImagesImageTypeHeadFormat? defaultValue, ]) { @@ -68004,18 +64330,13 @@ musicGenresNameImagesImageTypeHeadFormatNullableFromJson( } String musicGenresNameImagesImageTypeHeadFormatExplodedListToJson( - List? - musicGenresNameImagesImageTypeHeadFormat, + List? musicGenresNameImagesImageTypeHeadFormat, ) { - return musicGenresNameImagesImageTypeHeadFormat - ?.map((e) => e.value!) - .join(',') ?? - ''; + return musicGenresNameImagesImageTypeHeadFormat?.map((e) => e.value!).join(',') ?? ''; } List musicGenresNameImagesImageTypeHeadFormatListToJson( - List? - musicGenresNameImagesImageTypeHeadFormat, + List? musicGenresNameImagesImageTypeHeadFormat, ) { if (musicGenresNameImagesImageTypeHeadFormat == null) { return []; @@ -68024,8 +64345,7 @@ List musicGenresNameImagesImageTypeHeadFormatListToJson( return musicGenresNameImagesImageTypeHeadFormat.map((e) => e.value!).toList(); } -List -musicGenresNameImagesImageTypeHeadFormatListFromJson( +List musicGenresNameImagesImageTypeHeadFormatListFromJson( List? musicGenresNameImagesImageTypeHeadFormat, [ List? defaultValue, ]) { @@ -68040,8 +64360,7 @@ musicGenresNameImagesImageTypeHeadFormatListFromJson( .toList(); } -List? -musicGenresNameImagesImageTypeHeadFormatNullableListFromJson( +List? musicGenresNameImagesImageTypeHeadFormatNullableListFromJson( List? musicGenresNameImagesImageTypeHeadFormat, [ List? defaultValue, ]) { @@ -68057,79 +64376,64 @@ musicGenresNameImagesImageTypeHeadFormatNullableListFromJson( } String? musicGenresNameImagesImageTypeImageIndexGetImageTypeNullableToJson( - enums.MusicGenresNameImagesImageTypeImageIndexGetImageType? - musicGenresNameImagesImageTypeImageIndexGetImageType, + enums.MusicGenresNameImagesImageTypeImageIndexGetImageType? musicGenresNameImagesImageTypeImageIndexGetImageType, ) { return musicGenresNameImagesImageTypeImageIndexGetImageType?.value; } String? musicGenresNameImagesImageTypeImageIndexGetImageTypeToJson( - enums.MusicGenresNameImagesImageTypeImageIndexGetImageType - musicGenresNameImagesImageTypeImageIndexGetImageType, + enums.MusicGenresNameImagesImageTypeImageIndexGetImageType musicGenresNameImagesImageTypeImageIndexGetImageType, ) { return musicGenresNameImagesImageTypeImageIndexGetImageType.value; } -enums.MusicGenresNameImagesImageTypeImageIndexGetImageType -musicGenresNameImagesImageTypeImageIndexGetImageTypeFromJson( +enums.MusicGenresNameImagesImageTypeImageIndexGetImageType musicGenresNameImagesImageTypeImageIndexGetImageTypeFromJson( Object? musicGenresNameImagesImageTypeImageIndexGetImageType, [ enums.MusicGenresNameImagesImageTypeImageIndexGetImageType? defaultValue, ]) { - return enums.MusicGenresNameImagesImageTypeImageIndexGetImageType.values - .firstWhereOrNull( - (e) => - e.value == musicGenresNameImagesImageTypeImageIndexGetImageType, - ) ?? + return enums.MusicGenresNameImagesImageTypeImageIndexGetImageType.values.firstWhereOrNull( + (e) => e.value == musicGenresNameImagesImageTypeImageIndexGetImageType, + ) ?? defaultValue ?? - enums - .MusicGenresNameImagesImageTypeImageIndexGetImageType - .swaggerGeneratedUnknown; + enums.MusicGenresNameImagesImageTypeImageIndexGetImageType.swaggerGeneratedUnknown; } enums.MusicGenresNameImagesImageTypeImageIndexGetImageType? -musicGenresNameImagesImageTypeImageIndexGetImageTypeNullableFromJson( + musicGenresNameImagesImageTypeImageIndexGetImageTypeNullableFromJson( Object? musicGenresNameImagesImageTypeImageIndexGetImageType, [ enums.MusicGenresNameImagesImageTypeImageIndexGetImageType? defaultValue, ]) { if (musicGenresNameImagesImageTypeImageIndexGetImageType == null) { return null; } - return enums.MusicGenresNameImagesImageTypeImageIndexGetImageType.values - .firstWhereOrNull( - (e) => - e.value == musicGenresNameImagesImageTypeImageIndexGetImageType, - ) ?? + return enums.MusicGenresNameImagesImageTypeImageIndexGetImageType.values.firstWhereOrNull( + (e) => e.value == musicGenresNameImagesImageTypeImageIndexGetImageType, + ) ?? defaultValue; } String musicGenresNameImagesImageTypeImageIndexGetImageTypeExplodedListToJson( List? - musicGenresNameImagesImageTypeImageIndexGetImageType, + musicGenresNameImagesImageTypeImageIndexGetImageType, ) { - return musicGenresNameImagesImageTypeImageIndexGetImageType - ?.map((e) => e.value!) - .join(',') ?? - ''; + return musicGenresNameImagesImageTypeImageIndexGetImageType?.map((e) => e.value!).join(',') ?? ''; } List musicGenresNameImagesImageTypeImageIndexGetImageTypeListToJson( List? - musicGenresNameImagesImageTypeImageIndexGetImageType, + musicGenresNameImagesImageTypeImageIndexGetImageType, ) { if (musicGenresNameImagesImageTypeImageIndexGetImageType == null) { return []; } - return musicGenresNameImagesImageTypeImageIndexGetImageType - .map((e) => e.value!) - .toList(); + return musicGenresNameImagesImageTypeImageIndexGetImageType.map((e) => e.value!).toList(); } List -musicGenresNameImagesImageTypeImageIndexGetImageTypeListFromJson( + musicGenresNameImagesImageTypeImageIndexGetImageTypeListFromJson( List? musicGenresNameImagesImageTypeImageIndexGetImageType, [ - List? - defaultValue, + List? defaultValue, ]) { if (musicGenresNameImagesImageTypeImageIndexGetImageType == null) { return defaultValue ?? []; @@ -68145,10 +64449,9 @@ musicGenresNameImagesImageTypeImageIndexGetImageTypeListFromJson( } List? -musicGenresNameImagesImageTypeImageIndexGetImageTypeNullableListFromJson( + musicGenresNameImagesImageTypeImageIndexGetImageTypeNullableListFromJson( List? musicGenresNameImagesImageTypeImageIndexGetImageType, [ - List? - defaultValue, + List? defaultValue, ]) { if (musicGenresNameImagesImageTypeImageIndexGetImageType == null) { return defaultValue; @@ -68164,74 +64467,60 @@ musicGenresNameImagesImageTypeImageIndexGetImageTypeNullableListFromJson( } String? musicGenresNameImagesImageTypeImageIndexGetFormatNullableToJson( - enums.MusicGenresNameImagesImageTypeImageIndexGetFormat? - musicGenresNameImagesImageTypeImageIndexGetFormat, + enums.MusicGenresNameImagesImageTypeImageIndexGetFormat? musicGenresNameImagesImageTypeImageIndexGetFormat, ) { return musicGenresNameImagesImageTypeImageIndexGetFormat?.value; } String? musicGenresNameImagesImageTypeImageIndexGetFormatToJson( - enums.MusicGenresNameImagesImageTypeImageIndexGetFormat - musicGenresNameImagesImageTypeImageIndexGetFormat, + enums.MusicGenresNameImagesImageTypeImageIndexGetFormat musicGenresNameImagesImageTypeImageIndexGetFormat, ) { return musicGenresNameImagesImageTypeImageIndexGetFormat.value; } -enums.MusicGenresNameImagesImageTypeImageIndexGetFormat -musicGenresNameImagesImageTypeImageIndexGetFormatFromJson( +enums.MusicGenresNameImagesImageTypeImageIndexGetFormat musicGenresNameImagesImageTypeImageIndexGetFormatFromJson( Object? musicGenresNameImagesImageTypeImageIndexGetFormat, [ enums.MusicGenresNameImagesImageTypeImageIndexGetFormat? defaultValue, ]) { - return enums.MusicGenresNameImagesImageTypeImageIndexGetFormat.values - .firstWhereOrNull( - (e) => e.value == musicGenresNameImagesImageTypeImageIndexGetFormat, - ) ?? + return enums.MusicGenresNameImagesImageTypeImageIndexGetFormat.values.firstWhereOrNull( + (e) => e.value == musicGenresNameImagesImageTypeImageIndexGetFormat, + ) ?? defaultValue ?? - enums - .MusicGenresNameImagesImageTypeImageIndexGetFormat - .swaggerGeneratedUnknown; + enums.MusicGenresNameImagesImageTypeImageIndexGetFormat.swaggerGeneratedUnknown; } enums.MusicGenresNameImagesImageTypeImageIndexGetFormat? -musicGenresNameImagesImageTypeImageIndexGetFormatNullableFromJson( + musicGenresNameImagesImageTypeImageIndexGetFormatNullableFromJson( Object? musicGenresNameImagesImageTypeImageIndexGetFormat, [ enums.MusicGenresNameImagesImageTypeImageIndexGetFormat? defaultValue, ]) { if (musicGenresNameImagesImageTypeImageIndexGetFormat == null) { return null; } - return enums.MusicGenresNameImagesImageTypeImageIndexGetFormat.values - .firstWhereOrNull( - (e) => e.value == musicGenresNameImagesImageTypeImageIndexGetFormat, - ) ?? + return enums.MusicGenresNameImagesImageTypeImageIndexGetFormat.values.firstWhereOrNull( + (e) => e.value == musicGenresNameImagesImageTypeImageIndexGetFormat, + ) ?? defaultValue; } String musicGenresNameImagesImageTypeImageIndexGetFormatExplodedListToJson( - List? - musicGenresNameImagesImageTypeImageIndexGetFormat, + List? musicGenresNameImagesImageTypeImageIndexGetFormat, ) { - return musicGenresNameImagesImageTypeImageIndexGetFormat - ?.map((e) => e.value!) - .join(',') ?? - ''; + return musicGenresNameImagesImageTypeImageIndexGetFormat?.map((e) => e.value!).join(',') ?? ''; } List musicGenresNameImagesImageTypeImageIndexGetFormatListToJson( - List? - musicGenresNameImagesImageTypeImageIndexGetFormat, + List? musicGenresNameImagesImageTypeImageIndexGetFormat, ) { if (musicGenresNameImagesImageTypeImageIndexGetFormat == null) { return []; } - return musicGenresNameImagesImageTypeImageIndexGetFormat - .map((e) => e.value!) - .toList(); + return musicGenresNameImagesImageTypeImageIndexGetFormat.map((e) => e.value!).toList(); } List -musicGenresNameImagesImageTypeImageIndexGetFormatListFromJson( + musicGenresNameImagesImageTypeImageIndexGetFormatListFromJson( List? musicGenresNameImagesImageTypeImageIndexGetFormat, [ List? defaultValue, ]) { @@ -68249,7 +64538,7 @@ musicGenresNameImagesImageTypeImageIndexGetFormatListFromJson( } List? -musicGenresNameImagesImageTypeImageIndexGetFormatNullableListFromJson( + musicGenresNameImagesImageTypeImageIndexGetFormatNullableListFromJson( List? musicGenresNameImagesImageTypeImageIndexGetFormat, [ List? defaultValue, ]) { @@ -68267,81 +64556,65 @@ musicGenresNameImagesImageTypeImageIndexGetFormatNullableListFromJson( } String? musicGenresNameImagesImageTypeImageIndexHeadImageTypeNullableToJson( - enums.MusicGenresNameImagesImageTypeImageIndexHeadImageType? - musicGenresNameImagesImageTypeImageIndexHeadImageType, + enums.MusicGenresNameImagesImageTypeImageIndexHeadImageType? musicGenresNameImagesImageTypeImageIndexHeadImageType, ) { return musicGenresNameImagesImageTypeImageIndexHeadImageType?.value; } String? musicGenresNameImagesImageTypeImageIndexHeadImageTypeToJson( - enums.MusicGenresNameImagesImageTypeImageIndexHeadImageType - musicGenresNameImagesImageTypeImageIndexHeadImageType, + enums.MusicGenresNameImagesImageTypeImageIndexHeadImageType musicGenresNameImagesImageTypeImageIndexHeadImageType, ) { return musicGenresNameImagesImageTypeImageIndexHeadImageType.value; } enums.MusicGenresNameImagesImageTypeImageIndexHeadImageType -musicGenresNameImagesImageTypeImageIndexHeadImageTypeFromJson( + musicGenresNameImagesImageTypeImageIndexHeadImageTypeFromJson( Object? musicGenresNameImagesImageTypeImageIndexHeadImageType, [ enums.MusicGenresNameImagesImageTypeImageIndexHeadImageType? defaultValue, ]) { - return enums.MusicGenresNameImagesImageTypeImageIndexHeadImageType.values - .firstWhereOrNull( - (e) => - e.value == - musicGenresNameImagesImageTypeImageIndexHeadImageType, - ) ?? + return enums.MusicGenresNameImagesImageTypeImageIndexHeadImageType.values.firstWhereOrNull( + (e) => e.value == musicGenresNameImagesImageTypeImageIndexHeadImageType, + ) ?? defaultValue ?? - enums - .MusicGenresNameImagesImageTypeImageIndexHeadImageType - .swaggerGeneratedUnknown; + enums.MusicGenresNameImagesImageTypeImageIndexHeadImageType.swaggerGeneratedUnknown; } enums.MusicGenresNameImagesImageTypeImageIndexHeadImageType? -musicGenresNameImagesImageTypeImageIndexHeadImageTypeNullableFromJson( + musicGenresNameImagesImageTypeImageIndexHeadImageTypeNullableFromJson( Object? musicGenresNameImagesImageTypeImageIndexHeadImageType, [ enums.MusicGenresNameImagesImageTypeImageIndexHeadImageType? defaultValue, ]) { if (musicGenresNameImagesImageTypeImageIndexHeadImageType == null) { return null; } - return enums.MusicGenresNameImagesImageTypeImageIndexHeadImageType.values - .firstWhereOrNull( - (e) => - e.value == - musicGenresNameImagesImageTypeImageIndexHeadImageType, - ) ?? + return enums.MusicGenresNameImagesImageTypeImageIndexHeadImageType.values.firstWhereOrNull( + (e) => e.value == musicGenresNameImagesImageTypeImageIndexHeadImageType, + ) ?? defaultValue; } String musicGenresNameImagesImageTypeImageIndexHeadImageTypeExplodedListToJson( List? - musicGenresNameImagesImageTypeImageIndexHeadImageType, + musicGenresNameImagesImageTypeImageIndexHeadImageType, ) { - return musicGenresNameImagesImageTypeImageIndexHeadImageType - ?.map((e) => e.value!) - .join(',') ?? - ''; + return musicGenresNameImagesImageTypeImageIndexHeadImageType?.map((e) => e.value!).join(',') ?? ''; } List musicGenresNameImagesImageTypeImageIndexHeadImageTypeListToJson( List? - musicGenresNameImagesImageTypeImageIndexHeadImageType, + musicGenresNameImagesImageTypeImageIndexHeadImageType, ) { if (musicGenresNameImagesImageTypeImageIndexHeadImageType == null) { return []; } - return musicGenresNameImagesImageTypeImageIndexHeadImageType - .map((e) => e.value!) - .toList(); + return musicGenresNameImagesImageTypeImageIndexHeadImageType.map((e) => e.value!).toList(); } List -musicGenresNameImagesImageTypeImageIndexHeadImageTypeListFromJson( + musicGenresNameImagesImageTypeImageIndexHeadImageTypeListFromJson( List? musicGenresNameImagesImageTypeImageIndexHeadImageType, [ - List? - defaultValue, + List? defaultValue, ]) { if (musicGenresNameImagesImageTypeImageIndexHeadImageType == null) { return defaultValue ?? []; @@ -68357,10 +64630,9 @@ musicGenresNameImagesImageTypeImageIndexHeadImageTypeListFromJson( } List? -musicGenresNameImagesImageTypeImageIndexHeadImageTypeNullableListFromJson( + musicGenresNameImagesImageTypeImageIndexHeadImageTypeNullableListFromJson( List? musicGenresNameImagesImageTypeImageIndexHeadImageType, [ - List? - defaultValue, + List? defaultValue, ]) { if (musicGenresNameImagesImageTypeImageIndexHeadImageType == null) { return defaultValue; @@ -68376,76 +64648,60 @@ musicGenresNameImagesImageTypeImageIndexHeadImageTypeNullableListFromJson( } String? musicGenresNameImagesImageTypeImageIndexHeadFormatNullableToJson( - enums.MusicGenresNameImagesImageTypeImageIndexHeadFormat? - musicGenresNameImagesImageTypeImageIndexHeadFormat, + enums.MusicGenresNameImagesImageTypeImageIndexHeadFormat? musicGenresNameImagesImageTypeImageIndexHeadFormat, ) { return musicGenresNameImagesImageTypeImageIndexHeadFormat?.value; } String? musicGenresNameImagesImageTypeImageIndexHeadFormatToJson( - enums.MusicGenresNameImagesImageTypeImageIndexHeadFormat - musicGenresNameImagesImageTypeImageIndexHeadFormat, + enums.MusicGenresNameImagesImageTypeImageIndexHeadFormat musicGenresNameImagesImageTypeImageIndexHeadFormat, ) { return musicGenresNameImagesImageTypeImageIndexHeadFormat.value; } -enums.MusicGenresNameImagesImageTypeImageIndexHeadFormat -musicGenresNameImagesImageTypeImageIndexHeadFormatFromJson( +enums.MusicGenresNameImagesImageTypeImageIndexHeadFormat musicGenresNameImagesImageTypeImageIndexHeadFormatFromJson( Object? musicGenresNameImagesImageTypeImageIndexHeadFormat, [ enums.MusicGenresNameImagesImageTypeImageIndexHeadFormat? defaultValue, ]) { - return enums.MusicGenresNameImagesImageTypeImageIndexHeadFormat.values - .firstWhereOrNull( - (e) => - e.value == musicGenresNameImagesImageTypeImageIndexHeadFormat, - ) ?? + return enums.MusicGenresNameImagesImageTypeImageIndexHeadFormat.values.firstWhereOrNull( + (e) => e.value == musicGenresNameImagesImageTypeImageIndexHeadFormat, + ) ?? defaultValue ?? - enums - .MusicGenresNameImagesImageTypeImageIndexHeadFormat - .swaggerGeneratedUnknown; + enums.MusicGenresNameImagesImageTypeImageIndexHeadFormat.swaggerGeneratedUnknown; } enums.MusicGenresNameImagesImageTypeImageIndexHeadFormat? -musicGenresNameImagesImageTypeImageIndexHeadFormatNullableFromJson( + musicGenresNameImagesImageTypeImageIndexHeadFormatNullableFromJson( Object? musicGenresNameImagesImageTypeImageIndexHeadFormat, [ enums.MusicGenresNameImagesImageTypeImageIndexHeadFormat? defaultValue, ]) { if (musicGenresNameImagesImageTypeImageIndexHeadFormat == null) { return null; } - return enums.MusicGenresNameImagesImageTypeImageIndexHeadFormat.values - .firstWhereOrNull( - (e) => - e.value == musicGenresNameImagesImageTypeImageIndexHeadFormat, - ) ?? + return enums.MusicGenresNameImagesImageTypeImageIndexHeadFormat.values.firstWhereOrNull( + (e) => e.value == musicGenresNameImagesImageTypeImageIndexHeadFormat, + ) ?? defaultValue; } String musicGenresNameImagesImageTypeImageIndexHeadFormatExplodedListToJson( - List? - musicGenresNameImagesImageTypeImageIndexHeadFormat, + List? musicGenresNameImagesImageTypeImageIndexHeadFormat, ) { - return musicGenresNameImagesImageTypeImageIndexHeadFormat - ?.map((e) => e.value!) - .join(',') ?? - ''; + return musicGenresNameImagesImageTypeImageIndexHeadFormat?.map((e) => e.value!).join(',') ?? ''; } List musicGenresNameImagesImageTypeImageIndexHeadFormatListToJson( - List? - musicGenresNameImagesImageTypeImageIndexHeadFormat, + List? musicGenresNameImagesImageTypeImageIndexHeadFormat, ) { if (musicGenresNameImagesImageTypeImageIndexHeadFormat == null) { return []; } - return musicGenresNameImagesImageTypeImageIndexHeadFormat - .map((e) => e.value!) - .toList(); + return musicGenresNameImagesImageTypeImageIndexHeadFormat.map((e) => e.value!).toList(); } List -musicGenresNameImagesImageTypeImageIndexHeadFormatListFromJson( + musicGenresNameImagesImageTypeImageIndexHeadFormatListFromJson( List? musicGenresNameImagesImageTypeImageIndexHeadFormat, [ List? defaultValue, ]) { @@ -68463,7 +64719,7 @@ musicGenresNameImagesImageTypeImageIndexHeadFormatListFromJson( } List? -musicGenresNameImagesImageTypeImageIndexHeadFormatNullableListFromJson( + musicGenresNameImagesImageTypeImageIndexHeadFormatNullableListFromJson( List? musicGenresNameImagesImageTypeImageIndexHeadFormat, [ List? defaultValue, ]) { @@ -68481,21 +64737,18 @@ musicGenresNameImagesImageTypeImageIndexHeadFormatNullableListFromJson( } String? personsNameImagesImageTypeGetImageTypeNullableToJson( - enums.PersonsNameImagesImageTypeGetImageType? - personsNameImagesImageTypeGetImageType, + enums.PersonsNameImagesImageTypeGetImageType? personsNameImagesImageTypeGetImageType, ) { return personsNameImagesImageTypeGetImageType?.value; } String? personsNameImagesImageTypeGetImageTypeToJson( - enums.PersonsNameImagesImageTypeGetImageType - personsNameImagesImageTypeGetImageType, + enums.PersonsNameImagesImageTypeGetImageType personsNameImagesImageTypeGetImageType, ) { return personsNameImagesImageTypeGetImageType.value; } -enums.PersonsNameImagesImageTypeGetImageType -personsNameImagesImageTypeGetImageTypeFromJson( +enums.PersonsNameImagesImageTypeGetImageType personsNameImagesImageTypeGetImageTypeFromJson( Object? personsNameImagesImageTypeGetImageType, [ enums.PersonsNameImagesImageTypeGetImageType? defaultValue, ]) { @@ -68506,8 +64759,7 @@ personsNameImagesImageTypeGetImageTypeFromJson( enums.PersonsNameImagesImageTypeGetImageType.swaggerGeneratedUnknown; } -enums.PersonsNameImagesImageTypeGetImageType? -personsNameImagesImageTypeGetImageTypeNullableFromJson( +enums.PersonsNameImagesImageTypeGetImageType? personsNameImagesImageTypeGetImageTypeNullableFromJson( Object? personsNameImagesImageTypeGetImageType, [ enums.PersonsNameImagesImageTypeGetImageType? defaultValue, ]) { @@ -68521,18 +64773,13 @@ personsNameImagesImageTypeGetImageTypeNullableFromJson( } String personsNameImagesImageTypeGetImageTypeExplodedListToJson( - List? - personsNameImagesImageTypeGetImageType, + List? personsNameImagesImageTypeGetImageType, ) { - return personsNameImagesImageTypeGetImageType - ?.map((e) => e.value!) - .join(',') ?? - ''; + return personsNameImagesImageTypeGetImageType?.map((e) => e.value!).join(',') ?? ''; } List personsNameImagesImageTypeGetImageTypeListToJson( - List? - personsNameImagesImageTypeGetImageType, + List? personsNameImagesImageTypeGetImageType, ) { if (personsNameImagesImageTypeGetImageType == null) { return []; @@ -68541,8 +64788,7 @@ List personsNameImagesImageTypeGetImageTypeListToJson( return personsNameImagesImageTypeGetImageType.map((e) => e.value!).toList(); } -List -personsNameImagesImageTypeGetImageTypeListFromJson( +List personsNameImagesImageTypeGetImageTypeListFromJson( List? personsNameImagesImageTypeGetImageType, [ List? defaultValue, ]) { @@ -68555,8 +64801,7 @@ personsNameImagesImageTypeGetImageTypeListFromJson( .toList(); } -List? -personsNameImagesImageTypeGetImageTypeNullableListFromJson( +List? personsNameImagesImageTypeGetImageTypeNullableListFromJson( List? personsNameImagesImageTypeGetImageType, [ List? defaultValue, ]) { @@ -68570,8 +64815,7 @@ personsNameImagesImageTypeGetImageTypeNullableListFromJson( } String? personsNameImagesImageTypeGetFormatNullableToJson( - enums.PersonsNameImagesImageTypeGetFormat? - personsNameImagesImageTypeGetFormat, + enums.PersonsNameImagesImageTypeGetFormat? personsNameImagesImageTypeGetFormat, ) { return personsNameImagesImageTypeGetFormat?.value; } @@ -68582,8 +64826,7 @@ String? personsNameImagesImageTypeGetFormatToJson( return personsNameImagesImageTypeGetFormat.value; } -enums.PersonsNameImagesImageTypeGetFormat -personsNameImagesImageTypeGetFormatFromJson( +enums.PersonsNameImagesImageTypeGetFormat personsNameImagesImageTypeGetFormatFromJson( Object? personsNameImagesImageTypeGetFormat, [ enums.PersonsNameImagesImageTypeGetFormat? defaultValue, ]) { @@ -68594,8 +64837,7 @@ personsNameImagesImageTypeGetFormatFromJson( enums.PersonsNameImagesImageTypeGetFormat.swaggerGeneratedUnknown; } -enums.PersonsNameImagesImageTypeGetFormat? -personsNameImagesImageTypeGetFormatNullableFromJson( +enums.PersonsNameImagesImageTypeGetFormat? personsNameImagesImageTypeGetFormatNullableFromJson( Object? personsNameImagesImageTypeGetFormat, [ enums.PersonsNameImagesImageTypeGetFormat? defaultValue, ]) { @@ -68609,16 +64851,13 @@ personsNameImagesImageTypeGetFormatNullableFromJson( } String personsNameImagesImageTypeGetFormatExplodedListToJson( - List? - personsNameImagesImageTypeGetFormat, + List? personsNameImagesImageTypeGetFormat, ) { - return personsNameImagesImageTypeGetFormat?.map((e) => e.value!).join(',') ?? - ''; + return personsNameImagesImageTypeGetFormat?.map((e) => e.value!).join(',') ?? ''; } List personsNameImagesImageTypeGetFormatListToJson( - List? - personsNameImagesImageTypeGetFormat, + List? personsNameImagesImageTypeGetFormat, ) { if (personsNameImagesImageTypeGetFormat == null) { return []; @@ -68627,8 +64866,7 @@ List personsNameImagesImageTypeGetFormatListToJson( return personsNameImagesImageTypeGetFormat.map((e) => e.value!).toList(); } -List -personsNameImagesImageTypeGetFormatListFromJson( +List personsNameImagesImageTypeGetFormatListFromJson( List? personsNameImagesImageTypeGetFormat, [ List? defaultValue, ]) { @@ -68641,8 +64879,7 @@ personsNameImagesImageTypeGetFormatListFromJson( .toList(); } -List? -personsNameImagesImageTypeGetFormatNullableListFromJson( +List? personsNameImagesImageTypeGetFormatNullableListFromJson( List? personsNameImagesImageTypeGetFormat, [ List? defaultValue, ]) { @@ -68656,21 +64893,18 @@ personsNameImagesImageTypeGetFormatNullableListFromJson( } String? personsNameImagesImageTypeHeadImageTypeNullableToJson( - enums.PersonsNameImagesImageTypeHeadImageType? - personsNameImagesImageTypeHeadImageType, + enums.PersonsNameImagesImageTypeHeadImageType? personsNameImagesImageTypeHeadImageType, ) { return personsNameImagesImageTypeHeadImageType?.value; } String? personsNameImagesImageTypeHeadImageTypeToJson( - enums.PersonsNameImagesImageTypeHeadImageType - personsNameImagesImageTypeHeadImageType, + enums.PersonsNameImagesImageTypeHeadImageType personsNameImagesImageTypeHeadImageType, ) { return personsNameImagesImageTypeHeadImageType.value; } -enums.PersonsNameImagesImageTypeHeadImageType -personsNameImagesImageTypeHeadImageTypeFromJson( +enums.PersonsNameImagesImageTypeHeadImageType personsNameImagesImageTypeHeadImageTypeFromJson( Object? personsNameImagesImageTypeHeadImageType, [ enums.PersonsNameImagesImageTypeHeadImageType? defaultValue, ]) { @@ -68681,8 +64915,7 @@ personsNameImagesImageTypeHeadImageTypeFromJson( enums.PersonsNameImagesImageTypeHeadImageType.swaggerGeneratedUnknown; } -enums.PersonsNameImagesImageTypeHeadImageType? -personsNameImagesImageTypeHeadImageTypeNullableFromJson( +enums.PersonsNameImagesImageTypeHeadImageType? personsNameImagesImageTypeHeadImageTypeNullableFromJson( Object? personsNameImagesImageTypeHeadImageType, [ enums.PersonsNameImagesImageTypeHeadImageType? defaultValue, ]) { @@ -68696,18 +64929,13 @@ personsNameImagesImageTypeHeadImageTypeNullableFromJson( } String personsNameImagesImageTypeHeadImageTypeExplodedListToJson( - List? - personsNameImagesImageTypeHeadImageType, + List? personsNameImagesImageTypeHeadImageType, ) { - return personsNameImagesImageTypeHeadImageType - ?.map((e) => e.value!) - .join(',') ?? - ''; + return personsNameImagesImageTypeHeadImageType?.map((e) => e.value!).join(',') ?? ''; } List personsNameImagesImageTypeHeadImageTypeListToJson( - List? - personsNameImagesImageTypeHeadImageType, + List? personsNameImagesImageTypeHeadImageType, ) { if (personsNameImagesImageTypeHeadImageType == null) { return []; @@ -68716,8 +64944,7 @@ List personsNameImagesImageTypeHeadImageTypeListToJson( return personsNameImagesImageTypeHeadImageType.map((e) => e.value!).toList(); } -List -personsNameImagesImageTypeHeadImageTypeListFromJson( +List personsNameImagesImageTypeHeadImageTypeListFromJson( List? personsNameImagesImageTypeHeadImageType, [ List? defaultValue, ]) { @@ -68730,8 +64957,7 @@ personsNameImagesImageTypeHeadImageTypeListFromJson( .toList(); } -List? -personsNameImagesImageTypeHeadImageTypeNullableListFromJson( +List? personsNameImagesImageTypeHeadImageTypeNullableListFromJson( List? personsNameImagesImageTypeHeadImageType, [ List? defaultValue, ]) { @@ -68745,21 +64971,18 @@ personsNameImagesImageTypeHeadImageTypeNullableListFromJson( } String? personsNameImagesImageTypeHeadFormatNullableToJson( - enums.PersonsNameImagesImageTypeHeadFormat? - personsNameImagesImageTypeHeadFormat, + enums.PersonsNameImagesImageTypeHeadFormat? personsNameImagesImageTypeHeadFormat, ) { return personsNameImagesImageTypeHeadFormat?.value; } String? personsNameImagesImageTypeHeadFormatToJson( - enums.PersonsNameImagesImageTypeHeadFormat - personsNameImagesImageTypeHeadFormat, + enums.PersonsNameImagesImageTypeHeadFormat personsNameImagesImageTypeHeadFormat, ) { return personsNameImagesImageTypeHeadFormat.value; } -enums.PersonsNameImagesImageTypeHeadFormat -personsNameImagesImageTypeHeadFormatFromJson( +enums.PersonsNameImagesImageTypeHeadFormat personsNameImagesImageTypeHeadFormatFromJson( Object? personsNameImagesImageTypeHeadFormat, [ enums.PersonsNameImagesImageTypeHeadFormat? defaultValue, ]) { @@ -68770,8 +64993,7 @@ personsNameImagesImageTypeHeadFormatFromJson( enums.PersonsNameImagesImageTypeHeadFormat.swaggerGeneratedUnknown; } -enums.PersonsNameImagesImageTypeHeadFormat? -personsNameImagesImageTypeHeadFormatNullableFromJson( +enums.PersonsNameImagesImageTypeHeadFormat? personsNameImagesImageTypeHeadFormatNullableFromJson( Object? personsNameImagesImageTypeHeadFormat, [ enums.PersonsNameImagesImageTypeHeadFormat? defaultValue, ]) { @@ -68785,16 +65007,13 @@ personsNameImagesImageTypeHeadFormatNullableFromJson( } String personsNameImagesImageTypeHeadFormatExplodedListToJson( - List? - personsNameImagesImageTypeHeadFormat, + List? personsNameImagesImageTypeHeadFormat, ) { - return personsNameImagesImageTypeHeadFormat?.map((e) => e.value!).join(',') ?? - ''; + return personsNameImagesImageTypeHeadFormat?.map((e) => e.value!).join(',') ?? ''; } List personsNameImagesImageTypeHeadFormatListToJson( - List? - personsNameImagesImageTypeHeadFormat, + List? personsNameImagesImageTypeHeadFormat, ) { if (personsNameImagesImageTypeHeadFormat == null) { return []; @@ -68803,8 +65022,7 @@ List personsNameImagesImageTypeHeadFormatListToJson( return personsNameImagesImageTypeHeadFormat.map((e) => e.value!).toList(); } -List -personsNameImagesImageTypeHeadFormatListFromJson( +List personsNameImagesImageTypeHeadFormatListFromJson( List? personsNameImagesImageTypeHeadFormat, [ List? defaultValue, ]) { @@ -68817,8 +65035,7 @@ personsNameImagesImageTypeHeadFormatListFromJson( .toList(); } -List? -personsNameImagesImageTypeHeadFormatNullableListFromJson( +List? personsNameImagesImageTypeHeadFormatNullableListFromJson( List? personsNameImagesImageTypeHeadFormat, [ List? defaultValue, ]) { @@ -68832,74 +65049,60 @@ personsNameImagesImageTypeHeadFormatNullableListFromJson( } String? personsNameImagesImageTypeImageIndexGetImageTypeNullableToJson( - enums.PersonsNameImagesImageTypeImageIndexGetImageType? - personsNameImagesImageTypeImageIndexGetImageType, + enums.PersonsNameImagesImageTypeImageIndexGetImageType? personsNameImagesImageTypeImageIndexGetImageType, ) { return personsNameImagesImageTypeImageIndexGetImageType?.value; } String? personsNameImagesImageTypeImageIndexGetImageTypeToJson( - enums.PersonsNameImagesImageTypeImageIndexGetImageType - personsNameImagesImageTypeImageIndexGetImageType, + enums.PersonsNameImagesImageTypeImageIndexGetImageType personsNameImagesImageTypeImageIndexGetImageType, ) { return personsNameImagesImageTypeImageIndexGetImageType.value; } -enums.PersonsNameImagesImageTypeImageIndexGetImageType -personsNameImagesImageTypeImageIndexGetImageTypeFromJson( +enums.PersonsNameImagesImageTypeImageIndexGetImageType personsNameImagesImageTypeImageIndexGetImageTypeFromJson( Object? personsNameImagesImageTypeImageIndexGetImageType, [ enums.PersonsNameImagesImageTypeImageIndexGetImageType? defaultValue, ]) { - return enums.PersonsNameImagesImageTypeImageIndexGetImageType.values - .firstWhereOrNull( - (e) => e.value == personsNameImagesImageTypeImageIndexGetImageType, - ) ?? + return enums.PersonsNameImagesImageTypeImageIndexGetImageType.values.firstWhereOrNull( + (e) => e.value == personsNameImagesImageTypeImageIndexGetImageType, + ) ?? defaultValue ?? - enums - .PersonsNameImagesImageTypeImageIndexGetImageType - .swaggerGeneratedUnknown; + enums.PersonsNameImagesImageTypeImageIndexGetImageType.swaggerGeneratedUnknown; } enums.PersonsNameImagesImageTypeImageIndexGetImageType? -personsNameImagesImageTypeImageIndexGetImageTypeNullableFromJson( + personsNameImagesImageTypeImageIndexGetImageTypeNullableFromJson( Object? personsNameImagesImageTypeImageIndexGetImageType, [ enums.PersonsNameImagesImageTypeImageIndexGetImageType? defaultValue, ]) { if (personsNameImagesImageTypeImageIndexGetImageType == null) { return null; } - return enums.PersonsNameImagesImageTypeImageIndexGetImageType.values - .firstWhereOrNull( - (e) => e.value == personsNameImagesImageTypeImageIndexGetImageType, - ) ?? + return enums.PersonsNameImagesImageTypeImageIndexGetImageType.values.firstWhereOrNull( + (e) => e.value == personsNameImagesImageTypeImageIndexGetImageType, + ) ?? defaultValue; } String personsNameImagesImageTypeImageIndexGetImageTypeExplodedListToJson( - List? - personsNameImagesImageTypeImageIndexGetImageType, + List? personsNameImagesImageTypeImageIndexGetImageType, ) { - return personsNameImagesImageTypeImageIndexGetImageType - ?.map((e) => e.value!) - .join(',') ?? - ''; + return personsNameImagesImageTypeImageIndexGetImageType?.map((e) => e.value!).join(',') ?? ''; } List personsNameImagesImageTypeImageIndexGetImageTypeListToJson( - List? - personsNameImagesImageTypeImageIndexGetImageType, + List? personsNameImagesImageTypeImageIndexGetImageType, ) { if (personsNameImagesImageTypeImageIndexGetImageType == null) { return []; } - return personsNameImagesImageTypeImageIndexGetImageType - .map((e) => e.value!) - .toList(); + return personsNameImagesImageTypeImageIndexGetImageType.map((e) => e.value!).toList(); } List -personsNameImagesImageTypeImageIndexGetImageTypeListFromJson( + personsNameImagesImageTypeImageIndexGetImageTypeListFromJson( List? personsNameImagesImageTypeImageIndexGetImageType, [ List? defaultValue, ]) { @@ -68917,7 +65120,7 @@ personsNameImagesImageTypeImageIndexGetImageTypeListFromJson( } List? -personsNameImagesImageTypeImageIndexGetImageTypeNullableListFromJson( + personsNameImagesImageTypeImageIndexGetImageTypeNullableListFromJson( List? personsNameImagesImageTypeImageIndexGetImageType, [ List? defaultValue, ]) { @@ -68935,74 +65138,58 @@ personsNameImagesImageTypeImageIndexGetImageTypeNullableListFromJson( } String? personsNameImagesImageTypeImageIndexGetFormatNullableToJson( - enums.PersonsNameImagesImageTypeImageIndexGetFormat? - personsNameImagesImageTypeImageIndexGetFormat, + enums.PersonsNameImagesImageTypeImageIndexGetFormat? personsNameImagesImageTypeImageIndexGetFormat, ) { return personsNameImagesImageTypeImageIndexGetFormat?.value; } String? personsNameImagesImageTypeImageIndexGetFormatToJson( - enums.PersonsNameImagesImageTypeImageIndexGetFormat - personsNameImagesImageTypeImageIndexGetFormat, + enums.PersonsNameImagesImageTypeImageIndexGetFormat personsNameImagesImageTypeImageIndexGetFormat, ) { return personsNameImagesImageTypeImageIndexGetFormat.value; } -enums.PersonsNameImagesImageTypeImageIndexGetFormat -personsNameImagesImageTypeImageIndexGetFormatFromJson( +enums.PersonsNameImagesImageTypeImageIndexGetFormat personsNameImagesImageTypeImageIndexGetFormatFromJson( Object? personsNameImagesImageTypeImageIndexGetFormat, [ enums.PersonsNameImagesImageTypeImageIndexGetFormat? defaultValue, ]) { - return enums.PersonsNameImagesImageTypeImageIndexGetFormat.values - .firstWhereOrNull( - (e) => e.value == personsNameImagesImageTypeImageIndexGetFormat, - ) ?? + return enums.PersonsNameImagesImageTypeImageIndexGetFormat.values.firstWhereOrNull( + (e) => e.value == personsNameImagesImageTypeImageIndexGetFormat, + ) ?? defaultValue ?? - enums - .PersonsNameImagesImageTypeImageIndexGetFormat - .swaggerGeneratedUnknown; + enums.PersonsNameImagesImageTypeImageIndexGetFormat.swaggerGeneratedUnknown; } -enums.PersonsNameImagesImageTypeImageIndexGetFormat? -personsNameImagesImageTypeImageIndexGetFormatNullableFromJson( +enums.PersonsNameImagesImageTypeImageIndexGetFormat? personsNameImagesImageTypeImageIndexGetFormatNullableFromJson( Object? personsNameImagesImageTypeImageIndexGetFormat, [ enums.PersonsNameImagesImageTypeImageIndexGetFormat? defaultValue, ]) { if (personsNameImagesImageTypeImageIndexGetFormat == null) { return null; } - return enums.PersonsNameImagesImageTypeImageIndexGetFormat.values - .firstWhereOrNull( - (e) => e.value == personsNameImagesImageTypeImageIndexGetFormat, - ) ?? + return enums.PersonsNameImagesImageTypeImageIndexGetFormat.values.firstWhereOrNull( + (e) => e.value == personsNameImagesImageTypeImageIndexGetFormat, + ) ?? defaultValue; } String personsNameImagesImageTypeImageIndexGetFormatExplodedListToJson( - List? - personsNameImagesImageTypeImageIndexGetFormat, + List? personsNameImagesImageTypeImageIndexGetFormat, ) { - return personsNameImagesImageTypeImageIndexGetFormat - ?.map((e) => e.value!) - .join(',') ?? - ''; + return personsNameImagesImageTypeImageIndexGetFormat?.map((e) => e.value!).join(',') ?? ''; } List personsNameImagesImageTypeImageIndexGetFormatListToJson( - List? - personsNameImagesImageTypeImageIndexGetFormat, + List? personsNameImagesImageTypeImageIndexGetFormat, ) { if (personsNameImagesImageTypeImageIndexGetFormat == null) { return []; } - return personsNameImagesImageTypeImageIndexGetFormat - .map((e) => e.value!) - .toList(); + return personsNameImagesImageTypeImageIndexGetFormat.map((e) => e.value!).toList(); } -List -personsNameImagesImageTypeImageIndexGetFormatListFromJson( +List personsNameImagesImageTypeImageIndexGetFormatListFromJson( List? personsNameImagesImageTypeImageIndexGetFormat, [ List? defaultValue, ]) { @@ -69012,14 +65199,13 @@ personsNameImagesImageTypeImageIndexGetFormatListFromJson( return personsNameImagesImageTypeImageIndexGetFormat .map( - (e) => - personsNameImagesImageTypeImageIndexGetFormatFromJson(e.toString()), + (e) => personsNameImagesImageTypeImageIndexGetFormatFromJson(e.toString()), ) .toList(); } List? -personsNameImagesImageTypeImageIndexGetFormatNullableListFromJson( + personsNameImagesImageTypeImageIndexGetFormatNullableListFromJson( List? personsNameImagesImageTypeImageIndexGetFormat, [ List? defaultValue, ]) { @@ -69029,81 +65215,66 @@ personsNameImagesImageTypeImageIndexGetFormatNullableListFromJson( return personsNameImagesImageTypeImageIndexGetFormat .map( - (e) => - personsNameImagesImageTypeImageIndexGetFormatFromJson(e.toString()), + (e) => personsNameImagesImageTypeImageIndexGetFormatFromJson(e.toString()), ) .toList(); } String? personsNameImagesImageTypeImageIndexHeadImageTypeNullableToJson( - enums.PersonsNameImagesImageTypeImageIndexHeadImageType? - personsNameImagesImageTypeImageIndexHeadImageType, + enums.PersonsNameImagesImageTypeImageIndexHeadImageType? personsNameImagesImageTypeImageIndexHeadImageType, ) { return personsNameImagesImageTypeImageIndexHeadImageType?.value; } String? personsNameImagesImageTypeImageIndexHeadImageTypeToJson( - enums.PersonsNameImagesImageTypeImageIndexHeadImageType - personsNameImagesImageTypeImageIndexHeadImageType, + enums.PersonsNameImagesImageTypeImageIndexHeadImageType personsNameImagesImageTypeImageIndexHeadImageType, ) { return personsNameImagesImageTypeImageIndexHeadImageType.value; } -enums.PersonsNameImagesImageTypeImageIndexHeadImageType -personsNameImagesImageTypeImageIndexHeadImageTypeFromJson( +enums.PersonsNameImagesImageTypeImageIndexHeadImageType personsNameImagesImageTypeImageIndexHeadImageTypeFromJson( Object? personsNameImagesImageTypeImageIndexHeadImageType, [ enums.PersonsNameImagesImageTypeImageIndexHeadImageType? defaultValue, ]) { - return enums.PersonsNameImagesImageTypeImageIndexHeadImageType.values - .firstWhereOrNull( - (e) => e.value == personsNameImagesImageTypeImageIndexHeadImageType, - ) ?? + return enums.PersonsNameImagesImageTypeImageIndexHeadImageType.values.firstWhereOrNull( + (e) => e.value == personsNameImagesImageTypeImageIndexHeadImageType, + ) ?? defaultValue ?? - enums - .PersonsNameImagesImageTypeImageIndexHeadImageType - .swaggerGeneratedUnknown; + enums.PersonsNameImagesImageTypeImageIndexHeadImageType.swaggerGeneratedUnknown; } enums.PersonsNameImagesImageTypeImageIndexHeadImageType? -personsNameImagesImageTypeImageIndexHeadImageTypeNullableFromJson( + personsNameImagesImageTypeImageIndexHeadImageTypeNullableFromJson( Object? personsNameImagesImageTypeImageIndexHeadImageType, [ enums.PersonsNameImagesImageTypeImageIndexHeadImageType? defaultValue, ]) { if (personsNameImagesImageTypeImageIndexHeadImageType == null) { return null; } - return enums.PersonsNameImagesImageTypeImageIndexHeadImageType.values - .firstWhereOrNull( - (e) => e.value == personsNameImagesImageTypeImageIndexHeadImageType, - ) ?? + return enums.PersonsNameImagesImageTypeImageIndexHeadImageType.values.firstWhereOrNull( + (e) => e.value == personsNameImagesImageTypeImageIndexHeadImageType, + ) ?? defaultValue; } String personsNameImagesImageTypeImageIndexHeadImageTypeExplodedListToJson( - List? - personsNameImagesImageTypeImageIndexHeadImageType, + List? personsNameImagesImageTypeImageIndexHeadImageType, ) { - return personsNameImagesImageTypeImageIndexHeadImageType - ?.map((e) => e.value!) - .join(',') ?? - ''; + return personsNameImagesImageTypeImageIndexHeadImageType?.map((e) => e.value!).join(',') ?? ''; } List personsNameImagesImageTypeImageIndexHeadImageTypeListToJson( - List? - personsNameImagesImageTypeImageIndexHeadImageType, + List? personsNameImagesImageTypeImageIndexHeadImageType, ) { if (personsNameImagesImageTypeImageIndexHeadImageType == null) { return []; } - return personsNameImagesImageTypeImageIndexHeadImageType - .map((e) => e.value!) - .toList(); + return personsNameImagesImageTypeImageIndexHeadImageType.map((e) => e.value!).toList(); } List -personsNameImagesImageTypeImageIndexHeadImageTypeListFromJson( + personsNameImagesImageTypeImageIndexHeadImageTypeListFromJson( List? personsNameImagesImageTypeImageIndexHeadImageType, [ List? defaultValue, ]) { @@ -69121,7 +65292,7 @@ personsNameImagesImageTypeImageIndexHeadImageTypeListFromJson( } List? -personsNameImagesImageTypeImageIndexHeadImageTypeNullableListFromJson( + personsNameImagesImageTypeImageIndexHeadImageTypeNullableListFromJson( List? personsNameImagesImageTypeImageIndexHeadImageType, [ List? defaultValue, ]) { @@ -69139,74 +65310,58 @@ personsNameImagesImageTypeImageIndexHeadImageTypeNullableListFromJson( } String? personsNameImagesImageTypeImageIndexHeadFormatNullableToJson( - enums.PersonsNameImagesImageTypeImageIndexHeadFormat? - personsNameImagesImageTypeImageIndexHeadFormat, + enums.PersonsNameImagesImageTypeImageIndexHeadFormat? personsNameImagesImageTypeImageIndexHeadFormat, ) { return personsNameImagesImageTypeImageIndexHeadFormat?.value; } String? personsNameImagesImageTypeImageIndexHeadFormatToJson( - enums.PersonsNameImagesImageTypeImageIndexHeadFormat - personsNameImagesImageTypeImageIndexHeadFormat, + enums.PersonsNameImagesImageTypeImageIndexHeadFormat personsNameImagesImageTypeImageIndexHeadFormat, ) { return personsNameImagesImageTypeImageIndexHeadFormat.value; } -enums.PersonsNameImagesImageTypeImageIndexHeadFormat -personsNameImagesImageTypeImageIndexHeadFormatFromJson( +enums.PersonsNameImagesImageTypeImageIndexHeadFormat personsNameImagesImageTypeImageIndexHeadFormatFromJson( Object? personsNameImagesImageTypeImageIndexHeadFormat, [ enums.PersonsNameImagesImageTypeImageIndexHeadFormat? defaultValue, ]) { - return enums.PersonsNameImagesImageTypeImageIndexHeadFormat.values - .firstWhereOrNull( - (e) => e.value == personsNameImagesImageTypeImageIndexHeadFormat, - ) ?? + return enums.PersonsNameImagesImageTypeImageIndexHeadFormat.values.firstWhereOrNull( + (e) => e.value == personsNameImagesImageTypeImageIndexHeadFormat, + ) ?? defaultValue ?? - enums - .PersonsNameImagesImageTypeImageIndexHeadFormat - .swaggerGeneratedUnknown; + enums.PersonsNameImagesImageTypeImageIndexHeadFormat.swaggerGeneratedUnknown; } -enums.PersonsNameImagesImageTypeImageIndexHeadFormat? -personsNameImagesImageTypeImageIndexHeadFormatNullableFromJson( +enums.PersonsNameImagesImageTypeImageIndexHeadFormat? personsNameImagesImageTypeImageIndexHeadFormatNullableFromJson( Object? personsNameImagesImageTypeImageIndexHeadFormat, [ enums.PersonsNameImagesImageTypeImageIndexHeadFormat? defaultValue, ]) { if (personsNameImagesImageTypeImageIndexHeadFormat == null) { return null; } - return enums.PersonsNameImagesImageTypeImageIndexHeadFormat.values - .firstWhereOrNull( - (e) => e.value == personsNameImagesImageTypeImageIndexHeadFormat, - ) ?? + return enums.PersonsNameImagesImageTypeImageIndexHeadFormat.values.firstWhereOrNull( + (e) => e.value == personsNameImagesImageTypeImageIndexHeadFormat, + ) ?? defaultValue; } String personsNameImagesImageTypeImageIndexHeadFormatExplodedListToJson( - List? - personsNameImagesImageTypeImageIndexHeadFormat, + List? personsNameImagesImageTypeImageIndexHeadFormat, ) { - return personsNameImagesImageTypeImageIndexHeadFormat - ?.map((e) => e.value!) - .join(',') ?? - ''; + return personsNameImagesImageTypeImageIndexHeadFormat?.map((e) => e.value!).join(',') ?? ''; } List personsNameImagesImageTypeImageIndexHeadFormatListToJson( - List? - personsNameImagesImageTypeImageIndexHeadFormat, + List? personsNameImagesImageTypeImageIndexHeadFormat, ) { if (personsNameImagesImageTypeImageIndexHeadFormat == null) { return []; } - return personsNameImagesImageTypeImageIndexHeadFormat - .map((e) => e.value!) - .toList(); + return personsNameImagesImageTypeImageIndexHeadFormat.map((e) => e.value!).toList(); } -List -personsNameImagesImageTypeImageIndexHeadFormatListFromJson( +List personsNameImagesImageTypeImageIndexHeadFormatListFromJson( List? personsNameImagesImageTypeImageIndexHeadFormat, [ List? defaultValue, ]) { @@ -69224,7 +65379,7 @@ personsNameImagesImageTypeImageIndexHeadFormatListFromJson( } List? -personsNameImagesImageTypeImageIndexHeadFormatNullableListFromJson( + personsNameImagesImageTypeImageIndexHeadFormatNullableListFromJson( List? personsNameImagesImageTypeImageIndexHeadFormat, [ List? defaultValue, ]) { @@ -69242,21 +65397,18 @@ personsNameImagesImageTypeImageIndexHeadFormatNullableListFromJson( } String? studiosNameImagesImageTypeGetImageTypeNullableToJson( - enums.StudiosNameImagesImageTypeGetImageType? - studiosNameImagesImageTypeGetImageType, + enums.StudiosNameImagesImageTypeGetImageType? studiosNameImagesImageTypeGetImageType, ) { return studiosNameImagesImageTypeGetImageType?.value; } String? studiosNameImagesImageTypeGetImageTypeToJson( - enums.StudiosNameImagesImageTypeGetImageType - studiosNameImagesImageTypeGetImageType, + enums.StudiosNameImagesImageTypeGetImageType studiosNameImagesImageTypeGetImageType, ) { return studiosNameImagesImageTypeGetImageType.value; } -enums.StudiosNameImagesImageTypeGetImageType -studiosNameImagesImageTypeGetImageTypeFromJson( +enums.StudiosNameImagesImageTypeGetImageType studiosNameImagesImageTypeGetImageTypeFromJson( Object? studiosNameImagesImageTypeGetImageType, [ enums.StudiosNameImagesImageTypeGetImageType? defaultValue, ]) { @@ -69267,8 +65419,7 @@ studiosNameImagesImageTypeGetImageTypeFromJson( enums.StudiosNameImagesImageTypeGetImageType.swaggerGeneratedUnknown; } -enums.StudiosNameImagesImageTypeGetImageType? -studiosNameImagesImageTypeGetImageTypeNullableFromJson( +enums.StudiosNameImagesImageTypeGetImageType? studiosNameImagesImageTypeGetImageTypeNullableFromJson( Object? studiosNameImagesImageTypeGetImageType, [ enums.StudiosNameImagesImageTypeGetImageType? defaultValue, ]) { @@ -69282,18 +65433,13 @@ studiosNameImagesImageTypeGetImageTypeNullableFromJson( } String studiosNameImagesImageTypeGetImageTypeExplodedListToJson( - List? - studiosNameImagesImageTypeGetImageType, + List? studiosNameImagesImageTypeGetImageType, ) { - return studiosNameImagesImageTypeGetImageType - ?.map((e) => e.value!) - .join(',') ?? - ''; + return studiosNameImagesImageTypeGetImageType?.map((e) => e.value!).join(',') ?? ''; } List studiosNameImagesImageTypeGetImageTypeListToJson( - List? - studiosNameImagesImageTypeGetImageType, + List? studiosNameImagesImageTypeGetImageType, ) { if (studiosNameImagesImageTypeGetImageType == null) { return []; @@ -69302,8 +65448,7 @@ List studiosNameImagesImageTypeGetImageTypeListToJson( return studiosNameImagesImageTypeGetImageType.map((e) => e.value!).toList(); } -List -studiosNameImagesImageTypeGetImageTypeListFromJson( +List studiosNameImagesImageTypeGetImageTypeListFromJson( List? studiosNameImagesImageTypeGetImageType, [ List? defaultValue, ]) { @@ -69316,8 +65461,7 @@ studiosNameImagesImageTypeGetImageTypeListFromJson( .toList(); } -List? -studiosNameImagesImageTypeGetImageTypeNullableListFromJson( +List? studiosNameImagesImageTypeGetImageTypeNullableListFromJson( List? studiosNameImagesImageTypeGetImageType, [ List? defaultValue, ]) { @@ -69331,8 +65475,7 @@ studiosNameImagesImageTypeGetImageTypeNullableListFromJson( } String? studiosNameImagesImageTypeGetFormatNullableToJson( - enums.StudiosNameImagesImageTypeGetFormat? - studiosNameImagesImageTypeGetFormat, + enums.StudiosNameImagesImageTypeGetFormat? studiosNameImagesImageTypeGetFormat, ) { return studiosNameImagesImageTypeGetFormat?.value; } @@ -69343,8 +65486,7 @@ String? studiosNameImagesImageTypeGetFormatToJson( return studiosNameImagesImageTypeGetFormat.value; } -enums.StudiosNameImagesImageTypeGetFormat -studiosNameImagesImageTypeGetFormatFromJson( +enums.StudiosNameImagesImageTypeGetFormat studiosNameImagesImageTypeGetFormatFromJson( Object? studiosNameImagesImageTypeGetFormat, [ enums.StudiosNameImagesImageTypeGetFormat? defaultValue, ]) { @@ -69355,8 +65497,7 @@ studiosNameImagesImageTypeGetFormatFromJson( enums.StudiosNameImagesImageTypeGetFormat.swaggerGeneratedUnknown; } -enums.StudiosNameImagesImageTypeGetFormat? -studiosNameImagesImageTypeGetFormatNullableFromJson( +enums.StudiosNameImagesImageTypeGetFormat? studiosNameImagesImageTypeGetFormatNullableFromJson( Object? studiosNameImagesImageTypeGetFormat, [ enums.StudiosNameImagesImageTypeGetFormat? defaultValue, ]) { @@ -69370,16 +65511,13 @@ studiosNameImagesImageTypeGetFormatNullableFromJson( } String studiosNameImagesImageTypeGetFormatExplodedListToJson( - List? - studiosNameImagesImageTypeGetFormat, + List? studiosNameImagesImageTypeGetFormat, ) { - return studiosNameImagesImageTypeGetFormat?.map((e) => e.value!).join(',') ?? - ''; + return studiosNameImagesImageTypeGetFormat?.map((e) => e.value!).join(',') ?? ''; } List studiosNameImagesImageTypeGetFormatListToJson( - List? - studiosNameImagesImageTypeGetFormat, + List? studiosNameImagesImageTypeGetFormat, ) { if (studiosNameImagesImageTypeGetFormat == null) { return []; @@ -69388,8 +65526,7 @@ List studiosNameImagesImageTypeGetFormatListToJson( return studiosNameImagesImageTypeGetFormat.map((e) => e.value!).toList(); } -List -studiosNameImagesImageTypeGetFormatListFromJson( +List studiosNameImagesImageTypeGetFormatListFromJson( List? studiosNameImagesImageTypeGetFormat, [ List? defaultValue, ]) { @@ -69402,8 +65539,7 @@ studiosNameImagesImageTypeGetFormatListFromJson( .toList(); } -List? -studiosNameImagesImageTypeGetFormatNullableListFromJson( +List? studiosNameImagesImageTypeGetFormatNullableListFromJson( List? studiosNameImagesImageTypeGetFormat, [ List? defaultValue, ]) { @@ -69417,21 +65553,18 @@ studiosNameImagesImageTypeGetFormatNullableListFromJson( } String? studiosNameImagesImageTypeHeadImageTypeNullableToJson( - enums.StudiosNameImagesImageTypeHeadImageType? - studiosNameImagesImageTypeHeadImageType, + enums.StudiosNameImagesImageTypeHeadImageType? studiosNameImagesImageTypeHeadImageType, ) { return studiosNameImagesImageTypeHeadImageType?.value; } String? studiosNameImagesImageTypeHeadImageTypeToJson( - enums.StudiosNameImagesImageTypeHeadImageType - studiosNameImagesImageTypeHeadImageType, + enums.StudiosNameImagesImageTypeHeadImageType studiosNameImagesImageTypeHeadImageType, ) { return studiosNameImagesImageTypeHeadImageType.value; } -enums.StudiosNameImagesImageTypeHeadImageType -studiosNameImagesImageTypeHeadImageTypeFromJson( +enums.StudiosNameImagesImageTypeHeadImageType studiosNameImagesImageTypeHeadImageTypeFromJson( Object? studiosNameImagesImageTypeHeadImageType, [ enums.StudiosNameImagesImageTypeHeadImageType? defaultValue, ]) { @@ -69442,8 +65575,7 @@ studiosNameImagesImageTypeHeadImageTypeFromJson( enums.StudiosNameImagesImageTypeHeadImageType.swaggerGeneratedUnknown; } -enums.StudiosNameImagesImageTypeHeadImageType? -studiosNameImagesImageTypeHeadImageTypeNullableFromJson( +enums.StudiosNameImagesImageTypeHeadImageType? studiosNameImagesImageTypeHeadImageTypeNullableFromJson( Object? studiosNameImagesImageTypeHeadImageType, [ enums.StudiosNameImagesImageTypeHeadImageType? defaultValue, ]) { @@ -69457,18 +65589,13 @@ studiosNameImagesImageTypeHeadImageTypeNullableFromJson( } String studiosNameImagesImageTypeHeadImageTypeExplodedListToJson( - List? - studiosNameImagesImageTypeHeadImageType, + List? studiosNameImagesImageTypeHeadImageType, ) { - return studiosNameImagesImageTypeHeadImageType - ?.map((e) => e.value!) - .join(',') ?? - ''; + return studiosNameImagesImageTypeHeadImageType?.map((e) => e.value!).join(',') ?? ''; } List studiosNameImagesImageTypeHeadImageTypeListToJson( - List? - studiosNameImagesImageTypeHeadImageType, + List? studiosNameImagesImageTypeHeadImageType, ) { if (studiosNameImagesImageTypeHeadImageType == null) { return []; @@ -69477,8 +65604,7 @@ List studiosNameImagesImageTypeHeadImageTypeListToJson( return studiosNameImagesImageTypeHeadImageType.map((e) => e.value!).toList(); } -List -studiosNameImagesImageTypeHeadImageTypeListFromJson( +List studiosNameImagesImageTypeHeadImageTypeListFromJson( List? studiosNameImagesImageTypeHeadImageType, [ List? defaultValue, ]) { @@ -69491,8 +65617,7 @@ studiosNameImagesImageTypeHeadImageTypeListFromJson( .toList(); } -List? -studiosNameImagesImageTypeHeadImageTypeNullableListFromJson( +List? studiosNameImagesImageTypeHeadImageTypeNullableListFromJson( List? studiosNameImagesImageTypeHeadImageType, [ List? defaultValue, ]) { @@ -69506,21 +65631,18 @@ studiosNameImagesImageTypeHeadImageTypeNullableListFromJson( } String? studiosNameImagesImageTypeHeadFormatNullableToJson( - enums.StudiosNameImagesImageTypeHeadFormat? - studiosNameImagesImageTypeHeadFormat, + enums.StudiosNameImagesImageTypeHeadFormat? studiosNameImagesImageTypeHeadFormat, ) { return studiosNameImagesImageTypeHeadFormat?.value; } String? studiosNameImagesImageTypeHeadFormatToJson( - enums.StudiosNameImagesImageTypeHeadFormat - studiosNameImagesImageTypeHeadFormat, + enums.StudiosNameImagesImageTypeHeadFormat studiosNameImagesImageTypeHeadFormat, ) { return studiosNameImagesImageTypeHeadFormat.value; } -enums.StudiosNameImagesImageTypeHeadFormat -studiosNameImagesImageTypeHeadFormatFromJson( +enums.StudiosNameImagesImageTypeHeadFormat studiosNameImagesImageTypeHeadFormatFromJson( Object? studiosNameImagesImageTypeHeadFormat, [ enums.StudiosNameImagesImageTypeHeadFormat? defaultValue, ]) { @@ -69531,8 +65653,7 @@ studiosNameImagesImageTypeHeadFormatFromJson( enums.StudiosNameImagesImageTypeHeadFormat.swaggerGeneratedUnknown; } -enums.StudiosNameImagesImageTypeHeadFormat? -studiosNameImagesImageTypeHeadFormatNullableFromJson( +enums.StudiosNameImagesImageTypeHeadFormat? studiosNameImagesImageTypeHeadFormatNullableFromJson( Object? studiosNameImagesImageTypeHeadFormat, [ enums.StudiosNameImagesImageTypeHeadFormat? defaultValue, ]) { @@ -69546,16 +65667,13 @@ studiosNameImagesImageTypeHeadFormatNullableFromJson( } String studiosNameImagesImageTypeHeadFormatExplodedListToJson( - List? - studiosNameImagesImageTypeHeadFormat, + List? studiosNameImagesImageTypeHeadFormat, ) { - return studiosNameImagesImageTypeHeadFormat?.map((e) => e.value!).join(',') ?? - ''; + return studiosNameImagesImageTypeHeadFormat?.map((e) => e.value!).join(',') ?? ''; } List studiosNameImagesImageTypeHeadFormatListToJson( - List? - studiosNameImagesImageTypeHeadFormat, + List? studiosNameImagesImageTypeHeadFormat, ) { if (studiosNameImagesImageTypeHeadFormat == null) { return []; @@ -69564,8 +65682,7 @@ List studiosNameImagesImageTypeHeadFormatListToJson( return studiosNameImagesImageTypeHeadFormat.map((e) => e.value!).toList(); } -List -studiosNameImagesImageTypeHeadFormatListFromJson( +List studiosNameImagesImageTypeHeadFormatListFromJson( List? studiosNameImagesImageTypeHeadFormat, [ List? defaultValue, ]) { @@ -69578,8 +65695,7 @@ studiosNameImagesImageTypeHeadFormatListFromJson( .toList(); } -List? -studiosNameImagesImageTypeHeadFormatNullableListFromJson( +List? studiosNameImagesImageTypeHeadFormatNullableListFromJson( List? studiosNameImagesImageTypeHeadFormat, [ List? defaultValue, ]) { @@ -69593,74 +65709,60 @@ studiosNameImagesImageTypeHeadFormatNullableListFromJson( } String? studiosNameImagesImageTypeImageIndexGetImageTypeNullableToJson( - enums.StudiosNameImagesImageTypeImageIndexGetImageType? - studiosNameImagesImageTypeImageIndexGetImageType, + enums.StudiosNameImagesImageTypeImageIndexGetImageType? studiosNameImagesImageTypeImageIndexGetImageType, ) { return studiosNameImagesImageTypeImageIndexGetImageType?.value; } String? studiosNameImagesImageTypeImageIndexGetImageTypeToJson( - enums.StudiosNameImagesImageTypeImageIndexGetImageType - studiosNameImagesImageTypeImageIndexGetImageType, + enums.StudiosNameImagesImageTypeImageIndexGetImageType studiosNameImagesImageTypeImageIndexGetImageType, ) { return studiosNameImagesImageTypeImageIndexGetImageType.value; } -enums.StudiosNameImagesImageTypeImageIndexGetImageType -studiosNameImagesImageTypeImageIndexGetImageTypeFromJson( +enums.StudiosNameImagesImageTypeImageIndexGetImageType studiosNameImagesImageTypeImageIndexGetImageTypeFromJson( Object? studiosNameImagesImageTypeImageIndexGetImageType, [ enums.StudiosNameImagesImageTypeImageIndexGetImageType? defaultValue, ]) { - return enums.StudiosNameImagesImageTypeImageIndexGetImageType.values - .firstWhereOrNull( - (e) => e.value == studiosNameImagesImageTypeImageIndexGetImageType, - ) ?? + return enums.StudiosNameImagesImageTypeImageIndexGetImageType.values.firstWhereOrNull( + (e) => e.value == studiosNameImagesImageTypeImageIndexGetImageType, + ) ?? defaultValue ?? - enums - .StudiosNameImagesImageTypeImageIndexGetImageType - .swaggerGeneratedUnknown; + enums.StudiosNameImagesImageTypeImageIndexGetImageType.swaggerGeneratedUnknown; } enums.StudiosNameImagesImageTypeImageIndexGetImageType? -studiosNameImagesImageTypeImageIndexGetImageTypeNullableFromJson( + studiosNameImagesImageTypeImageIndexGetImageTypeNullableFromJson( Object? studiosNameImagesImageTypeImageIndexGetImageType, [ enums.StudiosNameImagesImageTypeImageIndexGetImageType? defaultValue, ]) { if (studiosNameImagesImageTypeImageIndexGetImageType == null) { return null; } - return enums.StudiosNameImagesImageTypeImageIndexGetImageType.values - .firstWhereOrNull( - (e) => e.value == studiosNameImagesImageTypeImageIndexGetImageType, - ) ?? + return enums.StudiosNameImagesImageTypeImageIndexGetImageType.values.firstWhereOrNull( + (e) => e.value == studiosNameImagesImageTypeImageIndexGetImageType, + ) ?? defaultValue; } String studiosNameImagesImageTypeImageIndexGetImageTypeExplodedListToJson( - List? - studiosNameImagesImageTypeImageIndexGetImageType, + List? studiosNameImagesImageTypeImageIndexGetImageType, ) { - return studiosNameImagesImageTypeImageIndexGetImageType - ?.map((e) => e.value!) - .join(',') ?? - ''; + return studiosNameImagesImageTypeImageIndexGetImageType?.map((e) => e.value!).join(',') ?? ''; } List studiosNameImagesImageTypeImageIndexGetImageTypeListToJson( - List? - studiosNameImagesImageTypeImageIndexGetImageType, + List? studiosNameImagesImageTypeImageIndexGetImageType, ) { if (studiosNameImagesImageTypeImageIndexGetImageType == null) { return []; } - return studiosNameImagesImageTypeImageIndexGetImageType - .map((e) => e.value!) - .toList(); + return studiosNameImagesImageTypeImageIndexGetImageType.map((e) => e.value!).toList(); } List -studiosNameImagesImageTypeImageIndexGetImageTypeListFromJson( + studiosNameImagesImageTypeImageIndexGetImageTypeListFromJson( List? studiosNameImagesImageTypeImageIndexGetImageType, [ List? defaultValue, ]) { @@ -69678,7 +65780,7 @@ studiosNameImagesImageTypeImageIndexGetImageTypeListFromJson( } List? -studiosNameImagesImageTypeImageIndexGetImageTypeNullableListFromJson( + studiosNameImagesImageTypeImageIndexGetImageTypeNullableListFromJson( List? studiosNameImagesImageTypeImageIndexGetImageType, [ List? defaultValue, ]) { @@ -69696,74 +65798,58 @@ studiosNameImagesImageTypeImageIndexGetImageTypeNullableListFromJson( } String? studiosNameImagesImageTypeImageIndexGetFormatNullableToJson( - enums.StudiosNameImagesImageTypeImageIndexGetFormat? - studiosNameImagesImageTypeImageIndexGetFormat, + enums.StudiosNameImagesImageTypeImageIndexGetFormat? studiosNameImagesImageTypeImageIndexGetFormat, ) { return studiosNameImagesImageTypeImageIndexGetFormat?.value; } String? studiosNameImagesImageTypeImageIndexGetFormatToJson( - enums.StudiosNameImagesImageTypeImageIndexGetFormat - studiosNameImagesImageTypeImageIndexGetFormat, + enums.StudiosNameImagesImageTypeImageIndexGetFormat studiosNameImagesImageTypeImageIndexGetFormat, ) { return studiosNameImagesImageTypeImageIndexGetFormat.value; } -enums.StudiosNameImagesImageTypeImageIndexGetFormat -studiosNameImagesImageTypeImageIndexGetFormatFromJson( +enums.StudiosNameImagesImageTypeImageIndexGetFormat studiosNameImagesImageTypeImageIndexGetFormatFromJson( Object? studiosNameImagesImageTypeImageIndexGetFormat, [ enums.StudiosNameImagesImageTypeImageIndexGetFormat? defaultValue, ]) { - return enums.StudiosNameImagesImageTypeImageIndexGetFormat.values - .firstWhereOrNull( - (e) => e.value == studiosNameImagesImageTypeImageIndexGetFormat, - ) ?? + return enums.StudiosNameImagesImageTypeImageIndexGetFormat.values.firstWhereOrNull( + (e) => e.value == studiosNameImagesImageTypeImageIndexGetFormat, + ) ?? defaultValue ?? - enums - .StudiosNameImagesImageTypeImageIndexGetFormat - .swaggerGeneratedUnknown; + enums.StudiosNameImagesImageTypeImageIndexGetFormat.swaggerGeneratedUnknown; } -enums.StudiosNameImagesImageTypeImageIndexGetFormat? -studiosNameImagesImageTypeImageIndexGetFormatNullableFromJson( +enums.StudiosNameImagesImageTypeImageIndexGetFormat? studiosNameImagesImageTypeImageIndexGetFormatNullableFromJson( Object? studiosNameImagesImageTypeImageIndexGetFormat, [ enums.StudiosNameImagesImageTypeImageIndexGetFormat? defaultValue, ]) { if (studiosNameImagesImageTypeImageIndexGetFormat == null) { return null; } - return enums.StudiosNameImagesImageTypeImageIndexGetFormat.values - .firstWhereOrNull( - (e) => e.value == studiosNameImagesImageTypeImageIndexGetFormat, - ) ?? + return enums.StudiosNameImagesImageTypeImageIndexGetFormat.values.firstWhereOrNull( + (e) => e.value == studiosNameImagesImageTypeImageIndexGetFormat, + ) ?? defaultValue; } String studiosNameImagesImageTypeImageIndexGetFormatExplodedListToJson( - List? - studiosNameImagesImageTypeImageIndexGetFormat, + List? studiosNameImagesImageTypeImageIndexGetFormat, ) { - return studiosNameImagesImageTypeImageIndexGetFormat - ?.map((e) => e.value!) - .join(',') ?? - ''; + return studiosNameImagesImageTypeImageIndexGetFormat?.map((e) => e.value!).join(',') ?? ''; } List studiosNameImagesImageTypeImageIndexGetFormatListToJson( - List? - studiosNameImagesImageTypeImageIndexGetFormat, + List? studiosNameImagesImageTypeImageIndexGetFormat, ) { if (studiosNameImagesImageTypeImageIndexGetFormat == null) { return []; } - return studiosNameImagesImageTypeImageIndexGetFormat - .map((e) => e.value!) - .toList(); + return studiosNameImagesImageTypeImageIndexGetFormat.map((e) => e.value!).toList(); } -List -studiosNameImagesImageTypeImageIndexGetFormatListFromJson( +List studiosNameImagesImageTypeImageIndexGetFormatListFromJson( List? studiosNameImagesImageTypeImageIndexGetFormat, [ List? defaultValue, ]) { @@ -69773,14 +65859,13 @@ studiosNameImagesImageTypeImageIndexGetFormatListFromJson( return studiosNameImagesImageTypeImageIndexGetFormat .map( - (e) => - studiosNameImagesImageTypeImageIndexGetFormatFromJson(e.toString()), + (e) => studiosNameImagesImageTypeImageIndexGetFormatFromJson(e.toString()), ) .toList(); } List? -studiosNameImagesImageTypeImageIndexGetFormatNullableListFromJson( + studiosNameImagesImageTypeImageIndexGetFormatNullableListFromJson( List? studiosNameImagesImageTypeImageIndexGetFormat, [ List? defaultValue, ]) { @@ -69790,81 +65875,66 @@ studiosNameImagesImageTypeImageIndexGetFormatNullableListFromJson( return studiosNameImagesImageTypeImageIndexGetFormat .map( - (e) => - studiosNameImagesImageTypeImageIndexGetFormatFromJson(e.toString()), + (e) => studiosNameImagesImageTypeImageIndexGetFormatFromJson(e.toString()), ) .toList(); } String? studiosNameImagesImageTypeImageIndexHeadImageTypeNullableToJson( - enums.StudiosNameImagesImageTypeImageIndexHeadImageType? - studiosNameImagesImageTypeImageIndexHeadImageType, + enums.StudiosNameImagesImageTypeImageIndexHeadImageType? studiosNameImagesImageTypeImageIndexHeadImageType, ) { return studiosNameImagesImageTypeImageIndexHeadImageType?.value; } String? studiosNameImagesImageTypeImageIndexHeadImageTypeToJson( - enums.StudiosNameImagesImageTypeImageIndexHeadImageType - studiosNameImagesImageTypeImageIndexHeadImageType, + enums.StudiosNameImagesImageTypeImageIndexHeadImageType studiosNameImagesImageTypeImageIndexHeadImageType, ) { return studiosNameImagesImageTypeImageIndexHeadImageType.value; } -enums.StudiosNameImagesImageTypeImageIndexHeadImageType -studiosNameImagesImageTypeImageIndexHeadImageTypeFromJson( +enums.StudiosNameImagesImageTypeImageIndexHeadImageType studiosNameImagesImageTypeImageIndexHeadImageTypeFromJson( Object? studiosNameImagesImageTypeImageIndexHeadImageType, [ enums.StudiosNameImagesImageTypeImageIndexHeadImageType? defaultValue, ]) { - return enums.StudiosNameImagesImageTypeImageIndexHeadImageType.values - .firstWhereOrNull( - (e) => e.value == studiosNameImagesImageTypeImageIndexHeadImageType, - ) ?? + return enums.StudiosNameImagesImageTypeImageIndexHeadImageType.values.firstWhereOrNull( + (e) => e.value == studiosNameImagesImageTypeImageIndexHeadImageType, + ) ?? defaultValue ?? - enums - .StudiosNameImagesImageTypeImageIndexHeadImageType - .swaggerGeneratedUnknown; + enums.StudiosNameImagesImageTypeImageIndexHeadImageType.swaggerGeneratedUnknown; } enums.StudiosNameImagesImageTypeImageIndexHeadImageType? -studiosNameImagesImageTypeImageIndexHeadImageTypeNullableFromJson( + studiosNameImagesImageTypeImageIndexHeadImageTypeNullableFromJson( Object? studiosNameImagesImageTypeImageIndexHeadImageType, [ enums.StudiosNameImagesImageTypeImageIndexHeadImageType? defaultValue, ]) { if (studiosNameImagesImageTypeImageIndexHeadImageType == null) { return null; } - return enums.StudiosNameImagesImageTypeImageIndexHeadImageType.values - .firstWhereOrNull( - (e) => e.value == studiosNameImagesImageTypeImageIndexHeadImageType, - ) ?? + return enums.StudiosNameImagesImageTypeImageIndexHeadImageType.values.firstWhereOrNull( + (e) => e.value == studiosNameImagesImageTypeImageIndexHeadImageType, + ) ?? defaultValue; } String studiosNameImagesImageTypeImageIndexHeadImageTypeExplodedListToJson( - List? - studiosNameImagesImageTypeImageIndexHeadImageType, + List? studiosNameImagesImageTypeImageIndexHeadImageType, ) { - return studiosNameImagesImageTypeImageIndexHeadImageType - ?.map((e) => e.value!) - .join(',') ?? - ''; + return studiosNameImagesImageTypeImageIndexHeadImageType?.map((e) => e.value!).join(',') ?? ''; } List studiosNameImagesImageTypeImageIndexHeadImageTypeListToJson( - List? - studiosNameImagesImageTypeImageIndexHeadImageType, + List? studiosNameImagesImageTypeImageIndexHeadImageType, ) { if (studiosNameImagesImageTypeImageIndexHeadImageType == null) { return []; } - return studiosNameImagesImageTypeImageIndexHeadImageType - .map((e) => e.value!) - .toList(); + return studiosNameImagesImageTypeImageIndexHeadImageType.map((e) => e.value!).toList(); } List -studiosNameImagesImageTypeImageIndexHeadImageTypeListFromJson( + studiosNameImagesImageTypeImageIndexHeadImageTypeListFromJson( List? studiosNameImagesImageTypeImageIndexHeadImageType, [ List? defaultValue, ]) { @@ -69882,7 +65952,7 @@ studiosNameImagesImageTypeImageIndexHeadImageTypeListFromJson( } List? -studiosNameImagesImageTypeImageIndexHeadImageTypeNullableListFromJson( + studiosNameImagesImageTypeImageIndexHeadImageTypeNullableListFromJson( List? studiosNameImagesImageTypeImageIndexHeadImageType, [ List? defaultValue, ]) { @@ -69900,74 +65970,58 @@ studiosNameImagesImageTypeImageIndexHeadImageTypeNullableListFromJson( } String? studiosNameImagesImageTypeImageIndexHeadFormatNullableToJson( - enums.StudiosNameImagesImageTypeImageIndexHeadFormat? - studiosNameImagesImageTypeImageIndexHeadFormat, + enums.StudiosNameImagesImageTypeImageIndexHeadFormat? studiosNameImagesImageTypeImageIndexHeadFormat, ) { return studiosNameImagesImageTypeImageIndexHeadFormat?.value; } String? studiosNameImagesImageTypeImageIndexHeadFormatToJson( - enums.StudiosNameImagesImageTypeImageIndexHeadFormat - studiosNameImagesImageTypeImageIndexHeadFormat, + enums.StudiosNameImagesImageTypeImageIndexHeadFormat studiosNameImagesImageTypeImageIndexHeadFormat, ) { return studiosNameImagesImageTypeImageIndexHeadFormat.value; } -enums.StudiosNameImagesImageTypeImageIndexHeadFormat -studiosNameImagesImageTypeImageIndexHeadFormatFromJson( +enums.StudiosNameImagesImageTypeImageIndexHeadFormat studiosNameImagesImageTypeImageIndexHeadFormatFromJson( Object? studiosNameImagesImageTypeImageIndexHeadFormat, [ enums.StudiosNameImagesImageTypeImageIndexHeadFormat? defaultValue, ]) { - return enums.StudiosNameImagesImageTypeImageIndexHeadFormat.values - .firstWhereOrNull( - (e) => e.value == studiosNameImagesImageTypeImageIndexHeadFormat, - ) ?? + return enums.StudiosNameImagesImageTypeImageIndexHeadFormat.values.firstWhereOrNull( + (e) => e.value == studiosNameImagesImageTypeImageIndexHeadFormat, + ) ?? defaultValue ?? - enums - .StudiosNameImagesImageTypeImageIndexHeadFormat - .swaggerGeneratedUnknown; + enums.StudiosNameImagesImageTypeImageIndexHeadFormat.swaggerGeneratedUnknown; } -enums.StudiosNameImagesImageTypeImageIndexHeadFormat? -studiosNameImagesImageTypeImageIndexHeadFormatNullableFromJson( +enums.StudiosNameImagesImageTypeImageIndexHeadFormat? studiosNameImagesImageTypeImageIndexHeadFormatNullableFromJson( Object? studiosNameImagesImageTypeImageIndexHeadFormat, [ enums.StudiosNameImagesImageTypeImageIndexHeadFormat? defaultValue, ]) { if (studiosNameImagesImageTypeImageIndexHeadFormat == null) { return null; } - return enums.StudiosNameImagesImageTypeImageIndexHeadFormat.values - .firstWhereOrNull( - (e) => e.value == studiosNameImagesImageTypeImageIndexHeadFormat, - ) ?? + return enums.StudiosNameImagesImageTypeImageIndexHeadFormat.values.firstWhereOrNull( + (e) => e.value == studiosNameImagesImageTypeImageIndexHeadFormat, + ) ?? defaultValue; } String studiosNameImagesImageTypeImageIndexHeadFormatExplodedListToJson( - List? - studiosNameImagesImageTypeImageIndexHeadFormat, + List? studiosNameImagesImageTypeImageIndexHeadFormat, ) { - return studiosNameImagesImageTypeImageIndexHeadFormat - ?.map((e) => e.value!) - .join(',') ?? - ''; + return studiosNameImagesImageTypeImageIndexHeadFormat?.map((e) => e.value!).join(',') ?? ''; } List studiosNameImagesImageTypeImageIndexHeadFormatListToJson( - List? - studiosNameImagesImageTypeImageIndexHeadFormat, + List? studiosNameImagesImageTypeImageIndexHeadFormat, ) { if (studiosNameImagesImageTypeImageIndexHeadFormat == null) { return []; } - return studiosNameImagesImageTypeImageIndexHeadFormat - .map((e) => e.value!) - .toList(); + return studiosNameImagesImageTypeImageIndexHeadFormat.map((e) => e.value!).toList(); } -List -studiosNameImagesImageTypeImageIndexHeadFormatListFromJson( +List studiosNameImagesImageTypeImageIndexHeadFormatListFromJson( List? studiosNameImagesImageTypeImageIndexHeadFormat, [ List? defaultValue, ]) { @@ -69985,7 +66039,7 @@ studiosNameImagesImageTypeImageIndexHeadFormatListFromJson( } List? -studiosNameImagesImageTypeImageIndexHeadFormatNullableListFromJson( + studiosNameImagesImageTypeImageIndexHeadFormatNullableListFromJson( List? studiosNameImagesImageTypeImageIndexHeadFormat, [ List? defaultValue, ]) { @@ -70060,9 +66114,7 @@ List userImageGetFormatListFromJson( return defaultValue ?? []; } - return userImageGetFormat - .map((e) => userImageGetFormatFromJson(e.toString())) - .toList(); + return userImageGetFormat.map((e) => userImageGetFormatFromJson(e.toString())).toList(); } List? userImageGetFormatNullableListFromJson( @@ -70073,9 +66125,7 @@ List? userImageGetFormatNullableListFromJson( return defaultValue; } - return userImageGetFormat - .map((e) => userImageGetFormatFromJson(e.toString())) - .toList(); + return userImageGetFormat.map((e) => userImageGetFormatFromJson(e.toString())).toList(); } String? userImageHeadFormatNullableToJson( @@ -70138,9 +66188,7 @@ List userImageHeadFormatListFromJson( return defaultValue ?? []; } - return userImageHeadFormat - .map((e) => userImageHeadFormatFromJson(e.toString())) - .toList(); + return userImageHeadFormat.map((e) => userImageHeadFormatFromJson(e.toString())).toList(); } List? userImageHeadFormatNullableListFromJson( @@ -70151,78 +66199,62 @@ List? userImageHeadFormatNullableListFromJson( return defaultValue; } - return userImageHeadFormat - .map((e) => userImageHeadFormatFromJson(e.toString())) - .toList(); + return userImageHeadFormat.map((e) => userImageHeadFormatFromJson(e.toString())).toList(); } String? itemsItemIdRefreshPostMetadataRefreshModeNullableToJson( - enums.ItemsItemIdRefreshPostMetadataRefreshMode? - itemsItemIdRefreshPostMetadataRefreshMode, + enums.ItemsItemIdRefreshPostMetadataRefreshMode? itemsItemIdRefreshPostMetadataRefreshMode, ) { return itemsItemIdRefreshPostMetadataRefreshMode?.value; } String? itemsItemIdRefreshPostMetadataRefreshModeToJson( - enums.ItemsItemIdRefreshPostMetadataRefreshMode - itemsItemIdRefreshPostMetadataRefreshMode, + enums.ItemsItemIdRefreshPostMetadataRefreshMode itemsItemIdRefreshPostMetadataRefreshMode, ) { return itemsItemIdRefreshPostMetadataRefreshMode.value; } -enums.ItemsItemIdRefreshPostMetadataRefreshMode -itemsItemIdRefreshPostMetadataRefreshModeFromJson( +enums.ItemsItemIdRefreshPostMetadataRefreshMode itemsItemIdRefreshPostMetadataRefreshModeFromJson( Object? itemsItemIdRefreshPostMetadataRefreshMode, [ enums.ItemsItemIdRefreshPostMetadataRefreshMode? defaultValue, ]) { - return enums.ItemsItemIdRefreshPostMetadataRefreshMode.values - .firstWhereOrNull( - (e) => e.value == itemsItemIdRefreshPostMetadataRefreshMode, - ) ?? + return enums.ItemsItemIdRefreshPostMetadataRefreshMode.values.firstWhereOrNull( + (e) => e.value == itemsItemIdRefreshPostMetadataRefreshMode, + ) ?? defaultValue ?? enums.ItemsItemIdRefreshPostMetadataRefreshMode.swaggerGeneratedUnknown; } -enums.ItemsItemIdRefreshPostMetadataRefreshMode? -itemsItemIdRefreshPostMetadataRefreshModeNullableFromJson( +enums.ItemsItemIdRefreshPostMetadataRefreshMode? itemsItemIdRefreshPostMetadataRefreshModeNullableFromJson( Object? itemsItemIdRefreshPostMetadataRefreshMode, [ enums.ItemsItemIdRefreshPostMetadataRefreshMode? defaultValue, ]) { if (itemsItemIdRefreshPostMetadataRefreshMode == null) { return null; } - return enums.ItemsItemIdRefreshPostMetadataRefreshMode.values - .firstWhereOrNull( - (e) => e.value == itemsItemIdRefreshPostMetadataRefreshMode, - ) ?? + return enums.ItemsItemIdRefreshPostMetadataRefreshMode.values.firstWhereOrNull( + (e) => e.value == itemsItemIdRefreshPostMetadataRefreshMode, + ) ?? defaultValue; } String itemsItemIdRefreshPostMetadataRefreshModeExplodedListToJson( - List? - itemsItemIdRefreshPostMetadataRefreshMode, + List? itemsItemIdRefreshPostMetadataRefreshMode, ) { - return itemsItemIdRefreshPostMetadataRefreshMode - ?.map((e) => e.value!) - .join(',') ?? - ''; + return itemsItemIdRefreshPostMetadataRefreshMode?.map((e) => e.value!).join(',') ?? ''; } List itemsItemIdRefreshPostMetadataRefreshModeListToJson( - List? - itemsItemIdRefreshPostMetadataRefreshMode, + List? itemsItemIdRefreshPostMetadataRefreshMode, ) { if (itemsItemIdRefreshPostMetadataRefreshMode == null) { return []; } - return itemsItemIdRefreshPostMetadataRefreshMode - .map((e) => e.value!) - .toList(); + return itemsItemIdRefreshPostMetadataRefreshMode.map((e) => e.value!).toList(); } -List -itemsItemIdRefreshPostMetadataRefreshModeListFromJson( +List itemsItemIdRefreshPostMetadataRefreshModeListFromJson( List? itemsItemIdRefreshPostMetadataRefreshMode, [ List? defaultValue, ]) { @@ -70237,8 +66269,7 @@ itemsItemIdRefreshPostMetadataRefreshModeListFromJson( .toList(); } -List? -itemsItemIdRefreshPostMetadataRefreshModeNullableListFromJson( +List? itemsItemIdRefreshPostMetadataRefreshModeNullableListFromJson( List? itemsItemIdRefreshPostMetadataRefreshMode, [ List? defaultValue, ]) { @@ -70254,21 +66285,18 @@ itemsItemIdRefreshPostMetadataRefreshModeNullableListFromJson( } String? itemsItemIdRefreshPostImageRefreshModeNullableToJson( - enums.ItemsItemIdRefreshPostImageRefreshMode? - itemsItemIdRefreshPostImageRefreshMode, + enums.ItemsItemIdRefreshPostImageRefreshMode? itemsItemIdRefreshPostImageRefreshMode, ) { return itemsItemIdRefreshPostImageRefreshMode?.value; } String? itemsItemIdRefreshPostImageRefreshModeToJson( - enums.ItemsItemIdRefreshPostImageRefreshMode - itemsItemIdRefreshPostImageRefreshMode, + enums.ItemsItemIdRefreshPostImageRefreshMode itemsItemIdRefreshPostImageRefreshMode, ) { return itemsItemIdRefreshPostImageRefreshMode.value; } -enums.ItemsItemIdRefreshPostImageRefreshMode -itemsItemIdRefreshPostImageRefreshModeFromJson( +enums.ItemsItemIdRefreshPostImageRefreshMode itemsItemIdRefreshPostImageRefreshModeFromJson( Object? itemsItemIdRefreshPostImageRefreshMode, [ enums.ItemsItemIdRefreshPostImageRefreshMode? defaultValue, ]) { @@ -70279,8 +66307,7 @@ itemsItemIdRefreshPostImageRefreshModeFromJson( enums.ItemsItemIdRefreshPostImageRefreshMode.swaggerGeneratedUnknown; } -enums.ItemsItemIdRefreshPostImageRefreshMode? -itemsItemIdRefreshPostImageRefreshModeNullableFromJson( +enums.ItemsItemIdRefreshPostImageRefreshMode? itemsItemIdRefreshPostImageRefreshModeNullableFromJson( Object? itemsItemIdRefreshPostImageRefreshMode, [ enums.ItemsItemIdRefreshPostImageRefreshMode? defaultValue, ]) { @@ -70294,18 +66321,13 @@ itemsItemIdRefreshPostImageRefreshModeNullableFromJson( } String itemsItemIdRefreshPostImageRefreshModeExplodedListToJson( - List? - itemsItemIdRefreshPostImageRefreshMode, + List? itemsItemIdRefreshPostImageRefreshMode, ) { - return itemsItemIdRefreshPostImageRefreshMode - ?.map((e) => e.value!) - .join(',') ?? - ''; + return itemsItemIdRefreshPostImageRefreshMode?.map((e) => e.value!).join(',') ?? ''; } List itemsItemIdRefreshPostImageRefreshModeListToJson( - List? - itemsItemIdRefreshPostImageRefreshMode, + List? itemsItemIdRefreshPostImageRefreshMode, ) { if (itemsItemIdRefreshPostImageRefreshMode == null) { return []; @@ -70314,8 +66336,7 @@ List itemsItemIdRefreshPostImageRefreshModeListToJson( return itemsItemIdRefreshPostImageRefreshMode.map((e) => e.value!).toList(); } -List -itemsItemIdRefreshPostImageRefreshModeListFromJson( +List itemsItemIdRefreshPostImageRefreshModeListFromJson( List? itemsItemIdRefreshPostImageRefreshMode, [ List? defaultValue, ]) { @@ -70328,8 +66349,7 @@ itemsItemIdRefreshPostImageRefreshModeListFromJson( .toList(); } -List? -itemsItemIdRefreshPostImageRefreshModeNullableListFromJson( +List? itemsItemIdRefreshPostImageRefreshModeNullableListFromJson( List? itemsItemIdRefreshPostImageRefreshMode, [ List? defaultValue, ]) { @@ -70343,74 +66363,58 @@ itemsItemIdRefreshPostImageRefreshModeNullableListFromJson( } String? librariesAvailableOptionsGetLibraryContentTypeNullableToJson( - enums.LibrariesAvailableOptionsGetLibraryContentType? - librariesAvailableOptionsGetLibraryContentType, + enums.LibrariesAvailableOptionsGetLibraryContentType? librariesAvailableOptionsGetLibraryContentType, ) { return librariesAvailableOptionsGetLibraryContentType?.value; } String? librariesAvailableOptionsGetLibraryContentTypeToJson( - enums.LibrariesAvailableOptionsGetLibraryContentType - librariesAvailableOptionsGetLibraryContentType, + enums.LibrariesAvailableOptionsGetLibraryContentType librariesAvailableOptionsGetLibraryContentType, ) { return librariesAvailableOptionsGetLibraryContentType.value; } -enums.LibrariesAvailableOptionsGetLibraryContentType -librariesAvailableOptionsGetLibraryContentTypeFromJson( +enums.LibrariesAvailableOptionsGetLibraryContentType librariesAvailableOptionsGetLibraryContentTypeFromJson( Object? librariesAvailableOptionsGetLibraryContentType, [ enums.LibrariesAvailableOptionsGetLibraryContentType? defaultValue, ]) { - return enums.LibrariesAvailableOptionsGetLibraryContentType.values - .firstWhereOrNull( - (e) => e.value == librariesAvailableOptionsGetLibraryContentType, - ) ?? + return enums.LibrariesAvailableOptionsGetLibraryContentType.values.firstWhereOrNull( + (e) => e.value == librariesAvailableOptionsGetLibraryContentType, + ) ?? defaultValue ?? - enums - .LibrariesAvailableOptionsGetLibraryContentType - .swaggerGeneratedUnknown; + enums.LibrariesAvailableOptionsGetLibraryContentType.swaggerGeneratedUnknown; } -enums.LibrariesAvailableOptionsGetLibraryContentType? -librariesAvailableOptionsGetLibraryContentTypeNullableFromJson( +enums.LibrariesAvailableOptionsGetLibraryContentType? librariesAvailableOptionsGetLibraryContentTypeNullableFromJson( Object? librariesAvailableOptionsGetLibraryContentType, [ enums.LibrariesAvailableOptionsGetLibraryContentType? defaultValue, ]) { if (librariesAvailableOptionsGetLibraryContentType == null) { return null; } - return enums.LibrariesAvailableOptionsGetLibraryContentType.values - .firstWhereOrNull( - (e) => e.value == librariesAvailableOptionsGetLibraryContentType, - ) ?? + return enums.LibrariesAvailableOptionsGetLibraryContentType.values.firstWhereOrNull( + (e) => e.value == librariesAvailableOptionsGetLibraryContentType, + ) ?? defaultValue; } String librariesAvailableOptionsGetLibraryContentTypeExplodedListToJson( - List? - librariesAvailableOptionsGetLibraryContentType, + List? librariesAvailableOptionsGetLibraryContentType, ) { - return librariesAvailableOptionsGetLibraryContentType - ?.map((e) => e.value!) - .join(',') ?? - ''; + return librariesAvailableOptionsGetLibraryContentType?.map((e) => e.value!).join(',') ?? ''; } List librariesAvailableOptionsGetLibraryContentTypeListToJson( - List? - librariesAvailableOptionsGetLibraryContentType, + List? librariesAvailableOptionsGetLibraryContentType, ) { if (librariesAvailableOptionsGetLibraryContentType == null) { return []; } - return librariesAvailableOptionsGetLibraryContentType - .map((e) => e.value!) - .toList(); + return librariesAvailableOptionsGetLibraryContentType.map((e) => e.value!).toList(); } -List -librariesAvailableOptionsGetLibraryContentTypeListFromJson( +List librariesAvailableOptionsGetLibraryContentTypeListFromJson( List? librariesAvailableOptionsGetLibraryContentType, [ List? defaultValue, ]) { @@ -70428,7 +66432,7 @@ librariesAvailableOptionsGetLibraryContentTypeListFromJson( } List? -librariesAvailableOptionsGetLibraryContentTypeNullableListFromJson( + librariesAvailableOptionsGetLibraryContentTypeNullableListFromJson( List? librariesAvailableOptionsGetLibraryContentType, [ List? defaultValue, ]) { @@ -70446,21 +66450,18 @@ librariesAvailableOptionsGetLibraryContentTypeNullableListFromJson( } String? libraryVirtualFoldersPostCollectionTypeNullableToJson( - enums.LibraryVirtualFoldersPostCollectionType? - libraryVirtualFoldersPostCollectionType, + enums.LibraryVirtualFoldersPostCollectionType? libraryVirtualFoldersPostCollectionType, ) { return libraryVirtualFoldersPostCollectionType?.value; } String? libraryVirtualFoldersPostCollectionTypeToJson( - enums.LibraryVirtualFoldersPostCollectionType - libraryVirtualFoldersPostCollectionType, + enums.LibraryVirtualFoldersPostCollectionType libraryVirtualFoldersPostCollectionType, ) { return libraryVirtualFoldersPostCollectionType.value; } -enums.LibraryVirtualFoldersPostCollectionType -libraryVirtualFoldersPostCollectionTypeFromJson( +enums.LibraryVirtualFoldersPostCollectionType libraryVirtualFoldersPostCollectionTypeFromJson( Object? libraryVirtualFoldersPostCollectionType, [ enums.LibraryVirtualFoldersPostCollectionType? defaultValue, ]) { @@ -70471,8 +66472,7 @@ libraryVirtualFoldersPostCollectionTypeFromJson( enums.LibraryVirtualFoldersPostCollectionType.swaggerGeneratedUnknown; } -enums.LibraryVirtualFoldersPostCollectionType? -libraryVirtualFoldersPostCollectionTypeNullableFromJson( +enums.LibraryVirtualFoldersPostCollectionType? libraryVirtualFoldersPostCollectionTypeNullableFromJson( Object? libraryVirtualFoldersPostCollectionType, [ enums.LibraryVirtualFoldersPostCollectionType? defaultValue, ]) { @@ -70486,18 +66486,13 @@ libraryVirtualFoldersPostCollectionTypeNullableFromJson( } String libraryVirtualFoldersPostCollectionTypeExplodedListToJson( - List? - libraryVirtualFoldersPostCollectionType, + List? libraryVirtualFoldersPostCollectionType, ) { - return libraryVirtualFoldersPostCollectionType - ?.map((e) => e.value!) - .join(',') ?? - ''; + return libraryVirtualFoldersPostCollectionType?.map((e) => e.value!).join(',') ?? ''; } List libraryVirtualFoldersPostCollectionTypeListToJson( - List? - libraryVirtualFoldersPostCollectionType, + List? libraryVirtualFoldersPostCollectionType, ) { if (libraryVirtualFoldersPostCollectionType == null) { return []; @@ -70506,8 +66501,7 @@ List libraryVirtualFoldersPostCollectionTypeListToJson( return libraryVirtualFoldersPostCollectionType.map((e) => e.value!).toList(); } -List -libraryVirtualFoldersPostCollectionTypeListFromJson( +List libraryVirtualFoldersPostCollectionTypeListFromJson( List? libraryVirtualFoldersPostCollectionType, [ List? defaultValue, ]) { @@ -70520,8 +66514,7 @@ libraryVirtualFoldersPostCollectionTypeListFromJson( .toList(); } -List? -libraryVirtualFoldersPostCollectionTypeNullableListFromJson( +List? libraryVirtualFoldersPostCollectionTypeNullableListFromJson( List? libraryVirtualFoldersPostCollectionType, [ List? defaultValue, ]) { @@ -70594,9 +66587,7 @@ List liveTvChannelsGetTypeListFromJson( return defaultValue ?? []; } - return liveTvChannelsGetType - .map((e) => liveTvChannelsGetTypeFromJson(e.toString())) - .toList(); + return liveTvChannelsGetType.map((e) => liveTvChannelsGetTypeFromJson(e.toString())).toList(); } List? liveTvChannelsGetTypeNullableListFromJson( @@ -70607,9 +66598,7 @@ List? liveTvChannelsGetTypeNullableListFromJson( return defaultValue; } - return liveTvChannelsGetType - .map((e) => liveTvChannelsGetTypeFromJson(e.toString())) - .toList(); + return liveTvChannelsGetType.map((e) => liveTvChannelsGetTypeFromJson(e.toString())).toList(); } String? liveTvChannelsGetSortOrderNullableToJson( @@ -70672,13 +66661,10 @@ List liveTvChannelsGetSortOrderListFromJson( return defaultValue ?? []; } - return liveTvChannelsGetSortOrder - .map((e) => liveTvChannelsGetSortOrderFromJson(e.toString())) - .toList(); + return liveTvChannelsGetSortOrder.map((e) => liveTvChannelsGetSortOrderFromJson(e.toString())).toList(); } -List? -liveTvChannelsGetSortOrderNullableListFromJson( +List? liveTvChannelsGetSortOrderNullableListFromJson( List? liveTvChannelsGetSortOrder, [ List? defaultValue, ]) { @@ -70686,9 +66672,7 @@ liveTvChannelsGetSortOrderNullableListFromJson( return defaultValue; } - return liveTvChannelsGetSortOrder - .map((e) => liveTvChannelsGetSortOrderFromJson(e.toString())) - .toList(); + return liveTvChannelsGetSortOrder.map((e) => liveTvChannelsGetSortOrderFromJson(e.toString())).toList(); } String? liveTvRecordingsGetStatusNullableToJson( @@ -70751,13 +66735,10 @@ List liveTvRecordingsGetStatusListFromJson( return defaultValue ?? []; } - return liveTvRecordingsGetStatus - .map((e) => liveTvRecordingsGetStatusFromJson(e.toString())) - .toList(); + return liveTvRecordingsGetStatus.map((e) => liveTvRecordingsGetStatusFromJson(e.toString())).toList(); } -List? -liveTvRecordingsGetStatusNullableListFromJson( +List? liveTvRecordingsGetStatusNullableListFromJson( List? liveTvRecordingsGetStatus, [ List? defaultValue, ]) { @@ -70765,9 +66746,7 @@ liveTvRecordingsGetStatusNullableListFromJson( return defaultValue; } - return liveTvRecordingsGetStatus - .map((e) => liveTvRecordingsGetStatusFromJson(e.toString())) - .toList(); + return liveTvRecordingsGetStatus.map((e) => liveTvRecordingsGetStatusFromJson(e.toString())).toList(); } String? liveTvRecordingsSeriesGetStatusNullableToJson( @@ -70793,8 +66772,7 @@ enums.LiveTvRecordingsSeriesGetStatus liveTvRecordingsSeriesGetStatusFromJson( enums.LiveTvRecordingsSeriesGetStatus.swaggerGeneratedUnknown; } -enums.LiveTvRecordingsSeriesGetStatus? -liveTvRecordingsSeriesGetStatusNullableFromJson( +enums.LiveTvRecordingsSeriesGetStatus? liveTvRecordingsSeriesGetStatusNullableFromJson( Object? liveTvRecordingsSeriesGetStatus, [ enums.LiveTvRecordingsSeriesGetStatus? defaultValue, ]) { @@ -70823,8 +66801,7 @@ List liveTvRecordingsSeriesGetStatusListToJson( return liveTvRecordingsSeriesGetStatus.map((e) => e.value!).toList(); } -List -liveTvRecordingsSeriesGetStatusListFromJson( +List liveTvRecordingsSeriesGetStatusListFromJson( List? liveTvRecordingsSeriesGetStatus, [ List? defaultValue, ]) { @@ -70832,13 +66809,10 @@ liveTvRecordingsSeriesGetStatusListFromJson( return defaultValue ?? []; } - return liveTvRecordingsSeriesGetStatus - .map((e) => liveTvRecordingsSeriesGetStatusFromJson(e.toString())) - .toList(); + return liveTvRecordingsSeriesGetStatus.map((e) => liveTvRecordingsSeriesGetStatusFromJson(e.toString())).toList(); } -List? -liveTvRecordingsSeriesGetStatusNullableListFromJson( +List? liveTvRecordingsSeriesGetStatusNullableListFromJson( List? liveTvRecordingsSeriesGetStatus, [ List? defaultValue, ]) { @@ -70846,9 +66820,7 @@ liveTvRecordingsSeriesGetStatusNullableListFromJson( return defaultValue; } - return liveTvRecordingsSeriesGetStatus - .map((e) => liveTvRecordingsSeriesGetStatusFromJson(e.toString())) - .toList(); + return liveTvRecordingsSeriesGetStatus.map((e) => liveTvRecordingsSeriesGetStatusFromJson(e.toString())).toList(); } String? liveTvSeriesTimersGetSortOrderNullableToJson( @@ -70874,8 +66846,7 @@ enums.LiveTvSeriesTimersGetSortOrder liveTvSeriesTimersGetSortOrderFromJson( enums.LiveTvSeriesTimersGetSortOrder.swaggerGeneratedUnknown; } -enums.LiveTvSeriesTimersGetSortOrder? -liveTvSeriesTimersGetSortOrderNullableFromJson( +enums.LiveTvSeriesTimersGetSortOrder? liveTvSeriesTimersGetSortOrderNullableFromJson( Object? liveTvSeriesTimersGetSortOrder, [ enums.LiveTvSeriesTimersGetSortOrder? defaultValue, ]) { @@ -70904,8 +66875,7 @@ List liveTvSeriesTimersGetSortOrderListToJson( return liveTvSeriesTimersGetSortOrder.map((e) => e.value!).toList(); } -List -liveTvSeriesTimersGetSortOrderListFromJson( +List liveTvSeriesTimersGetSortOrderListFromJson( List? liveTvSeriesTimersGetSortOrder, [ List? defaultValue, ]) { @@ -70913,13 +66883,10 @@ liveTvSeriesTimersGetSortOrderListFromJson( return defaultValue ?? []; } - return liveTvSeriesTimersGetSortOrder - .map((e) => liveTvSeriesTimersGetSortOrderFromJson(e.toString())) - .toList(); + return liveTvSeriesTimersGetSortOrder.map((e) => liveTvSeriesTimersGetSortOrderFromJson(e.toString())).toList(); } -List? -liveTvSeriesTimersGetSortOrderNullableListFromJson( +List? liveTvSeriesTimersGetSortOrderNullableListFromJson( List? liveTvSeriesTimersGetSortOrder, [ List? defaultValue, ]) { @@ -70927,9 +66894,7 @@ liveTvSeriesTimersGetSortOrderNullableListFromJson( return defaultValue; } - return liveTvSeriesTimersGetSortOrder - .map((e) => liveTvSeriesTimersGetSortOrderFromJson(e.toString())) - .toList(); + return liveTvSeriesTimersGetSortOrder.map((e) => liveTvSeriesTimersGetSortOrderFromJson(e.toString())).toList(); } String? playlistsPostMediaTypeNullableToJson( @@ -70992,9 +66957,7 @@ List playlistsPostMediaTypeListFromJson( return defaultValue ?? []; } - return playlistsPostMediaType - .map((e) => playlistsPostMediaTypeFromJson(e.toString())) - .toList(); + return playlistsPostMediaType.map((e) => playlistsPostMediaTypeFromJson(e.toString())).toList(); } List? playlistsPostMediaTypeNullableListFromJson( @@ -71005,9 +66968,7 @@ List? playlistsPostMediaTypeNullableListFromJson( return defaultValue; } - return playlistsPostMediaType - .map((e) => playlistsPostMediaTypeFromJson(e.toString())) - .toList(); + return playlistsPostMediaType.map((e) => playlistsPostMediaTypeFromJson(e.toString())).toList(); } String? playingItemsItemIdPostPlayMethodNullableToJson( @@ -71033,8 +66994,7 @@ enums.PlayingItemsItemIdPostPlayMethod playingItemsItemIdPostPlayMethodFromJson( enums.PlayingItemsItemIdPostPlayMethod.swaggerGeneratedUnknown; } -enums.PlayingItemsItemIdPostPlayMethod? -playingItemsItemIdPostPlayMethodNullableFromJson( +enums.PlayingItemsItemIdPostPlayMethod? playingItemsItemIdPostPlayMethodNullableFromJson( Object? playingItemsItemIdPostPlayMethod, [ enums.PlayingItemsItemIdPostPlayMethod? defaultValue, ]) { @@ -71048,15 +67008,13 @@ playingItemsItemIdPostPlayMethodNullableFromJson( } String playingItemsItemIdPostPlayMethodExplodedListToJson( - List? - playingItemsItemIdPostPlayMethod, + List? playingItemsItemIdPostPlayMethod, ) { return playingItemsItemIdPostPlayMethod?.map((e) => e.value!).join(',') ?? ''; } List playingItemsItemIdPostPlayMethodListToJson( - List? - playingItemsItemIdPostPlayMethod, + List? playingItemsItemIdPostPlayMethod, ) { if (playingItemsItemIdPostPlayMethod == null) { return []; @@ -71065,8 +67023,7 @@ List playingItemsItemIdPostPlayMethodListToJson( return playingItemsItemIdPostPlayMethod.map((e) => e.value!).toList(); } -List -playingItemsItemIdPostPlayMethodListFromJson( +List playingItemsItemIdPostPlayMethodListFromJson( List? playingItemsItemIdPostPlayMethod, [ List? defaultValue, ]) { @@ -71074,13 +67031,10 @@ playingItemsItemIdPostPlayMethodListFromJson( return defaultValue ?? []; } - return playingItemsItemIdPostPlayMethod - .map((e) => playingItemsItemIdPostPlayMethodFromJson(e.toString())) - .toList(); + return playingItemsItemIdPostPlayMethod.map((e) => playingItemsItemIdPostPlayMethodFromJson(e.toString())).toList(); } -List? -playingItemsItemIdPostPlayMethodNullableListFromJson( +List? playingItemsItemIdPostPlayMethodNullableListFromJson( List? playingItemsItemIdPostPlayMethod, [ List? defaultValue, ]) { @@ -71088,27 +67042,22 @@ playingItemsItemIdPostPlayMethodNullableListFromJson( return defaultValue; } - return playingItemsItemIdPostPlayMethod - .map((e) => playingItemsItemIdPostPlayMethodFromJson(e.toString())) - .toList(); + return playingItemsItemIdPostPlayMethod.map((e) => playingItemsItemIdPostPlayMethodFromJson(e.toString())).toList(); } String? playingItemsItemIdProgressPostPlayMethodNullableToJson( - enums.PlayingItemsItemIdProgressPostPlayMethod? - playingItemsItemIdProgressPostPlayMethod, + enums.PlayingItemsItemIdProgressPostPlayMethod? playingItemsItemIdProgressPostPlayMethod, ) { return playingItemsItemIdProgressPostPlayMethod?.value; } String? playingItemsItemIdProgressPostPlayMethodToJson( - enums.PlayingItemsItemIdProgressPostPlayMethod - playingItemsItemIdProgressPostPlayMethod, + enums.PlayingItemsItemIdProgressPostPlayMethod playingItemsItemIdProgressPostPlayMethod, ) { return playingItemsItemIdProgressPostPlayMethod.value; } -enums.PlayingItemsItemIdProgressPostPlayMethod -playingItemsItemIdProgressPostPlayMethodFromJson( +enums.PlayingItemsItemIdProgressPostPlayMethod playingItemsItemIdProgressPostPlayMethodFromJson( Object? playingItemsItemIdProgressPostPlayMethod, [ enums.PlayingItemsItemIdProgressPostPlayMethod? defaultValue, ]) { @@ -71119,8 +67068,7 @@ playingItemsItemIdProgressPostPlayMethodFromJson( enums.PlayingItemsItemIdProgressPostPlayMethod.swaggerGeneratedUnknown; } -enums.PlayingItemsItemIdProgressPostPlayMethod? -playingItemsItemIdProgressPostPlayMethodNullableFromJson( +enums.PlayingItemsItemIdProgressPostPlayMethod? playingItemsItemIdProgressPostPlayMethodNullableFromJson( Object? playingItemsItemIdProgressPostPlayMethod, [ enums.PlayingItemsItemIdProgressPostPlayMethod? defaultValue, ]) { @@ -71134,18 +67082,13 @@ playingItemsItemIdProgressPostPlayMethodNullableFromJson( } String playingItemsItemIdProgressPostPlayMethodExplodedListToJson( - List? - playingItemsItemIdProgressPostPlayMethod, + List? playingItemsItemIdProgressPostPlayMethod, ) { - return playingItemsItemIdProgressPostPlayMethod - ?.map((e) => e.value!) - .join(',') ?? - ''; + return playingItemsItemIdProgressPostPlayMethod?.map((e) => e.value!).join(',') ?? ''; } List playingItemsItemIdProgressPostPlayMethodListToJson( - List? - playingItemsItemIdProgressPostPlayMethod, + List? playingItemsItemIdProgressPostPlayMethod, ) { if (playingItemsItemIdProgressPostPlayMethod == null) { return []; @@ -71154,8 +67097,7 @@ List playingItemsItemIdProgressPostPlayMethodListToJson( return playingItemsItemIdProgressPostPlayMethod.map((e) => e.value!).toList(); } -List -playingItemsItemIdProgressPostPlayMethodListFromJson( +List playingItemsItemIdProgressPostPlayMethodListFromJson( List? playingItemsItemIdProgressPostPlayMethod, [ List? defaultValue, ]) { @@ -71170,8 +67112,7 @@ playingItemsItemIdProgressPostPlayMethodListFromJson( .toList(); } -List? -playingItemsItemIdProgressPostPlayMethodNullableListFromJson( +List? playingItemsItemIdProgressPostPlayMethodNullableListFromJson( List? playingItemsItemIdProgressPostPlayMethod, [ List? defaultValue, ]) { @@ -71187,21 +67128,18 @@ playingItemsItemIdProgressPostPlayMethodNullableListFromJson( } String? playingItemsItemIdProgressPostRepeatModeNullableToJson( - enums.PlayingItemsItemIdProgressPostRepeatMode? - playingItemsItemIdProgressPostRepeatMode, + enums.PlayingItemsItemIdProgressPostRepeatMode? playingItemsItemIdProgressPostRepeatMode, ) { return playingItemsItemIdProgressPostRepeatMode?.value; } String? playingItemsItemIdProgressPostRepeatModeToJson( - enums.PlayingItemsItemIdProgressPostRepeatMode - playingItemsItemIdProgressPostRepeatMode, + enums.PlayingItemsItemIdProgressPostRepeatMode playingItemsItemIdProgressPostRepeatMode, ) { return playingItemsItemIdProgressPostRepeatMode.value; } -enums.PlayingItemsItemIdProgressPostRepeatMode -playingItemsItemIdProgressPostRepeatModeFromJson( +enums.PlayingItemsItemIdProgressPostRepeatMode playingItemsItemIdProgressPostRepeatModeFromJson( Object? playingItemsItemIdProgressPostRepeatMode, [ enums.PlayingItemsItemIdProgressPostRepeatMode? defaultValue, ]) { @@ -71212,8 +67150,7 @@ playingItemsItemIdProgressPostRepeatModeFromJson( enums.PlayingItemsItemIdProgressPostRepeatMode.swaggerGeneratedUnknown; } -enums.PlayingItemsItemIdProgressPostRepeatMode? -playingItemsItemIdProgressPostRepeatModeNullableFromJson( +enums.PlayingItemsItemIdProgressPostRepeatMode? playingItemsItemIdProgressPostRepeatModeNullableFromJson( Object? playingItemsItemIdProgressPostRepeatMode, [ enums.PlayingItemsItemIdProgressPostRepeatMode? defaultValue, ]) { @@ -71227,18 +67164,13 @@ playingItemsItemIdProgressPostRepeatModeNullableFromJson( } String playingItemsItemIdProgressPostRepeatModeExplodedListToJson( - List? - playingItemsItemIdProgressPostRepeatMode, + List? playingItemsItemIdProgressPostRepeatMode, ) { - return playingItemsItemIdProgressPostRepeatMode - ?.map((e) => e.value!) - .join(',') ?? - ''; + return playingItemsItemIdProgressPostRepeatMode?.map((e) => e.value!).join(',') ?? ''; } List playingItemsItemIdProgressPostRepeatModeListToJson( - List? - playingItemsItemIdProgressPostRepeatMode, + List? playingItemsItemIdProgressPostRepeatMode, ) { if (playingItemsItemIdProgressPostRepeatMode == null) { return []; @@ -71247,8 +67179,7 @@ List playingItemsItemIdProgressPostRepeatModeListToJson( return playingItemsItemIdProgressPostRepeatMode.map((e) => e.value!).toList(); } -List -playingItemsItemIdProgressPostRepeatModeListFromJson( +List playingItemsItemIdProgressPostRepeatModeListFromJson( List? playingItemsItemIdProgressPostRepeatMode, [ List? defaultValue, ]) { @@ -71263,8 +67194,7 @@ playingItemsItemIdProgressPostRepeatModeListFromJson( .toList(); } -List? -playingItemsItemIdProgressPostRepeatModeNullableListFromJson( +List? playingItemsItemIdProgressPostRepeatModeNullableListFromJson( List? playingItemsItemIdProgressPostRepeatMode, [ List? defaultValue, ]) { @@ -71302,8 +67232,7 @@ enums.ItemsItemIdRemoteImagesGetType itemsItemIdRemoteImagesGetTypeFromJson( enums.ItemsItemIdRemoteImagesGetType.swaggerGeneratedUnknown; } -enums.ItemsItemIdRemoteImagesGetType? -itemsItemIdRemoteImagesGetTypeNullableFromJson( +enums.ItemsItemIdRemoteImagesGetType? itemsItemIdRemoteImagesGetTypeNullableFromJson( Object? itemsItemIdRemoteImagesGetType, [ enums.ItemsItemIdRemoteImagesGetType? defaultValue, ]) { @@ -71332,8 +67261,7 @@ List itemsItemIdRemoteImagesGetTypeListToJson( return itemsItemIdRemoteImagesGetType.map((e) => e.value!).toList(); } -List -itemsItemIdRemoteImagesGetTypeListFromJson( +List itemsItemIdRemoteImagesGetTypeListFromJson( List? itemsItemIdRemoteImagesGetType, [ List? defaultValue, ]) { @@ -71341,13 +67269,10 @@ itemsItemIdRemoteImagesGetTypeListFromJson( return defaultValue ?? []; } - return itemsItemIdRemoteImagesGetType - .map((e) => itemsItemIdRemoteImagesGetTypeFromJson(e.toString())) - .toList(); + return itemsItemIdRemoteImagesGetType.map((e) => itemsItemIdRemoteImagesGetTypeFromJson(e.toString())).toList(); } -List? -itemsItemIdRemoteImagesGetTypeNullableListFromJson( +List? itemsItemIdRemoteImagesGetTypeNullableListFromJson( List? itemsItemIdRemoteImagesGetType, [ List? defaultValue, ]) { @@ -71355,27 +67280,22 @@ itemsItemIdRemoteImagesGetTypeNullableListFromJson( return defaultValue; } - return itemsItemIdRemoteImagesGetType - .map((e) => itemsItemIdRemoteImagesGetTypeFromJson(e.toString())) - .toList(); + return itemsItemIdRemoteImagesGetType.map((e) => itemsItemIdRemoteImagesGetTypeFromJson(e.toString())).toList(); } String? itemsItemIdRemoteImagesDownloadPostTypeNullableToJson( - enums.ItemsItemIdRemoteImagesDownloadPostType? - itemsItemIdRemoteImagesDownloadPostType, + enums.ItemsItemIdRemoteImagesDownloadPostType? itemsItemIdRemoteImagesDownloadPostType, ) { return itemsItemIdRemoteImagesDownloadPostType?.value; } String? itemsItemIdRemoteImagesDownloadPostTypeToJson( - enums.ItemsItemIdRemoteImagesDownloadPostType - itemsItemIdRemoteImagesDownloadPostType, + enums.ItemsItemIdRemoteImagesDownloadPostType itemsItemIdRemoteImagesDownloadPostType, ) { return itemsItemIdRemoteImagesDownloadPostType.value; } -enums.ItemsItemIdRemoteImagesDownloadPostType -itemsItemIdRemoteImagesDownloadPostTypeFromJson( +enums.ItemsItemIdRemoteImagesDownloadPostType itemsItemIdRemoteImagesDownloadPostTypeFromJson( Object? itemsItemIdRemoteImagesDownloadPostType, [ enums.ItemsItemIdRemoteImagesDownloadPostType? defaultValue, ]) { @@ -71386,8 +67306,7 @@ itemsItemIdRemoteImagesDownloadPostTypeFromJson( enums.ItemsItemIdRemoteImagesDownloadPostType.swaggerGeneratedUnknown; } -enums.ItemsItemIdRemoteImagesDownloadPostType? -itemsItemIdRemoteImagesDownloadPostTypeNullableFromJson( +enums.ItemsItemIdRemoteImagesDownloadPostType? itemsItemIdRemoteImagesDownloadPostTypeNullableFromJson( Object? itemsItemIdRemoteImagesDownloadPostType, [ enums.ItemsItemIdRemoteImagesDownloadPostType? defaultValue, ]) { @@ -71401,18 +67320,13 @@ itemsItemIdRemoteImagesDownloadPostTypeNullableFromJson( } String itemsItemIdRemoteImagesDownloadPostTypeExplodedListToJson( - List? - itemsItemIdRemoteImagesDownloadPostType, + List? itemsItemIdRemoteImagesDownloadPostType, ) { - return itemsItemIdRemoteImagesDownloadPostType - ?.map((e) => e.value!) - .join(',') ?? - ''; + return itemsItemIdRemoteImagesDownloadPostType?.map((e) => e.value!).join(',') ?? ''; } List itemsItemIdRemoteImagesDownloadPostTypeListToJson( - List? - itemsItemIdRemoteImagesDownloadPostType, + List? itemsItemIdRemoteImagesDownloadPostType, ) { if (itemsItemIdRemoteImagesDownloadPostType == null) { return []; @@ -71421,8 +67335,7 @@ List itemsItemIdRemoteImagesDownloadPostTypeListToJson( return itemsItemIdRemoteImagesDownloadPostType.map((e) => e.value!).toList(); } -List -itemsItemIdRemoteImagesDownloadPostTypeListFromJson( +List itemsItemIdRemoteImagesDownloadPostTypeListFromJson( List? itemsItemIdRemoteImagesDownloadPostType, [ List? defaultValue, ]) { @@ -71435,8 +67348,7 @@ itemsItemIdRemoteImagesDownloadPostTypeListFromJson( .toList(); } -List? -itemsItemIdRemoteImagesDownloadPostTypeNullableListFromJson( +List? itemsItemIdRemoteImagesDownloadPostTypeNullableListFromJson( List? itemsItemIdRemoteImagesDownloadPostType, [ List? defaultValue, ]) { @@ -71450,72 +67362,58 @@ itemsItemIdRemoteImagesDownloadPostTypeNullableListFromJson( } String? sessionsSessionIdCommandCommandPostCommandNullableToJson( - enums.SessionsSessionIdCommandCommandPostCommand? - sessionsSessionIdCommandCommandPostCommand, + enums.SessionsSessionIdCommandCommandPostCommand? sessionsSessionIdCommandCommandPostCommand, ) { return sessionsSessionIdCommandCommandPostCommand?.value; } String? sessionsSessionIdCommandCommandPostCommandToJson( - enums.SessionsSessionIdCommandCommandPostCommand - sessionsSessionIdCommandCommandPostCommand, + enums.SessionsSessionIdCommandCommandPostCommand sessionsSessionIdCommandCommandPostCommand, ) { return sessionsSessionIdCommandCommandPostCommand.value; } -enums.SessionsSessionIdCommandCommandPostCommand -sessionsSessionIdCommandCommandPostCommandFromJson( +enums.SessionsSessionIdCommandCommandPostCommand sessionsSessionIdCommandCommandPostCommandFromJson( Object? sessionsSessionIdCommandCommandPostCommand, [ enums.SessionsSessionIdCommandCommandPostCommand? defaultValue, ]) { - return enums.SessionsSessionIdCommandCommandPostCommand.values - .firstWhereOrNull( - (e) => e.value == sessionsSessionIdCommandCommandPostCommand, - ) ?? + return enums.SessionsSessionIdCommandCommandPostCommand.values.firstWhereOrNull( + (e) => e.value == sessionsSessionIdCommandCommandPostCommand, + ) ?? defaultValue ?? enums.SessionsSessionIdCommandCommandPostCommand.swaggerGeneratedUnknown; } -enums.SessionsSessionIdCommandCommandPostCommand? -sessionsSessionIdCommandCommandPostCommandNullableFromJson( +enums.SessionsSessionIdCommandCommandPostCommand? sessionsSessionIdCommandCommandPostCommandNullableFromJson( Object? sessionsSessionIdCommandCommandPostCommand, [ enums.SessionsSessionIdCommandCommandPostCommand? defaultValue, ]) { if (sessionsSessionIdCommandCommandPostCommand == null) { return null; } - return enums.SessionsSessionIdCommandCommandPostCommand.values - .firstWhereOrNull( - (e) => e.value == sessionsSessionIdCommandCommandPostCommand, - ) ?? + return enums.SessionsSessionIdCommandCommandPostCommand.values.firstWhereOrNull( + (e) => e.value == sessionsSessionIdCommandCommandPostCommand, + ) ?? defaultValue; } String sessionsSessionIdCommandCommandPostCommandExplodedListToJson( - List? - sessionsSessionIdCommandCommandPostCommand, + List? sessionsSessionIdCommandCommandPostCommand, ) { - return sessionsSessionIdCommandCommandPostCommand - ?.map((e) => e.value!) - .join(',') ?? - ''; + return sessionsSessionIdCommandCommandPostCommand?.map((e) => e.value!).join(',') ?? ''; } List sessionsSessionIdCommandCommandPostCommandListToJson( - List? - sessionsSessionIdCommandCommandPostCommand, + List? sessionsSessionIdCommandCommandPostCommand, ) { if (sessionsSessionIdCommandCommandPostCommand == null) { return []; } - return sessionsSessionIdCommandCommandPostCommand - .map((e) => e.value!) - .toList(); + return sessionsSessionIdCommandCommandPostCommand.map((e) => e.value!).toList(); } -List -sessionsSessionIdCommandCommandPostCommandListFromJson( +List sessionsSessionIdCommandCommandPostCommandListFromJson( List? sessionsSessionIdCommandCommandPostCommand, [ List? defaultValue, ]) { @@ -71530,8 +67428,7 @@ sessionsSessionIdCommandCommandPostCommandListFromJson( .toList(); } -List? -sessionsSessionIdCommandCommandPostCommandNullableListFromJson( +List? sessionsSessionIdCommandCommandPostCommandNullableListFromJson( List? sessionsSessionIdCommandCommandPostCommand, [ List? defaultValue, ]) { @@ -71547,21 +67444,18 @@ sessionsSessionIdCommandCommandPostCommandNullableListFromJson( } String? sessionsSessionIdPlayingPostPlayCommandNullableToJson( - enums.SessionsSessionIdPlayingPostPlayCommand? - sessionsSessionIdPlayingPostPlayCommand, + enums.SessionsSessionIdPlayingPostPlayCommand? sessionsSessionIdPlayingPostPlayCommand, ) { return sessionsSessionIdPlayingPostPlayCommand?.value; } String? sessionsSessionIdPlayingPostPlayCommandToJson( - enums.SessionsSessionIdPlayingPostPlayCommand - sessionsSessionIdPlayingPostPlayCommand, + enums.SessionsSessionIdPlayingPostPlayCommand sessionsSessionIdPlayingPostPlayCommand, ) { return sessionsSessionIdPlayingPostPlayCommand.value; } -enums.SessionsSessionIdPlayingPostPlayCommand -sessionsSessionIdPlayingPostPlayCommandFromJson( +enums.SessionsSessionIdPlayingPostPlayCommand sessionsSessionIdPlayingPostPlayCommandFromJson( Object? sessionsSessionIdPlayingPostPlayCommand, [ enums.SessionsSessionIdPlayingPostPlayCommand? defaultValue, ]) { @@ -71572,8 +67466,7 @@ sessionsSessionIdPlayingPostPlayCommandFromJson( enums.SessionsSessionIdPlayingPostPlayCommand.swaggerGeneratedUnknown; } -enums.SessionsSessionIdPlayingPostPlayCommand? -sessionsSessionIdPlayingPostPlayCommandNullableFromJson( +enums.SessionsSessionIdPlayingPostPlayCommand? sessionsSessionIdPlayingPostPlayCommandNullableFromJson( Object? sessionsSessionIdPlayingPostPlayCommand, [ enums.SessionsSessionIdPlayingPostPlayCommand? defaultValue, ]) { @@ -71587,18 +67480,13 @@ sessionsSessionIdPlayingPostPlayCommandNullableFromJson( } String sessionsSessionIdPlayingPostPlayCommandExplodedListToJson( - List? - sessionsSessionIdPlayingPostPlayCommand, + List? sessionsSessionIdPlayingPostPlayCommand, ) { - return sessionsSessionIdPlayingPostPlayCommand - ?.map((e) => e.value!) - .join(',') ?? - ''; + return sessionsSessionIdPlayingPostPlayCommand?.map((e) => e.value!).join(',') ?? ''; } List sessionsSessionIdPlayingPostPlayCommandListToJson( - List? - sessionsSessionIdPlayingPostPlayCommand, + List? sessionsSessionIdPlayingPostPlayCommand, ) { if (sessionsSessionIdPlayingPostPlayCommand == null) { return []; @@ -71607,8 +67495,7 @@ List sessionsSessionIdPlayingPostPlayCommandListToJson( return sessionsSessionIdPlayingPostPlayCommand.map((e) => e.value!).toList(); } -List -sessionsSessionIdPlayingPostPlayCommandListFromJson( +List sessionsSessionIdPlayingPostPlayCommandListFromJson( List? sessionsSessionIdPlayingPostPlayCommand, [ List? defaultValue, ]) { @@ -71621,8 +67508,7 @@ sessionsSessionIdPlayingPostPlayCommandListFromJson( .toList(); } -List? -sessionsSessionIdPlayingPostPlayCommandNullableListFromJson( +List? sessionsSessionIdPlayingPostPlayCommandNullableListFromJson( List? sessionsSessionIdPlayingPostPlayCommand, [ List? defaultValue, ]) { @@ -71636,72 +67522,58 @@ sessionsSessionIdPlayingPostPlayCommandNullableListFromJson( } String? sessionsSessionIdPlayingCommandPostCommandNullableToJson( - enums.SessionsSessionIdPlayingCommandPostCommand? - sessionsSessionIdPlayingCommandPostCommand, + enums.SessionsSessionIdPlayingCommandPostCommand? sessionsSessionIdPlayingCommandPostCommand, ) { return sessionsSessionIdPlayingCommandPostCommand?.value; } String? sessionsSessionIdPlayingCommandPostCommandToJson( - enums.SessionsSessionIdPlayingCommandPostCommand - sessionsSessionIdPlayingCommandPostCommand, + enums.SessionsSessionIdPlayingCommandPostCommand sessionsSessionIdPlayingCommandPostCommand, ) { return sessionsSessionIdPlayingCommandPostCommand.value; } -enums.SessionsSessionIdPlayingCommandPostCommand -sessionsSessionIdPlayingCommandPostCommandFromJson( +enums.SessionsSessionIdPlayingCommandPostCommand sessionsSessionIdPlayingCommandPostCommandFromJson( Object? sessionsSessionIdPlayingCommandPostCommand, [ enums.SessionsSessionIdPlayingCommandPostCommand? defaultValue, ]) { - return enums.SessionsSessionIdPlayingCommandPostCommand.values - .firstWhereOrNull( - (e) => e.value == sessionsSessionIdPlayingCommandPostCommand, - ) ?? + return enums.SessionsSessionIdPlayingCommandPostCommand.values.firstWhereOrNull( + (e) => e.value == sessionsSessionIdPlayingCommandPostCommand, + ) ?? defaultValue ?? enums.SessionsSessionIdPlayingCommandPostCommand.swaggerGeneratedUnknown; } -enums.SessionsSessionIdPlayingCommandPostCommand? -sessionsSessionIdPlayingCommandPostCommandNullableFromJson( +enums.SessionsSessionIdPlayingCommandPostCommand? sessionsSessionIdPlayingCommandPostCommandNullableFromJson( Object? sessionsSessionIdPlayingCommandPostCommand, [ enums.SessionsSessionIdPlayingCommandPostCommand? defaultValue, ]) { if (sessionsSessionIdPlayingCommandPostCommand == null) { return null; } - return enums.SessionsSessionIdPlayingCommandPostCommand.values - .firstWhereOrNull( - (e) => e.value == sessionsSessionIdPlayingCommandPostCommand, - ) ?? + return enums.SessionsSessionIdPlayingCommandPostCommand.values.firstWhereOrNull( + (e) => e.value == sessionsSessionIdPlayingCommandPostCommand, + ) ?? defaultValue; } String sessionsSessionIdPlayingCommandPostCommandExplodedListToJson( - List? - sessionsSessionIdPlayingCommandPostCommand, + List? sessionsSessionIdPlayingCommandPostCommand, ) { - return sessionsSessionIdPlayingCommandPostCommand - ?.map((e) => e.value!) - .join(',') ?? - ''; + return sessionsSessionIdPlayingCommandPostCommand?.map((e) => e.value!).join(',') ?? ''; } List sessionsSessionIdPlayingCommandPostCommandListToJson( - List? - sessionsSessionIdPlayingCommandPostCommand, + List? sessionsSessionIdPlayingCommandPostCommand, ) { if (sessionsSessionIdPlayingCommandPostCommand == null) { return []; } - return sessionsSessionIdPlayingCommandPostCommand - .map((e) => e.value!) - .toList(); + return sessionsSessionIdPlayingCommandPostCommand.map((e) => e.value!).toList(); } -List -sessionsSessionIdPlayingCommandPostCommandListFromJson( +List sessionsSessionIdPlayingCommandPostCommandListFromJson( List? sessionsSessionIdPlayingCommandPostCommand, [ List? defaultValue, ]) { @@ -71716,8 +67588,7 @@ sessionsSessionIdPlayingCommandPostCommandListFromJson( .toList(); } -List? -sessionsSessionIdPlayingCommandPostCommandNullableListFromJson( +List? sessionsSessionIdPlayingCommandPostCommandNullableListFromJson( List? sessionsSessionIdPlayingCommandPostCommand, [ List? defaultValue, ]) { @@ -71733,72 +67604,58 @@ sessionsSessionIdPlayingCommandPostCommandNullableListFromJson( } String? sessionsSessionIdSystemCommandPostCommandNullableToJson( - enums.SessionsSessionIdSystemCommandPostCommand? - sessionsSessionIdSystemCommandPostCommand, + enums.SessionsSessionIdSystemCommandPostCommand? sessionsSessionIdSystemCommandPostCommand, ) { return sessionsSessionIdSystemCommandPostCommand?.value; } String? sessionsSessionIdSystemCommandPostCommandToJson( - enums.SessionsSessionIdSystemCommandPostCommand - sessionsSessionIdSystemCommandPostCommand, + enums.SessionsSessionIdSystemCommandPostCommand sessionsSessionIdSystemCommandPostCommand, ) { return sessionsSessionIdSystemCommandPostCommand.value; } -enums.SessionsSessionIdSystemCommandPostCommand -sessionsSessionIdSystemCommandPostCommandFromJson( +enums.SessionsSessionIdSystemCommandPostCommand sessionsSessionIdSystemCommandPostCommandFromJson( Object? sessionsSessionIdSystemCommandPostCommand, [ enums.SessionsSessionIdSystemCommandPostCommand? defaultValue, ]) { - return enums.SessionsSessionIdSystemCommandPostCommand.values - .firstWhereOrNull( - (e) => e.value == sessionsSessionIdSystemCommandPostCommand, - ) ?? + return enums.SessionsSessionIdSystemCommandPostCommand.values.firstWhereOrNull( + (e) => e.value == sessionsSessionIdSystemCommandPostCommand, + ) ?? defaultValue ?? enums.SessionsSessionIdSystemCommandPostCommand.swaggerGeneratedUnknown; } -enums.SessionsSessionIdSystemCommandPostCommand? -sessionsSessionIdSystemCommandPostCommandNullableFromJson( +enums.SessionsSessionIdSystemCommandPostCommand? sessionsSessionIdSystemCommandPostCommandNullableFromJson( Object? sessionsSessionIdSystemCommandPostCommand, [ enums.SessionsSessionIdSystemCommandPostCommand? defaultValue, ]) { if (sessionsSessionIdSystemCommandPostCommand == null) { return null; } - return enums.SessionsSessionIdSystemCommandPostCommand.values - .firstWhereOrNull( - (e) => e.value == sessionsSessionIdSystemCommandPostCommand, - ) ?? + return enums.SessionsSessionIdSystemCommandPostCommand.values.firstWhereOrNull( + (e) => e.value == sessionsSessionIdSystemCommandPostCommand, + ) ?? defaultValue; } String sessionsSessionIdSystemCommandPostCommandExplodedListToJson( - List? - sessionsSessionIdSystemCommandPostCommand, + List? sessionsSessionIdSystemCommandPostCommand, ) { - return sessionsSessionIdSystemCommandPostCommand - ?.map((e) => e.value!) - .join(',') ?? - ''; + return sessionsSessionIdSystemCommandPostCommand?.map((e) => e.value!).join(',') ?? ''; } List sessionsSessionIdSystemCommandPostCommandListToJson( - List? - sessionsSessionIdSystemCommandPostCommand, + List? sessionsSessionIdSystemCommandPostCommand, ) { if (sessionsSessionIdSystemCommandPostCommand == null) { return []; } - return sessionsSessionIdSystemCommandPostCommand - .map((e) => e.value!) - .toList(); + return sessionsSessionIdSystemCommandPostCommand.map((e) => e.value!).toList(); } -List -sessionsSessionIdSystemCommandPostCommandListFromJson( +List sessionsSessionIdSystemCommandPostCommandListFromJson( List? sessionsSessionIdSystemCommandPostCommand, [ List? defaultValue, ]) { @@ -71813,8 +67670,7 @@ sessionsSessionIdSystemCommandPostCommandListFromJson( .toList(); } -List? -sessionsSessionIdSystemCommandPostCommandNullableListFromJson( +List? sessionsSessionIdSystemCommandPostCommandNullableListFromJson( List? sessionsSessionIdSystemCommandPostCommand, [ List? defaultValue, ]) { @@ -71830,21 +67686,18 @@ sessionsSessionIdSystemCommandPostCommandNullableListFromJson( } String? sessionsSessionIdViewingPostItemTypeNullableToJson( - enums.SessionsSessionIdViewingPostItemType? - sessionsSessionIdViewingPostItemType, + enums.SessionsSessionIdViewingPostItemType? sessionsSessionIdViewingPostItemType, ) { return sessionsSessionIdViewingPostItemType?.value; } String? sessionsSessionIdViewingPostItemTypeToJson( - enums.SessionsSessionIdViewingPostItemType - sessionsSessionIdViewingPostItemType, + enums.SessionsSessionIdViewingPostItemType sessionsSessionIdViewingPostItemType, ) { return sessionsSessionIdViewingPostItemType.value; } -enums.SessionsSessionIdViewingPostItemType -sessionsSessionIdViewingPostItemTypeFromJson( +enums.SessionsSessionIdViewingPostItemType sessionsSessionIdViewingPostItemTypeFromJson( Object? sessionsSessionIdViewingPostItemType, [ enums.SessionsSessionIdViewingPostItemType? defaultValue, ]) { @@ -71855,8 +67708,7 @@ sessionsSessionIdViewingPostItemTypeFromJson( enums.SessionsSessionIdViewingPostItemType.swaggerGeneratedUnknown; } -enums.SessionsSessionIdViewingPostItemType? -sessionsSessionIdViewingPostItemTypeNullableFromJson( +enums.SessionsSessionIdViewingPostItemType? sessionsSessionIdViewingPostItemTypeNullableFromJson( Object? sessionsSessionIdViewingPostItemType, [ enums.SessionsSessionIdViewingPostItemType? defaultValue, ]) { @@ -71870,16 +67722,13 @@ sessionsSessionIdViewingPostItemTypeNullableFromJson( } String sessionsSessionIdViewingPostItemTypeExplodedListToJson( - List? - sessionsSessionIdViewingPostItemType, + List? sessionsSessionIdViewingPostItemType, ) { - return sessionsSessionIdViewingPostItemType?.map((e) => e.value!).join(',') ?? - ''; + return sessionsSessionIdViewingPostItemType?.map((e) => e.value!).join(',') ?? ''; } List sessionsSessionIdViewingPostItemTypeListToJson( - List? - sessionsSessionIdViewingPostItemType, + List? sessionsSessionIdViewingPostItemType, ) { if (sessionsSessionIdViewingPostItemType == null) { return []; @@ -71888,8 +67737,7 @@ List sessionsSessionIdViewingPostItemTypeListToJson( return sessionsSessionIdViewingPostItemType.map((e) => e.value!).toList(); } -List -sessionsSessionIdViewingPostItemTypeListFromJson( +List sessionsSessionIdViewingPostItemTypeListFromJson( List? sessionsSessionIdViewingPostItemType, [ List? defaultValue, ]) { @@ -71902,8 +67750,7 @@ sessionsSessionIdViewingPostItemTypeListFromJson( .toList(); } -List? -sessionsSessionIdViewingPostItemTypeNullableListFromJson( +List? sessionsSessionIdViewingPostItemTypeNullableListFromJson( List? sessionsSessionIdViewingPostItemType, [ List? defaultValue, ]) { @@ -71939,8 +67786,7 @@ enums.ShowsSeriesIdEpisodesGetSortBy showsSeriesIdEpisodesGetSortByFromJson( enums.ShowsSeriesIdEpisodesGetSortBy.swaggerGeneratedUnknown; } -enums.ShowsSeriesIdEpisodesGetSortBy? -showsSeriesIdEpisodesGetSortByNullableFromJson( +enums.ShowsSeriesIdEpisodesGetSortBy? showsSeriesIdEpisodesGetSortByNullableFromJson( Object? showsSeriesIdEpisodesGetSortBy, [ enums.ShowsSeriesIdEpisodesGetSortBy? defaultValue, ]) { @@ -71969,8 +67815,7 @@ List showsSeriesIdEpisodesGetSortByListToJson( return showsSeriesIdEpisodesGetSortBy.map((e) => e.value!).toList(); } -List -showsSeriesIdEpisodesGetSortByListFromJson( +List showsSeriesIdEpisodesGetSortByListFromJson( List? showsSeriesIdEpisodesGetSortBy, [ List? defaultValue, ]) { @@ -71978,13 +67823,10 @@ showsSeriesIdEpisodesGetSortByListFromJson( return defaultValue ?? []; } - return showsSeriesIdEpisodesGetSortBy - .map((e) => showsSeriesIdEpisodesGetSortByFromJson(e.toString())) - .toList(); + return showsSeriesIdEpisodesGetSortBy.map((e) => showsSeriesIdEpisodesGetSortByFromJson(e.toString())).toList(); } -List? -showsSeriesIdEpisodesGetSortByNullableListFromJson( +List? showsSeriesIdEpisodesGetSortByNullableListFromJson( List? showsSeriesIdEpisodesGetSortBy, [ List? defaultValue, ]) { @@ -71992,78 +67834,62 @@ showsSeriesIdEpisodesGetSortByNullableListFromJson( return defaultValue; } - return showsSeriesIdEpisodesGetSortBy - .map((e) => showsSeriesIdEpisodesGetSortByFromJson(e.toString())) - .toList(); + return showsSeriesIdEpisodesGetSortBy.map((e) => showsSeriesIdEpisodesGetSortByFromJson(e.toString())).toList(); } String? audioItemIdUniversalGetTranscodingProtocolNullableToJson( - enums.AudioItemIdUniversalGetTranscodingProtocol? - audioItemIdUniversalGetTranscodingProtocol, + enums.AudioItemIdUniversalGetTranscodingProtocol? audioItemIdUniversalGetTranscodingProtocol, ) { return audioItemIdUniversalGetTranscodingProtocol?.value; } String? audioItemIdUniversalGetTranscodingProtocolToJson( - enums.AudioItemIdUniversalGetTranscodingProtocol - audioItemIdUniversalGetTranscodingProtocol, + enums.AudioItemIdUniversalGetTranscodingProtocol audioItemIdUniversalGetTranscodingProtocol, ) { return audioItemIdUniversalGetTranscodingProtocol.value; } -enums.AudioItemIdUniversalGetTranscodingProtocol -audioItemIdUniversalGetTranscodingProtocolFromJson( +enums.AudioItemIdUniversalGetTranscodingProtocol audioItemIdUniversalGetTranscodingProtocolFromJson( Object? audioItemIdUniversalGetTranscodingProtocol, [ enums.AudioItemIdUniversalGetTranscodingProtocol? defaultValue, ]) { - return enums.AudioItemIdUniversalGetTranscodingProtocol.values - .firstWhereOrNull( - (e) => e.value == audioItemIdUniversalGetTranscodingProtocol, - ) ?? + return enums.AudioItemIdUniversalGetTranscodingProtocol.values.firstWhereOrNull( + (e) => e.value == audioItemIdUniversalGetTranscodingProtocol, + ) ?? defaultValue ?? enums.AudioItemIdUniversalGetTranscodingProtocol.swaggerGeneratedUnknown; } -enums.AudioItemIdUniversalGetTranscodingProtocol? -audioItemIdUniversalGetTranscodingProtocolNullableFromJson( +enums.AudioItemIdUniversalGetTranscodingProtocol? audioItemIdUniversalGetTranscodingProtocolNullableFromJson( Object? audioItemIdUniversalGetTranscodingProtocol, [ enums.AudioItemIdUniversalGetTranscodingProtocol? defaultValue, ]) { if (audioItemIdUniversalGetTranscodingProtocol == null) { return null; } - return enums.AudioItemIdUniversalGetTranscodingProtocol.values - .firstWhereOrNull( - (e) => e.value == audioItemIdUniversalGetTranscodingProtocol, - ) ?? + return enums.AudioItemIdUniversalGetTranscodingProtocol.values.firstWhereOrNull( + (e) => e.value == audioItemIdUniversalGetTranscodingProtocol, + ) ?? defaultValue; } String audioItemIdUniversalGetTranscodingProtocolExplodedListToJson( - List? - audioItemIdUniversalGetTranscodingProtocol, + List? audioItemIdUniversalGetTranscodingProtocol, ) { - return audioItemIdUniversalGetTranscodingProtocol - ?.map((e) => e.value!) - .join(',') ?? - ''; + return audioItemIdUniversalGetTranscodingProtocol?.map((e) => e.value!).join(',') ?? ''; } List audioItemIdUniversalGetTranscodingProtocolListToJson( - List? - audioItemIdUniversalGetTranscodingProtocol, + List? audioItemIdUniversalGetTranscodingProtocol, ) { if (audioItemIdUniversalGetTranscodingProtocol == null) { return []; } - return audioItemIdUniversalGetTranscodingProtocol - .map((e) => e.value!) - .toList(); + return audioItemIdUniversalGetTranscodingProtocol.map((e) => e.value!).toList(); } -List -audioItemIdUniversalGetTranscodingProtocolListFromJson( +List audioItemIdUniversalGetTranscodingProtocolListFromJson( List? audioItemIdUniversalGetTranscodingProtocol, [ List? defaultValue, ]) { @@ -72078,8 +67904,7 @@ audioItemIdUniversalGetTranscodingProtocolListFromJson( .toList(); } -List? -audioItemIdUniversalGetTranscodingProtocolNullableListFromJson( +List? audioItemIdUniversalGetTranscodingProtocolNullableListFromJson( List? audioItemIdUniversalGetTranscodingProtocol, [ List? defaultValue, ]) { @@ -72095,72 +67920,58 @@ audioItemIdUniversalGetTranscodingProtocolNullableListFromJson( } String? audioItemIdUniversalHeadTranscodingProtocolNullableToJson( - enums.AudioItemIdUniversalHeadTranscodingProtocol? - audioItemIdUniversalHeadTranscodingProtocol, + enums.AudioItemIdUniversalHeadTranscodingProtocol? audioItemIdUniversalHeadTranscodingProtocol, ) { return audioItemIdUniversalHeadTranscodingProtocol?.value; } String? audioItemIdUniversalHeadTranscodingProtocolToJson( - enums.AudioItemIdUniversalHeadTranscodingProtocol - audioItemIdUniversalHeadTranscodingProtocol, + enums.AudioItemIdUniversalHeadTranscodingProtocol audioItemIdUniversalHeadTranscodingProtocol, ) { return audioItemIdUniversalHeadTranscodingProtocol.value; } -enums.AudioItemIdUniversalHeadTranscodingProtocol -audioItemIdUniversalHeadTranscodingProtocolFromJson( +enums.AudioItemIdUniversalHeadTranscodingProtocol audioItemIdUniversalHeadTranscodingProtocolFromJson( Object? audioItemIdUniversalHeadTranscodingProtocol, [ enums.AudioItemIdUniversalHeadTranscodingProtocol? defaultValue, ]) { - return enums.AudioItemIdUniversalHeadTranscodingProtocol.values - .firstWhereOrNull( - (e) => e.value == audioItemIdUniversalHeadTranscodingProtocol, - ) ?? + return enums.AudioItemIdUniversalHeadTranscodingProtocol.values.firstWhereOrNull( + (e) => e.value == audioItemIdUniversalHeadTranscodingProtocol, + ) ?? defaultValue ?? enums.AudioItemIdUniversalHeadTranscodingProtocol.swaggerGeneratedUnknown; } -enums.AudioItemIdUniversalHeadTranscodingProtocol? -audioItemIdUniversalHeadTranscodingProtocolNullableFromJson( +enums.AudioItemIdUniversalHeadTranscodingProtocol? audioItemIdUniversalHeadTranscodingProtocolNullableFromJson( Object? audioItemIdUniversalHeadTranscodingProtocol, [ enums.AudioItemIdUniversalHeadTranscodingProtocol? defaultValue, ]) { if (audioItemIdUniversalHeadTranscodingProtocol == null) { return null; } - return enums.AudioItemIdUniversalHeadTranscodingProtocol.values - .firstWhereOrNull( - (e) => e.value == audioItemIdUniversalHeadTranscodingProtocol, - ) ?? + return enums.AudioItemIdUniversalHeadTranscodingProtocol.values.firstWhereOrNull( + (e) => e.value == audioItemIdUniversalHeadTranscodingProtocol, + ) ?? defaultValue; } String audioItemIdUniversalHeadTranscodingProtocolExplodedListToJson( - List? - audioItemIdUniversalHeadTranscodingProtocol, + List? audioItemIdUniversalHeadTranscodingProtocol, ) { - return audioItemIdUniversalHeadTranscodingProtocol - ?.map((e) => e.value!) - .join(',') ?? - ''; + return audioItemIdUniversalHeadTranscodingProtocol?.map((e) => e.value!).join(',') ?? ''; } List audioItemIdUniversalHeadTranscodingProtocolListToJson( - List? - audioItemIdUniversalHeadTranscodingProtocol, + List? audioItemIdUniversalHeadTranscodingProtocol, ) { if (audioItemIdUniversalHeadTranscodingProtocol == null) { return []; } - return audioItemIdUniversalHeadTranscodingProtocol - .map((e) => e.value!) - .toList(); + return audioItemIdUniversalHeadTranscodingProtocol.map((e) => e.value!).toList(); } -List -audioItemIdUniversalHeadTranscodingProtocolListFromJson( +List audioItemIdUniversalHeadTranscodingProtocolListFromJson( List? audioItemIdUniversalHeadTranscodingProtocol, [ List? defaultValue, ]) { @@ -72170,14 +67981,13 @@ audioItemIdUniversalHeadTranscodingProtocolListFromJson( return audioItemIdUniversalHeadTranscodingProtocol .map( - (e) => - audioItemIdUniversalHeadTranscodingProtocolFromJson(e.toString()), + (e) => audioItemIdUniversalHeadTranscodingProtocolFromJson(e.toString()), ) .toList(); } List? -audioItemIdUniversalHeadTranscodingProtocolNullableListFromJson( + audioItemIdUniversalHeadTranscodingProtocolNullableListFromJson( List? audioItemIdUniversalHeadTranscodingProtocol, [ List? defaultValue, ]) { @@ -72187,15 +67997,13 @@ audioItemIdUniversalHeadTranscodingProtocolNullableListFromJson( return audioItemIdUniversalHeadTranscodingProtocol .map( - (e) => - audioItemIdUniversalHeadTranscodingProtocolFromJson(e.toString()), + (e) => audioItemIdUniversalHeadTranscodingProtocolFromJson(e.toString()), ) .toList(); } String? videosItemIdStreamGetSubtitleMethodNullableToJson( - enums.VideosItemIdStreamGetSubtitleMethod? - videosItemIdStreamGetSubtitleMethod, + enums.VideosItemIdStreamGetSubtitleMethod? videosItemIdStreamGetSubtitleMethod, ) { return videosItemIdStreamGetSubtitleMethod?.value; } @@ -72206,8 +68014,7 @@ String? videosItemIdStreamGetSubtitleMethodToJson( return videosItemIdStreamGetSubtitleMethod.value; } -enums.VideosItemIdStreamGetSubtitleMethod -videosItemIdStreamGetSubtitleMethodFromJson( +enums.VideosItemIdStreamGetSubtitleMethod videosItemIdStreamGetSubtitleMethodFromJson( Object? videosItemIdStreamGetSubtitleMethod, [ enums.VideosItemIdStreamGetSubtitleMethod? defaultValue, ]) { @@ -72218,8 +68025,7 @@ videosItemIdStreamGetSubtitleMethodFromJson( enums.VideosItemIdStreamGetSubtitleMethod.swaggerGeneratedUnknown; } -enums.VideosItemIdStreamGetSubtitleMethod? -videosItemIdStreamGetSubtitleMethodNullableFromJson( +enums.VideosItemIdStreamGetSubtitleMethod? videosItemIdStreamGetSubtitleMethodNullableFromJson( Object? videosItemIdStreamGetSubtitleMethod, [ enums.VideosItemIdStreamGetSubtitleMethod? defaultValue, ]) { @@ -72233,16 +68039,13 @@ videosItemIdStreamGetSubtitleMethodNullableFromJson( } String videosItemIdStreamGetSubtitleMethodExplodedListToJson( - List? - videosItemIdStreamGetSubtitleMethod, + List? videosItemIdStreamGetSubtitleMethod, ) { - return videosItemIdStreamGetSubtitleMethod?.map((e) => e.value!).join(',') ?? - ''; + return videosItemIdStreamGetSubtitleMethod?.map((e) => e.value!).join(',') ?? ''; } List videosItemIdStreamGetSubtitleMethodListToJson( - List? - videosItemIdStreamGetSubtitleMethod, + List? videosItemIdStreamGetSubtitleMethod, ) { if (videosItemIdStreamGetSubtitleMethod == null) { return []; @@ -72251,8 +68054,7 @@ List videosItemIdStreamGetSubtitleMethodListToJson( return videosItemIdStreamGetSubtitleMethod.map((e) => e.value!).toList(); } -List -videosItemIdStreamGetSubtitleMethodListFromJson( +List videosItemIdStreamGetSubtitleMethodListFromJson( List? videosItemIdStreamGetSubtitleMethod, [ List? defaultValue, ]) { @@ -72265,8 +68067,7 @@ videosItemIdStreamGetSubtitleMethodListFromJson( .toList(); } -List? -videosItemIdStreamGetSubtitleMethodNullableListFromJson( +List? videosItemIdStreamGetSubtitleMethodNullableListFromJson( List? videosItemIdStreamGetSubtitleMethod, [ List? defaultValue, ]) { @@ -72302,8 +68103,7 @@ enums.VideosItemIdStreamGetContext videosItemIdStreamGetContextFromJson( enums.VideosItemIdStreamGetContext.swaggerGeneratedUnknown; } -enums.VideosItemIdStreamGetContext? -videosItemIdStreamGetContextNullableFromJson( +enums.VideosItemIdStreamGetContext? videosItemIdStreamGetContextNullableFromJson( Object? videosItemIdStreamGetContext, [ enums.VideosItemIdStreamGetContext? defaultValue, ]) { @@ -72332,8 +68132,7 @@ List videosItemIdStreamGetContextListToJson( return videosItemIdStreamGetContext.map((e) => e.value!).toList(); } -List -videosItemIdStreamGetContextListFromJson( +List videosItemIdStreamGetContextListFromJson( List? videosItemIdStreamGetContext, [ List? defaultValue, ]) { @@ -72341,13 +68140,10 @@ videosItemIdStreamGetContextListFromJson( return defaultValue ?? []; } - return videosItemIdStreamGetContext - .map((e) => videosItemIdStreamGetContextFromJson(e.toString())) - .toList(); + return videosItemIdStreamGetContext.map((e) => videosItemIdStreamGetContextFromJson(e.toString())).toList(); } -List? -videosItemIdStreamGetContextNullableListFromJson( +List? videosItemIdStreamGetContextNullableListFromJson( List? videosItemIdStreamGetContext, [ List? defaultValue, ]) { @@ -72355,27 +68151,22 @@ videosItemIdStreamGetContextNullableListFromJson( return defaultValue; } - return videosItemIdStreamGetContext - .map((e) => videosItemIdStreamGetContextFromJson(e.toString())) - .toList(); + return videosItemIdStreamGetContext.map((e) => videosItemIdStreamGetContextFromJson(e.toString())).toList(); } String? videosItemIdStreamHeadSubtitleMethodNullableToJson( - enums.VideosItemIdStreamHeadSubtitleMethod? - videosItemIdStreamHeadSubtitleMethod, + enums.VideosItemIdStreamHeadSubtitleMethod? videosItemIdStreamHeadSubtitleMethod, ) { return videosItemIdStreamHeadSubtitleMethod?.value; } String? videosItemIdStreamHeadSubtitleMethodToJson( - enums.VideosItemIdStreamHeadSubtitleMethod - videosItemIdStreamHeadSubtitleMethod, + enums.VideosItemIdStreamHeadSubtitleMethod videosItemIdStreamHeadSubtitleMethod, ) { return videosItemIdStreamHeadSubtitleMethod.value; } -enums.VideosItemIdStreamHeadSubtitleMethod -videosItemIdStreamHeadSubtitleMethodFromJson( +enums.VideosItemIdStreamHeadSubtitleMethod videosItemIdStreamHeadSubtitleMethodFromJson( Object? videosItemIdStreamHeadSubtitleMethod, [ enums.VideosItemIdStreamHeadSubtitleMethod? defaultValue, ]) { @@ -72386,8 +68177,7 @@ videosItemIdStreamHeadSubtitleMethodFromJson( enums.VideosItemIdStreamHeadSubtitleMethod.swaggerGeneratedUnknown; } -enums.VideosItemIdStreamHeadSubtitleMethod? -videosItemIdStreamHeadSubtitleMethodNullableFromJson( +enums.VideosItemIdStreamHeadSubtitleMethod? videosItemIdStreamHeadSubtitleMethodNullableFromJson( Object? videosItemIdStreamHeadSubtitleMethod, [ enums.VideosItemIdStreamHeadSubtitleMethod? defaultValue, ]) { @@ -72401,16 +68191,13 @@ videosItemIdStreamHeadSubtitleMethodNullableFromJson( } String videosItemIdStreamHeadSubtitleMethodExplodedListToJson( - List? - videosItemIdStreamHeadSubtitleMethod, + List? videosItemIdStreamHeadSubtitleMethod, ) { - return videosItemIdStreamHeadSubtitleMethod?.map((e) => e.value!).join(',') ?? - ''; + return videosItemIdStreamHeadSubtitleMethod?.map((e) => e.value!).join(',') ?? ''; } List videosItemIdStreamHeadSubtitleMethodListToJson( - List? - videosItemIdStreamHeadSubtitleMethod, + List? videosItemIdStreamHeadSubtitleMethod, ) { if (videosItemIdStreamHeadSubtitleMethod == null) { return []; @@ -72419,8 +68206,7 @@ List videosItemIdStreamHeadSubtitleMethodListToJson( return videosItemIdStreamHeadSubtitleMethod.map((e) => e.value!).toList(); } -List -videosItemIdStreamHeadSubtitleMethodListFromJson( +List videosItemIdStreamHeadSubtitleMethodListFromJson( List? videosItemIdStreamHeadSubtitleMethod, [ List? defaultValue, ]) { @@ -72433,8 +68219,7 @@ videosItemIdStreamHeadSubtitleMethodListFromJson( .toList(); } -List? -videosItemIdStreamHeadSubtitleMethodNullableListFromJson( +List? videosItemIdStreamHeadSubtitleMethodNullableListFromJson( List? videosItemIdStreamHeadSubtitleMethod, [ List? defaultValue, ]) { @@ -72470,8 +68255,7 @@ enums.VideosItemIdStreamHeadContext videosItemIdStreamHeadContextFromJson( enums.VideosItemIdStreamHeadContext.swaggerGeneratedUnknown; } -enums.VideosItemIdStreamHeadContext? -videosItemIdStreamHeadContextNullableFromJson( +enums.VideosItemIdStreamHeadContext? videosItemIdStreamHeadContextNullableFromJson( Object? videosItemIdStreamHeadContext, [ enums.VideosItemIdStreamHeadContext? defaultValue, ]) { @@ -72500,8 +68284,7 @@ List videosItemIdStreamHeadContextListToJson( return videosItemIdStreamHeadContext.map((e) => e.value!).toList(); } -List -videosItemIdStreamHeadContextListFromJson( +List videosItemIdStreamHeadContextListFromJson( List? videosItemIdStreamHeadContext, [ List? defaultValue, ]) { @@ -72509,13 +68292,10 @@ videosItemIdStreamHeadContextListFromJson( return defaultValue ?? []; } - return videosItemIdStreamHeadContext - .map((e) => videosItemIdStreamHeadContextFromJson(e.toString())) - .toList(); + return videosItemIdStreamHeadContext.map((e) => videosItemIdStreamHeadContextFromJson(e.toString())).toList(); } -List? -videosItemIdStreamHeadContextNullableListFromJson( +List? videosItemIdStreamHeadContextNullableListFromJson( List? videosItemIdStreamHeadContext, [ List? defaultValue, ]) { @@ -72523,80 +68303,62 @@ videosItemIdStreamHeadContextNullableListFromJson( return defaultValue; } - return videosItemIdStreamHeadContext - .map((e) => videosItemIdStreamHeadContextFromJson(e.toString())) - .toList(); + return videosItemIdStreamHeadContext.map((e) => videosItemIdStreamHeadContextFromJson(e.toString())).toList(); } String? videosItemIdStreamContainerGetSubtitleMethodNullableToJson( - enums.VideosItemIdStreamContainerGetSubtitleMethod? - videosItemIdStreamContainerGetSubtitleMethod, + enums.VideosItemIdStreamContainerGetSubtitleMethod? videosItemIdStreamContainerGetSubtitleMethod, ) { return videosItemIdStreamContainerGetSubtitleMethod?.value; } String? videosItemIdStreamContainerGetSubtitleMethodToJson( - enums.VideosItemIdStreamContainerGetSubtitleMethod - videosItemIdStreamContainerGetSubtitleMethod, + enums.VideosItemIdStreamContainerGetSubtitleMethod videosItemIdStreamContainerGetSubtitleMethod, ) { return videosItemIdStreamContainerGetSubtitleMethod.value; } -enums.VideosItemIdStreamContainerGetSubtitleMethod -videosItemIdStreamContainerGetSubtitleMethodFromJson( +enums.VideosItemIdStreamContainerGetSubtitleMethod videosItemIdStreamContainerGetSubtitleMethodFromJson( Object? videosItemIdStreamContainerGetSubtitleMethod, [ enums.VideosItemIdStreamContainerGetSubtitleMethod? defaultValue, ]) { - return enums.VideosItemIdStreamContainerGetSubtitleMethod.values - .firstWhereOrNull( - (e) => e.value == videosItemIdStreamContainerGetSubtitleMethod, - ) ?? + return enums.VideosItemIdStreamContainerGetSubtitleMethod.values.firstWhereOrNull( + (e) => e.value == videosItemIdStreamContainerGetSubtitleMethod, + ) ?? defaultValue ?? - enums - .VideosItemIdStreamContainerGetSubtitleMethod - .swaggerGeneratedUnknown; + enums.VideosItemIdStreamContainerGetSubtitleMethod.swaggerGeneratedUnknown; } -enums.VideosItemIdStreamContainerGetSubtitleMethod? -videosItemIdStreamContainerGetSubtitleMethodNullableFromJson( +enums.VideosItemIdStreamContainerGetSubtitleMethod? videosItemIdStreamContainerGetSubtitleMethodNullableFromJson( Object? videosItemIdStreamContainerGetSubtitleMethod, [ enums.VideosItemIdStreamContainerGetSubtitleMethod? defaultValue, ]) { if (videosItemIdStreamContainerGetSubtitleMethod == null) { return null; } - return enums.VideosItemIdStreamContainerGetSubtitleMethod.values - .firstWhereOrNull( - (e) => e.value == videosItemIdStreamContainerGetSubtitleMethod, - ) ?? + return enums.VideosItemIdStreamContainerGetSubtitleMethod.values.firstWhereOrNull( + (e) => e.value == videosItemIdStreamContainerGetSubtitleMethod, + ) ?? defaultValue; } String videosItemIdStreamContainerGetSubtitleMethodExplodedListToJson( - List? - videosItemIdStreamContainerGetSubtitleMethod, + List? videosItemIdStreamContainerGetSubtitleMethod, ) { - return videosItemIdStreamContainerGetSubtitleMethod - ?.map((e) => e.value!) - .join(',') ?? - ''; + return videosItemIdStreamContainerGetSubtitleMethod?.map((e) => e.value!).join(',') ?? ''; } List videosItemIdStreamContainerGetSubtitleMethodListToJson( - List? - videosItemIdStreamContainerGetSubtitleMethod, + List? videosItemIdStreamContainerGetSubtitleMethod, ) { if (videosItemIdStreamContainerGetSubtitleMethod == null) { return []; } - return videosItemIdStreamContainerGetSubtitleMethod - .map((e) => e.value!) - .toList(); + return videosItemIdStreamContainerGetSubtitleMethod.map((e) => e.value!).toList(); } -List -videosItemIdStreamContainerGetSubtitleMethodListFromJson( +List videosItemIdStreamContainerGetSubtitleMethodListFromJson( List? videosItemIdStreamContainerGetSubtitleMethod, [ List? defaultValue, ]) { @@ -72606,14 +68368,13 @@ videosItemIdStreamContainerGetSubtitleMethodListFromJson( return videosItemIdStreamContainerGetSubtitleMethod .map( - (e) => - videosItemIdStreamContainerGetSubtitleMethodFromJson(e.toString()), + (e) => videosItemIdStreamContainerGetSubtitleMethodFromJson(e.toString()), ) .toList(); } List? -videosItemIdStreamContainerGetSubtitleMethodNullableListFromJson( + videosItemIdStreamContainerGetSubtitleMethodNullableListFromJson( List? videosItemIdStreamContainerGetSubtitleMethod, [ List? defaultValue, ]) { @@ -72623,28 +68384,24 @@ videosItemIdStreamContainerGetSubtitleMethodNullableListFromJson( return videosItemIdStreamContainerGetSubtitleMethod .map( - (e) => - videosItemIdStreamContainerGetSubtitleMethodFromJson(e.toString()), + (e) => videosItemIdStreamContainerGetSubtitleMethodFromJson(e.toString()), ) .toList(); } String? videosItemIdStreamContainerGetContextNullableToJson( - enums.VideosItemIdStreamContainerGetContext? - videosItemIdStreamContainerGetContext, + enums.VideosItemIdStreamContainerGetContext? videosItemIdStreamContainerGetContext, ) { return videosItemIdStreamContainerGetContext?.value; } String? videosItemIdStreamContainerGetContextToJson( - enums.VideosItemIdStreamContainerGetContext - videosItemIdStreamContainerGetContext, + enums.VideosItemIdStreamContainerGetContext videosItemIdStreamContainerGetContext, ) { return videosItemIdStreamContainerGetContext.value; } -enums.VideosItemIdStreamContainerGetContext -videosItemIdStreamContainerGetContextFromJson( +enums.VideosItemIdStreamContainerGetContext videosItemIdStreamContainerGetContextFromJson( Object? videosItemIdStreamContainerGetContext, [ enums.VideosItemIdStreamContainerGetContext? defaultValue, ]) { @@ -72655,8 +68412,7 @@ videosItemIdStreamContainerGetContextFromJson( enums.VideosItemIdStreamContainerGetContext.swaggerGeneratedUnknown; } -enums.VideosItemIdStreamContainerGetContext? -videosItemIdStreamContainerGetContextNullableFromJson( +enums.VideosItemIdStreamContainerGetContext? videosItemIdStreamContainerGetContextNullableFromJson( Object? videosItemIdStreamContainerGetContext, [ enums.VideosItemIdStreamContainerGetContext? defaultValue, ]) { @@ -72670,18 +68426,13 @@ videosItemIdStreamContainerGetContextNullableFromJson( } String videosItemIdStreamContainerGetContextExplodedListToJson( - List? - videosItemIdStreamContainerGetContext, + List? videosItemIdStreamContainerGetContext, ) { - return videosItemIdStreamContainerGetContext - ?.map((e) => e.value!) - .join(',') ?? - ''; + return videosItemIdStreamContainerGetContext?.map((e) => e.value!).join(',') ?? ''; } List videosItemIdStreamContainerGetContextListToJson( - List? - videosItemIdStreamContainerGetContext, + List? videosItemIdStreamContainerGetContext, ) { if (videosItemIdStreamContainerGetContext == null) { return []; @@ -72690,8 +68441,7 @@ List videosItemIdStreamContainerGetContextListToJson( return videosItemIdStreamContainerGetContext.map((e) => e.value!).toList(); } -List -videosItemIdStreamContainerGetContextListFromJson( +List videosItemIdStreamContainerGetContextListFromJson( List? videosItemIdStreamContainerGetContext, [ List? defaultValue, ]) { @@ -72704,8 +68454,7 @@ videosItemIdStreamContainerGetContextListFromJson( .toList(); } -List? -videosItemIdStreamContainerGetContextNullableListFromJson( +List? videosItemIdStreamContainerGetContextNullableListFromJson( List? videosItemIdStreamContainerGetContext, [ List? defaultValue, ]) { @@ -72719,74 +68468,58 @@ videosItemIdStreamContainerGetContextNullableListFromJson( } String? videosItemIdStreamContainerHeadSubtitleMethodNullableToJson( - enums.VideosItemIdStreamContainerHeadSubtitleMethod? - videosItemIdStreamContainerHeadSubtitleMethod, + enums.VideosItemIdStreamContainerHeadSubtitleMethod? videosItemIdStreamContainerHeadSubtitleMethod, ) { return videosItemIdStreamContainerHeadSubtitleMethod?.value; } String? videosItemIdStreamContainerHeadSubtitleMethodToJson( - enums.VideosItemIdStreamContainerHeadSubtitleMethod - videosItemIdStreamContainerHeadSubtitleMethod, + enums.VideosItemIdStreamContainerHeadSubtitleMethod videosItemIdStreamContainerHeadSubtitleMethod, ) { return videosItemIdStreamContainerHeadSubtitleMethod.value; } -enums.VideosItemIdStreamContainerHeadSubtitleMethod -videosItemIdStreamContainerHeadSubtitleMethodFromJson( +enums.VideosItemIdStreamContainerHeadSubtitleMethod videosItemIdStreamContainerHeadSubtitleMethodFromJson( Object? videosItemIdStreamContainerHeadSubtitleMethod, [ enums.VideosItemIdStreamContainerHeadSubtitleMethod? defaultValue, ]) { - return enums.VideosItemIdStreamContainerHeadSubtitleMethod.values - .firstWhereOrNull( - (e) => e.value == videosItemIdStreamContainerHeadSubtitleMethod, - ) ?? + return enums.VideosItemIdStreamContainerHeadSubtitleMethod.values.firstWhereOrNull( + (e) => e.value == videosItemIdStreamContainerHeadSubtitleMethod, + ) ?? defaultValue ?? - enums - .VideosItemIdStreamContainerHeadSubtitleMethod - .swaggerGeneratedUnknown; + enums.VideosItemIdStreamContainerHeadSubtitleMethod.swaggerGeneratedUnknown; } -enums.VideosItemIdStreamContainerHeadSubtitleMethod? -videosItemIdStreamContainerHeadSubtitleMethodNullableFromJson( +enums.VideosItemIdStreamContainerHeadSubtitleMethod? videosItemIdStreamContainerHeadSubtitleMethodNullableFromJson( Object? videosItemIdStreamContainerHeadSubtitleMethod, [ enums.VideosItemIdStreamContainerHeadSubtitleMethod? defaultValue, ]) { if (videosItemIdStreamContainerHeadSubtitleMethod == null) { return null; } - return enums.VideosItemIdStreamContainerHeadSubtitleMethod.values - .firstWhereOrNull( - (e) => e.value == videosItemIdStreamContainerHeadSubtitleMethod, - ) ?? + return enums.VideosItemIdStreamContainerHeadSubtitleMethod.values.firstWhereOrNull( + (e) => e.value == videosItemIdStreamContainerHeadSubtitleMethod, + ) ?? defaultValue; } String videosItemIdStreamContainerHeadSubtitleMethodExplodedListToJson( - List? - videosItemIdStreamContainerHeadSubtitleMethod, + List? videosItemIdStreamContainerHeadSubtitleMethod, ) { - return videosItemIdStreamContainerHeadSubtitleMethod - ?.map((e) => e.value!) - .join(',') ?? - ''; + return videosItemIdStreamContainerHeadSubtitleMethod?.map((e) => e.value!).join(',') ?? ''; } List videosItemIdStreamContainerHeadSubtitleMethodListToJson( - List? - videosItemIdStreamContainerHeadSubtitleMethod, + List? videosItemIdStreamContainerHeadSubtitleMethod, ) { if (videosItemIdStreamContainerHeadSubtitleMethod == null) { return []; } - return videosItemIdStreamContainerHeadSubtitleMethod - .map((e) => e.value!) - .toList(); + return videosItemIdStreamContainerHeadSubtitleMethod.map((e) => e.value!).toList(); } -List -videosItemIdStreamContainerHeadSubtitleMethodListFromJson( +List videosItemIdStreamContainerHeadSubtitleMethodListFromJson( List? videosItemIdStreamContainerHeadSubtitleMethod, [ List? defaultValue, ]) { @@ -72796,14 +68529,13 @@ videosItemIdStreamContainerHeadSubtitleMethodListFromJson( return videosItemIdStreamContainerHeadSubtitleMethod .map( - (e) => - videosItemIdStreamContainerHeadSubtitleMethodFromJson(e.toString()), + (e) => videosItemIdStreamContainerHeadSubtitleMethodFromJson(e.toString()), ) .toList(); } List? -videosItemIdStreamContainerHeadSubtitleMethodNullableListFromJson( + videosItemIdStreamContainerHeadSubtitleMethodNullableListFromJson( List? videosItemIdStreamContainerHeadSubtitleMethod, [ List? defaultValue, ]) { @@ -72813,28 +68545,24 @@ videosItemIdStreamContainerHeadSubtitleMethodNullableListFromJson( return videosItemIdStreamContainerHeadSubtitleMethod .map( - (e) => - videosItemIdStreamContainerHeadSubtitleMethodFromJson(e.toString()), + (e) => videosItemIdStreamContainerHeadSubtitleMethodFromJson(e.toString()), ) .toList(); } String? videosItemIdStreamContainerHeadContextNullableToJson( - enums.VideosItemIdStreamContainerHeadContext? - videosItemIdStreamContainerHeadContext, + enums.VideosItemIdStreamContainerHeadContext? videosItemIdStreamContainerHeadContext, ) { return videosItemIdStreamContainerHeadContext?.value; } String? videosItemIdStreamContainerHeadContextToJson( - enums.VideosItemIdStreamContainerHeadContext - videosItemIdStreamContainerHeadContext, + enums.VideosItemIdStreamContainerHeadContext videosItemIdStreamContainerHeadContext, ) { return videosItemIdStreamContainerHeadContext.value; } -enums.VideosItemIdStreamContainerHeadContext -videosItemIdStreamContainerHeadContextFromJson( +enums.VideosItemIdStreamContainerHeadContext videosItemIdStreamContainerHeadContextFromJson( Object? videosItemIdStreamContainerHeadContext, [ enums.VideosItemIdStreamContainerHeadContext? defaultValue, ]) { @@ -72845,8 +68573,7 @@ videosItemIdStreamContainerHeadContextFromJson( enums.VideosItemIdStreamContainerHeadContext.swaggerGeneratedUnknown; } -enums.VideosItemIdStreamContainerHeadContext? -videosItemIdStreamContainerHeadContextNullableFromJson( +enums.VideosItemIdStreamContainerHeadContext? videosItemIdStreamContainerHeadContextNullableFromJson( Object? videosItemIdStreamContainerHeadContext, [ enums.VideosItemIdStreamContainerHeadContext? defaultValue, ]) { @@ -72860,18 +68587,13 @@ videosItemIdStreamContainerHeadContextNullableFromJson( } String videosItemIdStreamContainerHeadContextExplodedListToJson( - List? - videosItemIdStreamContainerHeadContext, + List? videosItemIdStreamContainerHeadContext, ) { - return videosItemIdStreamContainerHeadContext - ?.map((e) => e.value!) - .join(',') ?? - ''; + return videosItemIdStreamContainerHeadContext?.map((e) => e.value!).join(',') ?? ''; } List videosItemIdStreamContainerHeadContextListToJson( - List? - videosItemIdStreamContainerHeadContext, + List? videosItemIdStreamContainerHeadContext, ) { if (videosItemIdStreamContainerHeadContext == null) { return []; @@ -72880,8 +68602,7 @@ List videosItemIdStreamContainerHeadContextListToJson( return videosItemIdStreamContainerHeadContext.map((e) => e.value!).toList(); } -List -videosItemIdStreamContainerHeadContextListFromJson( +List videosItemIdStreamContainerHeadContextListFromJson( List? videosItemIdStreamContainerHeadContext, [ List? defaultValue, ]) { @@ -72894,8 +68615,7 @@ videosItemIdStreamContainerHeadContextListFromJson( .toList(); } -List? -videosItemIdStreamContainerHeadContextNullableListFromJson( +List? videosItemIdStreamContainerHeadContextNullableListFromJson( List? videosItemIdStreamContainerHeadContext, [ List? defaultValue, ]) { @@ -72948,8 +68668,7 @@ class $CustomJsonDecoder { return jsonFactory(values); } - List _decodeList(Iterable values) => - values.where((v) => v != null).map((v) => decode(v) as T).toList(); + List _decodeList(Iterable values) => values.where((v) => v != null).map((v) => decode(v) as T).toList(); } class $JsonSerializableConverter extends chopper.JsonConverter { @@ -72969,9 +68688,7 @@ class $JsonSerializableConverter extends chopper.JsonConverter { if (ResultType == DateTime) { return response.copyWith( - body: - DateTime.parse((response.body as String).replaceAll('"', '')) - as ResultType, + body: DateTime.parse((response.body as String).replaceAll('"', '')) as ResultType, ); } diff --git a/lib/jellyfin/jellyfin_open_api.swagger.g.dart b/lib/jellyfin/jellyfin_open_api.swagger.g.dart index eb1fd2bdf..0284c6fb9 100644 --- a/lib/jellyfin/jellyfin_open_api.swagger.g.dart +++ b/lib/jellyfin/jellyfin_open_api.swagger.g.dart @@ -6,8 +6,7 @@ part of 'jellyfin_open_api.swagger.dart'; // JsonSerializableGenerator // ************************************************************************** -AccessSchedule _$AccessScheduleFromJson(Map json) => - AccessSchedule( +AccessSchedule _$AccessScheduleFromJson(Map json) => AccessSchedule( id: (json['Id'] as num?)?.toInt(), userId: json['UserId'] as String?, dayOfWeek: dynamicDayOfWeekNullableFromJson(json['DayOfWeek']), @@ -15,33 +14,28 @@ AccessSchedule _$AccessScheduleFromJson(Map json) => endHour: (json['EndHour'] as num?)?.toDouble(), ); -Map _$AccessScheduleToJson(AccessSchedule instance) => - { +Map _$AccessScheduleToJson(AccessSchedule instance) => { if (instance.id case final value?) 'Id': value, if (instance.userId case final value?) 'UserId': value, - if (dynamicDayOfWeekNullableToJson(instance.dayOfWeek) case final value?) - 'DayOfWeek': value, + if (dynamicDayOfWeekNullableToJson(instance.dayOfWeek) case final value?) 'DayOfWeek': value, if (instance.startHour case final value?) 'StartHour': value, if (instance.endHour case final value?) 'EndHour': value, }; -ActivityLogEntry _$ActivityLogEntryFromJson(Map json) => - ActivityLogEntry( +ActivityLogEntry _$ActivityLogEntryFromJson(Map json) => ActivityLogEntry( id: (json['Id'] as num?)?.toInt(), name: json['Name'] as String?, overview: json['Overview'] as String?, shortOverview: json['ShortOverview'] as String?, type: json['Type'] as String?, itemId: json['ItemId'] as String?, - date: - json['Date'] == null ? null : DateTime.parse(json['Date'] as String), + date: json['Date'] == null ? null : DateTime.parse(json['Date'] as String), userId: json['UserId'] as String?, userPrimaryImageTag: json['UserPrimaryImageTag'] as String?, severity: logLevelNullableFromJson(json['Severity']), ); -Map _$ActivityLogEntryToJson(ActivityLogEntry instance) => - { +Map _$ActivityLogEntryToJson(ActivityLogEntry instance) => { if (instance.id case final value?) 'Id': value, if (instance.name case final value?) 'Name': value, if (instance.overview case final value?) 'Overview': value, @@ -50,38 +44,25 @@ Map _$ActivityLogEntryToJson(ActivityLogEntry instance) => if (instance.itemId case final value?) 'ItemId': value, if (instance.date?.toIso8601String() case final value?) 'Date': value, if (instance.userId case final value?) 'UserId': value, - if (instance.userPrimaryImageTag case final value?) - 'UserPrimaryImageTag': value, - if (logLevelNullableToJson(instance.severity) case final value?) - 'Severity': value, + if (instance.userPrimaryImageTag case final value?) 'UserPrimaryImageTag': value, + if (logLevelNullableToJson(instance.severity) case final value?) 'Severity': value, }; -ActivityLogEntryMessage _$ActivityLogEntryMessageFromJson( - Map json) => - ActivityLogEntryMessage( - data: (json['Data'] as List?) - ?.map((e) => ActivityLogEntry.fromJson(e as Map)) - .toList() ?? - [], +ActivityLogEntryMessage _$ActivityLogEntryMessageFromJson(Map json) => ActivityLogEntryMessage( + data: + (json['Data'] as List?)?.map((e) => ActivityLogEntry.fromJson(e as Map)).toList() ?? + [], messageId: json['MessageId'] as String?, - messageType: - ActivityLogEntryMessage.sessionMessageTypeMessageTypeNullableFromJson( - json['MessageType']), + messageType: ActivityLogEntryMessage.sessionMessageTypeMessageTypeNullableFromJson(json['MessageType']), ); -Map _$ActivityLogEntryMessageToJson( - ActivityLogEntryMessage instance) => - { - if (instance.data?.map((e) => e.toJson()).toList() case final value?) - 'Data': value, +Map _$ActivityLogEntryMessageToJson(ActivityLogEntryMessage instance) => { + if (instance.data?.map((e) => e.toJson()).toList() case final value?) 'Data': value, if (instance.messageId case final value?) 'MessageId': value, - if (sessionMessageTypeNullableToJson(instance.messageType) - case final value?) - 'MessageType': value, + if (sessionMessageTypeNullableToJson(instance.messageType) case final value?) 'MessageType': value, }; -ActivityLogEntryQueryResult _$ActivityLogEntryQueryResultFromJson( - Map json) => +ActivityLogEntryQueryResult _$ActivityLogEntryQueryResultFromJson(Map json) => ActivityLogEntryQueryResult( items: (json['Items'] as List?) ?.map((e) => ActivityLogEntry.fromJson(e as Map)) @@ -91,61 +72,40 @@ ActivityLogEntryQueryResult _$ActivityLogEntryQueryResultFromJson( startIndex: (json['StartIndex'] as num?)?.toInt(), ); -Map _$ActivityLogEntryQueryResultToJson( - ActivityLogEntryQueryResult instance) => - { - if (instance.items?.map((e) => e.toJson()).toList() case final value?) - 'Items': value, - if (instance.totalRecordCount case final value?) - 'TotalRecordCount': value, +Map _$ActivityLogEntryQueryResultToJson(ActivityLogEntryQueryResult instance) => { + if (instance.items?.map((e) => e.toJson()).toList() case final value?) 'Items': value, + if (instance.totalRecordCount case final value?) 'TotalRecordCount': value, if (instance.startIndex case final value?) 'StartIndex': value, }; -ActivityLogEntryStartMessage _$ActivityLogEntryStartMessageFromJson( - Map json) => +ActivityLogEntryStartMessage _$ActivityLogEntryStartMessageFromJson(Map json) => ActivityLogEntryStartMessage( data: json['Data'] as String?, - messageType: ActivityLogEntryStartMessage - .sessionMessageTypeMessageTypeNullableFromJson(json['MessageType']), + messageType: ActivityLogEntryStartMessage.sessionMessageTypeMessageTypeNullableFromJson(json['MessageType']), ); -Map _$ActivityLogEntryStartMessageToJson( - ActivityLogEntryStartMessage instance) => - { +Map _$ActivityLogEntryStartMessageToJson(ActivityLogEntryStartMessage instance) => { if (instance.data case final value?) 'Data': value, - if (sessionMessageTypeNullableToJson(instance.messageType) - case final value?) - 'MessageType': value, + if (sessionMessageTypeNullableToJson(instance.messageType) case final value?) 'MessageType': value, }; -ActivityLogEntryStopMessage _$ActivityLogEntryStopMessageFromJson( - Map json) => +ActivityLogEntryStopMessage _$ActivityLogEntryStopMessageFromJson(Map json) => ActivityLogEntryStopMessage( - messageType: ActivityLogEntryStopMessage - .sessionMessageTypeMessageTypeNullableFromJson(json['MessageType']), + messageType: ActivityLogEntryStopMessage.sessionMessageTypeMessageTypeNullableFromJson(json['MessageType']), ); -Map _$ActivityLogEntryStopMessageToJson( - ActivityLogEntryStopMessage instance) => - { - if (sessionMessageTypeNullableToJson(instance.messageType) - case final value?) - 'MessageType': value, +Map _$ActivityLogEntryStopMessageToJson(ActivityLogEntryStopMessage instance) => { + if (sessionMessageTypeNullableToJson(instance.messageType) case final value?) 'MessageType': value, }; -AddVirtualFolderDto _$AddVirtualFolderDtoFromJson(Map json) => - AddVirtualFolderDto( +AddVirtualFolderDto _$AddVirtualFolderDtoFromJson(Map json) => AddVirtualFolderDto( libraryOptions: json['LibraryOptions'] == null ? null - : LibraryOptions.fromJson( - json['LibraryOptions'] as Map), + : LibraryOptions.fromJson(json['LibraryOptions'] as Map), ); -Map _$AddVirtualFolderDtoToJson( - AddVirtualFolderDto instance) => - { - if (instance.libraryOptions?.toJson() case final value?) - 'LibraryOptions': value, +Map _$AddVirtualFolderDtoToJson(AddVirtualFolderDto instance) => { + if (instance.libraryOptions?.toJson() case final value?) 'LibraryOptions': value, }; AlbumInfo _$AlbumInfoFromJson(Map json) => AlbumInfo( @@ -158,91 +118,63 @@ AlbumInfo _$AlbumInfoFromJson(Map json) => AlbumInfo( year: (json['Year'] as num?)?.toInt(), indexNumber: (json['IndexNumber'] as num?)?.toInt(), parentIndexNumber: (json['ParentIndexNumber'] as num?)?.toInt(), - premiereDate: json['PremiereDate'] == null - ? null - : DateTime.parse(json['PremiereDate'] as String), + premiereDate: json['PremiereDate'] == null ? null : DateTime.parse(json['PremiereDate'] as String), isAutomated: json['IsAutomated'] as bool?, - albumArtists: (json['AlbumArtists'] as List?) - ?.map((e) => e as String) - .toList() ?? - [], + albumArtists: (json['AlbumArtists'] as List?)?.map((e) => e as String).toList() ?? [], artistProviderIds: json['ArtistProviderIds'] as Map?, - songInfos: (json['SongInfos'] as List?) - ?.map((e) => SongInfo.fromJson(e as Map)) - .toList() ?? - [], + songInfos: + (json['SongInfos'] as List?)?.map((e) => SongInfo.fromJson(e as Map)).toList() ?? + [], ); Map _$AlbumInfoToJson(AlbumInfo instance) => { if (instance.name case final value?) 'Name': value, if (instance.originalTitle case final value?) 'OriginalTitle': value, if (instance.path case final value?) 'Path': value, - if (instance.metadataLanguage case final value?) - 'MetadataLanguage': value, - if (instance.metadataCountryCode case final value?) - 'MetadataCountryCode': value, + if (instance.metadataLanguage case final value?) 'MetadataLanguage': value, + if (instance.metadataCountryCode case final value?) 'MetadataCountryCode': value, if (instance.providerIds case final value?) 'ProviderIds': value, if (instance.year case final value?) 'Year': value, if (instance.indexNumber case final value?) 'IndexNumber': value, - if (instance.parentIndexNumber case final value?) - 'ParentIndexNumber': value, - if (instance.premiereDate?.toIso8601String() case final value?) - 'PremiereDate': value, + if (instance.parentIndexNumber case final value?) 'ParentIndexNumber': value, + if (instance.premiereDate?.toIso8601String() case final value?) 'PremiereDate': value, if (instance.isAutomated case final value?) 'IsAutomated': value, if (instance.albumArtists case final value?) 'AlbumArtists': value, - if (instance.artistProviderIds case final value?) - 'ArtistProviderIds': value, - if (instance.songInfos?.map((e) => e.toJson()).toList() case final value?) - 'SongInfos': value, + if (instance.artistProviderIds case final value?) 'ArtistProviderIds': value, + if (instance.songInfos?.map((e) => e.toJson()).toList() case final value?) 'SongInfos': value, }; -AlbumInfoRemoteSearchQuery _$AlbumInfoRemoteSearchQueryFromJson( - Map json) => +AlbumInfoRemoteSearchQuery _$AlbumInfoRemoteSearchQueryFromJson(Map json) => AlbumInfoRemoteSearchQuery( - searchInfo: json['SearchInfo'] == null - ? null - : AlbumInfo.fromJson(json['SearchInfo'] as Map), + searchInfo: json['SearchInfo'] == null ? null : AlbumInfo.fromJson(json['SearchInfo'] as Map), itemId: json['ItemId'] as String?, searchProviderName: json['SearchProviderName'] as String?, includeDisabledProviders: json['IncludeDisabledProviders'] as bool?, ); -Map _$AlbumInfoRemoteSearchQueryToJson( - AlbumInfoRemoteSearchQuery instance) => - { +Map _$AlbumInfoRemoteSearchQueryToJson(AlbumInfoRemoteSearchQuery instance) => { if (instance.searchInfo?.toJson() case final value?) 'SearchInfo': value, if (instance.itemId case final value?) 'ItemId': value, - if (instance.searchProviderName case final value?) - 'SearchProviderName': value, - if (instance.includeDisabledProviders case final value?) - 'IncludeDisabledProviders': value, + if (instance.searchProviderName case final value?) 'SearchProviderName': value, + if (instance.includeDisabledProviders case final value?) 'IncludeDisabledProviders': value, }; -AllThemeMediaResult _$AllThemeMediaResultFromJson(Map json) => - AllThemeMediaResult( +AllThemeMediaResult _$AllThemeMediaResultFromJson(Map json) => AllThemeMediaResult( themeVideosResult: json['ThemeVideosResult'] == null ? null - : ThemeMediaResult.fromJson( - json['ThemeVideosResult'] as Map), + : ThemeMediaResult.fromJson(json['ThemeVideosResult'] as Map), themeSongsResult: json['ThemeSongsResult'] == null ? null - : ThemeMediaResult.fromJson( - json['ThemeSongsResult'] as Map), + : ThemeMediaResult.fromJson(json['ThemeSongsResult'] as Map), soundtrackSongsResult: json['SoundtrackSongsResult'] == null ? null - : ThemeMediaResult.fromJson( - json['SoundtrackSongsResult'] as Map), + : ThemeMediaResult.fromJson(json['SoundtrackSongsResult'] as Map), ); -Map _$AllThemeMediaResultToJson( - AllThemeMediaResult instance) => - { - if (instance.themeVideosResult?.toJson() case final value?) - 'ThemeVideosResult': value, - if (instance.themeSongsResult?.toJson() case final value?) - 'ThemeSongsResult': value, - if (instance.soundtrackSongsResult?.toJson() case final value?) - 'SoundtrackSongsResult': value, +Map _$AllThemeMediaResultToJson(AllThemeMediaResult instance) => { + if (instance.themeVideosResult?.toJson() case final value?) 'ThemeVideosResult': value, + if (instance.themeSongsResult?.toJson() case final value?) 'ThemeSongsResult': value, + if (instance.soundtrackSongsResult?.toJson() case final value?) 'SoundtrackSongsResult': value, }; ArtistInfo _$ArtistInfoFromJson(Map json) => ArtistInfo( @@ -255,75 +187,54 @@ ArtistInfo _$ArtistInfoFromJson(Map json) => ArtistInfo( year: (json['Year'] as num?)?.toInt(), indexNumber: (json['IndexNumber'] as num?)?.toInt(), parentIndexNumber: (json['ParentIndexNumber'] as num?)?.toInt(), - premiereDate: json['PremiereDate'] == null - ? null - : DateTime.parse(json['PremiereDate'] as String), + premiereDate: json['PremiereDate'] == null ? null : DateTime.parse(json['PremiereDate'] as String), isAutomated: json['IsAutomated'] as bool?, - songInfos: (json['SongInfos'] as List?) - ?.map((e) => SongInfo.fromJson(e as Map)) - .toList() ?? - [], + songInfos: + (json['SongInfos'] as List?)?.map((e) => SongInfo.fromJson(e as Map)).toList() ?? + [], ); -Map _$ArtistInfoToJson(ArtistInfo instance) => - { +Map _$ArtistInfoToJson(ArtistInfo instance) => { if (instance.name case final value?) 'Name': value, if (instance.originalTitle case final value?) 'OriginalTitle': value, if (instance.path case final value?) 'Path': value, - if (instance.metadataLanguage case final value?) - 'MetadataLanguage': value, - if (instance.metadataCountryCode case final value?) - 'MetadataCountryCode': value, + if (instance.metadataLanguage case final value?) 'MetadataLanguage': value, + if (instance.metadataCountryCode case final value?) 'MetadataCountryCode': value, if (instance.providerIds case final value?) 'ProviderIds': value, if (instance.year case final value?) 'Year': value, if (instance.indexNumber case final value?) 'IndexNumber': value, - if (instance.parentIndexNumber case final value?) - 'ParentIndexNumber': value, - if (instance.premiereDate?.toIso8601String() case final value?) - 'PremiereDate': value, + if (instance.parentIndexNumber case final value?) 'ParentIndexNumber': value, + if (instance.premiereDate?.toIso8601String() case final value?) 'PremiereDate': value, if (instance.isAutomated case final value?) 'IsAutomated': value, - if (instance.songInfos?.map((e) => e.toJson()).toList() case final value?) - 'SongInfos': value, + if (instance.songInfos?.map((e) => e.toJson()).toList() case final value?) 'SongInfos': value, }; -ArtistInfoRemoteSearchQuery _$ArtistInfoRemoteSearchQueryFromJson( - Map json) => +ArtistInfoRemoteSearchQuery _$ArtistInfoRemoteSearchQueryFromJson(Map json) => ArtistInfoRemoteSearchQuery( - searchInfo: json['SearchInfo'] == null - ? null - : ArtistInfo.fromJson(json['SearchInfo'] as Map), + searchInfo: json['SearchInfo'] == null ? null : ArtistInfo.fromJson(json['SearchInfo'] as Map), itemId: json['ItemId'] as String?, searchProviderName: json['SearchProviderName'] as String?, includeDisabledProviders: json['IncludeDisabledProviders'] as bool?, ); -Map _$ArtistInfoRemoteSearchQueryToJson( - ArtistInfoRemoteSearchQuery instance) => - { +Map _$ArtistInfoRemoteSearchQueryToJson(ArtistInfoRemoteSearchQuery instance) => { if (instance.searchInfo?.toJson() case final value?) 'SearchInfo': value, if (instance.itemId case final value?) 'ItemId': value, - if (instance.searchProviderName case final value?) - 'SearchProviderName': value, - if (instance.includeDisabledProviders case final value?) - 'IncludeDisabledProviders': value, + if (instance.searchProviderName case final value?) 'SearchProviderName': value, + if (instance.includeDisabledProviders case final value?) 'IncludeDisabledProviders': value, }; -AuthenticateUserByName _$AuthenticateUserByNameFromJson( - Map json) => - AuthenticateUserByName( +AuthenticateUserByName _$AuthenticateUserByNameFromJson(Map json) => AuthenticateUserByName( username: json['Username'] as String?, pw: json['Pw'] as String?, ); -Map _$AuthenticateUserByNameToJson( - AuthenticateUserByName instance) => - { +Map _$AuthenticateUserByNameToJson(AuthenticateUserByName instance) => { if (instance.username case final value?) 'Username': value, if (instance.pw case final value?) 'Pw': value, }; -AuthenticationInfo _$AuthenticationInfoFromJson(Map json) => - AuthenticationInfo( +AuthenticationInfo _$AuthenticationInfoFromJson(Map json) => AuthenticationInfo( id: (json['Id'] as num?)?.toInt(), accessToken: json['AccessToken'] as String?, deviceId: json['DeviceId'] as String?, @@ -332,20 +243,13 @@ AuthenticationInfo _$AuthenticationInfoFromJson(Map json) => deviceName: json['DeviceName'] as String?, userId: json['UserId'] as String?, isActive: json['IsActive'] as bool?, - dateCreated: json['DateCreated'] == null - ? null - : DateTime.parse(json['DateCreated'] as String), - dateRevoked: json['DateRevoked'] == null - ? null - : DateTime.parse(json['DateRevoked'] as String), - dateLastActivity: json['DateLastActivity'] == null - ? null - : DateTime.parse(json['DateLastActivity'] as String), + dateCreated: json['DateCreated'] == null ? null : DateTime.parse(json['DateCreated'] as String), + dateRevoked: json['DateRevoked'] == null ? null : DateTime.parse(json['DateRevoked'] as String), + dateLastActivity: json['DateLastActivity'] == null ? null : DateTime.parse(json['DateLastActivity'] as String), userName: json['UserName'] as String?, ); -Map _$AuthenticationInfoToJson(AuthenticationInfo instance) => - { +Map _$AuthenticationInfoToJson(AuthenticationInfo instance) => { if (instance.id case final value?) 'Id': value, if (instance.accessToken case final value?) 'AccessToken': value, if (instance.deviceId case final value?) 'DeviceId': value, @@ -354,110 +258,78 @@ Map _$AuthenticationInfoToJson(AuthenticationInfo instance) => if (instance.deviceName case final value?) 'DeviceName': value, if (instance.userId case final value?) 'UserId': value, if (instance.isActive case final value?) 'IsActive': value, - if (instance.dateCreated?.toIso8601String() case final value?) - 'DateCreated': value, - if (instance.dateRevoked?.toIso8601String() case final value?) - 'DateRevoked': value, - if (instance.dateLastActivity?.toIso8601String() case final value?) - 'DateLastActivity': value, + if (instance.dateCreated?.toIso8601String() case final value?) 'DateCreated': value, + if (instance.dateRevoked?.toIso8601String() case final value?) 'DateRevoked': value, + if (instance.dateLastActivity?.toIso8601String() case final value?) 'DateLastActivity': value, if (instance.userName case final value?) 'UserName': value, }; -AuthenticationInfoQueryResult _$AuthenticationInfoQueryResultFromJson( - Map json) => +AuthenticationInfoQueryResult _$AuthenticationInfoQueryResultFromJson(Map json) => AuthenticationInfoQueryResult( items: (json['Items'] as List?) - ?.map( - (e) => AuthenticationInfo.fromJson(e as Map)) + ?.map((e) => AuthenticationInfo.fromJson(e as Map)) .toList() ?? [], totalRecordCount: (json['TotalRecordCount'] as num?)?.toInt(), startIndex: (json['StartIndex'] as num?)?.toInt(), ); -Map _$AuthenticationInfoQueryResultToJson( - AuthenticationInfoQueryResult instance) => - { - if (instance.items?.map((e) => e.toJson()).toList() case final value?) - 'Items': value, - if (instance.totalRecordCount case final value?) - 'TotalRecordCount': value, +Map _$AuthenticationInfoQueryResultToJson(AuthenticationInfoQueryResult instance) => { + if (instance.items?.map((e) => e.toJson()).toList() case final value?) 'Items': value, + if (instance.totalRecordCount case final value?) 'TotalRecordCount': value, if (instance.startIndex case final value?) 'StartIndex': value, }; -AuthenticationResult _$AuthenticationResultFromJson( - Map json) => - AuthenticationResult( - user: json['User'] == null - ? null - : UserDto.fromJson(json['User'] as Map), - sessionInfo: json['SessionInfo'] == null - ? null - : SessionInfoDto.fromJson( - json['SessionInfo'] as Map), +AuthenticationResult _$AuthenticationResultFromJson(Map json) => AuthenticationResult( + user: json['User'] == null ? null : UserDto.fromJson(json['User'] as Map), + sessionInfo: + json['SessionInfo'] == null ? null : SessionInfoDto.fromJson(json['SessionInfo'] as Map), accessToken: json['AccessToken'] as String?, serverId: json['ServerId'] as String?, ); -Map _$AuthenticationResultToJson( - AuthenticationResult instance) => - { +Map _$AuthenticationResultToJson(AuthenticationResult instance) => { if (instance.user?.toJson() case final value?) 'User': value, - if (instance.sessionInfo?.toJson() case final value?) - 'SessionInfo': value, + if (instance.sessionInfo?.toJson() case final value?) 'SessionInfo': value, if (instance.accessToken case final value?) 'AccessToken': value, if (instance.serverId case final value?) 'ServerId': value, }; -BackupManifestDto _$BackupManifestDtoFromJson(Map json) => - BackupManifestDto( +BackupManifestDto _$BackupManifestDtoFromJson(Map json) => BackupManifestDto( serverVersion: json['ServerVersion'] as String?, backupEngineVersion: json['BackupEngineVersion'] as String?, - dateCreated: json['DateCreated'] == null - ? null - : DateTime.parse(json['DateCreated'] as String), + dateCreated: json['DateCreated'] == null ? null : DateTime.parse(json['DateCreated'] as String), path: json['Path'] as String?, - options: json['Options'] == null - ? null - : BackupOptionsDto.fromJson(json['Options'] as Map), + options: json['Options'] == null ? null : BackupOptionsDto.fromJson(json['Options'] as Map), ); -Map _$BackupManifestDtoToJson(BackupManifestDto instance) => - { +Map _$BackupManifestDtoToJson(BackupManifestDto instance) => { if (instance.serverVersion case final value?) 'ServerVersion': value, - if (instance.backupEngineVersion case final value?) - 'BackupEngineVersion': value, - if (instance.dateCreated?.toIso8601String() case final value?) - 'DateCreated': value, + if (instance.backupEngineVersion case final value?) 'BackupEngineVersion': value, + if (instance.dateCreated?.toIso8601String() case final value?) 'DateCreated': value, if (instance.path case final value?) 'Path': value, if (instance.options?.toJson() case final value?) 'Options': value, }; -BackupOptionsDto _$BackupOptionsDtoFromJson(Map json) => - BackupOptionsDto( +BackupOptionsDto _$BackupOptionsDtoFromJson(Map json) => BackupOptionsDto( metadata: json['Metadata'] as bool?, trickplay: json['Trickplay'] as bool?, subtitles: json['Subtitles'] as bool?, database: json['Database'] as bool?, ); -Map _$BackupOptionsDtoToJson(BackupOptionsDto instance) => - { +Map _$BackupOptionsDtoToJson(BackupOptionsDto instance) => { if (instance.metadata case final value?) 'Metadata': value, if (instance.trickplay case final value?) 'Trickplay': value, if (instance.subtitles case final value?) 'Subtitles': value, if (instance.database case final value?) 'Database': value, }; -BackupRestoreRequestDto _$BackupRestoreRequestDtoFromJson( - Map json) => - BackupRestoreRequestDto( +BackupRestoreRequestDto _$BackupRestoreRequestDtoFromJson(Map json) => BackupRestoreRequestDto( archiveFileName: json['ArchiveFileName'] as String?, ); -Map _$BackupRestoreRequestDtoToJson( - BackupRestoreRequestDto instance) => - { +Map _$BackupRestoreRequestDtoToJson(BackupRestoreRequestDto instance) => { if (instance.archiveFileName case final value?) 'ArchiveFileName': value, }; @@ -469,31 +341,24 @@ BaseItemDto _$BaseItemDtoFromJson(Map json) => BaseItemDto( etag: json['Etag'] as String?, sourceType: json['SourceType'] as String?, playlistItemId: json['PlaylistItemId'] as String?, - dateCreated: json['DateCreated'] == null - ? null - : DateTime.parse(json['DateCreated'] as String), - dateLastMediaAdded: json['DateLastMediaAdded'] == null - ? null - : DateTime.parse(json['DateLastMediaAdded'] as String), + dateCreated: json['DateCreated'] == null ? null : DateTime.parse(json['DateCreated'] as String), + dateLastMediaAdded: + json['DateLastMediaAdded'] == null ? null : DateTime.parse(json['DateLastMediaAdded'] as String), extraType: extraTypeNullableFromJson(json['ExtraType']), airsBeforeSeasonNumber: (json['AirsBeforeSeasonNumber'] as num?)?.toInt(), airsAfterSeasonNumber: (json['AirsAfterSeasonNumber'] as num?)?.toInt(), - airsBeforeEpisodeNumber: - (json['AirsBeforeEpisodeNumber'] as num?)?.toInt(), + airsBeforeEpisodeNumber: (json['AirsBeforeEpisodeNumber'] as num?)?.toInt(), canDelete: json['CanDelete'] as bool?, canDownload: json['CanDownload'] as bool?, hasLyrics: json['HasLyrics'] as bool?, hasSubtitles: json['HasSubtitles'] as bool?, preferredMetadataLanguage: json['PreferredMetadataLanguage'] as String?, - preferredMetadataCountryCode: - json['PreferredMetadataCountryCode'] as String?, + preferredMetadataCountryCode: json['PreferredMetadataCountryCode'] as String?, container: json['Container'] as String?, sortName: json['SortName'] as String?, forcedSortName: json['ForcedSortName'] as String?, video3DFormat: video3DFormatNullableFromJson(json['Video3DFormat']), - premiereDate: json['PremiereDate'] == null - ? null - : DateTime.parse(json['PremiereDate'] as String), + premiereDate: json['PremiereDate'] == null ? null : DateTime.parse(json['PremiereDate'] as String), externalUrls: (json['ExternalUrls'] as List?) ?.map((e) => ExternalUrl.fromJson(e as Map)) .toList() ?? @@ -503,10 +368,7 @@ BaseItemDto _$BaseItemDtoFromJson(Map json) => BaseItemDto( .toList() ?? [], criticRating: (json['CriticRating'] as num?)?.toDouble(), - productionLocations: (json['ProductionLocations'] as List?) - ?.map((e) => e as String) - .toList() ?? - [], + productionLocations: (json['ProductionLocations'] as List?)?.map((e) => e as String).toList() ?? [], path: json['Path'] as String?, enableMediaSourceDisplay: json['EnableMediaSourceDisplay'] as bool?, officialRating: json['OfficialRating'] as String?, @@ -514,14 +376,8 @@ BaseItemDto _$BaseItemDtoFromJson(Map json) => BaseItemDto( channelId: json['ChannelId'] as String?, channelName: json['ChannelName'] as String?, overview: json['Overview'] as String?, - taglines: (json['Taglines'] as List?) - ?.map((e) => e as String) - .toList() ?? - [], - genres: (json['Genres'] as List?) - ?.map((e) => e as String) - .toList() ?? - [], + taglines: (json['Taglines'] as List?)?.map((e) => e as String).toList() ?? [], + genres: (json['Genres'] as List?)?.map((e) => e as String).toList() ?? [], communityRating: (json['CommunityRating'] as num?)?.toDouble(), cumulativeRunTimeTicks: (json['CumulativeRunTimeTicks'] as num?)?.toInt(), runTimeTicks: (json['RunTimeTicks'] as num?)?.toInt(), @@ -543,14 +399,12 @@ BaseItemDto _$BaseItemDtoFromJson(Map json) => BaseItemDto( isFolder: json['IsFolder'] as bool?, parentId: json['ParentId'] as String?, type: baseItemKindNullableFromJson(json['Type']), - people: (json['People'] as List?) - ?.map((e) => BaseItemPerson.fromJson(e as Map)) - .toList() ?? - [], - studios: (json['Studios'] as List?) - ?.map((e) => NameGuidPair.fromJson(e as Map)) - .toList() ?? - [], + people: + (json['People'] as List?)?.map((e) => BaseItemPerson.fromJson(e as Map)).toList() ?? + [], + studios: + (json['Studios'] as List?)?.map((e) => NameGuidPair.fromJson(e as Map)).toList() ?? + [], genreItems: (json['GenreItems'] as List?) ?.map((e) => NameGuidPair.fromJson(e as Map)) .toList() ?? @@ -558,14 +412,9 @@ BaseItemDto _$BaseItemDtoFromJson(Map json) => BaseItemDto( parentLogoItemId: json['ParentLogoItemId'] as String?, parentBackdropItemId: json['ParentBackdropItemId'] as String?, parentBackdropImageTags: - (json['ParentBackdropImageTags'] as List?) - ?.map((e) => e as String) - .toList() ?? - [], + (json['ParentBackdropImageTags'] as List?)?.map((e) => e as String).toList() ?? [], localTrailerCount: (json['LocalTrailerCount'] as num?)?.toInt(), - userData: json['UserData'] == null - ? null - : UserItemDataDto.fromJson(json['UserData'] as Map), + userData: json['UserData'] == null ? null : UserItemDataDto.fromJson(json['UserData'] as Map), recursiveItemCount: (json['RecursiveItemCount'] as num?)?.toInt(), childCount: (json['ChildCount'] as num?)?.toInt(), seriesName: json['SeriesName'] as String?, @@ -576,15 +425,9 @@ BaseItemDto _$BaseItemDtoFromJson(Map json) => BaseItemDto( status: json['Status'] as String?, airTime: json['AirTime'] as String?, airDays: dayOfWeekListFromJson(json['AirDays'] as List?), - tags: - (json['Tags'] as List?)?.map((e) => e as String).toList() ?? - [], - primaryImageAspectRatio: - (json['PrimaryImageAspectRatio'] as num?)?.toDouble(), - artists: (json['Artists'] as List?) - ?.map((e) => e as String) - .toList() ?? - [], + tags: (json['Tags'] as List?)?.map((e) => e as String).toList() ?? [], + primaryImageAspectRatio: (json['PrimaryImageAspectRatio'] as num?)?.toDouble(), + artists: (json['Artists'] as List?)?.map((e) => e as String).toList() ?? [], artistItems: (json['ArtistItems'] as List?) ?.map((e) => NameGuidPair.fromJson(e as Map)) .toList() ?? @@ -609,39 +452,28 @@ BaseItemDto _$BaseItemDtoFromJson(Map json) => BaseItemDto( partCount: (json['PartCount'] as num?)?.toInt(), mediaSourceCount: (json['MediaSourceCount'] as num?)?.toInt(), imageTags: json['ImageTags'] as Map?, - backdropImageTags: (json['BackdropImageTags'] as List?) - ?.map((e) => e as String) - .toList() ?? - [], - screenshotImageTags: (json['ScreenshotImageTags'] as List?) - ?.map((e) => e as String) - .toList() ?? - [], + backdropImageTags: (json['BackdropImageTags'] as List?)?.map((e) => e as String).toList() ?? [], + screenshotImageTags: (json['ScreenshotImageTags'] as List?)?.map((e) => e as String).toList() ?? [], parentLogoImageTag: json['ParentLogoImageTag'] as String?, parentArtItemId: json['ParentArtItemId'] as String?, parentArtImageTag: json['ParentArtImageTag'] as String?, seriesThumbImageTag: json['SeriesThumbImageTag'] as String?, imageBlurHashes: json['ImageBlurHashes'] == null ? null - : BaseItemDto$ImageBlurHashes.fromJson( - json['ImageBlurHashes'] as Map), + : BaseItemDto$ImageBlurHashes.fromJson(json['ImageBlurHashes'] as Map), seriesStudio: json['SeriesStudio'] as String?, parentThumbItemId: json['ParentThumbItemId'] as String?, parentThumbImageTag: json['ParentThumbImageTag'] as String?, parentPrimaryImageItemId: json['ParentPrimaryImageItemId'] as String?, parentPrimaryImageTag: json['ParentPrimaryImageTag'] as String?, - chapters: (json['Chapters'] as List?) - ?.map((e) => ChapterInfo.fromJson(e as Map)) - .toList() ?? - [], + chapters: + (json['Chapters'] as List?)?.map((e) => ChapterInfo.fromJson(e as Map)).toList() ?? + [], trickplay: json['Trickplay'] as Map?, locationType: locationTypeNullableFromJson(json['LocationType']), isoType: isoTypeNullableFromJson(json['IsoType']), - mediaType: - BaseItemDto.mediaTypeMediaTypeNullableFromJson(json['MediaType']), - endDate: json['EndDate'] == null - ? null - : DateTime.parse(json['EndDate'] as String), + mediaType: BaseItemDto.mediaTypeMediaTypeNullableFromJson(json['MediaType']), + endDate: json['EndDate'] == null ? null : DateTime.parse(json['EndDate'] as String), lockedFields: metadataFieldListFromJson(json['LockedFields'] as List?), trailerCount: (json['TrailerCount'] as num?)?.toInt(), movieCount: (json['MovieCount'] as num?)?.toInt(), @@ -660,8 +492,7 @@ BaseItemDto _$BaseItemDtoFromJson(Map json) => BaseItemDto( software: json['Software'] as String?, exposureTime: (json['ExposureTime'] as num?)?.toDouble(), focalLength: (json['FocalLength'] as num?)?.toDouble(), - imageOrientation: - imageOrientationNullableFromJson(json['ImageOrientation']), + imageOrientation: imageOrientationNullableFromJson(json['ImageOrientation']), aperture: (json['Aperture'] as num?)?.toDouble(), shutterSpeed: (json['ShutterSpeed'] as num?)?.toDouble(), latitude: (json['Latitude'] as num?)?.toDouble(), @@ -671,9 +502,7 @@ BaseItemDto _$BaseItemDtoFromJson(Map json) => BaseItemDto( seriesTimerId: json['SeriesTimerId'] as String?, programId: json['ProgramId'] as String?, channelPrimaryImageTag: json['ChannelPrimaryImageTag'] as String?, - startDate: json['StartDate'] == null - ? null - : DateTime.parse(json['StartDate'] as String), + startDate: json['StartDate'] == null ? null : DateTime.parse(json['StartDate'] as String), completionPercentage: (json['CompletionPercentage'] as num?)?.toDouble(), isRepeat: json['IsRepeat'] as bool?, episodeTitle: json['EpisodeTitle'] as String?, @@ -688,14 +517,11 @@ BaseItemDto _$BaseItemDtoFromJson(Map json) => BaseItemDto( isPremiere: json['IsPremiere'] as bool?, timerId: json['TimerId'] as String?, normalizationGain: (json['NormalizationGain'] as num?)?.toDouble(), - currentProgram: json['CurrentProgram'] == null - ? null - : BaseItemDto.fromJson( - json['CurrentProgram'] as Map), + currentProgram: + json['CurrentProgram'] == null ? null : BaseItemDto.fromJson(json['CurrentProgram'] as Map), ); -Map _$BaseItemDtoToJson(BaseItemDto instance) => - { +Map _$BaseItemDtoToJson(BaseItemDto instance) => { if (instance.name case final value?) 'Name': value, if (instance.originalTitle case final value?) 'OriginalTitle': value, if (instance.serverId case final value?) 'ServerId': value, @@ -703,45 +529,29 @@ Map _$BaseItemDtoToJson(BaseItemDto instance) => if (instance.etag case final value?) 'Etag': value, if (instance.sourceType case final value?) 'SourceType': value, if (instance.playlistItemId case final value?) 'PlaylistItemId': value, - if (instance.dateCreated?.toIso8601String() case final value?) - 'DateCreated': value, - if (instance.dateLastMediaAdded?.toIso8601String() case final value?) - 'DateLastMediaAdded': value, - if (extraTypeNullableToJson(instance.extraType) case final value?) - 'ExtraType': value, - if (instance.airsBeforeSeasonNumber case final value?) - 'AirsBeforeSeasonNumber': value, - if (instance.airsAfterSeasonNumber case final value?) - 'AirsAfterSeasonNumber': value, - if (instance.airsBeforeEpisodeNumber case final value?) - 'AirsBeforeEpisodeNumber': value, + if (instance.dateCreated?.toIso8601String() case final value?) 'DateCreated': value, + if (instance.dateLastMediaAdded?.toIso8601String() case final value?) 'DateLastMediaAdded': value, + if (extraTypeNullableToJson(instance.extraType) case final value?) 'ExtraType': value, + if (instance.airsBeforeSeasonNumber case final value?) 'AirsBeforeSeasonNumber': value, + if (instance.airsAfterSeasonNumber case final value?) 'AirsAfterSeasonNumber': value, + if (instance.airsBeforeEpisodeNumber case final value?) 'AirsBeforeEpisodeNumber': value, if (instance.canDelete case final value?) 'CanDelete': value, if (instance.canDownload case final value?) 'CanDownload': value, if (instance.hasLyrics case final value?) 'HasLyrics': value, if (instance.hasSubtitles case final value?) 'HasSubtitles': value, - if (instance.preferredMetadataLanguage case final value?) - 'PreferredMetadataLanguage': value, - if (instance.preferredMetadataCountryCode case final value?) - 'PreferredMetadataCountryCode': value, + if (instance.preferredMetadataLanguage case final value?) 'PreferredMetadataLanguage': value, + if (instance.preferredMetadataCountryCode case final value?) 'PreferredMetadataCountryCode': value, if (instance.container case final value?) 'Container': value, if (instance.sortName case final value?) 'SortName': value, if (instance.forcedSortName case final value?) 'ForcedSortName': value, - if (video3DFormatNullableToJson(instance.video3DFormat) case final value?) - 'Video3DFormat': value, - if (instance.premiereDate?.toIso8601String() case final value?) - 'PremiereDate': value, - if (instance.externalUrls?.map((e) => e.toJson()).toList() - case final value?) - 'ExternalUrls': value, - if (instance.mediaSources?.map((e) => e.toJson()).toList() - case final value?) - 'MediaSources': value, + if (video3DFormatNullableToJson(instance.video3DFormat) case final value?) 'Video3DFormat': value, + if (instance.premiereDate?.toIso8601String() case final value?) 'PremiereDate': value, + if (instance.externalUrls?.map((e) => e.toJson()).toList() case final value?) 'ExternalUrls': value, + if (instance.mediaSources?.map((e) => e.toJson()).toList() case final value?) 'MediaSources': value, if (instance.criticRating case final value?) 'CriticRating': value, - if (instance.productionLocations case final value?) - 'ProductionLocations': value, + if (instance.productionLocations case final value?) 'ProductionLocations': value, if (instance.path case final value?) 'Path': value, - if (instance.enableMediaSourceDisplay case final value?) - 'EnableMediaSourceDisplay': value, + if (instance.enableMediaSourceDisplay case final value?) 'EnableMediaSourceDisplay': value, if (instance.officialRating case final value?) 'OfficialRating': value, if (instance.customRating case final value?) 'CustomRating': value, if (instance.channelId case final value?) 'ChannelId': value, @@ -750,11 +560,9 @@ Map _$BaseItemDtoToJson(BaseItemDto instance) => if (instance.taglines case final value?) 'Taglines': value, if (instance.genres case final value?) 'Genres': value, if (instance.communityRating case final value?) 'CommunityRating': value, - if (instance.cumulativeRunTimeTicks case final value?) - 'CumulativeRunTimeTicks': value, + if (instance.cumulativeRunTimeTicks case final value?) 'CumulativeRunTimeTicks': value, if (instance.runTimeTicks case final value?) 'RunTimeTicks': value, - if (playAccessNullableToJson(instance.playAccess) case final value?) - 'PlayAccess': value, + if (playAccessNullableToJson(instance.playAccess) case final value?) 'PlayAccess': value, if (instance.aspectRatio case final value?) 'AspectRatio': value, if (instance.productionYear case final value?) 'ProductionYear': value, if (instance.isPlaceHolder case final value?) 'IsPlaceHolder': value, @@ -762,110 +570,67 @@ Map _$BaseItemDtoToJson(BaseItemDto instance) => if (instance.channelNumber case final value?) 'ChannelNumber': value, if (instance.indexNumber case final value?) 'IndexNumber': value, if (instance.indexNumberEnd case final value?) 'IndexNumberEnd': value, - if (instance.parentIndexNumber case final value?) - 'ParentIndexNumber': value, - if (instance.remoteTrailers?.map((e) => e.toJson()).toList() - case final value?) - 'RemoteTrailers': value, + if (instance.parentIndexNumber case final value?) 'ParentIndexNumber': value, + if (instance.remoteTrailers?.map((e) => e.toJson()).toList() case final value?) 'RemoteTrailers': value, if (instance.providerIds case final value?) 'ProviderIds': value, if (instance.isHD case final value?) 'IsHD': value, if (instance.isFolder case final value?) 'IsFolder': value, if (instance.parentId case final value?) 'ParentId': value, - if (baseItemKindNullableToJson(instance.type) case final value?) - 'Type': value, - if (instance.people?.map((e) => e.toJson()).toList() case final value?) - 'People': value, - if (instance.studios?.map((e) => e.toJson()).toList() case final value?) - 'Studios': value, - if (instance.genreItems?.map((e) => e.toJson()).toList() - case final value?) - 'GenreItems': value, - if (instance.parentLogoItemId case final value?) - 'ParentLogoItemId': value, - if (instance.parentBackdropItemId case final value?) - 'ParentBackdropItemId': value, - if (instance.parentBackdropImageTags case final value?) - 'ParentBackdropImageTags': value, - if (instance.localTrailerCount case final value?) - 'LocalTrailerCount': value, + if (baseItemKindNullableToJson(instance.type) case final value?) 'Type': value, + if (instance.people?.map((e) => e.toJson()).toList() case final value?) 'People': value, + if (instance.studios?.map((e) => e.toJson()).toList() case final value?) 'Studios': value, + if (instance.genreItems?.map((e) => e.toJson()).toList() case final value?) 'GenreItems': value, + if (instance.parentLogoItemId case final value?) 'ParentLogoItemId': value, + if (instance.parentBackdropItemId case final value?) 'ParentBackdropItemId': value, + if (instance.parentBackdropImageTags case final value?) 'ParentBackdropImageTags': value, + if (instance.localTrailerCount case final value?) 'LocalTrailerCount': value, if (instance.userData?.toJson() case final value?) 'UserData': value, - if (instance.recursiveItemCount case final value?) - 'RecursiveItemCount': value, + if (instance.recursiveItemCount case final value?) 'RecursiveItemCount': value, if (instance.childCount case final value?) 'ChildCount': value, if (instance.seriesName case final value?) 'SeriesName': value, if (instance.seriesId case final value?) 'SeriesId': value, if (instance.seasonId case final value?) 'SeasonId': value, - if (instance.specialFeatureCount case final value?) - 'SpecialFeatureCount': value, - if (instance.displayPreferencesId case final value?) - 'DisplayPreferencesId': value, + if (instance.specialFeatureCount case final value?) 'SpecialFeatureCount': value, + if (instance.displayPreferencesId case final value?) 'DisplayPreferencesId': value, if (instance.status case final value?) 'Status': value, if (instance.airTime case final value?) 'AirTime': value, 'AirDays': dayOfWeekListToJson(instance.airDays), if (instance.tags case final value?) 'Tags': value, - if (instance.primaryImageAspectRatio case final value?) - 'PrimaryImageAspectRatio': value, + if (instance.primaryImageAspectRatio case final value?) 'PrimaryImageAspectRatio': value, if (instance.artists case final value?) 'Artists': value, - if (instance.artistItems?.map((e) => e.toJson()).toList() - case final value?) - 'ArtistItems': value, + if (instance.artistItems?.map((e) => e.toJson()).toList() case final value?) 'ArtistItems': value, if (instance.album case final value?) 'Album': value, - if (collectionTypeNullableToJson(instance.collectionType) - case final value?) - 'CollectionType': value, + if (collectionTypeNullableToJson(instance.collectionType) case final value?) 'CollectionType': value, if (instance.displayOrder case final value?) 'DisplayOrder': value, if (instance.albumId case final value?) 'AlbumId': value, - if (instance.albumPrimaryImageTag case final value?) - 'AlbumPrimaryImageTag': value, - if (instance.seriesPrimaryImageTag case final value?) - 'SeriesPrimaryImageTag': value, + if (instance.albumPrimaryImageTag case final value?) 'AlbumPrimaryImageTag': value, + if (instance.seriesPrimaryImageTag case final value?) 'SeriesPrimaryImageTag': value, if (instance.albumArtist case final value?) 'AlbumArtist': value, - if (instance.albumArtists?.map((e) => e.toJson()).toList() - case final value?) - 'AlbumArtists': value, + if (instance.albumArtists?.map((e) => e.toJson()).toList() case final value?) 'AlbumArtists': value, if (instance.seasonName case final value?) 'SeasonName': value, - if (instance.mediaStreams?.map((e) => e.toJson()).toList() - case final value?) - 'MediaStreams': value, - if (videoTypeNullableToJson(instance.videoType) case final value?) - 'VideoType': value, + if (instance.mediaStreams?.map((e) => e.toJson()).toList() case final value?) 'MediaStreams': value, + if (videoTypeNullableToJson(instance.videoType) case final value?) 'VideoType': value, if (instance.partCount case final value?) 'PartCount': value, - if (instance.mediaSourceCount case final value?) - 'MediaSourceCount': value, + if (instance.mediaSourceCount case final value?) 'MediaSourceCount': value, if (instance.imageTags case final value?) 'ImageTags': value, - if (instance.backdropImageTags case final value?) - 'BackdropImageTags': value, - if (instance.screenshotImageTags case final value?) - 'ScreenshotImageTags': value, - if (instance.parentLogoImageTag case final value?) - 'ParentLogoImageTag': value, + if (instance.backdropImageTags case final value?) 'BackdropImageTags': value, + if (instance.screenshotImageTags case final value?) 'ScreenshotImageTags': value, + if (instance.parentLogoImageTag case final value?) 'ParentLogoImageTag': value, if (instance.parentArtItemId case final value?) 'ParentArtItemId': value, - if (instance.parentArtImageTag case final value?) - 'ParentArtImageTag': value, - if (instance.seriesThumbImageTag case final value?) - 'SeriesThumbImageTag': value, - if (instance.imageBlurHashes?.toJson() case final value?) - 'ImageBlurHashes': value, + if (instance.parentArtImageTag case final value?) 'ParentArtImageTag': value, + if (instance.seriesThumbImageTag case final value?) 'SeriesThumbImageTag': value, + if (instance.imageBlurHashes?.toJson() case final value?) 'ImageBlurHashes': value, if (instance.seriesStudio case final value?) 'SeriesStudio': value, - if (instance.parentThumbItemId case final value?) - 'ParentThumbItemId': value, - if (instance.parentThumbImageTag case final value?) - 'ParentThumbImageTag': value, - if (instance.parentPrimaryImageItemId case final value?) - 'ParentPrimaryImageItemId': value, - if (instance.parentPrimaryImageTag case final value?) - 'ParentPrimaryImageTag': value, - if (instance.chapters?.map((e) => e.toJson()).toList() case final value?) - 'Chapters': value, + if (instance.parentThumbItemId case final value?) 'ParentThumbItemId': value, + if (instance.parentThumbImageTag case final value?) 'ParentThumbImageTag': value, + if (instance.parentPrimaryImageItemId case final value?) 'ParentPrimaryImageItemId': value, + if (instance.parentPrimaryImageTag case final value?) 'ParentPrimaryImageTag': value, + if (instance.chapters?.map((e) => e.toJson()).toList() case final value?) 'Chapters': value, if (instance.trickplay case final value?) 'Trickplay': value, - if (locationTypeNullableToJson(instance.locationType) case final value?) - 'LocationType': value, - if (isoTypeNullableToJson(instance.isoType) case final value?) - 'IsoType': value, - if (mediaTypeNullableToJson(instance.mediaType) case final value?) - 'MediaType': value, - if (instance.endDate?.toIso8601String() case final value?) - 'EndDate': value, + if (locationTypeNullableToJson(instance.locationType) case final value?) 'LocationType': value, + if (isoTypeNullableToJson(instance.isoType) case final value?) 'IsoType': value, + if (mediaTypeNullableToJson(instance.mediaType) case final value?) 'MediaType': value, + if (instance.endDate?.toIso8601String() case final value?) 'EndDate': value, 'LockedFields': metadataFieldListToJson(instance.lockedFields), if (instance.trailerCount case final value?) 'TrailerCount': value, if (instance.movieCount case final value?) 'MovieCount': value, @@ -884,9 +649,7 @@ Map _$BaseItemDtoToJson(BaseItemDto instance) => if (instance.software case final value?) 'Software': value, if (instance.exposureTime case final value?) 'ExposureTime': value, if (instance.focalLength case final value?) 'FocalLength': value, - if (imageOrientationNullableToJson(instance.imageOrientation) - case final value?) - 'ImageOrientation': value, + if (imageOrientationNullableToJson(instance.imageOrientation) case final value?) 'ImageOrientation': value, if (instance.aperture case final value?) 'Aperture': value, if (instance.shutterSpeed case final value?) 'ShutterSpeed': value, if (instance.latitude case final value?) 'Latitude': value, @@ -895,18 +658,13 @@ Map _$BaseItemDtoToJson(BaseItemDto instance) => if (instance.isoSpeedRating case final value?) 'IsoSpeedRating': value, if (instance.seriesTimerId case final value?) 'SeriesTimerId': value, if (instance.programId case final value?) 'ProgramId': value, - if (instance.channelPrimaryImageTag case final value?) - 'ChannelPrimaryImageTag': value, - if (instance.startDate?.toIso8601String() case final value?) - 'StartDate': value, - if (instance.completionPercentage case final value?) - 'CompletionPercentage': value, + if (instance.channelPrimaryImageTag case final value?) 'ChannelPrimaryImageTag': value, + if (instance.startDate?.toIso8601String() case final value?) 'StartDate': value, + if (instance.completionPercentage case final value?) 'CompletionPercentage': value, if (instance.isRepeat case final value?) 'IsRepeat': value, if (instance.episodeTitle case final value?) 'EpisodeTitle': value, - if (channelTypeNullableToJson(instance.channelType) case final value?) - 'ChannelType': value, - if (programAudioNullableToJson(instance.audio) case final value?) - 'Audio': value, + if (channelTypeNullableToJson(instance.channelType) case final value?) 'ChannelType': value, + if (programAudioNullableToJson(instance.audio) case final value?) 'Audio': value, if (instance.isMovie case final value?) 'IsMovie': value, if (instance.isSports case final value?) 'IsSports': value, if (instance.isSeries case final value?) 'IsSeries': value, @@ -915,35 +673,24 @@ Map _$BaseItemDtoToJson(BaseItemDto instance) => if (instance.isKids case final value?) 'IsKids': value, if (instance.isPremiere case final value?) 'IsPremiere': value, if (instance.timerId case final value?) 'TimerId': value, - if (instance.normalizationGain case final value?) - 'NormalizationGain': value, - if (instance.currentProgram?.toJson() case final value?) - 'CurrentProgram': value, + if (instance.normalizationGain case final value?) 'NormalizationGain': value, + if (instance.currentProgram?.toJson() case final value?) 'CurrentProgram': value, }; -BaseItemDtoQueryResult _$BaseItemDtoQueryResultFromJson( - Map json) => - BaseItemDtoQueryResult( - items: (json['Items'] as List?) - ?.map((e) => BaseItemDto.fromJson(e as Map)) - .toList() ?? - [], +BaseItemDtoQueryResult _$BaseItemDtoQueryResultFromJson(Map json) => BaseItemDtoQueryResult( + items: + (json['Items'] as List?)?.map((e) => BaseItemDto.fromJson(e as Map)).toList() ?? [], totalRecordCount: (json['TotalRecordCount'] as num?)?.toInt(), startIndex: (json['StartIndex'] as num?)?.toInt(), ); -Map _$BaseItemDtoQueryResultToJson( - BaseItemDtoQueryResult instance) => - { - if (instance.items?.map((e) => e.toJson()).toList() case final value?) - 'Items': value, - if (instance.totalRecordCount case final value?) - 'TotalRecordCount': value, +Map _$BaseItemDtoQueryResultToJson(BaseItemDtoQueryResult instance) => { + if (instance.items?.map((e) => e.toJson()).toList() case final value?) 'Items': value, + if (instance.totalRecordCount case final value?) 'TotalRecordCount': value, if (instance.startIndex case final value?) 'StartIndex': value, }; -BaseItemPerson _$BaseItemPersonFromJson(Map json) => - BaseItemPerson( +BaseItemPerson _$BaseItemPersonFromJson(Map json) => BaseItemPerson( name: json['Name'] as String?, id: json['Id'] as String?, role: json['Role'] as String?, @@ -951,29 +698,21 @@ BaseItemPerson _$BaseItemPersonFromJson(Map json) => primaryImageTag: json['PrimaryImageTag'] as String?, imageBlurHashes: json['ImageBlurHashes'] == null ? null - : BaseItemPerson$ImageBlurHashes.fromJson( - json['ImageBlurHashes'] as Map), + : BaseItemPerson$ImageBlurHashes.fromJson(json['ImageBlurHashes'] as Map), ); -Map _$BaseItemPersonToJson(BaseItemPerson instance) => - { +Map _$BaseItemPersonToJson(BaseItemPerson instance) => { if (instance.name case final value?) 'Name': value, if (instance.id case final value?) 'Id': value, if (instance.role case final value?) 'Role': value, - if (personKindNullableToJson(instance.type) case final value?) - 'Type': value, + if (personKindNullableToJson(instance.type) case final value?) 'Type': value, if (instance.primaryImageTag case final value?) 'PrimaryImageTag': value, - if (instance.imageBlurHashes?.toJson() case final value?) - 'ImageBlurHashes': value, + if (instance.imageBlurHashes?.toJson() case final value?) 'ImageBlurHashes': value, }; -BasePluginConfiguration _$BasePluginConfigurationFromJson( - Map json) => - BasePluginConfiguration(); +BasePluginConfiguration _$BasePluginConfigurationFromJson(Map json) => BasePluginConfiguration(); -Map _$BasePluginConfigurationToJson( - BasePluginConfiguration instance) => - {}; +Map _$BasePluginConfigurationToJson(BasePluginConfiguration instance) => {}; BookInfo _$BookInfoFromJson(Map json) => BookInfo( name: json['Name'] as String?, @@ -985,9 +724,7 @@ BookInfo _$BookInfoFromJson(Map json) => BookInfo( year: (json['Year'] as num?)?.toInt(), indexNumber: (json['IndexNumber'] as num?)?.toInt(), parentIndexNumber: (json['ParentIndexNumber'] as num?)?.toInt(), - premiereDate: json['PremiereDate'] == null - ? null - : DateTime.parse(json['PremiereDate'] as String), + premiereDate: json['PremiereDate'] == null ? null : DateTime.parse(json['PremiereDate'] as String), isAutomated: json['IsAutomated'] as bool?, seriesName: json['SeriesName'] as String?, ); @@ -996,41 +733,29 @@ Map _$BookInfoToJson(BookInfo instance) => { if (instance.name case final value?) 'Name': value, if (instance.originalTitle case final value?) 'OriginalTitle': value, if (instance.path case final value?) 'Path': value, - if (instance.metadataLanguage case final value?) - 'MetadataLanguage': value, - if (instance.metadataCountryCode case final value?) - 'MetadataCountryCode': value, + if (instance.metadataLanguage case final value?) 'MetadataLanguage': value, + if (instance.metadataCountryCode case final value?) 'MetadataCountryCode': value, if (instance.providerIds case final value?) 'ProviderIds': value, if (instance.year case final value?) 'Year': value, if (instance.indexNumber case final value?) 'IndexNumber': value, - if (instance.parentIndexNumber case final value?) - 'ParentIndexNumber': value, - if (instance.premiereDate?.toIso8601String() case final value?) - 'PremiereDate': value, + if (instance.parentIndexNumber case final value?) 'ParentIndexNumber': value, + if (instance.premiereDate?.toIso8601String() case final value?) 'PremiereDate': value, if (instance.isAutomated case final value?) 'IsAutomated': value, if (instance.seriesName case final value?) 'SeriesName': value, }; -BookInfoRemoteSearchQuery _$BookInfoRemoteSearchQueryFromJson( - Map json) => - BookInfoRemoteSearchQuery( - searchInfo: json['SearchInfo'] == null - ? null - : BookInfo.fromJson(json['SearchInfo'] as Map), +BookInfoRemoteSearchQuery _$BookInfoRemoteSearchQueryFromJson(Map json) => BookInfoRemoteSearchQuery( + searchInfo: json['SearchInfo'] == null ? null : BookInfo.fromJson(json['SearchInfo'] as Map), itemId: json['ItemId'] as String?, searchProviderName: json['SearchProviderName'] as String?, includeDisabledProviders: json['IncludeDisabledProviders'] as bool?, ); -Map _$BookInfoRemoteSearchQueryToJson( - BookInfoRemoteSearchQuery instance) => - { +Map _$BookInfoRemoteSearchQueryToJson(BookInfoRemoteSearchQuery instance) => { if (instance.searchInfo?.toJson() case final value?) 'SearchInfo': value, if (instance.itemId case final value?) 'ItemId': value, - if (instance.searchProviderName case final value?) - 'SearchProviderName': value, - if (instance.includeDisabledProviders case final value?) - 'IncludeDisabledProviders': value, + if (instance.searchProviderName case final value?) 'SearchProviderName': value, + if (instance.includeDisabledProviders case final value?) 'IncludeDisabledProviders': value, }; BoxSetInfo _$BoxSetInfoFromJson(Map json) => BoxSetInfo( @@ -1043,144 +768,108 @@ BoxSetInfo _$BoxSetInfoFromJson(Map json) => BoxSetInfo( year: (json['Year'] as num?)?.toInt(), indexNumber: (json['IndexNumber'] as num?)?.toInt(), parentIndexNumber: (json['ParentIndexNumber'] as num?)?.toInt(), - premiereDate: json['PremiereDate'] == null - ? null - : DateTime.parse(json['PremiereDate'] as String), + premiereDate: json['PremiereDate'] == null ? null : DateTime.parse(json['PremiereDate'] as String), isAutomated: json['IsAutomated'] as bool?, ); -Map _$BoxSetInfoToJson(BoxSetInfo instance) => - { +Map _$BoxSetInfoToJson(BoxSetInfo instance) => { if (instance.name case final value?) 'Name': value, if (instance.originalTitle case final value?) 'OriginalTitle': value, if (instance.path case final value?) 'Path': value, - if (instance.metadataLanguage case final value?) - 'MetadataLanguage': value, - if (instance.metadataCountryCode case final value?) - 'MetadataCountryCode': value, + if (instance.metadataLanguage case final value?) 'MetadataLanguage': value, + if (instance.metadataCountryCode case final value?) 'MetadataCountryCode': value, if (instance.providerIds case final value?) 'ProviderIds': value, if (instance.year case final value?) 'Year': value, if (instance.indexNumber case final value?) 'IndexNumber': value, - if (instance.parentIndexNumber case final value?) - 'ParentIndexNumber': value, - if (instance.premiereDate?.toIso8601String() case final value?) - 'PremiereDate': value, + if (instance.parentIndexNumber case final value?) 'ParentIndexNumber': value, + if (instance.premiereDate?.toIso8601String() case final value?) 'PremiereDate': value, if (instance.isAutomated case final value?) 'IsAutomated': value, }; -BoxSetInfoRemoteSearchQuery _$BoxSetInfoRemoteSearchQueryFromJson( - Map json) => +BoxSetInfoRemoteSearchQuery _$BoxSetInfoRemoteSearchQueryFromJson(Map json) => BoxSetInfoRemoteSearchQuery( - searchInfo: json['SearchInfo'] == null - ? null - : BoxSetInfo.fromJson(json['SearchInfo'] as Map), + searchInfo: json['SearchInfo'] == null ? null : BoxSetInfo.fromJson(json['SearchInfo'] as Map), itemId: json['ItemId'] as String?, searchProviderName: json['SearchProviderName'] as String?, includeDisabledProviders: json['IncludeDisabledProviders'] as bool?, ); -Map _$BoxSetInfoRemoteSearchQueryToJson( - BoxSetInfoRemoteSearchQuery instance) => - { +Map _$BoxSetInfoRemoteSearchQueryToJson(BoxSetInfoRemoteSearchQuery instance) => { if (instance.searchInfo?.toJson() case final value?) 'SearchInfo': value, if (instance.itemId case final value?) 'ItemId': value, - if (instance.searchProviderName case final value?) - 'SearchProviderName': value, - if (instance.includeDisabledProviders case final value?) - 'IncludeDisabledProviders': value, + if (instance.searchProviderName case final value?) 'SearchProviderName': value, + if (instance.includeDisabledProviders case final value?) 'IncludeDisabledProviders': value, }; -BrandingOptionsDto _$BrandingOptionsDtoFromJson(Map json) => - BrandingOptionsDto( +BrandingOptionsDto _$BrandingOptionsDtoFromJson(Map json) => BrandingOptionsDto( loginDisclaimer: json['LoginDisclaimer'] as String?, customCss: json['CustomCss'] as String?, splashscreenEnabled: json['SplashscreenEnabled'] as bool?, ); -Map _$BrandingOptionsDtoToJson(BrandingOptionsDto instance) => - { +Map _$BrandingOptionsDtoToJson(BrandingOptionsDto instance) => { if (instance.loginDisclaimer case final value?) 'LoginDisclaimer': value, if (instance.customCss case final value?) 'CustomCss': value, - if (instance.splashscreenEnabled case final value?) - 'SplashscreenEnabled': value, + if (instance.splashscreenEnabled case final value?) 'SplashscreenEnabled': value, }; -BufferRequestDto _$BufferRequestDtoFromJson(Map json) => - BufferRequestDto( - when: - json['When'] == null ? null : DateTime.parse(json['When'] as String), +BufferRequestDto _$BufferRequestDtoFromJson(Map json) => BufferRequestDto( + when: json['When'] == null ? null : DateTime.parse(json['When'] as String), positionTicks: (json['PositionTicks'] as num?)?.toInt(), isPlaying: json['IsPlaying'] as bool?, playlistItemId: json['PlaylistItemId'] as String?, ); -Map _$BufferRequestDtoToJson(BufferRequestDto instance) => - { +Map _$BufferRequestDtoToJson(BufferRequestDto instance) => { if (instance.when?.toIso8601String() case final value?) 'When': value, if (instance.positionTicks case final value?) 'PositionTicks': value, if (instance.isPlaying case final value?) 'IsPlaying': value, if (instance.playlistItemId case final value?) 'PlaylistItemId': value, }; -CastReceiverApplication _$CastReceiverApplicationFromJson( - Map json) => - CastReceiverApplication( +CastReceiverApplication _$CastReceiverApplicationFromJson(Map json) => CastReceiverApplication( id: json['Id'] as String?, name: json['Name'] as String?, ); -Map _$CastReceiverApplicationToJson( - CastReceiverApplication instance) => - { +Map _$CastReceiverApplicationToJson(CastReceiverApplication instance) => { if (instance.id case final value?) 'Id': value, if (instance.name case final value?) 'Name': value, }; -ChannelFeatures _$ChannelFeaturesFromJson(Map json) => - ChannelFeatures( +ChannelFeatures _$ChannelFeaturesFromJson(Map json) => ChannelFeatures( name: json['Name'] as String?, id: json['Id'] as String?, canSearch: json['CanSearch'] as bool?, mediaTypes: channelMediaTypeListFromJson(json['MediaTypes'] as List?), - contentTypes: - channelMediaContentTypeListFromJson(json['ContentTypes'] as List?), + contentTypes: channelMediaContentTypeListFromJson(json['ContentTypes'] as List?), maxPageSize: (json['MaxPageSize'] as num?)?.toInt(), autoRefreshLevels: (json['AutoRefreshLevels'] as num?)?.toInt(), - defaultSortFields: - channelItemSortFieldListFromJson(json['DefaultSortFields'] as List?), + defaultSortFields: channelItemSortFieldListFromJson(json['DefaultSortFields'] as List?), supportsSortOrderToggle: json['SupportsSortOrderToggle'] as bool?, supportsLatestMedia: json['SupportsLatestMedia'] as bool?, canFilter: json['CanFilter'] as bool?, supportsContentDownloading: json['SupportsContentDownloading'] as bool?, ); -Map _$ChannelFeaturesToJson(ChannelFeatures instance) => - { +Map _$ChannelFeaturesToJson(ChannelFeatures instance) => { if (instance.name case final value?) 'Name': value, if (instance.id case final value?) 'Id': value, if (instance.canSearch case final value?) 'CanSearch': value, 'MediaTypes': channelMediaTypeListToJson(instance.mediaTypes), 'ContentTypes': channelMediaContentTypeListToJson(instance.contentTypes), if (instance.maxPageSize case final value?) 'MaxPageSize': value, - if (instance.autoRefreshLevels case final value?) - 'AutoRefreshLevels': value, - 'DefaultSortFields': - channelItemSortFieldListToJson(instance.defaultSortFields), - if (instance.supportsSortOrderToggle case final value?) - 'SupportsSortOrderToggle': value, - if (instance.supportsLatestMedia case final value?) - 'SupportsLatestMedia': value, + if (instance.autoRefreshLevels case final value?) 'AutoRefreshLevels': value, + 'DefaultSortFields': channelItemSortFieldListToJson(instance.defaultSortFields), + if (instance.supportsSortOrderToggle case final value?) 'SupportsSortOrderToggle': value, + if (instance.supportsLatestMedia case final value?) 'SupportsLatestMedia': value, if (instance.canFilter case final value?) 'CanFilter': value, - if (instance.supportsContentDownloading case final value?) - 'SupportsContentDownloading': value, + if (instance.supportsContentDownloading case final value?) 'SupportsContentDownloading': value, }; -ChannelMappingOptionsDto _$ChannelMappingOptionsDtoFromJson( - Map json) => - ChannelMappingOptionsDto( +ChannelMappingOptionsDto _$ChannelMappingOptionsDtoFromJson(Map json) => ChannelMappingOptionsDto( tunerChannels: (json['TunerChannels'] as List?) - ?.map((e) => - TunerChannelMapping.fromJson(e as Map)) + ?.map((e) => TunerChannelMapping.fromJson(e as Map)) .toList() ?? [], providerChannels: (json['ProviderChannels'] as List?) @@ -1194,17 +883,10 @@ ChannelMappingOptionsDto _$ChannelMappingOptionsDtoFromJson( providerName: json['ProviderName'] as String?, ); -Map _$ChannelMappingOptionsDtoToJson( - ChannelMappingOptionsDto instance) => - { - if (instance.tunerChannels?.map((e) => e.toJson()).toList() - case final value?) - 'TunerChannels': value, - if (instance.providerChannels?.map((e) => e.toJson()).toList() - case final value?) - 'ProviderChannels': value, - if (instance.mappings?.map((e) => e.toJson()).toList() case final value?) - 'Mappings': value, +Map _$ChannelMappingOptionsDtoToJson(ChannelMappingOptionsDto instance) => { + if (instance.tunerChannels?.map((e) => e.toJson()).toList() case final value?) 'TunerChannels': value, + if (instance.providerChannels?.map((e) => e.toJson()).toList() case final value?) 'ProviderChannels': value, + if (instance.mappings?.map((e) => e.toJson()).toList() case final value?) 'Mappings': value, if (instance.providerName case final value?) 'ProviderName': value, }; @@ -1212,66 +894,45 @@ ChapterInfo _$ChapterInfoFromJson(Map json) => ChapterInfo( startPositionTicks: (json['StartPositionTicks'] as num?)?.toInt(), name: json['Name'] as String?, imagePath: json['ImagePath'] as String?, - imageDateModified: json['ImageDateModified'] == null - ? null - : DateTime.parse(json['ImageDateModified'] as String), + imageDateModified: json['ImageDateModified'] == null ? null : DateTime.parse(json['ImageDateModified'] as String), imageTag: json['ImageTag'] as String?, ); -Map _$ChapterInfoToJson(ChapterInfo instance) => - { - if (instance.startPositionTicks case final value?) - 'StartPositionTicks': value, +Map _$ChapterInfoToJson(ChapterInfo instance) => { + if (instance.startPositionTicks case final value?) 'StartPositionTicks': value, if (instance.name case final value?) 'Name': value, if (instance.imagePath case final value?) 'ImagePath': value, - if (instance.imageDateModified?.toIso8601String() case final value?) - 'ImageDateModified': value, + if (instance.imageDateModified?.toIso8601String() case final value?) 'ImageDateModified': value, if (instance.imageTag case final value?) 'ImageTag': value, }; -ClientCapabilitiesDto _$ClientCapabilitiesDtoFromJson( - Map json) => - ClientCapabilitiesDto( - playableMediaTypes: - mediaTypeListFromJson(json['PlayableMediaTypes'] as List?), - supportedCommands: - generalCommandTypeListFromJson(json['SupportedCommands'] as List?), +ClientCapabilitiesDto _$ClientCapabilitiesDtoFromJson(Map json) => ClientCapabilitiesDto( + playableMediaTypes: mediaTypeListFromJson(json['PlayableMediaTypes'] as List?), + supportedCommands: generalCommandTypeListFromJson(json['SupportedCommands'] as List?), supportsMediaControl: json['SupportsMediaControl'] as bool?, - supportsPersistentIdentifier: - json['SupportsPersistentIdentifier'] as bool?, - deviceProfile: json['DeviceProfile'] == null - ? null - : DeviceProfile.fromJson( - json['DeviceProfile'] as Map), + supportsPersistentIdentifier: json['SupportsPersistentIdentifier'] as bool?, + deviceProfile: + json['DeviceProfile'] == null ? null : DeviceProfile.fromJson(json['DeviceProfile'] as Map), appStoreUrl: json['AppStoreUrl'] as String?, iconUrl: json['IconUrl'] as String?, ); -Map _$ClientCapabilitiesDtoToJson( - ClientCapabilitiesDto instance) => - { +Map _$ClientCapabilitiesDtoToJson(ClientCapabilitiesDto instance) => { 'PlayableMediaTypes': mediaTypeListToJson(instance.playableMediaTypes), - 'SupportedCommands': - generalCommandTypeListToJson(instance.supportedCommands), - if (instance.supportsMediaControl case final value?) - 'SupportsMediaControl': value, - if (instance.supportsPersistentIdentifier case final value?) - 'SupportsPersistentIdentifier': value, - if (instance.deviceProfile?.toJson() case final value?) - 'DeviceProfile': value, + 'SupportedCommands': generalCommandTypeListToJson(instance.supportedCommands), + if (instance.supportsMediaControl case final value?) 'SupportsMediaControl': value, + if (instance.supportsPersistentIdentifier case final value?) 'SupportsPersistentIdentifier': value, + if (instance.deviceProfile?.toJson() case final value?) 'DeviceProfile': value, if (instance.appStoreUrl case final value?) 'AppStoreUrl': value, if (instance.iconUrl case final value?) 'IconUrl': value, }; -ClientLogDocumentResponseDto _$ClientLogDocumentResponseDtoFromJson( - Map json) => +ClientLogDocumentResponseDto _$ClientLogDocumentResponseDtoFromJson(Map json) => ClientLogDocumentResponseDto( fileName: json['FileName'] as String?, ); -Map _$ClientLogDocumentResponseDtoToJson( - ClientLogDocumentResponseDto instance) => - { +Map _$ClientLogDocumentResponseDtoToJson(ClientLogDocumentResponseDto instance) => { if (instance.fileName case final value?) 'FileName': value, }; @@ -1290,61 +951,34 @@ CodecProfile _$CodecProfileFromJson(Map json) => CodecProfile( subContainer: json['SubContainer'] as String?, ); -Map _$CodecProfileToJson(CodecProfile instance) => - { - if (codecTypeNullableToJson(instance.type) case final value?) - 'Type': value, - if (instance.conditions?.map((e) => e.toJson()).toList() - case final value?) - 'Conditions': value, - if (instance.applyConditions?.map((e) => e.toJson()).toList() - case final value?) - 'ApplyConditions': value, +Map _$CodecProfileToJson(CodecProfile instance) => { + if (codecTypeNullableToJson(instance.type) case final value?) 'Type': value, + if (instance.conditions?.map((e) => e.toJson()).toList() case final value?) 'Conditions': value, + if (instance.applyConditions?.map((e) => e.toJson()).toList() case final value?) 'ApplyConditions': value, if (instance.codec case final value?) 'Codec': value, if (instance.container case final value?) 'Container': value, if (instance.subContainer case final value?) 'SubContainer': value, }; -CollectionCreationResult _$CollectionCreationResultFromJson( - Map json) => - CollectionCreationResult( +CollectionCreationResult _$CollectionCreationResultFromJson(Map json) => CollectionCreationResult( id: json['Id'] as String?, ); -Map _$CollectionCreationResultToJson( - CollectionCreationResult instance) => - { +Map _$CollectionCreationResultToJson(CollectionCreationResult instance) => { if (instance.id case final value?) 'Id': value, }; -ConfigImageTypes _$ConfigImageTypesFromJson(Map json) => - ConfigImageTypes( - backdropSizes: (json['BackdropSizes'] as List?) - ?.map((e) => e as String) - .toList() ?? - [], +ConfigImageTypes _$ConfigImageTypesFromJson(Map json) => ConfigImageTypes( + backdropSizes: (json['BackdropSizes'] as List?)?.map((e) => e as String).toList() ?? [], baseUrl: json['BaseUrl'] as String?, - logoSizes: (json['LogoSizes'] as List?) - ?.map((e) => e as String) - .toList() ?? - [], - posterSizes: (json['PosterSizes'] as List?) - ?.map((e) => e as String) - .toList() ?? - [], - profileSizes: (json['ProfileSizes'] as List?) - ?.map((e) => e as String) - .toList() ?? - [], + logoSizes: (json['LogoSizes'] as List?)?.map((e) => e as String).toList() ?? [], + posterSizes: (json['PosterSizes'] as List?)?.map((e) => e as String).toList() ?? [], + profileSizes: (json['ProfileSizes'] as List?)?.map((e) => e as String).toList() ?? [], secureBaseUrl: json['SecureBaseUrl'] as String?, - stillSizes: (json['StillSizes'] as List?) - ?.map((e) => e as String) - .toList() ?? - [], + stillSizes: (json['StillSizes'] as List?)?.map((e) => e as String).toList() ?? [], ); -Map _$ConfigImageTypesToJson(ConfigImageTypes instance) => - { +Map _$ConfigImageTypesToJson(ConfigImageTypes instance) => { if (instance.backdropSizes case final value?) 'BackdropSizes': value, if (instance.baseUrl case final value?) 'BaseUrl': value, if (instance.logoSizes case final value?) 'LogoSizes': value, @@ -1354,9 +988,7 @@ Map _$ConfigImageTypesToJson(ConfigImageTypes instance) => if (instance.stillSizes case final value?) 'StillSizes': value, }; -ConfigurationPageInfo _$ConfigurationPageInfoFromJson( - Map json) => - ConfigurationPageInfo( +ConfigurationPageInfo _$ConfigurationPageInfoFromJson(Map json) => ConfigurationPageInfo( name: json['Name'] as String?, enableInMainMenu: json['EnableInMainMenu'] as bool?, menuSection: json['MenuSection'] as String?, @@ -1365,20 +997,16 @@ ConfigurationPageInfo _$ConfigurationPageInfoFromJson( pluginId: json['PluginId'] as String?, ); -Map _$ConfigurationPageInfoToJson( - ConfigurationPageInfo instance) => - { +Map _$ConfigurationPageInfoToJson(ConfigurationPageInfo instance) => { if (instance.name case final value?) 'Name': value, - if (instance.enableInMainMenu case final value?) - 'EnableInMainMenu': value, + if (instance.enableInMainMenu case final value?) 'EnableInMainMenu': value, if (instance.menuSection case final value?) 'MenuSection': value, if (instance.menuIcon case final value?) 'MenuIcon': value, if (instance.displayName case final value?) 'DisplayName': value, if (instance.pluginId case final value?) 'PluginId': value, }; -ContainerProfile _$ContainerProfileFromJson(Map json) => - ContainerProfile( +ContainerProfile _$ContainerProfileFromJson(Map json) => ContainerProfile( type: dlnaProfileTypeNullableFromJson(json['Type']), conditions: (json['Conditions'] as List?) ?.map((e) => ProfileCondition.fromJson(e as Map)) @@ -1388,13 +1016,9 @@ ContainerProfile _$ContainerProfileFromJson(Map json) => subContainer: json['SubContainer'] as String?, ); -Map _$ContainerProfileToJson(ContainerProfile instance) => - { - if (dlnaProfileTypeNullableToJson(instance.type) case final value?) - 'Type': value, - if (instance.conditions?.map((e) => e.toJson()).toList() - case final value?) - 'Conditions': value, +Map _$ContainerProfileToJson(ContainerProfile instance) => { + if (dlnaProfileTypeNullableToJson(instance.type) case final value?) 'Type': value, + if (instance.conditions?.map((e) => e.toJson()).toList() case final value?) 'Conditions': value, if (instance.container case final value?) 'Container': value, if (instance.subContainer case final value?) 'SubContainer': value, }; @@ -1406,51 +1030,40 @@ CountryInfo _$CountryInfoFromJson(Map json) => CountryInfo( threeLetterISORegionName: json['ThreeLetterISORegionName'] as String?, ); -Map _$CountryInfoToJson(CountryInfo instance) => - { +Map _$CountryInfoToJson(CountryInfo instance) => { if (instance.name case final value?) 'Name': value, if (instance.displayName case final value?) 'DisplayName': value, - if (instance.twoLetterISORegionName case final value?) - 'TwoLetterISORegionName': value, - if (instance.threeLetterISORegionName case final value?) - 'ThreeLetterISORegionName': value, + if (instance.twoLetterISORegionName case final value?) 'TwoLetterISORegionName': value, + if (instance.threeLetterISORegionName case final value?) 'ThreeLetterISORegionName': value, }; -CreatePlaylistDto _$CreatePlaylistDtoFromJson(Map json) => - CreatePlaylistDto( +CreatePlaylistDto _$CreatePlaylistDtoFromJson(Map json) => CreatePlaylistDto( name: json['Name'] as String?, - ids: (json['Ids'] as List?)?.map((e) => e as String).toList() ?? - [], + ids: (json['Ids'] as List?)?.map((e) => e as String).toList() ?? [], userId: json['UserId'] as String?, mediaType: mediaTypeNullableFromJson(json['MediaType']), users: (json['Users'] as List?) - ?.map((e) => - PlaylistUserPermissions.fromJson(e as Map)) + ?.map((e) => PlaylistUserPermissions.fromJson(e as Map)) .toList() ?? [], isPublic: json['IsPublic'] as bool?, ); -Map _$CreatePlaylistDtoToJson(CreatePlaylistDto instance) => - { +Map _$CreatePlaylistDtoToJson(CreatePlaylistDto instance) => { if (instance.name case final value?) 'Name': value, if (instance.ids case final value?) 'Ids': value, if (instance.userId case final value?) 'UserId': value, - if (mediaTypeNullableToJson(instance.mediaType) case final value?) - 'MediaType': value, - if (instance.users?.map((e) => e.toJson()).toList() case final value?) - 'Users': value, + if (mediaTypeNullableToJson(instance.mediaType) case final value?) 'MediaType': value, + if (instance.users?.map((e) => e.toJson()).toList() case final value?) 'Users': value, if (instance.isPublic case final value?) 'IsPublic': value, }; -CreateUserByName _$CreateUserByNameFromJson(Map json) => - CreateUserByName( +CreateUserByName _$CreateUserByNameFromJson(Map json) => CreateUserByName( name: json['Name'] as String, password: json['Password'] as String?, ); -Map _$CreateUserByNameToJson(CreateUserByName instance) => - { +Map _$CreateUserByNameToJson(CreateUserByName instance) => { 'Name': instance.name, if (instance.password case final value?) 'Password': value, }; @@ -1461,112 +1074,81 @@ CultureDto _$CultureDtoFromJson(Map json) => CultureDto( twoLetterISOLanguageName: json['TwoLetterISOLanguageName'] as String?, threeLetterISOLanguageName: json['ThreeLetterISOLanguageName'] as String?, threeLetterISOLanguageNames: - (json['ThreeLetterISOLanguageNames'] as List?) - ?.map((e) => e as String) - .toList() ?? - [], + (json['ThreeLetterISOLanguageNames'] as List?)?.map((e) => e as String).toList() ?? [], ); -Map _$CultureDtoToJson(CultureDto instance) => - { +Map _$CultureDtoToJson(CultureDto instance) => { if (instance.name case final value?) 'Name': value, if (instance.displayName case final value?) 'DisplayName': value, - if (instance.twoLetterISOLanguageName case final value?) - 'TwoLetterISOLanguageName': value, - if (instance.threeLetterISOLanguageName case final value?) - 'ThreeLetterISOLanguageName': value, - if (instance.threeLetterISOLanguageNames case final value?) - 'ThreeLetterISOLanguageNames': value, + if (instance.twoLetterISOLanguageName case final value?) 'TwoLetterISOLanguageName': value, + if (instance.threeLetterISOLanguageName case final value?) 'ThreeLetterISOLanguageName': value, + if (instance.threeLetterISOLanguageNames case final value?) 'ThreeLetterISOLanguageNames': value, }; -CustomDatabaseOption _$CustomDatabaseOptionFromJson( - Map json) => - CustomDatabaseOption( +CustomDatabaseOption _$CustomDatabaseOptionFromJson(Map json) => CustomDatabaseOption( key: json['Key'] as String?, $Value: json['Value'] as String?, ); -Map _$CustomDatabaseOptionToJson( - CustomDatabaseOption instance) => - { +Map _$CustomDatabaseOptionToJson(CustomDatabaseOption instance) => { if (instance.key case final value?) 'Key': value, if (instance.$Value case final value?) 'Value': value, }; -CustomDatabaseOptions _$CustomDatabaseOptionsFromJson( - Map json) => - CustomDatabaseOptions( +CustomDatabaseOptions _$CustomDatabaseOptionsFromJson(Map json) => CustomDatabaseOptions( pluginName: json['PluginName'] as String?, pluginAssembly: json['PluginAssembly'] as String?, connectionString: json['ConnectionString'] as String?, options: (json['Options'] as List?) - ?.map((e) => - CustomDatabaseOption.fromJson(e as Map)) + ?.map((e) => CustomDatabaseOption.fromJson(e as Map)) .toList() ?? [], ); -Map _$CustomDatabaseOptionsToJson( - CustomDatabaseOptions instance) => - { +Map _$CustomDatabaseOptionsToJson(CustomDatabaseOptions instance) => { if (instance.pluginName case final value?) 'PluginName': value, if (instance.pluginAssembly case final value?) 'PluginAssembly': value, - if (instance.connectionString case final value?) - 'ConnectionString': value, - if (instance.options?.map((e) => e.toJson()).toList() case final value?) - 'Options': value, + if (instance.connectionString case final value?) 'ConnectionString': value, + if (instance.options?.map((e) => e.toJson()).toList() case final value?) 'Options': value, }; -CustomQueryData _$CustomQueryDataFromJson(Map json) => - CustomQueryData( +CustomQueryData _$CustomQueryDataFromJson(Map json) => CustomQueryData( customQueryString: json['CustomQueryString'] as String?, replaceUserId: json['ReplaceUserId'] as bool?, ); -Map _$CustomQueryDataToJson(CustomQueryData instance) => - { - if (instance.customQueryString case final value?) - 'CustomQueryString': value, +Map _$CustomQueryDataToJson(CustomQueryData instance) => { + if (instance.customQueryString case final value?) 'CustomQueryString': value, if (instance.replaceUserId case final value?) 'ReplaceUserId': value, }; -DatabaseConfigurationOptions _$DatabaseConfigurationOptionsFromJson( - Map json) => +DatabaseConfigurationOptions _$DatabaseConfigurationOptionsFromJson(Map json) => DatabaseConfigurationOptions( databaseType: json['DatabaseType'] as String?, customProviderOptions: json['CustomProviderOptions'] == null ? null - : CustomDatabaseOptions.fromJson( - json['CustomProviderOptions'] as Map), - lockingBehavior: - databaseLockingBehaviorTypesNullableFromJson(json['LockingBehavior']), + : CustomDatabaseOptions.fromJson(json['CustomProviderOptions'] as Map), + lockingBehavior: databaseLockingBehaviorTypesNullableFromJson(json['LockingBehavior']), ); -Map _$DatabaseConfigurationOptionsToJson( - DatabaseConfigurationOptions instance) => - { +Map _$DatabaseConfigurationOptionsToJson(DatabaseConfigurationOptions instance) => { if (instance.databaseType case final value?) 'DatabaseType': value, - if (instance.customProviderOptions?.toJson() case final value?) - 'CustomProviderOptions': value, - if (databaseLockingBehaviorTypesNullableToJson(instance.lockingBehavior) - case final value?) + if (instance.customProviderOptions?.toJson() case final value?) 'CustomProviderOptions': value, + if (databaseLockingBehaviorTypesNullableToJson(instance.lockingBehavior) case final value?) 'LockingBehavior': value, }; -DefaultDirectoryBrowserInfoDto _$DefaultDirectoryBrowserInfoDtoFromJson( - Map json) => +DefaultDirectoryBrowserInfoDto _$DefaultDirectoryBrowserInfoDtoFromJson(Map json) => DefaultDirectoryBrowserInfoDto( path: json['Path'] as String?, ); -Map _$DefaultDirectoryBrowserInfoDtoToJson( - DefaultDirectoryBrowserInfoDto instance) => +Map _$DefaultDirectoryBrowserInfoDtoToJson(DefaultDirectoryBrowserInfoDto instance) => { if (instance.path case final value?) 'Path': value, }; -DeviceInfoDto _$DeviceInfoDtoFromJson(Map json) => - DeviceInfoDto( +DeviceInfoDto _$DeviceInfoDtoFromJson(Map json) => DeviceInfoDto( name: json['Name'] as String?, customName: json['CustomName'] as String?, accessToken: json['AccessToken'] as String?, @@ -1575,18 +1157,14 @@ DeviceInfoDto _$DeviceInfoDtoFromJson(Map json) => appName: json['AppName'] as String?, appVersion: json['AppVersion'] as String?, lastUserId: json['LastUserId'] as String?, - dateLastActivity: json['DateLastActivity'] == null - ? null - : DateTime.parse(json['DateLastActivity'] as String), + dateLastActivity: json['DateLastActivity'] == null ? null : DateTime.parse(json['DateLastActivity'] as String), capabilities: json['Capabilities'] == null ? null - : ClientCapabilitiesDto.fromJson( - json['Capabilities'] as Map), + : ClientCapabilitiesDto.fromJson(json['Capabilities'] as Map), iconUrl: json['IconUrl'] as String?, ); -Map _$DeviceInfoDtoToJson(DeviceInfoDto instance) => - { +Map _$DeviceInfoDtoToJson(DeviceInfoDto instance) => { if (instance.name case final value?) 'Name': value, if (instance.customName case final value?) 'CustomName': value, if (instance.accessToken case final value?) 'AccessToken': value, @@ -1595,65 +1173,50 @@ Map _$DeviceInfoDtoToJson(DeviceInfoDto instance) => if (instance.appName case final value?) 'AppName': value, if (instance.appVersion case final value?) 'AppVersion': value, if (instance.lastUserId case final value?) 'LastUserId': value, - if (instance.dateLastActivity?.toIso8601String() case final value?) - 'DateLastActivity': value, - if (instance.capabilities?.toJson() case final value?) - 'Capabilities': value, + if (instance.dateLastActivity?.toIso8601String() case final value?) 'DateLastActivity': value, + if (instance.capabilities?.toJson() case final value?) 'Capabilities': value, if (instance.iconUrl case final value?) 'IconUrl': value, }; -DeviceInfoDtoQueryResult _$DeviceInfoDtoQueryResultFromJson( - Map json) => - DeviceInfoDtoQueryResult( - items: (json['Items'] as List?) - ?.map((e) => DeviceInfoDto.fromJson(e as Map)) - .toList() ?? - [], +DeviceInfoDtoQueryResult _$DeviceInfoDtoQueryResultFromJson(Map json) => DeviceInfoDtoQueryResult( + items: + (json['Items'] as List?)?.map((e) => DeviceInfoDto.fromJson(e as Map)).toList() ?? + [], totalRecordCount: (json['TotalRecordCount'] as num?)?.toInt(), startIndex: (json['StartIndex'] as num?)?.toInt(), ); -Map _$DeviceInfoDtoQueryResultToJson( - DeviceInfoDtoQueryResult instance) => - { - if (instance.items?.map((e) => e.toJson()).toList() case final value?) - 'Items': value, - if (instance.totalRecordCount case final value?) - 'TotalRecordCount': value, +Map _$DeviceInfoDtoQueryResultToJson(DeviceInfoDtoQueryResult instance) => { + if (instance.items?.map((e) => e.toJson()).toList() case final value?) 'Items': value, + if (instance.totalRecordCount case final value?) 'TotalRecordCount': value, if (instance.startIndex case final value?) 'StartIndex': value, }; -DeviceOptionsDto _$DeviceOptionsDtoFromJson(Map json) => - DeviceOptionsDto( +DeviceOptionsDto _$DeviceOptionsDtoFromJson(Map json) => DeviceOptionsDto( id: (json['Id'] as num?)?.toInt(), deviceId: json['DeviceId'] as String?, customName: json['CustomName'] as String?, ); -Map _$DeviceOptionsDtoToJson(DeviceOptionsDto instance) => - { +Map _$DeviceOptionsDtoToJson(DeviceOptionsDto instance) => { if (instance.id case final value?) 'Id': value, if (instance.deviceId case final value?) 'DeviceId': value, if (instance.customName case final value?) 'CustomName': value, }; -DeviceProfile _$DeviceProfileFromJson(Map json) => - DeviceProfile( +DeviceProfile _$DeviceProfileFromJson(Map json) => DeviceProfile( name: json['Name'] as String?, id: json['Id'] as String?, maxStreamingBitrate: (json['MaxStreamingBitrate'] as num?)?.toInt(), maxStaticBitrate: (json['MaxStaticBitrate'] as num?)?.toInt(), - musicStreamingTranscodingBitrate: - (json['MusicStreamingTranscodingBitrate'] as num?)?.toInt(), + musicStreamingTranscodingBitrate: (json['MusicStreamingTranscodingBitrate'] as num?)?.toInt(), maxStaticMusicBitrate: (json['MaxStaticMusicBitrate'] as num?)?.toInt(), directPlayProfiles: (json['DirectPlayProfiles'] as List?) - ?.map( - (e) => DirectPlayProfile.fromJson(e as Map)) + ?.map((e) => DirectPlayProfile.fromJson(e as Map)) .toList() ?? [], transcodingProfiles: (json['TranscodingProfiles'] as List?) - ?.map( - (e) => TranscodingProfile.fromJson(e as Map)) + ?.map((e) => TranscodingProfile.fromJson(e as Map)) .toList() ?? [], containerProfiles: (json['ContainerProfiles'] as List?) @@ -1670,55 +1233,35 @@ DeviceProfile _$DeviceProfileFromJson(Map json) => [], ); -Map _$DeviceProfileToJson(DeviceProfile instance) => - { +Map _$DeviceProfileToJson(DeviceProfile instance) => { if (instance.name case final value?) 'Name': value, if (instance.id case final value?) 'Id': value, - if (instance.maxStreamingBitrate case final value?) - 'MaxStreamingBitrate': value, - if (instance.maxStaticBitrate case final value?) - 'MaxStaticBitrate': value, - if (instance.musicStreamingTranscodingBitrate case final value?) - 'MusicStreamingTranscodingBitrate': value, - if (instance.maxStaticMusicBitrate case final value?) - 'MaxStaticMusicBitrate': value, - if (instance.directPlayProfiles?.map((e) => e.toJson()).toList() - case final value?) - 'DirectPlayProfiles': value, - if (instance.transcodingProfiles?.map((e) => e.toJson()).toList() - case final value?) - 'TranscodingProfiles': value, - if (instance.containerProfiles?.map((e) => e.toJson()).toList() - case final value?) - 'ContainerProfiles': value, - if (instance.codecProfiles?.map((e) => e.toJson()).toList() - case final value?) - 'CodecProfiles': value, - if (instance.subtitleProfiles?.map((e) => e.toJson()).toList() - case final value?) - 'SubtitleProfiles': value, - }; - -DirectPlayProfile _$DirectPlayProfileFromJson(Map json) => - DirectPlayProfile( + if (instance.maxStreamingBitrate case final value?) 'MaxStreamingBitrate': value, + if (instance.maxStaticBitrate case final value?) 'MaxStaticBitrate': value, + if (instance.musicStreamingTranscodingBitrate case final value?) 'MusicStreamingTranscodingBitrate': value, + if (instance.maxStaticMusicBitrate case final value?) 'MaxStaticMusicBitrate': value, + if (instance.directPlayProfiles?.map((e) => e.toJson()).toList() case final value?) 'DirectPlayProfiles': value, + if (instance.transcodingProfiles?.map((e) => e.toJson()).toList() case final value?) 'TranscodingProfiles': value, + if (instance.containerProfiles?.map((e) => e.toJson()).toList() case final value?) 'ContainerProfiles': value, + if (instance.codecProfiles?.map((e) => e.toJson()).toList() case final value?) 'CodecProfiles': value, + if (instance.subtitleProfiles?.map((e) => e.toJson()).toList() case final value?) 'SubtitleProfiles': value, + }; + +DirectPlayProfile _$DirectPlayProfileFromJson(Map json) => DirectPlayProfile( container: json['Container'] as String?, audioCodec: json['AudioCodec'] as String?, videoCodec: json['VideoCodec'] as String?, type: dlnaProfileTypeNullableFromJson(json['Type']), ); -Map _$DirectPlayProfileToJson(DirectPlayProfile instance) => - { +Map _$DirectPlayProfileToJson(DirectPlayProfile instance) => { if (instance.container case final value?) 'Container': value, if (instance.audioCodec case final value?) 'AudioCodec': value, if (instance.videoCodec case final value?) 'VideoCodec': value, - if (dlnaProfileTypeNullableToJson(instance.type) case final value?) - 'Type': value, + if (dlnaProfileTypeNullableToJson(instance.type) case final value?) 'Type': value, }; -DisplayPreferencesDto _$DisplayPreferencesDtoFromJson( - Map json) => - DisplayPreferencesDto( +DisplayPreferencesDto _$DisplayPreferencesDtoFromJson(Map json) => DisplayPreferencesDto( id: json['Id'] as String?, viewType: json['ViewType'] as String?, sortBy: json['SortBy'] as String?, @@ -1735,200 +1278,129 @@ DisplayPreferencesDto _$DisplayPreferencesDtoFromJson( $Client: json['Client'] as String?, ); -Map _$DisplayPreferencesDtoToJson( - DisplayPreferencesDto instance) => - { +Map _$DisplayPreferencesDtoToJson(DisplayPreferencesDto instance) => { if (instance.id case final value?) 'Id': value, if (instance.viewType case final value?) 'ViewType': value, if (instance.sortBy case final value?) 'SortBy': value, if (instance.indexBy case final value?) 'IndexBy': value, - if (instance.rememberIndexing case final value?) - 'RememberIndexing': value, - if (instance.primaryImageHeight case final value?) - 'PrimaryImageHeight': value, - if (instance.primaryImageWidth case final value?) - 'PrimaryImageWidth': value, + if (instance.rememberIndexing case final value?) 'RememberIndexing': value, + if (instance.primaryImageHeight case final value?) 'PrimaryImageHeight': value, + if (instance.primaryImageWidth case final value?) 'PrimaryImageWidth': value, if (instance.customPrefs case final value?) 'CustomPrefs': value, - if (scrollDirectionNullableToJson(instance.scrollDirection) - case final value?) - 'ScrollDirection': value, + if (scrollDirectionNullableToJson(instance.scrollDirection) case final value?) 'ScrollDirection': value, if (instance.showBackdrop case final value?) 'ShowBackdrop': value, if (instance.rememberSorting case final value?) 'RememberSorting': value, - if (sortOrderNullableToJson(instance.sortOrder) case final value?) - 'SortOrder': value, + if (sortOrderNullableToJson(instance.sortOrder) case final value?) 'SortOrder': value, if (instance.showSidebar case final value?) 'ShowSidebar': value, if (instance.$Client case final value?) 'Client': value, }; -EncodingOptions _$EncodingOptionsFromJson(Map json) => - EncodingOptions( +EncodingOptions _$EncodingOptionsFromJson(Map json) => EncodingOptions( encodingThreadCount: (json['EncodingThreadCount'] as num?)?.toInt(), transcodingTempPath: json['TranscodingTempPath'] as String?, fallbackFontPath: json['FallbackFontPath'] as String?, enableFallbackFont: json['EnableFallbackFont'] as bool?, enableAudioVbr: json['EnableAudioVbr'] as bool?, downMixAudioBoost: (json['DownMixAudioBoost'] as num?)?.toDouble(), - downMixStereoAlgorithm: downMixStereoAlgorithmsNullableFromJson( - json['DownMixStereoAlgorithm']), + downMixStereoAlgorithm: downMixStereoAlgorithmsNullableFromJson(json['DownMixStereoAlgorithm']), maxMuxingQueueSize: (json['MaxMuxingQueueSize'] as num?)?.toInt(), enableThrottling: json['EnableThrottling'] as bool?, throttleDelaySeconds: (json['ThrottleDelaySeconds'] as num?)?.toInt(), enableSegmentDeletion: json['EnableSegmentDeletion'] as bool?, segmentKeepSeconds: (json['SegmentKeepSeconds'] as num?)?.toInt(), - hardwareAccelerationType: hardwareAccelerationTypeNullableFromJson( - json['HardwareAccelerationType']), + hardwareAccelerationType: hardwareAccelerationTypeNullableFromJson(json['HardwareAccelerationType']), encoderAppPath: json['EncoderAppPath'] as String?, encoderAppPathDisplay: json['EncoderAppPathDisplay'] as String?, vaapiDevice: json['VaapiDevice'] as String?, qsvDevice: json['QsvDevice'] as String?, enableTonemapping: json['EnableTonemapping'] as bool?, enableVppTonemapping: json['EnableVppTonemapping'] as bool?, - enableVideoToolboxTonemapping: - json['EnableVideoToolboxTonemapping'] as bool?, - tonemappingAlgorithm: - tonemappingAlgorithmNullableFromJson(json['TonemappingAlgorithm']), + enableVideoToolboxTonemapping: json['EnableVideoToolboxTonemapping'] as bool?, + tonemappingAlgorithm: tonemappingAlgorithmNullableFromJson(json['TonemappingAlgorithm']), tonemappingMode: tonemappingModeNullableFromJson(json['TonemappingMode']), - tonemappingRange: - tonemappingRangeNullableFromJson(json['TonemappingRange']), + tonemappingRange: tonemappingRangeNullableFromJson(json['TonemappingRange']), tonemappingDesat: (json['TonemappingDesat'] as num?)?.toDouble(), tonemappingPeak: (json['TonemappingPeak'] as num?)?.toDouble(), tonemappingParam: (json['TonemappingParam'] as num?)?.toDouble(), - vppTonemappingBrightness: - (json['VppTonemappingBrightness'] as num?)?.toDouble(), - vppTonemappingContrast: - (json['VppTonemappingContrast'] as num?)?.toDouble(), + vppTonemappingBrightness: (json['VppTonemappingBrightness'] as num?)?.toDouble(), + vppTonemappingContrast: (json['VppTonemappingContrast'] as num?)?.toDouble(), h264Crf: (json['H264Crf'] as num?)?.toInt(), h265Crf: (json['H265Crf'] as num?)?.toInt(), encoderPreset: encoderPresetNullableFromJson(json['EncoderPreset']), deinterlaceDoubleRate: json['DeinterlaceDoubleRate'] as bool?, - deinterlaceMethod: - deinterlaceMethodNullableFromJson(json['DeinterlaceMethod']), - enableDecodingColorDepth10Hevc: - json['EnableDecodingColorDepth10Hevc'] as bool?, - enableDecodingColorDepth10Vp9: - json['EnableDecodingColorDepth10Vp9'] as bool?, - enableDecodingColorDepth10HevcRext: - json['EnableDecodingColorDepth10HevcRext'] as bool?, - enableDecodingColorDepth12HevcRext: - json['EnableDecodingColorDepth12HevcRext'] as bool?, + deinterlaceMethod: deinterlaceMethodNullableFromJson(json['DeinterlaceMethod']), + enableDecodingColorDepth10Hevc: json['EnableDecodingColorDepth10Hevc'] as bool?, + enableDecodingColorDepth10Vp9: json['EnableDecodingColorDepth10Vp9'] as bool?, + enableDecodingColorDepth10HevcRext: json['EnableDecodingColorDepth10HevcRext'] as bool?, + enableDecodingColorDepth12HevcRext: json['EnableDecodingColorDepth12HevcRext'] as bool?, enableEnhancedNvdecDecoder: json['EnableEnhancedNvdecDecoder'] as bool?, preferSystemNativeHwDecoder: json['PreferSystemNativeHwDecoder'] as bool?, - enableIntelLowPowerH264HwEncoder: - json['EnableIntelLowPowerH264HwEncoder'] as bool?, - enableIntelLowPowerHevcHwEncoder: - json['EnableIntelLowPowerHevcHwEncoder'] as bool?, + enableIntelLowPowerH264HwEncoder: json['EnableIntelLowPowerH264HwEncoder'] as bool?, + enableIntelLowPowerHevcHwEncoder: json['EnableIntelLowPowerHevcHwEncoder'] as bool?, enableHardwareEncoding: json['EnableHardwareEncoding'] as bool?, allowHevcEncoding: json['AllowHevcEncoding'] as bool?, allowAv1Encoding: json['AllowAv1Encoding'] as bool?, enableSubtitleExtraction: json['EnableSubtitleExtraction'] as bool?, - hardwareDecodingCodecs: (json['HardwareDecodingCodecs'] as List?) - ?.map((e) => e as String) - .toList() ?? - [], + hardwareDecodingCodecs: + (json['HardwareDecodingCodecs'] as List?)?.map((e) => e as String).toList() ?? [], allowOnDemandMetadataBasedKeyframeExtractionForExtensions: - (json['AllowOnDemandMetadataBasedKeyframeExtractionForExtensions'] - as List?) + (json['AllowOnDemandMetadataBasedKeyframeExtractionForExtensions'] as List?) ?.map((e) => e as String) .toList() ?? [], ); -Map _$EncodingOptionsToJson(EncodingOptions instance) => - { - if (instance.encodingThreadCount case final value?) - 'EncodingThreadCount': value, - if (instance.transcodingTempPath case final value?) - 'TranscodingTempPath': value, - if (instance.fallbackFontPath case final value?) - 'FallbackFontPath': value, - if (instance.enableFallbackFont case final value?) - 'EnableFallbackFont': value, +Map _$EncodingOptionsToJson(EncodingOptions instance) => { + if (instance.encodingThreadCount case final value?) 'EncodingThreadCount': value, + if (instance.transcodingTempPath case final value?) 'TranscodingTempPath': value, + if (instance.fallbackFontPath case final value?) 'FallbackFontPath': value, + if (instance.enableFallbackFont case final value?) 'EnableFallbackFont': value, if (instance.enableAudioVbr case final value?) 'EnableAudioVbr': value, - if (instance.downMixAudioBoost case final value?) - 'DownMixAudioBoost': value, - if (downMixStereoAlgorithmsNullableToJson(instance.downMixStereoAlgorithm) - case final value?) + if (instance.downMixAudioBoost case final value?) 'DownMixAudioBoost': value, + if (downMixStereoAlgorithmsNullableToJson(instance.downMixStereoAlgorithm) case final value?) 'DownMixStereoAlgorithm': value, - if (instance.maxMuxingQueueSize case final value?) - 'MaxMuxingQueueSize': value, - if (instance.enableThrottling case final value?) - 'EnableThrottling': value, - if (instance.throttleDelaySeconds case final value?) - 'ThrottleDelaySeconds': value, - if (instance.enableSegmentDeletion case final value?) - 'EnableSegmentDeletion': value, - if (instance.segmentKeepSeconds case final value?) - 'SegmentKeepSeconds': value, - if (hardwareAccelerationTypeNullableToJson( - instance.hardwareAccelerationType) - case final value?) + if (instance.maxMuxingQueueSize case final value?) 'MaxMuxingQueueSize': value, + if (instance.enableThrottling case final value?) 'EnableThrottling': value, + if (instance.throttleDelaySeconds case final value?) 'ThrottleDelaySeconds': value, + if (instance.enableSegmentDeletion case final value?) 'EnableSegmentDeletion': value, + if (instance.segmentKeepSeconds case final value?) 'SegmentKeepSeconds': value, + if (hardwareAccelerationTypeNullableToJson(instance.hardwareAccelerationType) case final value?) 'HardwareAccelerationType': value, if (instance.encoderAppPath case final value?) 'EncoderAppPath': value, - if (instance.encoderAppPathDisplay case final value?) - 'EncoderAppPathDisplay': value, + if (instance.encoderAppPathDisplay case final value?) 'EncoderAppPathDisplay': value, if (instance.vaapiDevice case final value?) 'VaapiDevice': value, if (instance.qsvDevice case final value?) 'QsvDevice': value, - if (instance.enableTonemapping case final value?) - 'EnableTonemapping': value, - if (instance.enableVppTonemapping case final value?) - 'EnableVppTonemapping': value, - if (instance.enableVideoToolboxTonemapping case final value?) - 'EnableVideoToolboxTonemapping': value, - if (tonemappingAlgorithmNullableToJson(instance.tonemappingAlgorithm) - case final value?) + if (instance.enableTonemapping case final value?) 'EnableTonemapping': value, + if (instance.enableVppTonemapping case final value?) 'EnableVppTonemapping': value, + if (instance.enableVideoToolboxTonemapping case final value?) 'EnableVideoToolboxTonemapping': value, + if (tonemappingAlgorithmNullableToJson(instance.tonemappingAlgorithm) case final value?) 'TonemappingAlgorithm': value, - if (tonemappingModeNullableToJson(instance.tonemappingMode) - case final value?) - 'TonemappingMode': value, - if (tonemappingRangeNullableToJson(instance.tonemappingRange) - case final value?) - 'TonemappingRange': value, - if (instance.tonemappingDesat case final value?) - 'TonemappingDesat': value, + if (tonemappingModeNullableToJson(instance.tonemappingMode) case final value?) 'TonemappingMode': value, + if (tonemappingRangeNullableToJson(instance.tonemappingRange) case final value?) 'TonemappingRange': value, + if (instance.tonemappingDesat case final value?) 'TonemappingDesat': value, if (instance.tonemappingPeak case final value?) 'TonemappingPeak': value, - if (instance.tonemappingParam case final value?) - 'TonemappingParam': value, - if (instance.vppTonemappingBrightness case final value?) - 'VppTonemappingBrightness': value, - if (instance.vppTonemappingContrast case final value?) - 'VppTonemappingContrast': value, + if (instance.tonemappingParam case final value?) 'TonemappingParam': value, + if (instance.vppTonemappingBrightness case final value?) 'VppTonemappingBrightness': value, + if (instance.vppTonemappingContrast case final value?) 'VppTonemappingContrast': value, if (instance.h264Crf case final value?) 'H264Crf': value, if (instance.h265Crf case final value?) 'H265Crf': value, - if (encoderPresetNullableToJson(instance.encoderPreset) case final value?) - 'EncoderPreset': value, - if (instance.deinterlaceDoubleRate case final value?) - 'DeinterlaceDoubleRate': value, - if (deinterlaceMethodNullableToJson(instance.deinterlaceMethod) - case final value?) - 'DeinterlaceMethod': value, - if (instance.enableDecodingColorDepth10Hevc case final value?) - 'EnableDecodingColorDepth10Hevc': value, - if (instance.enableDecodingColorDepth10Vp9 case final value?) - 'EnableDecodingColorDepth10Vp9': value, - if (instance.enableDecodingColorDepth10HevcRext case final value?) - 'EnableDecodingColorDepth10HevcRext': value, - if (instance.enableDecodingColorDepth12HevcRext case final value?) - 'EnableDecodingColorDepth12HevcRext': value, - if (instance.enableEnhancedNvdecDecoder case final value?) - 'EnableEnhancedNvdecDecoder': value, - if (instance.preferSystemNativeHwDecoder case final value?) - 'PreferSystemNativeHwDecoder': value, - if (instance.enableIntelLowPowerH264HwEncoder case final value?) - 'EnableIntelLowPowerH264HwEncoder': value, - if (instance.enableIntelLowPowerHevcHwEncoder case final value?) - 'EnableIntelLowPowerHevcHwEncoder': value, - if (instance.enableHardwareEncoding case final value?) - 'EnableHardwareEncoding': value, - if (instance.allowHevcEncoding case final value?) - 'AllowHevcEncoding': value, - if (instance.allowAv1Encoding case final value?) - 'AllowAv1Encoding': value, - if (instance.enableSubtitleExtraction case final value?) - 'EnableSubtitleExtraction': value, - if (instance.hardwareDecodingCodecs case final value?) - 'HardwareDecodingCodecs': value, - if (instance.allowOnDemandMetadataBasedKeyframeExtractionForExtensions - case final value?) + if (encoderPresetNullableToJson(instance.encoderPreset) case final value?) 'EncoderPreset': value, + if (instance.deinterlaceDoubleRate case final value?) 'DeinterlaceDoubleRate': value, + if (deinterlaceMethodNullableToJson(instance.deinterlaceMethod) case final value?) 'DeinterlaceMethod': value, + if (instance.enableDecodingColorDepth10Hevc case final value?) 'EnableDecodingColorDepth10Hevc': value, + if (instance.enableDecodingColorDepth10Vp9 case final value?) 'EnableDecodingColorDepth10Vp9': value, + if (instance.enableDecodingColorDepth10HevcRext case final value?) 'EnableDecodingColorDepth10HevcRext': value, + if (instance.enableDecodingColorDepth12HevcRext case final value?) 'EnableDecodingColorDepth12HevcRext': value, + if (instance.enableEnhancedNvdecDecoder case final value?) 'EnableEnhancedNvdecDecoder': value, + if (instance.preferSystemNativeHwDecoder case final value?) 'PreferSystemNativeHwDecoder': value, + if (instance.enableIntelLowPowerH264HwEncoder case final value?) 'EnableIntelLowPowerH264HwEncoder': value, + if (instance.enableIntelLowPowerHevcHwEncoder case final value?) 'EnableIntelLowPowerHevcHwEncoder': value, + if (instance.enableHardwareEncoding case final value?) 'EnableHardwareEncoding': value, + if (instance.allowHevcEncoding case final value?) 'AllowHevcEncoding': value, + if (instance.allowAv1Encoding case final value?) 'AllowAv1Encoding': value, + if (instance.enableSubtitleExtraction case final value?) 'EnableSubtitleExtraction': value, + if (instance.hardwareDecodingCodecs case final value?) 'HardwareDecodingCodecs': value, + if (instance.allowOnDemandMetadataBasedKeyframeExtractionForExtensions case final value?) 'AllowOnDemandMetadataBasedKeyframeExtractionForExtensions': value, }; @@ -1937,25 +1409,21 @@ EndPointInfo _$EndPointInfoFromJson(Map json) => EndPointInfo( isInNetwork: json['IsInNetwork'] as bool?, ); -Map _$EndPointInfoToJson(EndPointInfo instance) => - { +Map _$EndPointInfoToJson(EndPointInfo instance) => { if (instance.isLocal case final value?) 'IsLocal': value, if (instance.isInNetwork case final value?) 'IsInNetwork': value, }; -ExternalIdInfo _$ExternalIdInfoFromJson(Map json) => - ExternalIdInfo( +ExternalIdInfo _$ExternalIdInfoFromJson(Map json) => ExternalIdInfo( name: json['Name'] as String?, key: json['Key'] as String?, type: externalIdMediaTypeNullableFromJson(json['Type']), ); -Map _$ExternalIdInfoToJson(ExternalIdInfo instance) => - { +Map _$ExternalIdInfoToJson(ExternalIdInfo instance) => { if (instance.name case final value?) 'Name': value, if (instance.key case final value?) 'Key': value, - if (externalIdMediaTypeNullableToJson(instance.type) case final value?) - 'Type': value, + if (externalIdMediaTypeNullableToJson(instance.type) case final value?) 'Type': value, }; ExternalUrl _$ExternalUrlFromJson(Map json) => ExternalUrl( @@ -1963,30 +1431,24 @@ ExternalUrl _$ExternalUrlFromJson(Map json) => ExternalUrl( url: json['Url'] as String?, ); -Map _$ExternalUrlToJson(ExternalUrl instance) => - { +Map _$ExternalUrlToJson(ExternalUrl instance) => { if (instance.name case final value?) 'Name': value, if (instance.url case final value?) 'Url': value, }; -FileSystemEntryInfo _$FileSystemEntryInfoFromJson(Map json) => - FileSystemEntryInfo( +FileSystemEntryInfo _$FileSystemEntryInfoFromJson(Map json) => FileSystemEntryInfo( name: json['Name'] as String?, path: json['Path'] as String?, type: fileSystemEntryTypeNullableFromJson(json['Type']), ); -Map _$FileSystemEntryInfoToJson( - FileSystemEntryInfo instance) => - { +Map _$FileSystemEntryInfoToJson(FileSystemEntryInfo instance) => { if (instance.name case final value?) 'Name': value, if (instance.path case final value?) 'Path': value, - if (fileSystemEntryTypeNullableToJson(instance.type) case final value?) - 'Type': value, + if (fileSystemEntryTypeNullableToJson(instance.type) case final value?) 'Type': value, }; -FolderStorageDto _$FolderStorageDtoFromJson(Map json) => - FolderStorageDto( +FolderStorageDto _$FolderStorageDtoFromJson(Map json) => FolderStorageDto( path: json['Path'] as String?, freeSpace: (json['FreeSpace'] as num?)?.toInt(), usedSpace: (json['UsedSpace'] as num?)?.toInt(), @@ -1994,8 +1456,7 @@ FolderStorageDto _$FolderStorageDtoFromJson(Map json) => deviceId: json['DeviceId'] as String?, ); -Map _$FolderStorageDtoToJson(FolderStorageDto instance) => - { +Map _$FolderStorageDtoToJson(FolderStorageDto instance) => { if (instance.path case final value?) 'Path': value, if (instance.freeSpace case final value?) 'FreeSpace': value, if (instance.usedSpace case final value?) 'UsedSpace': value, @@ -2006,144 +1467,90 @@ Map _$FolderStorageDtoToJson(FolderStorageDto instance) => FontFile _$FontFileFromJson(Map json) => FontFile( name: json['Name'] as String?, size: (json['Size'] as num?)?.toInt(), - dateCreated: json['DateCreated'] == null - ? null - : DateTime.parse(json['DateCreated'] as String), - dateModified: json['DateModified'] == null - ? null - : DateTime.parse(json['DateModified'] as String), + dateCreated: json['DateCreated'] == null ? null : DateTime.parse(json['DateCreated'] as String), + dateModified: json['DateModified'] == null ? null : DateTime.parse(json['DateModified'] as String), ); Map _$FontFileToJson(FontFile instance) => { if (instance.name case final value?) 'Name': value, if (instance.size case final value?) 'Size': value, - if (instance.dateCreated?.toIso8601String() case final value?) - 'DateCreated': value, - if (instance.dateModified?.toIso8601String() case final value?) - 'DateModified': value, + if (instance.dateCreated?.toIso8601String() case final value?) 'DateCreated': value, + if (instance.dateModified?.toIso8601String() case final value?) 'DateModified': value, }; -ForceKeepAliveMessage _$ForceKeepAliveMessageFromJson( - Map json) => - ForceKeepAliveMessage( +ForceKeepAliveMessage _$ForceKeepAliveMessageFromJson(Map json) => ForceKeepAliveMessage( data: (json['Data'] as num?)?.toInt(), messageId: json['MessageId'] as String?, - messageType: - ForceKeepAliveMessage.sessionMessageTypeMessageTypeNullableFromJson( - json['MessageType']), + messageType: ForceKeepAliveMessage.sessionMessageTypeMessageTypeNullableFromJson(json['MessageType']), ); -Map _$ForceKeepAliveMessageToJson( - ForceKeepAliveMessage instance) => - { +Map _$ForceKeepAliveMessageToJson(ForceKeepAliveMessage instance) => { if (instance.data case final value?) 'Data': value, if (instance.messageId case final value?) 'MessageId': value, - if (sessionMessageTypeNullableToJson(instance.messageType) - case final value?) - 'MessageType': value, + if (sessionMessageTypeNullableToJson(instance.messageType) case final value?) 'MessageType': value, }; -ForgotPasswordDto _$ForgotPasswordDtoFromJson(Map json) => - ForgotPasswordDto( +ForgotPasswordDto _$ForgotPasswordDtoFromJson(Map json) => ForgotPasswordDto( enteredUsername: json['EnteredUsername'] as String, ); -Map _$ForgotPasswordDtoToJson(ForgotPasswordDto instance) => - { +Map _$ForgotPasswordDtoToJson(ForgotPasswordDto instance) => { 'EnteredUsername': instance.enteredUsername, }; -ForgotPasswordPinDto _$ForgotPasswordPinDtoFromJson( - Map json) => - ForgotPasswordPinDto( +ForgotPasswordPinDto _$ForgotPasswordPinDtoFromJson(Map json) => ForgotPasswordPinDto( pin: json['Pin'] as String, ); -Map _$ForgotPasswordPinDtoToJson( - ForgotPasswordPinDto instance) => - { +Map _$ForgotPasswordPinDtoToJson(ForgotPasswordPinDto instance) => { 'Pin': instance.pin, }; -ForgotPasswordResult _$ForgotPasswordResultFromJson( - Map json) => - ForgotPasswordResult( +ForgotPasswordResult _$ForgotPasswordResultFromJson(Map json) => ForgotPasswordResult( action: forgotPasswordActionNullableFromJson(json['Action']), pinFile: json['PinFile'] as String?, - pinExpirationDate: json['PinExpirationDate'] == null - ? null - : DateTime.parse(json['PinExpirationDate'] as String), + pinExpirationDate: json['PinExpirationDate'] == null ? null : DateTime.parse(json['PinExpirationDate'] as String), ); -Map _$ForgotPasswordResultToJson( - ForgotPasswordResult instance) => - { - if (forgotPasswordActionNullableToJson(instance.action) case final value?) - 'Action': value, +Map _$ForgotPasswordResultToJson(ForgotPasswordResult instance) => { + if (forgotPasswordActionNullableToJson(instance.action) case final value?) 'Action': value, if (instance.pinFile case final value?) 'PinFile': value, - if (instance.pinExpirationDate?.toIso8601String() case final value?) - 'PinExpirationDate': value, + if (instance.pinExpirationDate?.toIso8601String() case final value?) 'PinExpirationDate': value, }; -GeneralCommand _$GeneralCommandFromJson(Map json) => - GeneralCommand( +GeneralCommand _$GeneralCommandFromJson(Map json) => GeneralCommand( name: generalCommandTypeNullableFromJson(json['Name']), controllingUserId: json['ControllingUserId'] as String?, arguments: json['Arguments'] as Map?, ); -Map _$GeneralCommandToJson(GeneralCommand instance) => - { - if (generalCommandTypeNullableToJson(instance.name) case final value?) - 'Name': value, - if (instance.controllingUserId case final value?) - 'ControllingUserId': value, +Map _$GeneralCommandToJson(GeneralCommand instance) => { + if (generalCommandTypeNullableToJson(instance.name) case final value?) 'Name': value, + if (instance.controllingUserId case final value?) 'ControllingUserId': value, if (instance.arguments case final value?) 'Arguments': value, }; -GeneralCommandMessage _$GeneralCommandMessageFromJson( - Map json) => - GeneralCommandMessage( - data: json['Data'] == null - ? null - : GeneralCommand.fromJson(json['Data'] as Map), +GeneralCommandMessage _$GeneralCommandMessageFromJson(Map json) => GeneralCommandMessage( + data: json['Data'] == null ? null : GeneralCommand.fromJson(json['Data'] as Map), messageId: json['MessageId'] as String?, - messageType: - GeneralCommandMessage.sessionMessageTypeMessageTypeNullableFromJson( - json['MessageType']), + messageType: GeneralCommandMessage.sessionMessageTypeMessageTypeNullableFromJson(json['MessageType']), ); -Map _$GeneralCommandMessageToJson( - GeneralCommandMessage instance) => - { +Map _$GeneralCommandMessageToJson(GeneralCommandMessage instance) => { if (instance.data?.toJson() case final value?) 'Data': value, if (instance.messageId case final value?) 'MessageId': value, - if (sessionMessageTypeNullableToJson(instance.messageType) - case final value?) - 'MessageType': value, + if (sessionMessageTypeNullableToJson(instance.messageType) case final value?) 'MessageType': value, }; -GetProgramsDto _$GetProgramsDtoFromJson(Map json) => - GetProgramsDto( - channelIds: (json['ChannelIds'] as List?) - ?.map((e) => e as String) - .toList() ?? - [], +GetProgramsDto _$GetProgramsDtoFromJson(Map json) => GetProgramsDto( + channelIds: (json['ChannelIds'] as List?)?.map((e) => e as String).toList() ?? [], userId: json['UserId'] as String?, - minStartDate: json['MinStartDate'] == null - ? null - : DateTime.parse(json['MinStartDate'] as String), + minStartDate: json['MinStartDate'] == null ? null : DateTime.parse(json['MinStartDate'] as String), hasAired: json['HasAired'] as bool?, isAiring: json['IsAiring'] as bool?, - maxStartDate: json['MaxStartDate'] == null - ? null - : DateTime.parse(json['MaxStartDate'] as String), - minEndDate: json['MinEndDate'] == null - ? null - : DateTime.parse(json['MinEndDate'] as String), - maxEndDate: json['MaxEndDate'] == null - ? null - : DateTime.parse(json['MaxEndDate'] as String), + maxStartDate: json['MaxStartDate'] == null ? null : DateTime.parse(json['MaxStartDate'] as String), + minEndDate: json['MinEndDate'] == null ? null : DateTime.parse(json['MinEndDate'] as String), + maxEndDate: json['MaxEndDate'] == null ? null : DateTime.parse(json['MaxEndDate'] as String), isMovie: json['IsMovie'] as bool?, isSeries: json['IsSeries'] as bool?, isNews: json['IsNews'] as bool?, @@ -2153,39 +1560,27 @@ GetProgramsDto _$GetProgramsDtoFromJson(Map json) => limit: (json['Limit'] as num?)?.toInt(), sortBy: itemSortByListFromJson(json['SortBy'] as List?), sortOrder: sortOrderListFromJson(json['SortOrder'] as List?), - genres: (json['Genres'] as List?) - ?.map((e) => e as String) - .toList() ?? - [], - genreIds: (json['GenreIds'] as List?) - ?.map((e) => e as String) - .toList() ?? - [], + genres: (json['Genres'] as List?)?.map((e) => e as String).toList() ?? [], + genreIds: (json['GenreIds'] as List?)?.map((e) => e as String).toList() ?? [], enableImages: json['EnableImages'] as bool?, enableTotalRecordCount: json['EnableTotalRecordCount'] as bool? ?? true, imageTypeLimit: (json['ImageTypeLimit'] as num?)?.toInt(), - enableImageTypes: - imageTypeListFromJson(json['EnableImageTypes'] as List?), + enableImageTypes: imageTypeListFromJson(json['EnableImageTypes'] as List?), enableUserData: json['EnableUserData'] as bool?, seriesTimerId: json['SeriesTimerId'] as String?, librarySeriesId: json['LibrarySeriesId'] as String?, fields: itemFieldsListFromJson(json['Fields'] as List?), ); -Map _$GetProgramsDtoToJson(GetProgramsDto instance) => - { +Map _$GetProgramsDtoToJson(GetProgramsDto instance) => { if (instance.channelIds case final value?) 'ChannelIds': value, if (instance.userId case final value?) 'UserId': value, - if (instance.minStartDate?.toIso8601String() case final value?) - 'MinStartDate': value, + if (instance.minStartDate?.toIso8601String() case final value?) 'MinStartDate': value, if (instance.hasAired case final value?) 'HasAired': value, if (instance.isAiring case final value?) 'IsAiring': value, - if (instance.maxStartDate?.toIso8601String() case final value?) - 'MaxStartDate': value, - if (instance.minEndDate?.toIso8601String() case final value?) - 'MinEndDate': value, - if (instance.maxEndDate?.toIso8601String() case final value?) - 'MaxEndDate': value, + if (instance.maxStartDate?.toIso8601String() case final value?) 'MaxStartDate': value, + if (instance.minEndDate?.toIso8601String() case final value?) 'MinEndDate': value, + if (instance.maxEndDate?.toIso8601String() case final value?) 'MaxEndDate': value, if (instance.isMovie case final value?) 'IsMovie': value, if (instance.isSeries case final value?) 'IsSeries': value, if (instance.isNews case final value?) 'IsNews': value, @@ -2198,8 +1593,7 @@ Map _$GetProgramsDtoToJson(GetProgramsDto instance) => if (instance.genres case final value?) 'Genres': value, if (instance.genreIds case final value?) 'GenreIds': value, if (instance.enableImages case final value?) 'EnableImages': value, - if (instance.enableTotalRecordCount case final value?) - 'EnableTotalRecordCount': value, + if (instance.enableTotalRecordCount case final value?) 'EnableTotalRecordCount': value, if (instance.imageTypeLimit case final value?) 'ImageTypeLimit': value, 'EnableImageTypes': imageTypeListToJson(instance.enableImageTypes), if (instance.enableUserData case final value?) 'EnableUserData': value, @@ -2212,70 +1606,47 @@ GroupInfoDto _$GroupInfoDtoFromJson(Map json) => GroupInfoDto( groupId: json['GroupId'] as String?, groupName: json['GroupName'] as String?, state: groupStateTypeNullableFromJson(json['State']), - participants: (json['Participants'] as List?) - ?.map((e) => e as String) - .toList() ?? - [], - lastUpdatedAt: json['LastUpdatedAt'] == null - ? null - : DateTime.parse(json['LastUpdatedAt'] as String), + participants: (json['Participants'] as List?)?.map((e) => e as String).toList() ?? [], + lastUpdatedAt: json['LastUpdatedAt'] == null ? null : DateTime.parse(json['LastUpdatedAt'] as String), ); -Map _$GroupInfoDtoToJson(GroupInfoDto instance) => - { +Map _$GroupInfoDtoToJson(GroupInfoDto instance) => { if (instance.groupId case final value?) 'GroupId': value, if (instance.groupName case final value?) 'GroupName': value, - if (groupStateTypeNullableToJson(instance.state) case final value?) - 'State': value, + if (groupStateTypeNullableToJson(instance.state) case final value?) 'State': value, if (instance.participants case final value?) 'Participants': value, - if (instance.lastUpdatedAt?.toIso8601String() case final value?) - 'LastUpdatedAt': value, + if (instance.lastUpdatedAt?.toIso8601String() case final value?) 'LastUpdatedAt': value, }; -GroupStateUpdate _$GroupStateUpdateFromJson(Map json) => - GroupStateUpdate( +GroupStateUpdate _$GroupStateUpdateFromJson(Map json) => GroupStateUpdate( state: groupStateTypeNullableFromJson(json['State']), reason: playbackRequestTypeNullableFromJson(json['Reason']), ); -Map _$GroupStateUpdateToJson(GroupStateUpdate instance) => - { - if (groupStateTypeNullableToJson(instance.state) case final value?) - 'State': value, - if (playbackRequestTypeNullableToJson(instance.reason) case final value?) - 'Reason': value, +Map _$GroupStateUpdateToJson(GroupStateUpdate instance) => { + if (groupStateTypeNullableToJson(instance.state) case final value?) 'State': value, + if (playbackRequestTypeNullableToJson(instance.reason) case final value?) 'Reason': value, }; GroupUpdate _$GroupUpdateFromJson(Map json) => GroupUpdate(); -Map _$GroupUpdateToJson(GroupUpdate instance) => - {}; +Map _$GroupUpdateToJson(GroupUpdate instance) => {}; GuideInfo _$GuideInfoFromJson(Map json) => GuideInfo( - startDate: json['StartDate'] == null - ? null - : DateTime.parse(json['StartDate'] as String), - endDate: json['EndDate'] == null - ? null - : DateTime.parse(json['EndDate'] as String), + startDate: json['StartDate'] == null ? null : DateTime.parse(json['StartDate'] as String), + endDate: json['EndDate'] == null ? null : DateTime.parse(json['EndDate'] as String), ); Map _$GuideInfoToJson(GuideInfo instance) => { - if (instance.startDate?.toIso8601String() case final value?) - 'StartDate': value, - if (instance.endDate?.toIso8601String() case final value?) - 'EndDate': value, + if (instance.startDate?.toIso8601String() case final value?) 'StartDate': value, + if (instance.endDate?.toIso8601String() case final value?) 'EndDate': value, }; -IgnoreWaitRequestDto _$IgnoreWaitRequestDtoFromJson( - Map json) => - IgnoreWaitRequestDto( +IgnoreWaitRequestDto _$IgnoreWaitRequestDtoFromJson(Map json) => IgnoreWaitRequestDto( ignoreWait: json['IgnoreWait'] as bool?, ); -Map _$IgnoreWaitRequestDtoToJson( - IgnoreWaitRequestDto instance) => - { +Map _$IgnoreWaitRequestDtoToJson(IgnoreWaitRequestDto instance) => { if (instance.ignoreWait case final value?) 'IgnoreWait': value, }; @@ -2291,8 +1662,7 @@ ImageInfo _$ImageInfoFromJson(Map json) => ImageInfo( ); Map _$ImageInfoToJson(ImageInfo instance) => { - if (imageTypeNullableToJson(instance.imageType) case final value?) - 'ImageType': value, + if (imageTypeNullableToJson(instance.imageType) case final value?) 'ImageType': value, if (instance.imageIndex case final value?) 'ImageIndex': value, if (instance.imageTag case final value?) 'ImageTag': value, if (instance.path case final value?) 'Path': value, @@ -2308,73 +1678,53 @@ ImageOption _$ImageOptionFromJson(Map json) => ImageOption( minWidth: (json['MinWidth'] as num?)?.toInt(), ); -Map _$ImageOptionToJson(ImageOption instance) => - { - if (imageTypeNullableToJson(instance.type) case final value?) - 'Type': value, +Map _$ImageOptionToJson(ImageOption instance) => { + if (imageTypeNullableToJson(instance.type) case final value?) 'Type': value, if (instance.limit case final value?) 'Limit': value, if (instance.minWidth case final value?) 'MinWidth': value, }; -ImageProviderInfo _$ImageProviderInfoFromJson(Map json) => - ImageProviderInfo( +ImageProviderInfo _$ImageProviderInfoFromJson(Map json) => ImageProviderInfo( name: json['Name'] as String?, supportedImages: imageTypeListFromJson(json['SupportedImages'] as List?), ); -Map _$ImageProviderInfoToJson(ImageProviderInfo instance) => - { +Map _$ImageProviderInfoToJson(ImageProviderInfo instance) => { if (instance.name case final value?) 'Name': value, 'SupportedImages': imageTypeListToJson(instance.supportedImages), }; -InboundKeepAliveMessage _$InboundKeepAliveMessageFromJson( - Map json) => - InboundKeepAliveMessage( - messageType: - InboundKeepAliveMessage.sessionMessageTypeMessageTypeNullableFromJson( - json['MessageType']), +InboundKeepAliveMessage _$InboundKeepAliveMessageFromJson(Map json) => InboundKeepAliveMessage( + messageType: InboundKeepAliveMessage.sessionMessageTypeMessageTypeNullableFromJson(json['MessageType']), ); -Map _$InboundKeepAliveMessageToJson( - InboundKeepAliveMessage instance) => - { - if (sessionMessageTypeNullableToJson(instance.messageType) - case final value?) - 'MessageType': value, +Map _$InboundKeepAliveMessageToJson(InboundKeepAliveMessage instance) => { + if (sessionMessageTypeNullableToJson(instance.messageType) case final value?) 'MessageType': value, }; -InboundWebSocketMessage _$InboundWebSocketMessageFromJson( - Map json) => - InboundWebSocketMessage(); +InboundWebSocketMessage _$InboundWebSocketMessageFromJson(Map json) => InboundWebSocketMessage(); -Map _$InboundWebSocketMessageToJson( - InboundWebSocketMessage instance) => - {}; +Map _$InboundWebSocketMessageToJson(InboundWebSocketMessage instance) => {}; -InstallationInfo _$InstallationInfoFromJson(Map json) => - InstallationInfo( +InstallationInfo _$InstallationInfoFromJson(Map json) => InstallationInfo( guid: json['Guid'] as String?, name: json['Name'] as String?, version: json['Version'] as String?, changelog: json['Changelog'] as String?, sourceUrl: json['SourceUrl'] as String?, checksum: json['Checksum'] as String?, - packageInfo: json['PackageInfo'] == null - ? null - : PackageInfo.fromJson(json['PackageInfo'] as Map), + packageInfo: + json['PackageInfo'] == null ? null : PackageInfo.fromJson(json['PackageInfo'] as Map), ); -Map _$InstallationInfoToJson(InstallationInfo instance) => - { +Map _$InstallationInfoToJson(InstallationInfo instance) => { if (instance.guid case final value?) 'Guid': value, if (instance.name case final value?) 'Name': value, if (instance.version case final value?) 'Version': value, if (instance.changelog case final value?) 'Changelog': value, if (instance.sourceUrl case final value?) 'SourceUrl': value, if (instance.checksum case final value?) 'Checksum': value, - if (instance.packageInfo?.toJson() case final value?) - 'PackageInfo': value, + if (instance.packageInfo?.toJson() case final value?) 'PackageInfo': value, }; IPlugin _$IPluginFromJson(Map json) => IPlugin( @@ -2392,8 +1742,7 @@ Map _$IPluginToJson(IPlugin instance) => { if (instance.description case final value?) 'Description': value, if (instance.id case final value?) 'Id': value, if (instance.version case final value?) 'Version': value, - if (instance.assemblyFilePath case final value?) - 'AssemblyFilePath': value, + if (instance.assemblyFilePath case final value?) 'AssemblyFilePath': value, if (instance.canUninstall case final value?) 'CanUninstall': value, if (instance.dataFolderPath case final value?) 'DataFolderPath': value, }; @@ -2413,8 +1762,7 @@ ItemCounts _$ItemCountsFromJson(Map json) => ItemCounts( itemCount: (json['ItemCount'] as num?)?.toInt(), ); -Map _$ItemCountsToJson(ItemCounts instance) => - { +Map _$ItemCountsToJson(ItemCounts instance) => { if (instance.movieCount case final value?) 'MovieCount': value, if (instance.seriesCount case final value?) 'SeriesCount': value, if (instance.episodeCount case final value?) 'EpisodeCount': value, @@ -2429,304 +1777,180 @@ Map _$ItemCountsToJson(ItemCounts instance) => if (instance.itemCount case final value?) 'ItemCount': value, }; -JoinGroupRequestDto _$JoinGroupRequestDtoFromJson(Map json) => - JoinGroupRequestDto( +JoinGroupRequestDto _$JoinGroupRequestDtoFromJson(Map json) => JoinGroupRequestDto( groupId: json['GroupId'] as String?, ); -Map _$JoinGroupRequestDtoToJson( - JoinGroupRequestDto instance) => - { +Map _$JoinGroupRequestDtoToJson(JoinGroupRequestDto instance) => { if (instance.groupId case final value?) 'GroupId': value, }; -LibraryChangedMessage _$LibraryChangedMessageFromJson( - Map json) => - LibraryChangedMessage( - data: json['Data'] == null - ? null - : LibraryUpdateInfo.fromJson(json['Data'] as Map), +LibraryChangedMessage _$LibraryChangedMessageFromJson(Map json) => LibraryChangedMessage( + data: json['Data'] == null ? null : LibraryUpdateInfo.fromJson(json['Data'] as Map), messageId: json['MessageId'] as String?, - messageType: - LibraryChangedMessage.sessionMessageTypeMessageTypeNullableFromJson( - json['MessageType']), + messageType: LibraryChangedMessage.sessionMessageTypeMessageTypeNullableFromJson(json['MessageType']), ); -Map _$LibraryChangedMessageToJson( - LibraryChangedMessage instance) => - { +Map _$LibraryChangedMessageToJson(LibraryChangedMessage instance) => { if (instance.data?.toJson() case final value?) 'Data': value, if (instance.messageId case final value?) 'MessageId': value, - if (sessionMessageTypeNullableToJson(instance.messageType) - case final value?) - 'MessageType': value, + if (sessionMessageTypeNullableToJson(instance.messageType) case final value?) 'MessageType': value, }; -LibraryOptionInfoDto _$LibraryOptionInfoDtoFromJson( - Map json) => - LibraryOptionInfoDto( +LibraryOptionInfoDto _$LibraryOptionInfoDtoFromJson(Map json) => LibraryOptionInfoDto( name: json['Name'] as String?, defaultEnabled: json['DefaultEnabled'] as bool?, ); -Map _$LibraryOptionInfoDtoToJson( - LibraryOptionInfoDto instance) => - { +Map _$LibraryOptionInfoDtoToJson(LibraryOptionInfoDto instance) => { if (instance.name case final value?) 'Name': value, if (instance.defaultEnabled case final value?) 'DefaultEnabled': value, }; -LibraryOptions _$LibraryOptionsFromJson(Map json) => - LibraryOptions( +LibraryOptions _$LibraryOptionsFromJson(Map json) => LibraryOptions( enabled: json['Enabled'] as bool?, enablePhotos: json['EnablePhotos'] as bool?, enableRealtimeMonitor: json['EnableRealtimeMonitor'] as bool?, enableLUFSScan: json['EnableLUFSScan'] as bool?, - enableChapterImageExtraction: - json['EnableChapterImageExtraction'] as bool?, - extractChapterImagesDuringLibraryScan: - json['ExtractChapterImagesDuringLibraryScan'] as bool?, - enableTrickplayImageExtraction: - json['EnableTrickplayImageExtraction'] as bool?, - extractTrickplayImagesDuringLibraryScan: - json['ExtractTrickplayImagesDuringLibraryScan'] as bool?, + enableChapterImageExtraction: json['EnableChapterImageExtraction'] as bool?, + extractChapterImagesDuringLibraryScan: json['ExtractChapterImagesDuringLibraryScan'] as bool?, + enableTrickplayImageExtraction: json['EnableTrickplayImageExtraction'] as bool?, + extractTrickplayImagesDuringLibraryScan: json['ExtractTrickplayImagesDuringLibraryScan'] as bool?, pathInfos: (json['PathInfos'] as List?) ?.map((e) => MediaPathInfo.fromJson(e as Map)) .toList() ?? [], saveLocalMetadata: json['SaveLocalMetadata'] as bool?, enableInternetProviders: json['EnableInternetProviders'] as bool?, - enableAutomaticSeriesGrouping: - json['EnableAutomaticSeriesGrouping'] as bool?, + enableAutomaticSeriesGrouping: json['EnableAutomaticSeriesGrouping'] as bool?, enableEmbeddedTitles: json['EnableEmbeddedTitles'] as bool?, enableEmbeddedExtrasTitles: json['EnableEmbeddedExtrasTitles'] as bool?, enableEmbeddedEpisodeInfos: json['EnableEmbeddedEpisodeInfos'] as bool?, - automaticRefreshIntervalDays: - (json['AutomaticRefreshIntervalDays'] as num?)?.toInt(), + automaticRefreshIntervalDays: (json['AutomaticRefreshIntervalDays'] as num?)?.toInt(), preferredMetadataLanguage: json['PreferredMetadataLanguage'] as String?, metadataCountryCode: json['MetadataCountryCode'] as String?, seasonZeroDisplayName: json['SeasonZeroDisplayName'] as String?, - metadataSavers: (json['MetadataSavers'] as List?) - ?.map((e) => e as String) - .toList() ?? - [], + metadataSavers: (json['MetadataSavers'] as List?)?.map((e) => e as String).toList() ?? [], disabledLocalMetadataReaders: - (json['DisabledLocalMetadataReaders'] as List?) - ?.map((e) => e as String) - .toList() ?? - [], + (json['DisabledLocalMetadataReaders'] as List?)?.map((e) => e as String).toList() ?? [], localMetadataReaderOrder: - (json['LocalMetadataReaderOrder'] as List?) - ?.map((e) => e as String) - .toList() ?? - [], + (json['LocalMetadataReaderOrder'] as List?)?.map((e) => e as String).toList() ?? [], disabledSubtitleFetchers: - (json['DisabledSubtitleFetchers'] as List?) - ?.map((e) => e as String) - .toList() ?? - [], - subtitleFetcherOrder: (json['SubtitleFetcherOrder'] as List?) - ?.map((e) => e as String) - .toList() ?? - [], + (json['DisabledSubtitleFetchers'] as List?)?.map((e) => e as String).toList() ?? [], + subtitleFetcherOrder: (json['SubtitleFetcherOrder'] as List?)?.map((e) => e as String).toList() ?? [], disabledMediaSegmentProviders: - (json['DisabledMediaSegmentProviders'] as List?) - ?.map((e) => e as String) - .toList() ?? - [], + (json['DisabledMediaSegmentProviders'] as List?)?.map((e) => e as String).toList() ?? [], mediaSegmentProviderOrder: - (json['MediaSegmentProviderOrder'] as List?) - ?.map((e) => e as String) - .toList() ?? - [], - skipSubtitlesIfEmbeddedSubtitlesPresent: - json['SkipSubtitlesIfEmbeddedSubtitlesPresent'] as bool?, - skipSubtitlesIfAudioTrackMatches: - json['SkipSubtitlesIfAudioTrackMatches'] as bool?, + (json['MediaSegmentProviderOrder'] as List?)?.map((e) => e as String).toList() ?? [], + skipSubtitlesIfEmbeddedSubtitlesPresent: json['SkipSubtitlesIfEmbeddedSubtitlesPresent'] as bool?, + skipSubtitlesIfAudioTrackMatches: json['SkipSubtitlesIfAudioTrackMatches'] as bool?, subtitleDownloadLanguages: - (json['SubtitleDownloadLanguages'] as List?) - ?.map((e) => e as String) - .toList() ?? - [], + (json['SubtitleDownloadLanguages'] as List?)?.map((e) => e as String).toList() ?? [], requirePerfectSubtitleMatch: json['RequirePerfectSubtitleMatch'] as bool?, saveSubtitlesWithMedia: json['SaveSubtitlesWithMedia'] as bool?, saveLyricsWithMedia: json['SaveLyricsWithMedia'] as bool? ?? false, saveTrickplayWithMedia: json['SaveTrickplayWithMedia'] as bool? ?? false, - disabledLyricFetchers: (json['DisabledLyricFetchers'] as List?) - ?.map((e) => e as String) - .toList() ?? - [], - lyricFetcherOrder: (json['LyricFetcherOrder'] as List?) - ?.map((e) => e as String) - .toList() ?? - [], - preferNonstandardArtistsTag: - json['PreferNonstandardArtistsTag'] as bool? ?? false, + disabledLyricFetchers: (json['DisabledLyricFetchers'] as List?)?.map((e) => e as String).toList() ?? [], + lyricFetcherOrder: (json['LyricFetcherOrder'] as List?)?.map((e) => e as String).toList() ?? [], + preferNonstandardArtistsTag: json['PreferNonstandardArtistsTag'] as bool? ?? false, useCustomTagDelimiters: json['UseCustomTagDelimiters'] as bool? ?? false, - customTagDelimiters: (json['CustomTagDelimiters'] as List?) - ?.map((e) => e as String) - .toList() ?? - [], - delimiterWhitelist: (json['DelimiterWhitelist'] as List?) - ?.map((e) => e as String) - .toList() ?? - [], - automaticallyAddToCollection: - json['AutomaticallyAddToCollection'] as bool?, - allowEmbeddedSubtitles: embeddedSubtitleOptionsNullableFromJson( - json['AllowEmbeddedSubtitles']), + customTagDelimiters: (json['CustomTagDelimiters'] as List?)?.map((e) => e as String).toList() ?? [], + delimiterWhitelist: (json['DelimiterWhitelist'] as List?)?.map((e) => e as String).toList() ?? [], + automaticallyAddToCollection: json['AutomaticallyAddToCollection'] as bool?, + allowEmbeddedSubtitles: embeddedSubtitleOptionsNullableFromJson(json['AllowEmbeddedSubtitles']), typeOptions: (json['TypeOptions'] as List?) ?.map((e) => TypeOptions.fromJson(e as Map)) .toList() ?? [], ); -Map _$LibraryOptionsToJson(LibraryOptions instance) => - { +Map _$LibraryOptionsToJson(LibraryOptions instance) => { if (instance.enabled case final value?) 'Enabled': value, if (instance.enablePhotos case final value?) 'EnablePhotos': value, - if (instance.enableRealtimeMonitor case final value?) - 'EnableRealtimeMonitor': value, + if (instance.enableRealtimeMonitor case final value?) 'EnableRealtimeMonitor': value, if (instance.enableLUFSScan case final value?) 'EnableLUFSScan': value, - if (instance.enableChapterImageExtraction case final value?) - 'EnableChapterImageExtraction': value, + if (instance.enableChapterImageExtraction case final value?) 'EnableChapterImageExtraction': value, if (instance.extractChapterImagesDuringLibraryScan case final value?) 'ExtractChapterImagesDuringLibraryScan': value, - if (instance.enableTrickplayImageExtraction case final value?) - 'EnableTrickplayImageExtraction': value, + if (instance.enableTrickplayImageExtraction case final value?) 'EnableTrickplayImageExtraction': value, if (instance.extractTrickplayImagesDuringLibraryScan case final value?) 'ExtractTrickplayImagesDuringLibraryScan': value, - if (instance.pathInfos?.map((e) => e.toJson()).toList() case final value?) - 'PathInfos': value, - if (instance.saveLocalMetadata case final value?) - 'SaveLocalMetadata': value, - if (instance.enableInternetProviders case final value?) - 'EnableInternetProviders': value, - if (instance.enableAutomaticSeriesGrouping case final value?) - 'EnableAutomaticSeriesGrouping': value, - if (instance.enableEmbeddedTitles case final value?) - 'EnableEmbeddedTitles': value, - if (instance.enableEmbeddedExtrasTitles case final value?) - 'EnableEmbeddedExtrasTitles': value, - if (instance.enableEmbeddedEpisodeInfos case final value?) - 'EnableEmbeddedEpisodeInfos': value, - if (instance.automaticRefreshIntervalDays case final value?) - 'AutomaticRefreshIntervalDays': value, - if (instance.preferredMetadataLanguage case final value?) - 'PreferredMetadataLanguage': value, - if (instance.metadataCountryCode case final value?) - 'MetadataCountryCode': value, - if (instance.seasonZeroDisplayName case final value?) - 'SeasonZeroDisplayName': value, + if (instance.pathInfos?.map((e) => e.toJson()).toList() case final value?) 'PathInfos': value, + if (instance.saveLocalMetadata case final value?) 'SaveLocalMetadata': value, + if (instance.enableInternetProviders case final value?) 'EnableInternetProviders': value, + if (instance.enableAutomaticSeriesGrouping case final value?) 'EnableAutomaticSeriesGrouping': value, + if (instance.enableEmbeddedTitles case final value?) 'EnableEmbeddedTitles': value, + if (instance.enableEmbeddedExtrasTitles case final value?) 'EnableEmbeddedExtrasTitles': value, + if (instance.enableEmbeddedEpisodeInfos case final value?) 'EnableEmbeddedEpisodeInfos': value, + if (instance.automaticRefreshIntervalDays case final value?) 'AutomaticRefreshIntervalDays': value, + if (instance.preferredMetadataLanguage case final value?) 'PreferredMetadataLanguage': value, + if (instance.metadataCountryCode case final value?) 'MetadataCountryCode': value, + if (instance.seasonZeroDisplayName case final value?) 'SeasonZeroDisplayName': value, if (instance.metadataSavers case final value?) 'MetadataSavers': value, - if (instance.disabledLocalMetadataReaders case final value?) - 'DisabledLocalMetadataReaders': value, - if (instance.localMetadataReaderOrder case final value?) - 'LocalMetadataReaderOrder': value, - if (instance.disabledSubtitleFetchers case final value?) - 'DisabledSubtitleFetchers': value, - if (instance.subtitleFetcherOrder case final value?) - 'SubtitleFetcherOrder': value, - if (instance.disabledMediaSegmentProviders case final value?) - 'DisabledMediaSegmentProviders': value, - if (instance.mediaSegmentProviderOrder case final value?) - 'MediaSegmentProviderOrder': value, + if (instance.disabledLocalMetadataReaders case final value?) 'DisabledLocalMetadataReaders': value, + if (instance.localMetadataReaderOrder case final value?) 'LocalMetadataReaderOrder': value, + if (instance.disabledSubtitleFetchers case final value?) 'DisabledSubtitleFetchers': value, + if (instance.subtitleFetcherOrder case final value?) 'SubtitleFetcherOrder': value, + if (instance.disabledMediaSegmentProviders case final value?) 'DisabledMediaSegmentProviders': value, + if (instance.mediaSegmentProviderOrder case final value?) 'MediaSegmentProviderOrder': value, if (instance.skipSubtitlesIfEmbeddedSubtitlesPresent case final value?) 'SkipSubtitlesIfEmbeddedSubtitlesPresent': value, - if (instance.skipSubtitlesIfAudioTrackMatches case final value?) - 'SkipSubtitlesIfAudioTrackMatches': value, - if (instance.subtitleDownloadLanguages case final value?) - 'SubtitleDownloadLanguages': value, - if (instance.requirePerfectSubtitleMatch case final value?) - 'RequirePerfectSubtitleMatch': value, - if (instance.saveSubtitlesWithMedia case final value?) - 'SaveSubtitlesWithMedia': value, - if (instance.saveLyricsWithMedia case final value?) - 'SaveLyricsWithMedia': value, - if (instance.saveTrickplayWithMedia case final value?) - 'SaveTrickplayWithMedia': value, - if (instance.disabledLyricFetchers case final value?) - 'DisabledLyricFetchers': value, - if (instance.lyricFetcherOrder case final value?) - 'LyricFetcherOrder': value, - if (instance.preferNonstandardArtistsTag case final value?) - 'PreferNonstandardArtistsTag': value, - if (instance.useCustomTagDelimiters case final value?) - 'UseCustomTagDelimiters': value, - if (instance.customTagDelimiters case final value?) - 'CustomTagDelimiters': value, - if (instance.delimiterWhitelist case final value?) - 'DelimiterWhitelist': value, - if (instance.automaticallyAddToCollection case final value?) - 'AutomaticallyAddToCollection': value, - if (embeddedSubtitleOptionsNullableToJson(instance.allowEmbeddedSubtitles) - case final value?) + if (instance.skipSubtitlesIfAudioTrackMatches case final value?) 'SkipSubtitlesIfAudioTrackMatches': value, + if (instance.subtitleDownloadLanguages case final value?) 'SubtitleDownloadLanguages': value, + if (instance.requirePerfectSubtitleMatch case final value?) 'RequirePerfectSubtitleMatch': value, + if (instance.saveSubtitlesWithMedia case final value?) 'SaveSubtitlesWithMedia': value, + if (instance.saveLyricsWithMedia case final value?) 'SaveLyricsWithMedia': value, + if (instance.saveTrickplayWithMedia case final value?) 'SaveTrickplayWithMedia': value, + if (instance.disabledLyricFetchers case final value?) 'DisabledLyricFetchers': value, + if (instance.lyricFetcherOrder case final value?) 'LyricFetcherOrder': value, + if (instance.preferNonstandardArtistsTag case final value?) 'PreferNonstandardArtistsTag': value, + if (instance.useCustomTagDelimiters case final value?) 'UseCustomTagDelimiters': value, + if (instance.customTagDelimiters case final value?) 'CustomTagDelimiters': value, + if (instance.delimiterWhitelist case final value?) 'DelimiterWhitelist': value, + if (instance.automaticallyAddToCollection case final value?) 'AutomaticallyAddToCollection': value, + if (embeddedSubtitleOptionsNullableToJson(instance.allowEmbeddedSubtitles) case final value?) 'AllowEmbeddedSubtitles': value, - if (instance.typeOptions?.map((e) => e.toJson()).toList() - case final value?) - 'TypeOptions': value, + if (instance.typeOptions?.map((e) => e.toJson()).toList() case final value?) 'TypeOptions': value, }; -LibraryOptionsResultDto _$LibraryOptionsResultDtoFromJson( - Map json) => - LibraryOptionsResultDto( +LibraryOptionsResultDto _$LibraryOptionsResultDtoFromJson(Map json) => LibraryOptionsResultDto( metadataSavers: (json['MetadataSavers'] as List?) - ?.map((e) => - LibraryOptionInfoDto.fromJson(e as Map)) + ?.map((e) => LibraryOptionInfoDto.fromJson(e as Map)) .toList() ?? [], metadataReaders: (json['MetadataReaders'] as List?) - ?.map((e) => - LibraryOptionInfoDto.fromJson(e as Map)) + ?.map((e) => LibraryOptionInfoDto.fromJson(e as Map)) .toList() ?? [], subtitleFetchers: (json['SubtitleFetchers'] as List?) - ?.map((e) => - LibraryOptionInfoDto.fromJson(e as Map)) + ?.map((e) => LibraryOptionInfoDto.fromJson(e as Map)) .toList() ?? [], lyricFetchers: (json['LyricFetchers'] as List?) - ?.map((e) => - LibraryOptionInfoDto.fromJson(e as Map)) + ?.map((e) => LibraryOptionInfoDto.fromJson(e as Map)) .toList() ?? [], mediaSegmentProviders: (json['MediaSegmentProviders'] as List?) - ?.map((e) => - LibraryOptionInfoDto.fromJson(e as Map)) + ?.map((e) => LibraryOptionInfoDto.fromJson(e as Map)) .toList() ?? [], typeOptions: (json['TypeOptions'] as List?) - ?.map((e) => - LibraryTypeOptionsDto.fromJson(e as Map)) + ?.map((e) => LibraryTypeOptionsDto.fromJson(e as Map)) .toList() ?? [], ); -Map _$LibraryOptionsResultDtoToJson( - LibraryOptionsResultDto instance) => - { - if (instance.metadataSavers?.map((e) => e.toJson()).toList() - case final value?) - 'MetadataSavers': value, - if (instance.metadataReaders?.map((e) => e.toJson()).toList() - case final value?) - 'MetadataReaders': value, - if (instance.subtitleFetchers?.map((e) => e.toJson()).toList() - case final value?) - 'SubtitleFetchers': value, - if (instance.lyricFetchers?.map((e) => e.toJson()).toList() - case final value?) - 'LyricFetchers': value, - if (instance.mediaSegmentProviders?.map((e) => e.toJson()).toList() - case final value?) +Map _$LibraryOptionsResultDtoToJson(LibraryOptionsResultDto instance) => { + if (instance.metadataSavers?.map((e) => e.toJson()).toList() case final value?) 'MetadataSavers': value, + if (instance.metadataReaders?.map((e) => e.toJson()).toList() case final value?) 'MetadataReaders': value, + if (instance.subtitleFetchers?.map((e) => e.toJson()).toList() case final value?) 'SubtitleFetchers': value, + if (instance.lyricFetchers?.map((e) => e.toJson()).toList() case final value?) 'LyricFetchers': value, + if (instance.mediaSegmentProviders?.map((e) => e.toJson()).toList() case final value?) 'MediaSegmentProviders': value, - if (instance.typeOptions?.map((e) => e.toJson()).toList() - case final value?) - 'TypeOptions': value, + if (instance.typeOptions?.map((e) => e.toJson()).toList() case final value?) 'TypeOptions': value, }; -LibraryStorageDto _$LibraryStorageDtoFromJson(Map json) => - LibraryStorageDto( +LibraryStorageDto _$LibraryStorageDtoFromJson(Map json) => LibraryStorageDto( id: json['Id'] as String?, name: json['Name'] as String?, folders: (json['Folders'] as List?) @@ -2735,97 +1959,58 @@ LibraryStorageDto _$LibraryStorageDtoFromJson(Map json) => [], ); -Map _$LibraryStorageDtoToJson(LibraryStorageDto instance) => - { +Map _$LibraryStorageDtoToJson(LibraryStorageDto instance) => { if (instance.id case final value?) 'Id': value, if (instance.name case final value?) 'Name': value, - if (instance.folders?.map((e) => e.toJson()).toList() case final value?) - 'Folders': value, + if (instance.folders?.map((e) => e.toJson()).toList() case final value?) 'Folders': value, }; -LibraryTypeOptionsDto _$LibraryTypeOptionsDtoFromJson( - Map json) => - LibraryTypeOptionsDto( +LibraryTypeOptionsDto _$LibraryTypeOptionsDtoFromJson(Map json) => LibraryTypeOptionsDto( type: json['Type'] as String?, metadataFetchers: (json['MetadataFetchers'] as List?) - ?.map((e) => - LibraryOptionInfoDto.fromJson(e as Map)) + ?.map((e) => LibraryOptionInfoDto.fromJson(e as Map)) .toList() ?? [], imageFetchers: (json['ImageFetchers'] as List?) - ?.map((e) => - LibraryOptionInfoDto.fromJson(e as Map)) + ?.map((e) => LibraryOptionInfoDto.fromJson(e as Map)) .toList() ?? [], - supportedImageTypes: - imageTypeListFromJson(json['SupportedImageTypes'] as List?), + supportedImageTypes: imageTypeListFromJson(json['SupportedImageTypes'] as List?), defaultImageOptions: (json['DefaultImageOptions'] as List?) ?.map((e) => ImageOption.fromJson(e as Map)) .toList() ?? [], ); -Map _$LibraryTypeOptionsDtoToJson( - LibraryTypeOptionsDto instance) => - { +Map _$LibraryTypeOptionsDtoToJson(LibraryTypeOptionsDto instance) => { if (instance.type case final value?) 'Type': value, - if (instance.metadataFetchers?.map((e) => e.toJson()).toList() - case final value?) - 'MetadataFetchers': value, - if (instance.imageFetchers?.map((e) => e.toJson()).toList() - case final value?) - 'ImageFetchers': value, + if (instance.metadataFetchers?.map((e) => e.toJson()).toList() case final value?) 'MetadataFetchers': value, + if (instance.imageFetchers?.map((e) => e.toJson()).toList() case final value?) 'ImageFetchers': value, 'SupportedImageTypes': imageTypeListToJson(instance.supportedImageTypes), - if (instance.defaultImageOptions?.map((e) => e.toJson()).toList() - case final value?) - 'DefaultImageOptions': value, + if (instance.defaultImageOptions?.map((e) => e.toJson()).toList() case final value?) 'DefaultImageOptions': value, }; -LibraryUpdateInfo _$LibraryUpdateInfoFromJson(Map json) => - LibraryUpdateInfo( - foldersAddedTo: (json['FoldersAddedTo'] as List?) - ?.map((e) => e as String) - .toList() ?? - [], - foldersRemovedFrom: (json['FoldersRemovedFrom'] as List?) - ?.map((e) => e as String) - .toList() ?? - [], - itemsAdded: (json['ItemsAdded'] as List?) - ?.map((e) => e as String) - .toList() ?? - [], - itemsRemoved: (json['ItemsRemoved'] as List?) - ?.map((e) => e as String) - .toList() ?? - [], - itemsUpdated: (json['ItemsUpdated'] as List?) - ?.map((e) => e as String) - .toList() ?? - [], - collectionFolders: (json['CollectionFolders'] as List?) - ?.map((e) => e as String) - .toList() ?? - [], +LibraryUpdateInfo _$LibraryUpdateInfoFromJson(Map json) => LibraryUpdateInfo( + foldersAddedTo: (json['FoldersAddedTo'] as List?)?.map((e) => e as String).toList() ?? [], + foldersRemovedFrom: (json['FoldersRemovedFrom'] as List?)?.map((e) => e as String).toList() ?? [], + itemsAdded: (json['ItemsAdded'] as List?)?.map((e) => e as String).toList() ?? [], + itemsRemoved: (json['ItemsRemoved'] as List?)?.map((e) => e as String).toList() ?? [], + itemsUpdated: (json['ItemsUpdated'] as List?)?.map((e) => e as String).toList() ?? [], + collectionFolders: (json['CollectionFolders'] as List?)?.map((e) => e as String).toList() ?? [], isEmpty: json['IsEmpty'] as bool?, ); -Map _$LibraryUpdateInfoToJson(LibraryUpdateInfo instance) => - { +Map _$LibraryUpdateInfoToJson(LibraryUpdateInfo instance) => { if (instance.foldersAddedTo case final value?) 'FoldersAddedTo': value, - if (instance.foldersRemovedFrom case final value?) - 'FoldersRemovedFrom': value, + if (instance.foldersRemovedFrom case final value?) 'FoldersRemovedFrom': value, if (instance.itemsAdded case final value?) 'ItemsAdded': value, if (instance.itemsRemoved case final value?) 'ItemsRemoved': value, if (instance.itemsUpdated case final value?) 'ItemsUpdated': value, - if (instance.collectionFolders case final value?) - 'CollectionFolders': value, + if (instance.collectionFolders case final value?) 'CollectionFolders': value, if (instance.isEmpty case final value?) 'IsEmpty': value, }; -ListingsProviderInfo _$ListingsProviderInfoFromJson( - Map json) => - ListingsProviderInfo( +ListingsProviderInfo _$ListingsProviderInfoFromJson(Map json) => ListingsProviderInfo( id: json['Id'] as String?, type: json['Type'] as String?, username: json['Username'] as String?, @@ -2834,27 +2019,12 @@ ListingsProviderInfo _$ListingsProviderInfoFromJson( zipCode: json['ZipCode'] as String?, country: json['Country'] as String?, path: json['Path'] as String?, - enabledTuners: (json['EnabledTuners'] as List?) - ?.map((e) => e as String) - .toList() ?? - [], + enabledTuners: (json['EnabledTuners'] as List?)?.map((e) => e as String).toList() ?? [], enableAllTuners: json['EnableAllTuners'] as bool?, - newsCategories: (json['NewsCategories'] as List?) - ?.map((e) => e as String) - .toList() ?? - [], - sportsCategories: (json['SportsCategories'] as List?) - ?.map((e) => e as String) - .toList() ?? - [], - kidsCategories: (json['KidsCategories'] as List?) - ?.map((e) => e as String) - .toList() ?? - [], - movieCategories: (json['MovieCategories'] as List?) - ?.map((e) => e as String) - .toList() ?? - [], + newsCategories: (json['NewsCategories'] as List?)?.map((e) => e as String).toList() ?? [], + sportsCategories: (json['SportsCategories'] as List?)?.map((e) => e as String).toList() ?? [], + kidsCategories: (json['KidsCategories'] as List?)?.map((e) => e as String).toList() ?? [], + movieCategories: (json['MovieCategories'] as List?)?.map((e) => e as String).toList() ?? [], channelMappings: (json['ChannelMappings'] as List?) ?.map((e) => NameValuePair.fromJson(e as Map)) .toList() ?? @@ -2864,9 +2034,7 @@ ListingsProviderInfo _$ListingsProviderInfoFromJson( userAgent: json['UserAgent'] as String?, ); -Map _$ListingsProviderInfoToJson( - ListingsProviderInfo instance) => - { +Map _$ListingsProviderInfoToJson(ListingsProviderInfo instance) => { if (instance.id case final value?) 'Id': value, if (instance.type case final value?) 'Type': value, if (instance.username case final value?) 'Username': value, @@ -2878,121 +2046,83 @@ Map _$ListingsProviderInfoToJson( if (instance.enabledTuners case final value?) 'EnabledTuners': value, if (instance.enableAllTuners case final value?) 'EnableAllTuners': value, if (instance.newsCategories case final value?) 'NewsCategories': value, - if (instance.sportsCategories case final value?) - 'SportsCategories': value, + if (instance.sportsCategories case final value?) 'SportsCategories': value, if (instance.kidsCategories case final value?) 'KidsCategories': value, if (instance.movieCategories case final value?) 'MovieCategories': value, - if (instance.channelMappings?.map((e) => e.toJson()).toList() - case final value?) - 'ChannelMappings': value, + if (instance.channelMappings?.map((e) => e.toJson()).toList() case final value?) 'ChannelMappings': value, if (instance.moviePrefix case final value?) 'MoviePrefix': value, - if (instance.preferredLanguage case final value?) - 'PreferredLanguage': value, + if (instance.preferredLanguage case final value?) 'PreferredLanguage': value, if (instance.userAgent case final value?) 'UserAgent': value, }; -LiveStreamResponse _$LiveStreamResponseFromJson(Map json) => - LiveStreamResponse( - mediaSource: json['MediaSource'] == null - ? null - : MediaSourceInfo.fromJson( - json['MediaSource'] as Map), +LiveStreamResponse _$LiveStreamResponseFromJson(Map json) => LiveStreamResponse( + mediaSource: + json['MediaSource'] == null ? null : MediaSourceInfo.fromJson(json['MediaSource'] as Map), ); -Map _$LiveStreamResponseToJson(LiveStreamResponse instance) => - { - if (instance.mediaSource?.toJson() case final value?) - 'MediaSource': value, +Map _$LiveStreamResponseToJson(LiveStreamResponse instance) => { + if (instance.mediaSource?.toJson() case final value?) 'MediaSource': value, }; LiveTvInfo _$LiveTvInfoFromJson(Map json) => LiveTvInfo( services: (json['Services'] as List?) - ?.map( - (e) => LiveTvServiceInfo.fromJson(e as Map)) + ?.map((e) => LiveTvServiceInfo.fromJson(e as Map)) .toList() ?? [], isEnabled: json['IsEnabled'] as bool?, - enabledUsers: (json['EnabledUsers'] as List?) - ?.map((e) => e as String) - .toList() ?? - [], + enabledUsers: (json['EnabledUsers'] as List?)?.map((e) => e as String).toList() ?? [], ); -Map _$LiveTvInfoToJson(LiveTvInfo instance) => - { - if (instance.services?.map((e) => e.toJson()).toList() case final value?) - 'Services': value, +Map _$LiveTvInfoToJson(LiveTvInfo instance) => { + if (instance.services?.map((e) => e.toJson()).toList() case final value?) 'Services': value, if (instance.isEnabled case final value?) 'IsEnabled': value, if (instance.enabledUsers case final value?) 'EnabledUsers': value, }; -LiveTvOptions _$LiveTvOptionsFromJson(Map json) => - LiveTvOptions( +LiveTvOptions _$LiveTvOptionsFromJson(Map json) => LiveTvOptions( guideDays: (json['GuideDays'] as num?)?.toInt(), recordingPath: json['RecordingPath'] as String?, movieRecordingPath: json['MovieRecordingPath'] as String?, seriesRecordingPath: json['SeriesRecordingPath'] as String?, enableRecordingSubfolders: json['EnableRecordingSubfolders'] as bool?, - enableOriginalAudioWithEncodedRecordings: - json['EnableOriginalAudioWithEncodedRecordings'] as bool?, + enableOriginalAudioWithEncodedRecordings: json['EnableOriginalAudioWithEncodedRecordings'] as bool?, tunerHosts: (json['TunerHosts'] as List?) ?.map((e) => TunerHostInfo.fromJson(e as Map)) .toList() ?? [], listingProviders: (json['ListingProviders'] as List?) - ?.map((e) => - ListingsProviderInfo.fromJson(e as Map)) + ?.map((e) => ListingsProviderInfo.fromJson(e as Map)) .toList() ?? [], prePaddingSeconds: (json['PrePaddingSeconds'] as num?)?.toInt(), postPaddingSeconds: (json['PostPaddingSeconds'] as num?)?.toInt(), - mediaLocationsCreated: (json['MediaLocationsCreated'] as List?) - ?.map((e) => e as String) - .toList() ?? - [], + mediaLocationsCreated: (json['MediaLocationsCreated'] as List?)?.map((e) => e as String).toList() ?? [], recordingPostProcessor: json['RecordingPostProcessor'] as String?, - recordingPostProcessorArguments: - json['RecordingPostProcessorArguments'] as String?, + recordingPostProcessorArguments: json['RecordingPostProcessorArguments'] as String?, saveRecordingNFO: json['SaveRecordingNFO'] as bool?, saveRecordingImages: json['SaveRecordingImages'] as bool?, ); -Map _$LiveTvOptionsToJson(LiveTvOptions instance) => - { +Map _$LiveTvOptionsToJson(LiveTvOptions instance) => { if (instance.guideDays case final value?) 'GuideDays': value, if (instance.recordingPath case final value?) 'RecordingPath': value, - if (instance.movieRecordingPath case final value?) - 'MovieRecordingPath': value, - if (instance.seriesRecordingPath case final value?) - 'SeriesRecordingPath': value, - if (instance.enableRecordingSubfolders case final value?) - 'EnableRecordingSubfolders': value, + if (instance.movieRecordingPath case final value?) 'MovieRecordingPath': value, + if (instance.seriesRecordingPath case final value?) 'SeriesRecordingPath': value, + if (instance.enableRecordingSubfolders case final value?) 'EnableRecordingSubfolders': value, if (instance.enableOriginalAudioWithEncodedRecordings case final value?) 'EnableOriginalAudioWithEncodedRecordings': value, - if (instance.tunerHosts?.map((e) => e.toJson()).toList() - case final value?) - 'TunerHosts': value, - if (instance.listingProviders?.map((e) => e.toJson()).toList() - case final value?) - 'ListingProviders': value, - if (instance.prePaddingSeconds case final value?) - 'PrePaddingSeconds': value, - if (instance.postPaddingSeconds case final value?) - 'PostPaddingSeconds': value, - if (instance.mediaLocationsCreated case final value?) - 'MediaLocationsCreated': value, - if (instance.recordingPostProcessor case final value?) - 'RecordingPostProcessor': value, - if (instance.recordingPostProcessorArguments case final value?) - 'RecordingPostProcessorArguments': value, - if (instance.saveRecordingNFO case final value?) - 'SaveRecordingNFO': value, - if (instance.saveRecordingImages case final value?) - 'SaveRecordingImages': value, - }; - -LiveTvServiceInfo _$LiveTvServiceInfoFromJson(Map json) => - LiveTvServiceInfo( + if (instance.tunerHosts?.map((e) => e.toJson()).toList() case final value?) 'TunerHosts': value, + if (instance.listingProviders?.map((e) => e.toJson()).toList() case final value?) 'ListingProviders': value, + if (instance.prePaddingSeconds case final value?) 'PrePaddingSeconds': value, + if (instance.postPaddingSeconds case final value?) 'PostPaddingSeconds': value, + if (instance.mediaLocationsCreated case final value?) 'MediaLocationsCreated': value, + if (instance.recordingPostProcessor case final value?) 'RecordingPostProcessor': value, + if (instance.recordingPostProcessorArguments case final value?) 'RecordingPostProcessorArguments': value, + if (instance.saveRecordingNFO case final value?) 'SaveRecordingNFO': value, + if (instance.saveRecordingImages case final value?) 'SaveRecordingImages': value, + }; + +LiveTvServiceInfo _$LiveTvServiceInfoFromJson(Map json) => LiveTvServiceInfo( name: json['Name'] as String?, homePageUrl: json['HomePageUrl'] as String?, status: liveTvServiceStatusNullableFromJson(json['Status']), @@ -3000,100 +2130,76 @@ LiveTvServiceInfo _$LiveTvServiceInfoFromJson(Map json) => version: json['Version'] as String?, hasUpdateAvailable: json['HasUpdateAvailable'] as bool?, isVisible: json['IsVisible'] as bool?, - tuners: (json['Tuners'] as List?) - ?.map((e) => e as String) - .toList() ?? - [], + tuners: (json['Tuners'] as List?)?.map((e) => e as String).toList() ?? [], ); -Map _$LiveTvServiceInfoToJson(LiveTvServiceInfo instance) => - { +Map _$LiveTvServiceInfoToJson(LiveTvServiceInfo instance) => { if (instance.name case final value?) 'Name': value, if (instance.homePageUrl case final value?) 'HomePageUrl': value, - if (liveTvServiceStatusNullableToJson(instance.status) case final value?) - 'Status': value, + if (liveTvServiceStatusNullableToJson(instance.status) case final value?) 'Status': value, if (instance.statusMessage case final value?) 'StatusMessage': value, if (instance.version case final value?) 'Version': value, - if (instance.hasUpdateAvailable case final value?) - 'HasUpdateAvailable': value, + if (instance.hasUpdateAvailable case final value?) 'HasUpdateAvailable': value, if (instance.isVisible case final value?) 'IsVisible': value, if (instance.tuners case final value?) 'Tuners': value, }; -LocalizationOption _$LocalizationOptionFromJson(Map json) => - LocalizationOption( +LocalizationOption _$LocalizationOptionFromJson(Map json) => LocalizationOption( name: json['Name'] as String?, $Value: json['Value'] as String?, ); -Map _$LocalizationOptionToJson(LocalizationOption instance) => - { +Map _$LocalizationOptionToJson(LocalizationOption instance) => { if (instance.name case final value?) 'Name': value, if (instance.$Value case final value?) 'Value': value, }; LogFile _$LogFileFromJson(Map json) => LogFile( - dateCreated: json['DateCreated'] == null - ? null - : DateTime.parse(json['DateCreated'] as String), - dateModified: json['DateModified'] == null - ? null - : DateTime.parse(json['DateModified'] as String), + dateCreated: json['DateCreated'] == null ? null : DateTime.parse(json['DateCreated'] as String), + dateModified: json['DateModified'] == null ? null : DateTime.parse(json['DateModified'] as String), size: (json['Size'] as num?)?.toInt(), name: json['Name'] as String?, ); Map _$LogFileToJson(LogFile instance) => { - if (instance.dateCreated?.toIso8601String() case final value?) - 'DateCreated': value, - if (instance.dateModified?.toIso8601String() case final value?) - 'DateModified': value, + if (instance.dateCreated?.toIso8601String() case final value?) 'DateCreated': value, + if (instance.dateModified?.toIso8601String() case final value?) 'DateModified': value, if (instance.size case final value?) 'Size': value, if (instance.name case final value?) 'Name': value, }; -LoginInfoInput _$LoginInfoInputFromJson(Map json) => - LoginInfoInput( +LoginInfoInput _$LoginInfoInputFromJson(Map json) => LoginInfoInput( username: json['Username'] as String, password: json['Password'] as String, ); -Map _$LoginInfoInputToJson(LoginInfoInput instance) => - { +Map _$LoginInfoInputToJson(LoginInfoInput instance) => { 'Username': instance.username, 'Password': instance.password, }; LyricDto _$LyricDtoFromJson(Map json) => LyricDto( - metadata: json['Metadata'] == null - ? null - : LyricMetadata.fromJson(json['Metadata'] as Map), - lyrics: (json['Lyrics'] as List?) - ?.map((e) => LyricLine.fromJson(e as Map)) - .toList() ?? - [], + metadata: json['Metadata'] == null ? null : LyricMetadata.fromJson(json['Metadata'] as Map), + lyrics: + (json['Lyrics'] as List?)?.map((e) => LyricLine.fromJson(e as Map)).toList() ?? [], ); Map _$LyricDtoToJson(LyricDto instance) => { if (instance.metadata?.toJson() case final value?) 'Metadata': value, - if (instance.lyrics?.map((e) => e.toJson()).toList() case final value?) - 'Lyrics': value, + if (instance.lyrics?.map((e) => e.toJson()).toList() case final value?) 'Lyrics': value, }; LyricLine _$LyricLineFromJson(Map json) => LyricLine( text: json['Text'] as String?, start: (json['Start'] as num?)?.toInt(), - cues: (json['Cues'] as List?) - ?.map((e) => LyricLineCue.fromJson(e as Map)) - .toList() ?? - [], + cues: + (json['Cues'] as List?)?.map((e) => LyricLineCue.fromJson(e as Map)).toList() ?? [], ); Map _$LyricLineToJson(LyricLine instance) => { if (instance.text case final value?) 'Text': value, if (instance.start case final value?) 'Start': value, - if (instance.cues?.map((e) => e.toJson()).toList() case final value?) - 'Cues': value, + if (instance.cues?.map((e) => e.toJson()).toList() case final value?) 'Cues': value, }; LyricLineCue _$LyricLineCueFromJson(Map json) => LyricLineCue( @@ -3103,16 +2209,14 @@ LyricLineCue _$LyricLineCueFromJson(Map json) => LyricLineCue( end: (json['End'] as num?)?.toInt(), ); -Map _$LyricLineCueToJson(LyricLineCue instance) => - { +Map _$LyricLineCueToJson(LyricLineCue instance) => { if (instance.position case final value?) 'Position': value, if (instance.endPosition case final value?) 'EndPosition': value, if (instance.start case final value?) 'Start': value, if (instance.end case final value?) 'End': value, }; -LyricMetadata _$LyricMetadataFromJson(Map json) => - LyricMetadata( +LyricMetadata _$LyricMetadataFromJson(Map json) => LyricMetadata( artist: json['Artist'] as String?, album: json['Album'] as String?, title: json['Title'] as String?, @@ -3125,8 +2229,7 @@ LyricMetadata _$LyricMetadataFromJson(Map json) => isSynced: json['IsSynced'] as bool?, ); -Map _$LyricMetadataToJson(LyricMetadata instance) => - { +Map _$LyricMetadataToJson(LyricMetadata instance) => { if (instance.artist case final value?) 'Artist': value, if (instance.album case final value?) 'Album': value, if (instance.title case final value?) 'Title': value, @@ -3139,8 +2242,7 @@ Map _$LyricMetadataToJson(LyricMetadata instance) => if (instance.isSynced case final value?) 'IsSynced': value, }; -MediaAttachment _$MediaAttachmentFromJson(Map json) => - MediaAttachment( +MediaAttachment _$MediaAttachmentFromJson(Map json) => MediaAttachment( codec: json['Codec'] as String?, codecTag: json['CodecTag'] as String?, comment: json['Comment'] as String?, @@ -3150,8 +2252,7 @@ MediaAttachment _$MediaAttachmentFromJson(Map json) => deliveryUrl: json['DeliveryUrl'] as String?, ); -Map _$MediaAttachmentToJson(MediaAttachment instance) => - { +Map _$MediaAttachmentToJson(MediaAttachment instance) => { if (instance.codec case final value?) 'Codec': value, if (instance.codecTag case final value?) 'CodecTag': value, if (instance.comment case final value?) 'Comment': value, @@ -3164,30 +2265,24 @@ Map _$MediaAttachmentToJson(MediaAttachment instance) => MediaPathDto _$MediaPathDtoFromJson(Map json) => MediaPathDto( name: json['Name'] as String, path: json['Path'] as String?, - pathInfo: json['PathInfo'] == null - ? null - : MediaPathInfo.fromJson(json['PathInfo'] as Map), + pathInfo: json['PathInfo'] == null ? null : MediaPathInfo.fromJson(json['PathInfo'] as Map), ); -Map _$MediaPathDtoToJson(MediaPathDto instance) => - { +Map _$MediaPathDtoToJson(MediaPathDto instance) => { 'Name': instance.name, if (instance.path case final value?) 'Path': value, if (instance.pathInfo?.toJson() case final value?) 'PathInfo': value, }; -MediaPathInfo _$MediaPathInfoFromJson(Map json) => - MediaPathInfo( +MediaPathInfo _$MediaPathInfoFromJson(Map json) => MediaPathInfo( path: json['Path'] as String?, ); -Map _$MediaPathInfoToJson(MediaPathInfo instance) => - { +Map _$MediaPathInfoToJson(MediaPathInfo instance) => { if (instance.path case final value?) 'Path': value, }; -MediaSegmentDto _$MediaSegmentDtoFromJson(Map json) => - MediaSegmentDto( +MediaSegmentDto _$MediaSegmentDtoFromJson(Map json) => MediaSegmentDto( id: json['Id'] as String?, itemId: json['ItemId'] as String?, type: MediaSegmentDto.mediaSegmentTypeTypeNullableFromJson(json['Type']), @@ -3195,39 +2290,30 @@ MediaSegmentDto _$MediaSegmentDtoFromJson(Map json) => endTicks: (json['EndTicks'] as num?)?.toInt(), ); -Map _$MediaSegmentDtoToJson(MediaSegmentDto instance) => - { +Map _$MediaSegmentDtoToJson(MediaSegmentDto instance) => { if (instance.id case final value?) 'Id': value, if (instance.itemId case final value?) 'ItemId': value, - if (mediaSegmentTypeNullableToJson(instance.type) case final value?) - 'Type': value, + if (mediaSegmentTypeNullableToJson(instance.type) case final value?) 'Type': value, if (instance.startTicks case final value?) 'StartTicks': value, if (instance.endTicks case final value?) 'EndTicks': value, }; -MediaSegmentDtoQueryResult _$MediaSegmentDtoQueryResultFromJson( - Map json) => +MediaSegmentDtoQueryResult _$MediaSegmentDtoQueryResultFromJson(Map json) => MediaSegmentDtoQueryResult( - items: (json['Items'] as List?) - ?.map((e) => MediaSegmentDto.fromJson(e as Map)) - .toList() ?? - [], + items: + (json['Items'] as List?)?.map((e) => MediaSegmentDto.fromJson(e as Map)).toList() ?? + [], totalRecordCount: (json['TotalRecordCount'] as num?)?.toInt(), startIndex: (json['StartIndex'] as num?)?.toInt(), ); -Map _$MediaSegmentDtoQueryResultToJson( - MediaSegmentDtoQueryResult instance) => - { - if (instance.items?.map((e) => e.toJson()).toList() case final value?) - 'Items': value, - if (instance.totalRecordCount case final value?) - 'TotalRecordCount': value, +Map _$MediaSegmentDtoQueryResultToJson(MediaSegmentDtoQueryResult instance) => { + if (instance.items?.map((e) => e.toJson()).toList() case final value?) 'Items': value, + if (instance.totalRecordCount case final value?) 'TotalRecordCount': value, if (instance.startIndex case final value?) 'StartIndex': value, }; -MediaSourceInfo _$MediaSourceInfoFromJson(Map json) => - MediaSourceInfo( +MediaSourceInfo _$MediaSourceInfoFromJson(Map json) => MediaSourceInfo( protocol: mediaProtocolNullableFromJson(json['Protocol']), id: json['Id'] as String?, path: json['Path'] as String?, @@ -3248,8 +2334,7 @@ MediaSourceInfo _$MediaSourceInfoFromJson(Map json) => supportsDirectStream: json['SupportsDirectStream'] as bool?, supportsDirectPlay: json['SupportsDirectPlay'] as bool?, isInfiniteStream: json['IsInfiniteStream'] as bool?, - useMostCompatibleTranscodingProfile: - json['UseMostCompatibleTranscodingProfile'] as bool? ?? false, + useMostCompatibleTranscodingProfile: json['UseMostCompatibleTranscodingProfile'] as bool? ?? false, requiresOpening: json['RequiresOpening'] as bool?, openToken: json['OpenToken'] as String?, requiresClosing: json['RequiresClosing'] as bool?, @@ -3268,60 +2353,42 @@ MediaSourceInfo _$MediaSourceInfoFromJson(Map json) => ?.map((e) => MediaAttachment.fromJson(e as Map)) .toList() ?? [], - formats: (json['Formats'] as List?) - ?.map((e) => e as String) - .toList() ?? - [], + formats: (json['Formats'] as List?)?.map((e) => e as String).toList() ?? [], bitrate: (json['Bitrate'] as num?)?.toInt(), - fallbackMaxStreamingBitrate: - (json['FallbackMaxStreamingBitrate'] as num?)?.toInt(), + fallbackMaxStreamingBitrate: (json['FallbackMaxStreamingBitrate'] as num?)?.toInt(), timestamp: transportStreamTimestampNullableFromJson(json['Timestamp']), requiredHttpHeaders: json['RequiredHttpHeaders'] as Map?, transcodingUrl: json['TranscodingUrl'] as String?, - transcodingSubProtocol: - mediaStreamProtocolNullableFromJson(json['TranscodingSubProtocol']), + transcodingSubProtocol: mediaStreamProtocolNullableFromJson(json['TranscodingSubProtocol']), transcodingContainer: json['TranscodingContainer'] as String?, analyzeDurationMs: (json['AnalyzeDurationMs'] as num?)?.toInt(), - defaultAudioStreamIndex: - (json['DefaultAudioStreamIndex'] as num?)?.toInt(), - defaultSubtitleStreamIndex: - (json['DefaultSubtitleStreamIndex'] as num?)?.toInt(), + defaultAudioStreamIndex: (json['DefaultAudioStreamIndex'] as num?)?.toInt(), + defaultSubtitleStreamIndex: (json['DefaultSubtitleStreamIndex'] as num?)?.toInt(), hasSegments: json['HasSegments'] as bool?, ); -Map _$MediaSourceInfoToJson(MediaSourceInfo instance) => - { - if (mediaProtocolNullableToJson(instance.protocol) case final value?) - 'Protocol': value, +Map _$MediaSourceInfoToJson(MediaSourceInfo instance) => { + if (mediaProtocolNullableToJson(instance.protocol) case final value?) 'Protocol': value, if (instance.id case final value?) 'Id': value, if (instance.path case final value?) 'Path': value, if (instance.encoderPath case final value?) 'EncoderPath': value, - if (mediaProtocolNullableToJson(instance.encoderProtocol) - case final value?) - 'EncoderProtocol': value, - if (mediaSourceTypeNullableToJson(instance.type) case final value?) - 'Type': value, + if (mediaProtocolNullableToJson(instance.encoderProtocol) case final value?) 'EncoderProtocol': value, + if (mediaSourceTypeNullableToJson(instance.type) case final value?) 'Type': value, if (instance.container case final value?) 'Container': value, if (instance.size case final value?) 'Size': value, if (instance.name case final value?) 'Name': value, if (instance.isRemote case final value?) 'IsRemote': value, if (instance.eTag case final value?) 'ETag': value, if (instance.runTimeTicks case final value?) 'RunTimeTicks': value, - if (instance.readAtNativeFramerate case final value?) - 'ReadAtNativeFramerate': value, + if (instance.readAtNativeFramerate case final value?) 'ReadAtNativeFramerate': value, if (instance.ignoreDts case final value?) 'IgnoreDts': value, if (instance.ignoreIndex case final value?) 'IgnoreIndex': value, if (instance.genPtsInput case final value?) 'GenPtsInput': value, - if (instance.supportsTranscoding case final value?) - 'SupportsTranscoding': value, - if (instance.supportsDirectStream case final value?) - 'SupportsDirectStream': value, - if (instance.supportsDirectPlay case final value?) - 'SupportsDirectPlay': value, - if (instance.isInfiniteStream case final value?) - 'IsInfiniteStream': value, - if (instance.useMostCompatibleTranscodingProfile case final value?) - 'UseMostCompatibleTranscodingProfile': value, + if (instance.supportsTranscoding case final value?) 'SupportsTranscoding': value, + if (instance.supportsDirectStream case final value?) 'SupportsDirectStream': value, + if (instance.supportsDirectPlay case final value?) 'SupportsDirectPlay': value, + if (instance.isInfiniteStream case final value?) 'IsInfiniteStream': value, + if (instance.useMostCompatibleTranscodingProfile case final value?) 'UseMostCompatibleTranscodingProfile': value, if (instance.requiresOpening case final value?) 'RequiresOpening': value, if (instance.openToken case final value?) 'OpenToken': value, if (instance.requiresClosing case final value?) 'RequiresClosing': value, @@ -3329,39 +2396,23 @@ Map _$MediaSourceInfoToJson(MediaSourceInfo instance) => if (instance.bufferMs case final value?) 'BufferMs': value, if (instance.requiresLooping case final value?) 'RequiresLooping': value, if (instance.supportsProbing case final value?) 'SupportsProbing': value, - if (videoTypeNullableToJson(instance.videoType) case final value?) - 'VideoType': value, - if (isoTypeNullableToJson(instance.isoType) case final value?) - 'IsoType': value, - if (video3DFormatNullableToJson(instance.video3DFormat) case final value?) - 'Video3DFormat': value, - if (instance.mediaStreams?.map((e) => e.toJson()).toList() - case final value?) - 'MediaStreams': value, - if (instance.mediaAttachments?.map((e) => e.toJson()).toList() - case final value?) - 'MediaAttachments': value, + if (videoTypeNullableToJson(instance.videoType) case final value?) 'VideoType': value, + if (isoTypeNullableToJson(instance.isoType) case final value?) 'IsoType': value, + if (video3DFormatNullableToJson(instance.video3DFormat) case final value?) 'Video3DFormat': value, + if (instance.mediaStreams?.map((e) => e.toJson()).toList() case final value?) 'MediaStreams': value, + if (instance.mediaAttachments?.map((e) => e.toJson()).toList() case final value?) 'MediaAttachments': value, if (instance.formats case final value?) 'Formats': value, if (instance.bitrate case final value?) 'Bitrate': value, - if (instance.fallbackMaxStreamingBitrate case final value?) - 'FallbackMaxStreamingBitrate': value, - if (transportStreamTimestampNullableToJson(instance.timestamp) - case final value?) - 'Timestamp': value, - if (instance.requiredHttpHeaders case final value?) - 'RequiredHttpHeaders': value, + if (instance.fallbackMaxStreamingBitrate case final value?) 'FallbackMaxStreamingBitrate': value, + if (transportStreamTimestampNullableToJson(instance.timestamp) case final value?) 'Timestamp': value, + if (instance.requiredHttpHeaders case final value?) 'RequiredHttpHeaders': value, if (instance.transcodingUrl case final value?) 'TranscodingUrl': value, - if (mediaStreamProtocolNullableToJson(instance.transcodingSubProtocol) - case final value?) + if (mediaStreamProtocolNullableToJson(instance.transcodingSubProtocol) case final value?) 'TranscodingSubProtocol': value, - if (instance.transcodingContainer case final value?) - 'TranscodingContainer': value, - if (instance.analyzeDurationMs case final value?) - 'AnalyzeDurationMs': value, - if (instance.defaultAudioStreamIndex case final value?) - 'DefaultAudioStreamIndex': value, - if (instance.defaultSubtitleStreamIndex case final value?) - 'DefaultSubtitleStreamIndex': value, + if (instance.transcodingContainer case final value?) 'TranscodingContainer': value, + if (instance.analyzeDurationMs case final value?) 'AnalyzeDurationMs': value, + if (instance.defaultAudioStreamIndex case final value?) 'DefaultAudioStreamIndex': value, + if (instance.defaultSubtitleStreamIndex case final value?) 'DefaultSubtitleStreamIndex': value, if (instance.hasSegments case final value?) 'HasSegments': value, }; @@ -3380,22 +2431,17 @@ MediaStream _$MediaStreamFromJson(Map json) => MediaStream( rpuPresentFlag: (json['RpuPresentFlag'] as num?)?.toInt(), elPresentFlag: (json['ElPresentFlag'] as num?)?.toInt(), blPresentFlag: (json['BlPresentFlag'] as num?)?.toInt(), - dvBlSignalCompatibilityId: - (json['DvBlSignalCompatibilityId'] as num?)?.toInt(), + dvBlSignalCompatibilityId: (json['DvBlSignalCompatibilityId'] as num?)?.toInt(), rotation: (json['Rotation'] as num?)?.toInt(), comment: json['Comment'] as String?, timeBase: json['TimeBase'] as String?, codecTimeBase: json['CodecTimeBase'] as String?, title: json['Title'] as String?, hdr10PlusPresentFlag: json['Hdr10PlusPresentFlag'] as bool?, - videoRange: - MediaStream.videoRangeVideoRangeNullableFromJson(json['VideoRange']), - videoRangeType: MediaStream.videoRangeTypeVideoRangeTypeNullableFromJson( - json['VideoRangeType']), + videoRange: MediaStream.videoRangeVideoRangeNullableFromJson(json['VideoRange']), + videoRangeType: MediaStream.videoRangeTypeVideoRangeTypeNullableFromJson(json['VideoRangeType']), videoDoViTitle: json['VideoDoViTitle'] as String?, - audioSpatialFormat: - MediaStream.audioSpatialFormatAudioSpatialFormatNullableFromJson( - json['AudioSpatialFormat']), + audioSpatialFormat: MediaStream.audioSpatialFormatAudioSpatialFormatNullableFromJson(json['AudioSpatialFormat']), localizedUndefined: json['LocalizedUndefined'] as String?, localizedDefault: json['LocalizedDefault'] as String?, localizedForced: json['LocalizedForced'] as String?, @@ -3426,8 +2472,7 @@ MediaStream _$MediaStreamFromJson(Map json) => MediaStream( index: (json['Index'] as num?)?.toInt(), score: (json['Score'] as num?)?.toInt(), isExternal: json['IsExternal'] as bool?, - deliveryMethod: - subtitleDeliveryMethodNullableFromJson(json['DeliveryMethod']), + deliveryMethod: subtitleDeliveryMethodNullableFromJson(json['DeliveryMethod']), deliveryUrl: json['DeliveryUrl'] as String?, isExternalUrl: json['IsExternalUrl'] as bool?, isTextSubtitleStream: json['IsTextSubtitleStream'] as bool?, @@ -3438,8 +2483,7 @@ MediaStream _$MediaStreamFromJson(Map json) => MediaStream( isAnamorphic: json['IsAnamorphic'] as bool?, ); -Map _$MediaStreamToJson(MediaStream instance) => - { +Map _$MediaStreamToJson(MediaStream instance) => { if (instance.codec case final value?) 'Codec': value, if (instance.codecTag case final value?) 'CodecTag': value, if (instance.language case final value?) 'Language': value, @@ -3454,33 +2498,22 @@ Map _$MediaStreamToJson(MediaStream instance) => if (instance.rpuPresentFlag case final value?) 'RpuPresentFlag': value, if (instance.elPresentFlag case final value?) 'ElPresentFlag': value, if (instance.blPresentFlag case final value?) 'BlPresentFlag': value, - if (instance.dvBlSignalCompatibilityId case final value?) - 'DvBlSignalCompatibilityId': value, + if (instance.dvBlSignalCompatibilityId case final value?) 'DvBlSignalCompatibilityId': value, if (instance.rotation case final value?) 'Rotation': value, if (instance.comment case final value?) 'Comment': value, if (instance.timeBase case final value?) 'TimeBase': value, if (instance.codecTimeBase case final value?) 'CodecTimeBase': value, if (instance.title case final value?) 'Title': value, - if (instance.hdr10PlusPresentFlag case final value?) - 'Hdr10PlusPresentFlag': value, - if (videoRangeNullableToJson(instance.videoRange) case final value?) - 'VideoRange': value, - if (videoRangeTypeNullableToJson(instance.videoRangeType) - case final value?) - 'VideoRangeType': value, + if (instance.hdr10PlusPresentFlag case final value?) 'Hdr10PlusPresentFlag': value, + if (videoRangeNullableToJson(instance.videoRange) case final value?) 'VideoRange': value, + if (videoRangeTypeNullableToJson(instance.videoRangeType) case final value?) 'VideoRangeType': value, if (instance.videoDoViTitle case final value?) 'VideoDoViTitle': value, - if (audioSpatialFormatNullableToJson(instance.audioSpatialFormat) - case final value?) - 'AudioSpatialFormat': value, - if (instance.localizedUndefined case final value?) - 'LocalizedUndefined': value, - if (instance.localizedDefault case final value?) - 'LocalizedDefault': value, + if (audioSpatialFormatNullableToJson(instance.audioSpatialFormat) case final value?) 'AudioSpatialFormat': value, + if (instance.localizedUndefined case final value?) 'LocalizedUndefined': value, + if (instance.localizedDefault case final value?) 'LocalizedDefault': value, if (instance.localizedForced case final value?) 'LocalizedForced': value, - if (instance.localizedExternal case final value?) - 'LocalizedExternal': value, - if (instance.localizedHearingImpaired case final value?) - 'LocalizedHearingImpaired': value, + if (instance.localizedExternal case final value?) 'LocalizedExternal': value, + if (instance.localizedHearingImpaired case final value?) 'LocalizedHearingImpaired': value, if (instance.displayTitle case final value?) 'DisplayTitle': value, if (instance.nalLengthSize case final value?) 'NalLengthSize': value, if (instance.isInterlaced case final value?) 'IsInterlaced': value, @@ -3494,62 +2527,46 @@ Map _$MediaStreamToJson(MediaStream instance) => if (instance.sampleRate case final value?) 'SampleRate': value, if (instance.isDefault case final value?) 'IsDefault': value, if (instance.isForced case final value?) 'IsForced': value, - if (instance.isHearingImpaired case final value?) - 'IsHearingImpaired': value, + if (instance.isHearingImpaired case final value?) 'IsHearingImpaired': value, if (instance.height case final value?) 'Height': value, if (instance.width case final value?) 'Width': value, - if (instance.averageFrameRate case final value?) - 'AverageFrameRate': value, + if (instance.averageFrameRate case final value?) 'AverageFrameRate': value, if (instance.realFrameRate case final value?) 'RealFrameRate': value, - if (instance.referenceFrameRate case final value?) - 'ReferenceFrameRate': value, + if (instance.referenceFrameRate case final value?) 'ReferenceFrameRate': value, if (instance.profile case final value?) 'Profile': value, - if (mediaStreamTypeNullableToJson(instance.type) case final value?) - 'Type': value, + if (mediaStreamTypeNullableToJson(instance.type) case final value?) 'Type': value, if (instance.aspectRatio case final value?) 'AspectRatio': value, if (instance.index case final value?) 'Index': value, if (instance.score case final value?) 'Score': value, if (instance.isExternal case final value?) 'IsExternal': value, - if (subtitleDeliveryMethodNullableToJson(instance.deliveryMethod) - case final value?) - 'DeliveryMethod': value, + if (subtitleDeliveryMethodNullableToJson(instance.deliveryMethod) case final value?) 'DeliveryMethod': value, if (instance.deliveryUrl case final value?) 'DeliveryUrl': value, if (instance.isExternalUrl case final value?) 'IsExternalUrl': value, - if (instance.isTextSubtitleStream case final value?) - 'IsTextSubtitleStream': value, - if (instance.supportsExternalStream case final value?) - 'SupportsExternalStream': value, + if (instance.isTextSubtitleStream case final value?) 'IsTextSubtitleStream': value, + if (instance.supportsExternalStream case final value?) 'SupportsExternalStream': value, if (instance.path case final value?) 'Path': value, if (instance.pixelFormat case final value?) 'PixelFormat': value, if (instance.level case final value?) 'Level': value, if (instance.isAnamorphic case final value?) 'IsAnamorphic': value, }; -MediaUpdateInfoDto _$MediaUpdateInfoDtoFromJson(Map json) => - MediaUpdateInfoDto( +MediaUpdateInfoDto _$MediaUpdateInfoDtoFromJson(Map json) => MediaUpdateInfoDto( updates: (json['Updates'] as List?) - ?.map((e) => - MediaUpdateInfoPathDto.fromJson(e as Map)) + ?.map((e) => MediaUpdateInfoPathDto.fromJson(e as Map)) .toList() ?? [], ); -Map _$MediaUpdateInfoDtoToJson(MediaUpdateInfoDto instance) => - { - if (instance.updates?.map((e) => e.toJson()).toList() case final value?) - 'Updates': value, +Map _$MediaUpdateInfoDtoToJson(MediaUpdateInfoDto instance) => { + if (instance.updates?.map((e) => e.toJson()).toList() case final value?) 'Updates': value, }; -MediaUpdateInfoPathDto _$MediaUpdateInfoPathDtoFromJson( - Map json) => - MediaUpdateInfoPathDto( +MediaUpdateInfoPathDto _$MediaUpdateInfoPathDtoFromJson(Map json) => MediaUpdateInfoPathDto( path: json['Path'] as String?, updateType: json['UpdateType'] as String?, ); -Map _$MediaUpdateInfoPathDtoToJson( - MediaUpdateInfoPathDto instance) => - { +Map _$MediaUpdateInfoPathDtoToJson(MediaUpdateInfoPathDto instance) => { if (instance.path case final value?) 'Path': value, if (instance.updateType case final value?) 'UpdateType': value, }; @@ -3564,48 +2581,37 @@ Map _$MediaUrlToJson(MediaUrl instance) => { if (instance.name case final value?) 'Name': value, }; -MessageCommand _$MessageCommandFromJson(Map json) => - MessageCommand( +MessageCommand _$MessageCommandFromJson(Map json) => MessageCommand( header: json['Header'] as String?, text: json['Text'] as String, timeoutMs: (json['TimeoutMs'] as num?)?.toInt(), ); -Map _$MessageCommandToJson(MessageCommand instance) => - { +Map _$MessageCommandToJson(MessageCommand instance) => { if (instance.header case final value?) 'Header': value, 'Text': instance.text, if (instance.timeoutMs case final value?) 'TimeoutMs': value, }; -MetadataConfiguration _$MetadataConfigurationFromJson( - Map json) => - MetadataConfiguration( - useFileCreationTimeForDateAdded: - json['UseFileCreationTimeForDateAdded'] as bool?, +MetadataConfiguration _$MetadataConfigurationFromJson(Map json) => MetadataConfiguration( + useFileCreationTimeForDateAdded: json['UseFileCreationTimeForDateAdded'] as bool?, ); -Map _$MetadataConfigurationToJson( - MetadataConfiguration instance) => - { - if (instance.useFileCreationTimeForDateAdded case final value?) - 'UseFileCreationTimeForDateAdded': value, +Map _$MetadataConfigurationToJson(MetadataConfiguration instance) => { + if (instance.useFileCreationTimeForDateAdded case final value?) 'UseFileCreationTimeForDateAdded': value, }; -MetadataEditorInfo _$MetadataEditorInfoFromJson(Map json) => - MetadataEditorInfo( +MetadataEditorInfo _$MetadataEditorInfoFromJson(Map json) => MetadataEditorInfo( parentalRatingOptions: (json['ParentalRatingOptions'] as List?) ?.map((e) => ParentalRating.fromJson(e as Map)) .toList() ?? [], - countries: (json['Countries'] as List?) - ?.map((e) => CountryInfo.fromJson(e as Map)) - .toList() ?? - [], - cultures: (json['Cultures'] as List?) - ?.map((e) => CultureDto.fromJson(e as Map)) - .toList() ?? - [], + countries: + (json['Countries'] as List?)?.map((e) => CountryInfo.fromJson(e as Map)).toList() ?? + [], + cultures: + (json['Cultures'] as List?)?.map((e) => CultureDto.fromJson(e as Map)).toList() ?? + [], externalIdInfos: (json['ExternalIdInfos'] as List?) ?.map((e) => ExternalIdInfo.fromJson(e as Map)) .toList() ?? @@ -3617,83 +2623,46 @@ MetadataEditorInfo _$MetadataEditorInfoFromJson(Map json) => [], ); -Map _$MetadataEditorInfoToJson(MetadataEditorInfo instance) => - { - if (instance.parentalRatingOptions?.map((e) => e.toJson()).toList() - case final value?) +Map _$MetadataEditorInfoToJson(MetadataEditorInfo instance) => { + if (instance.parentalRatingOptions?.map((e) => e.toJson()).toList() case final value?) 'ParentalRatingOptions': value, - if (instance.countries?.map((e) => e.toJson()).toList() case final value?) - 'Countries': value, - if (instance.cultures?.map((e) => e.toJson()).toList() case final value?) - 'Cultures': value, - if (instance.externalIdInfos?.map((e) => e.toJson()).toList() - case final value?) - 'ExternalIdInfos': value, - if (collectionTypeNullableToJson(instance.contentType) case final value?) - 'ContentType': value, - if (instance.contentTypeOptions?.map((e) => e.toJson()).toList() - case final value?) - 'ContentTypeOptions': value, - }; - -MetadataOptions _$MetadataOptionsFromJson(Map json) => - MetadataOptions( + if (instance.countries?.map((e) => e.toJson()).toList() case final value?) 'Countries': value, + if (instance.cultures?.map((e) => e.toJson()).toList() case final value?) 'Cultures': value, + if (instance.externalIdInfos?.map((e) => e.toJson()).toList() case final value?) 'ExternalIdInfos': value, + if (collectionTypeNullableToJson(instance.contentType) case final value?) 'ContentType': value, + if (instance.contentTypeOptions?.map((e) => e.toJson()).toList() case final value?) 'ContentTypeOptions': value, + }; + +MetadataOptions _$MetadataOptionsFromJson(Map json) => MetadataOptions( itemType: json['ItemType'] as String?, - disabledMetadataSavers: (json['DisabledMetadataSavers'] as List?) - ?.map((e) => e as String) - .toList() ?? - [], + disabledMetadataSavers: + (json['DisabledMetadataSavers'] as List?)?.map((e) => e as String).toList() ?? [], localMetadataReaderOrder: - (json['LocalMetadataReaderOrder'] as List?) - ?.map((e) => e as String) - .toList() ?? - [], + (json['LocalMetadataReaderOrder'] as List?)?.map((e) => e as String).toList() ?? [], disabledMetadataFetchers: - (json['DisabledMetadataFetchers'] as List?) - ?.map((e) => e as String) - .toList() ?? - [], - metadataFetcherOrder: (json['MetadataFetcherOrder'] as List?) - ?.map((e) => e as String) - .toList() ?? - [], - disabledImageFetchers: (json['DisabledImageFetchers'] as List?) - ?.map((e) => e as String) - .toList() ?? - [], - imageFetcherOrder: (json['ImageFetcherOrder'] as List?) - ?.map((e) => e as String) - .toList() ?? - [], + (json['DisabledMetadataFetchers'] as List?)?.map((e) => e as String).toList() ?? [], + metadataFetcherOrder: (json['MetadataFetcherOrder'] as List?)?.map((e) => e as String).toList() ?? [], + disabledImageFetchers: (json['DisabledImageFetchers'] as List?)?.map((e) => e as String).toList() ?? [], + imageFetcherOrder: (json['ImageFetcherOrder'] as List?)?.map((e) => e as String).toList() ?? [], ); -Map _$MetadataOptionsToJson(MetadataOptions instance) => - { +Map _$MetadataOptionsToJson(MetadataOptions instance) => { if (instance.itemType case final value?) 'ItemType': value, - if (instance.disabledMetadataSavers case final value?) - 'DisabledMetadataSavers': value, - if (instance.localMetadataReaderOrder case final value?) - 'LocalMetadataReaderOrder': value, - if (instance.disabledMetadataFetchers case final value?) - 'DisabledMetadataFetchers': value, - if (instance.metadataFetcherOrder case final value?) - 'MetadataFetcherOrder': value, - if (instance.disabledImageFetchers case final value?) - 'DisabledImageFetchers': value, - if (instance.imageFetcherOrder case final value?) - 'ImageFetcherOrder': value, - }; - -MovePlaylistItemRequestDto _$MovePlaylistItemRequestDtoFromJson( - Map json) => + if (instance.disabledMetadataSavers case final value?) 'DisabledMetadataSavers': value, + if (instance.localMetadataReaderOrder case final value?) 'LocalMetadataReaderOrder': value, + if (instance.disabledMetadataFetchers case final value?) 'DisabledMetadataFetchers': value, + if (instance.metadataFetcherOrder case final value?) 'MetadataFetcherOrder': value, + if (instance.disabledImageFetchers case final value?) 'DisabledImageFetchers': value, + if (instance.imageFetcherOrder case final value?) 'ImageFetcherOrder': value, + }; + +MovePlaylistItemRequestDto _$MovePlaylistItemRequestDtoFromJson(Map json) => MovePlaylistItemRequestDto( playlistItemId: json['PlaylistItemId'] as String?, newIndex: (json['NewIndex'] as num?)?.toInt(), ); -Map _$MovePlaylistItemRequestDtoToJson( - MovePlaylistItemRequestDto instance) => - { +Map _$MovePlaylistItemRequestDtoToJson(MovePlaylistItemRequestDto instance) => { if (instance.playlistItemId case final value?) 'PlaylistItemId': value, if (instance.newIndex case final value?) 'NewIndex': value, }; @@ -3708,9 +2677,7 @@ MovieInfo _$MovieInfoFromJson(Map json) => MovieInfo( year: (json['Year'] as num?)?.toInt(), indexNumber: (json['IndexNumber'] as num?)?.toInt(), parentIndexNumber: (json['ParentIndexNumber'] as num?)?.toInt(), - premiereDate: json['PremiereDate'] == null - ? null - : DateTime.parse(json['PremiereDate'] as String), + premiereDate: json['PremiereDate'] == null ? null : DateTime.parse(json['PremiereDate'] as String), isAutomated: json['IsAutomated'] as bool?, ); @@ -3718,44 +2685,32 @@ Map _$MovieInfoToJson(MovieInfo instance) => { if (instance.name case final value?) 'Name': value, if (instance.originalTitle case final value?) 'OriginalTitle': value, if (instance.path case final value?) 'Path': value, - if (instance.metadataLanguage case final value?) - 'MetadataLanguage': value, - if (instance.metadataCountryCode case final value?) - 'MetadataCountryCode': value, + if (instance.metadataLanguage case final value?) 'MetadataLanguage': value, + if (instance.metadataCountryCode case final value?) 'MetadataCountryCode': value, if (instance.providerIds case final value?) 'ProviderIds': value, if (instance.year case final value?) 'Year': value, if (instance.indexNumber case final value?) 'IndexNumber': value, - if (instance.parentIndexNumber case final value?) - 'ParentIndexNumber': value, - if (instance.premiereDate?.toIso8601String() case final value?) - 'PremiereDate': value, + if (instance.parentIndexNumber case final value?) 'ParentIndexNumber': value, + if (instance.premiereDate?.toIso8601String() case final value?) 'PremiereDate': value, if (instance.isAutomated case final value?) 'IsAutomated': value, }; -MovieInfoRemoteSearchQuery _$MovieInfoRemoteSearchQueryFromJson( - Map json) => +MovieInfoRemoteSearchQuery _$MovieInfoRemoteSearchQueryFromJson(Map json) => MovieInfoRemoteSearchQuery( - searchInfo: json['SearchInfo'] == null - ? null - : MovieInfo.fromJson(json['SearchInfo'] as Map), + searchInfo: json['SearchInfo'] == null ? null : MovieInfo.fromJson(json['SearchInfo'] as Map), itemId: json['ItemId'] as String?, searchProviderName: json['SearchProviderName'] as String?, includeDisabledProviders: json['IncludeDisabledProviders'] as bool?, ); -Map _$MovieInfoRemoteSearchQueryToJson( - MovieInfoRemoteSearchQuery instance) => - { +Map _$MovieInfoRemoteSearchQueryToJson(MovieInfoRemoteSearchQuery instance) => { if (instance.searchInfo?.toJson() case final value?) 'SearchInfo': value, if (instance.itemId case final value?) 'ItemId': value, - if (instance.searchProviderName case final value?) - 'SearchProviderName': value, - if (instance.includeDisabledProviders case final value?) - 'IncludeDisabledProviders': value, + if (instance.searchProviderName case final value?) 'SearchProviderName': value, + if (instance.includeDisabledProviders case final value?) 'IncludeDisabledProviders': value, }; -MusicVideoInfo _$MusicVideoInfoFromJson(Map json) => - MusicVideoInfo( +MusicVideoInfo _$MusicVideoInfoFromJson(Map json) => MusicVideoInfo( name: json['Name'] as String?, originalTitle: json['OriginalTitle'] as String?, path: json['Path'] as String?, @@ -3765,56 +2720,41 @@ MusicVideoInfo _$MusicVideoInfoFromJson(Map json) => year: (json['Year'] as num?)?.toInt(), indexNumber: (json['IndexNumber'] as num?)?.toInt(), parentIndexNumber: (json['ParentIndexNumber'] as num?)?.toInt(), - premiereDate: json['PremiereDate'] == null - ? null - : DateTime.parse(json['PremiereDate'] as String), + premiereDate: json['PremiereDate'] == null ? null : DateTime.parse(json['PremiereDate'] as String), isAutomated: json['IsAutomated'] as bool?, - artists: (json['Artists'] as List?) - ?.map((e) => e as String) - .toList() ?? - [], + artists: (json['Artists'] as List?)?.map((e) => e as String).toList() ?? [], ); -Map _$MusicVideoInfoToJson(MusicVideoInfo instance) => - { +Map _$MusicVideoInfoToJson(MusicVideoInfo instance) => { if (instance.name case final value?) 'Name': value, if (instance.originalTitle case final value?) 'OriginalTitle': value, if (instance.path case final value?) 'Path': value, - if (instance.metadataLanguage case final value?) - 'MetadataLanguage': value, - if (instance.metadataCountryCode case final value?) - 'MetadataCountryCode': value, + if (instance.metadataLanguage case final value?) 'MetadataLanguage': value, + if (instance.metadataCountryCode case final value?) 'MetadataCountryCode': value, if (instance.providerIds case final value?) 'ProviderIds': value, if (instance.year case final value?) 'Year': value, if (instance.indexNumber case final value?) 'IndexNumber': value, - if (instance.parentIndexNumber case final value?) - 'ParentIndexNumber': value, - if (instance.premiereDate?.toIso8601String() case final value?) - 'PremiereDate': value, + if (instance.parentIndexNumber case final value?) 'ParentIndexNumber': value, + if (instance.premiereDate?.toIso8601String() case final value?) 'PremiereDate': value, if (instance.isAutomated case final value?) 'IsAutomated': value, if (instance.artists case final value?) 'Artists': value, }; -MusicVideoInfoRemoteSearchQuery _$MusicVideoInfoRemoteSearchQueryFromJson( - Map json) => +MusicVideoInfoRemoteSearchQuery _$MusicVideoInfoRemoteSearchQueryFromJson(Map json) => MusicVideoInfoRemoteSearchQuery( - searchInfo: json['SearchInfo'] == null - ? null - : MusicVideoInfo.fromJson(json['SearchInfo'] as Map), + searchInfo: + json['SearchInfo'] == null ? null : MusicVideoInfo.fromJson(json['SearchInfo'] as Map), itemId: json['ItemId'] as String?, searchProviderName: json['SearchProviderName'] as String?, includeDisabledProviders: json['IncludeDisabledProviders'] as bool?, ); -Map _$MusicVideoInfoRemoteSearchQueryToJson( - MusicVideoInfoRemoteSearchQuery instance) => +Map _$MusicVideoInfoRemoteSearchQueryToJson(MusicVideoInfoRemoteSearchQuery instance) => { if (instance.searchInfo?.toJson() case final value?) 'SearchInfo': value, if (instance.itemId case final value?) 'ItemId': value, - if (instance.searchProviderName case final value?) - 'SearchProviderName': value, - if (instance.includeDisabledProviders case final value?) - 'IncludeDisabledProviders': value, + if (instance.searchProviderName case final value?) 'SearchProviderName': value, + if (instance.includeDisabledProviders case final value?) 'IncludeDisabledProviders': value, }; NameGuidPair _$NameGuidPairFromJson(Map json) => NameGuidPair( @@ -3822,8 +2762,7 @@ NameGuidPair _$NameGuidPairFromJson(Map json) => NameGuidPair( id: json['Id'] as String?, ); -Map _$NameGuidPairToJson(NameGuidPair instance) => - { +Map _$NameGuidPairToJson(NameGuidPair instance) => { if (instance.name case final value?) 'Name': value, if (instance.id case final value?) 'Id': value, }; @@ -3833,27 +2772,22 @@ NameIdPair _$NameIdPairFromJson(Map json) => NameIdPair( id: json['Id'] as String?, ); -Map _$NameIdPairToJson(NameIdPair instance) => - { +Map _$NameIdPairToJson(NameIdPair instance) => { if (instance.name case final value?) 'Name': value, if (instance.id case final value?) 'Id': value, }; -NameValuePair _$NameValuePairFromJson(Map json) => - NameValuePair( +NameValuePair _$NameValuePairFromJson(Map json) => NameValuePair( name: json['Name'] as String?, $Value: json['Value'] as String?, ); -Map _$NameValuePairToJson(NameValuePair instance) => - { +Map _$NameValuePairToJson(NameValuePair instance) => { if (instance.name case final value?) 'Name': value, if (instance.$Value case final value?) 'Value': value, }; -NetworkConfiguration _$NetworkConfigurationFromJson( - Map json) => - NetworkConfiguration( +NetworkConfiguration _$NetworkConfigurationFromJson(Map json) => NetworkConfiguration( baseUrl: json['BaseUrl'] as String?, enableHttps: json['EnableHttps'] as bool?, requireHttps: json['RequireHttps'] as bool?, @@ -3868,98 +2802,61 @@ NetworkConfiguration _$NetworkConfigurationFromJson( enableIPv4: json['EnableIPv4'] as bool?, enableIPv6: json['EnableIPv6'] as bool?, enableRemoteAccess: json['EnableRemoteAccess'] as bool?, - localNetworkSubnets: (json['LocalNetworkSubnets'] as List?) - ?.map((e) => e as String) - .toList() ?? - [], - localNetworkAddresses: (json['LocalNetworkAddresses'] as List?) - ?.map((e) => e as String) - .toList() ?? - [], - knownProxies: (json['KnownProxies'] as List?) - ?.map((e) => e as String) - .toList() ?? - [], + localNetworkSubnets: (json['LocalNetworkSubnets'] as List?)?.map((e) => e as String).toList() ?? [], + localNetworkAddresses: (json['LocalNetworkAddresses'] as List?)?.map((e) => e as String).toList() ?? [], + knownProxies: (json['KnownProxies'] as List?)?.map((e) => e as String).toList() ?? [], ignoreVirtualInterfaces: json['IgnoreVirtualInterfaces'] as bool?, - virtualInterfaceNames: (json['VirtualInterfaceNames'] as List?) - ?.map((e) => e as String) - .toList() ?? - [], - enablePublishedServerUriByRequest: - json['EnablePublishedServerUriByRequest'] as bool?, + virtualInterfaceNames: (json['VirtualInterfaceNames'] as List?)?.map((e) => e as String).toList() ?? [], + enablePublishedServerUriByRequest: json['EnablePublishedServerUriByRequest'] as bool?, publishedServerUriBySubnet: - (json['PublishedServerUriBySubnet'] as List?) - ?.map((e) => e as String) - .toList() ?? - [], - remoteIPFilter: (json['RemoteIPFilter'] as List?) - ?.map((e) => e as String) - .toList() ?? - [], + (json['PublishedServerUriBySubnet'] as List?)?.map((e) => e as String).toList() ?? [], + remoteIPFilter: (json['RemoteIPFilter'] as List?)?.map((e) => e as String).toList() ?? [], isRemoteIPFilterBlacklist: json['IsRemoteIPFilterBlacklist'] as bool?, ); -Map _$NetworkConfigurationToJson( - NetworkConfiguration instance) => - { +Map _$NetworkConfigurationToJson(NetworkConfiguration instance) => { if (instance.baseUrl case final value?) 'BaseUrl': value, if (instance.enableHttps case final value?) 'EnableHttps': value, if (instance.requireHttps case final value?) 'RequireHttps': value, if (instance.certificatePath case final value?) 'CertificatePath': value, - if (instance.certificatePassword case final value?) - 'CertificatePassword': value, - if (instance.internalHttpPort case final value?) - 'InternalHttpPort': value, - if (instance.internalHttpsPort case final value?) - 'InternalHttpsPort': value, + if (instance.certificatePassword case final value?) 'CertificatePassword': value, + if (instance.internalHttpPort case final value?) 'InternalHttpPort': value, + if (instance.internalHttpsPort case final value?) 'InternalHttpsPort': value, if (instance.publicHttpPort case final value?) 'PublicHttpPort': value, if (instance.publicHttpsPort case final value?) 'PublicHttpsPort': value, if (instance.autoDiscovery case final value?) 'AutoDiscovery': value, if (instance.enableUPnP case final value?) 'EnableUPnP': value, if (instance.enableIPv4 case final value?) 'EnableIPv4': value, if (instance.enableIPv6 case final value?) 'EnableIPv6': value, - if (instance.enableRemoteAccess case final value?) - 'EnableRemoteAccess': value, - if (instance.localNetworkSubnets case final value?) - 'LocalNetworkSubnets': value, - if (instance.localNetworkAddresses case final value?) - 'LocalNetworkAddresses': value, + if (instance.enableRemoteAccess case final value?) 'EnableRemoteAccess': value, + if (instance.localNetworkSubnets case final value?) 'LocalNetworkSubnets': value, + if (instance.localNetworkAddresses case final value?) 'LocalNetworkAddresses': value, if (instance.knownProxies case final value?) 'KnownProxies': value, - if (instance.ignoreVirtualInterfaces case final value?) - 'IgnoreVirtualInterfaces': value, - if (instance.virtualInterfaceNames case final value?) - 'VirtualInterfaceNames': value, - if (instance.enablePublishedServerUriByRequest case final value?) - 'EnablePublishedServerUriByRequest': value, - if (instance.publishedServerUriBySubnet case final value?) - 'PublishedServerUriBySubnet': value, + if (instance.ignoreVirtualInterfaces case final value?) 'IgnoreVirtualInterfaces': value, + if (instance.virtualInterfaceNames case final value?) 'VirtualInterfaceNames': value, + if (instance.enablePublishedServerUriByRequest case final value?) 'EnablePublishedServerUriByRequest': value, + if (instance.publishedServerUriBySubnet case final value?) 'PublishedServerUriBySubnet': value, if (instance.remoteIPFilter case final value?) 'RemoteIPFilter': value, - if (instance.isRemoteIPFilterBlacklist case final value?) - 'IsRemoteIPFilterBlacklist': value, + if (instance.isRemoteIPFilterBlacklist case final value?) 'IsRemoteIPFilterBlacklist': value, }; -NewGroupRequestDto _$NewGroupRequestDtoFromJson(Map json) => - NewGroupRequestDto( +NewGroupRequestDto _$NewGroupRequestDtoFromJson(Map json) => NewGroupRequestDto( groupName: json['GroupName'] as String?, ); -Map _$NewGroupRequestDtoToJson(NewGroupRequestDto instance) => - { +Map _$NewGroupRequestDtoToJson(NewGroupRequestDto instance) => { if (instance.groupName case final value?) 'GroupName': value, }; -NextItemRequestDto _$NextItemRequestDtoFromJson(Map json) => - NextItemRequestDto( +NextItemRequestDto _$NextItemRequestDtoFromJson(Map json) => NextItemRequestDto( playlistItemId: json['PlaylistItemId'] as String?, ); -Map _$NextItemRequestDtoToJson(NextItemRequestDto instance) => - { +Map _$NextItemRequestDtoToJson(NextItemRequestDto instance) => { if (instance.playlistItemId case final value?) 'PlaylistItemId': value, }; -OpenLiveStreamDto _$OpenLiveStreamDtoFromJson(Map json) => - OpenLiveStreamDto( +OpenLiveStreamDto _$OpenLiveStreamDtoFromJson(Map json) => OpenLiveStreamDto( openToken: json['OpenToken'] as String?, userId: json['UserId'] as String?, playSessionId: json['PlaySessionId'] as String?, @@ -3971,67 +2868,42 @@ OpenLiveStreamDto _$OpenLiveStreamDtoFromJson(Map json) => itemId: json['ItemId'] as String?, enableDirectPlay: json['EnableDirectPlay'] as bool?, enableDirectStream: json['EnableDirectStream'] as bool?, - alwaysBurnInSubtitleWhenTranscoding: - json['AlwaysBurnInSubtitleWhenTranscoding'] as bool?, - deviceProfile: json['DeviceProfile'] == null - ? null - : DeviceProfile.fromJson( - json['DeviceProfile'] as Map), - directPlayProtocols: - mediaProtocolListFromJson(json['DirectPlayProtocols'] as List?), + alwaysBurnInSubtitleWhenTranscoding: json['AlwaysBurnInSubtitleWhenTranscoding'] as bool?, + deviceProfile: + json['DeviceProfile'] == null ? null : DeviceProfile.fromJson(json['DeviceProfile'] as Map), + directPlayProtocols: mediaProtocolListFromJson(json['DirectPlayProtocols'] as List?), ); -Map _$OpenLiveStreamDtoToJson(OpenLiveStreamDto instance) => - { +Map _$OpenLiveStreamDtoToJson(OpenLiveStreamDto instance) => { if (instance.openToken case final value?) 'OpenToken': value, if (instance.userId case final value?) 'UserId': value, if (instance.playSessionId case final value?) 'PlaySessionId': value, - if (instance.maxStreamingBitrate case final value?) - 'MaxStreamingBitrate': value, + if (instance.maxStreamingBitrate case final value?) 'MaxStreamingBitrate': value, if (instance.startTimeTicks case final value?) 'StartTimeTicks': value, - if (instance.audioStreamIndex case final value?) - 'AudioStreamIndex': value, - if (instance.subtitleStreamIndex case final value?) - 'SubtitleStreamIndex': value, - if (instance.maxAudioChannels case final value?) - 'MaxAudioChannels': value, + if (instance.audioStreamIndex case final value?) 'AudioStreamIndex': value, + if (instance.subtitleStreamIndex case final value?) 'SubtitleStreamIndex': value, + if (instance.maxAudioChannels case final value?) 'MaxAudioChannels': value, if (instance.itemId case final value?) 'ItemId': value, - if (instance.enableDirectPlay case final value?) - 'EnableDirectPlay': value, - if (instance.enableDirectStream case final value?) - 'EnableDirectStream': value, - if (instance.alwaysBurnInSubtitleWhenTranscoding case final value?) - 'AlwaysBurnInSubtitleWhenTranscoding': value, - if (instance.deviceProfile?.toJson() case final value?) - 'DeviceProfile': value, - 'DirectPlayProtocols': - mediaProtocolListToJson(instance.directPlayProtocols), - }; - -OutboundKeepAliveMessage _$OutboundKeepAliveMessageFromJson( - Map json) => - OutboundKeepAliveMessage( + if (instance.enableDirectPlay case final value?) 'EnableDirectPlay': value, + if (instance.enableDirectStream case final value?) 'EnableDirectStream': value, + if (instance.alwaysBurnInSubtitleWhenTranscoding case final value?) 'AlwaysBurnInSubtitleWhenTranscoding': value, + if (instance.deviceProfile?.toJson() case final value?) 'DeviceProfile': value, + 'DirectPlayProtocols': mediaProtocolListToJson(instance.directPlayProtocols), + }; + +OutboundKeepAliveMessage _$OutboundKeepAliveMessageFromJson(Map json) => OutboundKeepAliveMessage( messageId: json['MessageId'] as String?, - messageType: OutboundKeepAliveMessage - .sessionMessageTypeMessageTypeNullableFromJson(json['MessageType']), + messageType: OutboundKeepAliveMessage.sessionMessageTypeMessageTypeNullableFromJson(json['MessageType']), ); -Map _$OutboundKeepAliveMessageToJson( - OutboundKeepAliveMessage instance) => - { +Map _$OutboundKeepAliveMessageToJson(OutboundKeepAliveMessage instance) => { if (instance.messageId case final value?) 'MessageId': value, - if (sessionMessageTypeNullableToJson(instance.messageType) - case final value?) - 'MessageType': value, + if (sessionMessageTypeNullableToJson(instance.messageType) case final value?) 'MessageType': value, }; -OutboundWebSocketMessage _$OutboundWebSocketMessageFromJson( - Map json) => - OutboundWebSocketMessage(); +OutboundWebSocketMessage _$OutboundWebSocketMessageFromJson(Map json) => OutboundWebSocketMessage(); -Map _$OutboundWebSocketMessageToJson( - OutboundWebSocketMessage instance) => - {}; +Map _$OutboundWebSocketMessageToJson(OutboundWebSocketMessage instance) => {}; PackageInfo _$PackageInfoFromJson(Map json) => PackageInfo( name: json['name'] as String?, @@ -4040,71 +2912,58 @@ PackageInfo _$PackageInfoFromJson(Map json) => PackageInfo( owner: json['owner'] as String?, category: json['category'] as String?, guid: json['guid'] as String?, - versions: (json['versions'] as List?) - ?.map((e) => VersionInfo.fromJson(e as Map)) - .toList() ?? - [], + versions: + (json['versions'] as List?)?.map((e) => VersionInfo.fromJson(e as Map)).toList() ?? + [], imageUrl: json['imageUrl'] as String?, ); -Map _$PackageInfoToJson(PackageInfo instance) => - { +Map _$PackageInfoToJson(PackageInfo instance) => { if (instance.name case final value?) 'name': value, if (instance.description case final value?) 'description': value, if (instance.overview case final value?) 'overview': value, if (instance.owner case final value?) 'owner': value, if (instance.category case final value?) 'category': value, if (instance.guid case final value?) 'guid': value, - if (instance.versions?.map((e) => e.toJson()).toList() case final value?) - 'versions': value, + if (instance.versions?.map((e) => e.toJson()).toList() case final value?) 'versions': value, if (instance.imageUrl case final value?) 'imageUrl': value, }; -ParentalRating _$ParentalRatingFromJson(Map json) => - ParentalRating( +ParentalRating _$ParentalRatingFromJson(Map json) => ParentalRating( name: json['Name'] as String?, $Value: (json['Value'] as num?)?.toInt(), ratingScore: json['RatingScore'] == null ? null - : ParentalRatingScore.fromJson( - json['RatingScore'] as Map), + : ParentalRatingScore.fromJson(json['RatingScore'] as Map), ); -Map _$ParentalRatingToJson(ParentalRating instance) => - { +Map _$ParentalRatingToJson(ParentalRating instance) => { if (instance.name case final value?) 'Name': value, if (instance.$Value case final value?) 'Value': value, - if (instance.ratingScore?.toJson() case final value?) - 'RatingScore': value, + if (instance.ratingScore?.toJson() case final value?) 'RatingScore': value, }; -ParentalRatingScore _$ParentalRatingScoreFromJson(Map json) => - ParentalRatingScore( +ParentalRatingScore _$ParentalRatingScoreFromJson(Map json) => ParentalRatingScore( score: (json['score'] as num?)?.toInt(), subScore: (json['subScore'] as num?)?.toInt(), ); -Map _$ParentalRatingScoreToJson( - ParentalRatingScore instance) => - { +Map _$ParentalRatingScoreToJson(ParentalRatingScore instance) => { if (instance.score case final value?) 'score': value, if (instance.subScore case final value?) 'subScore': value, }; -PathSubstitution _$PathSubstitutionFromJson(Map json) => - PathSubstitution( +PathSubstitution _$PathSubstitutionFromJson(Map json) => PathSubstitution( from: json['From'] as String?, to: json['To'] as String?, ); -Map _$PathSubstitutionToJson(PathSubstitution instance) => - { +Map _$PathSubstitutionToJson(PathSubstitution instance) => { if (instance.from case final value?) 'From': value, if (instance.to case final value?) 'To': value, }; -PersonLookupInfo _$PersonLookupInfoFromJson(Map json) => - PersonLookupInfo( +PersonLookupInfo _$PersonLookupInfoFromJson(Map json) => PersonLookupInfo( name: json['Name'] as String?, originalTitle: json['OriginalTitle'] as String?, path: json['Path'] as String?, @@ -4114,81 +2973,60 @@ PersonLookupInfo _$PersonLookupInfoFromJson(Map json) => year: (json['Year'] as num?)?.toInt(), indexNumber: (json['IndexNumber'] as num?)?.toInt(), parentIndexNumber: (json['ParentIndexNumber'] as num?)?.toInt(), - premiereDate: json['PremiereDate'] == null - ? null - : DateTime.parse(json['PremiereDate'] as String), + premiereDate: json['PremiereDate'] == null ? null : DateTime.parse(json['PremiereDate'] as String), isAutomated: json['IsAutomated'] as bool?, ); -Map _$PersonLookupInfoToJson(PersonLookupInfo instance) => - { +Map _$PersonLookupInfoToJson(PersonLookupInfo instance) => { if (instance.name case final value?) 'Name': value, if (instance.originalTitle case final value?) 'OriginalTitle': value, if (instance.path case final value?) 'Path': value, - if (instance.metadataLanguage case final value?) - 'MetadataLanguage': value, - if (instance.metadataCountryCode case final value?) - 'MetadataCountryCode': value, + if (instance.metadataLanguage case final value?) 'MetadataLanguage': value, + if (instance.metadataCountryCode case final value?) 'MetadataCountryCode': value, if (instance.providerIds case final value?) 'ProviderIds': value, if (instance.year case final value?) 'Year': value, if (instance.indexNumber case final value?) 'IndexNumber': value, - if (instance.parentIndexNumber case final value?) - 'ParentIndexNumber': value, - if (instance.premiereDate?.toIso8601String() case final value?) - 'PremiereDate': value, + if (instance.parentIndexNumber case final value?) 'ParentIndexNumber': value, + if (instance.premiereDate?.toIso8601String() case final value?) 'PremiereDate': value, if (instance.isAutomated case final value?) 'IsAutomated': value, }; -PersonLookupInfoRemoteSearchQuery _$PersonLookupInfoRemoteSearchQueryFromJson( - Map json) => +PersonLookupInfoRemoteSearchQuery _$PersonLookupInfoRemoteSearchQueryFromJson(Map json) => PersonLookupInfoRemoteSearchQuery( - searchInfo: json['SearchInfo'] == null - ? null - : PersonLookupInfo.fromJson( - json['SearchInfo'] as Map), + searchInfo: + json['SearchInfo'] == null ? null : PersonLookupInfo.fromJson(json['SearchInfo'] as Map), itemId: json['ItemId'] as String?, searchProviderName: json['SearchProviderName'] as String?, includeDisabledProviders: json['IncludeDisabledProviders'] as bool?, ); -Map _$PersonLookupInfoRemoteSearchQueryToJson( - PersonLookupInfoRemoteSearchQuery instance) => +Map _$PersonLookupInfoRemoteSearchQueryToJson(PersonLookupInfoRemoteSearchQuery instance) => { if (instance.searchInfo?.toJson() case final value?) 'SearchInfo': value, if (instance.itemId case final value?) 'ItemId': value, - if (instance.searchProviderName case final value?) - 'SearchProviderName': value, - if (instance.includeDisabledProviders case final value?) - 'IncludeDisabledProviders': value, + if (instance.searchProviderName case final value?) 'SearchProviderName': value, + if (instance.includeDisabledProviders case final value?) 'IncludeDisabledProviders': value, }; -PingRequestDto _$PingRequestDtoFromJson(Map json) => - PingRequestDto( +PingRequestDto _$PingRequestDtoFromJson(Map json) => PingRequestDto( ping: (json['Ping'] as num?)?.toInt(), ); -Map _$PingRequestDtoToJson(PingRequestDto instance) => - { +Map _$PingRequestDtoToJson(PingRequestDto instance) => { if (instance.ping case final value?) 'Ping': value, }; -PinRedeemResult _$PinRedeemResultFromJson(Map json) => - PinRedeemResult( +PinRedeemResult _$PinRedeemResultFromJson(Map json) => PinRedeemResult( success: json['Success'] as bool?, - usersReset: (json['UsersReset'] as List?) - ?.map((e) => e as String) - .toList() ?? - [], + usersReset: (json['UsersReset'] as List?)?.map((e) => e as String).toList() ?? [], ); -Map _$PinRedeemResultToJson(PinRedeemResult instance) => - { +Map _$PinRedeemResultToJson(PinRedeemResult instance) => { if (instance.success case final value?) 'Success': value, if (instance.usersReset case final value?) 'UsersReset': value, }; -PlaybackInfoDto _$PlaybackInfoDtoFromJson(Map json) => - PlaybackInfoDto( +PlaybackInfoDto _$PlaybackInfoDtoFromJson(Map json) => PlaybackInfoDto( userId: json['UserId'] as String?, maxStreamingBitrate: (json['MaxStreamingBitrate'] as num?)?.toInt(), startTimeTicks: (json['StartTimeTicks'] as num?)?.toInt(), @@ -4197,55 +3035,37 @@ PlaybackInfoDto _$PlaybackInfoDtoFromJson(Map json) => maxAudioChannels: (json['MaxAudioChannels'] as num?)?.toInt(), mediaSourceId: json['MediaSourceId'] as String?, liveStreamId: json['LiveStreamId'] as String?, - deviceProfile: json['DeviceProfile'] == null - ? null - : DeviceProfile.fromJson( - json['DeviceProfile'] as Map), + deviceProfile: + json['DeviceProfile'] == null ? null : DeviceProfile.fromJson(json['DeviceProfile'] as Map), enableDirectPlay: json['EnableDirectPlay'] as bool?, enableDirectStream: json['EnableDirectStream'] as bool?, enableTranscoding: json['EnableTranscoding'] as bool?, allowVideoStreamCopy: json['AllowVideoStreamCopy'] as bool?, allowAudioStreamCopy: json['AllowAudioStreamCopy'] as bool?, autoOpenLiveStream: json['AutoOpenLiveStream'] as bool?, - alwaysBurnInSubtitleWhenTranscoding: - json['AlwaysBurnInSubtitleWhenTranscoding'] as bool?, + alwaysBurnInSubtitleWhenTranscoding: json['AlwaysBurnInSubtitleWhenTranscoding'] as bool?, ); -Map _$PlaybackInfoDtoToJson(PlaybackInfoDto instance) => - { +Map _$PlaybackInfoDtoToJson(PlaybackInfoDto instance) => { if (instance.userId case final value?) 'UserId': value, - if (instance.maxStreamingBitrate case final value?) - 'MaxStreamingBitrate': value, + if (instance.maxStreamingBitrate case final value?) 'MaxStreamingBitrate': value, if (instance.startTimeTicks case final value?) 'StartTimeTicks': value, - if (instance.audioStreamIndex case final value?) - 'AudioStreamIndex': value, - if (instance.subtitleStreamIndex case final value?) - 'SubtitleStreamIndex': value, - if (instance.maxAudioChannels case final value?) - 'MaxAudioChannels': value, + if (instance.audioStreamIndex case final value?) 'AudioStreamIndex': value, + if (instance.subtitleStreamIndex case final value?) 'SubtitleStreamIndex': value, + if (instance.maxAudioChannels case final value?) 'MaxAudioChannels': value, if (instance.mediaSourceId case final value?) 'MediaSourceId': value, if (instance.liveStreamId case final value?) 'LiveStreamId': value, - if (instance.deviceProfile?.toJson() case final value?) - 'DeviceProfile': value, - if (instance.enableDirectPlay case final value?) - 'EnableDirectPlay': value, - if (instance.enableDirectStream case final value?) - 'EnableDirectStream': value, - if (instance.enableTranscoding case final value?) - 'EnableTranscoding': value, - if (instance.allowVideoStreamCopy case final value?) - 'AllowVideoStreamCopy': value, - if (instance.allowAudioStreamCopy case final value?) - 'AllowAudioStreamCopy': value, - if (instance.autoOpenLiveStream case final value?) - 'AutoOpenLiveStream': value, - if (instance.alwaysBurnInSubtitleWhenTranscoding case final value?) - 'AlwaysBurnInSubtitleWhenTranscoding': value, - }; - -PlaybackInfoResponse _$PlaybackInfoResponseFromJson( - Map json) => - PlaybackInfoResponse( + if (instance.deviceProfile?.toJson() case final value?) 'DeviceProfile': value, + if (instance.enableDirectPlay case final value?) 'EnableDirectPlay': value, + if (instance.enableDirectStream case final value?) 'EnableDirectStream': value, + if (instance.enableTranscoding case final value?) 'EnableTranscoding': value, + if (instance.allowVideoStreamCopy case final value?) 'AllowVideoStreamCopy': value, + if (instance.allowAudioStreamCopy case final value?) 'AllowAudioStreamCopy': value, + if (instance.autoOpenLiveStream case final value?) 'AutoOpenLiveStream': value, + if (instance.alwaysBurnInSubtitleWhenTranscoding case final value?) 'AlwaysBurnInSubtitleWhenTranscoding': value, + }; + +PlaybackInfoResponse _$PlaybackInfoResponseFromJson(Map json) => PlaybackInfoResponse( mediaSources: (json['MediaSources'] as List?) ?.map((e) => MediaSourceInfo.fromJson(e as Map)) .toList() ?? @@ -4254,24 +3074,15 @@ PlaybackInfoResponse _$PlaybackInfoResponseFromJson( errorCode: playbackErrorCodeNullableFromJson(json['ErrorCode']), ); -Map _$PlaybackInfoResponseToJson( - PlaybackInfoResponse instance) => - { - if (instance.mediaSources?.map((e) => e.toJson()).toList() - case final value?) - 'MediaSources': value, +Map _$PlaybackInfoResponseToJson(PlaybackInfoResponse instance) => { + if (instance.mediaSources?.map((e) => e.toJson()).toList() case final value?) 'MediaSources': value, if (instance.playSessionId case final value?) 'PlaySessionId': value, - if (playbackErrorCodeNullableToJson(instance.errorCode) case final value?) - 'ErrorCode': value, + if (playbackErrorCodeNullableToJson(instance.errorCode) case final value?) 'ErrorCode': value, }; -PlaybackProgressInfo _$PlaybackProgressInfoFromJson( - Map json) => - PlaybackProgressInfo( +PlaybackProgressInfo _$PlaybackProgressInfoFromJson(Map json) => PlaybackProgressInfo( canSeek: json['CanSeek'] as bool?, - item: json['Item'] == null - ? null - : BaseItemDto.fromJson(json['Item'] as Map), + item: json['Item'] == null ? null : BaseItemDto.fromJson(json['Item'] as Map), itemId: json['ItemId'] as String?, sessionId: json['SessionId'] as String?, mediaSourceId: json['MediaSourceId'] as String?, @@ -4296,46 +3107,33 @@ PlaybackProgressInfo _$PlaybackProgressInfoFromJson( playlistItemId: json['PlaylistItemId'] as String?, ); -Map _$PlaybackProgressInfoToJson( - PlaybackProgressInfo instance) => - { +Map _$PlaybackProgressInfoToJson(PlaybackProgressInfo instance) => { if (instance.canSeek case final value?) 'CanSeek': value, if (instance.item?.toJson() case final value?) 'Item': value, if (instance.itemId case final value?) 'ItemId': value, if (instance.sessionId case final value?) 'SessionId': value, if (instance.mediaSourceId case final value?) 'MediaSourceId': value, - if (instance.audioStreamIndex case final value?) - 'AudioStreamIndex': value, - if (instance.subtitleStreamIndex case final value?) - 'SubtitleStreamIndex': value, + if (instance.audioStreamIndex case final value?) 'AudioStreamIndex': value, + if (instance.subtitleStreamIndex case final value?) 'SubtitleStreamIndex': value, if (instance.isPaused case final value?) 'IsPaused': value, if (instance.isMuted case final value?) 'IsMuted': value, if (instance.positionTicks case final value?) 'PositionTicks': value, - if (instance.playbackStartTimeTicks case final value?) - 'PlaybackStartTimeTicks': value, + if (instance.playbackStartTimeTicks case final value?) 'PlaybackStartTimeTicks': value, if (instance.volumeLevel case final value?) 'VolumeLevel': value, if (instance.brightness case final value?) 'Brightness': value, if (instance.aspectRatio case final value?) 'AspectRatio': value, - if (playMethodNullableToJson(instance.playMethod) case final value?) - 'PlayMethod': value, + if (playMethodNullableToJson(instance.playMethod) case final value?) 'PlayMethod': value, if (instance.liveStreamId case final value?) 'LiveStreamId': value, if (instance.playSessionId case final value?) 'PlaySessionId': value, - if (repeatModeNullableToJson(instance.repeatMode) case final value?) - 'RepeatMode': value, - if (playbackOrderNullableToJson(instance.playbackOrder) case final value?) - 'PlaybackOrder': value, - if (instance.nowPlayingQueue?.map((e) => e.toJson()).toList() - case final value?) - 'NowPlayingQueue': value, + if (repeatModeNullableToJson(instance.repeatMode) case final value?) 'RepeatMode': value, + if (playbackOrderNullableToJson(instance.playbackOrder) case final value?) 'PlaybackOrder': value, + if (instance.nowPlayingQueue?.map((e) => e.toJson()).toList() case final value?) 'NowPlayingQueue': value, if (instance.playlistItemId case final value?) 'PlaylistItemId': value, }; -PlaybackStartInfo _$PlaybackStartInfoFromJson(Map json) => - PlaybackStartInfo( +PlaybackStartInfo _$PlaybackStartInfoFromJson(Map json) => PlaybackStartInfo( canSeek: json['CanSeek'] as bool?, - item: json['Item'] == null - ? null - : BaseItemDto.fromJson(json['Item'] as Map), + item: json['Item'] == null ? null : BaseItemDto.fromJson(json['Item'] as Map), itemId: json['ItemId'] as String?, sessionId: json['SessionId'] as String?, mediaSourceId: json['MediaSourceId'] as String?, @@ -4360,44 +3158,32 @@ PlaybackStartInfo _$PlaybackStartInfoFromJson(Map json) => playlistItemId: json['PlaylistItemId'] as String?, ); -Map _$PlaybackStartInfoToJson(PlaybackStartInfo instance) => - { +Map _$PlaybackStartInfoToJson(PlaybackStartInfo instance) => { if (instance.canSeek case final value?) 'CanSeek': value, if (instance.item?.toJson() case final value?) 'Item': value, if (instance.itemId case final value?) 'ItemId': value, if (instance.sessionId case final value?) 'SessionId': value, if (instance.mediaSourceId case final value?) 'MediaSourceId': value, - if (instance.audioStreamIndex case final value?) - 'AudioStreamIndex': value, - if (instance.subtitleStreamIndex case final value?) - 'SubtitleStreamIndex': value, + if (instance.audioStreamIndex case final value?) 'AudioStreamIndex': value, + if (instance.subtitleStreamIndex case final value?) 'SubtitleStreamIndex': value, if (instance.isPaused case final value?) 'IsPaused': value, if (instance.isMuted case final value?) 'IsMuted': value, if (instance.positionTicks case final value?) 'PositionTicks': value, - if (instance.playbackStartTimeTicks case final value?) - 'PlaybackStartTimeTicks': value, + if (instance.playbackStartTimeTicks case final value?) 'PlaybackStartTimeTicks': value, if (instance.volumeLevel case final value?) 'VolumeLevel': value, if (instance.brightness case final value?) 'Brightness': value, if (instance.aspectRatio case final value?) 'AspectRatio': value, - if (playMethodNullableToJson(instance.playMethod) case final value?) - 'PlayMethod': value, + if (playMethodNullableToJson(instance.playMethod) case final value?) 'PlayMethod': value, if (instance.liveStreamId case final value?) 'LiveStreamId': value, if (instance.playSessionId case final value?) 'PlaySessionId': value, - if (repeatModeNullableToJson(instance.repeatMode) case final value?) - 'RepeatMode': value, - if (playbackOrderNullableToJson(instance.playbackOrder) case final value?) - 'PlaybackOrder': value, - if (instance.nowPlayingQueue?.map((e) => e.toJson()).toList() - case final value?) - 'NowPlayingQueue': value, + if (repeatModeNullableToJson(instance.repeatMode) case final value?) 'RepeatMode': value, + if (playbackOrderNullableToJson(instance.playbackOrder) case final value?) 'PlaybackOrder': value, + if (instance.nowPlayingQueue?.map((e) => e.toJson()).toList() case final value?) 'NowPlayingQueue': value, if (instance.playlistItemId case final value?) 'PlaylistItemId': value, }; -PlaybackStopInfo _$PlaybackStopInfoFromJson(Map json) => - PlaybackStopInfo( - item: json['Item'] == null - ? null - : BaseItemDto.fromJson(json['Item'] as Map), +PlaybackStopInfo _$PlaybackStopInfoFromJson(Map json) => PlaybackStopInfo( + item: json['Item'] == null ? null : BaseItemDto.fromJson(json['Item'] as Map), itemId: json['ItemId'] as String?, sessionId: json['SessionId'] as String?, mediaSourceId: json['MediaSourceId'] as String?, @@ -4413,8 +3199,7 @@ PlaybackStopInfo _$PlaybackStopInfoFromJson(Map json) => [], ); -Map _$PlaybackStopInfoToJson(PlaybackStopInfo instance) => - { +Map _$PlaybackStopInfoToJson(PlaybackStopInfo instance) => { if (instance.item?.toJson() case final value?) 'Item': value, if (instance.itemId case final value?) 'ItemId': value, if (instance.sessionId case final value?) 'SessionId': value, @@ -4425,13 +3210,10 @@ Map _$PlaybackStopInfoToJson(PlaybackStopInfo instance) => if (instance.failed case final value?) 'Failed': value, if (instance.nextMediaType case final value?) 'NextMediaType': value, if (instance.playlistItemId case final value?) 'PlaylistItemId': value, - if (instance.nowPlayingQueue?.map((e) => e.toJson()).toList() - case final value?) - 'NowPlayingQueue': value, + if (instance.nowPlayingQueue?.map((e) => e.toJson()).toList() case final value?) 'NowPlayingQueue': value, }; -PlayerStateInfo _$PlayerStateInfoFromJson(Map json) => - PlayerStateInfo( +PlayerStateInfo _$PlayerStateInfoFromJson(Map json) => PlayerStateInfo( positionTicks: (json['PositionTicks'] as num?)?.toInt(), canSeek: json['CanSeek'] as bool?, isPaused: json['IsPaused'] as bool?, @@ -4446,101 +3228,71 @@ PlayerStateInfo _$PlayerStateInfoFromJson(Map json) => liveStreamId: json['LiveStreamId'] as String?, ); -Map _$PlayerStateInfoToJson(PlayerStateInfo instance) => - { +Map _$PlayerStateInfoToJson(PlayerStateInfo instance) => { if (instance.positionTicks case final value?) 'PositionTicks': value, if (instance.canSeek case final value?) 'CanSeek': value, if (instance.isPaused case final value?) 'IsPaused': value, if (instance.isMuted case final value?) 'IsMuted': value, if (instance.volumeLevel case final value?) 'VolumeLevel': value, - if (instance.audioStreamIndex case final value?) - 'AudioStreamIndex': value, - if (instance.subtitleStreamIndex case final value?) - 'SubtitleStreamIndex': value, + if (instance.audioStreamIndex case final value?) 'AudioStreamIndex': value, + if (instance.subtitleStreamIndex case final value?) 'SubtitleStreamIndex': value, if (instance.mediaSourceId case final value?) 'MediaSourceId': value, - if (playMethodNullableToJson(instance.playMethod) case final value?) - 'PlayMethod': value, - if (repeatModeNullableToJson(instance.repeatMode) case final value?) - 'RepeatMode': value, - if (playbackOrderNullableToJson(instance.playbackOrder) case final value?) - 'PlaybackOrder': value, + if (playMethodNullableToJson(instance.playMethod) case final value?) 'PlayMethod': value, + if (repeatModeNullableToJson(instance.repeatMode) case final value?) 'RepeatMode': value, + if (playbackOrderNullableToJson(instance.playbackOrder) case final value?) 'PlaybackOrder': value, if (instance.liveStreamId case final value?) 'LiveStreamId': value, }; -PlaylistCreationResult _$PlaylistCreationResultFromJson( - Map json) => - PlaylistCreationResult( +PlaylistCreationResult _$PlaylistCreationResultFromJson(Map json) => PlaylistCreationResult( id: json['Id'] as String?, ); -Map _$PlaylistCreationResultToJson( - PlaylistCreationResult instance) => - { +Map _$PlaylistCreationResultToJson(PlaylistCreationResult instance) => { if (instance.id case final value?) 'Id': value, }; PlaylistDto _$PlaylistDtoFromJson(Map json) => PlaylistDto( openAccess: json['OpenAccess'] as bool?, shares: (json['Shares'] as List?) - ?.map((e) => - PlaylistUserPermissions.fromJson(e as Map)) - .toList() ?? - [], - itemIds: (json['ItemIds'] as List?) - ?.map((e) => e as String) + ?.map((e) => PlaylistUserPermissions.fromJson(e as Map)) .toList() ?? [], + itemIds: (json['ItemIds'] as List?)?.map((e) => e as String).toList() ?? [], ); -Map _$PlaylistDtoToJson(PlaylistDto instance) => - { +Map _$PlaylistDtoToJson(PlaylistDto instance) => { if (instance.openAccess case final value?) 'OpenAccess': value, - if (instance.shares?.map((e) => e.toJson()).toList() case final value?) - 'Shares': value, + if (instance.shares?.map((e) => e.toJson()).toList() case final value?) 'Shares': value, if (instance.itemIds case final value?) 'ItemIds': value, }; -PlaylistUserPermissions _$PlaylistUserPermissionsFromJson( - Map json) => - PlaylistUserPermissions( +PlaylistUserPermissions _$PlaylistUserPermissionsFromJson(Map json) => PlaylistUserPermissions( userId: json['UserId'] as String?, canEdit: json['CanEdit'] as bool?, ); -Map _$PlaylistUserPermissionsToJson( - PlaylistUserPermissions instance) => - { +Map _$PlaylistUserPermissionsToJson(PlaylistUserPermissions instance) => { if (instance.userId case final value?) 'UserId': value, if (instance.canEdit case final value?) 'CanEdit': value, }; PlayMessage _$PlayMessageFromJson(Map json) => PlayMessage( - data: json['Data'] == null - ? null - : PlayRequest.fromJson(json['Data'] as Map), + data: json['Data'] == null ? null : PlayRequest.fromJson(json['Data'] as Map), messageId: json['MessageId'] as String?, - messageType: PlayMessage.sessionMessageTypeMessageTypeNullableFromJson( - json['MessageType']), + messageType: PlayMessage.sessionMessageTypeMessageTypeNullableFromJson(json['MessageType']), ); -Map _$PlayMessageToJson(PlayMessage instance) => - { +Map _$PlayMessageToJson(PlayMessage instance) => { if (instance.data?.toJson() case final value?) 'Data': value, if (instance.messageId case final value?) 'MessageId': value, - if (sessionMessageTypeNullableToJson(instance.messageType) - case final value?) - 'MessageType': value, + if (sessionMessageTypeNullableToJson(instance.messageType) case final value?) 'MessageType': value, }; -PlayQueueUpdate _$PlayQueueUpdateFromJson(Map json) => - PlayQueueUpdate( +PlayQueueUpdate _$PlayQueueUpdateFromJson(Map json) => PlayQueueUpdate( reason: playQueueUpdateReasonNullableFromJson(json['Reason']), - lastUpdate: json['LastUpdate'] == null - ? null - : DateTime.parse(json['LastUpdate'] as String), + lastUpdate: json['LastUpdate'] == null ? null : DateTime.parse(json['LastUpdate'] as String), playlist: (json['Playlist'] as List?) - ?.map( - (e) => SyncPlayQueueItem.fromJson(e as Map)) + ?.map((e) => SyncPlayQueueItem.fromJson(e as Map)) .toList() ?? [], playingItemIndex: (json['PlayingItemIndex'] as num?)?.toInt(), @@ -4550,32 +3302,19 @@ PlayQueueUpdate _$PlayQueueUpdateFromJson(Map json) => repeatMode: groupRepeatModeNullableFromJson(json['RepeatMode']), ); -Map _$PlayQueueUpdateToJson(PlayQueueUpdate instance) => - { - if (playQueueUpdateReasonNullableToJson(instance.reason) - case final value?) - 'Reason': value, - if (instance.lastUpdate?.toIso8601String() case final value?) - 'LastUpdate': value, - if (instance.playlist?.map((e) => e.toJson()).toList() case final value?) - 'Playlist': value, - if (instance.playingItemIndex case final value?) - 'PlayingItemIndex': value, - if (instance.startPositionTicks case final value?) - 'StartPositionTicks': value, +Map _$PlayQueueUpdateToJson(PlayQueueUpdate instance) => { + if (playQueueUpdateReasonNullableToJson(instance.reason) case final value?) 'Reason': value, + if (instance.lastUpdate?.toIso8601String() case final value?) 'LastUpdate': value, + if (instance.playlist?.map((e) => e.toJson()).toList() case final value?) 'Playlist': value, + if (instance.playingItemIndex case final value?) 'PlayingItemIndex': value, + if (instance.startPositionTicks case final value?) 'StartPositionTicks': value, if (instance.isPlaying case final value?) 'IsPlaying': value, - if (groupShuffleModeNullableToJson(instance.shuffleMode) - case final value?) - 'ShuffleMode': value, - if (groupRepeatModeNullableToJson(instance.repeatMode) case final value?) - 'RepeatMode': value, + if (groupShuffleModeNullableToJson(instance.shuffleMode) case final value?) 'ShuffleMode': value, + if (groupRepeatModeNullableToJson(instance.repeatMode) case final value?) 'RepeatMode': value, }; PlayRequest _$PlayRequestFromJson(Map json) => PlayRequest( - itemIds: (json['ItemIds'] as List?) - ?.map((e) => e as String) - .toList() ?? - [], + itemIds: (json['ItemIds'] as List?)?.map((e) => e as String).toList() ?? [], startPositionTicks: (json['StartPositionTicks'] as num?)?.toInt(), playCommand: playCommandNullableFromJson(json['PlayCommand']), controllingUserId: json['ControllingUserId'] as String?, @@ -4585,77 +3324,51 @@ PlayRequest _$PlayRequestFromJson(Map json) => PlayRequest( startIndex: (json['StartIndex'] as num?)?.toInt(), ); -Map _$PlayRequestToJson(PlayRequest instance) => - { +Map _$PlayRequestToJson(PlayRequest instance) => { if (instance.itemIds case final value?) 'ItemIds': value, - if (instance.startPositionTicks case final value?) - 'StartPositionTicks': value, - if (playCommandNullableToJson(instance.playCommand) case final value?) - 'PlayCommand': value, - if (instance.controllingUserId case final value?) - 'ControllingUserId': value, - if (instance.subtitleStreamIndex case final value?) - 'SubtitleStreamIndex': value, - if (instance.audioStreamIndex case final value?) - 'AudioStreamIndex': value, + if (instance.startPositionTicks case final value?) 'StartPositionTicks': value, + if (playCommandNullableToJson(instance.playCommand) case final value?) 'PlayCommand': value, + if (instance.controllingUserId case final value?) 'ControllingUserId': value, + if (instance.subtitleStreamIndex case final value?) 'SubtitleStreamIndex': value, + if (instance.audioStreamIndex case final value?) 'AudioStreamIndex': value, if (instance.mediaSourceId case final value?) 'MediaSourceId': value, if (instance.startIndex case final value?) 'StartIndex': value, }; -PlayRequestDto _$PlayRequestDtoFromJson(Map json) => - PlayRequestDto( - playingQueue: (json['PlayingQueue'] as List?) - ?.map((e) => e as String) - .toList() ?? - [], +PlayRequestDto _$PlayRequestDtoFromJson(Map json) => PlayRequestDto( + playingQueue: (json['PlayingQueue'] as List?)?.map((e) => e as String).toList() ?? [], playingItemPosition: (json['PlayingItemPosition'] as num?)?.toInt(), startPositionTicks: (json['StartPositionTicks'] as num?)?.toInt(), ); -Map _$PlayRequestDtoToJson(PlayRequestDto instance) => - { +Map _$PlayRequestDtoToJson(PlayRequestDto instance) => { if (instance.playingQueue case final value?) 'PlayingQueue': value, - if (instance.playingItemPosition case final value?) - 'PlayingItemPosition': value, - if (instance.startPositionTicks case final value?) - 'StartPositionTicks': value, + if (instance.playingItemPosition case final value?) 'PlayingItemPosition': value, + if (instance.startPositionTicks case final value?) 'StartPositionTicks': value, }; -PlaystateMessage _$PlaystateMessageFromJson(Map json) => - PlaystateMessage( - data: json['Data'] == null - ? null - : PlaystateRequest.fromJson(json['Data'] as Map), +PlaystateMessage _$PlaystateMessageFromJson(Map json) => PlaystateMessage( + data: json['Data'] == null ? null : PlaystateRequest.fromJson(json['Data'] as Map), messageId: json['MessageId'] as String?, - messageType: - PlaystateMessage.sessionMessageTypeMessageTypeNullableFromJson( - json['MessageType']), + messageType: PlaystateMessage.sessionMessageTypeMessageTypeNullableFromJson(json['MessageType']), ); -Map _$PlaystateMessageToJson(PlaystateMessage instance) => - { +Map _$PlaystateMessageToJson(PlaystateMessage instance) => { if (instance.data?.toJson() case final value?) 'Data': value, if (instance.messageId case final value?) 'MessageId': value, - if (sessionMessageTypeNullableToJson(instance.messageType) - case final value?) - 'MessageType': value, + if (sessionMessageTypeNullableToJson(instance.messageType) case final value?) 'MessageType': value, }; -PlaystateRequest _$PlaystateRequestFromJson(Map json) => - PlaystateRequest( +PlaystateRequest _$PlaystateRequestFromJson(Map json) => PlaystateRequest( command: playstateCommandNullableFromJson(json['Command']), seekPositionTicks: (json['SeekPositionTicks'] as num?)?.toInt(), controllingUserId: json['ControllingUserId'] as String?, ); -Map _$PlaystateRequestToJson(PlaystateRequest instance) => - { - if (playstateCommandNullableToJson(instance.command) case final value?) - 'Command': value, - if (instance.seekPositionTicks case final value?) - 'SeekPositionTicks': value, - if (instance.controllingUserId case final value?) - 'ControllingUserId': value, +Map _$PlaystateRequestToJson(PlaystateRequest instance) => { + if (playstateCommandNullableToJson(instance.command) case final value?) 'Command': value, + if (instance.seekPositionTicks case final value?) 'SeekPositionTicks': value, + if (instance.controllingUserId case final value?) 'ControllingUserId': value, }; PluginInfo _$PluginInfoFromJson(Map json) => PluginInfo( @@ -4669,140 +3382,94 @@ PluginInfo _$PluginInfoFromJson(Map json) => PluginInfo( status: pluginStatusNullableFromJson(json['Status']), ); -Map _$PluginInfoToJson(PluginInfo instance) => - { +Map _$PluginInfoToJson(PluginInfo instance) => { if (instance.name case final value?) 'Name': value, if (instance.version case final value?) 'Version': value, - if (instance.configurationFileName case final value?) - 'ConfigurationFileName': value, + if (instance.configurationFileName case final value?) 'ConfigurationFileName': value, if (instance.description case final value?) 'Description': value, if (instance.id case final value?) 'Id': value, if (instance.canUninstall case final value?) 'CanUninstall': value, if (instance.hasImage case final value?) 'HasImage': value, - if (pluginStatusNullableToJson(instance.status) case final value?) - 'Status': value, + if (pluginStatusNullableToJson(instance.status) case final value?) 'Status': value, }; -PluginInstallationCancelledMessage _$PluginInstallationCancelledMessageFromJson( - Map json) => +PluginInstallationCancelledMessage _$PluginInstallationCancelledMessageFromJson(Map json) => PluginInstallationCancelledMessage( - data: json['Data'] == null - ? null - : InstallationInfo.fromJson(json['Data'] as Map), + data: json['Data'] == null ? null : InstallationInfo.fromJson(json['Data'] as Map), messageId: json['MessageId'] as String?, - messageType: PluginInstallationCancelledMessage - .sessionMessageTypeMessageTypeNullableFromJson(json['MessageType']), + messageType: + PluginInstallationCancelledMessage.sessionMessageTypeMessageTypeNullableFromJson(json['MessageType']), ); -Map _$PluginInstallationCancelledMessageToJson( - PluginInstallationCancelledMessage instance) => +Map _$PluginInstallationCancelledMessageToJson(PluginInstallationCancelledMessage instance) => { if (instance.data?.toJson() case final value?) 'Data': value, if (instance.messageId case final value?) 'MessageId': value, - if (sessionMessageTypeNullableToJson(instance.messageType) - case final value?) - 'MessageType': value, + if (sessionMessageTypeNullableToJson(instance.messageType) case final value?) 'MessageType': value, }; -PluginInstallationCompletedMessage _$PluginInstallationCompletedMessageFromJson( - Map json) => +PluginInstallationCompletedMessage _$PluginInstallationCompletedMessageFromJson(Map json) => PluginInstallationCompletedMessage( - data: json['Data'] == null - ? null - : InstallationInfo.fromJson(json['Data'] as Map), + data: json['Data'] == null ? null : InstallationInfo.fromJson(json['Data'] as Map), messageId: json['MessageId'] as String?, - messageType: PluginInstallationCompletedMessage - .sessionMessageTypeMessageTypeNullableFromJson(json['MessageType']), + messageType: + PluginInstallationCompletedMessage.sessionMessageTypeMessageTypeNullableFromJson(json['MessageType']), ); -Map _$PluginInstallationCompletedMessageToJson( - PluginInstallationCompletedMessage instance) => +Map _$PluginInstallationCompletedMessageToJson(PluginInstallationCompletedMessage instance) => { if (instance.data?.toJson() case final value?) 'Data': value, if (instance.messageId case final value?) 'MessageId': value, - if (sessionMessageTypeNullableToJson(instance.messageType) - case final value?) - 'MessageType': value, + if (sessionMessageTypeNullableToJson(instance.messageType) case final value?) 'MessageType': value, }; -PluginInstallationFailedMessage _$PluginInstallationFailedMessageFromJson( - Map json) => +PluginInstallationFailedMessage _$PluginInstallationFailedMessageFromJson(Map json) => PluginInstallationFailedMessage( - data: json['Data'] == null - ? null - : InstallationInfo.fromJson(json['Data'] as Map), + data: json['Data'] == null ? null : InstallationInfo.fromJson(json['Data'] as Map), messageId: json['MessageId'] as String?, - messageType: PluginInstallationFailedMessage - .sessionMessageTypeMessageTypeNullableFromJson(json['MessageType']), + messageType: PluginInstallationFailedMessage.sessionMessageTypeMessageTypeNullableFromJson(json['MessageType']), ); -Map _$PluginInstallationFailedMessageToJson( - PluginInstallationFailedMessage instance) => +Map _$PluginInstallationFailedMessageToJson(PluginInstallationFailedMessage instance) => { if (instance.data?.toJson() case final value?) 'Data': value, if (instance.messageId case final value?) 'MessageId': value, - if (sessionMessageTypeNullableToJson(instance.messageType) - case final value?) - 'MessageType': value, + if (sessionMessageTypeNullableToJson(instance.messageType) case final value?) 'MessageType': value, }; -PluginInstallingMessage _$PluginInstallingMessageFromJson( - Map json) => - PluginInstallingMessage( - data: json['Data'] == null - ? null - : InstallationInfo.fromJson(json['Data'] as Map), +PluginInstallingMessage _$PluginInstallingMessageFromJson(Map json) => PluginInstallingMessage( + data: json['Data'] == null ? null : InstallationInfo.fromJson(json['Data'] as Map), messageId: json['MessageId'] as String?, - messageType: - PluginInstallingMessage.sessionMessageTypeMessageTypeNullableFromJson( - json['MessageType']), + messageType: PluginInstallingMessage.sessionMessageTypeMessageTypeNullableFromJson(json['MessageType']), ); -Map _$PluginInstallingMessageToJson( - PluginInstallingMessage instance) => - { +Map _$PluginInstallingMessageToJson(PluginInstallingMessage instance) => { if (instance.data?.toJson() case final value?) 'Data': value, if (instance.messageId case final value?) 'MessageId': value, - if (sessionMessageTypeNullableToJson(instance.messageType) - case final value?) - 'MessageType': value, + if (sessionMessageTypeNullableToJson(instance.messageType) case final value?) 'MessageType': value, }; -PluginUninstalledMessage _$PluginUninstalledMessageFromJson( - Map json) => - PluginUninstalledMessage( - data: json['Data'] == null - ? null - : PluginInfo.fromJson(json['Data'] as Map), +PluginUninstalledMessage _$PluginUninstalledMessageFromJson(Map json) => PluginUninstalledMessage( + data: json['Data'] == null ? null : PluginInfo.fromJson(json['Data'] as Map), messageId: json['MessageId'] as String?, - messageType: PluginUninstalledMessage - .sessionMessageTypeMessageTypeNullableFromJson(json['MessageType']), + messageType: PluginUninstalledMessage.sessionMessageTypeMessageTypeNullableFromJson(json['MessageType']), ); -Map _$PluginUninstalledMessageToJson( - PluginUninstalledMessage instance) => - { +Map _$PluginUninstalledMessageToJson(PluginUninstalledMessage instance) => { if (instance.data?.toJson() case final value?) 'Data': value, if (instance.messageId case final value?) 'MessageId': value, - if (sessionMessageTypeNullableToJson(instance.messageType) - case final value?) - 'MessageType': value, + if (sessionMessageTypeNullableToJson(instance.messageType) case final value?) 'MessageType': value, }; -PreviousItemRequestDto _$PreviousItemRequestDtoFromJson( - Map json) => - PreviousItemRequestDto( +PreviousItemRequestDto _$PreviousItemRequestDtoFromJson(Map json) => PreviousItemRequestDto( playlistItemId: json['PlaylistItemId'] as String?, ); -Map _$PreviousItemRequestDtoToJson( - PreviousItemRequestDto instance) => - { +Map _$PreviousItemRequestDtoToJson(PreviousItemRequestDto instance) => { if (instance.playlistItemId case final value?) 'PlaylistItemId': value, }; -ProblemDetails _$ProblemDetailsFromJson(Map json) => - ProblemDetails( +ProblemDetails _$ProblemDetailsFromJson(Map json) => ProblemDetails( type: json['type'] as String?, title: json['title'] as String?, status: (json['status'] as num?)?.toInt(), @@ -4810,8 +3477,7 @@ ProblemDetails _$ProblemDetailsFromJson(Map json) => instance: json['instance'] as String?, ); -Map _$ProblemDetailsToJson(ProblemDetails instance) => - { +Map _$ProblemDetailsToJson(ProblemDetails instance) => { if (instance.type case final value?) 'type': value, if (instance.title case final value?) 'title': value, if (instance.status case final value?) 'status': value, @@ -4819,28 +3485,21 @@ Map _$ProblemDetailsToJson(ProblemDetails instance) => if (instance.instance case final value?) 'instance': value, }; -ProfileCondition _$ProfileConditionFromJson(Map json) => - ProfileCondition( +ProfileCondition _$ProfileConditionFromJson(Map json) => ProfileCondition( condition: profileConditionTypeNullableFromJson(json['Condition']), property: profileConditionValueNullableFromJson(json['Property']), $Value: json['Value'] as String?, isRequired: json['IsRequired'] as bool?, ); -Map _$ProfileConditionToJson(ProfileCondition instance) => - { - if (profileConditionTypeNullableToJson(instance.condition) - case final value?) - 'Condition': value, - if (profileConditionValueNullableToJson(instance.property) - case final value?) - 'Property': value, +Map _$ProfileConditionToJson(ProfileCondition instance) => { + if (profileConditionTypeNullableToJson(instance.condition) case final value?) 'Condition': value, + if (profileConditionValueNullableToJson(instance.property) case final value?) 'Property': value, if (instance.$Value case final value?) 'Value': value, if (instance.isRequired case final value?) 'IsRequired': value, }; -PublicSystemInfo _$PublicSystemInfoFromJson(Map json) => - PublicSystemInfo( +PublicSystemInfo _$PublicSystemInfoFromJson(Map json) => PublicSystemInfo( localAddress: json['LocalAddress'] as String?, serverName: json['ServerName'] as String?, version: json['Version'] as String?, @@ -4850,56 +3509,36 @@ PublicSystemInfo _$PublicSystemInfoFromJson(Map json) => startupWizardCompleted: json['StartupWizardCompleted'] as bool?, ); -Map _$PublicSystemInfoToJson(PublicSystemInfo instance) => - { +Map _$PublicSystemInfoToJson(PublicSystemInfo instance) => { if (instance.localAddress case final value?) 'LocalAddress': value, if (instance.serverName case final value?) 'ServerName': value, if (instance.version case final value?) 'Version': value, if (instance.productName case final value?) 'ProductName': value, if (instance.operatingSystem case final value?) 'OperatingSystem': value, if (instance.id case final value?) 'Id': value, - if (instance.startupWizardCompleted case final value?) - 'StartupWizardCompleted': value, + if (instance.startupWizardCompleted case final value?) 'StartupWizardCompleted': value, }; QueryFilters _$QueryFiltersFromJson(Map json) => QueryFilters( - genres: (json['Genres'] as List?) - ?.map((e) => NameGuidPair.fromJson(e as Map)) - .toList() ?? - [], - tags: - (json['Tags'] as List?)?.map((e) => e as String).toList() ?? + genres: + (json['Genres'] as List?)?.map((e) => NameGuidPair.fromJson(e as Map)).toList() ?? [], + tags: (json['Tags'] as List?)?.map((e) => e as String).toList() ?? [], ); -Map _$QueryFiltersToJson(QueryFilters instance) => - { - if (instance.genres?.map((e) => e.toJson()).toList() case final value?) - 'Genres': value, +Map _$QueryFiltersToJson(QueryFilters instance) => { + if (instance.genres?.map((e) => e.toJson()).toList() case final value?) 'Genres': value, if (instance.tags case final value?) 'Tags': value, - }; - -QueryFiltersLegacy _$QueryFiltersLegacyFromJson(Map json) => - QueryFiltersLegacy( - genres: (json['Genres'] as List?) - ?.map((e) => e as String) - .toList() ?? - [], - tags: - (json['Tags'] as List?)?.map((e) => e as String).toList() ?? - [], - officialRatings: (json['OfficialRatings'] as List?) - ?.map((e) => e as String) - .toList() ?? - [], - years: (json['Years'] as List?) - ?.map((e) => (e as num).toInt()) - .toList() ?? - [], + }; + +QueryFiltersLegacy _$QueryFiltersLegacyFromJson(Map json) => QueryFiltersLegacy( + genres: (json['Genres'] as List?)?.map((e) => e as String).toList() ?? [], + tags: (json['Tags'] as List?)?.map((e) => e as String).toList() ?? [], + officialRatings: (json['OfficialRatings'] as List?)?.map((e) => e as String).toList() ?? [], + years: (json['Years'] as List?)?.map((e) => (e as num).toInt()).toList() ?? [], ); -Map _$QueryFiltersLegacyToJson(QueryFiltersLegacy instance) => - { +Map _$QueryFiltersLegacyToJson(QueryFiltersLegacy instance) => { if (instance.genres case final value?) 'Genres': value, if (instance.tags case final value?) 'Tags': value, if (instance.officialRatings case final value?) 'OfficialRatings': value, @@ -4916,34 +3555,25 @@ Map _$QueueItemToJson(QueueItem instance) => { if (instance.playlistItemId case final value?) 'PlaylistItemId': value, }; -QueueRequestDto _$QueueRequestDtoFromJson(Map json) => - QueueRequestDto( - itemIds: (json['ItemIds'] as List?) - ?.map((e) => e as String) - .toList() ?? - [], +QueueRequestDto _$QueueRequestDtoFromJson(Map json) => QueueRequestDto( + itemIds: (json['ItemIds'] as List?)?.map((e) => e as String).toList() ?? [], mode: groupQueueModeNullableFromJson(json['Mode']), ); -Map _$QueueRequestDtoToJson(QueueRequestDto instance) => - { +Map _$QueueRequestDtoToJson(QueueRequestDto instance) => { if (instance.itemIds case final value?) 'ItemIds': value, - if (groupQueueModeNullableToJson(instance.mode) case final value?) - 'Mode': value, + if (groupQueueModeNullableToJson(instance.mode) case final value?) 'Mode': value, }; -QuickConnectDto _$QuickConnectDtoFromJson(Map json) => - QuickConnectDto( +QuickConnectDto _$QuickConnectDtoFromJson(Map json) => QuickConnectDto( secret: json['Secret'] as String, ); -Map _$QuickConnectDtoToJson(QuickConnectDto instance) => - { +Map _$QuickConnectDtoToJson(QuickConnectDto instance) => { 'Secret': instance.secret, }; -QuickConnectResult _$QuickConnectResultFromJson(Map json) => - QuickConnectResult( +QuickConnectResult _$QuickConnectResultFromJson(Map json) => QuickConnectResult( authenticated: json['Authenticated'] as bool?, secret: json['Secret'] as String?, code: json['Code'] as String?, @@ -4951,13 +3581,10 @@ QuickConnectResult _$QuickConnectResultFromJson(Map json) => deviceName: json['DeviceName'] as String?, appName: json['AppName'] as String?, appVersion: json['AppVersion'] as String?, - dateAdded: json['DateAdded'] == null - ? null - : DateTime.parse(json['DateAdded'] as String), + dateAdded: json['DateAdded'] == null ? null : DateTime.parse(json['DateAdded'] as String), ); -Map _$QuickConnectResultToJson(QuickConnectResult instance) => - { +Map _$QuickConnectResultToJson(QuickConnectResult instance) => { if (instance.authenticated case final value?) 'Authenticated': value, if (instance.secret case final value?) 'Secret': value, if (instance.code case final value?) 'Code': value, @@ -4965,73 +3592,51 @@ Map _$QuickConnectResultToJson(QuickConnectResult instance) => if (instance.deviceName case final value?) 'DeviceName': value, if (instance.appName case final value?) 'AppName': value, if (instance.appVersion case final value?) 'AppVersion': value, - if (instance.dateAdded?.toIso8601String() case final value?) - 'DateAdded': value, + if (instance.dateAdded?.toIso8601String() case final value?) 'DateAdded': value, }; -ReadyRequestDto _$ReadyRequestDtoFromJson(Map json) => - ReadyRequestDto( - when: - json['When'] == null ? null : DateTime.parse(json['When'] as String), +ReadyRequestDto _$ReadyRequestDtoFromJson(Map json) => ReadyRequestDto( + when: json['When'] == null ? null : DateTime.parse(json['When'] as String), positionTicks: (json['PositionTicks'] as num?)?.toInt(), isPlaying: json['IsPlaying'] as bool?, playlistItemId: json['PlaylistItemId'] as String?, ); -Map _$ReadyRequestDtoToJson(ReadyRequestDto instance) => - { +Map _$ReadyRequestDtoToJson(ReadyRequestDto instance) => { if (instance.when?.toIso8601String() case final value?) 'When': value, if (instance.positionTicks case final value?) 'PositionTicks': value, if (instance.isPlaying case final value?) 'IsPlaying': value, if (instance.playlistItemId case final value?) 'PlaylistItemId': value, }; -RecommendationDto _$RecommendationDtoFromJson(Map json) => - RecommendationDto( - items: (json['Items'] as List?) - ?.map((e) => BaseItemDto.fromJson(e as Map)) - .toList() ?? - [], - recommendationType: - recommendationTypeNullableFromJson(json['RecommendationType']), +RecommendationDto _$RecommendationDtoFromJson(Map json) => RecommendationDto( + items: + (json['Items'] as List?)?.map((e) => BaseItemDto.fromJson(e as Map)).toList() ?? [], + recommendationType: recommendationTypeNullableFromJson(json['RecommendationType']), baselineItemName: json['BaselineItemName'] as String?, categoryId: json['CategoryId'] as String?, ); -Map _$RecommendationDtoToJson(RecommendationDto instance) => - { - if (instance.items?.map((e) => e.toJson()).toList() case final value?) - 'Items': value, - if (recommendationTypeNullableToJson(instance.recommendationType) - case final value?) - 'RecommendationType': value, - if (instance.baselineItemName case final value?) - 'BaselineItemName': value, +Map _$RecommendationDtoToJson(RecommendationDto instance) => { + if (instance.items?.map((e) => e.toJson()).toList() case final value?) 'Items': value, + if (recommendationTypeNullableToJson(instance.recommendationType) case final value?) 'RecommendationType': value, + if (instance.baselineItemName case final value?) 'BaselineItemName': value, if (instance.categoryId case final value?) 'CategoryId': value, }; -RefreshProgressMessage _$RefreshProgressMessageFromJson( - Map json) => - RefreshProgressMessage( +RefreshProgressMessage _$RefreshProgressMessageFromJson(Map json) => RefreshProgressMessage( data: json['Data'] as Map?, messageId: json['MessageId'] as String?, - messageType: - RefreshProgressMessage.sessionMessageTypeMessageTypeNullableFromJson( - json['MessageType']), + messageType: RefreshProgressMessage.sessionMessageTypeMessageTypeNullableFromJson(json['MessageType']), ); -Map _$RefreshProgressMessageToJson( - RefreshProgressMessage instance) => - { +Map _$RefreshProgressMessageToJson(RefreshProgressMessage instance) => { if (instance.data case final value?) 'Data': value, if (instance.messageId case final value?) 'MessageId': value, - if (sessionMessageTypeNullableToJson(instance.messageType) - case final value?) - 'MessageType': value, + if (sessionMessageTypeNullableToJson(instance.messageType) case final value?) 'MessageType': value, }; -RemoteImageInfo _$RemoteImageInfoFromJson(Map json) => - RemoteImageInfo( +RemoteImageInfo _$RemoteImageInfoFromJson(Map json) => RemoteImageInfo( providerName: json['ProviderName'] as String?, url: json['Url'] as String?, thumbnailUrl: json['ThumbnailUrl'] as String?, @@ -5044,8 +3649,7 @@ RemoteImageInfo _$RemoteImageInfoFromJson(Map json) => ratingType: ratingTypeNullableFromJson(json['RatingType']), ); -Map _$RemoteImageInfoToJson(RemoteImageInfo instance) => - { +Map _$RemoteImageInfoToJson(RemoteImageInfo instance) => { if (instance.providerName case final value?) 'ProviderName': value, if (instance.url case final value?) 'Url': value, if (instance.thumbnailUrl case final value?) 'ThumbnailUrl': value, @@ -5054,98 +3658,72 @@ Map _$RemoteImageInfoToJson(RemoteImageInfo instance) => if (instance.communityRating case final value?) 'CommunityRating': value, if (instance.voteCount case final value?) 'VoteCount': value, if (instance.language case final value?) 'Language': value, - if (imageTypeNullableToJson(instance.type) case final value?) - 'Type': value, - if (ratingTypeNullableToJson(instance.ratingType) case final value?) - 'RatingType': value, + if (imageTypeNullableToJson(instance.type) case final value?) 'Type': value, + if (ratingTypeNullableToJson(instance.ratingType) case final value?) 'RatingType': value, }; -RemoteImageResult _$RemoteImageResultFromJson(Map json) => - RemoteImageResult( +RemoteImageResult _$RemoteImageResultFromJson(Map json) => RemoteImageResult( images: (json['Images'] as List?) ?.map((e) => RemoteImageInfo.fromJson(e as Map)) .toList() ?? [], totalRecordCount: (json['TotalRecordCount'] as num?)?.toInt(), - providers: (json['Providers'] as List?) - ?.map((e) => e as String) - .toList() ?? - [], + providers: (json['Providers'] as List?)?.map((e) => e as String).toList() ?? [], ); -Map _$RemoteImageResultToJson(RemoteImageResult instance) => - { - if (instance.images?.map((e) => e.toJson()).toList() case final value?) - 'Images': value, - if (instance.totalRecordCount case final value?) - 'TotalRecordCount': value, +Map _$RemoteImageResultToJson(RemoteImageResult instance) => { + if (instance.images?.map((e) => e.toJson()).toList() case final value?) 'Images': value, + if (instance.totalRecordCount case final value?) 'TotalRecordCount': value, if (instance.providers case final value?) 'Providers': value, }; -RemoteLyricInfoDto _$RemoteLyricInfoDtoFromJson(Map json) => - RemoteLyricInfoDto( +RemoteLyricInfoDto _$RemoteLyricInfoDtoFromJson(Map json) => RemoteLyricInfoDto( id: json['Id'] as String?, providerName: json['ProviderName'] as String?, - lyrics: json['Lyrics'] == null - ? null - : LyricDto.fromJson(json['Lyrics'] as Map), + lyrics: json['Lyrics'] == null ? null : LyricDto.fromJson(json['Lyrics'] as Map), ); -Map _$RemoteLyricInfoDtoToJson(RemoteLyricInfoDto instance) => - { +Map _$RemoteLyricInfoDtoToJson(RemoteLyricInfoDto instance) => { if (instance.id case final value?) 'Id': value, if (instance.providerName case final value?) 'ProviderName': value, if (instance.lyrics?.toJson() case final value?) 'Lyrics': value, }; -RemoteSearchResult _$RemoteSearchResultFromJson(Map json) => - RemoteSearchResult( +RemoteSearchResult _$RemoteSearchResultFromJson(Map json) => RemoteSearchResult( name: json['Name'] as String?, providerIds: json['ProviderIds'] as Map?, productionYear: (json['ProductionYear'] as num?)?.toInt(), indexNumber: (json['IndexNumber'] as num?)?.toInt(), indexNumberEnd: (json['IndexNumberEnd'] as num?)?.toInt(), parentIndexNumber: (json['ParentIndexNumber'] as num?)?.toInt(), - premiereDate: json['PremiereDate'] == null - ? null - : DateTime.parse(json['PremiereDate'] as String), + premiereDate: json['PremiereDate'] == null ? null : DateTime.parse(json['PremiereDate'] as String), imageUrl: json['ImageUrl'] as String?, searchProviderName: json['SearchProviderName'] as String?, overview: json['Overview'] as String?, - albumArtist: json['AlbumArtist'] == null - ? null - : RemoteSearchResult.fromJson( - json['AlbumArtist'] as Map), + albumArtist: + json['AlbumArtist'] == null ? null : RemoteSearchResult.fromJson(json['AlbumArtist'] as Map), artists: (json['Artists'] as List?) - ?.map( - (e) => RemoteSearchResult.fromJson(e as Map)) + ?.map((e) => RemoteSearchResult.fromJson(e as Map)) .toList() ?? [], ); -Map _$RemoteSearchResultToJson(RemoteSearchResult instance) => - { +Map _$RemoteSearchResultToJson(RemoteSearchResult instance) => { if (instance.name case final value?) 'Name': value, if (instance.providerIds case final value?) 'ProviderIds': value, if (instance.productionYear case final value?) 'ProductionYear': value, if (instance.indexNumber case final value?) 'IndexNumber': value, if (instance.indexNumberEnd case final value?) 'IndexNumberEnd': value, - if (instance.parentIndexNumber case final value?) - 'ParentIndexNumber': value, - if (instance.premiereDate?.toIso8601String() case final value?) - 'PremiereDate': value, + if (instance.parentIndexNumber case final value?) 'ParentIndexNumber': value, + if (instance.premiereDate?.toIso8601String() case final value?) 'PremiereDate': value, if (instance.imageUrl case final value?) 'ImageUrl': value, - if (instance.searchProviderName case final value?) - 'SearchProviderName': value, + if (instance.searchProviderName case final value?) 'SearchProviderName': value, if (instance.overview case final value?) 'Overview': value, - if (instance.albumArtist?.toJson() case final value?) - 'AlbumArtist': value, - if (instance.artists?.map((e) => e.toJson()).toList() case final value?) - 'Artists': value, + if (instance.albumArtist?.toJson() case final value?) 'AlbumArtist': value, + if (instance.artists?.map((e) => e.toJson()).toList() case final value?) 'Artists': value, }; -RemoteSubtitleInfo _$RemoteSubtitleInfoFromJson(Map json) => - RemoteSubtitleInfo( +RemoteSubtitleInfo _$RemoteSubtitleInfoFromJson(Map json) => RemoteSubtitleInfo( threeLetterISOLanguageName: json['ThreeLetterISOLanguageName'] as String?, id: json['Id'] as String?, providerName: json['ProviderName'] as String?, @@ -5153,9 +3731,7 @@ RemoteSubtitleInfo _$RemoteSubtitleInfoFromJson(Map json) => format: json['Format'] as String?, author: json['Author'] as String?, comment: json['Comment'] as String?, - dateCreated: json['DateCreated'] == null - ? null - : DateTime.parse(json['DateCreated'] as String), + dateCreated: json['DateCreated'] == null ? null : DateTime.parse(json['DateCreated'] as String), communityRating: (json['CommunityRating'] as num?)?.toDouble(), frameRate: (json['FrameRate'] as num?)?.toDouble(), downloadCount: (json['DownloadCount'] as num?)?.toInt(), @@ -5166,171 +3742,115 @@ RemoteSubtitleInfo _$RemoteSubtitleInfoFromJson(Map json) => hearingImpaired: json['HearingImpaired'] as bool?, ); -Map _$RemoteSubtitleInfoToJson(RemoteSubtitleInfo instance) => - { - if (instance.threeLetterISOLanguageName case final value?) - 'ThreeLetterISOLanguageName': value, +Map _$RemoteSubtitleInfoToJson(RemoteSubtitleInfo instance) => { + if (instance.threeLetterISOLanguageName case final value?) 'ThreeLetterISOLanguageName': value, if (instance.id case final value?) 'Id': value, if (instance.providerName case final value?) 'ProviderName': value, if (instance.name case final value?) 'Name': value, if (instance.format case final value?) 'Format': value, if (instance.author case final value?) 'Author': value, if (instance.comment case final value?) 'Comment': value, - if (instance.dateCreated?.toIso8601String() case final value?) - 'DateCreated': value, + if (instance.dateCreated?.toIso8601String() case final value?) 'DateCreated': value, if (instance.communityRating case final value?) 'CommunityRating': value, if (instance.frameRate case final value?) 'FrameRate': value, if (instance.downloadCount case final value?) 'DownloadCount': value, if (instance.isHashMatch case final value?) 'IsHashMatch': value, if (instance.aiTranslated case final value?) 'AiTranslated': value, - if (instance.machineTranslated case final value?) - 'MachineTranslated': value, + if (instance.machineTranslated case final value?) 'MachineTranslated': value, if (instance.forced case final value?) 'Forced': value, if (instance.hearingImpaired case final value?) 'HearingImpaired': value, }; -RemoveFromPlaylistRequestDto _$RemoveFromPlaylistRequestDtoFromJson( - Map json) => +RemoveFromPlaylistRequestDto _$RemoveFromPlaylistRequestDtoFromJson(Map json) => RemoveFromPlaylistRequestDto( - playlistItemIds: (json['PlaylistItemIds'] as List?) - ?.map((e) => e as String) - .toList() ?? - [], + playlistItemIds: (json['PlaylistItemIds'] as List?)?.map((e) => e as String).toList() ?? [], clearPlaylist: json['ClearPlaylist'] as bool?, clearPlayingItem: json['ClearPlayingItem'] as bool?, ); -Map _$RemoveFromPlaylistRequestDtoToJson( - RemoveFromPlaylistRequestDto instance) => - { +Map _$RemoveFromPlaylistRequestDtoToJson(RemoveFromPlaylistRequestDto instance) => { if (instance.playlistItemIds case final value?) 'PlaylistItemIds': value, if (instance.clearPlaylist case final value?) 'ClearPlaylist': value, - if (instance.clearPlayingItem case final value?) - 'ClearPlayingItem': value, + if (instance.clearPlayingItem case final value?) 'ClearPlayingItem': value, }; -ReportPlaybackOptions _$ReportPlaybackOptionsFromJson( - Map json) => - ReportPlaybackOptions( +ReportPlaybackOptions _$ReportPlaybackOptionsFromJson(Map json) => ReportPlaybackOptions( maxDataAge: (json['MaxDataAge'] as num?)?.toInt(), backupPath: json['BackupPath'] as String?, maxBackupFiles: (json['MaxBackupFiles'] as num?)?.toInt(), ); -Map _$ReportPlaybackOptionsToJson( - ReportPlaybackOptions instance) => - { +Map _$ReportPlaybackOptionsToJson(ReportPlaybackOptions instance) => { if (instance.maxDataAge case final value?) 'MaxDataAge': value, if (instance.backupPath case final value?) 'BackupPath': value, if (instance.maxBackupFiles case final value?) 'MaxBackupFiles': value, }; -RepositoryInfo _$RepositoryInfoFromJson(Map json) => - RepositoryInfo( +RepositoryInfo _$RepositoryInfoFromJson(Map json) => RepositoryInfo( name: json['Name'] as String?, url: json['Url'] as String?, enabled: json['Enabled'] as bool?, ); -Map _$RepositoryInfoToJson(RepositoryInfo instance) => - { +Map _$RepositoryInfoToJson(RepositoryInfo instance) => { if (instance.name case final value?) 'Name': value, if (instance.url case final value?) 'Url': value, if (instance.enabled case final value?) 'Enabled': value, }; -RestartRequiredMessage _$RestartRequiredMessageFromJson( - Map json) => - RestartRequiredMessage( +RestartRequiredMessage _$RestartRequiredMessageFromJson(Map json) => RestartRequiredMessage( messageId: json['MessageId'] as String?, - messageType: - RestartRequiredMessage.sessionMessageTypeMessageTypeNullableFromJson( - json['MessageType']), + messageType: RestartRequiredMessage.sessionMessageTypeMessageTypeNullableFromJson(json['MessageType']), ); -Map _$RestartRequiredMessageToJson( - RestartRequiredMessage instance) => - { +Map _$RestartRequiredMessageToJson(RestartRequiredMessage instance) => { if (instance.messageId case final value?) 'MessageId': value, - if (sessionMessageTypeNullableToJson(instance.messageType) - case final value?) - 'MessageType': value, + if (sessionMessageTypeNullableToJson(instance.messageType) case final value?) 'MessageType': value, }; -ScheduledTaskEndedMessage _$ScheduledTaskEndedMessageFromJson( - Map json) => - ScheduledTaskEndedMessage( - data: json['Data'] == null - ? null - : TaskResult.fromJson(json['Data'] as Map), +ScheduledTaskEndedMessage _$ScheduledTaskEndedMessageFromJson(Map json) => ScheduledTaskEndedMessage( + data: json['Data'] == null ? null : TaskResult.fromJson(json['Data'] as Map), messageId: json['MessageId'] as String?, - messageType: ScheduledTaskEndedMessage - .sessionMessageTypeMessageTypeNullableFromJson(json['MessageType']), + messageType: ScheduledTaskEndedMessage.sessionMessageTypeMessageTypeNullableFromJson(json['MessageType']), ); -Map _$ScheduledTaskEndedMessageToJson( - ScheduledTaskEndedMessage instance) => - { +Map _$ScheduledTaskEndedMessageToJson(ScheduledTaskEndedMessage instance) => { if (instance.data?.toJson() case final value?) 'Data': value, if (instance.messageId case final value?) 'MessageId': value, - if (sessionMessageTypeNullableToJson(instance.messageType) - case final value?) - 'MessageType': value, + if (sessionMessageTypeNullableToJson(instance.messageType) case final value?) 'MessageType': value, }; -ScheduledTasksInfoMessage _$ScheduledTasksInfoMessageFromJson( - Map json) => - ScheduledTasksInfoMessage( - data: (json['Data'] as List?) - ?.map((e) => TaskInfo.fromJson(e as Map)) - .toList() ?? - [], +ScheduledTasksInfoMessage _$ScheduledTasksInfoMessageFromJson(Map json) => ScheduledTasksInfoMessage( + data: (json['Data'] as List?)?.map((e) => TaskInfo.fromJson(e as Map)).toList() ?? [], messageId: json['MessageId'] as String?, - messageType: ScheduledTasksInfoMessage - .sessionMessageTypeMessageTypeNullableFromJson(json['MessageType']), + messageType: ScheduledTasksInfoMessage.sessionMessageTypeMessageTypeNullableFromJson(json['MessageType']), ); -Map _$ScheduledTasksInfoMessageToJson( - ScheduledTasksInfoMessage instance) => - { - if (instance.data?.map((e) => e.toJson()).toList() case final value?) - 'Data': value, +Map _$ScheduledTasksInfoMessageToJson(ScheduledTasksInfoMessage instance) => { + if (instance.data?.map((e) => e.toJson()).toList() case final value?) 'Data': value, if (instance.messageId case final value?) 'MessageId': value, - if (sessionMessageTypeNullableToJson(instance.messageType) - case final value?) - 'MessageType': value, + if (sessionMessageTypeNullableToJson(instance.messageType) case final value?) 'MessageType': value, }; -ScheduledTasksInfoStartMessage _$ScheduledTasksInfoStartMessageFromJson( - Map json) => +ScheduledTasksInfoStartMessage _$ScheduledTasksInfoStartMessageFromJson(Map json) => ScheduledTasksInfoStartMessage( data: json['Data'] as String?, - messageType: ScheduledTasksInfoStartMessage - .sessionMessageTypeMessageTypeNullableFromJson(json['MessageType']), + messageType: ScheduledTasksInfoStartMessage.sessionMessageTypeMessageTypeNullableFromJson(json['MessageType']), ); -Map _$ScheduledTasksInfoStartMessageToJson( - ScheduledTasksInfoStartMessage instance) => +Map _$ScheduledTasksInfoStartMessageToJson(ScheduledTasksInfoStartMessage instance) => { if (instance.data case final value?) 'Data': value, - if (sessionMessageTypeNullableToJson(instance.messageType) - case final value?) - 'MessageType': value, + if (sessionMessageTypeNullableToJson(instance.messageType) case final value?) 'MessageType': value, }; -ScheduledTasksInfoStopMessage _$ScheduledTasksInfoStopMessageFromJson( - Map json) => +ScheduledTasksInfoStopMessage _$ScheduledTasksInfoStopMessageFromJson(Map json) => ScheduledTasksInfoStopMessage( - messageType: ScheduledTasksInfoStopMessage - .sessionMessageTypeMessageTypeNullableFromJson(json['MessageType']), + messageType: ScheduledTasksInfoStopMessage.sessionMessageTypeMessageTypeNullableFromJson(json['MessageType']), ); -Map _$ScheduledTasksInfoStopMessageToJson( - ScheduledTasksInfoStopMessage instance) => - { - if (sessionMessageTypeNullableToJson(instance.messageType) - case final value?) - 'MessageType': value, +Map _$ScheduledTasksInfoStopMessageToJson(ScheduledTasksInfoStopMessage instance) => { + if (sessionMessageTypeNullableToJson(instance.messageType) case final value?) 'MessageType': value, }; SearchHint _$SearchHintFromJson(Map json) => SearchHint( @@ -5349,59 +3869,41 @@ SearchHint _$SearchHintFromJson(Map json) => SearchHint( type: baseItemKindNullableFromJson(json['Type']), isFolder: json['IsFolder'] as bool?, runTimeTicks: (json['RunTimeTicks'] as num?)?.toInt(), - mediaType: - SearchHint.mediaTypeMediaTypeNullableFromJson(json['MediaType']), - startDate: json['StartDate'] == null - ? null - : DateTime.parse(json['StartDate'] as String), - endDate: json['EndDate'] == null - ? null - : DateTime.parse(json['EndDate'] as String), + mediaType: SearchHint.mediaTypeMediaTypeNullableFromJson(json['MediaType']), + startDate: json['StartDate'] == null ? null : DateTime.parse(json['StartDate'] as String), + endDate: json['EndDate'] == null ? null : DateTime.parse(json['EndDate'] as String), series: json['Series'] as String?, status: json['Status'] as String?, album: json['Album'] as String?, albumId: json['AlbumId'] as String?, albumArtist: json['AlbumArtist'] as String?, - artists: (json['Artists'] as List?) - ?.map((e) => e as String) - .toList() ?? - [], + artists: (json['Artists'] as List?)?.map((e) => e as String).toList() ?? [], songCount: (json['SongCount'] as num?)?.toInt(), episodeCount: (json['EpisodeCount'] as num?)?.toInt(), channelId: json['ChannelId'] as String?, channelName: json['ChannelName'] as String?, - primaryImageAspectRatio: - (json['PrimaryImageAspectRatio'] as num?)?.toDouble(), + primaryImageAspectRatio: (json['PrimaryImageAspectRatio'] as num?)?.toDouble(), ); -Map _$SearchHintToJson(SearchHint instance) => - { +Map _$SearchHintToJson(SearchHint instance) => { if (instance.itemId case final value?) 'ItemId': value, if (instance.id case final value?) 'Id': value, if (instance.name case final value?) 'Name': value, if (instance.matchedTerm case final value?) 'MatchedTerm': value, if (instance.indexNumber case final value?) 'IndexNumber': value, if (instance.productionYear case final value?) 'ProductionYear': value, - if (instance.parentIndexNumber case final value?) - 'ParentIndexNumber': value, + if (instance.parentIndexNumber case final value?) 'ParentIndexNumber': value, if (instance.primaryImageTag case final value?) 'PrimaryImageTag': value, if (instance.thumbImageTag case final value?) 'ThumbImageTag': value, - if (instance.thumbImageItemId case final value?) - 'ThumbImageItemId': value, - if (instance.backdropImageTag case final value?) - 'BackdropImageTag': value, - if (instance.backdropImageItemId case final value?) - 'BackdropImageItemId': value, - if (baseItemKindNullableToJson(instance.type) case final value?) - 'Type': value, + if (instance.thumbImageItemId case final value?) 'ThumbImageItemId': value, + if (instance.backdropImageTag case final value?) 'BackdropImageTag': value, + if (instance.backdropImageItemId case final value?) 'BackdropImageItemId': value, + if (baseItemKindNullableToJson(instance.type) case final value?) 'Type': value, if (instance.isFolder case final value?) 'IsFolder': value, if (instance.runTimeTicks case final value?) 'RunTimeTicks': value, - if (mediaTypeNullableToJson(instance.mediaType) case final value?) - 'MediaType': value, - if (instance.startDate?.toIso8601String() case final value?) - 'StartDate': value, - if (instance.endDate?.toIso8601String() case final value?) - 'EndDate': value, + if (mediaTypeNullableToJson(instance.mediaType) case final value?) 'MediaType': value, + if (instance.startDate?.toIso8601String() case final value?) 'StartDate': value, + if (instance.endDate?.toIso8601String() case final value?) 'EndDate': value, if (instance.series case final value?) 'Series': value, if (instance.status case final value?) 'Status': value, if (instance.album case final value?) 'Album': value, @@ -5412,12 +3914,10 @@ Map _$SearchHintToJson(SearchHint instance) => if (instance.episodeCount case final value?) 'EpisodeCount': value, if (instance.channelId case final value?) 'ChannelId': value, if (instance.channelName case final value?) 'ChannelName': value, - if (instance.primaryImageAspectRatio case final value?) - 'PrimaryImageAspectRatio': value, + if (instance.primaryImageAspectRatio case final value?) 'PrimaryImageAspectRatio': value, }; -SearchHintResult _$SearchHintResultFromJson(Map json) => - SearchHintResult( +SearchHintResult _$SearchHintResultFromJson(Map json) => SearchHintResult( searchHints: (json['SearchHints'] as List?) ?.map((e) => SearchHint.fromJson(e as Map)) .toList() ?? @@ -5425,47 +3925,35 @@ SearchHintResult _$SearchHintResultFromJson(Map json) => totalRecordCount: (json['TotalRecordCount'] as num?)?.toInt(), ); -Map _$SearchHintResultToJson(SearchHintResult instance) => - { - if (instance.searchHints?.map((e) => e.toJson()).toList() - case final value?) - 'SearchHints': value, - if (instance.totalRecordCount case final value?) - 'TotalRecordCount': value, +Map _$SearchHintResultToJson(SearchHintResult instance) => { + if (instance.searchHints?.map((e) => e.toJson()).toList() case final value?) 'SearchHints': value, + if (instance.totalRecordCount case final value?) 'TotalRecordCount': value, }; -SeekRequestDto _$SeekRequestDtoFromJson(Map json) => - SeekRequestDto( +SeekRequestDto _$SeekRequestDtoFromJson(Map json) => SeekRequestDto( positionTicks: (json['PositionTicks'] as num?)?.toInt(), ); -Map _$SeekRequestDtoToJson(SeekRequestDto instance) => - { +Map _$SeekRequestDtoToJson(SeekRequestDto instance) => { if (instance.positionTicks case final value?) 'PositionTicks': value, }; SendCommand _$SendCommandFromJson(Map json) => SendCommand( groupId: json['GroupId'] as String?, playlistItemId: json['PlaylistItemId'] as String?, - when: - json['When'] == null ? null : DateTime.parse(json['When'] as String), + when: json['When'] == null ? null : DateTime.parse(json['When'] as String), positionTicks: (json['PositionTicks'] as num?)?.toInt(), command: sendCommandTypeNullableFromJson(json['Command']), - emittedAt: json['EmittedAt'] == null - ? null - : DateTime.parse(json['EmittedAt'] as String), + emittedAt: json['EmittedAt'] == null ? null : DateTime.parse(json['EmittedAt'] as String), ); -Map _$SendCommandToJson(SendCommand instance) => - { +Map _$SendCommandToJson(SendCommand instance) => { if (instance.groupId case final value?) 'GroupId': value, if (instance.playlistItemId case final value?) 'PlaylistItemId': value, if (instance.when?.toIso8601String() case final value?) 'When': value, if (instance.positionTicks case final value?) 'PositionTicks': value, - if (sendCommandTypeNullableToJson(instance.command) case final value?) - 'Command': value, - if (instance.emittedAt?.toIso8601String() case final value?) - 'EmittedAt': value, + if (sendCommandTypeNullableToJson(instance.command) case final value?) 'Command': value, + if (instance.emittedAt?.toIso8601String() case final value?) 'EmittedAt': value, }; SeriesInfo _$SeriesInfoFromJson(Map json) => SeriesInfo( @@ -5478,97 +3966,65 @@ SeriesInfo _$SeriesInfoFromJson(Map json) => SeriesInfo( year: (json['Year'] as num?)?.toInt(), indexNumber: (json['IndexNumber'] as num?)?.toInt(), parentIndexNumber: (json['ParentIndexNumber'] as num?)?.toInt(), - premiereDate: json['PremiereDate'] == null - ? null - : DateTime.parse(json['PremiereDate'] as String), + premiereDate: json['PremiereDate'] == null ? null : DateTime.parse(json['PremiereDate'] as String), isAutomated: json['IsAutomated'] as bool?, ); -Map _$SeriesInfoToJson(SeriesInfo instance) => - { +Map _$SeriesInfoToJson(SeriesInfo instance) => { if (instance.name case final value?) 'Name': value, if (instance.originalTitle case final value?) 'OriginalTitle': value, if (instance.path case final value?) 'Path': value, - if (instance.metadataLanguage case final value?) - 'MetadataLanguage': value, - if (instance.metadataCountryCode case final value?) - 'MetadataCountryCode': value, + if (instance.metadataLanguage case final value?) 'MetadataLanguage': value, + if (instance.metadataCountryCode case final value?) 'MetadataCountryCode': value, if (instance.providerIds case final value?) 'ProviderIds': value, if (instance.year case final value?) 'Year': value, if (instance.indexNumber case final value?) 'IndexNumber': value, - if (instance.parentIndexNumber case final value?) - 'ParentIndexNumber': value, - if (instance.premiereDate?.toIso8601String() case final value?) - 'PremiereDate': value, + if (instance.parentIndexNumber case final value?) 'ParentIndexNumber': value, + if (instance.premiereDate?.toIso8601String() case final value?) 'PremiereDate': value, if (instance.isAutomated case final value?) 'IsAutomated': value, }; -SeriesInfoRemoteSearchQuery _$SeriesInfoRemoteSearchQueryFromJson( - Map json) => +SeriesInfoRemoteSearchQuery _$SeriesInfoRemoteSearchQueryFromJson(Map json) => SeriesInfoRemoteSearchQuery( - searchInfo: json['SearchInfo'] == null - ? null - : SeriesInfo.fromJson(json['SearchInfo'] as Map), + searchInfo: json['SearchInfo'] == null ? null : SeriesInfo.fromJson(json['SearchInfo'] as Map), itemId: json['ItemId'] as String?, searchProviderName: json['SearchProviderName'] as String?, includeDisabledProviders: json['IncludeDisabledProviders'] as bool?, ); -Map _$SeriesInfoRemoteSearchQueryToJson( - SeriesInfoRemoteSearchQuery instance) => - { +Map _$SeriesInfoRemoteSearchQueryToJson(SeriesInfoRemoteSearchQuery instance) => { if (instance.searchInfo?.toJson() case final value?) 'SearchInfo': value, if (instance.itemId case final value?) 'ItemId': value, - if (instance.searchProviderName case final value?) - 'SearchProviderName': value, - if (instance.includeDisabledProviders case final value?) - 'IncludeDisabledProviders': value, + if (instance.searchProviderName case final value?) 'SearchProviderName': value, + if (instance.includeDisabledProviders case final value?) 'IncludeDisabledProviders': value, }; -SeriesTimerCancelledMessage _$SeriesTimerCancelledMessageFromJson( - Map json) => +SeriesTimerCancelledMessage _$SeriesTimerCancelledMessageFromJson(Map json) => SeriesTimerCancelledMessage( - data: json['Data'] == null - ? null - : TimerEventInfo.fromJson(json['Data'] as Map), + data: json['Data'] == null ? null : TimerEventInfo.fromJson(json['Data'] as Map), messageId: json['MessageId'] as String?, - messageType: SeriesTimerCancelledMessage - .sessionMessageTypeMessageTypeNullableFromJson(json['MessageType']), + messageType: SeriesTimerCancelledMessage.sessionMessageTypeMessageTypeNullableFromJson(json['MessageType']), ); -Map _$SeriesTimerCancelledMessageToJson( - SeriesTimerCancelledMessage instance) => - { +Map _$SeriesTimerCancelledMessageToJson(SeriesTimerCancelledMessage instance) => { if (instance.data?.toJson() case final value?) 'Data': value, if (instance.messageId case final value?) 'MessageId': value, - if (sessionMessageTypeNullableToJson(instance.messageType) - case final value?) - 'MessageType': value, + if (sessionMessageTypeNullableToJson(instance.messageType) case final value?) 'MessageType': value, }; -SeriesTimerCreatedMessage _$SeriesTimerCreatedMessageFromJson( - Map json) => - SeriesTimerCreatedMessage( - data: json['Data'] == null - ? null - : TimerEventInfo.fromJson(json['Data'] as Map), +SeriesTimerCreatedMessage _$SeriesTimerCreatedMessageFromJson(Map json) => SeriesTimerCreatedMessage( + data: json['Data'] == null ? null : TimerEventInfo.fromJson(json['Data'] as Map), messageId: json['MessageId'] as String?, - messageType: SeriesTimerCreatedMessage - .sessionMessageTypeMessageTypeNullableFromJson(json['MessageType']), + messageType: SeriesTimerCreatedMessage.sessionMessageTypeMessageTypeNullableFromJson(json['MessageType']), ); -Map _$SeriesTimerCreatedMessageToJson( - SeriesTimerCreatedMessage instance) => - { +Map _$SeriesTimerCreatedMessageToJson(SeriesTimerCreatedMessage instance) => { if (instance.data?.toJson() case final value?) 'Data': value, if (instance.messageId case final value?) 'MessageId': value, - if (sessionMessageTypeNullableToJson(instance.messageType) - case final value?) - 'MessageType': value, + if (sessionMessageTypeNullableToJson(instance.messageType) case final value?) 'MessageType': value, }; -SeriesTimerInfoDto _$SeriesTimerInfoDtoFromJson(Map json) => - SeriesTimerInfoDto( +SeriesTimerInfoDto _$SeriesTimerInfoDtoFromJson(Map json) => SeriesTimerInfoDto( id: json['Id'] as String?, type: json['Type'] as String?, serverId: json['ServerId'] as String?, @@ -5581,12 +4037,8 @@ SeriesTimerInfoDto _$SeriesTimerInfoDtoFromJson(Map json) => externalProgramId: json['ExternalProgramId'] as String?, name: json['Name'] as String?, overview: json['Overview'] as String?, - startDate: json['StartDate'] == null - ? null - : DateTime.parse(json['StartDate'] as String), - endDate: json['EndDate'] == null - ? null - : DateTime.parse(json['EndDate'] as String), + startDate: json['StartDate'] == null ? null : DateTime.parse(json['StartDate'] as String), + endDate: json['EndDate'] == null ? null : DateTime.parse(json['EndDate'] as String), serviceName: json['ServiceName'] as String?, priority: (json['Priority'] as num?)?.toInt(), prePaddingSeconds: (json['PrePaddingSeconds'] as num?)?.toInt(), @@ -5594,10 +4046,7 @@ SeriesTimerInfoDto _$SeriesTimerInfoDtoFromJson(Map json) => isPrePaddingRequired: json['IsPrePaddingRequired'] as bool?, parentBackdropItemId: json['ParentBackdropItemId'] as String?, parentBackdropImageTags: - (json['ParentBackdropImageTags'] as List?) - ?.map((e) => e as String) - .toList() ?? - [], + (json['ParentBackdropImageTags'] as List?)?.map((e) => e as String).toList() ?? [], isPostPaddingRequired: json['IsPostPaddingRequired'] as bool?, keepUntil: keepUntilNullableFromJson(json['KeepUntil']), recordAnyTime: json['RecordAnyTime'] as bool?, @@ -5614,135 +4063,93 @@ SeriesTimerInfoDto _$SeriesTimerInfoDtoFromJson(Map json) => parentPrimaryImageTag: json['ParentPrimaryImageTag'] as String?, ); -Map _$SeriesTimerInfoDtoToJson(SeriesTimerInfoDto instance) => - { +Map _$SeriesTimerInfoDtoToJson(SeriesTimerInfoDto instance) => { if (instance.id case final value?) 'Id': value, if (instance.type case final value?) 'Type': value, if (instance.serverId case final value?) 'ServerId': value, if (instance.externalId case final value?) 'ExternalId': value, if (instance.channelId case final value?) 'ChannelId': value, - if (instance.externalChannelId case final value?) - 'ExternalChannelId': value, + if (instance.externalChannelId case final value?) 'ExternalChannelId': value, if (instance.channelName case final value?) 'ChannelName': value, - if (instance.channelPrimaryImageTag case final value?) - 'ChannelPrimaryImageTag': value, + if (instance.channelPrimaryImageTag case final value?) 'ChannelPrimaryImageTag': value, if (instance.programId case final value?) 'ProgramId': value, - if (instance.externalProgramId case final value?) - 'ExternalProgramId': value, + if (instance.externalProgramId case final value?) 'ExternalProgramId': value, if (instance.name case final value?) 'Name': value, if (instance.overview case final value?) 'Overview': value, - if (instance.startDate?.toIso8601String() case final value?) - 'StartDate': value, - if (instance.endDate?.toIso8601String() case final value?) - 'EndDate': value, + if (instance.startDate?.toIso8601String() case final value?) 'StartDate': value, + if (instance.endDate?.toIso8601String() case final value?) 'EndDate': value, if (instance.serviceName case final value?) 'ServiceName': value, if (instance.priority case final value?) 'Priority': value, - if (instance.prePaddingSeconds case final value?) - 'PrePaddingSeconds': value, - if (instance.postPaddingSeconds case final value?) - 'PostPaddingSeconds': value, - if (instance.isPrePaddingRequired case final value?) - 'IsPrePaddingRequired': value, - if (instance.parentBackdropItemId case final value?) - 'ParentBackdropItemId': value, - if (instance.parentBackdropImageTags case final value?) - 'ParentBackdropImageTags': value, - if (instance.isPostPaddingRequired case final value?) - 'IsPostPaddingRequired': value, - if (keepUntilNullableToJson(instance.keepUntil) case final value?) - 'KeepUntil': value, + if (instance.prePaddingSeconds case final value?) 'PrePaddingSeconds': value, + if (instance.postPaddingSeconds case final value?) 'PostPaddingSeconds': value, + if (instance.isPrePaddingRequired case final value?) 'IsPrePaddingRequired': value, + if (instance.parentBackdropItemId case final value?) 'ParentBackdropItemId': value, + if (instance.parentBackdropImageTags case final value?) 'ParentBackdropImageTags': value, + if (instance.isPostPaddingRequired case final value?) 'IsPostPaddingRequired': value, + if (keepUntilNullableToJson(instance.keepUntil) case final value?) 'KeepUntil': value, if (instance.recordAnyTime case final value?) 'RecordAnyTime': value, - if (instance.skipEpisodesInLibrary case final value?) - 'SkipEpisodesInLibrary': value, - if (instance.recordAnyChannel case final value?) - 'RecordAnyChannel': value, + if (instance.skipEpisodesInLibrary case final value?) 'SkipEpisodesInLibrary': value, + if (instance.recordAnyChannel case final value?) 'RecordAnyChannel': value, if (instance.keepUpTo case final value?) 'KeepUpTo': value, if (instance.recordNewOnly case final value?) 'RecordNewOnly': value, 'Days': dayOfWeekListToJson(instance.days), - if (dayPatternNullableToJson(instance.dayPattern) case final value?) - 'DayPattern': value, + if (dayPatternNullableToJson(instance.dayPattern) case final value?) 'DayPattern': value, if (instance.imageTags case final value?) 'ImageTags': value, - if (instance.parentThumbItemId case final value?) - 'ParentThumbItemId': value, - if (instance.parentThumbImageTag case final value?) - 'ParentThumbImageTag': value, - if (instance.parentPrimaryImageItemId case final value?) - 'ParentPrimaryImageItemId': value, - if (instance.parentPrimaryImageTag case final value?) - 'ParentPrimaryImageTag': value, - }; - -SeriesTimerInfoDtoQueryResult _$SeriesTimerInfoDtoQueryResultFromJson( - Map json) => + if (instance.parentThumbItemId case final value?) 'ParentThumbItemId': value, + if (instance.parentThumbImageTag case final value?) 'ParentThumbImageTag': value, + if (instance.parentPrimaryImageItemId case final value?) 'ParentPrimaryImageItemId': value, + if (instance.parentPrimaryImageTag case final value?) 'ParentPrimaryImageTag': value, + }; + +SeriesTimerInfoDtoQueryResult _$SeriesTimerInfoDtoQueryResultFromJson(Map json) => SeriesTimerInfoDtoQueryResult( items: (json['Items'] as List?) - ?.map( - (e) => SeriesTimerInfoDto.fromJson(e as Map)) + ?.map((e) => SeriesTimerInfoDto.fromJson(e as Map)) .toList() ?? [], totalRecordCount: (json['TotalRecordCount'] as num?)?.toInt(), startIndex: (json['StartIndex'] as num?)?.toInt(), ); -Map _$SeriesTimerInfoDtoQueryResultToJson( - SeriesTimerInfoDtoQueryResult instance) => - { - if (instance.items?.map((e) => e.toJson()).toList() case final value?) - 'Items': value, - if (instance.totalRecordCount case final value?) - 'TotalRecordCount': value, +Map _$SeriesTimerInfoDtoQueryResultToJson(SeriesTimerInfoDtoQueryResult instance) => { + if (instance.items?.map((e) => e.toJson()).toList() case final value?) 'Items': value, + if (instance.totalRecordCount case final value?) 'TotalRecordCount': value, if (instance.startIndex case final value?) 'StartIndex': value, }; -ServerConfiguration _$ServerConfigurationFromJson(Map json) => - ServerConfiguration( +ServerConfiguration _$ServerConfigurationFromJson(Map json) => ServerConfiguration( logFileRetentionDays: (json['LogFileRetentionDays'] as num?)?.toInt(), isStartupWizardCompleted: json['IsStartupWizardCompleted'] as bool?, cachePath: json['CachePath'] as String?, previousVersion: json['PreviousVersion'] as String?, previousVersionStr: json['PreviousVersionStr'] as String?, enableMetrics: json['EnableMetrics'] as bool?, - enableNormalizedItemByNameIds: - json['EnableNormalizedItemByNameIds'] as bool?, + enableNormalizedItemByNameIds: json['EnableNormalizedItemByNameIds'] as bool?, isPortAuthorized: json['IsPortAuthorized'] as bool?, quickConnectAvailable: json['QuickConnectAvailable'] as bool?, enableCaseSensitiveItemIds: json['EnableCaseSensitiveItemIds'] as bool?, - disableLiveTvChannelUserDataName: - json['DisableLiveTvChannelUserDataName'] as bool?, + disableLiveTvChannelUserDataName: json['DisableLiveTvChannelUserDataName'] as bool?, metadataPath: json['MetadataPath'] as String?, preferredMetadataLanguage: json['PreferredMetadataLanguage'] as String?, metadataCountryCode: json['MetadataCountryCode'] as String?, - sortReplaceCharacters: (json['SortReplaceCharacters'] as List?) - ?.map((e) => e as String) - .toList() ?? - [], - sortRemoveCharacters: (json['SortRemoveCharacters'] as List?) - ?.map((e) => e as String) - .toList() ?? - [], - sortRemoveWords: (json['SortRemoveWords'] as List?) - ?.map((e) => e as String) - .toList() ?? - [], + sortReplaceCharacters: (json['SortReplaceCharacters'] as List?)?.map((e) => e as String).toList() ?? [], + sortRemoveCharacters: (json['SortRemoveCharacters'] as List?)?.map((e) => e as String).toList() ?? [], + sortRemoveWords: (json['SortRemoveWords'] as List?)?.map((e) => e as String).toList() ?? [], minResumePct: (json['MinResumePct'] as num?)?.toInt(), maxResumePct: (json['MaxResumePct'] as num?)?.toInt(), - minResumeDurationSeconds: - (json['MinResumeDurationSeconds'] as num?)?.toInt(), + minResumeDurationSeconds: (json['MinResumeDurationSeconds'] as num?)?.toInt(), minAudiobookResume: (json['MinAudiobookResume'] as num?)?.toInt(), maxAudiobookResume: (json['MaxAudiobookResume'] as num?)?.toInt(), - inactiveSessionThreshold: - (json['InactiveSessionThreshold'] as num?)?.toInt(), + inactiveSessionThreshold: (json['InactiveSessionThreshold'] as num?)?.toInt(), libraryMonitorDelay: (json['LibraryMonitorDelay'] as num?)?.toInt(), libraryUpdateDuration: (json['LibraryUpdateDuration'] as num?)?.toInt(), cacheSize: (json['CacheSize'] as num?)?.toInt(), - imageSavingConvention: - imageSavingConventionNullableFromJson(json['ImageSavingConvention']), + imageSavingConvention: imageSavingConventionNullableFromJson(json['ImageSavingConvention']), metadataOptions: (json['MetadataOptions'] as List?) ?.map((e) => MetadataOptions.fromJson(e as Map)) .toList() ?? [], - skipDeserializationForBasicTypes: - json['SkipDeserializationForBasicTypes'] as bool?, + skipDeserializationForBasicTypes: json['SkipDeserializationForBasicTypes'] as bool?, serverName: json['ServerName'] as String?, uICulture: json['UICulture'] as String?, saveMetadataHidden: json['SaveMetadataHidden'] as bool?, @@ -5750,272 +4157,168 @@ ServerConfiguration _$ServerConfigurationFromJson(Map json) => ?.map((e) => NameValuePair.fromJson(e as Map)) .toList() ?? [], - remoteClientBitrateLimit: - (json['RemoteClientBitrateLimit'] as num?)?.toInt(), + remoteClientBitrateLimit: (json['RemoteClientBitrateLimit'] as num?)?.toInt(), enableFolderView: json['EnableFolderView'] as bool?, - enableGroupingMoviesIntoCollections: - json['EnableGroupingMoviesIntoCollections'] as bool?, - enableGroupingShowsIntoCollections: - json['EnableGroupingShowsIntoCollections'] as bool?, - displaySpecialsWithinSeasons: - json['DisplaySpecialsWithinSeasons'] as bool?, - codecsUsed: (json['CodecsUsed'] as List?) - ?.map((e) => e as String) - .toList() ?? - [], + enableGroupingMoviesIntoCollections: json['EnableGroupingMoviesIntoCollections'] as bool?, + enableGroupingShowsIntoCollections: json['EnableGroupingShowsIntoCollections'] as bool?, + displaySpecialsWithinSeasons: json['DisplaySpecialsWithinSeasons'] as bool?, + codecsUsed: (json['CodecsUsed'] as List?)?.map((e) => e as String).toList() ?? [], pluginRepositories: (json['PluginRepositories'] as List?) ?.map((e) => RepositoryInfo.fromJson(e as Map)) .toList() ?? [], - enableExternalContentInSuggestions: - json['EnableExternalContentInSuggestions'] as bool?, - imageExtractionTimeoutMs: - (json['ImageExtractionTimeoutMs'] as num?)?.toInt(), + enableExternalContentInSuggestions: json['EnableExternalContentInSuggestions'] as bool?, + imageExtractionTimeoutMs: (json['ImageExtractionTimeoutMs'] as num?)?.toInt(), pathSubstitutions: (json['PathSubstitutions'] as List?) ?.map((e) => PathSubstitution.fromJson(e as Map)) .toList() ?? [], enableSlowResponseWarning: json['EnableSlowResponseWarning'] as bool?, - slowResponseThresholdMs: - (json['SlowResponseThresholdMs'] as num?)?.toInt(), - corsHosts: (json['CorsHosts'] as List?) - ?.map((e) => e as String) - .toList() ?? - [], - activityLogRetentionDays: - (json['ActivityLogRetentionDays'] as num?)?.toInt(), - libraryScanFanoutConcurrency: - (json['LibraryScanFanoutConcurrency'] as num?)?.toInt(), - libraryMetadataRefreshConcurrency: - (json['LibraryMetadataRefreshConcurrency'] as num?)?.toInt(), + slowResponseThresholdMs: (json['SlowResponseThresholdMs'] as num?)?.toInt(), + corsHosts: (json['CorsHosts'] as List?)?.map((e) => e as String).toList() ?? [], + activityLogRetentionDays: (json['ActivityLogRetentionDays'] as num?)?.toInt(), + libraryScanFanoutConcurrency: (json['LibraryScanFanoutConcurrency'] as num?)?.toInt(), + libraryMetadataRefreshConcurrency: (json['LibraryMetadataRefreshConcurrency'] as num?)?.toInt(), allowClientLogUpload: json['AllowClientLogUpload'] as bool?, dummyChapterDuration: (json['DummyChapterDuration'] as num?)?.toInt(), - chapterImageResolution: - imageResolutionNullableFromJson(json['ChapterImageResolution']), - parallelImageEncodingLimit: - (json['ParallelImageEncodingLimit'] as num?)?.toInt(), - castReceiverApplications: (json['CastReceiverApplications'] - as List?) - ?.map((e) => - CastReceiverApplication.fromJson(e as Map)) + chapterImageResolution: imageResolutionNullableFromJson(json['ChapterImageResolution']), + parallelImageEncodingLimit: (json['ParallelImageEncodingLimit'] as num?)?.toInt(), + castReceiverApplications: (json['CastReceiverApplications'] as List?) + ?.map((e) => CastReceiverApplication.fromJson(e as Map)) .toList() ?? [], trickplayOptions: json['TrickplayOptions'] == null ? null - : TrickplayOptions.fromJson( - json['TrickplayOptions'] as Map), + : TrickplayOptions.fromJson(json['TrickplayOptions'] as Map), enableLegacyAuthorization: json['EnableLegacyAuthorization'] as bool?, ); -Map _$ServerConfigurationToJson( - ServerConfiguration instance) => - { - if (instance.logFileRetentionDays case final value?) - 'LogFileRetentionDays': value, - if (instance.isStartupWizardCompleted case final value?) - 'IsStartupWizardCompleted': value, +Map _$ServerConfigurationToJson(ServerConfiguration instance) => { + if (instance.logFileRetentionDays case final value?) 'LogFileRetentionDays': value, + if (instance.isStartupWizardCompleted case final value?) 'IsStartupWizardCompleted': value, if (instance.cachePath case final value?) 'CachePath': value, if (instance.previousVersion case final value?) 'PreviousVersion': value, - if (instance.previousVersionStr case final value?) - 'PreviousVersionStr': value, + if (instance.previousVersionStr case final value?) 'PreviousVersionStr': value, if (instance.enableMetrics case final value?) 'EnableMetrics': value, - if (instance.enableNormalizedItemByNameIds case final value?) - 'EnableNormalizedItemByNameIds': value, - if (instance.isPortAuthorized case final value?) - 'IsPortAuthorized': value, - if (instance.quickConnectAvailable case final value?) - 'QuickConnectAvailable': value, - if (instance.enableCaseSensitiveItemIds case final value?) - 'EnableCaseSensitiveItemIds': value, - if (instance.disableLiveTvChannelUserDataName case final value?) - 'DisableLiveTvChannelUserDataName': value, + if (instance.enableNormalizedItemByNameIds case final value?) 'EnableNormalizedItemByNameIds': value, + if (instance.isPortAuthorized case final value?) 'IsPortAuthorized': value, + if (instance.quickConnectAvailable case final value?) 'QuickConnectAvailable': value, + if (instance.enableCaseSensitiveItemIds case final value?) 'EnableCaseSensitiveItemIds': value, + if (instance.disableLiveTvChannelUserDataName case final value?) 'DisableLiveTvChannelUserDataName': value, if (instance.metadataPath case final value?) 'MetadataPath': value, - if (instance.preferredMetadataLanguage case final value?) - 'PreferredMetadataLanguage': value, - if (instance.metadataCountryCode case final value?) - 'MetadataCountryCode': value, - if (instance.sortReplaceCharacters case final value?) - 'SortReplaceCharacters': value, - if (instance.sortRemoveCharacters case final value?) - 'SortRemoveCharacters': value, + if (instance.preferredMetadataLanguage case final value?) 'PreferredMetadataLanguage': value, + if (instance.metadataCountryCode case final value?) 'MetadataCountryCode': value, + if (instance.sortReplaceCharacters case final value?) 'SortReplaceCharacters': value, + if (instance.sortRemoveCharacters case final value?) 'SortRemoveCharacters': value, if (instance.sortRemoveWords case final value?) 'SortRemoveWords': value, if (instance.minResumePct case final value?) 'MinResumePct': value, if (instance.maxResumePct case final value?) 'MaxResumePct': value, - if (instance.minResumeDurationSeconds case final value?) - 'MinResumeDurationSeconds': value, - if (instance.minAudiobookResume case final value?) - 'MinAudiobookResume': value, - if (instance.maxAudiobookResume case final value?) - 'MaxAudiobookResume': value, - if (instance.inactiveSessionThreshold case final value?) - 'InactiveSessionThreshold': value, - if (instance.libraryMonitorDelay case final value?) - 'LibraryMonitorDelay': value, - if (instance.libraryUpdateDuration case final value?) - 'LibraryUpdateDuration': value, + if (instance.minResumeDurationSeconds case final value?) 'MinResumeDurationSeconds': value, + if (instance.minAudiobookResume case final value?) 'MinAudiobookResume': value, + if (instance.maxAudiobookResume case final value?) 'MaxAudiobookResume': value, + if (instance.inactiveSessionThreshold case final value?) 'InactiveSessionThreshold': value, + if (instance.libraryMonitorDelay case final value?) 'LibraryMonitorDelay': value, + if (instance.libraryUpdateDuration case final value?) 'LibraryUpdateDuration': value, if (instance.cacheSize case final value?) 'CacheSize': value, - if (imageSavingConventionNullableToJson(instance.imageSavingConvention) - case final value?) + if (imageSavingConventionNullableToJson(instance.imageSavingConvention) case final value?) 'ImageSavingConvention': value, - if (instance.metadataOptions?.map((e) => e.toJson()).toList() - case final value?) - 'MetadataOptions': value, - if (instance.skipDeserializationForBasicTypes case final value?) - 'SkipDeserializationForBasicTypes': value, + if (instance.metadataOptions?.map((e) => e.toJson()).toList() case final value?) 'MetadataOptions': value, + if (instance.skipDeserializationForBasicTypes case final value?) 'SkipDeserializationForBasicTypes': value, if (instance.serverName case final value?) 'ServerName': value, if (instance.uICulture case final value?) 'UICulture': value, - if (instance.saveMetadataHidden case final value?) - 'SaveMetadataHidden': value, - if (instance.contentTypes?.map((e) => e.toJson()).toList() - case final value?) - 'ContentTypes': value, - if (instance.remoteClientBitrateLimit case final value?) - 'RemoteClientBitrateLimit': value, - if (instance.enableFolderView case final value?) - 'EnableFolderView': value, - if (instance.enableGroupingMoviesIntoCollections case final value?) - 'EnableGroupingMoviesIntoCollections': value, - if (instance.enableGroupingShowsIntoCollections case final value?) - 'EnableGroupingShowsIntoCollections': value, - if (instance.displaySpecialsWithinSeasons case final value?) - 'DisplaySpecialsWithinSeasons': value, + if (instance.saveMetadataHidden case final value?) 'SaveMetadataHidden': value, + if (instance.contentTypes?.map((e) => e.toJson()).toList() case final value?) 'ContentTypes': value, + if (instance.remoteClientBitrateLimit case final value?) 'RemoteClientBitrateLimit': value, + if (instance.enableFolderView case final value?) 'EnableFolderView': value, + if (instance.enableGroupingMoviesIntoCollections case final value?) 'EnableGroupingMoviesIntoCollections': value, + if (instance.enableGroupingShowsIntoCollections case final value?) 'EnableGroupingShowsIntoCollections': value, + if (instance.displaySpecialsWithinSeasons case final value?) 'DisplaySpecialsWithinSeasons': value, if (instance.codecsUsed case final value?) 'CodecsUsed': value, - if (instance.pluginRepositories?.map((e) => e.toJson()).toList() - case final value?) - 'PluginRepositories': value, - if (instance.enableExternalContentInSuggestions case final value?) - 'EnableExternalContentInSuggestions': value, - if (instance.imageExtractionTimeoutMs case final value?) - 'ImageExtractionTimeoutMs': value, - if (instance.pathSubstitutions?.map((e) => e.toJson()).toList() - case final value?) - 'PathSubstitutions': value, - if (instance.enableSlowResponseWarning case final value?) - 'EnableSlowResponseWarning': value, - if (instance.slowResponseThresholdMs case final value?) - 'SlowResponseThresholdMs': value, + if (instance.pluginRepositories?.map((e) => e.toJson()).toList() case final value?) 'PluginRepositories': value, + if (instance.enableExternalContentInSuggestions case final value?) 'EnableExternalContentInSuggestions': value, + if (instance.imageExtractionTimeoutMs case final value?) 'ImageExtractionTimeoutMs': value, + if (instance.pathSubstitutions?.map((e) => e.toJson()).toList() case final value?) 'PathSubstitutions': value, + if (instance.enableSlowResponseWarning case final value?) 'EnableSlowResponseWarning': value, + if (instance.slowResponseThresholdMs case final value?) 'SlowResponseThresholdMs': value, if (instance.corsHosts case final value?) 'CorsHosts': value, - if (instance.activityLogRetentionDays case final value?) - 'ActivityLogRetentionDays': value, - if (instance.libraryScanFanoutConcurrency case final value?) - 'LibraryScanFanoutConcurrency': value, - if (instance.libraryMetadataRefreshConcurrency case final value?) - 'LibraryMetadataRefreshConcurrency': value, - if (instance.allowClientLogUpload case final value?) - 'AllowClientLogUpload': value, - if (instance.dummyChapterDuration case final value?) - 'DummyChapterDuration': value, - if (imageResolutionNullableToJson(instance.chapterImageResolution) - case final value?) + if (instance.activityLogRetentionDays case final value?) 'ActivityLogRetentionDays': value, + if (instance.libraryScanFanoutConcurrency case final value?) 'LibraryScanFanoutConcurrency': value, + if (instance.libraryMetadataRefreshConcurrency case final value?) 'LibraryMetadataRefreshConcurrency': value, + if (instance.allowClientLogUpload case final value?) 'AllowClientLogUpload': value, + if (instance.dummyChapterDuration case final value?) 'DummyChapterDuration': value, + if (imageResolutionNullableToJson(instance.chapterImageResolution) case final value?) 'ChapterImageResolution': value, - if (instance.parallelImageEncodingLimit case final value?) - 'ParallelImageEncodingLimit': value, - if (instance.castReceiverApplications?.map((e) => e.toJson()).toList() - case final value?) + if (instance.parallelImageEncodingLimit case final value?) 'ParallelImageEncodingLimit': value, + if (instance.castReceiverApplications?.map((e) => e.toJson()).toList() case final value?) 'CastReceiverApplications': value, - if (instance.trickplayOptions?.toJson() case final value?) - 'TrickplayOptions': value, - if (instance.enableLegacyAuthorization case final value?) - 'EnableLegacyAuthorization': value, + if (instance.trickplayOptions?.toJson() case final value?) 'TrickplayOptions': value, + if (instance.enableLegacyAuthorization case final value?) 'EnableLegacyAuthorization': value, }; -ServerDiscoveryInfo _$ServerDiscoveryInfoFromJson(Map json) => - ServerDiscoveryInfo( +ServerDiscoveryInfo _$ServerDiscoveryInfoFromJson(Map json) => ServerDiscoveryInfo( address: json['Address'] as String?, id: json['Id'] as String?, name: json['Name'] as String?, endpointAddress: json['EndpointAddress'] as String?, ); -Map _$ServerDiscoveryInfoToJson( - ServerDiscoveryInfo instance) => - { +Map _$ServerDiscoveryInfoToJson(ServerDiscoveryInfo instance) => { if (instance.address case final value?) 'Address': value, if (instance.id case final value?) 'Id': value, if (instance.name case final value?) 'Name': value, if (instance.endpointAddress case final value?) 'EndpointAddress': value, }; -ServerRestartingMessage _$ServerRestartingMessageFromJson( - Map json) => - ServerRestartingMessage( +ServerRestartingMessage _$ServerRestartingMessageFromJson(Map json) => ServerRestartingMessage( messageId: json['MessageId'] as String?, - messageType: - ServerRestartingMessage.sessionMessageTypeMessageTypeNullableFromJson( - json['MessageType']), + messageType: ServerRestartingMessage.sessionMessageTypeMessageTypeNullableFromJson(json['MessageType']), ); -Map _$ServerRestartingMessageToJson( - ServerRestartingMessage instance) => - { +Map _$ServerRestartingMessageToJson(ServerRestartingMessage instance) => { if (instance.messageId case final value?) 'MessageId': value, - if (sessionMessageTypeNullableToJson(instance.messageType) - case final value?) - 'MessageType': value, + if (sessionMessageTypeNullableToJson(instance.messageType) case final value?) 'MessageType': value, }; -ServerShuttingDownMessage _$ServerShuttingDownMessageFromJson( - Map json) => - ServerShuttingDownMessage( +ServerShuttingDownMessage _$ServerShuttingDownMessageFromJson(Map json) => ServerShuttingDownMessage( messageId: json['MessageId'] as String?, - messageType: ServerShuttingDownMessage - .sessionMessageTypeMessageTypeNullableFromJson(json['MessageType']), + messageType: ServerShuttingDownMessage.sessionMessageTypeMessageTypeNullableFromJson(json['MessageType']), ); -Map _$ServerShuttingDownMessageToJson( - ServerShuttingDownMessage instance) => - { +Map _$ServerShuttingDownMessageToJson(ServerShuttingDownMessage instance) => { if (instance.messageId case final value?) 'MessageId': value, - if (sessionMessageTypeNullableToJson(instance.messageType) - case final value?) - 'MessageType': value, + if (sessionMessageTypeNullableToJson(instance.messageType) case final value?) 'MessageType': value, }; -SessionInfoDto _$SessionInfoDtoFromJson(Map json) => - SessionInfoDto( - playState: json['PlayState'] == null - ? null - : PlayerStateInfo.fromJson(json['PlayState'] as Map), +SessionInfoDto _$SessionInfoDtoFromJson(Map json) => SessionInfoDto( + playState: json['PlayState'] == null ? null : PlayerStateInfo.fromJson(json['PlayState'] as Map), additionalUsers: (json['AdditionalUsers'] as List?) ?.map((e) => SessionUserInfo.fromJson(e as Map)) .toList() ?? [], capabilities: json['Capabilities'] == null ? null - : ClientCapabilitiesDto.fromJson( - json['Capabilities'] as Map), + : ClientCapabilitiesDto.fromJson(json['Capabilities'] as Map), remoteEndPoint: json['RemoteEndPoint'] as String?, - playableMediaTypes: - mediaTypeListFromJson(json['PlayableMediaTypes'] as List?), + playableMediaTypes: mediaTypeListFromJson(json['PlayableMediaTypes'] as List?), id: json['Id'] as String?, userId: json['UserId'] as String?, userName: json['UserName'] as String?, $Client: json['Client'] as String?, - lastActivityDate: json['LastActivityDate'] == null - ? null - : DateTime.parse(json['LastActivityDate'] as String), - lastPlaybackCheckIn: json['LastPlaybackCheckIn'] == null - ? null - : DateTime.parse(json['LastPlaybackCheckIn'] as String), - lastPausedDate: json['LastPausedDate'] == null - ? null - : DateTime.parse(json['LastPausedDate'] as String), + lastActivityDate: json['LastActivityDate'] == null ? null : DateTime.parse(json['LastActivityDate'] as String), + lastPlaybackCheckIn: + json['LastPlaybackCheckIn'] == null ? null : DateTime.parse(json['LastPlaybackCheckIn'] as String), + lastPausedDate: json['LastPausedDate'] == null ? null : DateTime.parse(json['LastPausedDate'] as String), deviceName: json['DeviceName'] as String?, deviceType: json['DeviceType'] as String?, - nowPlayingItem: json['NowPlayingItem'] == null - ? null - : BaseItemDto.fromJson( - json['NowPlayingItem'] as Map), - nowViewingItem: json['NowViewingItem'] == null - ? null - : BaseItemDto.fromJson( - json['NowViewingItem'] as Map), + nowPlayingItem: + json['NowPlayingItem'] == null ? null : BaseItemDto.fromJson(json['NowPlayingItem'] as Map), + nowViewingItem: + json['NowViewingItem'] == null ? null : BaseItemDto.fromJson(json['NowViewingItem'] as Map), deviceId: json['DeviceId'] as String?, applicationVersion: json['ApplicationVersion'] as String?, transcodingInfo: json['TranscodingInfo'] == null ? null - : TranscodingInfo.fromJson( - json['TranscodingInfo'] as Map), + : TranscodingInfo.fromJson(json['TranscodingInfo'] as Map), isActive: json['IsActive'] as bool?, supportsMediaControl: json['SupportsMediaControl'] as bool?, supportsRemoteControl: json['SupportsRemoteControl'] as bool?, @@ -6023,190 +4326,125 @@ SessionInfoDto _$SessionInfoDtoFromJson(Map json) => ?.map((e) => QueueItem.fromJson(e as Map)) .toList() ?? [], - nowPlayingQueueFullItems: - (json['NowPlayingQueueFullItems'] as List?) - ?.map((e) => BaseItemDto.fromJson(e as Map)) - .toList() ?? - [], + nowPlayingQueueFullItems: (json['NowPlayingQueueFullItems'] as List?) + ?.map((e) => BaseItemDto.fromJson(e as Map)) + .toList() ?? + [], hasCustomDeviceName: json['HasCustomDeviceName'] as bool?, playlistItemId: json['PlaylistItemId'] as String?, serverId: json['ServerId'] as String?, userPrimaryImageTag: json['UserPrimaryImageTag'] as String?, - supportedCommands: - generalCommandTypeListFromJson(json['SupportedCommands'] as List?), + supportedCommands: generalCommandTypeListFromJson(json['SupportedCommands'] as List?), ); -Map _$SessionInfoDtoToJson(SessionInfoDto instance) => - { +Map _$SessionInfoDtoToJson(SessionInfoDto instance) => { if (instance.playState?.toJson() case final value?) 'PlayState': value, - if (instance.additionalUsers?.map((e) => e.toJson()).toList() - case final value?) - 'AdditionalUsers': value, - if (instance.capabilities?.toJson() case final value?) - 'Capabilities': value, + if (instance.additionalUsers?.map((e) => e.toJson()).toList() case final value?) 'AdditionalUsers': value, + if (instance.capabilities?.toJson() case final value?) 'Capabilities': value, if (instance.remoteEndPoint case final value?) 'RemoteEndPoint': value, 'PlayableMediaTypes': mediaTypeListToJson(instance.playableMediaTypes), if (instance.id case final value?) 'Id': value, if (instance.userId case final value?) 'UserId': value, if (instance.userName case final value?) 'UserName': value, if (instance.$Client case final value?) 'Client': value, - if (instance.lastActivityDate?.toIso8601String() case final value?) - 'LastActivityDate': value, - if (instance.lastPlaybackCheckIn?.toIso8601String() case final value?) - 'LastPlaybackCheckIn': value, - if (instance.lastPausedDate?.toIso8601String() case final value?) - 'LastPausedDate': value, + if (instance.lastActivityDate?.toIso8601String() case final value?) 'LastActivityDate': value, + if (instance.lastPlaybackCheckIn?.toIso8601String() case final value?) 'LastPlaybackCheckIn': value, + if (instance.lastPausedDate?.toIso8601String() case final value?) 'LastPausedDate': value, if (instance.deviceName case final value?) 'DeviceName': value, if (instance.deviceType case final value?) 'DeviceType': value, - if (instance.nowPlayingItem?.toJson() case final value?) - 'NowPlayingItem': value, - if (instance.nowViewingItem?.toJson() case final value?) - 'NowViewingItem': value, + if (instance.nowPlayingItem?.toJson() case final value?) 'NowPlayingItem': value, + if (instance.nowViewingItem?.toJson() case final value?) 'NowViewingItem': value, if (instance.deviceId case final value?) 'DeviceId': value, - if (instance.applicationVersion case final value?) - 'ApplicationVersion': value, - if (instance.transcodingInfo?.toJson() case final value?) - 'TranscodingInfo': value, + if (instance.applicationVersion case final value?) 'ApplicationVersion': value, + if (instance.transcodingInfo?.toJson() case final value?) 'TranscodingInfo': value, if (instance.isActive case final value?) 'IsActive': value, - if (instance.supportsMediaControl case final value?) - 'SupportsMediaControl': value, - if (instance.supportsRemoteControl case final value?) - 'SupportsRemoteControl': value, - if (instance.nowPlayingQueue?.map((e) => e.toJson()).toList() - case final value?) - 'NowPlayingQueue': value, - if (instance.nowPlayingQueueFullItems?.map((e) => e.toJson()).toList() - case final value?) + if (instance.supportsMediaControl case final value?) 'SupportsMediaControl': value, + if (instance.supportsRemoteControl case final value?) 'SupportsRemoteControl': value, + if (instance.nowPlayingQueue?.map((e) => e.toJson()).toList() case final value?) 'NowPlayingQueue': value, + if (instance.nowPlayingQueueFullItems?.map((e) => e.toJson()).toList() case final value?) 'NowPlayingQueueFullItems': value, - if (instance.hasCustomDeviceName case final value?) - 'HasCustomDeviceName': value, + if (instance.hasCustomDeviceName case final value?) 'HasCustomDeviceName': value, if (instance.playlistItemId case final value?) 'PlaylistItemId': value, if (instance.serverId case final value?) 'ServerId': value, - if (instance.userPrimaryImageTag case final value?) - 'UserPrimaryImageTag': value, - 'SupportedCommands': - generalCommandTypeListToJson(instance.supportedCommands), + if (instance.userPrimaryImageTag case final value?) 'UserPrimaryImageTag': value, + 'SupportedCommands': generalCommandTypeListToJson(instance.supportedCommands), }; -SessionsMessage _$SessionsMessageFromJson(Map json) => - SessionsMessage( - data: (json['Data'] as List?) - ?.map((e) => SessionInfoDto.fromJson(e as Map)) - .toList() ?? +SessionsMessage _$SessionsMessageFromJson(Map json) => SessionsMessage( + data: (json['Data'] as List?)?.map((e) => SessionInfoDto.fromJson(e as Map)).toList() ?? [], messageId: json['MessageId'] as String?, - messageType: - SessionsMessage.sessionMessageTypeMessageTypeNullableFromJson( - json['MessageType']), + messageType: SessionsMessage.sessionMessageTypeMessageTypeNullableFromJson(json['MessageType']), ); -Map _$SessionsMessageToJson(SessionsMessage instance) => - { - if (instance.data?.map((e) => e.toJson()).toList() case final value?) - 'Data': value, +Map _$SessionsMessageToJson(SessionsMessage instance) => { + if (instance.data?.map((e) => e.toJson()).toList() case final value?) 'Data': value, if (instance.messageId case final value?) 'MessageId': value, - if (sessionMessageTypeNullableToJson(instance.messageType) - case final value?) - 'MessageType': value, + if (sessionMessageTypeNullableToJson(instance.messageType) case final value?) 'MessageType': value, }; -SessionsStartMessage _$SessionsStartMessageFromJson( - Map json) => - SessionsStartMessage( +SessionsStartMessage _$SessionsStartMessageFromJson(Map json) => SessionsStartMessage( data: json['Data'] as String?, - messageType: - SessionsStartMessage.sessionMessageTypeMessageTypeNullableFromJson( - json['MessageType']), + messageType: SessionsStartMessage.sessionMessageTypeMessageTypeNullableFromJson(json['MessageType']), ); -Map _$SessionsStartMessageToJson( - SessionsStartMessage instance) => - { +Map _$SessionsStartMessageToJson(SessionsStartMessage instance) => { if (instance.data case final value?) 'Data': value, - if (sessionMessageTypeNullableToJson(instance.messageType) - case final value?) - 'MessageType': value, + if (sessionMessageTypeNullableToJson(instance.messageType) case final value?) 'MessageType': value, }; -SessionsStopMessage _$SessionsStopMessageFromJson(Map json) => - SessionsStopMessage( - messageType: - SessionsStopMessage.sessionMessageTypeMessageTypeNullableFromJson( - json['MessageType']), +SessionsStopMessage _$SessionsStopMessageFromJson(Map json) => SessionsStopMessage( + messageType: SessionsStopMessage.sessionMessageTypeMessageTypeNullableFromJson(json['MessageType']), ); -Map _$SessionsStopMessageToJson( - SessionsStopMessage instance) => - { - if (sessionMessageTypeNullableToJson(instance.messageType) - case final value?) - 'MessageType': value, +Map _$SessionsStopMessageToJson(SessionsStopMessage instance) => { + if (sessionMessageTypeNullableToJson(instance.messageType) case final value?) 'MessageType': value, }; -SessionUserInfo _$SessionUserInfoFromJson(Map json) => - SessionUserInfo( +SessionUserInfo _$SessionUserInfoFromJson(Map json) => SessionUserInfo( userId: json['UserId'] as String?, userName: json['UserName'] as String?, ); -Map _$SessionUserInfoToJson(SessionUserInfo instance) => - { +Map _$SessionUserInfoToJson(SessionUserInfo instance) => { if (instance.userId case final value?) 'UserId': value, if (instance.userName case final value?) 'UserName': value, }; -SetChannelMappingDto _$SetChannelMappingDtoFromJson( - Map json) => - SetChannelMappingDto( +SetChannelMappingDto _$SetChannelMappingDtoFromJson(Map json) => SetChannelMappingDto( providerId: json['ProviderId'] as String, tunerChannelId: json['TunerChannelId'] as String, providerChannelId: json['ProviderChannelId'] as String, ); -Map _$SetChannelMappingDtoToJson( - SetChannelMappingDto instance) => - { +Map _$SetChannelMappingDtoToJson(SetChannelMappingDto instance) => { 'ProviderId': instance.providerId, 'TunerChannelId': instance.tunerChannelId, 'ProviderChannelId': instance.providerChannelId, }; -SetPlaylistItemRequestDto _$SetPlaylistItemRequestDtoFromJson( - Map json) => - SetPlaylistItemRequestDto( +SetPlaylistItemRequestDto _$SetPlaylistItemRequestDtoFromJson(Map json) => SetPlaylistItemRequestDto( playlistItemId: json['PlaylistItemId'] as String?, ); -Map _$SetPlaylistItemRequestDtoToJson( - SetPlaylistItemRequestDto instance) => - { +Map _$SetPlaylistItemRequestDtoToJson(SetPlaylistItemRequestDto instance) => { if (instance.playlistItemId case final value?) 'PlaylistItemId': value, }; -SetRepeatModeRequestDto _$SetRepeatModeRequestDtoFromJson( - Map json) => - SetRepeatModeRequestDto( +SetRepeatModeRequestDto _$SetRepeatModeRequestDtoFromJson(Map json) => SetRepeatModeRequestDto( mode: groupRepeatModeNullableFromJson(json['Mode']), ); -Map _$SetRepeatModeRequestDtoToJson( - SetRepeatModeRequestDto instance) => - { - if (groupRepeatModeNullableToJson(instance.mode) case final value?) - 'Mode': value, +Map _$SetRepeatModeRequestDtoToJson(SetRepeatModeRequestDto instance) => { + if (groupRepeatModeNullableToJson(instance.mode) case final value?) 'Mode': value, }; -SetShuffleModeRequestDto _$SetShuffleModeRequestDtoFromJson( - Map json) => - SetShuffleModeRequestDto( +SetShuffleModeRequestDto _$SetShuffleModeRequestDtoFromJson(Map json) => SetShuffleModeRequestDto( mode: groupShuffleModeNullableFromJson(json['Mode']), ); -Map _$SetShuffleModeRequestDtoToJson( - SetShuffleModeRequestDto instance) => - { - if (groupShuffleModeNullableToJson(instance.mode) case final value?) - 'Mode': value, +Map _$SetShuffleModeRequestDtoToJson(SetShuffleModeRequestDto instance) => { + if (groupShuffleModeNullableToJson(instance.mode) case final value?) 'Mode': value, }; SongInfo _$SongInfoFromJson(Map json) => SongInfo( @@ -6219,111 +4457,78 @@ SongInfo _$SongInfoFromJson(Map json) => SongInfo( year: (json['Year'] as num?)?.toInt(), indexNumber: (json['IndexNumber'] as num?)?.toInt(), parentIndexNumber: (json['ParentIndexNumber'] as num?)?.toInt(), - premiereDate: json['PremiereDate'] == null - ? null - : DateTime.parse(json['PremiereDate'] as String), + premiereDate: json['PremiereDate'] == null ? null : DateTime.parse(json['PremiereDate'] as String), isAutomated: json['IsAutomated'] as bool?, - albumArtists: (json['AlbumArtists'] as List?) - ?.map((e) => e as String) - .toList() ?? - [], + albumArtists: (json['AlbumArtists'] as List?)?.map((e) => e as String).toList() ?? [], album: json['Album'] as String?, - artists: (json['Artists'] as List?) - ?.map((e) => e as String) - .toList() ?? - [], + artists: (json['Artists'] as List?)?.map((e) => e as String).toList() ?? [], ); Map _$SongInfoToJson(SongInfo instance) => { if (instance.name case final value?) 'Name': value, if (instance.originalTitle case final value?) 'OriginalTitle': value, if (instance.path case final value?) 'Path': value, - if (instance.metadataLanguage case final value?) - 'MetadataLanguage': value, - if (instance.metadataCountryCode case final value?) - 'MetadataCountryCode': value, + if (instance.metadataLanguage case final value?) 'MetadataLanguage': value, + if (instance.metadataCountryCode case final value?) 'MetadataCountryCode': value, if (instance.providerIds case final value?) 'ProviderIds': value, if (instance.year case final value?) 'Year': value, if (instance.indexNumber case final value?) 'IndexNumber': value, - if (instance.parentIndexNumber case final value?) - 'ParentIndexNumber': value, - if (instance.premiereDate?.toIso8601String() case final value?) - 'PremiereDate': value, + if (instance.parentIndexNumber case final value?) 'ParentIndexNumber': value, + if (instance.premiereDate?.toIso8601String() case final value?) 'PremiereDate': value, if (instance.isAutomated case final value?) 'IsAutomated': value, if (instance.albumArtists case final value?) 'AlbumArtists': value, if (instance.album case final value?) 'Album': value, if (instance.artists case final value?) 'Artists': value, }; -SpecialViewOptionDto _$SpecialViewOptionDtoFromJson( - Map json) => - SpecialViewOptionDto( +SpecialViewOptionDto _$SpecialViewOptionDtoFromJson(Map json) => SpecialViewOptionDto( name: json['Name'] as String?, id: json['Id'] as String?, ); -Map _$SpecialViewOptionDtoToJson( - SpecialViewOptionDto instance) => - { +Map _$SpecialViewOptionDtoToJson(SpecialViewOptionDto instance) => { if (instance.name case final value?) 'Name': value, if (instance.id case final value?) 'Id': value, }; -StartupConfigurationDto _$StartupConfigurationDtoFromJson( - Map json) => - StartupConfigurationDto( +StartupConfigurationDto _$StartupConfigurationDtoFromJson(Map json) => StartupConfigurationDto( serverName: json['ServerName'] as String?, uICulture: json['UICulture'] as String?, metadataCountryCode: json['MetadataCountryCode'] as String?, preferredMetadataLanguage: json['PreferredMetadataLanguage'] as String?, ); -Map _$StartupConfigurationDtoToJson( - StartupConfigurationDto instance) => - { +Map _$StartupConfigurationDtoToJson(StartupConfigurationDto instance) => { if (instance.serverName case final value?) 'ServerName': value, if (instance.uICulture case final value?) 'UICulture': value, - if (instance.metadataCountryCode case final value?) - 'MetadataCountryCode': value, - if (instance.preferredMetadataLanguage case final value?) - 'PreferredMetadataLanguage': value, + if (instance.metadataCountryCode case final value?) 'MetadataCountryCode': value, + if (instance.preferredMetadataLanguage case final value?) 'PreferredMetadataLanguage': value, }; -StartupRemoteAccessDto _$StartupRemoteAccessDtoFromJson( - Map json) => - StartupRemoteAccessDto( +StartupRemoteAccessDto _$StartupRemoteAccessDtoFromJson(Map json) => StartupRemoteAccessDto( enableRemoteAccess: json['EnableRemoteAccess'] as bool, enableAutomaticPortMapping: json['EnableAutomaticPortMapping'] as bool, ); -Map _$StartupRemoteAccessDtoToJson( - StartupRemoteAccessDto instance) => - { +Map _$StartupRemoteAccessDtoToJson(StartupRemoteAccessDto instance) => { 'EnableRemoteAccess': instance.enableRemoteAccess, 'EnableAutomaticPortMapping': instance.enableAutomaticPortMapping, }; -StartupUserDto _$StartupUserDtoFromJson(Map json) => - StartupUserDto( +StartupUserDto _$StartupUserDtoFromJson(Map json) => StartupUserDto( name: json['Name'] as String?, password: json['Password'] as String?, ); -Map _$StartupUserDtoToJson(StartupUserDto instance) => - { +Map _$StartupUserDtoToJson(StartupUserDto instance) => { if (instance.name case final value?) 'Name': value, if (instance.password case final value?) 'Password': value, }; -SubtitleOptions _$SubtitleOptionsFromJson(Map json) => - SubtitleOptions( - skipIfEmbeddedSubtitlesPresent: - json['SkipIfEmbeddedSubtitlesPresent'] as bool?, +SubtitleOptions _$SubtitleOptionsFromJson(Map json) => SubtitleOptions( + skipIfEmbeddedSubtitlesPresent: json['SkipIfEmbeddedSubtitlesPresent'] as bool?, skipIfAudioTrackMatches: json['SkipIfAudioTrackMatches'] as bool?, - downloadLanguages: (json['DownloadLanguages'] as List?) - ?.map((e) => e as String) - .toList() ?? - [], + downloadLanguages: (json['DownloadLanguages'] as List?)?.map((e) => e as String).toList() ?? [], downloadMovieSubtitles: json['DownloadMovieSubtitles'] as bool?, downloadEpisodeSubtitles: json['DownloadEpisodeSubtitles'] as bool?, openSubtitlesUsername: json['OpenSubtitlesUsername'] as String?, @@ -6332,30 +4537,19 @@ SubtitleOptions _$SubtitleOptionsFromJson(Map json) => requirePerfectMatch: json['RequirePerfectMatch'] as bool?, ); -Map _$SubtitleOptionsToJson(SubtitleOptions instance) => - { - if (instance.skipIfEmbeddedSubtitlesPresent case final value?) - 'SkipIfEmbeddedSubtitlesPresent': value, - if (instance.skipIfAudioTrackMatches case final value?) - 'SkipIfAudioTrackMatches': value, - if (instance.downloadLanguages case final value?) - 'DownloadLanguages': value, - if (instance.downloadMovieSubtitles case final value?) - 'DownloadMovieSubtitles': value, - if (instance.downloadEpisodeSubtitles case final value?) - 'DownloadEpisodeSubtitles': value, - if (instance.openSubtitlesUsername case final value?) - 'OpenSubtitlesUsername': value, - if (instance.openSubtitlesPasswordHash case final value?) - 'OpenSubtitlesPasswordHash': value, - if (instance.isOpenSubtitleVipAccount case final value?) - 'IsOpenSubtitleVipAccount': value, - if (instance.requirePerfectMatch case final value?) - 'RequirePerfectMatch': value, - }; - -SubtitleProfile _$SubtitleProfileFromJson(Map json) => - SubtitleProfile( +Map _$SubtitleOptionsToJson(SubtitleOptions instance) => { + if (instance.skipIfEmbeddedSubtitlesPresent case final value?) 'SkipIfEmbeddedSubtitlesPresent': value, + if (instance.skipIfAudioTrackMatches case final value?) 'SkipIfAudioTrackMatches': value, + if (instance.downloadLanguages case final value?) 'DownloadLanguages': value, + if (instance.downloadMovieSubtitles case final value?) 'DownloadMovieSubtitles': value, + if (instance.downloadEpisodeSubtitles case final value?) 'DownloadEpisodeSubtitles': value, + if (instance.openSubtitlesUsername case final value?) 'OpenSubtitlesUsername': value, + if (instance.openSubtitlesPasswordHash case final value?) 'OpenSubtitlesPasswordHash': value, + if (instance.isOpenSubtitleVipAccount case final value?) 'IsOpenSubtitleVipAccount': value, + if (instance.requirePerfectMatch case final value?) 'RequirePerfectMatch': value, + }; + +SubtitleProfile _$SubtitleProfileFromJson(Map json) => SubtitleProfile( format: json['Format'] as String?, method: subtitleDeliveryMethodNullableFromJson(json['Method']), didlMode: json['DidlMode'] as String?, @@ -6363,238 +4557,159 @@ SubtitleProfile _$SubtitleProfileFromJson(Map json) => container: json['Container'] as String?, ); -Map _$SubtitleProfileToJson(SubtitleProfile instance) => - { +Map _$SubtitleProfileToJson(SubtitleProfile instance) => { if (instance.format case final value?) 'Format': value, - if (subtitleDeliveryMethodNullableToJson(instance.method) - case final value?) - 'Method': value, + if (subtitleDeliveryMethodNullableToJson(instance.method) case final value?) 'Method': value, if (instance.didlMode case final value?) 'DidlMode': value, if (instance.language case final value?) 'Language': value, if (instance.container case final value?) 'Container': value, }; -SyncPlayCommandMessage _$SyncPlayCommandMessageFromJson( - Map json) => - SyncPlayCommandMessage( - data: json['Data'] == null - ? null - : SendCommand.fromJson(json['Data'] as Map), +SyncPlayCommandMessage _$SyncPlayCommandMessageFromJson(Map json) => SyncPlayCommandMessage( + data: json['Data'] == null ? null : SendCommand.fromJson(json['Data'] as Map), messageId: json['MessageId'] as String?, - messageType: - SyncPlayCommandMessage.sessionMessageTypeMessageTypeNullableFromJson( - json['MessageType']), + messageType: SyncPlayCommandMessage.sessionMessageTypeMessageTypeNullableFromJson(json['MessageType']), ); -Map _$SyncPlayCommandMessageToJson( - SyncPlayCommandMessage instance) => - { +Map _$SyncPlayCommandMessageToJson(SyncPlayCommandMessage instance) => { if (instance.data?.toJson() case final value?) 'Data': value, if (instance.messageId case final value?) 'MessageId': value, - if (sessionMessageTypeNullableToJson(instance.messageType) - case final value?) - 'MessageType': value, + if (sessionMessageTypeNullableToJson(instance.messageType) case final value?) 'MessageType': value, }; -SyncPlayGroupDoesNotExistUpdate _$SyncPlayGroupDoesNotExistUpdateFromJson( - Map json) => +SyncPlayGroupDoesNotExistUpdate _$SyncPlayGroupDoesNotExistUpdateFromJson(Map json) => SyncPlayGroupDoesNotExistUpdate( groupId: json['GroupId'] as String?, data: json['Data'] as String?, - type: SyncPlayGroupDoesNotExistUpdate.groupUpdateTypeTypeNullableFromJson( - json['Type']), + type: SyncPlayGroupDoesNotExistUpdate.groupUpdateTypeTypeNullableFromJson(json['Type']), ); -Map _$SyncPlayGroupDoesNotExistUpdateToJson( - SyncPlayGroupDoesNotExistUpdate instance) => +Map _$SyncPlayGroupDoesNotExistUpdateToJson(SyncPlayGroupDoesNotExistUpdate instance) => { if (instance.groupId case final value?) 'GroupId': value, if (instance.data case final value?) 'Data': value, - if (groupUpdateTypeNullableToJson(instance.type) case final value?) - 'Type': value, + if (groupUpdateTypeNullableToJson(instance.type) case final value?) 'Type': value, }; -SyncPlayGroupJoinedUpdate _$SyncPlayGroupJoinedUpdateFromJson( - Map json) => - SyncPlayGroupJoinedUpdate( +SyncPlayGroupJoinedUpdate _$SyncPlayGroupJoinedUpdateFromJson(Map json) => SyncPlayGroupJoinedUpdate( groupId: json['GroupId'] as String?, - data: json['Data'] == null - ? null - : GroupInfoDto.fromJson(json['Data'] as Map), - type: SyncPlayGroupJoinedUpdate.groupUpdateTypeTypeNullableFromJson( - json['Type']), + data: json['Data'] == null ? null : GroupInfoDto.fromJson(json['Data'] as Map), + type: SyncPlayGroupJoinedUpdate.groupUpdateTypeTypeNullableFromJson(json['Type']), ); -Map _$SyncPlayGroupJoinedUpdateToJson( - SyncPlayGroupJoinedUpdate instance) => - { +Map _$SyncPlayGroupJoinedUpdateToJson(SyncPlayGroupJoinedUpdate instance) => { if (instance.groupId case final value?) 'GroupId': value, if (instance.data?.toJson() case final value?) 'Data': value, - if (groupUpdateTypeNullableToJson(instance.type) case final value?) - 'Type': value, + if (groupUpdateTypeNullableToJson(instance.type) case final value?) 'Type': value, }; -SyncPlayGroupLeftUpdate _$SyncPlayGroupLeftUpdateFromJson( - Map json) => - SyncPlayGroupLeftUpdate( +SyncPlayGroupLeftUpdate _$SyncPlayGroupLeftUpdateFromJson(Map json) => SyncPlayGroupLeftUpdate( groupId: json['GroupId'] as String?, data: json['Data'] as String?, - type: SyncPlayGroupLeftUpdate.groupUpdateTypeTypeNullableFromJson( - json['Type']), + type: SyncPlayGroupLeftUpdate.groupUpdateTypeTypeNullableFromJson(json['Type']), ); -Map _$SyncPlayGroupLeftUpdateToJson( - SyncPlayGroupLeftUpdate instance) => - { +Map _$SyncPlayGroupLeftUpdateToJson(SyncPlayGroupLeftUpdate instance) => { if (instance.groupId case final value?) 'GroupId': value, if (instance.data case final value?) 'Data': value, - if (groupUpdateTypeNullableToJson(instance.type) case final value?) - 'Type': value, + if (groupUpdateTypeNullableToJson(instance.type) case final value?) 'Type': value, }; -SyncPlayGroupUpdateMessage _$SyncPlayGroupUpdateMessageFromJson( - Map json) => +SyncPlayGroupUpdateMessage _$SyncPlayGroupUpdateMessageFromJson(Map json) => SyncPlayGroupUpdateMessage( - data: json['Data'] == null - ? null - : GroupUpdate.fromJson(json['Data'] as Map), + data: json['Data'] == null ? null : GroupUpdate.fromJson(json['Data'] as Map), messageId: json['MessageId'] as String?, - messageType: SyncPlayGroupUpdateMessage - .sessionMessageTypeMessageTypeNullableFromJson(json['MessageType']), + messageType: SyncPlayGroupUpdateMessage.sessionMessageTypeMessageTypeNullableFromJson(json['MessageType']), ); -Map _$SyncPlayGroupUpdateMessageToJson( - SyncPlayGroupUpdateMessage instance) => - { +Map _$SyncPlayGroupUpdateMessageToJson(SyncPlayGroupUpdateMessage instance) => { if (instance.data?.toJson() case final value?) 'Data': value, if (instance.messageId case final value?) 'MessageId': value, - if (sessionMessageTypeNullableToJson(instance.messageType) - case final value?) - 'MessageType': value, + if (sessionMessageTypeNullableToJson(instance.messageType) case final value?) 'MessageType': value, }; -SyncPlayLibraryAccessDeniedUpdate _$SyncPlayLibraryAccessDeniedUpdateFromJson( - Map json) => +SyncPlayLibraryAccessDeniedUpdate _$SyncPlayLibraryAccessDeniedUpdateFromJson(Map json) => SyncPlayLibraryAccessDeniedUpdate( groupId: json['GroupId'] as String?, data: json['Data'] as String?, - type: - SyncPlayLibraryAccessDeniedUpdate.groupUpdateTypeTypeNullableFromJson( - json['Type']), + type: SyncPlayLibraryAccessDeniedUpdate.groupUpdateTypeTypeNullableFromJson(json['Type']), ); -Map _$SyncPlayLibraryAccessDeniedUpdateToJson( - SyncPlayLibraryAccessDeniedUpdate instance) => +Map _$SyncPlayLibraryAccessDeniedUpdateToJson(SyncPlayLibraryAccessDeniedUpdate instance) => { if (instance.groupId case final value?) 'GroupId': value, if (instance.data case final value?) 'Data': value, - if (groupUpdateTypeNullableToJson(instance.type) case final value?) - 'Type': value, + if (groupUpdateTypeNullableToJson(instance.type) case final value?) 'Type': value, }; -SyncPlayNotInGroupUpdate _$SyncPlayNotInGroupUpdateFromJson( - Map json) => - SyncPlayNotInGroupUpdate( +SyncPlayNotInGroupUpdate _$SyncPlayNotInGroupUpdateFromJson(Map json) => SyncPlayNotInGroupUpdate( groupId: json['GroupId'] as String?, data: json['Data'] as String?, - type: SyncPlayNotInGroupUpdate.groupUpdateTypeTypeNullableFromJson( - json['Type']), + type: SyncPlayNotInGroupUpdate.groupUpdateTypeTypeNullableFromJson(json['Type']), ); -Map _$SyncPlayNotInGroupUpdateToJson( - SyncPlayNotInGroupUpdate instance) => - { +Map _$SyncPlayNotInGroupUpdateToJson(SyncPlayNotInGroupUpdate instance) => { if (instance.groupId case final value?) 'GroupId': value, if (instance.data case final value?) 'Data': value, - if (groupUpdateTypeNullableToJson(instance.type) case final value?) - 'Type': value, + if (groupUpdateTypeNullableToJson(instance.type) case final value?) 'Type': value, }; -SyncPlayPlayQueueUpdate _$SyncPlayPlayQueueUpdateFromJson( - Map json) => - SyncPlayPlayQueueUpdate( +SyncPlayPlayQueueUpdate _$SyncPlayPlayQueueUpdateFromJson(Map json) => SyncPlayPlayQueueUpdate( groupId: json['GroupId'] as String?, - data: json['Data'] == null - ? null - : PlayQueueUpdate.fromJson(json['Data'] as Map), - type: SyncPlayPlayQueueUpdate.groupUpdateTypeTypeNullableFromJson( - json['Type']), + data: json['Data'] == null ? null : PlayQueueUpdate.fromJson(json['Data'] as Map), + type: SyncPlayPlayQueueUpdate.groupUpdateTypeTypeNullableFromJson(json['Type']), ); -Map _$SyncPlayPlayQueueUpdateToJson( - SyncPlayPlayQueueUpdate instance) => - { +Map _$SyncPlayPlayQueueUpdateToJson(SyncPlayPlayQueueUpdate instance) => { if (instance.groupId case final value?) 'GroupId': value, if (instance.data?.toJson() case final value?) 'Data': value, - if (groupUpdateTypeNullableToJson(instance.type) case final value?) - 'Type': value, + if (groupUpdateTypeNullableToJson(instance.type) case final value?) 'Type': value, }; -SyncPlayQueueItem _$SyncPlayQueueItemFromJson(Map json) => - SyncPlayQueueItem( +SyncPlayQueueItem _$SyncPlayQueueItemFromJson(Map json) => SyncPlayQueueItem( itemId: json['ItemId'] as String?, playlistItemId: json['PlaylistItemId'] as String?, ); -Map _$SyncPlayQueueItemToJson(SyncPlayQueueItem instance) => - { +Map _$SyncPlayQueueItemToJson(SyncPlayQueueItem instance) => { if (instance.itemId case final value?) 'ItemId': value, if (instance.playlistItemId case final value?) 'PlaylistItemId': value, }; -SyncPlayStateUpdate _$SyncPlayStateUpdateFromJson(Map json) => - SyncPlayStateUpdate( +SyncPlayStateUpdate _$SyncPlayStateUpdateFromJson(Map json) => SyncPlayStateUpdate( groupId: json['GroupId'] as String?, - data: json['Data'] == null - ? null - : GroupStateUpdate.fromJson(json['Data'] as Map), - type: - SyncPlayStateUpdate.groupUpdateTypeTypeNullableFromJson(json['Type']), + data: json['Data'] == null ? null : GroupStateUpdate.fromJson(json['Data'] as Map), + type: SyncPlayStateUpdate.groupUpdateTypeTypeNullableFromJson(json['Type']), ); -Map _$SyncPlayStateUpdateToJson( - SyncPlayStateUpdate instance) => - { +Map _$SyncPlayStateUpdateToJson(SyncPlayStateUpdate instance) => { if (instance.groupId case final value?) 'GroupId': value, if (instance.data?.toJson() case final value?) 'Data': value, - if (groupUpdateTypeNullableToJson(instance.type) case final value?) - 'Type': value, + if (groupUpdateTypeNullableToJson(instance.type) case final value?) 'Type': value, }; -SyncPlayUserJoinedUpdate _$SyncPlayUserJoinedUpdateFromJson( - Map json) => - SyncPlayUserJoinedUpdate( +SyncPlayUserJoinedUpdate _$SyncPlayUserJoinedUpdateFromJson(Map json) => SyncPlayUserJoinedUpdate( groupId: json['GroupId'] as String?, data: json['Data'] as String?, - type: SyncPlayUserJoinedUpdate.groupUpdateTypeTypeNullableFromJson( - json['Type']), + type: SyncPlayUserJoinedUpdate.groupUpdateTypeTypeNullableFromJson(json['Type']), ); -Map _$SyncPlayUserJoinedUpdateToJson( - SyncPlayUserJoinedUpdate instance) => - { +Map _$SyncPlayUserJoinedUpdateToJson(SyncPlayUserJoinedUpdate instance) => { if (instance.groupId case final value?) 'GroupId': value, if (instance.data case final value?) 'Data': value, - if (groupUpdateTypeNullableToJson(instance.type) case final value?) - 'Type': value, + if (groupUpdateTypeNullableToJson(instance.type) case final value?) 'Type': value, }; -SyncPlayUserLeftUpdate _$SyncPlayUserLeftUpdateFromJson( - Map json) => - SyncPlayUserLeftUpdate( +SyncPlayUserLeftUpdate _$SyncPlayUserLeftUpdateFromJson(Map json) => SyncPlayUserLeftUpdate( groupId: json['GroupId'] as String?, data: json['Data'] as String?, - type: SyncPlayUserLeftUpdate.groupUpdateTypeTypeNullableFromJson( - json['Type']), + type: SyncPlayUserLeftUpdate.groupUpdateTypeTypeNullableFromJson(json['Type']), ); -Map _$SyncPlayUserLeftUpdateToJson( - SyncPlayUserLeftUpdate instance) => - { +Map _$SyncPlayUserLeftUpdateToJson(SyncPlayUserLeftUpdate instance) => { if (instance.groupId case final value?) 'GroupId': value, if (instance.data case final value?) 'Data': value, - if (groupUpdateTypeNullableToJson(instance.type) case final value?) - 'Type': value, + if (groupUpdateTypeNullableToJson(instance.type) case final value?) 'Type': value, }; SystemInfo _$SystemInfoFromJson(Map json) => SystemInfo( @@ -6624,10 +4739,8 @@ SystemInfo _$SystemInfoFromJson(Map json) => SystemInfo( logPath: json['LogPath'] as String?, internalMetadataPath: json['InternalMetadataPath'] as String?, transcodingTempPath: json['TranscodingTempPath'] as String?, - castReceiverApplications: (json['CastReceiverApplications'] - as List?) - ?.map((e) => - CastReceiverApplication.fromJson(e as Map)) + castReceiverApplications: (json['CastReceiverApplications'] as List?) + ?.map((e) => CastReceiverApplication.fromJson(e as Map)) .toList() ?? [], hasUpdateAvailable: json['HasUpdateAvailable'] as bool? ?? false, @@ -6635,116 +4748,82 @@ SystemInfo _$SystemInfoFromJson(Map json) => SystemInfo( systemArchitecture: json['SystemArchitecture'] as String?, ); -Map _$SystemInfoToJson(SystemInfo instance) => - { +Map _$SystemInfoToJson(SystemInfo instance) => { if (instance.localAddress case final value?) 'LocalAddress': value, if (instance.serverName case final value?) 'ServerName': value, if (instance.version case final value?) 'Version': value, if (instance.productName case final value?) 'ProductName': value, if (instance.operatingSystem case final value?) 'OperatingSystem': value, if (instance.id case final value?) 'Id': value, - if (instance.startupWizardCompleted case final value?) - 'StartupWizardCompleted': value, - if (instance.operatingSystemDisplayName case final value?) - 'OperatingSystemDisplayName': value, + if (instance.startupWizardCompleted case final value?) 'StartupWizardCompleted': value, + if (instance.operatingSystemDisplayName case final value?) 'OperatingSystemDisplayName': value, if (instance.packageName case final value?) 'PackageName': value, - if (instance.hasPendingRestart case final value?) - 'HasPendingRestart': value, + if (instance.hasPendingRestart case final value?) 'HasPendingRestart': value, if (instance.isShuttingDown case final value?) 'IsShuttingDown': value, - if (instance.supportsLibraryMonitor case final value?) - 'SupportsLibraryMonitor': value, - if (instance.webSocketPortNumber case final value?) - 'WebSocketPortNumber': value, - if (instance.completedInstallations?.map((e) => e.toJson()).toList() - case final value?) + if (instance.supportsLibraryMonitor case final value?) 'SupportsLibraryMonitor': value, + if (instance.webSocketPortNumber case final value?) 'WebSocketPortNumber': value, + if (instance.completedInstallations?.map((e) => e.toJson()).toList() case final value?) 'CompletedInstallations': value, if (instance.canSelfRestart case final value?) 'CanSelfRestart': value, - if (instance.canLaunchWebBrowser case final value?) - 'CanLaunchWebBrowser': value, + if (instance.canLaunchWebBrowser case final value?) 'CanLaunchWebBrowser': value, if (instance.programDataPath case final value?) 'ProgramDataPath': value, if (instance.webPath case final value?) 'WebPath': value, if (instance.itemsByNamePath case final value?) 'ItemsByNamePath': value, if (instance.cachePath case final value?) 'CachePath': value, if (instance.logPath case final value?) 'LogPath': value, - if (instance.internalMetadataPath case final value?) - 'InternalMetadataPath': value, - if (instance.transcodingTempPath case final value?) - 'TranscodingTempPath': value, - if (instance.castReceiverApplications?.map((e) => e.toJson()).toList() - case final value?) + if (instance.internalMetadataPath case final value?) 'InternalMetadataPath': value, + if (instance.transcodingTempPath case final value?) 'TranscodingTempPath': value, + if (instance.castReceiverApplications?.map((e) => e.toJson()).toList() case final value?) 'CastReceiverApplications': value, - if (instance.hasUpdateAvailable case final value?) - 'HasUpdateAvailable': value, + if (instance.hasUpdateAvailable case final value?) 'HasUpdateAvailable': value, if (instance.encoderLocation case final value?) 'EncoderLocation': value, - if (instance.systemArchitecture case final value?) - 'SystemArchitecture': value, + if (instance.systemArchitecture case final value?) 'SystemArchitecture': value, }; -SystemStorageDto _$SystemStorageDtoFromJson(Map json) => - SystemStorageDto( +SystemStorageDto _$SystemStorageDtoFromJson(Map json) => SystemStorageDto( programDataFolder: json['ProgramDataFolder'] == null ? null - : FolderStorageDto.fromJson( - json['ProgramDataFolder'] as Map), - webFolder: json['WebFolder'] == null - ? null - : FolderStorageDto.fromJson( - json['WebFolder'] as Map), + : FolderStorageDto.fromJson(json['ProgramDataFolder'] as Map), + webFolder: + json['WebFolder'] == null ? null : FolderStorageDto.fromJson(json['WebFolder'] as Map), imageCacheFolder: json['ImageCacheFolder'] == null ? null - : FolderStorageDto.fromJson( - json['ImageCacheFolder'] as Map), - cacheFolder: json['CacheFolder'] == null - ? null - : FolderStorageDto.fromJson( - json['CacheFolder'] as Map), - logFolder: json['LogFolder'] == null - ? null - : FolderStorageDto.fromJson( - json['LogFolder'] as Map), + : FolderStorageDto.fromJson(json['ImageCacheFolder'] as Map), + cacheFolder: + json['CacheFolder'] == null ? null : FolderStorageDto.fromJson(json['CacheFolder'] as Map), + logFolder: + json['LogFolder'] == null ? null : FolderStorageDto.fromJson(json['LogFolder'] as Map), internalMetadataFolder: json['InternalMetadataFolder'] == null ? null - : FolderStorageDto.fromJson( - json['InternalMetadataFolder'] as Map), + : FolderStorageDto.fromJson(json['InternalMetadataFolder'] as Map), transcodingTempFolder: json['TranscodingTempFolder'] == null ? null - : FolderStorageDto.fromJson( - json['TranscodingTempFolder'] as Map), + : FolderStorageDto.fromJson(json['TranscodingTempFolder'] as Map), libraries: (json['Libraries'] as List?) - ?.map( - (e) => LibraryStorageDto.fromJson(e as Map)) + ?.map((e) => LibraryStorageDto.fromJson(e as Map)) .toList() ?? [], ); -Map _$SystemStorageDtoToJson(SystemStorageDto instance) => - { - if (instance.programDataFolder?.toJson() case final value?) - 'ProgramDataFolder': value, +Map _$SystemStorageDtoToJson(SystemStorageDto instance) => { + if (instance.programDataFolder?.toJson() case final value?) 'ProgramDataFolder': value, if (instance.webFolder?.toJson() case final value?) 'WebFolder': value, - if (instance.imageCacheFolder?.toJson() case final value?) - 'ImageCacheFolder': value, - if (instance.cacheFolder?.toJson() case final value?) - 'CacheFolder': value, + if (instance.imageCacheFolder?.toJson() case final value?) 'ImageCacheFolder': value, + if (instance.cacheFolder?.toJson() case final value?) 'CacheFolder': value, if (instance.logFolder?.toJson() case final value?) 'LogFolder': value, - if (instance.internalMetadataFolder?.toJson() case final value?) - 'InternalMetadataFolder': value, - if (instance.transcodingTempFolder?.toJson() case final value?) - 'TranscodingTempFolder': value, - if (instance.libraries?.map((e) => e.toJson()).toList() case final value?) - 'Libraries': value, + if (instance.internalMetadataFolder?.toJson() case final value?) 'InternalMetadataFolder': value, + if (instance.transcodingTempFolder?.toJson() case final value?) 'TranscodingTempFolder': value, + if (instance.libraries?.map((e) => e.toJson()).toList() case final value?) 'Libraries': value, }; TaskInfo _$TaskInfoFromJson(Map json) => TaskInfo( name: json['Name'] as String?, state: taskStateNullableFromJson(json['State']), - currentProgressPercentage: - (json['CurrentProgressPercentage'] as num?)?.toDouble(), + currentProgressPercentage: (json['CurrentProgressPercentage'] as num?)?.toDouble(), id: json['Id'] as String?, lastExecutionResult: json['LastExecutionResult'] == null ? null - : TaskResult.fromJson( - json['LastExecutionResult'] as Map), + : TaskResult.fromJson(json['LastExecutionResult'] as Map), triggers: (json['Triggers'] as List?) ?.map((e) => TaskTriggerInfo.fromJson(e as Map)) .toList() ?? @@ -6757,15 +4836,11 @@ TaskInfo _$TaskInfoFromJson(Map json) => TaskInfo( Map _$TaskInfoToJson(TaskInfo instance) => { if (instance.name case final value?) 'Name': value, - if (taskStateNullableToJson(instance.state) case final value?) - 'State': value, - if (instance.currentProgressPercentage case final value?) - 'CurrentProgressPercentage': value, + if (taskStateNullableToJson(instance.state) case final value?) 'State': value, + if (instance.currentProgressPercentage case final value?) 'CurrentProgressPercentage': value, if (instance.id case final value?) 'Id': value, - if (instance.lastExecutionResult?.toJson() case final value?) - 'LastExecutionResult': value, - if (instance.triggers?.map((e) => e.toJson()).toList() case final value?) - 'Triggers': value, + if (instance.lastExecutionResult?.toJson() case final value?) 'LastExecutionResult': value, + if (instance.triggers?.map((e) => e.toJson()).toList() case final value?) 'Triggers': value, if (instance.description case final value?) 'Description': value, if (instance.category case final value?) 'Category': value, if (instance.isHidden case final value?) 'IsHidden': value, @@ -6773,12 +4848,8 @@ Map _$TaskInfoToJson(TaskInfo instance) => { }; TaskResult _$TaskResultFromJson(Map json) => TaskResult( - startTimeUtc: json['StartTimeUtc'] == null - ? null - : DateTime.parse(json['StartTimeUtc'] as String), - endTimeUtc: json['EndTimeUtc'] == null - ? null - : DateTime.parse(json['EndTimeUtc'] as String), + startTimeUtc: json['StartTimeUtc'] == null ? null : DateTime.parse(json['StartTimeUtc'] as String), + endTimeUtc: json['EndTimeUtc'] == null ? null : DateTime.parse(json['EndTimeUtc'] as String), status: taskCompletionStatusNullableFromJson(json['Status']), name: json['Name'] as String?, key: json['Key'] as String?, @@ -6787,24 +4858,18 @@ TaskResult _$TaskResultFromJson(Map json) => TaskResult( longErrorMessage: json['LongErrorMessage'] as String?, ); -Map _$TaskResultToJson(TaskResult instance) => - { - if (instance.startTimeUtc?.toIso8601String() case final value?) - 'StartTimeUtc': value, - if (instance.endTimeUtc?.toIso8601String() case final value?) - 'EndTimeUtc': value, - if (taskCompletionStatusNullableToJson(instance.status) case final value?) - 'Status': value, +Map _$TaskResultToJson(TaskResult instance) => { + if (instance.startTimeUtc?.toIso8601String() case final value?) 'StartTimeUtc': value, + if (instance.endTimeUtc?.toIso8601String() case final value?) 'EndTimeUtc': value, + if (taskCompletionStatusNullableToJson(instance.status) case final value?) 'Status': value, if (instance.name case final value?) 'Name': value, if (instance.key case final value?) 'Key': value, if (instance.id case final value?) 'Id': value, if (instance.errorMessage case final value?) 'ErrorMessage': value, - if (instance.longErrorMessage case final value?) - 'LongErrorMessage': value, + if (instance.longErrorMessage case final value?) 'LongErrorMessage': value, }; -TaskTriggerInfo _$TaskTriggerInfoFromJson(Map json) => - TaskTriggerInfo( +TaskTriggerInfo _$TaskTriggerInfoFromJson(Map json) => TaskTriggerInfo( type: taskTriggerInfoTypeNullableFromJson(json['Type']), timeOfDayTicks: (json['TimeOfDayTicks'] as num?)?.toInt(), intervalTicks: (json['IntervalTicks'] as num?)?.toInt(), @@ -6812,89 +4877,59 @@ TaskTriggerInfo _$TaskTriggerInfoFromJson(Map json) => maxRuntimeTicks: (json['MaxRuntimeTicks'] as num?)?.toInt(), ); -Map _$TaskTriggerInfoToJson(TaskTriggerInfo instance) => - { - if (taskTriggerInfoTypeNullableToJson(instance.type) case final value?) - 'Type': value, +Map _$TaskTriggerInfoToJson(TaskTriggerInfo instance) => { + if (taskTriggerInfoTypeNullableToJson(instance.type) case final value?) 'Type': value, if (instance.timeOfDayTicks case final value?) 'TimeOfDayTicks': value, if (instance.intervalTicks case final value?) 'IntervalTicks': value, - if (dayOfWeekNullableToJson(instance.dayOfWeek) case final value?) - 'DayOfWeek': value, + if (dayOfWeekNullableToJson(instance.dayOfWeek) case final value?) 'DayOfWeek': value, if (instance.maxRuntimeTicks case final value?) 'MaxRuntimeTicks': value, }; -ThemeMediaResult _$ThemeMediaResultFromJson(Map json) => - ThemeMediaResult( - items: (json['Items'] as List?) - ?.map((e) => BaseItemDto.fromJson(e as Map)) - .toList() ?? - [], +ThemeMediaResult _$ThemeMediaResultFromJson(Map json) => ThemeMediaResult( + items: + (json['Items'] as List?)?.map((e) => BaseItemDto.fromJson(e as Map)).toList() ?? [], totalRecordCount: (json['TotalRecordCount'] as num?)?.toInt(), startIndex: (json['StartIndex'] as num?)?.toInt(), ownerId: json['OwnerId'] as String?, ); -Map _$ThemeMediaResultToJson(ThemeMediaResult instance) => - { - if (instance.items?.map((e) => e.toJson()).toList() case final value?) - 'Items': value, - if (instance.totalRecordCount case final value?) - 'TotalRecordCount': value, +Map _$ThemeMediaResultToJson(ThemeMediaResult instance) => { + if (instance.items?.map((e) => e.toJson()).toList() case final value?) 'Items': value, + if (instance.totalRecordCount case final value?) 'TotalRecordCount': value, if (instance.startIndex case final value?) 'StartIndex': value, if (instance.ownerId case final value?) 'OwnerId': value, }; -TimerCancelledMessage _$TimerCancelledMessageFromJson( - Map json) => - TimerCancelledMessage( - data: json['Data'] == null - ? null - : TimerEventInfo.fromJson(json['Data'] as Map), +TimerCancelledMessage _$TimerCancelledMessageFromJson(Map json) => TimerCancelledMessage( + data: json['Data'] == null ? null : TimerEventInfo.fromJson(json['Data'] as Map), messageId: json['MessageId'] as String?, - messageType: - TimerCancelledMessage.sessionMessageTypeMessageTypeNullableFromJson( - json['MessageType']), + messageType: TimerCancelledMessage.sessionMessageTypeMessageTypeNullableFromJson(json['MessageType']), ); -Map _$TimerCancelledMessageToJson( - TimerCancelledMessage instance) => - { +Map _$TimerCancelledMessageToJson(TimerCancelledMessage instance) => { if (instance.data?.toJson() case final value?) 'Data': value, if (instance.messageId case final value?) 'MessageId': value, - if (sessionMessageTypeNullableToJson(instance.messageType) - case final value?) - 'MessageType': value, + if (sessionMessageTypeNullableToJson(instance.messageType) case final value?) 'MessageType': value, }; -TimerCreatedMessage _$TimerCreatedMessageFromJson(Map json) => - TimerCreatedMessage( - data: json['Data'] == null - ? null - : TimerEventInfo.fromJson(json['Data'] as Map), +TimerCreatedMessage _$TimerCreatedMessageFromJson(Map json) => TimerCreatedMessage( + data: json['Data'] == null ? null : TimerEventInfo.fromJson(json['Data'] as Map), messageId: json['MessageId'] as String?, - messageType: - TimerCreatedMessage.sessionMessageTypeMessageTypeNullableFromJson( - json['MessageType']), + messageType: TimerCreatedMessage.sessionMessageTypeMessageTypeNullableFromJson(json['MessageType']), ); -Map _$TimerCreatedMessageToJson( - TimerCreatedMessage instance) => - { +Map _$TimerCreatedMessageToJson(TimerCreatedMessage instance) => { if (instance.data?.toJson() case final value?) 'Data': value, if (instance.messageId case final value?) 'MessageId': value, - if (sessionMessageTypeNullableToJson(instance.messageType) - case final value?) - 'MessageType': value, + if (sessionMessageTypeNullableToJson(instance.messageType) case final value?) 'MessageType': value, }; -TimerEventInfo _$TimerEventInfoFromJson(Map json) => - TimerEventInfo( +TimerEventInfo _$TimerEventInfoFromJson(Map json) => TimerEventInfo( id: json['Id'] as String?, programId: json['ProgramId'] as String?, ); -Map _$TimerEventInfoToJson(TimerEventInfo instance) => - { +Map _$TimerEventInfoToJson(TimerEventInfo instance) => { if (instance.id case final value?) 'Id': value, if (instance.programId case final value?) 'ProgramId': value, }; @@ -6912,12 +4947,8 @@ TimerInfoDto _$TimerInfoDtoFromJson(Map json) => TimerInfoDto( externalProgramId: json['ExternalProgramId'] as String?, name: json['Name'] as String?, overview: json['Overview'] as String?, - startDate: json['StartDate'] == null - ? null - : DateTime.parse(json['StartDate'] as String), - endDate: json['EndDate'] == null - ? null - : DateTime.parse(json['EndDate'] as String), + startDate: json['StartDate'] == null ? null : DateTime.parse(json['StartDate'] as String), + endDate: json['EndDate'] == null ? null : DateTime.parse(json['EndDate'] as String), serviceName: json['ServiceName'] as String?, priority: (json['Priority'] as num?)?.toInt(), prePaddingSeconds: (json['PrePaddingSeconds'] as num?)?.toInt(), @@ -6925,86 +4956,58 @@ TimerInfoDto _$TimerInfoDtoFromJson(Map json) => TimerInfoDto( isPrePaddingRequired: json['IsPrePaddingRequired'] as bool?, parentBackdropItemId: json['ParentBackdropItemId'] as String?, parentBackdropImageTags: - (json['ParentBackdropImageTags'] as List?) - ?.map((e) => e as String) - .toList() ?? - [], + (json['ParentBackdropImageTags'] as List?)?.map((e) => e as String).toList() ?? [], isPostPaddingRequired: json['IsPostPaddingRequired'] as bool?, keepUntil: keepUntilNullableFromJson(json['KeepUntil']), status: recordingStatusNullableFromJson(json['Status']), seriesTimerId: json['SeriesTimerId'] as String?, externalSeriesTimerId: json['ExternalSeriesTimerId'] as String?, runTimeTicks: (json['RunTimeTicks'] as num?)?.toInt(), - programInfo: json['ProgramInfo'] == null - ? null - : BaseItemDto.fromJson(json['ProgramInfo'] as Map), + programInfo: + json['ProgramInfo'] == null ? null : BaseItemDto.fromJson(json['ProgramInfo'] as Map), ); -Map _$TimerInfoDtoToJson(TimerInfoDto instance) => - { +Map _$TimerInfoDtoToJson(TimerInfoDto instance) => { if (instance.id case final value?) 'Id': value, if (instance.type case final value?) 'Type': value, if (instance.serverId case final value?) 'ServerId': value, if (instance.externalId case final value?) 'ExternalId': value, if (instance.channelId case final value?) 'ChannelId': value, - if (instance.externalChannelId case final value?) - 'ExternalChannelId': value, + if (instance.externalChannelId case final value?) 'ExternalChannelId': value, if (instance.channelName case final value?) 'ChannelName': value, - if (instance.channelPrimaryImageTag case final value?) - 'ChannelPrimaryImageTag': value, + if (instance.channelPrimaryImageTag case final value?) 'ChannelPrimaryImageTag': value, if (instance.programId case final value?) 'ProgramId': value, - if (instance.externalProgramId case final value?) - 'ExternalProgramId': value, + if (instance.externalProgramId case final value?) 'ExternalProgramId': value, if (instance.name case final value?) 'Name': value, if (instance.overview case final value?) 'Overview': value, - if (instance.startDate?.toIso8601String() case final value?) - 'StartDate': value, - if (instance.endDate?.toIso8601String() case final value?) - 'EndDate': value, + if (instance.startDate?.toIso8601String() case final value?) 'StartDate': value, + if (instance.endDate?.toIso8601String() case final value?) 'EndDate': value, if (instance.serviceName case final value?) 'ServiceName': value, if (instance.priority case final value?) 'Priority': value, - if (instance.prePaddingSeconds case final value?) - 'PrePaddingSeconds': value, - if (instance.postPaddingSeconds case final value?) - 'PostPaddingSeconds': value, - if (instance.isPrePaddingRequired case final value?) - 'IsPrePaddingRequired': value, - if (instance.parentBackdropItemId case final value?) - 'ParentBackdropItemId': value, - if (instance.parentBackdropImageTags case final value?) - 'ParentBackdropImageTags': value, - if (instance.isPostPaddingRequired case final value?) - 'IsPostPaddingRequired': value, - if (keepUntilNullableToJson(instance.keepUntil) case final value?) - 'KeepUntil': value, - if (recordingStatusNullableToJson(instance.status) case final value?) - 'Status': value, + if (instance.prePaddingSeconds case final value?) 'PrePaddingSeconds': value, + if (instance.postPaddingSeconds case final value?) 'PostPaddingSeconds': value, + if (instance.isPrePaddingRequired case final value?) 'IsPrePaddingRequired': value, + if (instance.parentBackdropItemId case final value?) 'ParentBackdropItemId': value, + if (instance.parentBackdropImageTags case final value?) 'ParentBackdropImageTags': value, + if (instance.isPostPaddingRequired case final value?) 'IsPostPaddingRequired': value, + if (keepUntilNullableToJson(instance.keepUntil) case final value?) 'KeepUntil': value, + if (recordingStatusNullableToJson(instance.status) case final value?) 'Status': value, if (instance.seriesTimerId case final value?) 'SeriesTimerId': value, - if (instance.externalSeriesTimerId case final value?) - 'ExternalSeriesTimerId': value, + if (instance.externalSeriesTimerId case final value?) 'ExternalSeriesTimerId': value, if (instance.runTimeTicks case final value?) 'RunTimeTicks': value, - if (instance.programInfo?.toJson() case final value?) - 'ProgramInfo': value, + if (instance.programInfo?.toJson() case final value?) 'ProgramInfo': value, }; -TimerInfoDtoQueryResult _$TimerInfoDtoQueryResultFromJson( - Map json) => - TimerInfoDtoQueryResult( - items: (json['Items'] as List?) - ?.map((e) => TimerInfoDto.fromJson(e as Map)) - .toList() ?? +TimerInfoDtoQueryResult _$TimerInfoDtoQueryResultFromJson(Map json) => TimerInfoDtoQueryResult( + items: (json['Items'] as List?)?.map((e) => TimerInfoDto.fromJson(e as Map)).toList() ?? [], totalRecordCount: (json['TotalRecordCount'] as num?)?.toInt(), startIndex: (json['StartIndex'] as num?)?.toInt(), ); -Map _$TimerInfoDtoQueryResultToJson( - TimerInfoDtoQueryResult instance) => - { - if (instance.items?.map((e) => e.toJson()).toList() case final value?) - 'Items': value, - if (instance.totalRecordCount case final value?) - 'TotalRecordCount': value, +Map _$TimerInfoDtoQueryResultToJson(TimerInfoDtoQueryResult instance) => { + if (instance.items?.map((e) => e.toJson()).toList() case final value?) 'Items': value, + if (instance.totalRecordCount case final value?) 'TotalRecordCount': value, if (instance.startIndex case final value?) 'StartIndex': value, }; @@ -7018,55 +5021,40 @@ TrailerInfo _$TrailerInfoFromJson(Map json) => TrailerInfo( year: (json['Year'] as num?)?.toInt(), indexNumber: (json['IndexNumber'] as num?)?.toInt(), parentIndexNumber: (json['ParentIndexNumber'] as num?)?.toInt(), - premiereDate: json['PremiereDate'] == null - ? null - : DateTime.parse(json['PremiereDate'] as String), + premiereDate: json['PremiereDate'] == null ? null : DateTime.parse(json['PremiereDate'] as String), isAutomated: json['IsAutomated'] as bool?, ); -Map _$TrailerInfoToJson(TrailerInfo instance) => - { +Map _$TrailerInfoToJson(TrailerInfo instance) => { if (instance.name case final value?) 'Name': value, if (instance.originalTitle case final value?) 'OriginalTitle': value, if (instance.path case final value?) 'Path': value, - if (instance.metadataLanguage case final value?) - 'MetadataLanguage': value, - if (instance.metadataCountryCode case final value?) - 'MetadataCountryCode': value, + if (instance.metadataLanguage case final value?) 'MetadataLanguage': value, + if (instance.metadataCountryCode case final value?) 'MetadataCountryCode': value, if (instance.providerIds case final value?) 'ProviderIds': value, if (instance.year case final value?) 'Year': value, if (instance.indexNumber case final value?) 'IndexNumber': value, - if (instance.parentIndexNumber case final value?) - 'ParentIndexNumber': value, - if (instance.premiereDate?.toIso8601String() case final value?) - 'PremiereDate': value, + if (instance.parentIndexNumber case final value?) 'ParentIndexNumber': value, + if (instance.premiereDate?.toIso8601String() case final value?) 'PremiereDate': value, if (instance.isAutomated case final value?) 'IsAutomated': value, }; -TrailerInfoRemoteSearchQuery _$TrailerInfoRemoteSearchQueryFromJson( - Map json) => +TrailerInfoRemoteSearchQuery _$TrailerInfoRemoteSearchQueryFromJson(Map json) => TrailerInfoRemoteSearchQuery( - searchInfo: json['SearchInfo'] == null - ? null - : TrailerInfo.fromJson(json['SearchInfo'] as Map), + searchInfo: json['SearchInfo'] == null ? null : TrailerInfo.fromJson(json['SearchInfo'] as Map), itemId: json['ItemId'] as String?, searchProviderName: json['SearchProviderName'] as String?, includeDisabledProviders: json['IncludeDisabledProviders'] as bool?, ); -Map _$TrailerInfoRemoteSearchQueryToJson( - TrailerInfoRemoteSearchQuery instance) => - { +Map _$TrailerInfoRemoteSearchQueryToJson(TrailerInfoRemoteSearchQuery instance) => { if (instance.searchInfo?.toJson() case final value?) 'SearchInfo': value, if (instance.itemId case final value?) 'ItemId': value, - if (instance.searchProviderName case final value?) - 'SearchProviderName': value, - if (instance.includeDisabledProviders case final value?) - 'IncludeDisabledProviders': value, + if (instance.searchProviderName case final value?) 'SearchProviderName': value, + if (instance.includeDisabledProviders case final value?) 'IncludeDisabledProviders': value, }; -TranscodingInfo _$TranscodingInfoFromJson(Map json) => - TranscodingInfo( +TranscodingInfo _$TranscodingInfoFromJson(Map json) => TranscodingInfo( audioCodec: json['AudioCodec'] as String?, videoCodec: json['VideoCodec'] as String?, container: json['Container'] as String?, @@ -7078,14 +5066,11 @@ TranscodingInfo _$TranscodingInfoFromJson(Map json) => width: (json['Width'] as num?)?.toInt(), height: (json['Height'] as num?)?.toInt(), audioChannels: (json['AudioChannels'] as num?)?.toInt(), - hardwareAccelerationType: hardwareAccelerationTypeNullableFromJson( - json['HardwareAccelerationType']), - transcodeReasons: - transcodeReasonListFromJson(json['TranscodeReasons'] as List?), + hardwareAccelerationType: hardwareAccelerationTypeNullableFromJson(json['HardwareAccelerationType']), + transcodeReasons: transcodeReasonListFromJson(json['TranscodeReasons'] as List?), ); -Map _$TranscodingInfoToJson(TranscodingInfo instance) => - { +Map _$TranscodingInfoToJson(TranscodingInfo instance) => { if (instance.audioCodec case final value?) 'AudioCodec': value, if (instance.videoCodec case final value?) 'VideoCodec': value, if (instance.container case final value?) 'Container': value, @@ -7093,20 +5078,16 @@ Map _$TranscodingInfoToJson(TranscodingInfo instance) => if (instance.isAudioDirect case final value?) 'IsAudioDirect': value, if (instance.bitrate case final value?) 'Bitrate': value, if (instance.framerate case final value?) 'Framerate': value, - if (instance.completionPercentage case final value?) - 'CompletionPercentage': value, + if (instance.completionPercentage case final value?) 'CompletionPercentage': value, if (instance.width case final value?) 'Width': value, if (instance.height case final value?) 'Height': value, if (instance.audioChannels case final value?) 'AudioChannels': value, - if (hardwareAccelerationTypeNullableToJson( - instance.hardwareAccelerationType) - case final value?) + if (hardwareAccelerationTypeNullableToJson(instance.hardwareAccelerationType) case final value?) 'HardwareAccelerationType': value, 'TranscodeReasons': transcodeReasonListToJson(instance.transcodeReasons), }; -TranscodingProfile _$TranscodingProfileFromJson(Map json) => - TranscodingProfile( +TranscodingProfile _$TranscodingProfileFromJson(Map json) => TranscodingProfile( container: json['Container'] as String?, type: dlnaProfileTypeNullableFromJson(json['Type']), videoCodec: json['VideoCodec'] as String?, @@ -7115,13 +5096,10 @@ TranscodingProfile _$TranscodingProfileFromJson(Map json) => estimateContentLength: json['EstimateContentLength'] as bool? ?? false, enableMpegtsM2TsMode: json['EnableMpegtsM2TsMode'] as bool? ?? false, transcodeSeekInfo: - TranscodingProfile.transcodeSeekInfoTranscodeSeekInfoNullableFromJson( - json['TranscodeSeekInfo']), + TranscodingProfile.transcodeSeekInfoTranscodeSeekInfoNullableFromJson(json['TranscodeSeekInfo']), copyTimestamps: json['CopyTimestamps'] as bool? ?? false, - context: TranscodingProfile.encodingContextContextNullableFromJson( - json['Context']), - enableSubtitlesInManifest: - json['EnableSubtitlesInManifest'] as bool? ?? false, + context: TranscodingProfile.encodingContextContextNullableFromJson(json['Context']), + enableSubtitlesInManifest: json['EnableSubtitlesInManifest'] as bool? ?? false, maxAudioChannels: json['MaxAudioChannels'] as String?, minSegments: (json['MinSegments'] as num?)?.toInt(), segmentLength: (json['SegmentLength'] as num?)?.toInt(), @@ -7133,43 +5111,27 @@ TranscodingProfile _$TranscodingProfileFromJson(Map json) => enableAudioVbrEncoding: json['EnableAudioVbrEncoding'] as bool? ?? true, ); -Map _$TranscodingProfileToJson(TranscodingProfile instance) => - { +Map _$TranscodingProfileToJson(TranscodingProfile instance) => { if (instance.container case final value?) 'Container': value, - if (dlnaProfileTypeNullableToJson(instance.type) case final value?) - 'Type': value, + if (dlnaProfileTypeNullableToJson(instance.type) case final value?) 'Type': value, if (instance.videoCodec case final value?) 'VideoCodec': value, if (instance.audioCodec case final value?) 'AudioCodec': value, - if (mediaStreamProtocolNullableToJson(instance.protocol) - case final value?) - 'Protocol': value, - if (instance.estimateContentLength case final value?) - 'EstimateContentLength': value, - if (instance.enableMpegtsM2TsMode case final value?) - 'EnableMpegtsM2TsMode': value, - if (transcodeSeekInfoNullableToJson(instance.transcodeSeekInfo) - case final value?) - 'TranscodeSeekInfo': value, + if (mediaStreamProtocolNullableToJson(instance.protocol) case final value?) 'Protocol': value, + if (instance.estimateContentLength case final value?) 'EstimateContentLength': value, + if (instance.enableMpegtsM2TsMode case final value?) 'EnableMpegtsM2TsMode': value, + if (transcodeSeekInfoNullableToJson(instance.transcodeSeekInfo) case final value?) 'TranscodeSeekInfo': value, if (instance.copyTimestamps case final value?) 'CopyTimestamps': value, - if (encodingContextNullableToJson(instance.context) case final value?) - 'Context': value, - if (instance.enableSubtitlesInManifest case final value?) - 'EnableSubtitlesInManifest': value, - if (instance.maxAudioChannels case final value?) - 'MaxAudioChannels': value, + if (encodingContextNullableToJson(instance.context) case final value?) 'Context': value, + if (instance.enableSubtitlesInManifest case final value?) 'EnableSubtitlesInManifest': value, + if (instance.maxAudioChannels case final value?) 'MaxAudioChannels': value, if (instance.minSegments case final value?) 'MinSegments': value, if (instance.segmentLength case final value?) 'SegmentLength': value, - if (instance.breakOnNonKeyFrames case final value?) - 'BreakOnNonKeyFrames': value, - if (instance.conditions?.map((e) => e.toJson()).toList() - case final value?) - 'Conditions': value, - if (instance.enableAudioVbrEncoding case final value?) - 'EnableAudioVbrEncoding': value, + if (instance.breakOnNonKeyFrames case final value?) 'BreakOnNonKeyFrames': value, + if (instance.conditions?.map((e) => e.toJson()).toList() case final value?) 'Conditions': value, + if (instance.enableAudioVbrEncoding case final value?) 'EnableAudioVbrEncoding': value, }; -TrickplayInfoDto _$TrickplayInfoDtoFromJson(Map json) => - TrickplayInfoDto( +TrickplayInfoDto _$TrickplayInfoDtoFromJson(Map json) => TrickplayInfoDto( width: (json['Width'] as num?)?.toInt(), height: (json['Height'] as num?)?.toInt(), tileWidth: (json['TileWidth'] as num?)?.toInt(), @@ -7179,8 +5141,7 @@ TrickplayInfoDto _$TrickplayInfoDtoFromJson(Map json) => bandwidth: (json['Bandwidth'] as num?)?.toInt(), ); -Map _$TrickplayInfoDtoToJson(TrickplayInfoDto instance) => - { +Map _$TrickplayInfoDtoToJson(TrickplayInfoDto instance) => { if (instance.width case final value?) 'Width': value, if (instance.height case final value?) 'Height': value, if (instance.tileWidth case final value?) 'TileWidth': value, @@ -7190,20 +5151,14 @@ Map _$TrickplayInfoDtoToJson(TrickplayInfoDto instance) => if (instance.bandwidth case final value?) 'Bandwidth': value, }; -TrickplayOptions _$TrickplayOptionsFromJson(Map json) => - TrickplayOptions( +TrickplayOptions _$TrickplayOptionsFromJson(Map json) => TrickplayOptions( enableHwAcceleration: json['EnableHwAcceleration'] as bool?, enableHwEncoding: json['EnableHwEncoding'] as bool?, - enableKeyFrameOnlyExtraction: - json['EnableKeyFrameOnlyExtraction'] as bool?, + enableKeyFrameOnlyExtraction: json['EnableKeyFrameOnlyExtraction'] as bool?, scanBehavior: trickplayScanBehaviorNullableFromJson(json['ScanBehavior']), - processPriority: - processPriorityClassNullableFromJson(json['ProcessPriority']), + processPriority: processPriorityClassNullableFromJson(json['ProcessPriority']), interval: (json['Interval'] as num?)?.toInt(), - widthResolutions: (json['WidthResolutions'] as List?) - ?.map((e) => (e as num).toInt()) - .toList() ?? - [], + widthResolutions: (json['WidthResolutions'] as List?)?.map((e) => (e as num).toInt()).toList() ?? [], tileWidth: (json['TileWidth'] as num?)?.toInt(), tileHeight: (json['TileHeight'] as num?)?.toInt(), qscale: (json['Qscale'] as num?)?.toInt(), @@ -7211,23 +5166,14 @@ TrickplayOptions _$TrickplayOptionsFromJson(Map json) => processThreads: (json['ProcessThreads'] as num?)?.toInt(), ); -Map _$TrickplayOptionsToJson(TrickplayOptions instance) => - { - if (instance.enableHwAcceleration case final value?) - 'EnableHwAcceleration': value, - if (instance.enableHwEncoding case final value?) - 'EnableHwEncoding': value, - if (instance.enableKeyFrameOnlyExtraction case final value?) - 'EnableKeyFrameOnlyExtraction': value, - if (trickplayScanBehaviorNullableToJson(instance.scanBehavior) - case final value?) - 'ScanBehavior': value, - if (processPriorityClassNullableToJson(instance.processPriority) - case final value?) - 'ProcessPriority': value, +Map _$TrickplayOptionsToJson(TrickplayOptions instance) => { + if (instance.enableHwAcceleration case final value?) 'EnableHwAcceleration': value, + if (instance.enableHwEncoding case final value?) 'EnableHwEncoding': value, + if (instance.enableKeyFrameOnlyExtraction case final value?) 'EnableKeyFrameOnlyExtraction': value, + if (trickplayScanBehaviorNullableToJson(instance.scanBehavior) case final value?) 'ScanBehavior': value, + if (processPriorityClassNullableToJson(instance.processPriority) case final value?) 'ProcessPriority': value, if (instance.interval case final value?) 'Interval': value, - if (instance.widthResolutions case final value?) - 'WidthResolutions': value, + if (instance.widthResolutions case final value?) 'WidthResolutions': value, if (instance.tileWidth case final value?) 'TileWidth': value, if (instance.tileHeight case final value?) 'TileHeight': value, if (instance.qscale case final value?) 'Qscale': value, @@ -7235,27 +5181,21 @@ Map _$TrickplayOptionsToJson(TrickplayOptions instance) => if (instance.processThreads case final value?) 'ProcessThreads': value, }; -TunerChannelMapping _$TunerChannelMappingFromJson(Map json) => - TunerChannelMapping( +TunerChannelMapping _$TunerChannelMappingFromJson(Map json) => TunerChannelMapping( name: json['Name'] as String?, providerChannelName: json['ProviderChannelName'] as String?, providerChannelId: json['ProviderChannelId'] as String?, id: json['Id'] as String?, ); -Map _$TunerChannelMappingToJson( - TunerChannelMapping instance) => - { +Map _$TunerChannelMappingToJson(TunerChannelMapping instance) => { if (instance.name case final value?) 'Name': value, - if (instance.providerChannelName case final value?) - 'ProviderChannelName': value, - if (instance.providerChannelId case final value?) - 'ProviderChannelId': value, + if (instance.providerChannelName case final value?) 'ProviderChannelName': value, + if (instance.providerChannelId case final value?) 'ProviderChannelId': value, if (instance.id case final value?) 'Id': value, }; -TunerHostInfo _$TunerHostInfoFromJson(Map json) => - TunerHostInfo( +TunerHostInfo _$TunerHostInfoFromJson(Map json) => TunerHostInfo( id: json['Id'] as String?, url: json['Url'] as String?, type: json['Type'] as String?, @@ -7263,11 +5203,9 @@ TunerHostInfo _$TunerHostInfoFromJson(Map json) => friendlyName: json['FriendlyName'] as String?, importFavoritesOnly: json['ImportFavoritesOnly'] as bool?, allowHWTranscoding: json['AllowHWTranscoding'] as bool?, - allowFmp4TranscodingContainer: - json['AllowFmp4TranscodingContainer'] as bool?, + allowFmp4TranscodingContainer: json['AllowFmp4TranscodingContainer'] as bool?, allowStreamSharing: json['AllowStreamSharing'] as bool?, - fallbackMaxStreamingBitrate: - (json['FallbackMaxStreamingBitrate'] as num?)?.toInt(), + fallbackMaxStreamingBitrate: (json['FallbackMaxStreamingBitrate'] as num?)?.toInt(), enableStreamLooping: json['EnableStreamLooping'] as bool?, source: json['Source'] as String?, tunerCount: (json['TunerCount'] as num?)?.toInt(), @@ -7276,142 +5214,94 @@ TunerHostInfo _$TunerHostInfoFromJson(Map json) => readAtNativeFramerate: json['ReadAtNativeFramerate'] as bool?, ); -Map _$TunerHostInfoToJson(TunerHostInfo instance) => - { +Map _$TunerHostInfoToJson(TunerHostInfo instance) => { if (instance.id case final value?) 'Id': value, if (instance.url case final value?) 'Url': value, if (instance.type case final value?) 'Type': value, if (instance.deviceId case final value?) 'DeviceId': value, if (instance.friendlyName case final value?) 'FriendlyName': value, - if (instance.importFavoritesOnly case final value?) - 'ImportFavoritesOnly': value, - if (instance.allowHWTranscoding case final value?) - 'AllowHWTranscoding': value, - if (instance.allowFmp4TranscodingContainer case final value?) - 'AllowFmp4TranscodingContainer': value, - if (instance.allowStreamSharing case final value?) - 'AllowStreamSharing': value, - if (instance.fallbackMaxStreamingBitrate case final value?) - 'FallbackMaxStreamingBitrate': value, - if (instance.enableStreamLooping case final value?) - 'EnableStreamLooping': value, + if (instance.importFavoritesOnly case final value?) 'ImportFavoritesOnly': value, + if (instance.allowHWTranscoding case final value?) 'AllowHWTranscoding': value, + if (instance.allowFmp4TranscodingContainer case final value?) 'AllowFmp4TranscodingContainer': value, + if (instance.allowStreamSharing case final value?) 'AllowStreamSharing': value, + if (instance.fallbackMaxStreamingBitrate case final value?) 'FallbackMaxStreamingBitrate': value, + if (instance.enableStreamLooping case final value?) 'EnableStreamLooping': value, if (instance.source case final value?) 'Source': value, if (instance.tunerCount case final value?) 'TunerCount': value, if (instance.userAgent case final value?) 'UserAgent': value, if (instance.ignoreDts case final value?) 'IgnoreDts': value, - if (instance.readAtNativeFramerate case final value?) - 'ReadAtNativeFramerate': value, + if (instance.readAtNativeFramerate case final value?) 'ReadAtNativeFramerate': value, }; TypeOptions _$TypeOptionsFromJson(Map json) => TypeOptions( type: json['Type'] as String?, - metadataFetchers: (json['MetadataFetchers'] as List?) - ?.map((e) => e as String) - .toList() ?? - [], - metadataFetcherOrder: (json['MetadataFetcherOrder'] as List?) - ?.map((e) => e as String) - .toList() ?? - [], - imageFetchers: (json['ImageFetchers'] as List?) - ?.map((e) => e as String) - .toList() ?? - [], - imageFetcherOrder: (json['ImageFetcherOrder'] as List?) - ?.map((e) => e as String) - .toList() ?? - [], + metadataFetchers: (json['MetadataFetchers'] as List?)?.map((e) => e as String).toList() ?? [], + metadataFetcherOrder: (json['MetadataFetcherOrder'] as List?)?.map((e) => e as String).toList() ?? [], + imageFetchers: (json['ImageFetchers'] as List?)?.map((e) => e as String).toList() ?? [], + imageFetcherOrder: (json['ImageFetcherOrder'] as List?)?.map((e) => e as String).toList() ?? [], imageOptions: (json['ImageOptions'] as List?) ?.map((e) => ImageOption.fromJson(e as Map)) .toList() ?? [], ); -Map _$TypeOptionsToJson(TypeOptions instance) => - { +Map _$TypeOptionsToJson(TypeOptions instance) => { if (instance.type case final value?) 'Type': value, - if (instance.metadataFetchers case final value?) - 'MetadataFetchers': value, - if (instance.metadataFetcherOrder case final value?) - 'MetadataFetcherOrder': value, + if (instance.metadataFetchers case final value?) 'MetadataFetchers': value, + if (instance.metadataFetcherOrder case final value?) 'MetadataFetcherOrder': value, if (instance.imageFetchers case final value?) 'ImageFetchers': value, - if (instance.imageFetcherOrder case final value?) - 'ImageFetcherOrder': value, - if (instance.imageOptions?.map((e) => e.toJson()).toList() - case final value?) - 'ImageOptions': value, + if (instance.imageFetcherOrder case final value?) 'ImageFetcherOrder': value, + if (instance.imageOptions?.map((e) => e.toJson()).toList() case final value?) 'ImageOptions': value, }; -UpdateLibraryOptionsDto _$UpdateLibraryOptionsDtoFromJson( - Map json) => - UpdateLibraryOptionsDto( +UpdateLibraryOptionsDto _$UpdateLibraryOptionsDtoFromJson(Map json) => UpdateLibraryOptionsDto( id: json['Id'] as String?, libraryOptions: json['LibraryOptions'] == null ? null - : LibraryOptions.fromJson( - json['LibraryOptions'] as Map), + : LibraryOptions.fromJson(json['LibraryOptions'] as Map), ); -Map _$UpdateLibraryOptionsDtoToJson( - UpdateLibraryOptionsDto instance) => - { +Map _$UpdateLibraryOptionsDtoToJson(UpdateLibraryOptionsDto instance) => { if (instance.id case final value?) 'Id': value, - if (instance.libraryOptions?.toJson() case final value?) - 'LibraryOptions': value, + if (instance.libraryOptions?.toJson() case final value?) 'LibraryOptions': value, }; -UpdateMediaPathRequestDto _$UpdateMediaPathRequestDtoFromJson( - Map json) => - UpdateMediaPathRequestDto( +UpdateMediaPathRequestDto _$UpdateMediaPathRequestDtoFromJson(Map json) => UpdateMediaPathRequestDto( name: json['Name'] as String, - pathInfo: - MediaPathInfo.fromJson(json['PathInfo'] as Map), + pathInfo: MediaPathInfo.fromJson(json['PathInfo'] as Map), ); -Map _$UpdateMediaPathRequestDtoToJson( - UpdateMediaPathRequestDto instance) => - { +Map _$UpdateMediaPathRequestDtoToJson(UpdateMediaPathRequestDto instance) => { 'Name': instance.name, 'PathInfo': instance.pathInfo.toJson(), }; -UpdatePlaylistDto _$UpdatePlaylistDtoFromJson(Map json) => - UpdatePlaylistDto( +UpdatePlaylistDto _$UpdatePlaylistDtoFromJson(Map json) => UpdatePlaylistDto( name: json['Name'] as String?, - ids: (json['Ids'] as List?)?.map((e) => e as String).toList() ?? - [], + ids: (json['Ids'] as List?)?.map((e) => e as String).toList() ?? [], users: (json['Users'] as List?) - ?.map((e) => - PlaylistUserPermissions.fromJson(e as Map)) + ?.map((e) => PlaylistUserPermissions.fromJson(e as Map)) .toList() ?? [], isPublic: json['IsPublic'] as bool?, ); -Map _$UpdatePlaylistDtoToJson(UpdatePlaylistDto instance) => - { +Map _$UpdatePlaylistDtoToJson(UpdatePlaylistDto instance) => { if (instance.name case final value?) 'Name': value, if (instance.ids case final value?) 'Ids': value, - if (instance.users?.map((e) => e.toJson()).toList() case final value?) - 'Users': value, + if (instance.users?.map((e) => e.toJson()).toList() case final value?) 'Users': value, if (instance.isPublic case final value?) 'IsPublic': value, }; -UpdatePlaylistUserDto _$UpdatePlaylistUserDtoFromJson( - Map json) => - UpdatePlaylistUserDto( +UpdatePlaylistUserDto _$UpdatePlaylistUserDtoFromJson(Map json) => UpdatePlaylistUserDto( canEdit: json['CanEdit'] as bool?, ); -Map _$UpdatePlaylistUserDtoToJson( - UpdatePlaylistUserDto instance) => - { +Map _$UpdatePlaylistUserDtoToJson(UpdatePlaylistUserDto instance) => { if (instance.canEdit case final value?) 'CanEdit': value, }; -UpdateUserItemDataDto _$UpdateUserItemDataDtoFromJson( - Map json) => - UpdateUserItemDataDto( +UpdateUserItemDataDto _$UpdateUserItemDataDtoFromJson(Map json) => UpdateUserItemDataDto( rating: (json['Rating'] as num?)?.toDouble(), playedPercentage: (json['PlayedPercentage'] as num?)?.toDouble(), unplayedItemCount: (json['UnplayedItemCount'] as num?)?.toInt(), @@ -7419,52 +5309,41 @@ UpdateUserItemDataDto _$UpdateUserItemDataDtoFromJson( playCount: (json['PlayCount'] as num?)?.toInt(), isFavorite: json['IsFavorite'] as bool?, likes: json['Likes'] as bool?, - lastPlayedDate: json['LastPlayedDate'] == null - ? null - : DateTime.parse(json['LastPlayedDate'] as String), + lastPlayedDate: json['LastPlayedDate'] == null ? null : DateTime.parse(json['LastPlayedDate'] as String), played: json['Played'] as bool?, key: json['Key'] as String?, itemId: json['ItemId'] as String?, ); -Map _$UpdateUserItemDataDtoToJson( - UpdateUserItemDataDto instance) => - { +Map _$UpdateUserItemDataDtoToJson(UpdateUserItemDataDto instance) => { if (instance.rating case final value?) 'Rating': value, - if (instance.playedPercentage case final value?) - 'PlayedPercentage': value, - if (instance.unplayedItemCount case final value?) - 'UnplayedItemCount': value, - if (instance.playbackPositionTicks case final value?) - 'PlaybackPositionTicks': value, + if (instance.playedPercentage case final value?) 'PlayedPercentage': value, + if (instance.unplayedItemCount case final value?) 'UnplayedItemCount': value, + if (instance.playbackPositionTicks case final value?) 'PlaybackPositionTicks': value, if (instance.playCount case final value?) 'PlayCount': value, if (instance.isFavorite case final value?) 'IsFavorite': value, if (instance.likes case final value?) 'Likes': value, - if (instance.lastPlayedDate?.toIso8601String() case final value?) - 'LastPlayedDate': value, + if (instance.lastPlayedDate?.toIso8601String() case final value?) 'LastPlayedDate': value, if (instance.played case final value?) 'Played': value, if (instance.key case final value?) 'Key': value, if (instance.itemId case final value?) 'ItemId': value, }; -UpdateUserPassword _$UpdateUserPasswordFromJson(Map json) => - UpdateUserPassword( +UpdateUserPassword _$UpdateUserPasswordFromJson(Map json) => UpdateUserPassword( currentPassword: json['CurrentPassword'] as String?, currentPw: json['CurrentPw'] as String?, newPw: json['NewPw'] as String?, resetPassword: json['ResetPassword'] as bool?, ); -Map _$UpdateUserPasswordToJson(UpdateUserPassword instance) => - { +Map _$UpdateUserPasswordToJson(UpdateUserPassword instance) => { if (instance.currentPassword case final value?) 'CurrentPassword': value, if (instance.currentPw case final value?) 'CurrentPw': value, if (instance.newPw case final value?) 'NewPw': value, if (instance.resetPassword case final value?) 'ResetPassword': value, }; -UploadSubtitleDto _$UploadSubtitleDtoFromJson(Map json) => - UploadSubtitleDto( +UploadSubtitleDto _$UploadSubtitleDtoFromJson(Map json) => UploadSubtitleDto( language: json['Language'] as String, format: json['Format'] as String, isForced: json['IsForced'] as bool, @@ -7472,8 +5351,7 @@ UploadSubtitleDto _$UploadSubtitleDtoFromJson(Map json) => data: json['Data'] as String, ); -Map _$UploadSubtitleDtoToJson(UploadSubtitleDto instance) => - { +Map _$UploadSubtitleDtoToJson(UploadSubtitleDto instance) => { 'Language': instance.language, 'Format': instance.format, 'IsForced': instance.isForced, @@ -7481,31 +5359,18 @@ Map _$UploadSubtitleDtoToJson(UploadSubtitleDto instance) => 'Data': instance.data, }; -UserConfiguration _$UserConfigurationFromJson(Map json) => - UserConfiguration( +UserConfiguration _$UserConfigurationFromJson(Map json) => UserConfiguration( audioLanguagePreference: json['AudioLanguagePreference'] as String?, playDefaultAudioTrack: json['PlayDefaultAudioTrack'] as bool?, subtitleLanguagePreference: json['SubtitleLanguagePreference'] as String?, displayMissingEpisodes: json['DisplayMissingEpisodes'] as bool?, - groupedFolders: (json['GroupedFolders'] as List?) - ?.map((e) => e as String) - .toList() ?? - [], + groupedFolders: (json['GroupedFolders'] as List?)?.map((e) => e as String).toList() ?? [], subtitleMode: subtitlePlaybackModeNullableFromJson(json['SubtitleMode']), displayCollectionsView: json['DisplayCollectionsView'] as bool?, enableLocalPassword: json['EnableLocalPassword'] as bool?, - orderedViews: (json['OrderedViews'] as List?) - ?.map((e) => e as String) - .toList() ?? - [], - latestItemsExcludes: (json['LatestItemsExcludes'] as List?) - ?.map((e) => e as String) - .toList() ?? - [], - myMediaExcludes: (json['MyMediaExcludes'] as List?) - ?.map((e) => e as String) - .toList() ?? - [], + orderedViews: (json['OrderedViews'] as List?)?.map((e) => e as String).toList() ?? [], + latestItemsExcludes: (json['LatestItemsExcludes'] as List?)?.map((e) => e as String).toList() ?? [], + myMediaExcludes: (json['MyMediaExcludes'] as List?)?.map((e) => e as String).toList() ?? [], hidePlayedInLatest: json['HidePlayedInLatest'] as bool?, rememberAudioSelections: json['RememberAudioSelections'] as bool?, rememberSubtitleSelections: json['RememberSubtitleSelections'] as bool?, @@ -7513,63 +5378,38 @@ UserConfiguration _$UserConfigurationFromJson(Map json) => castReceiverId: json['CastReceiverId'] as String?, ); -Map _$UserConfigurationToJson(UserConfiguration instance) => - { - if (instance.audioLanguagePreference case final value?) - 'AudioLanguagePreference': value, - if (instance.playDefaultAudioTrack case final value?) - 'PlayDefaultAudioTrack': value, - if (instance.subtitleLanguagePreference case final value?) - 'SubtitleLanguagePreference': value, - if (instance.displayMissingEpisodes case final value?) - 'DisplayMissingEpisodes': value, +Map _$UserConfigurationToJson(UserConfiguration instance) => { + if (instance.audioLanguagePreference case final value?) 'AudioLanguagePreference': value, + if (instance.playDefaultAudioTrack case final value?) 'PlayDefaultAudioTrack': value, + if (instance.subtitleLanguagePreference case final value?) 'SubtitleLanguagePreference': value, + if (instance.displayMissingEpisodes case final value?) 'DisplayMissingEpisodes': value, if (instance.groupedFolders case final value?) 'GroupedFolders': value, - if (subtitlePlaybackModeNullableToJson(instance.subtitleMode) - case final value?) - 'SubtitleMode': value, - if (instance.displayCollectionsView case final value?) - 'DisplayCollectionsView': value, - if (instance.enableLocalPassword case final value?) - 'EnableLocalPassword': value, + if (subtitlePlaybackModeNullableToJson(instance.subtitleMode) case final value?) 'SubtitleMode': value, + if (instance.displayCollectionsView case final value?) 'DisplayCollectionsView': value, + if (instance.enableLocalPassword case final value?) 'EnableLocalPassword': value, if (instance.orderedViews case final value?) 'OrderedViews': value, - if (instance.latestItemsExcludes case final value?) - 'LatestItemsExcludes': value, + if (instance.latestItemsExcludes case final value?) 'LatestItemsExcludes': value, if (instance.myMediaExcludes case final value?) 'MyMediaExcludes': value, - if (instance.hidePlayedInLatest case final value?) - 'HidePlayedInLatest': value, - if (instance.rememberAudioSelections case final value?) - 'RememberAudioSelections': value, - if (instance.rememberSubtitleSelections case final value?) - 'RememberSubtitleSelections': value, - if (instance.enableNextEpisodeAutoPlay case final value?) - 'EnableNextEpisodeAutoPlay': value, + if (instance.hidePlayedInLatest case final value?) 'HidePlayedInLatest': value, + if (instance.rememberAudioSelections case final value?) 'RememberAudioSelections': value, + if (instance.rememberSubtitleSelections case final value?) 'RememberSubtitleSelections': value, + if (instance.enableNextEpisodeAutoPlay case final value?) 'EnableNextEpisodeAutoPlay': value, if (instance.castReceiverId case final value?) 'CastReceiverId': value, }; -UserDataChangedMessage _$UserDataChangedMessageFromJson( - Map json) => - UserDataChangedMessage( - data: json['Data'] == null - ? null - : UserDataChangeInfo.fromJson(json['Data'] as Map), +UserDataChangedMessage _$UserDataChangedMessageFromJson(Map json) => UserDataChangedMessage( + data: json['Data'] == null ? null : UserDataChangeInfo.fromJson(json['Data'] as Map), messageId: json['MessageId'] as String?, - messageType: - UserDataChangedMessage.sessionMessageTypeMessageTypeNullableFromJson( - json['MessageType']), + messageType: UserDataChangedMessage.sessionMessageTypeMessageTypeNullableFromJson(json['MessageType']), ); -Map _$UserDataChangedMessageToJson( - UserDataChangedMessage instance) => - { +Map _$UserDataChangedMessageToJson(UserDataChangedMessage instance) => { if (instance.data?.toJson() case final value?) 'Data': value, if (instance.messageId case final value?) 'MessageId': value, - if (sessionMessageTypeNullableToJson(instance.messageType) - case final value?) - 'MessageType': value, + if (sessionMessageTypeNullableToJson(instance.messageType) case final value?) 'MessageType': value, }; -UserDataChangeInfo _$UserDataChangeInfoFromJson(Map json) => - UserDataChangeInfo( +UserDataChangeInfo _$UserDataChangeInfoFromJson(Map json) => UserDataChangeInfo( userId: json['UserId'] as String?, userDataList: (json['UserDataList'] as List?) ?.map((e) => UserItemDataDto.fromJson(e as Map)) @@ -7577,30 +5417,21 @@ UserDataChangeInfo _$UserDataChangeInfoFromJson(Map json) => [], ); -Map _$UserDataChangeInfoToJson(UserDataChangeInfo instance) => - { +Map _$UserDataChangeInfoToJson(UserDataChangeInfo instance) => { if (instance.userId case final value?) 'UserId': value, - if (instance.userDataList?.map((e) => e.toJson()).toList() - case final value?) - 'UserDataList': value, + if (instance.userDataList?.map((e) => e.toJson()).toList() case final value?) 'UserDataList': value, }; -UserDeletedMessage _$UserDeletedMessageFromJson(Map json) => - UserDeletedMessage( +UserDeletedMessage _$UserDeletedMessageFromJson(Map json) => UserDeletedMessage( data: json['Data'] as String?, messageId: json['MessageId'] as String?, - messageType: - UserDeletedMessage.sessionMessageTypeMessageTypeNullableFromJson( - json['MessageType']), + messageType: UserDeletedMessage.sessionMessageTypeMessageTypeNullableFromJson(json['MessageType']), ); -Map _$UserDeletedMessageToJson(UserDeletedMessage instance) => - { +Map _$UserDeletedMessageToJson(UserDeletedMessage instance) => { if (instance.data case final value?) 'Data': value, if (instance.messageId case final value?) 'MessageId': value, - if (sessionMessageTypeNullableToJson(instance.messageType) - case final value?) - 'MessageType': value, + if (sessionMessageTypeNullableToJson(instance.messageType) case final value?) 'MessageType': value, }; UserDto _$UserDtoFromJson(Map json) => UserDto( @@ -7613,21 +5444,13 @@ UserDto _$UserDtoFromJson(Map json) => UserDto( hasConfiguredPassword: json['HasConfiguredPassword'] as bool?, hasConfiguredEasyPassword: json['HasConfiguredEasyPassword'] as bool?, enableAutoLogin: json['EnableAutoLogin'] as bool?, - lastLoginDate: json['LastLoginDate'] == null - ? null - : DateTime.parse(json['LastLoginDate'] as String), - lastActivityDate: json['LastActivityDate'] == null - ? null - : DateTime.parse(json['LastActivityDate'] as String), + lastLoginDate: json['LastLoginDate'] == null ? null : DateTime.parse(json['LastLoginDate'] as String), + lastActivityDate: json['LastActivityDate'] == null ? null : DateTime.parse(json['LastActivityDate'] as String), configuration: json['Configuration'] == null ? null - : UserConfiguration.fromJson( - json['Configuration'] as Map), - policy: json['Policy'] == null - ? null - : UserPolicy.fromJson(json['Policy'] as Map), - primaryImageAspectRatio: - (json['PrimaryImageAspectRatio'] as num?)?.toDouble(), + : UserConfiguration.fromJson(json['Configuration'] as Map), + policy: json['Policy'] == null ? null : UserPolicy.fromJson(json['Policy'] as Map), + primaryImageAspectRatio: (json['PrimaryImageAspectRatio'] as num?)?.toDouble(), ); Map _$UserDtoToJson(UserDto instance) => { @@ -7637,24 +5460,17 @@ Map _$UserDtoToJson(UserDto instance) => { if (instance.id case final value?) 'Id': value, if (instance.primaryImageTag case final value?) 'PrimaryImageTag': value, if (instance.hasPassword case final value?) 'HasPassword': value, - if (instance.hasConfiguredPassword case final value?) - 'HasConfiguredPassword': value, - if (instance.hasConfiguredEasyPassword case final value?) - 'HasConfiguredEasyPassword': value, + if (instance.hasConfiguredPassword case final value?) 'HasConfiguredPassword': value, + if (instance.hasConfiguredEasyPassword case final value?) 'HasConfiguredEasyPassword': value, if (instance.enableAutoLogin case final value?) 'EnableAutoLogin': value, - if (instance.lastLoginDate?.toIso8601String() case final value?) - 'LastLoginDate': value, - if (instance.lastActivityDate?.toIso8601String() case final value?) - 'LastActivityDate': value, - if (instance.configuration?.toJson() case final value?) - 'Configuration': value, + if (instance.lastLoginDate?.toIso8601String() case final value?) 'LastLoginDate': value, + if (instance.lastActivityDate?.toIso8601String() case final value?) 'LastActivityDate': value, + if (instance.configuration?.toJson() case final value?) 'Configuration': value, if (instance.policy?.toJson() case final value?) 'Policy': value, - if (instance.primaryImageAspectRatio case final value?) - 'PrimaryImageAspectRatio': value, + if (instance.primaryImageAspectRatio case final value?) 'PrimaryImageAspectRatio': value, }; -UserItemDataDto _$UserItemDataDtoFromJson(Map json) => - UserItemDataDto( +UserItemDataDto _$UserItemDataDtoFromJson(Map json) => UserItemDataDto( rating: (json['Rating'] as num?)?.toDouble(), playedPercentage: (json['PlayedPercentage'] as num?)?.toDouble(), unplayedItemCount: (json['UnplayedItemCount'] as num?)?.toInt(), @@ -7662,28 +5478,21 @@ UserItemDataDto _$UserItemDataDtoFromJson(Map json) => playCount: (json['PlayCount'] as num?)?.toInt(), isFavorite: json['IsFavorite'] as bool?, likes: json['Likes'] as bool?, - lastPlayedDate: json['LastPlayedDate'] == null - ? null - : DateTime.parse(json['LastPlayedDate'] as String), + lastPlayedDate: json['LastPlayedDate'] == null ? null : DateTime.parse(json['LastPlayedDate'] as String), played: json['Played'] as bool?, key: json['Key'] as String?, itemId: json['ItemId'] as String?, ); -Map _$UserItemDataDtoToJson(UserItemDataDto instance) => - { +Map _$UserItemDataDtoToJson(UserItemDataDto instance) => { if (instance.rating case final value?) 'Rating': value, - if (instance.playedPercentage case final value?) - 'PlayedPercentage': value, - if (instance.unplayedItemCount case final value?) - 'UnplayedItemCount': value, - if (instance.playbackPositionTicks case final value?) - 'PlaybackPositionTicks': value, + if (instance.playedPercentage case final value?) 'PlayedPercentage': value, + if (instance.unplayedItemCount case final value?) 'UnplayedItemCount': value, + if (instance.playbackPositionTicks case final value?) 'PlaybackPositionTicks': value, if (instance.playCount case final value?) 'PlayCount': value, if (instance.isFavorite case final value?) 'IsFavorite': value, if (instance.likes case final value?) 'Likes': value, - if (instance.lastPlayedDate?.toIso8601String() case final value?) - 'LastPlayedDate': value, + if (instance.lastPlayedDate?.toIso8601String() case final value?) 'LastPlayedDate': value, if (instance.played case final value?) 'Played': value, if (instance.key case final value?) 'Key': value, if (instance.itemId case final value?) 'ItemId': value, @@ -7692,221 +5501,133 @@ Map _$UserItemDataDtoToJson(UserItemDataDto instance) => UserPolicy _$UserPolicyFromJson(Map json) => UserPolicy( isAdministrator: json['IsAdministrator'] as bool?, isHidden: json['IsHidden'] as bool?, - enableCollectionManagement: - json['EnableCollectionManagement'] as bool? ?? false, - enableSubtitleManagement: - json['EnableSubtitleManagement'] as bool? ?? false, + enableCollectionManagement: json['EnableCollectionManagement'] as bool? ?? false, + enableSubtitleManagement: json['EnableSubtitleManagement'] as bool? ?? false, enableLyricManagement: json['EnableLyricManagement'] as bool? ?? false, isDisabled: json['IsDisabled'] as bool?, maxParentalRating: (json['MaxParentalRating'] as num?)?.toInt(), maxParentalSubRating: (json['MaxParentalSubRating'] as num?)?.toInt(), - blockedTags: (json['BlockedTags'] as List?) - ?.map((e) => e as String) - .toList() ?? - [], - allowedTags: (json['AllowedTags'] as List?) - ?.map((e) => e as String) - .toList() ?? - [], + blockedTags: (json['BlockedTags'] as List?)?.map((e) => e as String).toList() ?? [], + allowedTags: (json['AllowedTags'] as List?)?.map((e) => e as String).toList() ?? [], enableUserPreferenceAccess: json['EnableUserPreferenceAccess'] as bool?, accessSchedules: (json['AccessSchedules'] as List?) ?.map((e) => AccessSchedule.fromJson(e as Map)) .toList() ?? [], - blockUnratedItems: - unratedItemListFromJson(json['BlockUnratedItems'] as List?), - enableRemoteControlOfOtherUsers: - json['EnableRemoteControlOfOtherUsers'] as bool?, + blockUnratedItems: unratedItemListFromJson(json['BlockUnratedItems'] as List?), + enableRemoteControlOfOtherUsers: json['EnableRemoteControlOfOtherUsers'] as bool?, enableSharedDeviceControl: json['EnableSharedDeviceControl'] as bool?, enableRemoteAccess: json['EnableRemoteAccess'] as bool?, enableLiveTvManagement: json['EnableLiveTvManagement'] as bool?, enableLiveTvAccess: json['EnableLiveTvAccess'] as bool?, enableMediaPlayback: json['EnableMediaPlayback'] as bool?, - enableAudioPlaybackTranscoding: - json['EnableAudioPlaybackTranscoding'] as bool?, - enableVideoPlaybackTranscoding: - json['EnableVideoPlaybackTranscoding'] as bool?, + enableAudioPlaybackTranscoding: json['EnableAudioPlaybackTranscoding'] as bool?, + enableVideoPlaybackTranscoding: json['EnableVideoPlaybackTranscoding'] as bool?, enablePlaybackRemuxing: json['EnablePlaybackRemuxing'] as bool?, - forceRemoteSourceTranscoding: - json['ForceRemoteSourceTranscoding'] as bool?, + forceRemoteSourceTranscoding: json['ForceRemoteSourceTranscoding'] as bool?, enableContentDeletion: json['EnableContentDeletion'] as bool?, enableContentDeletionFromFolders: - (json['EnableContentDeletionFromFolders'] as List?) - ?.map((e) => e as String) - .toList() ?? - [], + (json['EnableContentDeletionFromFolders'] as List?)?.map((e) => e as String).toList() ?? [], enableContentDownloading: json['EnableContentDownloading'] as bool?, enableSyncTranscoding: json['EnableSyncTranscoding'] as bool?, enableMediaConversion: json['EnableMediaConversion'] as bool?, - enabledDevices: (json['EnabledDevices'] as List?) - ?.map((e) => e as String) - .toList() ?? - [], + enabledDevices: (json['EnabledDevices'] as List?)?.map((e) => e as String).toList() ?? [], enableAllDevices: json['EnableAllDevices'] as bool?, - enabledChannels: (json['EnabledChannels'] as List?) - ?.map((e) => e as String) - .toList() ?? - [], + enabledChannels: (json['EnabledChannels'] as List?)?.map((e) => e as String).toList() ?? [], enableAllChannels: json['EnableAllChannels'] as bool?, - enabledFolders: (json['EnabledFolders'] as List?) - ?.map((e) => e as String) - .toList() ?? - [], + enabledFolders: (json['EnabledFolders'] as List?)?.map((e) => e as String).toList() ?? [], enableAllFolders: json['EnableAllFolders'] as bool?, - invalidLoginAttemptCount: - (json['InvalidLoginAttemptCount'] as num?)?.toInt(), - loginAttemptsBeforeLockout: - (json['LoginAttemptsBeforeLockout'] as num?)?.toInt(), + invalidLoginAttemptCount: (json['InvalidLoginAttemptCount'] as num?)?.toInt(), + loginAttemptsBeforeLockout: (json['LoginAttemptsBeforeLockout'] as num?)?.toInt(), maxActiveSessions: (json['MaxActiveSessions'] as num?)?.toInt(), enablePublicSharing: json['EnablePublicSharing'] as bool?, - blockedMediaFolders: (json['BlockedMediaFolders'] as List?) - ?.map((e) => e as String) - .toList() ?? - [], - blockedChannels: (json['BlockedChannels'] as List?) - ?.map((e) => e as String) - .toList() ?? - [], - remoteClientBitrateLimit: - (json['RemoteClientBitrateLimit'] as num?)?.toInt(), + blockedMediaFolders: (json['BlockedMediaFolders'] as List?)?.map((e) => e as String).toList() ?? [], + blockedChannels: (json['BlockedChannels'] as List?)?.map((e) => e as String).toList() ?? [], + remoteClientBitrateLimit: (json['RemoteClientBitrateLimit'] as num?)?.toInt(), authenticationProviderId: json['AuthenticationProviderId'] as String, passwordResetProviderId: json['PasswordResetProviderId'] as String, - syncPlayAccess: - syncPlayUserAccessTypeNullableFromJson(json['SyncPlayAccess']), + syncPlayAccess: syncPlayUserAccessTypeNullableFromJson(json['SyncPlayAccess']), ); -Map _$UserPolicyToJson(UserPolicy instance) => - { +Map _$UserPolicyToJson(UserPolicy instance) => { if (instance.isAdministrator case final value?) 'IsAdministrator': value, if (instance.isHidden case final value?) 'IsHidden': value, - if (instance.enableCollectionManagement case final value?) - 'EnableCollectionManagement': value, - if (instance.enableSubtitleManagement case final value?) - 'EnableSubtitleManagement': value, - if (instance.enableLyricManagement case final value?) - 'EnableLyricManagement': value, + if (instance.enableCollectionManagement case final value?) 'EnableCollectionManagement': value, + if (instance.enableSubtitleManagement case final value?) 'EnableSubtitleManagement': value, + if (instance.enableLyricManagement case final value?) 'EnableLyricManagement': value, if (instance.isDisabled case final value?) 'IsDisabled': value, - if (instance.maxParentalRating case final value?) - 'MaxParentalRating': value, - if (instance.maxParentalSubRating case final value?) - 'MaxParentalSubRating': value, + if (instance.maxParentalRating case final value?) 'MaxParentalRating': value, + if (instance.maxParentalSubRating case final value?) 'MaxParentalSubRating': value, if (instance.blockedTags case final value?) 'BlockedTags': value, if (instance.allowedTags case final value?) 'AllowedTags': value, - if (instance.enableUserPreferenceAccess case final value?) - 'EnableUserPreferenceAccess': value, - if (instance.accessSchedules?.map((e) => e.toJson()).toList() - case final value?) - 'AccessSchedules': value, + if (instance.enableUserPreferenceAccess case final value?) 'EnableUserPreferenceAccess': value, + if (instance.accessSchedules?.map((e) => e.toJson()).toList() case final value?) 'AccessSchedules': value, 'BlockUnratedItems': unratedItemListToJson(instance.blockUnratedItems), - if (instance.enableRemoteControlOfOtherUsers case final value?) - 'EnableRemoteControlOfOtherUsers': value, - if (instance.enableSharedDeviceControl case final value?) - 'EnableSharedDeviceControl': value, - if (instance.enableRemoteAccess case final value?) - 'EnableRemoteAccess': value, - if (instance.enableLiveTvManagement case final value?) - 'EnableLiveTvManagement': value, - if (instance.enableLiveTvAccess case final value?) - 'EnableLiveTvAccess': value, - if (instance.enableMediaPlayback case final value?) - 'EnableMediaPlayback': value, - if (instance.enableAudioPlaybackTranscoding case final value?) - 'EnableAudioPlaybackTranscoding': value, - if (instance.enableVideoPlaybackTranscoding case final value?) - 'EnableVideoPlaybackTranscoding': value, - if (instance.enablePlaybackRemuxing case final value?) - 'EnablePlaybackRemuxing': value, - if (instance.forceRemoteSourceTranscoding case final value?) - 'ForceRemoteSourceTranscoding': value, - if (instance.enableContentDeletion case final value?) - 'EnableContentDeletion': value, - if (instance.enableContentDeletionFromFolders case final value?) - 'EnableContentDeletionFromFolders': value, - if (instance.enableContentDownloading case final value?) - 'EnableContentDownloading': value, - if (instance.enableSyncTranscoding case final value?) - 'EnableSyncTranscoding': value, - if (instance.enableMediaConversion case final value?) - 'EnableMediaConversion': value, + if (instance.enableRemoteControlOfOtherUsers case final value?) 'EnableRemoteControlOfOtherUsers': value, + if (instance.enableSharedDeviceControl case final value?) 'EnableSharedDeviceControl': value, + if (instance.enableRemoteAccess case final value?) 'EnableRemoteAccess': value, + if (instance.enableLiveTvManagement case final value?) 'EnableLiveTvManagement': value, + if (instance.enableLiveTvAccess case final value?) 'EnableLiveTvAccess': value, + if (instance.enableMediaPlayback case final value?) 'EnableMediaPlayback': value, + if (instance.enableAudioPlaybackTranscoding case final value?) 'EnableAudioPlaybackTranscoding': value, + if (instance.enableVideoPlaybackTranscoding case final value?) 'EnableVideoPlaybackTranscoding': value, + if (instance.enablePlaybackRemuxing case final value?) 'EnablePlaybackRemuxing': value, + if (instance.forceRemoteSourceTranscoding case final value?) 'ForceRemoteSourceTranscoding': value, + if (instance.enableContentDeletion case final value?) 'EnableContentDeletion': value, + if (instance.enableContentDeletionFromFolders case final value?) 'EnableContentDeletionFromFolders': value, + if (instance.enableContentDownloading case final value?) 'EnableContentDownloading': value, + if (instance.enableSyncTranscoding case final value?) 'EnableSyncTranscoding': value, + if (instance.enableMediaConversion case final value?) 'EnableMediaConversion': value, if (instance.enabledDevices case final value?) 'EnabledDevices': value, - if (instance.enableAllDevices case final value?) - 'EnableAllDevices': value, + if (instance.enableAllDevices case final value?) 'EnableAllDevices': value, if (instance.enabledChannels case final value?) 'EnabledChannels': value, - if (instance.enableAllChannels case final value?) - 'EnableAllChannels': value, + if (instance.enableAllChannels case final value?) 'EnableAllChannels': value, if (instance.enabledFolders case final value?) 'EnabledFolders': value, - if (instance.enableAllFolders case final value?) - 'EnableAllFolders': value, - if (instance.invalidLoginAttemptCount case final value?) - 'InvalidLoginAttemptCount': value, - if (instance.loginAttemptsBeforeLockout case final value?) - 'LoginAttemptsBeforeLockout': value, - if (instance.maxActiveSessions case final value?) - 'MaxActiveSessions': value, - if (instance.enablePublicSharing case final value?) - 'EnablePublicSharing': value, - if (instance.blockedMediaFolders case final value?) - 'BlockedMediaFolders': value, + if (instance.enableAllFolders case final value?) 'EnableAllFolders': value, + if (instance.invalidLoginAttemptCount case final value?) 'InvalidLoginAttemptCount': value, + if (instance.loginAttemptsBeforeLockout case final value?) 'LoginAttemptsBeforeLockout': value, + if (instance.maxActiveSessions case final value?) 'MaxActiveSessions': value, + if (instance.enablePublicSharing case final value?) 'EnablePublicSharing': value, + if (instance.blockedMediaFolders case final value?) 'BlockedMediaFolders': value, if (instance.blockedChannels case final value?) 'BlockedChannels': value, - if (instance.remoteClientBitrateLimit case final value?) - 'RemoteClientBitrateLimit': value, + if (instance.remoteClientBitrateLimit case final value?) 'RemoteClientBitrateLimit': value, 'AuthenticationProviderId': instance.authenticationProviderId, 'PasswordResetProviderId': instance.passwordResetProviderId, - if (syncPlayUserAccessTypeNullableToJson(instance.syncPlayAccess) - case final value?) - 'SyncPlayAccess': value, + if (syncPlayUserAccessTypeNullableToJson(instance.syncPlayAccess) case final value?) 'SyncPlayAccess': value, }; -UserUpdatedMessage _$UserUpdatedMessageFromJson(Map json) => - UserUpdatedMessage( - data: json['Data'] == null - ? null - : UserDto.fromJson(json['Data'] as Map), +UserUpdatedMessage _$UserUpdatedMessageFromJson(Map json) => UserUpdatedMessage( + data: json['Data'] == null ? null : UserDto.fromJson(json['Data'] as Map), messageId: json['MessageId'] as String?, - messageType: - UserUpdatedMessage.sessionMessageTypeMessageTypeNullableFromJson( - json['MessageType']), + messageType: UserUpdatedMessage.sessionMessageTypeMessageTypeNullableFromJson(json['MessageType']), ); -Map _$UserUpdatedMessageToJson(UserUpdatedMessage instance) => - { +Map _$UserUpdatedMessageToJson(UserUpdatedMessage instance) => { if (instance.data?.toJson() case final value?) 'Data': value, if (instance.messageId case final value?) 'MessageId': value, - if (sessionMessageTypeNullableToJson(instance.messageType) - case final value?) - 'MessageType': value, + if (sessionMessageTypeNullableToJson(instance.messageType) case final value?) 'MessageType': value, }; -UtcTimeResponse _$UtcTimeResponseFromJson(Map json) => - UtcTimeResponse( - requestReceptionTime: json['RequestReceptionTime'] == null - ? null - : DateTime.parse(json['RequestReceptionTime'] as String), - responseTransmissionTime: json['ResponseTransmissionTime'] == null - ? null - : DateTime.parse(json['ResponseTransmissionTime'] as String), +UtcTimeResponse _$UtcTimeResponseFromJson(Map json) => UtcTimeResponse( + requestReceptionTime: + json['RequestReceptionTime'] == null ? null : DateTime.parse(json['RequestReceptionTime'] as String), + responseTransmissionTime: + json['ResponseTransmissionTime'] == null ? null : DateTime.parse(json['ResponseTransmissionTime'] as String), ); -Map _$UtcTimeResponseToJson(UtcTimeResponse instance) => - { - if (instance.requestReceptionTime?.toIso8601String() case final value?) - 'RequestReceptionTime': value, - if (instance.responseTransmissionTime?.toIso8601String() - case final value?) - 'ResponseTransmissionTime': value, +Map _$UtcTimeResponseToJson(UtcTimeResponse instance) => { + if (instance.requestReceptionTime?.toIso8601String() case final value?) 'RequestReceptionTime': value, + if (instance.responseTransmissionTime?.toIso8601String() case final value?) 'ResponseTransmissionTime': value, }; -ValidatePathDto _$ValidatePathDtoFromJson(Map json) => - ValidatePathDto( +ValidatePathDto _$ValidatePathDtoFromJson(Map json) => ValidatePathDto( validateWritable: json['ValidateWritable'] as bool?, path: json['Path'] as String?, isFile: json['IsFile'] as bool?, ); -Map _$ValidatePathDtoToJson(ValidatePathDto instance) => - { - if (instance.validateWritable case final value?) - 'ValidateWritable': value, +Map _$ValidatePathDtoToJson(ValidatePathDto instance) => { + if (instance.validateWritable case final value?) 'ValidateWritable': value, if (instance.path case final value?) 'Path': value, if (instance.isFile case final value?) 'IsFile': value, }; @@ -7923,8 +5644,7 @@ VersionInfo _$VersionInfoFromJson(Map json) => VersionInfo( repositoryUrl: json['repositoryUrl'] as String?, ); -Map _$VersionInfoToJson(VersionInfo instance) => - { +Map _$VersionInfoToJson(VersionInfo instance) => { if (instance.version case final value?) 'version': value, if (instance.versionNumber case final value?) 'VersionNumber': value, if (instance.changelog case final value?) 'changelog': value, @@ -7936,73 +5656,51 @@ Map _$VersionInfoToJson(VersionInfo instance) => if (instance.repositoryUrl case final value?) 'repositoryUrl': value, }; -VirtualFolderInfo _$VirtualFolderInfoFromJson(Map json) => - VirtualFolderInfo( +VirtualFolderInfo _$VirtualFolderInfoFromJson(Map json) => VirtualFolderInfo( name: json['Name'] as String?, - locations: (json['Locations'] as List?) - ?.map((e) => e as String) - .toList() ?? - [], - collectionType: - collectionTypeOptionsNullableFromJson(json['CollectionType']), + locations: (json['Locations'] as List?)?.map((e) => e as String).toList() ?? [], + collectionType: collectionTypeOptionsNullableFromJson(json['CollectionType']), libraryOptions: json['LibraryOptions'] == null ? null - : LibraryOptions.fromJson( - json['LibraryOptions'] as Map), + : LibraryOptions.fromJson(json['LibraryOptions'] as Map), itemId: json['ItemId'] as String?, primaryImageItemId: json['PrimaryImageItemId'] as String?, refreshProgress: (json['RefreshProgress'] as num?)?.toDouble(), refreshStatus: json['RefreshStatus'] as String?, ); -Map _$VirtualFolderInfoToJson(VirtualFolderInfo instance) => - { +Map _$VirtualFolderInfoToJson(VirtualFolderInfo instance) => { if (instance.name case final value?) 'Name': value, if (instance.locations case final value?) 'Locations': value, - if (collectionTypeOptionsNullableToJson(instance.collectionType) - case final value?) - 'CollectionType': value, - if (instance.libraryOptions?.toJson() case final value?) - 'LibraryOptions': value, + if (collectionTypeOptionsNullableToJson(instance.collectionType) case final value?) 'CollectionType': value, + if (instance.libraryOptions?.toJson() case final value?) 'LibraryOptions': value, if (instance.itemId case final value?) 'ItemId': value, - if (instance.primaryImageItemId case final value?) - 'PrimaryImageItemId': value, + if (instance.primaryImageItemId case final value?) 'PrimaryImageItemId': value, if (instance.refreshProgress case final value?) 'RefreshProgress': value, if (instance.refreshStatus case final value?) 'RefreshStatus': value, }; -WebSocketMessage _$WebSocketMessageFromJson(Map json) => - WebSocketMessage(); +WebSocketMessage _$WebSocketMessageFromJson(Map json) => WebSocketMessage(); -Map _$WebSocketMessageToJson(WebSocketMessage instance) => - {}; +Map _$WebSocketMessageToJson(WebSocketMessage instance) => {}; -XbmcMetadataOptions _$XbmcMetadataOptionsFromJson(Map json) => - XbmcMetadataOptions( +XbmcMetadataOptions _$XbmcMetadataOptionsFromJson(Map json) => XbmcMetadataOptions( userId: json['UserId'] as String?, releaseDateFormat: json['ReleaseDateFormat'] as String?, saveImagePathsInNfo: json['SaveImagePathsInNfo'] as bool?, enablePathSubstitution: json['EnablePathSubstitution'] as bool?, - enableExtraThumbsDuplication: - json['EnableExtraThumbsDuplication'] as bool?, + enableExtraThumbsDuplication: json['EnableExtraThumbsDuplication'] as bool?, ); -Map _$XbmcMetadataOptionsToJson( - XbmcMetadataOptions instance) => - { +Map _$XbmcMetadataOptionsToJson(XbmcMetadataOptions instance) => { if (instance.userId case final value?) 'UserId': value, - if (instance.releaseDateFormat case final value?) - 'ReleaseDateFormat': value, - if (instance.saveImagePathsInNfo case final value?) - 'SaveImagePathsInNfo': value, - if (instance.enablePathSubstitution case final value?) - 'EnablePathSubstitution': value, - if (instance.enableExtraThumbsDuplication case final value?) - 'EnableExtraThumbsDuplication': value, - }; - -BaseItemDto$ImageBlurHashes _$BaseItemDto$ImageBlurHashesFromJson( - Map json) => + if (instance.releaseDateFormat case final value?) 'ReleaseDateFormat': value, + if (instance.saveImagePathsInNfo case final value?) 'SaveImagePathsInNfo': value, + if (instance.enablePathSubstitution case final value?) 'EnablePathSubstitution': value, + if (instance.enableExtraThumbsDuplication case final value?) 'EnableExtraThumbsDuplication': value, + }; + +BaseItemDto$ImageBlurHashes _$BaseItemDto$ImageBlurHashesFromJson(Map json) => BaseItemDto$ImageBlurHashes( primary: json['Primary'] as Map?, art: json['Art'] as Map?, @@ -8019,9 +5717,7 @@ BaseItemDto$ImageBlurHashes _$BaseItemDto$ImageBlurHashesFromJson( profile: json['Profile'] as Map?, ); -Map _$BaseItemDto$ImageBlurHashesToJson( - BaseItemDto$ImageBlurHashes instance) => - { +Map _$BaseItemDto$ImageBlurHashesToJson(BaseItemDto$ImageBlurHashes instance) => { if (instance.primary case final value?) 'Primary': value, if (instance.art case final value?) 'Art': value, if (instance.backdrop case final value?) 'Backdrop': value, @@ -8037,8 +5733,7 @@ Map _$BaseItemDto$ImageBlurHashesToJson( if (instance.profile case final value?) 'Profile': value, }; -BaseItemPerson$ImageBlurHashes _$BaseItemPerson$ImageBlurHashesFromJson( - Map json) => +BaseItemPerson$ImageBlurHashes _$BaseItemPerson$ImageBlurHashesFromJson(Map json) => BaseItemPerson$ImageBlurHashes( primary: json['Primary'] as Map?, art: json['Art'] as Map?, @@ -8055,8 +5750,7 @@ BaseItemPerson$ImageBlurHashes _$BaseItemPerson$ImageBlurHashesFromJson( profile: json['Profile'] as Map?, ); -Map _$BaseItemPerson$ImageBlurHashesToJson( - BaseItemPerson$ImageBlurHashes instance) => +Map _$BaseItemPerson$ImageBlurHashesToJson(BaseItemPerson$ImageBlurHashes instance) => { if (instance.primary case final value?) 'Primary': value, if (instance.art case final value?) 'Art': value, diff --git a/lib/models/account_model.freezed.dart b/lib/models/account_model.freezed.dart index 696b5f57c..209837cc3 100644 --- a/lib/models/account_model.freezed.dart +++ b/lib/models/account_model.freezed.dart @@ -26,8 +26,7 @@ mixin _$AccountModel implements DiagnosticableTreeMixin { List get latestItemsExcludes; List get searchQueryHistory; bool get quickConnectState; - List - get libraryFilters; //Server values not stored in the database + List get libraryFilters; //Server values not stored in the database @JsonKey(includeFromJson: false, includeToJson: false) UserPolicy? get policy; @JsonKey(includeFromJson: false, includeToJson: false) @@ -45,8 +44,7 @@ mixin _$AccountModel implements DiagnosticableTreeMixin { @JsonKey(includeFromJson: false, includeToJson: false) @pragma('vm:prefer-inline') $AccountModelCopyWith get copyWith => - _$AccountModelCopyWithImpl( - this as AccountModel, _$identity); + _$AccountModelCopyWithImpl(this as AccountModel, _$identity); /// Serializes this AccountModel to a JSON map. Map toJson(); @@ -83,9 +81,7 @@ mixin _$AccountModel implements DiagnosticableTreeMixin { /// @nodoc abstract mixin class $AccountModelCopyWith<$Res> { - factory $AccountModelCopyWith( - AccountModel value, $Res Function(AccountModel) _then) = - _$AccountModelCopyWithImpl; + factory $AccountModelCopyWith(AccountModel value, $Res Function(AccountModel) _then) = _$AccountModelCopyWithImpl; @useResult $Res call( {String name, @@ -101,13 +97,10 @@ abstract mixin class $AccountModelCopyWith<$Res> { bool quickConnectState, List libraryFilters, @JsonKey(includeFromJson: false, includeToJson: false) UserPolicy? policy, - @JsonKey(includeFromJson: false, includeToJson: false) - ServerConfiguration? serverConfiguration, - @JsonKey(includeFromJson: false, includeToJson: false) - UserConfiguration? userConfiguration, + @JsonKey(includeFromJson: false, includeToJson: false) ServerConfiguration? serverConfiguration, + @JsonKey(includeFromJson: false, includeToJson: false) UserConfiguration? userConfiguration, @JsonKey(includeFromJson: false, includeToJson: false) bool? hasPassword, - @JsonKey(includeFromJson: false, includeToJson: false) - bool? hasConfiguredPassword, + @JsonKey(includeFromJson: false, includeToJson: false) bool? hasConfiguredPassword, UserSettings? userSettings}); $CredentialsModelCopyWith<$Res> get credentials; @@ -241,8 +234,7 @@ class _$AccountModelCopyWithImpl<$Res> implements $AccountModelCopyWith<$Res> { return null; } - return $SeerrCredentialsModelCopyWith<$Res>(_self.seerrCredentials!, - (value) { + return $SeerrCredentialsModelCopyWith<$Res>(_self.seerrCredentials!, (value) { return _then(_self.copyWith(seerrCredentials: value)); }); } @@ -368,16 +360,11 @@ extension AccountModelPatterns on AccountModel { List searchQueryHistory, bool quickConnectState, List libraryFilters, - @JsonKey(includeFromJson: false, includeToJson: false) - UserPolicy? policy, - @JsonKey(includeFromJson: false, includeToJson: false) - ServerConfiguration? serverConfiguration, - @JsonKey(includeFromJson: false, includeToJson: false) - UserConfiguration? userConfiguration, - @JsonKey(includeFromJson: false, includeToJson: false) - bool? hasPassword, - @JsonKey(includeFromJson: false, includeToJson: false) - bool? hasConfiguredPassword, + @JsonKey(includeFromJson: false, includeToJson: false) UserPolicy? policy, + @JsonKey(includeFromJson: false, includeToJson: false) ServerConfiguration? serverConfiguration, + @JsonKey(includeFromJson: false, includeToJson: false) UserConfiguration? userConfiguration, + @JsonKey(includeFromJson: false, includeToJson: false) bool? hasPassword, + @JsonKey(includeFromJson: false, includeToJson: false) bool? hasConfiguredPassword, UserSettings? userSettings)? $default, { required TResult orElse(), @@ -437,16 +424,11 @@ extension AccountModelPatterns on AccountModel { List searchQueryHistory, bool quickConnectState, List libraryFilters, - @JsonKey(includeFromJson: false, includeToJson: false) - UserPolicy? policy, - @JsonKey(includeFromJson: false, includeToJson: false) - ServerConfiguration? serverConfiguration, - @JsonKey(includeFromJson: false, includeToJson: false) - UserConfiguration? userConfiguration, - @JsonKey(includeFromJson: false, includeToJson: false) - bool? hasPassword, - @JsonKey(includeFromJson: false, includeToJson: false) - bool? hasConfiguredPassword, + @JsonKey(includeFromJson: false, includeToJson: false) UserPolicy? policy, + @JsonKey(includeFromJson: false, includeToJson: false) ServerConfiguration? serverConfiguration, + @JsonKey(includeFromJson: false, includeToJson: false) UserConfiguration? userConfiguration, + @JsonKey(includeFromJson: false, includeToJson: false) bool? hasPassword, + @JsonKey(includeFromJson: false, includeToJson: false) bool? hasConfiguredPassword, UserSettings? userSettings) $default, ) { @@ -504,16 +486,11 @@ extension AccountModelPatterns on AccountModel { List searchQueryHistory, bool quickConnectState, List libraryFilters, - @JsonKey(includeFromJson: false, includeToJson: false) - UserPolicy? policy, - @JsonKey(includeFromJson: false, includeToJson: false) - ServerConfiguration? serverConfiguration, - @JsonKey(includeFromJson: false, includeToJson: false) - UserConfiguration? userConfiguration, - @JsonKey(includeFromJson: false, includeToJson: false) - bool? hasPassword, - @JsonKey(includeFromJson: false, includeToJson: false) - bool? hasConfiguredPassword, + @JsonKey(includeFromJson: false, includeToJson: false) UserPolicy? policy, + @JsonKey(includeFromJson: false, includeToJson: false) ServerConfiguration? serverConfiguration, + @JsonKey(includeFromJson: false, includeToJson: false) UserConfiguration? userConfiguration, + @JsonKey(includeFromJson: false, includeToJson: false) bool? hasPassword, + @JsonKey(includeFromJson: false, includeToJson: false) bool? hasConfiguredPassword, UserSettings? userSettings)? $default, ) { @@ -562,20 +539,16 @@ class _AccountModel extends AccountModel with DiagnosticableTreeMixin { this.quickConnectState = false, final List libraryFilters = const [], @JsonKey(includeFromJson: false, includeToJson: false) this.policy, - @JsonKey(includeFromJson: false, includeToJson: false) - this.serverConfiguration, - @JsonKey(includeFromJson: false, includeToJson: false) - this.userConfiguration, + @JsonKey(includeFromJson: false, includeToJson: false) this.serverConfiguration, + @JsonKey(includeFromJson: false, includeToJson: false) this.userConfiguration, @JsonKey(includeFromJson: false, includeToJson: false) this.hasPassword, - @JsonKey(includeFromJson: false, includeToJson: false) - this.hasConfiguredPassword, + @JsonKey(includeFromJson: false, includeToJson: false) this.hasConfiguredPassword, this.userSettings}) : _latestItemsExcludes = latestItemsExcludes, _searchQueryHistory = searchQueryHistory, _libraryFilters = libraryFilters, super._(); - factory _AccountModel.fromJson(Map json) => - _$AccountModelFromJson(json); + factory _AccountModel.fromJson(Map json) => _$AccountModelFromJson(json); @override final String name; @@ -600,8 +573,7 @@ class _AccountModel extends AccountModel with DiagnosticableTreeMixin { @override @JsonKey() List get latestItemsExcludes { - if (_latestItemsExcludes is EqualUnmodifiableListView) - return _latestItemsExcludes; + if (_latestItemsExcludes is EqualUnmodifiableListView) return _latestItemsExcludes; // ignore: implicit_dynamic_type return EqualUnmodifiableListView(_latestItemsExcludes); } @@ -610,8 +582,7 @@ class _AccountModel extends AccountModel with DiagnosticableTreeMixin { @override @JsonKey() List get searchQueryHistory { - if (_searchQueryHistory is EqualUnmodifiableListView) - return _searchQueryHistory; + if (_searchQueryHistory is EqualUnmodifiableListView) return _searchQueryHistory; // ignore: implicit_dynamic_type return EqualUnmodifiableListView(_searchQueryHistory); } @@ -652,8 +623,7 @@ class _AccountModel extends AccountModel with DiagnosticableTreeMixin { @override @JsonKey(includeFromJson: false, includeToJson: false) @pragma('vm:prefer-inline') - _$AccountModelCopyWith<_AccountModel> get copyWith => - __$AccountModelCopyWithImpl<_AccountModel>(this, _$identity); + _$AccountModelCopyWith<_AccountModel> get copyWith => __$AccountModelCopyWithImpl<_AccountModel>(this, _$identity); @override Map toJson() { @@ -693,11 +663,8 @@ class _AccountModel extends AccountModel with DiagnosticableTreeMixin { } /// @nodoc -abstract mixin class _$AccountModelCopyWith<$Res> - implements $AccountModelCopyWith<$Res> { - factory _$AccountModelCopyWith( - _AccountModel value, $Res Function(_AccountModel) _then) = - __$AccountModelCopyWithImpl; +abstract mixin class _$AccountModelCopyWith<$Res> implements $AccountModelCopyWith<$Res> { + factory _$AccountModelCopyWith(_AccountModel value, $Res Function(_AccountModel) _then) = __$AccountModelCopyWithImpl; @override @useResult $Res call( @@ -714,13 +681,10 @@ abstract mixin class _$AccountModelCopyWith<$Res> bool quickConnectState, List libraryFilters, @JsonKey(includeFromJson: false, includeToJson: false) UserPolicy? policy, - @JsonKey(includeFromJson: false, includeToJson: false) - ServerConfiguration? serverConfiguration, - @JsonKey(includeFromJson: false, includeToJson: false) - UserConfiguration? userConfiguration, + @JsonKey(includeFromJson: false, includeToJson: false) ServerConfiguration? serverConfiguration, + @JsonKey(includeFromJson: false, includeToJson: false) UserConfiguration? userConfiguration, @JsonKey(includeFromJson: false, includeToJson: false) bool? hasPassword, - @JsonKey(includeFromJson: false, includeToJson: false) - bool? hasConfiguredPassword, + @JsonKey(includeFromJson: false, includeToJson: false) bool? hasConfiguredPassword, UserSettings? userSettings}); @override @@ -732,8 +696,7 @@ abstract mixin class _$AccountModelCopyWith<$Res> } /// @nodoc -class __$AccountModelCopyWithImpl<$Res> - implements _$AccountModelCopyWith<$Res> { +class __$AccountModelCopyWithImpl<$Res> implements _$AccountModelCopyWith<$Res> { __$AccountModelCopyWithImpl(this._self, this._then); final _AccountModel _self; @@ -858,8 +821,7 @@ class __$AccountModelCopyWithImpl<$Res> return null; } - return $SeerrCredentialsModelCopyWith<$Res>(_self.seerrCredentials!, - (value) { + return $SeerrCredentialsModelCopyWith<$Res>(_self.seerrCredentials!, (value) { return _then(_self.copyWith(seerrCredentials: value)); }); } @@ -889,8 +851,7 @@ mixin _$UserSettings implements DiagnosticableTreeMixin { @JsonKey(includeFromJson: false, includeToJson: false) @pragma('vm:prefer-inline') $UserSettingsCopyWith get copyWith => - _$UserSettingsCopyWithImpl( - this as UserSettings, _$identity); + _$UserSettingsCopyWithImpl(this as UserSettings, _$identity); /// Serializes this UserSettings to a JSON map. Map toJson(); @@ -911,9 +872,7 @@ mixin _$UserSettings implements DiagnosticableTreeMixin { /// @nodoc abstract mixin class $UserSettingsCopyWith<$Res> { - factory $UserSettingsCopyWith( - UserSettings value, $Res Function(UserSettings) _then) = - _$UserSettingsCopyWithImpl; + factory $UserSettingsCopyWith(UserSettings value, $Res Function(UserSettings) _then) = _$UserSettingsCopyWithImpl; @useResult $Res call({Duration skipForwardDuration, Duration skipBackDuration}); } @@ -1039,8 +998,7 @@ extension UserSettingsPatterns on UserSettings { @optionalTypeArgs TResult maybeWhen( - TResult Function(Duration skipForwardDuration, Duration skipBackDuration)? - $default, { + TResult Function(Duration skipForwardDuration, Duration skipBackDuration)? $default, { required TResult orElse(), }) { final _that = this; @@ -1067,8 +1025,7 @@ extension UserSettingsPatterns on UserSettings { @optionalTypeArgs TResult when( - TResult Function(Duration skipForwardDuration, Duration skipBackDuration) - $default, + TResult Function(Duration skipForwardDuration, Duration skipBackDuration) $default, ) { final _that = this; switch (_that) { @@ -1093,8 +1050,7 @@ extension UserSettingsPatterns on UserSettings { @optionalTypeArgs TResult? whenOrNull( - TResult? Function(Duration skipForwardDuration, Duration skipBackDuration)? - $default, + TResult? Function(Duration skipForwardDuration, Duration skipBackDuration)? $default, ) { final _that = this; switch (_that) { @@ -1110,10 +1066,8 @@ extension UserSettingsPatterns on UserSettings { @JsonSerializable() class _UserSettings with DiagnosticableTreeMixin implements UserSettings { _UserSettings( - {this.skipForwardDuration = const Duration(seconds: 30), - this.skipBackDuration = const Duration(seconds: 10)}); - factory _UserSettings.fromJson(Map json) => - _$UserSettingsFromJson(json); + {this.skipForwardDuration = const Duration(seconds: 30), this.skipBackDuration = const Duration(seconds: 10)}); + factory _UserSettings.fromJson(Map json) => _$UserSettingsFromJson(json); @override @JsonKey() @@ -1127,8 +1081,7 @@ class _UserSettings with DiagnosticableTreeMixin implements UserSettings { @override @JsonKey(includeFromJson: false, includeToJson: false) @pragma('vm:prefer-inline') - _$UserSettingsCopyWith<_UserSettings> get copyWith => - __$UserSettingsCopyWithImpl<_UserSettings>(this, _$identity); + _$UserSettingsCopyWith<_UserSettings> get copyWith => __$UserSettingsCopyWithImpl<_UserSettings>(this, _$identity); @override Map toJson() { @@ -1152,19 +1105,15 @@ class _UserSettings with DiagnosticableTreeMixin implements UserSettings { } /// @nodoc -abstract mixin class _$UserSettingsCopyWith<$Res> - implements $UserSettingsCopyWith<$Res> { - factory _$UserSettingsCopyWith( - _UserSettings value, $Res Function(_UserSettings) _then) = - __$UserSettingsCopyWithImpl; +abstract mixin class _$UserSettingsCopyWith<$Res> implements $UserSettingsCopyWith<$Res> { + factory _$UserSettingsCopyWith(_UserSettings value, $Res Function(_UserSettings) _then) = __$UserSettingsCopyWithImpl; @override @useResult $Res call({Duration skipForwardDuration, Duration skipBackDuration}); } /// @nodoc -class __$UserSettingsCopyWithImpl<$Res> - implements _$UserSettingsCopyWith<$Res> { +class __$UserSettingsCopyWithImpl<$Res> implements _$UserSettingsCopyWith<$Res> { __$UserSettingsCopyWithImpl(this._self, this._then); final _UserSettings _self; diff --git a/lib/models/account_model.g.dart b/lib/models/account_model.g.dart index 2339f27dd..b874a32ab 100644 --- a/lib/models/account_model.g.dart +++ b/lib/models/account_model.g.dart @@ -6,42 +6,30 @@ part of 'account_model.dart'; // JsonSerializableGenerator // ************************************************************************** -_AccountModel _$AccountModelFromJson(Map json) => - _AccountModel( +_AccountModel _$AccountModelFromJson(Map json) => _AccountModel( name: json['name'] as String, id: json['id'] as String, avatar: json['avatar'] as String, lastUsed: DateTime.parse(json['lastUsed'] as String), - authMethod: - $enumDecodeNullable(_$AuthenticationEnumMap, json['authMethod']) ?? - Authentication.autoLogin, + authMethod: $enumDecodeNullable(_$AuthenticationEnumMap, json['authMethod']) ?? Authentication.autoLogin, localPin: json['localPin'] as String? ?? "", credentials: const CredentialsConverter().fromJson(json['credentials']), seerrCredentials: json['seerrCredentials'] == null ? null - : SeerrCredentialsModel.fromJson( - json['seerrCredentials'] as Map), - latestItemsExcludes: (json['latestItemsExcludes'] as List?) - ?.map((e) => e as String) - .toList() ?? - const [], - searchQueryHistory: (json['searchQueryHistory'] as List?) - ?.map((e) => e as String) - .toList() ?? - const [], + : SeerrCredentialsModel.fromJson(json['seerrCredentials'] as Map), + latestItemsExcludes: + (json['latestItemsExcludes'] as List?)?.map((e) => e as String).toList() ?? const [], + searchQueryHistory: (json['searchQueryHistory'] as List?)?.map((e) => e as String).toList() ?? const [], quickConnectState: json['quickConnectState'] as bool? ?? false, libraryFilters: (json['libraryFilters'] as List?) - ?.map((e) => - LibraryFiltersModel.fromJson(e as Map)) + ?.map((e) => LibraryFiltersModel.fromJson(e as Map)) .toList() ?? const [], - userSettings: json['userSettings'] == null - ? null - : UserSettings.fromJson(json['userSettings'] as Map), + userSettings: + json['userSettings'] == null ? null : UserSettings.fromJson(json['userSettings'] as Map), ); -Map _$AccountModelToJson(_AccountModel instance) => - { +Map _$AccountModelToJson(_AccountModel instance) => { 'name': instance.name, 'id': instance.id, 'avatar': instance.avatar, @@ -64,19 +52,16 @@ const _$AuthenticationEnumMap = { Authentication.none: 'none', }; -_UserSettings _$UserSettingsFromJson(Map json) => - _UserSettings( +_UserSettings _$UserSettingsFromJson(Map json) => _UserSettings( skipForwardDuration: json['skipForwardDuration'] == null ? const Duration(seconds: 30) - : Duration( - microseconds: (json['skipForwardDuration'] as num).toInt()), + : Duration(microseconds: (json['skipForwardDuration'] as num).toInt()), skipBackDuration: json['skipBackDuration'] == null ? const Duration(seconds: 10) : Duration(microseconds: (json['skipBackDuration'] as num).toInt()), ); -Map _$UserSettingsToJson(_UserSettings instance) => - { +Map _$UserSettingsToJson(_UserSettings instance) => { 'skipForwardDuration': instance.skipForwardDuration.inMicroseconds, 'skipBackDuration': instance.skipBackDuration.inMicroseconds, }; diff --git a/lib/models/boxset_model.mapper.dart b/lib/models/boxset_model.mapper.dart index 9cc6cfcc5..f14fb8765 100644 --- a/lib/models/boxset_model.mapper.dart +++ b/lib/models/boxset_model.mapper.dart @@ -25,42 +25,31 @@ class BoxSetModelMapper extends SubClassMapperBase { final String id = 'BoxSetModel'; static List _$items(BoxSetModel v) => v.items; - static const Field> _f$items = - Field('items', _$items, opt: true, def: const []); + static const Field> _f$items = Field('items', _$items, opt: true, def: const []); static String _$name(BoxSetModel v) => v.name; static const Field _f$name = Field('name', _$name); static String _$id(BoxSetModel v) => v.id; static const Field _f$id = Field('id', _$id); static OverviewModel _$overview(BoxSetModel v) => v.overview; - static const Field _f$overview = - Field('overview', _$overview); + static const Field _f$overview = Field('overview', _$overview); static String? _$parentId(BoxSetModel v) => v.parentId; - static const Field _f$parentId = - Field('parentId', _$parentId); + static const Field _f$parentId = Field('parentId', _$parentId); static String? _$playlistId(BoxSetModel v) => v.playlistId; - static const Field _f$playlistId = - Field('playlistId', _$playlistId); + static const Field _f$playlistId = Field('playlistId', _$playlistId); static ImagesData? _$images(BoxSetModel v) => v.images; - static const Field _f$images = - Field('images', _$images); + static const Field _f$images = Field('images', _$images); static int? _$childCount(BoxSetModel v) => v.childCount; - static const Field _f$childCount = - Field('childCount', _$childCount); + static const Field _f$childCount = Field('childCount', _$childCount); static double? _$primaryRatio(BoxSetModel v) => v.primaryRatio; - static const Field _f$primaryRatio = - Field('primaryRatio', _$primaryRatio); + static const Field _f$primaryRatio = Field('primaryRatio', _$primaryRatio); static UserData _$userData(BoxSetModel v) => v.userData; - static const Field _f$userData = - Field('userData', _$userData); + static const Field _f$userData = Field('userData', _$userData); static bool? _$canDelete(BoxSetModel v) => v.canDelete; - static const Field _f$canDelete = - Field('canDelete', _$canDelete); + static const Field _f$canDelete = Field('canDelete', _$canDelete); static bool? _$canDownload(BoxSetModel v) => v.canDownload; - static const Field _f$canDownload = - Field('canDownload', _$canDownload); + static const Field _f$canDownload = Field('canDownload', _$canDownload); static BaseItemKind? _$jellyType(BoxSetModel v) => v.jellyType; - static const Field _f$jellyType = - Field('jellyType', _$jellyType, opt: true); + static const Field _f$jellyType = Field('jellyType', _$jellyType, opt: true); @override final MappableFields fields = const { @@ -86,8 +75,7 @@ class BoxSetModelMapper extends SubClassMapperBase { @override final dynamic discriminatorValue = 'BoxSetModel'; @override - late final ClassMapperBase superMapper = - ItemBaseModelMapper.ensureInitialized(); + late final ClassMapperBase superMapper = ItemBaseModelMapper.ensureInitialized(); static BoxSetModel _instantiate(DecodingData data) { return BoxSetModel( @@ -112,20 +100,16 @@ class BoxSetModelMapper extends SubClassMapperBase { mixin BoxSetModelMappable { BoxSetModelCopyWith get copyWith => - _BoxSetModelCopyWithImpl( - this as BoxSetModel, $identity, $identity); + _BoxSetModelCopyWithImpl(this as BoxSetModel, $identity, $identity); } -extension BoxSetModelValueCopy<$R, $Out> - on ObjectCopyWith<$R, BoxSetModel, $Out> { +extension BoxSetModelValueCopy<$R, $Out> on ObjectCopyWith<$R, BoxSetModel, $Out> { BoxSetModelCopyWith<$R, BoxSetModel, $Out> get $asBoxSetModel => $base.as((v, t, t2) => _BoxSetModelCopyWithImpl<$R, $Out>(v, t, t2)); } -abstract class BoxSetModelCopyWith<$R, $In extends BoxSetModel, $Out> - implements ItemBaseModelCopyWith<$R, $In, $Out> { - ListCopyWith<$R, ItemBaseModel, - ItemBaseModelCopyWith<$R, ItemBaseModel, ItemBaseModel>> get items; +abstract class BoxSetModelCopyWith<$R, $In extends BoxSetModel, $Out> implements ItemBaseModelCopyWith<$R, $In, $Out> { + ListCopyWith<$R, ItemBaseModel, ItemBaseModelCopyWith<$R, ItemBaseModel, ItemBaseModel>> get items; @override OverviewModelCopyWith<$R, OverviewModel, OverviewModel> get overview; @override @@ -148,25 +132,20 @@ abstract class BoxSetModelCopyWith<$R, $In extends BoxSetModel, $Out> BoxSetModelCopyWith<$R2, $In, $Out2> $chain<$R2, $Out2>(Then<$Out2, $R2> t); } -class _BoxSetModelCopyWithImpl<$R, $Out> - extends ClassCopyWithBase<$R, BoxSetModel, $Out> +class _BoxSetModelCopyWithImpl<$R, $Out> extends ClassCopyWithBase<$R, BoxSetModel, $Out> implements BoxSetModelCopyWith<$R, BoxSetModel, $Out> { _BoxSetModelCopyWithImpl(super.value, super.then, super.then2); @override - late final ClassMapperBase $mapper = - BoxSetModelMapper.ensureInitialized(); + late final ClassMapperBase $mapper = BoxSetModelMapper.ensureInitialized(); @override - ListCopyWith<$R, ItemBaseModel, - ItemBaseModelCopyWith<$R, ItemBaseModel, ItemBaseModel>> - get items => ListCopyWith( - $value.items, (v, t) => v.copyWith.$chain(t), (v) => call(items: v)); + ListCopyWith<$R, ItemBaseModel, ItemBaseModelCopyWith<$R, ItemBaseModel, ItemBaseModel>> get items => + ListCopyWith($value.items, (v, t) => v.copyWith.$chain(t), (v) => call(items: v)); @override OverviewModelCopyWith<$R, OverviewModel, OverviewModel> get overview => $value.overview.copyWith.$chain((v) => call(overview: v)); @override - UserDataCopyWith<$R, UserData, UserData> get userData => - $value.userData.copyWith.$chain((v) => call(userData: v)); + UserDataCopyWith<$R, UserData, UserData> get userData => $value.userData.copyWith.$chain((v) => call(userData: v)); @override $R call( {List? items, @@ -214,7 +193,6 @@ class _BoxSetModelCopyWithImpl<$R, $Out> jellyType: data.get(#jellyType, or: $value.jellyType)); @override - BoxSetModelCopyWith<$R2, BoxSetModel, $Out2> $chain<$R2, $Out2>( - Then<$Out2, $R2> t) => + BoxSetModelCopyWith<$R2, BoxSetModel, $Out2> $chain<$R2, $Out2>(Then<$Out2, $R2> t) => _BoxSetModelCopyWithImpl<$R2, $Out2>($value, $cast, t); } diff --git a/lib/models/credentials_model.freezed.dart b/lib/models/credentials_model.freezed.dart index a3649f6a7..c4064e294 100644 --- a/lib/models/credentials_model.freezed.dart +++ b/lib/models/credentials_model.freezed.dart @@ -26,8 +26,7 @@ mixin _$CredentialsModel { @JsonKey(includeFromJson: false, includeToJson: false) @pragma('vm:prefer-inline') $CredentialsModelCopyWith get copyWith => - _$CredentialsModelCopyWithImpl( - this as CredentialsModel, _$identity); + _$CredentialsModelCopyWithImpl(this as CredentialsModel, _$identity); /// Serializes this CredentialsModel to a JSON map. Map toJson(); @@ -40,22 +39,14 @@ mixin _$CredentialsModel { /// @nodoc abstract mixin class $CredentialsModelCopyWith<$Res> { - factory $CredentialsModelCopyWith( - CredentialsModel value, $Res Function(CredentialsModel) _then) = + factory $CredentialsModelCopyWith(CredentialsModel value, $Res Function(CredentialsModel) _then) = _$CredentialsModelCopyWithImpl; @useResult - $Res call( - {String token, - String url, - String? localUrl, - String serverName, - String serverId, - String deviceId}); + $Res call({String token, String url, String? localUrl, String serverName, String serverId, String deviceId}); } /// @nodoc -class _$CredentialsModelCopyWithImpl<$Res> - implements $CredentialsModelCopyWith<$Res> { +class _$CredentialsModelCopyWithImpl<$Res> implements $CredentialsModelCopyWith<$Res> { _$CredentialsModelCopyWithImpl(this._self, this._then); final CredentialsModel _self; @@ -195,16 +186,14 @@ extension CredentialsModelPatterns on CredentialsModel { @optionalTypeArgs TResult maybeWhen({ - TResult Function(String token, String url, String? localUrl, - String serverName, String serverId, String deviceId)? + TResult Function(String token, String url, String? localUrl, String serverName, String serverId, String deviceId)? internal, required TResult orElse(), }) { final _that = this; switch (_that) { case _CredentialsModel() when internal != null: - return internal(_that.token, _that.url, _that.localUrl, - _that.serverName, _that.serverId, _that.deviceId); + return internal(_that.token, _that.url, _that.localUrl, _that.serverName, _that.serverId, _that.deviceId); case _: return orElse(); } @@ -225,15 +214,14 @@ extension CredentialsModelPatterns on CredentialsModel { @optionalTypeArgs TResult when({ - required TResult Function(String token, String url, String? localUrl, - String serverName, String serverId, String deviceId) + required TResult Function( + String token, String url, String? localUrl, String serverName, String serverId, String deviceId) internal, }) { final _that = this; switch (_that) { case _CredentialsModel(): - return internal(_that.token, _that.url, _that.localUrl, - _that.serverName, _that.serverId, _that.deviceId); + return internal(_that.token, _that.url, _that.localUrl, _that.serverName, _that.serverId, _that.deviceId); case _: throw StateError('Unexpected subclass'); } @@ -253,15 +241,13 @@ extension CredentialsModelPatterns on CredentialsModel { @optionalTypeArgs TResult? whenOrNull({ - TResult? Function(String token, String url, String? localUrl, - String serverName, String serverId, String deviceId)? + TResult? Function(String token, String url, String? localUrl, String serverName, String serverId, String deviceId)? internal, }) { final _that = this; switch (_that) { case _CredentialsModel() when internal != null: - return internal(_that.token, _that.url, _that.localUrl, - _that.serverName, _that.serverId, _that.deviceId); + return internal(_that.token, _that.url, _that.localUrl, _that.serverName, _that.serverId, _that.deviceId); case _: return null; } @@ -272,15 +258,9 @@ extension CredentialsModelPatterns on CredentialsModel { @JsonSerializable() class _CredentialsModel extends CredentialsModel { _CredentialsModel( - {this.token = "", - this.url = "", - this.localUrl, - this.serverName = "", - this.serverId = "", - this.deviceId = ""}) + {this.token = "", this.url = "", this.localUrl, this.serverName = "", this.serverId = "", this.deviceId = ""}) : super._(); - factory _CredentialsModel.fromJson(Map json) => - _$CredentialsModelFromJson(json); + factory _CredentialsModel.fromJson(Map json) => _$CredentialsModelFromJson(json); @override @JsonKey() @@ -322,25 +302,16 @@ class _CredentialsModel extends CredentialsModel { } /// @nodoc -abstract mixin class _$CredentialsModelCopyWith<$Res> - implements $CredentialsModelCopyWith<$Res> { - factory _$CredentialsModelCopyWith( - _CredentialsModel value, $Res Function(_CredentialsModel) _then) = +abstract mixin class _$CredentialsModelCopyWith<$Res> implements $CredentialsModelCopyWith<$Res> { + factory _$CredentialsModelCopyWith(_CredentialsModel value, $Res Function(_CredentialsModel) _then) = __$CredentialsModelCopyWithImpl; @override @useResult - $Res call( - {String token, - String url, - String? localUrl, - String serverName, - String serverId, - String deviceId}); + $Res call({String token, String url, String? localUrl, String serverName, String serverId, String deviceId}); } /// @nodoc -class __$CredentialsModelCopyWithImpl<$Res> - implements _$CredentialsModelCopyWith<$Res> { +class __$CredentialsModelCopyWithImpl<$Res> implements _$CredentialsModelCopyWith<$Res> { __$CredentialsModelCopyWithImpl(this._self, this._then); final _CredentialsModel _self; diff --git a/lib/models/credentials_model.g.dart b/lib/models/credentials_model.g.dart index f4cc23b77..8d60f4c31 100644 --- a/lib/models/credentials_model.g.dart +++ b/lib/models/credentials_model.g.dart @@ -6,8 +6,7 @@ part of 'credentials_model.dart'; // JsonSerializableGenerator // ************************************************************************** -_CredentialsModel _$CredentialsModelFromJson(Map json) => - _CredentialsModel( +_CredentialsModel _$CredentialsModelFromJson(Map json) => _CredentialsModel( token: json['token'] as String? ?? "", url: json['url'] as String? ?? "", localUrl: json['localUrl'] as String?, @@ -16,8 +15,7 @@ _CredentialsModel _$CredentialsModelFromJson(Map json) => deviceId: json['deviceId'] as String? ?? "", ); -Map _$CredentialsModelToJson(_CredentialsModel instance) => - { +Map _$CredentialsModelToJson(_CredentialsModel instance) => { 'token': instance.token, 'url': instance.url, 'localUrl': instance.localUrl, diff --git a/lib/models/item_base_model.mapper.dart b/lib/models/item_base_model.mapper.dart index 98db7f01b..9c3f8fe69 100644 --- a/lib/models/item_base_model.mapper.dart +++ b/lib/models/item_base_model.mapper.dart @@ -27,35 +27,25 @@ class ItemBaseModelMapper extends ClassMapperBase { static String _$id(ItemBaseModel v) => v.id; static const Field _f$id = Field('id', _$id); static OverviewModel _$overview(ItemBaseModel v) => v.overview; - static const Field _f$overview = - Field('overview', _$overview); + static const Field _f$overview = Field('overview', _$overview); static String? _$parentId(ItemBaseModel v) => v.parentId; - static const Field _f$parentId = - Field('parentId', _$parentId); + static const Field _f$parentId = Field('parentId', _$parentId); static String? _$playlistId(ItemBaseModel v) => v.playlistId; - static const Field _f$playlistId = - Field('playlistId', _$playlistId); + static const Field _f$playlistId = Field('playlistId', _$playlistId); static ImagesData? _$images(ItemBaseModel v) => v.images; - static const Field _f$images = - Field('images', _$images); + static const Field _f$images = Field('images', _$images); static int? _$childCount(ItemBaseModel v) => v.childCount; - static const Field _f$childCount = - Field('childCount', _$childCount); + static const Field _f$childCount = Field('childCount', _$childCount); static double? _$primaryRatio(ItemBaseModel v) => v.primaryRatio; - static const Field _f$primaryRatio = - Field('primaryRatio', _$primaryRatio); + static const Field _f$primaryRatio = Field('primaryRatio', _$primaryRatio); static UserData _$userData(ItemBaseModel v) => v.userData; - static const Field _f$userData = - Field('userData', _$userData); + static const Field _f$userData = Field('userData', _$userData); static bool? _$canDownload(ItemBaseModel v) => v.canDownload; - static const Field _f$canDownload = - Field('canDownload', _$canDownload); + static const Field _f$canDownload = Field('canDownload', _$canDownload); static bool? _$canDelete(ItemBaseModel v) => v.canDelete; - static const Field _f$canDelete = - Field('canDelete', _$canDelete); + static const Field _f$canDelete = Field('canDelete', _$canDelete); static dto.BaseItemKind? _$jellyType(ItemBaseModel v) => v.jellyType; - static const Field _f$jellyType = - Field('jellyType', _$jellyType); + static const Field _f$jellyType = Field('jellyType', _$jellyType); @override final MappableFields fields = const { @@ -96,19 +86,16 @@ class ItemBaseModelMapper extends ClassMapperBase { } mixin ItemBaseModelMappable { - ItemBaseModelCopyWith - get copyWith => _ItemBaseModelCopyWithImpl( - this as ItemBaseModel, $identity, $identity); + ItemBaseModelCopyWith get copyWith => + _ItemBaseModelCopyWithImpl(this as ItemBaseModel, $identity, $identity); } -extension ItemBaseModelValueCopy<$R, $Out> - on ObjectCopyWith<$R, ItemBaseModel, $Out> { +extension ItemBaseModelValueCopy<$R, $Out> on ObjectCopyWith<$R, ItemBaseModel, $Out> { ItemBaseModelCopyWith<$R, ItemBaseModel, $Out> get $asItemBaseModel => $base.as((v, t, t2) => _ItemBaseModelCopyWithImpl<$R, $Out>(v, t, t2)); } -abstract class ItemBaseModelCopyWith<$R, $In extends ItemBaseModel, $Out> - implements ClassCopyWith<$R, $In, $Out> { +abstract class ItemBaseModelCopyWith<$R, $In extends ItemBaseModel, $Out> implements ClassCopyWith<$R, $In, $Out> { OverviewModelCopyWith<$R, OverviewModel, OverviewModel> get overview; UserDataCopyWith<$R, UserData, UserData> get userData; $R call( @@ -127,20 +114,17 @@ abstract class ItemBaseModelCopyWith<$R, $In extends ItemBaseModel, $Out> ItemBaseModelCopyWith<$R2, $In, $Out2> $chain<$R2, $Out2>(Then<$Out2, $R2> t); } -class _ItemBaseModelCopyWithImpl<$R, $Out> - extends ClassCopyWithBase<$R, ItemBaseModel, $Out> +class _ItemBaseModelCopyWithImpl<$R, $Out> extends ClassCopyWithBase<$R, ItemBaseModel, $Out> implements ItemBaseModelCopyWith<$R, ItemBaseModel, $Out> { _ItemBaseModelCopyWithImpl(super.value, super.then, super.then2); @override - late final ClassMapperBase $mapper = - ItemBaseModelMapper.ensureInitialized(); + late final ClassMapperBase $mapper = ItemBaseModelMapper.ensureInitialized(); @override OverviewModelCopyWith<$R, OverviewModel, OverviewModel> get overview => $value.overview.copyWith.$chain((v) => call(overview: v)); @override - UserDataCopyWith<$R, UserData, UserData> get userData => - $value.userData.copyWith.$chain((v) => call(userData: v)); + UserDataCopyWith<$R, UserData, UserData> get userData => $value.userData.copyWith.$chain((v) => call(userData: v)); @override $R call( {String? name, @@ -185,7 +169,6 @@ class _ItemBaseModelCopyWithImpl<$R, $Out> jellyType: data.get(#jellyType, or: $value.jellyType)); @override - ItemBaseModelCopyWith<$R2, ItemBaseModel, $Out2> $chain<$R2, $Out2>( - Then<$Out2, $R2> t) => + ItemBaseModelCopyWith<$R2, ItemBaseModel, $Out2> $chain<$R2, $Out2>(Then<$Out2, $R2> t) => _ItemBaseModelCopyWithImpl<$R2, $Out2>($value, $cast, t); } diff --git a/lib/models/items/channel_program.freezed.dart b/lib/models/items/channel_program.freezed.dart index 73d2c71f2..19e2b267c 100644 --- a/lib/models/items/channel_program.freezed.dart +++ b/lib/models/items/channel_program.freezed.dart @@ -293,8 +293,7 @@ class _ChannelProgram extends ChannelProgram { required this.isSeries, this.overview}) : super._(); - factory _ChannelProgram.fromJson(Map json) => - _$ChannelProgramFromJson(json); + factory _ChannelProgram.fromJson(Map json) => _$ChannelProgramFromJson(json); @override final String id; diff --git a/lib/models/items/channel_program.g.dart b/lib/models/items/channel_program.g.dart index f5fd7d14c..ee4cdd229 100644 --- a/lib/models/items/channel_program.g.dart +++ b/lib/models/items/channel_program.g.dart @@ -6,8 +6,7 @@ part of 'channel_program.dart'; // JsonSerializableGenerator // ************************************************************************** -_ChannelProgram _$ChannelProgramFromJson(Map json) => - _ChannelProgram( +_ChannelProgram _$ChannelProgramFromJson(Map json) => _ChannelProgram( id: json['id'] as String, channelId: json['channelId'] as String, name: json['name'] as String, @@ -18,15 +17,12 @@ _ChannelProgram _$ChannelProgramFromJson(Map json) => episodeTitle: json['episodeTitle'] as String?, startDate: DateTime.parse(json['startDate'] as String), endDate: DateTime.parse(json['endDate'] as String), - images: json['images'] == null - ? null - : ImagesData.fromJson(json['images'] as String), + images: json['images'] == null ? null : ImagesData.fromJson(json['images'] as String), isSeries: json['isSeries'] as bool, overview: json['overview'] as String?, ); -Map _$ChannelProgramToJson(_ChannelProgram instance) => - { +Map _$ChannelProgramToJson(_ChannelProgram instance) => { 'id': instance.id, 'channelId': instance.channelId, 'name': instance.name, diff --git a/lib/models/items/episode_model.mapper.dart b/lib/models/items/episode_model.mapper.dart index b29f04a92..464206dc8 100644 --- a/lib/models/items/episode_model.mapper.dart +++ b/lib/models/items/episode_model.mapper.dart @@ -24,65 +24,47 @@ class EpisodeModelMapper extends SubClassMapperBase { final String id = 'EpisodeModel'; static String? _$seriesName(EpisodeModel v) => v.seriesName; - static const Field _f$seriesName = - Field('seriesName', _$seriesName); + static const Field _f$seriesName = Field('seriesName', _$seriesName); static int _$season(EpisodeModel v) => v.season; static const Field _f$season = Field('season', _$season); static int _$episode(EpisodeModel v) => v.episode; - static const Field _f$episode = - Field('episode', _$episode); + static const Field _f$episode = Field('episode', _$episode); static int? _$episodeEnd(EpisodeModel v) => v.episodeEnd; - static const Field _f$episodeEnd = - Field('episodeEnd', _$episodeEnd); + static const Field _f$episodeEnd = Field('episodeEnd', _$episodeEnd); static List _$chapters(EpisodeModel v) => v.chapters; - static const Field> _f$chapters = - Field('chapters', _$chapters, opt: true, def: const []); + static const Field> _f$chapters = Field('chapters', _$chapters, opt: true, def: const []); static ItemLocation? _$location(EpisodeModel v) => v.location; - static const Field _f$location = - Field('location', _$location, opt: true); + static const Field _f$location = Field('location', _$location, opt: true); static DateTime? _$dateAired(EpisodeModel v) => v.dateAired; - static const Field _f$dateAired = - Field('dateAired', _$dateAired, opt: true); + static const Field _f$dateAired = Field('dateAired', _$dateAired, opt: true); static String _$name(EpisodeModel v) => v.name; static const Field _f$name = Field('name', _$name); static String _$id(EpisodeModel v) => v.id; static const Field _f$id = Field('id', _$id); static OverviewModel _$overview(EpisodeModel v) => v.overview; - static const Field _f$overview = - Field('overview', _$overview); + static const Field _f$overview = Field('overview', _$overview); static String? _$parentId(EpisodeModel v) => v.parentId; - static const Field _f$parentId = - Field('parentId', _$parentId); + static const Field _f$parentId = Field('parentId', _$parentId); static String? _$playlistId(EpisodeModel v) => v.playlistId; - static const Field _f$playlistId = - Field('playlistId', _$playlistId); + static const Field _f$playlistId = Field('playlistId', _$playlistId); static ImagesData? _$images(EpisodeModel v) => v.images; - static const Field _f$images = - Field('images', _$images); + static const Field _f$images = Field('images', _$images); static int? _$childCount(EpisodeModel v) => v.childCount; - static const Field _f$childCount = - Field('childCount', _$childCount); + static const Field _f$childCount = Field('childCount', _$childCount); static double? _$primaryRatio(EpisodeModel v) => v.primaryRatio; - static const Field _f$primaryRatio = - Field('primaryRatio', _$primaryRatio); + static const Field _f$primaryRatio = Field('primaryRatio', _$primaryRatio); static UserData _$userData(EpisodeModel v) => v.userData; - static const Field _f$userData = - Field('userData', _$userData); + static const Field _f$userData = Field('userData', _$userData); static ImagesData? _$parentImages(EpisodeModel v) => v.parentImages; - static const Field _f$parentImages = - Field('parentImages', _$parentImages); + static const Field _f$parentImages = Field('parentImages', _$parentImages); static MediaStreamsModel _$mediaStreams(EpisodeModel v) => v.mediaStreams; - static const Field _f$mediaStreams = - Field('mediaStreams', _$mediaStreams); + static const Field _f$mediaStreams = Field('mediaStreams', _$mediaStreams); static bool? _$canDelete(EpisodeModel v) => v.canDelete; - static const Field _f$canDelete = - Field('canDelete', _$canDelete, opt: true); + static const Field _f$canDelete = Field('canDelete', _$canDelete, opt: true); static bool? _$canDownload(EpisodeModel v) => v.canDownload; - static const Field _f$canDownload = - Field('canDownload', _$canDownload, opt: true); + static const Field _f$canDownload = Field('canDownload', _$canDownload, opt: true); static dto.BaseItemKind? _$jellyType(EpisodeModel v) => v.jellyType; - static const Field _f$jellyType = - Field('jellyType', _$jellyType, opt: true); + static const Field _f$jellyType = Field('jellyType', _$jellyType, opt: true); @override final MappableFields fields = const { @@ -116,8 +98,7 @@ class EpisodeModelMapper extends SubClassMapperBase { @override final dynamic discriminatorValue = 'EpisodeModel'; @override - late final ClassMapperBase superMapper = - ItemStreamModelMapper.ensureInitialized(); + late final ClassMapperBase superMapper = ItemStreamModelMapper.ensureInitialized(); static EpisodeModel _instantiate(DecodingData data) { return EpisodeModel( @@ -150,12 +131,10 @@ class EpisodeModelMapper extends SubClassMapperBase { mixin EpisodeModelMappable { EpisodeModelCopyWith get copyWith => - _EpisodeModelCopyWithImpl( - this as EpisodeModel, $identity, $identity); + _EpisodeModelCopyWithImpl(this as EpisodeModel, $identity, $identity); } -extension EpisodeModelValueCopy<$R, $Out> - on ObjectCopyWith<$R, EpisodeModel, $Out> { +extension EpisodeModelValueCopy<$R, $Out> on ObjectCopyWith<$R, EpisodeModel, $Out> { EpisodeModelCopyWith<$R, EpisodeModel, $Out> get $asEpisodeModel => $base.as((v, t, t2) => _EpisodeModelCopyWithImpl<$R, $Out>(v, t, t2)); } @@ -193,24 +172,20 @@ abstract class EpisodeModelCopyWith<$R, $In extends EpisodeModel, $Out> EpisodeModelCopyWith<$R2, $In, $Out2> $chain<$R2, $Out2>(Then<$Out2, $R2> t); } -class _EpisodeModelCopyWithImpl<$R, $Out> - extends ClassCopyWithBase<$R, EpisodeModel, $Out> +class _EpisodeModelCopyWithImpl<$R, $Out> extends ClassCopyWithBase<$R, EpisodeModel, $Out> implements EpisodeModelCopyWith<$R, EpisodeModel, $Out> { _EpisodeModelCopyWithImpl(super.value, super.then, super.then2); @override - late final ClassMapperBase $mapper = - EpisodeModelMapper.ensureInitialized(); + late final ClassMapperBase $mapper = EpisodeModelMapper.ensureInitialized(); @override - ListCopyWith<$R, Chapter, ObjectCopyWith<$R, Chapter, Chapter>> - get chapters => ListCopyWith($value.chapters, - (v, t) => ObjectCopyWith(v, $identity, t), (v) => call(chapters: v)); + ListCopyWith<$R, Chapter, ObjectCopyWith<$R, Chapter, Chapter>> get chapters => + ListCopyWith($value.chapters, (v, t) => ObjectCopyWith(v, $identity, t), (v) => call(chapters: v)); @override OverviewModelCopyWith<$R, OverviewModel, OverviewModel> get overview => $value.overview.copyWith.$chain((v) => call(overview: v)); @override - UserDataCopyWith<$R, UserData, UserData> get userData => - $value.userData.copyWith.$chain((v) => call(userData: v)); + UserDataCopyWith<$R, UserData, UserData> get userData => $value.userData.copyWith.$chain((v) => call(userData: v)); @override $R call( {Object? seriesName = $none, @@ -282,7 +257,6 @@ class _EpisodeModelCopyWithImpl<$R, $Out> jellyType: data.get(#jellyType, or: $value.jellyType)); @override - EpisodeModelCopyWith<$R2, EpisodeModel, $Out2> $chain<$R2, $Out2>( - Then<$Out2, $R2> t) => + EpisodeModelCopyWith<$R2, EpisodeModel, $Out2> $chain<$R2, $Out2>(Then<$Out2, $R2> t) => _EpisodeModelCopyWithImpl<$R2, $Out2>($value, $cast, t); } diff --git a/lib/models/items/folder_model.mapper.dart b/lib/models/items/folder_model.mapper.dart index fcdf4cd19..b6850bce5 100644 --- a/lib/models/items/folder_model.mapper.dart +++ b/lib/models/items/folder_model.mapper.dart @@ -25,42 +25,31 @@ class FolderModelMapper extends SubClassMapperBase { final String id = 'FolderModel'; static List _$items(FolderModel v) => v.items; - static const Field> _f$items = - Field('items', _$items); + static const Field> _f$items = Field('items', _$items); static OverviewModel _$overview(FolderModel v) => v.overview; - static const Field _f$overview = - Field('overview', _$overview); + static const Field _f$overview = Field('overview', _$overview); static String? _$parentId(FolderModel v) => v.parentId; - static const Field _f$parentId = - Field('parentId', _$parentId); + static const Field _f$parentId = Field('parentId', _$parentId); static String? _$playlistId(FolderModel v) => v.playlistId; - static const Field _f$playlistId = - Field('playlistId', _$playlistId); + static const Field _f$playlistId = Field('playlistId', _$playlistId); static ImagesData? _$images(FolderModel v) => v.images; - static const Field _f$images = - Field('images', _$images); + static const Field _f$images = Field('images', _$images); static int? _$childCount(FolderModel v) => v.childCount; - static const Field _f$childCount = - Field('childCount', _$childCount); + static const Field _f$childCount = Field('childCount', _$childCount); static double? _$primaryRatio(FolderModel v) => v.primaryRatio; - static const Field _f$primaryRatio = - Field('primaryRatio', _$primaryRatio); + static const Field _f$primaryRatio = Field('primaryRatio', _$primaryRatio); static UserData _$userData(FolderModel v) => v.userData; - static const Field _f$userData = - Field('userData', _$userData); + static const Field _f$userData = Field('userData', _$userData); static String _$name(FolderModel v) => v.name; static const Field _f$name = Field('name', _$name); static String _$id(FolderModel v) => v.id; static const Field _f$id = Field('id', _$id); static bool? _$canDownload(FolderModel v) => v.canDownload; - static const Field _f$canDownload = - Field('canDownload', _$canDownload, opt: true); + static const Field _f$canDownload = Field('canDownload', _$canDownload, opt: true); static bool? _$canDelete(FolderModel v) => v.canDelete; - static const Field _f$canDelete = - Field('canDelete', _$canDelete, opt: true); + static const Field _f$canDelete = Field('canDelete', _$canDelete, opt: true); static BaseItemKind? _$jellyType(FolderModel v) => v.jellyType; - static const Field _f$jellyType = - Field('jellyType', _$jellyType, opt: true); + static const Field _f$jellyType = Field('jellyType', _$jellyType, opt: true); @override final MappableFields fields = const { @@ -86,8 +75,7 @@ class FolderModelMapper extends SubClassMapperBase { @override final dynamic discriminatorValue = 'FolderModel'; @override - late final ClassMapperBase superMapper = - ItemBaseModelMapper.ensureInitialized(); + late final ClassMapperBase superMapper = ItemBaseModelMapper.ensureInitialized(); static FolderModel _instantiate(DecodingData data) { return FolderModel( @@ -112,20 +100,16 @@ class FolderModelMapper extends SubClassMapperBase { mixin FolderModelMappable { FolderModelCopyWith get copyWith => - _FolderModelCopyWithImpl( - this as FolderModel, $identity, $identity); + _FolderModelCopyWithImpl(this as FolderModel, $identity, $identity); } -extension FolderModelValueCopy<$R, $Out> - on ObjectCopyWith<$R, FolderModel, $Out> { +extension FolderModelValueCopy<$R, $Out> on ObjectCopyWith<$R, FolderModel, $Out> { FolderModelCopyWith<$R, FolderModel, $Out> get $asFolderModel => $base.as((v, t, t2) => _FolderModelCopyWithImpl<$R, $Out>(v, t, t2)); } -abstract class FolderModelCopyWith<$R, $In extends FolderModel, $Out> - implements ItemBaseModelCopyWith<$R, $In, $Out> { - ListCopyWith<$R, ItemBaseModel, - ItemBaseModelCopyWith<$R, ItemBaseModel, ItemBaseModel>> get items; +abstract class FolderModelCopyWith<$R, $In extends FolderModel, $Out> implements ItemBaseModelCopyWith<$R, $In, $Out> { + ListCopyWith<$R, ItemBaseModel, ItemBaseModelCopyWith<$R, ItemBaseModel, ItemBaseModel>> get items; @override OverviewModelCopyWith<$R, OverviewModel, OverviewModel> get overview; @override @@ -148,25 +132,20 @@ abstract class FolderModelCopyWith<$R, $In extends FolderModel, $Out> FolderModelCopyWith<$R2, $In, $Out2> $chain<$R2, $Out2>(Then<$Out2, $R2> t); } -class _FolderModelCopyWithImpl<$R, $Out> - extends ClassCopyWithBase<$R, FolderModel, $Out> +class _FolderModelCopyWithImpl<$R, $Out> extends ClassCopyWithBase<$R, FolderModel, $Out> implements FolderModelCopyWith<$R, FolderModel, $Out> { _FolderModelCopyWithImpl(super.value, super.then, super.then2); @override - late final ClassMapperBase $mapper = - FolderModelMapper.ensureInitialized(); + late final ClassMapperBase $mapper = FolderModelMapper.ensureInitialized(); @override - ListCopyWith<$R, ItemBaseModel, - ItemBaseModelCopyWith<$R, ItemBaseModel, ItemBaseModel>> - get items => ListCopyWith( - $value.items, (v, t) => v.copyWith.$chain(t), (v) => call(items: v)); + ListCopyWith<$R, ItemBaseModel, ItemBaseModelCopyWith<$R, ItemBaseModel, ItemBaseModel>> get items => + ListCopyWith($value.items, (v, t) => v.copyWith.$chain(t), (v) => call(items: v)); @override OverviewModelCopyWith<$R, OverviewModel, OverviewModel> get overview => $value.overview.copyWith.$chain((v) => call(overview: v)); @override - UserDataCopyWith<$R, UserData, UserData> get userData => - $value.userData.copyWith.$chain((v) => call(userData: v)); + UserDataCopyWith<$R, UserData, UserData> get userData => $value.userData.copyWith.$chain((v) => call(userData: v)); @override $R call( {List? items, @@ -214,7 +193,6 @@ class _FolderModelCopyWithImpl<$R, $Out> jellyType: data.get(#jellyType, or: $value.jellyType)); @override - FolderModelCopyWith<$R2, FolderModel, $Out2> $chain<$R2, $Out2>( - Then<$Out2, $R2> t) => + FolderModelCopyWith<$R2, FolderModel, $Out2> $chain<$R2, $Out2>(Then<$Out2, $R2> t) => _FolderModelCopyWithImpl<$R2, $Out2>($value, $cast, t); } diff --git a/lib/models/items/item_properties_model.freezed.dart b/lib/models/items/item_properties_model.freezed.dart index 2eea58b75..04548b240 100644 --- a/lib/models/items/item_properties_model.freezed.dart +++ b/lib/models/items/item_properties_model.freezed.dart @@ -183,8 +183,7 @@ extension ItemPropertiesModelPatterns on ItemPropertiesModel { /// @nodoc class _ItemPropertiesModel extends ItemPropertiesModel { - _ItemPropertiesModel({required this.canDelete, required this.canDownload}) - : super._(); + _ItemPropertiesModel({required this.canDelete, required this.canDownload}) : super._(); @override final bool canDelete; diff --git a/lib/models/items/item_shared_models.mapper.dart b/lib/models/items/item_shared_models.mapper.dart index 8624ac268..589b4cf24 100644 --- a/lib/models/items/item_shared_models.mapper.dart +++ b/lib/models/items/item_shared_models.mapper.dart @@ -21,27 +21,20 @@ class UserDataMapper extends ClassMapperBase { final String id = 'UserData'; static bool _$isFavourite(UserData v) => v.isFavourite; - static const Field _f$isFavourite = - Field('isFavourite', _$isFavourite, opt: true, def: false); + static const Field _f$isFavourite = Field('isFavourite', _$isFavourite, opt: true, def: false); static int _$playCount(UserData v) => v.playCount; - static const Field _f$playCount = - Field('playCount', _$playCount, opt: true, def: 0); + static const Field _f$playCount = Field('playCount', _$playCount, opt: true, def: 0); static int? _$unPlayedItemCount(UserData v) => v.unPlayedItemCount; - static const Field _f$unPlayedItemCount = - Field('unPlayedItemCount', _$unPlayedItemCount, opt: true); + static const Field _f$unPlayedItemCount = Field('unPlayedItemCount', _$unPlayedItemCount, opt: true); static int _$playbackPositionTicks(UserData v) => v.playbackPositionTicks; - static const Field _f$playbackPositionTicks = Field( - 'playbackPositionTicks', _$playbackPositionTicks, - opt: true, def: 0); + static const Field _f$playbackPositionTicks = + Field('playbackPositionTicks', _$playbackPositionTicks, opt: true, def: 0); static double _$progress(UserData v) => v.progress; - static const Field _f$progress = - Field('progress', _$progress, opt: true, def: 0); + static const Field _f$progress = Field('progress', _$progress, opt: true, def: 0); static DateTime? _$lastPlayed(UserData v) => v.lastPlayed; - static const Field _f$lastPlayed = - Field('lastPlayed', _$lastPlayed, opt: true); + static const Field _f$lastPlayed = Field('lastPlayed', _$lastPlayed, opt: true); static bool _$played(UserData v) => v.played; - static const Field _f$played = - Field('played', _$played, opt: true, def: false); + static const Field _f$played = Field('played', _$played, opt: true, def: false); @override final MappableFields fields = const { @@ -81,18 +74,15 @@ class UserDataMapper extends ClassMapperBase { mixin UserDataMappable { String toJson() { - return UserDataMapper.ensureInitialized() - .encodeJson(this as UserData); + return UserDataMapper.ensureInitialized().encodeJson(this as UserData); } Map toMap() { - return UserDataMapper.ensureInitialized() - .encodeMap(this as UserData); + return UserDataMapper.ensureInitialized().encodeMap(this as UserData); } UserDataCopyWith get copyWith => - _UserDataCopyWithImpl( - this as UserData, $identity, $identity); + _UserDataCopyWithImpl(this as UserData, $identity, $identity); } extension UserDataValueCopy<$R, $Out> on ObjectCopyWith<$R, UserData, $Out> { @@ -100,8 +90,7 @@ extension UserDataValueCopy<$R, $Out> on ObjectCopyWith<$R, UserData, $Out> { $base.as((v, t, t2) => _UserDataCopyWithImpl<$R, $Out>(v, t, t2)); } -abstract class UserDataCopyWith<$R, $In extends UserData, $Out> - implements ClassCopyWith<$R, $In, $Out> { +abstract class UserDataCopyWith<$R, $In extends UserData, $Out> implements ClassCopyWith<$R, $In, $Out> { $R call( {bool? isFavourite, int? playCount, @@ -113,14 +102,12 @@ abstract class UserDataCopyWith<$R, $In extends UserData, $Out> UserDataCopyWith<$R2, $In, $Out2> $chain<$R2, $Out2>(Then<$Out2, $R2> t); } -class _UserDataCopyWithImpl<$R, $Out> - extends ClassCopyWithBase<$R, UserData, $Out> +class _UserDataCopyWithImpl<$R, $Out> extends ClassCopyWithBase<$R, UserData, $Out> implements UserDataCopyWith<$R, UserData, $Out> { _UserDataCopyWithImpl(super.value, super.then, super.then2); @override - late final ClassMapperBase $mapper = - UserDataMapper.ensureInitialized(); + late final ClassMapperBase $mapper = UserDataMapper.ensureInitialized(); @override $R call( {bool? isFavourite, @@ -134,8 +121,7 @@ class _UserDataCopyWithImpl<$R, $Out> if (isFavourite != null) #isFavourite: isFavourite, if (playCount != null) #playCount: playCount, if (unPlayedItemCount != $none) #unPlayedItemCount: unPlayedItemCount, - if (playbackPositionTicks != null) - #playbackPositionTicks: playbackPositionTicks, + if (playbackPositionTicks != null) #playbackPositionTicks: playbackPositionTicks, if (progress != null) #progress: progress, if (lastPlayed != $none) #lastPlayed: lastPlayed, if (played != null) #played: played @@ -144,16 +130,13 @@ class _UserDataCopyWithImpl<$R, $Out> UserData $make(CopyWithData data) => UserData( isFavourite: data.get(#isFavourite, or: $value.isFavourite), playCount: data.get(#playCount, or: $value.playCount), - unPlayedItemCount: - data.get(#unPlayedItemCount, or: $value.unPlayedItemCount), - playbackPositionTicks: - data.get(#playbackPositionTicks, or: $value.playbackPositionTicks), + unPlayedItemCount: data.get(#unPlayedItemCount, or: $value.unPlayedItemCount), + playbackPositionTicks: data.get(#playbackPositionTicks, or: $value.playbackPositionTicks), progress: data.get(#progress, or: $value.progress), lastPlayed: data.get(#lastPlayed, or: $value.lastPlayed), played: data.get(#played, or: $value.played)); @override - UserDataCopyWith<$R2, UserData, $Out2> $chain<$R2, $Out2>( - Then<$Out2, $R2> t) => + UserDataCopyWith<$R2, UserData, $Out2> $chain<$R2, $Out2>(Then<$Out2, $R2> t) => _UserDataCopyWithImpl<$R2, $Out2>($value, $cast, t); } diff --git a/lib/models/items/item_stream_model.mapper.dart b/lib/models/items/item_stream_model.mapper.dart index 0c34fab5e..c36560d6d 100644 --- a/lib/models/items/item_stream_model.mapper.dart +++ b/lib/models/items/item_stream_model.mapper.dart @@ -24,45 +24,33 @@ class ItemStreamModelMapper extends SubClassMapperBase { final String id = 'ItemStreamModel'; static ImagesData? _$parentImages(ItemStreamModel v) => v.parentImages; - static const Field _f$parentImages = - Field('parentImages', _$parentImages); + static const Field _f$parentImages = Field('parentImages', _$parentImages); static MediaStreamsModel _$mediaStreams(ItemStreamModel v) => v.mediaStreams; - static const Field _f$mediaStreams = - Field('mediaStreams', _$mediaStreams); + static const Field _f$mediaStreams = Field('mediaStreams', _$mediaStreams); static String _$name(ItemStreamModel v) => v.name; static const Field _f$name = Field('name', _$name); static String _$id(ItemStreamModel v) => v.id; static const Field _f$id = Field('id', _$id); static OverviewModel _$overview(ItemStreamModel v) => v.overview; - static const Field _f$overview = - Field('overview', _$overview); + static const Field _f$overview = Field('overview', _$overview); static String? _$parentId(ItemStreamModel v) => v.parentId; - static const Field _f$parentId = - Field('parentId', _$parentId); + static const Field _f$parentId = Field('parentId', _$parentId); static String? _$playlistId(ItemStreamModel v) => v.playlistId; - static const Field _f$playlistId = - Field('playlistId', _$playlistId); + static const Field _f$playlistId = Field('playlistId', _$playlistId); static ImagesData? _$images(ItemStreamModel v) => v.images; - static const Field _f$images = - Field('images', _$images); + static const Field _f$images = Field('images', _$images); static int? _$childCount(ItemStreamModel v) => v.childCount; - static const Field _f$childCount = - Field('childCount', _$childCount); + static const Field _f$childCount = Field('childCount', _$childCount); static double? _$primaryRatio(ItemStreamModel v) => v.primaryRatio; - static const Field _f$primaryRatio = - Field('primaryRatio', _$primaryRatio); + static const Field _f$primaryRatio = Field('primaryRatio', _$primaryRatio); static UserData _$userData(ItemStreamModel v) => v.userData; - static const Field _f$userData = - Field('userData', _$userData); + static const Field _f$userData = Field('userData', _$userData); static bool? _$canDelete(ItemStreamModel v) => v.canDelete; - static const Field _f$canDelete = - Field('canDelete', _$canDelete); + static const Field _f$canDelete = Field('canDelete', _$canDelete); static bool? _$canDownload(ItemStreamModel v) => v.canDownload; - static const Field _f$canDownload = - Field('canDownload', _$canDownload); + static const Field _f$canDownload = Field('canDownload', _$canDownload); static dto.BaseItemKind? _$jellyType(ItemStreamModel v) => v.jellyType; - static const Field _f$jellyType = - Field('jellyType', _$jellyType, opt: true); + static const Field _f$jellyType = Field('jellyType', _$jellyType, opt: true); @override final MappableFields fields = const { @@ -89,8 +77,7 @@ class ItemStreamModelMapper extends SubClassMapperBase { @override final dynamic discriminatorValue = 'ItemStreamModel'; @override - late final ClassMapperBase superMapper = - ItemBaseModelMapper.ensureInitialized(); + late final ClassMapperBase superMapper = ItemBaseModelMapper.ensureInitialized(); static ItemStreamModel _instantiate(DecodingData data) { return ItemStreamModel( @@ -115,14 +102,11 @@ class ItemStreamModelMapper extends SubClassMapperBase { } mixin ItemStreamModelMappable { - ItemStreamModelCopyWith - get copyWith => - _ItemStreamModelCopyWithImpl( - this as ItemStreamModel, $identity, $identity); + ItemStreamModelCopyWith get copyWith => + _ItemStreamModelCopyWithImpl(this as ItemStreamModel, $identity, $identity); } -extension ItemStreamModelValueCopy<$R, $Out> - on ObjectCopyWith<$R, ItemStreamModel, $Out> { +extension ItemStreamModelValueCopy<$R, $Out> on ObjectCopyWith<$R, ItemStreamModel, $Out> { ItemStreamModelCopyWith<$R, ItemStreamModel, $Out> get $asItemStreamModel => $base.as((v, t, t2) => _ItemStreamModelCopyWithImpl<$R, $Out>(v, t, t2)); } @@ -149,24 +133,20 @@ abstract class ItemStreamModelCopyWith<$R, $In extends ItemStreamModel, $Out> bool? canDelete, bool? canDownload, dto.BaseItemKind? jellyType}); - ItemStreamModelCopyWith<$R2, $In, $Out2> $chain<$R2, $Out2>( - Then<$Out2, $R2> t); + ItemStreamModelCopyWith<$R2, $In, $Out2> $chain<$R2, $Out2>(Then<$Out2, $R2> t); } -class _ItemStreamModelCopyWithImpl<$R, $Out> - extends ClassCopyWithBase<$R, ItemStreamModel, $Out> +class _ItemStreamModelCopyWithImpl<$R, $Out> extends ClassCopyWithBase<$R, ItemStreamModel, $Out> implements ItemStreamModelCopyWith<$R, ItemStreamModel, $Out> { _ItemStreamModelCopyWithImpl(super.value, super.then, super.then2); @override - late final ClassMapperBase $mapper = - ItemStreamModelMapper.ensureInitialized(); + late final ClassMapperBase $mapper = ItemStreamModelMapper.ensureInitialized(); @override OverviewModelCopyWith<$R, OverviewModel, OverviewModel> get overview => $value.overview.copyWith.$chain((v) => call(overview: v)); @override - UserDataCopyWith<$R, UserData, UserData> get userData => - $value.userData.copyWith.$chain((v) => call(userData: v)); + UserDataCopyWith<$R, UserData, UserData> get userData => $value.userData.copyWith.$chain((v) => call(userData: v)); @override $R call( {Object? parentImages = $none, @@ -217,7 +197,6 @@ class _ItemStreamModelCopyWithImpl<$R, $Out> jellyType: data.get(#jellyType, or: $value.jellyType)); @override - ItemStreamModelCopyWith<$R2, ItemStreamModel, $Out2> $chain<$R2, $Out2>( - Then<$Out2, $R2> t) => + ItemStreamModelCopyWith<$R2, ItemStreamModel, $Out2> $chain<$R2, $Out2>(Then<$Out2, $R2> t) => _ItemStreamModelCopyWithImpl<$R2, $Out2>($value, $cast, t); } diff --git a/lib/models/items/media_segments_model.freezed.dart b/lib/models/items/media_segments_model.freezed.dart index 4e8bb0337..5efbe5f45 100644 --- a/lib/models/items/media_segments_model.freezed.dart +++ b/lib/models/items/media_segments_model.freezed.dart @@ -188,8 +188,7 @@ class _MediaSegmentsModel extends MediaSegmentsModel { _MediaSegmentsModel({final List segments = const []}) : _segments = segments, super._(); - factory _MediaSegmentsModel.fromJson(Map json) => - _$MediaSegmentsModelFromJson(json); + factory _MediaSegmentsModel.fromJson(Map json) => _$MediaSegmentsModelFromJson(json); final List _segments; @override @@ -321,8 +320,7 @@ extension MediaSegmentPatterns on MediaSegment { @optionalTypeArgs TResult maybeWhen( - TResult Function(MediaSegmentType type, Duration start, Duration end)? - $default, { + TResult Function(MediaSegmentType type, Duration start, Duration end)? $default, { required TResult orElse(), }) { final _that = this; @@ -349,8 +347,7 @@ extension MediaSegmentPatterns on MediaSegment { @optionalTypeArgs TResult when( - TResult Function(MediaSegmentType type, Duration start, Duration end) - $default, + TResult Function(MediaSegmentType type, Duration start, Duration end) $default, ) { final _that = this; switch (_that) { @@ -375,8 +372,7 @@ extension MediaSegmentPatterns on MediaSegment { @optionalTypeArgs TResult? whenOrNull( - TResult? Function(MediaSegmentType type, Duration start, Duration end)? - $default, + TResult? Function(MediaSegmentType type, Duration start, Duration end)? $default, ) { final _that = this; switch (_that) { @@ -391,10 +387,8 @@ extension MediaSegmentPatterns on MediaSegment { /// @nodoc @JsonSerializable() class _MediaSegment extends MediaSegment { - _MediaSegment({required this.type, required this.start, required this.end}) - : super._(); - factory _MediaSegment.fromJson(Map json) => - _$MediaSegmentFromJson(json); + _MediaSegment({required this.type, required this.start, required this.end}) : super._(); + factory _MediaSegment.fromJson(Map json) => _$MediaSegmentFromJson(json); @override final MediaSegmentType type; diff --git a/lib/models/items/media_segments_model.g.dart b/lib/models/items/media_segments_model.g.dart index f7a7c653c..bf1598f9f 100644 --- a/lib/models/items/media_segments_model.g.dart +++ b/lib/models/items/media_segments_model.g.dart @@ -6,28 +6,23 @@ part of 'media_segments_model.dart'; // JsonSerializableGenerator // ************************************************************************** -_MediaSegmentsModel _$MediaSegmentsModelFromJson(Map json) => - _MediaSegmentsModel( - segments: (json['segments'] as List?) - ?.map((e) => MediaSegment.fromJson(e as Map)) - .toList() ?? - const [], +_MediaSegmentsModel _$MediaSegmentsModelFromJson(Map json) => _MediaSegmentsModel( + segments: + (json['segments'] as List?)?.map((e) => MediaSegment.fromJson(e as Map)).toList() ?? + const [], ); -Map _$MediaSegmentsModelToJson(_MediaSegmentsModel instance) => - { +Map _$MediaSegmentsModelToJson(_MediaSegmentsModel instance) => { 'segments': instance.segments, }; -_MediaSegment _$MediaSegmentFromJson(Map json) => - _MediaSegment( +_MediaSegment _$MediaSegmentFromJson(Map json) => _MediaSegment( type: $enumDecode(_$MediaSegmentTypeEnumMap, json['type']), start: Duration(microseconds: (json['start'] as num).toInt()), end: Duration(microseconds: (json['end'] as num).toInt()), ); -Map _$MediaSegmentToJson(_MediaSegment instance) => - { +Map _$MediaSegmentToJson(_MediaSegment instance) => { 'type': _$MediaSegmentTypeEnumMap[instance.type]!, 'start': instance.start.inMicroseconds, 'end': instance.end.inMicroseconds, diff --git a/lib/models/items/movie_model.mapper.dart b/lib/models/items/movie_model.mapper.dart index 06518196e..0c82ce2b1 100644 --- a/lib/models/items/movie_model.mapper.dart +++ b/lib/models/items/movie_model.mapper.dart @@ -26,82 +26,59 @@ class MovieModelMapper extends SubClassMapperBase { final String id = 'MovieModel'; static String _$originalTitle(MovieModel v) => v.originalTitle; - static const Field _f$originalTitle = - Field('originalTitle', _$originalTitle); + static const Field _f$originalTitle = Field('originalTitle', _$originalTitle); static String? _$path(MovieModel v) => v.path; - static const Field _f$path = - Field('path', _$path, opt: true); + static const Field _f$path = Field('path', _$path, opt: true); static List _$chapters(MovieModel v) => v.chapters; - static const Field> _f$chapters = - Field('chapters', _$chapters, opt: true, def: const []); - static List _$specialFeatures(MovieModel v) => - v.specialFeatures; + static const Field> _f$chapters = Field('chapters', _$chapters, opt: true, def: const []); + static List _$specialFeatures(MovieModel v) => v.specialFeatures; static const Field> _f$specialFeatures = Field('specialFeatures', _$specialFeatures, opt: true, def: const []); static DateTime _$premiereDate(MovieModel v) => v.premiereDate; - static const Field _f$premiereDate = - Field('premiereDate', _$premiereDate); + static const Field _f$premiereDate = Field('premiereDate', _$premiereDate); static String _$sortName(MovieModel v) => v.sortName; - static const Field _f$sortName = - Field('sortName', _$sortName); + static const Field _f$sortName = Field('sortName', _$sortName); static String _$status(MovieModel v) => v.status; static const Field _f$status = Field('status', _$status); static List _$related(MovieModel v) => v.related; static const Field> _f$related = Field('related', _$related, opt: true, def: const []); - static List _$seerrRelated(MovieModel v) => - v.seerrRelated; - static const Field> - _f$seerrRelated = + static List _$seerrRelated(MovieModel v) => v.seerrRelated; + static const Field> _f$seerrRelated = Field('seerrRelated', _$seerrRelated, opt: true, def: const []); - static List _$seerrRecommended(MovieModel v) => - v.seerrRecommended; - static const Field> - _f$seerrRecommended = + static List _$seerrRecommended(MovieModel v) => v.seerrRecommended; + static const Field> _f$seerrRecommended = Field('seerrRecommended', _$seerrRecommended, opt: true, def: const []); static Map? _$providerIds(MovieModel v) => v.providerIds; - static const Field> _f$providerIds = - Field('providerIds', _$providerIds, opt: true); + static const Field> _f$providerIds = Field('providerIds', _$providerIds, opt: true); static String _$name(MovieModel v) => v.name; static const Field _f$name = Field('name', _$name); static String _$id(MovieModel v) => v.id; static const Field _f$id = Field('id', _$id); static OverviewModel _$overview(MovieModel v) => v.overview; - static const Field _f$overview = - Field('overview', _$overview); + static const Field _f$overview = Field('overview', _$overview); static String? _$parentId(MovieModel v) => v.parentId; - static const Field _f$parentId = - Field('parentId', _$parentId); + static const Field _f$parentId = Field('parentId', _$parentId); static String? _$playlistId(MovieModel v) => v.playlistId; - static const Field _f$playlistId = - Field('playlistId', _$playlistId); + static const Field _f$playlistId = Field('playlistId', _$playlistId); static ImagesData? _$images(MovieModel v) => v.images; - static const Field _f$images = - Field('images', _$images); + static const Field _f$images = Field('images', _$images); static int? _$childCount(MovieModel v) => v.childCount; - static const Field _f$childCount = - Field('childCount', _$childCount); + static const Field _f$childCount = Field('childCount', _$childCount); static double? _$primaryRatio(MovieModel v) => v.primaryRatio; - static const Field _f$primaryRatio = - Field('primaryRatio', _$primaryRatio); + static const Field _f$primaryRatio = Field('primaryRatio', _$primaryRatio); static UserData _$userData(MovieModel v) => v.userData; - static const Field _f$userData = - Field('userData', _$userData); + static const Field _f$userData = Field('userData', _$userData); static ImagesData? _$parentImages(MovieModel v) => v.parentImages; - static const Field _f$parentImages = - Field('parentImages', _$parentImages); + static const Field _f$parentImages = Field('parentImages', _$parentImages); static MediaStreamsModel _$mediaStreams(MovieModel v) => v.mediaStreams; - static const Field _f$mediaStreams = - Field('mediaStreams', _$mediaStreams); + static const Field _f$mediaStreams = Field('mediaStreams', _$mediaStreams); static bool? _$canDownload(MovieModel v) => v.canDownload; - static const Field _f$canDownload = - Field('canDownload', _$canDownload); + static const Field _f$canDownload = Field('canDownload', _$canDownload); static bool? _$canDelete(MovieModel v) => v.canDelete; - static const Field _f$canDelete = - Field('canDelete', _$canDelete); + static const Field _f$canDelete = Field('canDelete', _$canDelete); static dto.BaseItemKind? _$jellyType(MovieModel v) => v.jellyType; - static const Field _f$jellyType = - Field('jellyType', _$jellyType, opt: true); + static const Field _f$jellyType = Field('jellyType', _$jellyType, opt: true); @override final MappableFields fields = const { @@ -139,8 +116,7 @@ class MovieModelMapper extends SubClassMapperBase { @override final dynamic discriminatorValue = 'MovieModel'; @override - late final ClassMapperBase superMapper = - ItemStreamModelMapper.ensureInitialized(); + late final ClassMapperBase superMapper = ItemStreamModelMapper.ensureInitialized(); static MovieModel _instantiate(DecodingData data) { return MovieModel( @@ -177,38 +153,24 @@ class MovieModelMapper extends SubClassMapperBase { mixin MovieModelMappable { MovieModelCopyWith get copyWith => - _MovieModelCopyWithImpl( - this as MovieModel, $identity, $identity); + _MovieModelCopyWithImpl(this as MovieModel, $identity, $identity); } -extension MovieModelValueCopy<$R, $Out> - on ObjectCopyWith<$R, MovieModel, $Out> { +extension MovieModelValueCopy<$R, $Out> on ObjectCopyWith<$R, MovieModel, $Out> { MovieModelCopyWith<$R, MovieModel, $Out> get $asMovieModel => $base.as((v, t, t2) => _MovieModelCopyWithImpl<$R, $Out>(v, t, t2)); } -abstract class MovieModelCopyWith<$R, $In extends MovieModel, $Out> - implements ItemStreamModelCopyWith<$R, $In, $Out> { +abstract class MovieModelCopyWith<$R, $In extends MovieModel, $Out> implements ItemStreamModelCopyWith<$R, $In, $Out> { ListCopyWith<$R, Chapter, ObjectCopyWith<$R, Chapter, Chapter>> get chapters; - ListCopyWith< - $R, - SpecialFeatureModel, - SpecialFeatureModelCopyWith<$R, SpecialFeatureModel, - SpecialFeatureModel>> get specialFeatures; - ListCopyWith<$R, ItemBaseModel, - ItemBaseModelCopyWith<$R, ItemBaseModel, ItemBaseModel>> get related; - ListCopyWith< - $R, - SeerrDashboardPosterModel, - ObjectCopyWith<$R, SeerrDashboardPosterModel, - SeerrDashboardPosterModel>> get seerrRelated; - ListCopyWith< - $R, - SeerrDashboardPosterModel, - ObjectCopyWith<$R, SeerrDashboardPosterModel, - SeerrDashboardPosterModel>> get seerrRecommended; - MapCopyWith<$R, String, dynamic, ObjectCopyWith<$R, dynamic, dynamic>>? - get providerIds; + ListCopyWith<$R, SpecialFeatureModel, SpecialFeatureModelCopyWith<$R, SpecialFeatureModel, SpecialFeatureModel>> + get specialFeatures; + ListCopyWith<$R, ItemBaseModel, ItemBaseModelCopyWith<$R, ItemBaseModel, ItemBaseModel>> get related; + ListCopyWith<$R, SeerrDashboardPosterModel, ObjectCopyWith<$R, SeerrDashboardPosterModel, SeerrDashboardPosterModel>> + get seerrRelated; + ListCopyWith<$R, SeerrDashboardPosterModel, ObjectCopyWith<$R, SeerrDashboardPosterModel, SeerrDashboardPosterModel>> + get seerrRecommended; + MapCopyWith<$R, String, dynamic, ObjectCopyWith<$R, dynamic, dynamic>>? get providerIds; @override OverviewModelCopyWith<$R, OverviewModel, OverviewModel> get overview; @override @@ -243,64 +205,39 @@ abstract class MovieModelCopyWith<$R, $In extends MovieModel, $Out> MovieModelCopyWith<$R2, $In, $Out2> $chain<$R2, $Out2>(Then<$Out2, $R2> t); } -class _MovieModelCopyWithImpl<$R, $Out> - extends ClassCopyWithBase<$R, MovieModel, $Out> +class _MovieModelCopyWithImpl<$R, $Out> extends ClassCopyWithBase<$R, MovieModel, $Out> implements MovieModelCopyWith<$R, MovieModel, $Out> { _MovieModelCopyWithImpl(super.value, super.then, super.then2); @override - late final ClassMapperBase $mapper = - MovieModelMapper.ensureInitialized(); + late final ClassMapperBase $mapper = MovieModelMapper.ensureInitialized(); @override - ListCopyWith<$R, Chapter, ObjectCopyWith<$R, Chapter, Chapter>> - get chapters => ListCopyWith($value.chapters, - (v, t) => ObjectCopyWith(v, $identity, t), (v) => call(chapters: v)); + ListCopyWith<$R, Chapter, ObjectCopyWith<$R, Chapter, Chapter>> get chapters => + ListCopyWith($value.chapters, (v, t) => ObjectCopyWith(v, $identity, t), (v) => call(chapters: v)); @override - ListCopyWith< - $R, - SpecialFeatureModel, - SpecialFeatureModelCopyWith<$R, SpecialFeatureModel, - SpecialFeatureModel>> get specialFeatures => ListCopyWith( - $value.specialFeatures, - (v, t) => v.copyWith.$chain(t), - (v) => call(specialFeatures: v)); + ListCopyWith<$R, SpecialFeatureModel, SpecialFeatureModelCopyWith<$R, SpecialFeatureModel, SpecialFeatureModel>> + get specialFeatures => + ListCopyWith($value.specialFeatures, (v, t) => v.copyWith.$chain(t), (v) => call(specialFeatures: v)); @override - ListCopyWith<$R, ItemBaseModel, - ItemBaseModelCopyWith<$R, ItemBaseModel, ItemBaseModel>> - get related => ListCopyWith($value.related, - (v, t) => v.copyWith.$chain(t), (v) => call(related: v)); + ListCopyWith<$R, ItemBaseModel, ItemBaseModelCopyWith<$R, ItemBaseModel, ItemBaseModel>> get related => + ListCopyWith($value.related, (v, t) => v.copyWith.$chain(t), (v) => call(related: v)); @override - ListCopyWith< - $R, - SeerrDashboardPosterModel, - ObjectCopyWith<$R, SeerrDashboardPosterModel, - SeerrDashboardPosterModel>> get seerrRelated => ListCopyWith( - $value.seerrRelated, - (v, t) => ObjectCopyWith(v, $identity, t), - (v) => call(seerrRelated: v)); + ListCopyWith<$R, SeerrDashboardPosterModel, ObjectCopyWith<$R, SeerrDashboardPosterModel, SeerrDashboardPosterModel>> + get seerrRelated => + ListCopyWith($value.seerrRelated, (v, t) => ObjectCopyWith(v, $identity, t), (v) => call(seerrRelated: v)); @override - ListCopyWith< - $R, - SeerrDashboardPosterModel, - ObjectCopyWith<$R, SeerrDashboardPosterModel, - SeerrDashboardPosterModel>> get seerrRecommended => ListCopyWith( - $value.seerrRecommended, - (v, t) => ObjectCopyWith(v, $identity, t), - (v) => call(seerrRecommended: v)); + ListCopyWith<$R, SeerrDashboardPosterModel, ObjectCopyWith<$R, SeerrDashboardPosterModel, SeerrDashboardPosterModel>> + get seerrRecommended => ListCopyWith( + $value.seerrRecommended, (v, t) => ObjectCopyWith(v, $identity, t), (v) => call(seerrRecommended: v)); @override - MapCopyWith<$R, String, dynamic, ObjectCopyWith<$R, dynamic, dynamic>>? - get providerIds => $value.providerIds != null - ? MapCopyWith( - $value.providerIds!, - (v, t) => ObjectCopyWith(v, $identity, t), - (v) => call(providerIds: v)) - : null; + MapCopyWith<$R, String, dynamic, ObjectCopyWith<$R, dynamic, dynamic>>? get providerIds => $value.providerIds != null + ? MapCopyWith($value.providerIds!, (v, t) => ObjectCopyWith(v, $identity, t), (v) => call(providerIds: v)) + : null; @override OverviewModelCopyWith<$R, OverviewModel, OverviewModel> get overview => $value.overview.copyWith.$chain((v) => call(overview: v)); @override - UserDataCopyWith<$R, UserData, UserData> get userData => - $value.userData.copyWith.$chain((v) => call(userData: v)); + UserDataCopyWith<$R, UserData, UserData> get userData => $value.userData.copyWith.$chain((v) => call(userData: v)); @override $R call( {String? originalTitle, @@ -366,8 +303,7 @@ class _MovieModelCopyWithImpl<$R, $Out> status: data.get(#status, or: $value.status), related: data.get(#related, or: $value.related), seerrRelated: data.get(#seerrRelated, or: $value.seerrRelated), - seerrRecommended: - data.get(#seerrRecommended, or: $value.seerrRecommended), + seerrRecommended: data.get(#seerrRecommended, or: $value.seerrRecommended), providerIds: data.get(#providerIds, or: $value.providerIds), name: data.get(#name, or: $value.name), id: data.get(#id, or: $value.id), @@ -385,7 +321,6 @@ class _MovieModelCopyWithImpl<$R, $Out> jellyType: data.get(#jellyType, or: $value.jellyType)); @override - MovieModelCopyWith<$R2, MovieModel, $Out2> $chain<$R2, $Out2>( - Then<$Out2, $R2> t) => + MovieModelCopyWith<$R2, MovieModel, $Out2> $chain<$R2, $Out2>(Then<$Out2, $R2> t) => _MovieModelCopyWithImpl<$R2, $Out2>($value, $cast, t); } diff --git a/lib/models/items/overview_model.mapper.dart b/lib/models/items/overview_model.mapper.dart index dc9619d8c..a146ace49 100644 --- a/lib/models/items/overview_model.mapper.dart +++ b/lib/models/items/overview_model.mapper.dart @@ -21,57 +21,42 @@ class OverviewModelMapper extends ClassMapperBase { final String id = 'OverviewModel'; static Duration? _$runTime(OverviewModel v) => v.runTime; - static const Field _f$runTime = - Field('runTime', _$runTime, opt: true); + static const Field _f$runTime = Field('runTime', _$runTime, opt: true); static String _$summary(OverviewModel v) => v.summary; - static const Field _f$summary = - Field('summary', _$summary, opt: true, def: ""); + static const Field _f$summary = Field('summary', _$summary, opt: true, def: ""); static int? _$yearAired(OverviewModel v) => v.yearAired; - static const Field _f$yearAired = - Field('yearAired', _$yearAired, opt: true); + static const Field _f$yearAired = Field('yearAired', _$yearAired, opt: true); static DateTime? _$dateAdded(OverviewModel v) => v.dateAdded; - static const Field _f$dateAdded = - Field('dateAdded', _$dateAdded, opt: true); + static const Field _f$dateAdded = Field('dateAdded', _$dateAdded, opt: true); static String? _$parentalRating(OverviewModel v) => v.parentalRating; - static const Field _f$parentalRating = - Field('parentalRating', _$parentalRating, opt: true); + static const Field _f$parentalRating = Field('parentalRating', _$parentalRating, opt: true); static int? _$productionYear(OverviewModel v) => v.productionYear; - static const Field _f$productionYear = - Field('productionYear', _$productionYear, opt: true); + static const Field _f$productionYear = Field('productionYear', _$productionYear, opt: true); static double? _$criticRating(OverviewModel v) => v.criticRating; - static const Field _f$criticRating = - Field('criticRating', _$criticRating, opt: true); + static const Field _f$criticRating = Field('criticRating', _$criticRating, opt: true); static double? _$communityRating(OverviewModel v) => v.communityRating; - static const Field _f$communityRating = - Field('communityRating', _$communityRating, opt: true); - static Map? _$trickPlayInfo(OverviewModel v) => - v.trickPlayInfo; - static const Field> - _f$trickPlayInfo = Field('trickPlayInfo', _$trickPlayInfo, opt: true); + static const Field _f$communityRating = Field('communityRating', _$communityRating, opt: true); + static Map? _$trickPlayInfo(OverviewModel v) => v.trickPlayInfo; + static const Field> _f$trickPlayInfo = + Field('trickPlayInfo', _$trickPlayInfo, opt: true); static List? _$chapters(OverviewModel v) => v.chapters; - static const Field> _f$chapters = - Field('chapters', _$chapters, opt: true); + static const Field> _f$chapters = Field('chapters', _$chapters, opt: true); static List? _$externalUrls(OverviewModel v) => v.externalUrls; static const Field> _f$externalUrls = Field('externalUrls', _$externalUrls, opt: true); static List _$studios(OverviewModel v) => v.studios; - static const Field> _f$studios = - Field('studios', _$studios, opt: true, def: const []); + static const Field> _f$studios = Field('studios', _$studios, opt: true, def: const []); static List _$genres(OverviewModel v) => v.genres; - static const Field> _f$genres = - Field('genres', _$genres, opt: true, def: const []); + static const Field> _f$genres = Field('genres', _$genres, opt: true, def: const []); static List _$genreItems(OverviewModel v) => v.genreItems; static const Field> _f$genreItems = Field('genreItems', _$genreItems, opt: true, def: const []); static List _$tags(OverviewModel v) => v.tags; - static const Field> _f$tags = - Field('tags', _$tags, opt: true, def: const []); + static const Field> _f$tags = Field('tags', _$tags, opt: true, def: const []); static List _$people(OverviewModel v) => v.people; - static const Field> _f$people = - Field('people', _$people, opt: true, def: const []); + static const Field> _f$people = Field('people', _$people, opt: true, def: const []); static String? _$seerrUrl(OverviewModel v) => v.seerrUrl; - static const Field _f$seerrUrl = - Field('seerrUrl', _$seerrUrl, opt: true); + static const Field _f$seerrUrl = Field('seerrUrl', _$seerrUrl, opt: true); @override final MappableFields fields = const { @@ -122,28 +107,22 @@ class OverviewModelMapper extends ClassMapperBase { } mixin OverviewModelMappable { - OverviewModelCopyWith - get copyWith => _OverviewModelCopyWithImpl( - this as OverviewModel, $identity, $identity); + OverviewModelCopyWith get copyWith => + _OverviewModelCopyWithImpl(this as OverviewModel, $identity, $identity); } -extension OverviewModelValueCopy<$R, $Out> - on ObjectCopyWith<$R, OverviewModel, $Out> { +extension OverviewModelValueCopy<$R, $Out> on ObjectCopyWith<$R, OverviewModel, $Out> { OverviewModelCopyWith<$R, OverviewModel, $Out> get $asOverviewModel => $base.as((v, t, t2) => _OverviewModelCopyWithImpl<$R, $Out>(v, t, t2)); } -abstract class OverviewModelCopyWith<$R, $In extends OverviewModel, $Out> - implements ClassCopyWith<$R, $In, $Out> { - MapCopyWith<$R, String, TrickPlayModel, - ObjectCopyWith<$R, TrickPlayModel, TrickPlayModel>>? get trickPlayInfo; +abstract class OverviewModelCopyWith<$R, $In extends OverviewModel, $Out> implements ClassCopyWith<$R, $In, $Out> { + MapCopyWith<$R, String, TrickPlayModel, ObjectCopyWith<$R, TrickPlayModel, TrickPlayModel>>? get trickPlayInfo; ListCopyWith<$R, Chapter, ObjectCopyWith<$R, Chapter, Chapter>>? get chapters; - ListCopyWith<$R, ExternalUrls, - ObjectCopyWith<$R, ExternalUrls, ExternalUrls>>? get externalUrls; + ListCopyWith<$R, ExternalUrls, ObjectCopyWith<$R, ExternalUrls, ExternalUrls>>? get externalUrls; ListCopyWith<$R, Studio, ObjectCopyWith<$R, Studio, Studio>> get studios; ListCopyWith<$R, String, ObjectCopyWith<$R, String, String>> get genres; - ListCopyWith<$R, GenreItems, ObjectCopyWith<$R, GenreItems, GenreItems>> - get genreItems; + ListCopyWith<$R, GenreItems, ObjectCopyWith<$R, GenreItems, GenreItems>> get genreItems; ListCopyWith<$R, String, ObjectCopyWith<$R, String, String>> get tags; ListCopyWith<$R, Person, ObjectCopyWith<$R, Person, Person>> get people; $R call( @@ -167,62 +146,41 @@ abstract class OverviewModelCopyWith<$R, $In extends OverviewModel, $Out> OverviewModelCopyWith<$R2, $In, $Out2> $chain<$R2, $Out2>(Then<$Out2, $R2> t); } -class _OverviewModelCopyWithImpl<$R, $Out> - extends ClassCopyWithBase<$R, OverviewModel, $Out> +class _OverviewModelCopyWithImpl<$R, $Out> extends ClassCopyWithBase<$R, OverviewModel, $Out> implements OverviewModelCopyWith<$R, OverviewModel, $Out> { _OverviewModelCopyWithImpl(super.value, super.then, super.then2); @override - late final ClassMapperBase $mapper = - OverviewModelMapper.ensureInitialized(); + late final ClassMapperBase $mapper = OverviewModelMapper.ensureInitialized(); @override - MapCopyWith<$R, String, TrickPlayModel, - ObjectCopyWith<$R, TrickPlayModel, TrickPlayModel>>? - get trickPlayInfo => $value.trickPlayInfo != null - ? MapCopyWith( - $value.trickPlayInfo!, - (v, t) => ObjectCopyWith(v, $identity, t), - (v) => call(trickPlayInfo: v)) + MapCopyWith<$R, String, TrickPlayModel, ObjectCopyWith<$R, TrickPlayModel, TrickPlayModel>>? get trickPlayInfo => + $value.trickPlayInfo != null + ? MapCopyWith($value.trickPlayInfo!, (v, t) => ObjectCopyWith(v, $identity, t), (v) => call(trickPlayInfo: v)) : null; @override - ListCopyWith<$R, Chapter, ObjectCopyWith<$R, Chapter, Chapter>>? - get chapters => $value.chapters != null - ? ListCopyWith( - $value.chapters!, - (v, t) => ObjectCopyWith(v, $identity, t), - (v) => call(chapters: v)) - : null; + ListCopyWith<$R, Chapter, ObjectCopyWith<$R, Chapter, Chapter>>? get chapters => $value.chapters != null + ? ListCopyWith($value.chapters!, (v, t) => ObjectCopyWith(v, $identity, t), (v) => call(chapters: v)) + : null; @override - ListCopyWith<$R, ExternalUrls, - ObjectCopyWith<$R, ExternalUrls, ExternalUrls>>? - get externalUrls => $value.externalUrls != null - ? ListCopyWith( - $value.externalUrls!, - (v, t) => ObjectCopyWith(v, $identity, t), - (v) => call(externalUrls: v)) + ListCopyWith<$R, ExternalUrls, ObjectCopyWith<$R, ExternalUrls, ExternalUrls>>? get externalUrls => + $value.externalUrls != null + ? ListCopyWith($value.externalUrls!, (v, t) => ObjectCopyWith(v, $identity, t), (v) => call(externalUrls: v)) : null; @override ListCopyWith<$R, Studio, ObjectCopyWith<$R, Studio, Studio>> get studios => - ListCopyWith($value.studios, (v, t) => ObjectCopyWith(v, $identity, t), - (v) => call(studios: v)); + ListCopyWith($value.studios, (v, t) => ObjectCopyWith(v, $identity, t), (v) => call(studios: v)); @override ListCopyWith<$R, String, ObjectCopyWith<$R, String, String>> get genres => - ListCopyWith($value.genres, (v, t) => ObjectCopyWith(v, $identity, t), - (v) => call(genres: v)); + ListCopyWith($value.genres, (v, t) => ObjectCopyWith(v, $identity, t), (v) => call(genres: v)); @override - ListCopyWith<$R, GenreItems, ObjectCopyWith<$R, GenreItems, GenreItems>> - get genreItems => ListCopyWith( - $value.genreItems, - (v, t) => ObjectCopyWith(v, $identity, t), - (v) => call(genreItems: v)); + ListCopyWith<$R, GenreItems, ObjectCopyWith<$R, GenreItems, GenreItems>> get genreItems => + ListCopyWith($value.genreItems, (v, t) => ObjectCopyWith(v, $identity, t), (v) => call(genreItems: v)); @override ListCopyWith<$R, String, ObjectCopyWith<$R, String, String>> get tags => - ListCopyWith($value.tags, (v, t) => ObjectCopyWith(v, $identity, t), - (v) => call(tags: v)); + ListCopyWith($value.tags, (v, t) => ObjectCopyWith(v, $identity, t), (v) => call(tags: v)); @override ListCopyWith<$R, Person, ObjectCopyWith<$R, Person, Person>> get people => - ListCopyWith($value.people, (v, t) => ObjectCopyWith(v, $identity, t), - (v) => call(people: v)); + ListCopyWith($value.people, (v, t) => ObjectCopyWith(v, $identity, t), (v) => call(people: v)); @override $R call( {Object? runTime = $none, @@ -282,7 +240,6 @@ class _OverviewModelCopyWithImpl<$R, $Out> seerrUrl: data.get(#seerrUrl, or: $value.seerrUrl)); @override - OverviewModelCopyWith<$R2, OverviewModel, $Out2> $chain<$R2, $Out2>( - Then<$Out2, $R2> t) => + OverviewModelCopyWith<$R2, OverviewModel, $Out2> $chain<$R2, $Out2>(Then<$Out2, $R2> t) => _OverviewModelCopyWithImpl<$R2, $Out2>($value, $cast, t); } diff --git a/lib/models/items/person_model.mapper.dart b/lib/models/items/person_model.mapper.dart index c31b4dcd1..7d771a0b4 100644 --- a/lib/models/items/person_model.mapper.dart +++ b/lib/models/items/person_model.mapper.dart @@ -26,51 +26,37 @@ class PersonModelMapper extends SubClassMapperBase { final String id = 'PersonModel'; static DateTime? _$dateOfBirth(PersonModel v) => v.dateOfBirth; - static const Field _f$dateOfBirth = - Field('dateOfBirth', _$dateOfBirth, opt: true); + static const Field _f$dateOfBirth = Field('dateOfBirth', _$dateOfBirth, opt: true); static List _$birthPlace(PersonModel v) => v.birthPlace; - static const Field> _f$birthPlace = - Field('birthPlace', _$birthPlace); + static const Field> _f$birthPlace = Field('birthPlace', _$birthPlace); static List _$movies(PersonModel v) => v.movies; - static const Field> _f$movies = - Field('movies', _$movies); + static const Field> _f$movies = Field('movies', _$movies); static List _$series(PersonModel v) => v.series; - static const Field> _f$series = - Field('series', _$series); + static const Field> _f$series = Field('series', _$series); static String _$name(PersonModel v) => v.name; static const Field _f$name = Field('name', _$name); static String _$id(PersonModel v) => v.id; static const Field _f$id = Field('id', _$id); static OverviewModel _$overview(PersonModel v) => v.overview; - static const Field _f$overview = - Field('overview', _$overview); + static const Field _f$overview = Field('overview', _$overview); static String? _$parentId(PersonModel v) => v.parentId; - static const Field _f$parentId = - Field('parentId', _$parentId); + static const Field _f$parentId = Field('parentId', _$parentId); static String? _$playlistId(PersonModel v) => v.playlistId; - static const Field _f$playlistId = - Field('playlistId', _$playlistId); + static const Field _f$playlistId = Field('playlistId', _$playlistId); static ImagesData? _$images(PersonModel v) => v.images; - static const Field _f$images = - Field('images', _$images); + static const Field _f$images = Field('images', _$images); static int? _$childCount(PersonModel v) => v.childCount; - static const Field _f$childCount = - Field('childCount', _$childCount); + static const Field _f$childCount = Field('childCount', _$childCount); static double? _$primaryRatio(PersonModel v) => v.primaryRatio; - static const Field _f$primaryRatio = - Field('primaryRatio', _$primaryRatio); + static const Field _f$primaryRatio = Field('primaryRatio', _$primaryRatio); static UserData _$userData(PersonModel v) => v.userData; - static const Field _f$userData = - Field('userData', _$userData); + static const Field _f$userData = Field('userData', _$userData); static bool? _$canDownload(PersonModel v) => v.canDownload; - static const Field _f$canDownload = - Field('canDownload', _$canDownload, opt: true); + static const Field _f$canDownload = Field('canDownload', _$canDownload, opt: true); static bool? _$canDelete(PersonModel v) => v.canDelete; - static const Field _f$canDelete = - Field('canDelete', _$canDelete, opt: true); + static const Field _f$canDelete = Field('canDelete', _$canDelete, opt: true); static BaseItemKind? _$jellyType(PersonModel v) => v.jellyType; - static const Field _f$jellyType = - Field('jellyType', _$jellyType, opt: true); + static const Field _f$jellyType = Field('jellyType', _$jellyType, opt: true); @override final MappableFields fields = const { @@ -99,8 +85,7 @@ class PersonModelMapper extends SubClassMapperBase { @override final dynamic discriminatorValue = 'PersonModel'; @override - late final ClassMapperBase superMapper = - ItemBaseModelMapper.ensureInitialized(); + late final ClassMapperBase superMapper = ItemBaseModelMapper.ensureInitialized(); static PersonModel _instantiate(DecodingData data) { return PersonModel( @@ -128,23 +113,18 @@ 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> { +extension PersonModelValueCopy<$R, $Out> on ObjectCopyWith<$R, PersonModel, $Out> { PersonModelCopyWith<$R, PersonModel, $Out> get $asPersonModel => $base.as((v, t, t2) => _PersonModelCopyWithImpl<$R, $Out>(v, t, t2)); } -abstract class PersonModelCopyWith<$R, $In extends PersonModel, $Out> - implements ItemBaseModelCopyWith<$R, $In, $Out> { +abstract class PersonModelCopyWith<$R, $In extends PersonModel, $Out> implements ItemBaseModelCopyWith<$R, $In, $Out> { ListCopyWith<$R, String, ObjectCopyWith<$R, String, String>> get birthPlace; - ListCopyWith<$R, MovieModel, MovieModelCopyWith<$R, MovieModel, MovieModel>> - get movies; - ListCopyWith<$R, SeriesModel, - SeriesModelCopyWith<$R, SeriesModel, SeriesModel>> get series; + ListCopyWith<$R, MovieModel, MovieModelCopyWith<$R, MovieModel, MovieModel>> get movies; + ListCopyWith<$R, SeriesModel, SeriesModelCopyWith<$R, SeriesModel, SeriesModel>> get series; @override OverviewModelCopyWith<$R, OverviewModel, OverviewModel> get overview; @override @@ -170,33 +150,26 @@ abstract class PersonModelCopyWith<$R, $In extends PersonModel, $Out> PersonModelCopyWith<$R2, $In, $Out2> $chain<$R2, $Out2>(Then<$Out2, $R2> t); } -class _PersonModelCopyWithImpl<$R, $Out> - extends ClassCopyWithBase<$R, PersonModel, $Out> +class _PersonModelCopyWithImpl<$R, $Out> extends ClassCopyWithBase<$R, PersonModel, $Out> implements PersonModelCopyWith<$R, PersonModel, $Out> { _PersonModelCopyWithImpl(super.value, super.then, super.then2); @override - late final ClassMapperBase $mapper = - PersonModelMapper.ensureInitialized(); + late final ClassMapperBase $mapper = PersonModelMapper.ensureInitialized(); @override ListCopyWith<$R, String, ObjectCopyWith<$R, String, String>> get birthPlace => - ListCopyWith($value.birthPlace, (v, t) => ObjectCopyWith(v, $identity, t), - (v) => call(birthPlace: v)); + ListCopyWith($value.birthPlace, (v, t) => ObjectCopyWith(v, $identity, t), (v) => call(birthPlace: v)); @override - ListCopyWith<$R, MovieModel, MovieModelCopyWith<$R, MovieModel, MovieModel>> - get movies => ListCopyWith($value.movies, (v, t) => v.copyWith.$chain(t), - (v) => call(movies: v)); + ListCopyWith<$R, MovieModel, MovieModelCopyWith<$R, MovieModel, MovieModel>> get movies => + ListCopyWith($value.movies, (v, t) => v.copyWith.$chain(t), (v) => call(movies: v)); @override - ListCopyWith<$R, SeriesModel, - SeriesModelCopyWith<$R, SeriesModel, SeriesModel>> - get series => ListCopyWith($value.series, (v, t) => v.copyWith.$chain(t), - (v) => call(series: v)); + ListCopyWith<$R, SeriesModel, SeriesModelCopyWith<$R, SeriesModel, SeriesModel>> get series => + ListCopyWith($value.series, (v, t) => v.copyWith.$chain(t), (v) => call(series: v)); @override OverviewModelCopyWith<$R, OverviewModel, OverviewModel> get overview => $value.overview.copyWith.$chain((v) => call(overview: v)); @override - UserDataCopyWith<$R, UserData, UserData> get userData => - $value.userData.copyWith.$chain((v) => call(userData: v)); + UserDataCopyWith<$R, UserData, UserData> get userData => $value.userData.copyWith.$chain((v) => call(userData: v)); @override $R call( {Object? dateOfBirth = $none, @@ -253,7 +226,6 @@ class _PersonModelCopyWithImpl<$R, $Out> jellyType: data.get(#jellyType, or: $value.jellyType)); @override - PersonModelCopyWith<$R2, PersonModel, $Out2> $chain<$R2, $Out2>( - Then<$Out2, $R2> t) => + PersonModelCopyWith<$R2, PersonModel, $Out2> $chain<$R2, $Out2>(Then<$Out2, $R2> 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 b2d2734d9..b70cd25b9 100644 --- a/lib/models/items/photos_model.mapper.dart +++ b/lib/models/items/photos_model.mapper.dart @@ -25,42 +25,31 @@ class PhotoAlbumModelMapper extends SubClassMapperBase { final String id = 'PhotoAlbumModel'; static List _$photos(PhotoAlbumModel v) => v.photos; - static const Field> _f$photos = - Field('photos', _$photos); + static const Field> _f$photos = Field('photos', _$photos); static String _$name(PhotoAlbumModel v) => v.name; static const Field _f$name = Field('name', _$name); static String _$id(PhotoAlbumModel v) => v.id; static const Field _f$id = Field('id', _$id); static OverviewModel _$overview(PhotoAlbumModel v) => v.overview; - static const Field _f$overview = - Field('overview', _$overview); + static const Field _f$overview = Field('overview', _$overview); static String? _$parentId(PhotoAlbumModel v) => v.parentId; - static const Field _f$parentId = - Field('parentId', _$parentId); + static const Field _f$parentId = Field('parentId', _$parentId); static String? _$playlistId(PhotoAlbumModel v) => v.playlistId; - static const Field _f$playlistId = - Field('playlistId', _$playlistId); + static const Field _f$playlistId = Field('playlistId', _$playlistId); static ImagesData? _$images(PhotoAlbumModel v) => v.images; - static const Field _f$images = - Field('images', _$images); + static const Field _f$images = Field('images', _$images); static int? _$childCount(PhotoAlbumModel v) => v.childCount; - static const Field _f$childCount = - Field('childCount', _$childCount); + static const Field _f$childCount = Field('childCount', _$childCount); static double? _$primaryRatio(PhotoAlbumModel v) => v.primaryRatio; - static const Field _f$primaryRatio = - Field('primaryRatio', _$primaryRatio); + static const Field _f$primaryRatio = Field('primaryRatio', _$primaryRatio); static UserData _$userData(PhotoAlbumModel v) => v.userData; - static const Field _f$userData = - Field('userData', _$userData); + static const Field _f$userData = Field('userData', _$userData); static bool? _$canDelete(PhotoAlbumModel v) => v.canDelete; - static const Field _f$canDelete = - Field('canDelete', _$canDelete, opt: true); + static const Field _f$canDelete = Field('canDelete', _$canDelete, opt: true); static bool? _$canDownload(PhotoAlbumModel v) => v.canDownload; - static const Field _f$canDownload = - Field('canDownload', _$canDownload, opt: true); + static const Field _f$canDownload = Field('canDownload', _$canDownload, opt: true); static dto.BaseItemKind? _$jellyType(PhotoAlbumModel v) => v.jellyType; - static const Field _f$jellyType = - Field('jellyType', _$jellyType, opt: true); + static const Field _f$jellyType = Field('jellyType', _$jellyType, opt: true); @override final MappableFields fields = const { @@ -86,8 +75,7 @@ class PhotoAlbumModelMapper extends SubClassMapperBase { @override final dynamic discriminatorValue = 'PhotoAlbumModel'; @override - late final ClassMapperBase superMapper = - ItemBaseModelMapper.ensureInitialized(); + late final ClassMapperBase superMapper = ItemBaseModelMapper.ensureInitialized(); static PhotoAlbumModel _instantiate(DecodingData data) { return PhotoAlbumModel( @@ -111,22 +99,18 @@ class PhotoAlbumModelMapper extends SubClassMapperBase { } mixin PhotoAlbumModelMappable { - PhotoAlbumModelCopyWith - get copyWith => - _PhotoAlbumModelCopyWithImpl( - this as PhotoAlbumModel, $identity, $identity); + PhotoAlbumModelCopyWith get copyWith => + _PhotoAlbumModelCopyWithImpl(this as PhotoAlbumModel, $identity, $identity); } -extension PhotoAlbumModelValueCopy<$R, $Out> - on ObjectCopyWith<$R, PhotoAlbumModel, $Out> { +extension PhotoAlbumModelValueCopy<$R, $Out> on ObjectCopyWith<$R, PhotoAlbumModel, $Out> { PhotoAlbumModelCopyWith<$R, PhotoAlbumModel, $Out> get $asPhotoAlbumModel => $base.as((v, t, t2) => _PhotoAlbumModelCopyWithImpl<$R, $Out>(v, t, t2)); } abstract class PhotoAlbumModelCopyWith<$R, $In extends PhotoAlbumModel, $Out> implements ItemBaseModelCopyWith<$R, $In, $Out> { - ListCopyWith<$R, ItemBaseModel, - ItemBaseModelCopyWith<$R, ItemBaseModel, ItemBaseModel>> get photos; + ListCopyWith<$R, ItemBaseModel, ItemBaseModelCopyWith<$R, ItemBaseModel, ItemBaseModel>> get photos; @override OverviewModelCopyWith<$R, OverviewModel, OverviewModel> get overview; @override @@ -146,29 +130,23 @@ abstract class PhotoAlbumModelCopyWith<$R, $In extends PhotoAlbumModel, $Out> bool? canDelete, bool? canDownload, dto.BaseItemKind? jellyType}); - PhotoAlbumModelCopyWith<$R2, $In, $Out2> $chain<$R2, $Out2>( - Then<$Out2, $R2> t); + PhotoAlbumModelCopyWith<$R2, $In, $Out2> $chain<$R2, $Out2>(Then<$Out2, $R2> t); } -class _PhotoAlbumModelCopyWithImpl<$R, $Out> - extends ClassCopyWithBase<$R, PhotoAlbumModel, $Out> +class _PhotoAlbumModelCopyWithImpl<$R, $Out> extends ClassCopyWithBase<$R, PhotoAlbumModel, $Out> implements PhotoAlbumModelCopyWith<$R, PhotoAlbumModel, $Out> { _PhotoAlbumModelCopyWithImpl(super.value, super.then, super.then2); @override - late final ClassMapperBase $mapper = - PhotoAlbumModelMapper.ensureInitialized(); + late final ClassMapperBase $mapper = PhotoAlbumModelMapper.ensureInitialized(); @override - ListCopyWith<$R, ItemBaseModel, - ItemBaseModelCopyWith<$R, ItemBaseModel, ItemBaseModel>> - get photos => ListCopyWith($value.photos, (v, t) => v.copyWith.$chain(t), - (v) => call(photos: v)); + ListCopyWith<$R, ItemBaseModel, ItemBaseModelCopyWith<$R, ItemBaseModel, ItemBaseModel>> get photos => + ListCopyWith($value.photos, (v, t) => v.copyWith.$chain(t), (v) => call(photos: v)); @override OverviewModelCopyWith<$R, OverviewModel, OverviewModel> get overview => $value.overview.copyWith.$chain((v) => call(overview: v)); @override - UserDataCopyWith<$R, UserData, UserData> get userData => - $value.userData.copyWith.$chain((v) => call(userData: v)); + UserDataCopyWith<$R, UserData, UserData> get userData => $value.userData.copyWith.$chain((v) => call(userData: v)); @override $R call( {List? photos, @@ -216,8 +194,7 @@ class _PhotoAlbumModelCopyWithImpl<$R, $Out> jellyType: data.get(#jellyType, or: $value.jellyType)); @override - PhotoAlbumModelCopyWith<$R2, PhotoAlbumModel, $Out2> $chain<$R2, $Out2>( - Then<$Out2, $R2> t) => + PhotoAlbumModelCopyWith<$R2, PhotoAlbumModel, $Out2> $chain<$R2, $Out2>(Then<$Out2, $R2> t) => _PhotoAlbumModelCopyWithImpl<$R2, $Out2>($value, $cast, t); } @@ -239,51 +216,37 @@ class PhotoModelMapper extends SubClassMapperBase { final String id = 'PhotoModel'; static String? _$albumId(PhotoModel v) => v.albumId; - static const Field _f$albumId = - Field('albumId', _$albumId); + static const Field _f$albumId = Field('albumId', _$albumId); static DateTime? _$dateTaken(PhotoModel v) => v.dateTaken; - static const Field _f$dateTaken = - Field('dateTaken', _$dateTaken); + static const Field _f$dateTaken = Field('dateTaken', _$dateTaken); static ImagesData? _$thumbnail(PhotoModel v) => v.thumbnail; - static const Field _f$thumbnail = - Field('thumbnail', _$thumbnail); + static const Field _f$thumbnail = Field('thumbnail', _$thumbnail); static FladderItemType _$internalType(PhotoModel v) => v.internalType; - static const Field _f$internalType = - Field('internalType', _$internalType); + static const Field _f$internalType = Field('internalType', _$internalType); static String _$name(PhotoModel v) => v.name; static const Field _f$name = Field('name', _$name); static String _$id(PhotoModel v) => v.id; static const Field _f$id = Field('id', _$id); static OverviewModel _$overview(PhotoModel v) => v.overview; - static const Field _f$overview = - Field('overview', _$overview); + static const Field _f$overview = Field('overview', _$overview); static String? _$parentId(PhotoModel v) => v.parentId; - static const Field _f$parentId = - Field('parentId', _$parentId); + static const Field _f$parentId = Field('parentId', _$parentId); static String? _$playlistId(PhotoModel v) => v.playlistId; - static const Field _f$playlistId = - Field('playlistId', _$playlistId); + static const Field _f$playlistId = Field('playlistId', _$playlistId); static ImagesData? _$images(PhotoModel v) => v.images; - static const Field _f$images = - Field('images', _$images); + static const Field _f$images = Field('images', _$images); static int? _$childCount(PhotoModel v) => v.childCount; - static const Field _f$childCount = - Field('childCount', _$childCount); + static const Field _f$childCount = Field('childCount', _$childCount); static double? _$primaryRatio(PhotoModel v) => v.primaryRatio; - static const Field _f$primaryRatio = - Field('primaryRatio', _$primaryRatio); + static const Field _f$primaryRatio = Field('primaryRatio', _$primaryRatio); static UserData _$userData(PhotoModel v) => v.userData; - static const Field _f$userData = - Field('userData', _$userData); + static const Field _f$userData = Field('userData', _$userData); static bool? _$canDownload(PhotoModel v) => v.canDownload; - static const Field _f$canDownload = - Field('canDownload', _$canDownload); + static const Field _f$canDownload = Field('canDownload', _$canDownload); static bool? _$canDelete(PhotoModel v) => v.canDelete; - static const Field _f$canDelete = - Field('canDelete', _$canDelete); + static const Field _f$canDelete = Field('canDelete', _$canDelete); static dto.BaseItemKind? _$jellyType(PhotoModel v) => v.jellyType; - static const Field _f$jellyType = - Field('jellyType', _$jellyType, opt: true); + static const Field _f$jellyType = Field('jellyType', _$jellyType, opt: true); @override final MappableFields fields = const { @@ -312,8 +275,7 @@ class PhotoModelMapper extends SubClassMapperBase { @override final dynamic discriminatorValue = 'PhotoModel'; @override - late final ClassMapperBase superMapper = - ItemBaseModelMapper.ensureInitialized(); + late final ClassMapperBase superMapper = ItemBaseModelMapper.ensureInitialized(); static PhotoModel _instantiate(DecodingData data) { return PhotoModel( @@ -341,18 +303,15 @@ class PhotoModelMapper extends SubClassMapperBase { mixin PhotoModelMappable { PhotoModelCopyWith get copyWith => - _PhotoModelCopyWithImpl( - this as PhotoModel, $identity, $identity); + _PhotoModelCopyWithImpl(this as PhotoModel, $identity, $identity); } -extension PhotoModelValueCopy<$R, $Out> - on ObjectCopyWith<$R, PhotoModel, $Out> { +extension PhotoModelValueCopy<$R, $Out> on ObjectCopyWith<$R, PhotoModel, $Out> { PhotoModelCopyWith<$R, PhotoModel, $Out> get $asPhotoModel => $base.as((v, t, t2) => _PhotoModelCopyWithImpl<$R, $Out>(v, t, t2)); } -abstract class PhotoModelCopyWith<$R, $In extends PhotoModel, $Out> - implements ItemBaseModelCopyWith<$R, $In, $Out> { +abstract class PhotoModelCopyWith<$R, $In extends PhotoModel, $Out> implements ItemBaseModelCopyWith<$R, $In, $Out> { @override OverviewModelCopyWith<$R, OverviewModel, OverviewModel> get overview; @override @@ -378,20 +337,17 @@ abstract class PhotoModelCopyWith<$R, $In extends PhotoModel, $Out> PhotoModelCopyWith<$R2, $In, $Out2> $chain<$R2, $Out2>(Then<$Out2, $R2> t); } -class _PhotoModelCopyWithImpl<$R, $Out> - extends ClassCopyWithBase<$R, PhotoModel, $Out> +class _PhotoModelCopyWithImpl<$R, $Out> extends ClassCopyWithBase<$R, PhotoModel, $Out> implements PhotoModelCopyWith<$R, PhotoModel, $Out> { _PhotoModelCopyWithImpl(super.value, super.then, super.then2); @override - late final ClassMapperBase $mapper = - PhotoModelMapper.ensureInitialized(); + late final ClassMapperBase $mapper = PhotoModelMapper.ensureInitialized(); @override OverviewModelCopyWith<$R, OverviewModel, OverviewModel> get overview => $value.overview.copyWith.$chain((v) => call(overview: v)); @override - UserDataCopyWith<$R, UserData, UserData> get userData => - $value.userData.copyWith.$chain((v) => call(userData: v)); + UserDataCopyWith<$R, UserData, UserData> get userData => $value.userData.copyWith.$chain((v) => call(userData: v)); @override $R call( {Object? albumId = $none, @@ -448,7 +404,6 @@ class _PhotoModelCopyWithImpl<$R, $Out> jellyType: data.get(#jellyType, or: $value.jellyType)); @override - PhotoModelCopyWith<$R2, PhotoModel, $Out2> $chain<$R2, $Out2>( - Then<$Out2, $R2> t) => + PhotoModelCopyWith<$R2, PhotoModel, $Out2> $chain<$R2, $Out2>(Then<$Out2, $R2> t) => _PhotoModelCopyWithImpl<$R2, $Out2>($value, $cast, t); } diff --git a/lib/models/items/season_model.mapper.dart b/lib/models/items/season_model.mapper.dart index 0aefaf259..b236cabd0 100644 --- a/lib/models/items/season_model.mapper.dart +++ b/lib/models/items/season_model.mapper.dart @@ -26,64 +26,47 @@ class SeasonModelMapper extends SubClassMapperBase { final String id = 'SeasonModel'; static ImagesData? _$parentImages(SeasonModel v) => v.parentImages; - static const Field _f$parentImages = - Field('parentImages', _$parentImages); + static const Field _f$parentImages = Field('parentImages', _$parentImages); static String _$seasonName(SeasonModel v) => v.seasonName; - static const Field _f$seasonName = - Field('seasonName', _$seasonName); + static const Field _f$seasonName = Field('seasonName', _$seasonName); static List _$episodes(SeasonModel v) => v.episodes; static const Field> _f$episodes = Field('episodes', _$episodes, opt: true, def: const []); - static List _$specialFeatures(SeasonModel v) => - v.specialFeatures; - static const Field> - _f$specialFeatures = + static List _$specialFeatures(SeasonModel v) => v.specialFeatures; + static const Field> _f$specialFeatures = Field('specialFeatures', _$specialFeatures, opt: true, def: const []); static int _$episodeCount(SeasonModel v) => v.episodeCount; - static const Field _f$episodeCount = - Field('episodeCount', _$episodeCount); + static const Field _f$episodeCount = Field('episodeCount', _$episodeCount); static String _$seriesId(SeasonModel v) => v.seriesId; - static const Field _f$seriesId = - Field('seriesId', _$seriesId); + static const Field _f$seriesId = Field('seriesId', _$seriesId); static int _$season(SeasonModel v) => v.season; static const Field _f$season = Field('season', _$season); static String _$seriesName(SeasonModel v) => v.seriesName; - static const Field _f$seriesName = - Field('seriesName', _$seriesName); + static const Field _f$seriesName = Field('seriesName', _$seriesName); static String _$name(SeasonModel v) => v.name; static const Field _f$name = Field('name', _$name); static String _$id(SeasonModel v) => v.id; static const Field _f$id = Field('id', _$id); static OverviewModel _$overview(SeasonModel v) => v.overview; - static const Field _f$overview = - Field('overview', _$overview); + static const Field _f$overview = Field('overview', _$overview); static String? _$parentId(SeasonModel v) => v.parentId; - static const Field _f$parentId = - Field('parentId', _$parentId); + static const Field _f$parentId = Field('parentId', _$parentId); static String? _$playlistId(SeasonModel v) => v.playlistId; - static const Field _f$playlistId = - Field('playlistId', _$playlistId); + static const Field _f$playlistId = Field('playlistId', _$playlistId); static ImagesData? _$images(SeasonModel v) => v.images; - static const Field _f$images = - Field('images', _$images); + static const Field _f$images = Field('images', _$images); static int? _$childCount(SeasonModel v) => v.childCount; - static const Field _f$childCount = - Field('childCount', _$childCount); + static const Field _f$childCount = Field('childCount', _$childCount); static double? _$primaryRatio(SeasonModel v) => v.primaryRatio; - static const Field _f$primaryRatio = - Field('primaryRatio', _$primaryRatio); + static const Field _f$primaryRatio = Field('primaryRatio', _$primaryRatio); static UserData _$userData(SeasonModel v) => v.userData; - static const Field _f$userData = - Field('userData', _$userData); + static const Field _f$userData = Field('userData', _$userData); static bool? _$canDelete(SeasonModel v) => v.canDelete; - static const Field _f$canDelete = - Field('canDelete', _$canDelete); + static const Field _f$canDelete = Field('canDelete', _$canDelete); static bool? _$canDownload(SeasonModel v) => v.canDownload; - static const Field _f$canDownload = - Field('canDownload', _$canDownload); + static const Field _f$canDownload = Field('canDownload', _$canDownload); static dto.BaseItemKind? _$jellyType(SeasonModel v) => v.jellyType; - static const Field _f$jellyType = - Field('jellyType', _$jellyType, opt: true); + static const Field _f$jellyType = Field('jellyType', _$jellyType, opt: true); @override final MappableFields fields = const { @@ -116,8 +99,7 @@ class SeasonModelMapper extends SubClassMapperBase { @override final dynamic discriminatorValue = 'SeasonModel'; @override - late final ClassMapperBase superMapper = - ItemBaseModelMapper.ensureInitialized(); + late final ClassMapperBase superMapper = ItemBaseModelMapper.ensureInitialized(); static SeasonModel _instantiate(DecodingData data) { return SeasonModel( @@ -149,25 +131,18 @@ class SeasonModelMapper extends SubClassMapperBase { mixin SeasonModelMappable { SeasonModelCopyWith get copyWith => - _SeasonModelCopyWithImpl( - this as SeasonModel, $identity, $identity); + _SeasonModelCopyWithImpl(this as SeasonModel, $identity, $identity); } -extension SeasonModelValueCopy<$R, $Out> - on ObjectCopyWith<$R, SeasonModel, $Out> { +extension SeasonModelValueCopy<$R, $Out> on ObjectCopyWith<$R, SeasonModel, $Out> { SeasonModelCopyWith<$R, SeasonModel, $Out> get $asSeasonModel => $base.as((v, t, t2) => _SeasonModelCopyWithImpl<$R, $Out>(v, t, t2)); } -abstract class SeasonModelCopyWith<$R, $In extends SeasonModel, $Out> - implements ItemBaseModelCopyWith<$R, $In, $Out> { - ListCopyWith<$R, EpisodeModel, - EpisodeModelCopyWith<$R, EpisodeModel, EpisodeModel>> get episodes; - ListCopyWith< - $R, - SpecialFeatureModel, - SpecialFeatureModelCopyWith<$R, SpecialFeatureModel, - SpecialFeatureModel>> get specialFeatures; +abstract class SeasonModelCopyWith<$R, $In extends SeasonModel, $Out> implements ItemBaseModelCopyWith<$R, $In, $Out> { + ListCopyWith<$R, EpisodeModel, EpisodeModelCopyWith<$R, EpisodeModel, EpisodeModel>> get episodes; + ListCopyWith<$R, SpecialFeatureModel, SpecialFeatureModelCopyWith<$R, SpecialFeatureModel, SpecialFeatureModel>> + get specialFeatures; @override OverviewModelCopyWith<$R, OverviewModel, OverviewModel> get overview; @override @@ -197,34 +172,24 @@ abstract class SeasonModelCopyWith<$R, $In extends SeasonModel, $Out> SeasonModelCopyWith<$R2, $In, $Out2> $chain<$R2, $Out2>(Then<$Out2, $R2> t); } -class _SeasonModelCopyWithImpl<$R, $Out> - extends ClassCopyWithBase<$R, SeasonModel, $Out> +class _SeasonModelCopyWithImpl<$R, $Out> extends ClassCopyWithBase<$R, SeasonModel, $Out> implements SeasonModelCopyWith<$R, SeasonModel, $Out> { _SeasonModelCopyWithImpl(super.value, super.then, super.then2); @override - late final ClassMapperBase $mapper = - SeasonModelMapper.ensureInitialized(); + late final ClassMapperBase $mapper = SeasonModelMapper.ensureInitialized(); @override - ListCopyWith<$R, EpisodeModel, - EpisodeModelCopyWith<$R, EpisodeModel, EpisodeModel>> - get episodes => ListCopyWith($value.episodes, - (v, t) => v.copyWith.$chain(t), (v) => call(episodes: v)); + ListCopyWith<$R, EpisodeModel, EpisodeModelCopyWith<$R, EpisodeModel, EpisodeModel>> get episodes => + ListCopyWith($value.episodes, (v, t) => v.copyWith.$chain(t), (v) => call(episodes: v)); @override - ListCopyWith< - $R, - SpecialFeatureModel, - SpecialFeatureModelCopyWith<$R, SpecialFeatureModel, - SpecialFeatureModel>> get specialFeatures => ListCopyWith( - $value.specialFeatures, - (v, t) => v.copyWith.$chain(t), - (v) => call(specialFeatures: v)); + ListCopyWith<$R, SpecialFeatureModel, SpecialFeatureModelCopyWith<$R, SpecialFeatureModel, SpecialFeatureModel>> + get specialFeatures => + ListCopyWith($value.specialFeatures, (v, t) => v.copyWith.$chain(t), (v) => call(specialFeatures: v)); @override OverviewModelCopyWith<$R, OverviewModel, OverviewModel> get overview => $value.overview.copyWith.$chain((v) => call(overview: v)); @override - UserDataCopyWith<$R, UserData, UserData> get userData => - $value.userData.copyWith.$chain((v) => call(userData: v)); + UserDataCopyWith<$R, UserData, UserData> get userData => $value.userData.copyWith.$chain((v) => call(userData: v)); @override $R call( {Object? parentImages = $none, @@ -293,7 +258,6 @@ class _SeasonModelCopyWithImpl<$R, $Out> jellyType: data.get(#jellyType, or: $value.jellyType)); @override - SeasonModelCopyWith<$R2, SeasonModel, $Out2> $chain<$R2, $Out2>( - Then<$Out2, $R2> t) => + SeasonModelCopyWith<$R2, SeasonModel, $Out2> $chain<$R2, $Out2>(Then<$Out2, $R2> t) => _SeasonModelCopyWithImpl<$R2, $Out2>($value, $cast, t); } diff --git a/lib/models/items/series_model.mapper.dart b/lib/models/items/series_model.mapper.dart index c608a30bf..846815b8c 100644 --- a/lib/models/items/series_model.mapper.dart +++ b/lib/models/items/series_model.mapper.dart @@ -27,79 +27,58 @@ class SeriesModelMapper extends SubClassMapperBase { @override final String id = 'SeriesModel'; - static List? _$availableEpisodes(SeriesModel v) => - v.availableEpisodes; + static List? _$availableEpisodes(SeriesModel v) => v.availableEpisodes; static const Field> _f$availableEpisodes = Field('availableEpisodes', _$availableEpisodes, opt: true); static List? _$seasons(SeriesModel v) => v.seasons; - static const Field> _f$seasons = - Field('seasons', _$seasons, opt: true); + static const Field> _f$seasons = Field('seasons', _$seasons, opt: true); static EpisodeModel? _$selectedEpisode(SeriesModel v) => v.selectedEpisode; static const Field _f$selectedEpisode = Field('selectedEpisode', _$selectedEpisode, opt: true); - static List? _$specialFeatures(SeriesModel v) => - v.specialFeatures; - static const Field> - _f$specialFeatures = + static List? _$specialFeatures(SeriesModel v) => v.specialFeatures; + static const Field> _f$specialFeatures = Field('specialFeatures', _$specialFeatures, opt: true); static String _$originalTitle(SeriesModel v) => v.originalTitle; - static const Field _f$originalTitle = - Field('originalTitle', _$originalTitle); + static const Field _f$originalTitle = Field('originalTitle', _$originalTitle); static String _$sortName(SeriesModel v) => v.sortName; - static const Field _f$sortName = - Field('sortName', _$sortName); + static const Field _f$sortName = Field('sortName', _$sortName); static String _$status(SeriesModel v) => v.status; static const Field _f$status = Field('status', _$status); static List _$related(SeriesModel v) => v.related; static const Field> _f$related = Field('related', _$related, opt: true, def: const []); - static List _$seerrRelated(SeriesModel v) => - v.seerrRelated; - static const Field> - _f$seerrRelated = + static List _$seerrRelated(SeriesModel v) => v.seerrRelated; + static const Field> _f$seerrRelated = Field('seerrRelated', _$seerrRelated, opt: true, def: const []); - static List _$seerrRecommended(SeriesModel v) => - v.seerrRecommended; - static const Field> - _f$seerrRecommended = + static List _$seerrRecommended(SeriesModel v) => v.seerrRecommended; + static const Field> _f$seerrRecommended = Field('seerrRecommended', _$seerrRecommended, opt: true, def: const []); static Map? _$providerIds(SeriesModel v) => v.providerIds; - static const Field> _f$providerIds = - Field('providerIds', _$providerIds, opt: true); + static const Field> _f$providerIds = Field('providerIds', _$providerIds, opt: true); static String _$name(SeriesModel v) => v.name; static const Field _f$name = Field('name', _$name); static String _$id(SeriesModel v) => v.id; static const Field _f$id = Field('id', _$id); static OverviewModel _$overview(SeriesModel v) => v.overview; - static const Field _f$overview = - Field('overview', _$overview); + static const Field _f$overview = Field('overview', _$overview); static String? _$parentId(SeriesModel v) => v.parentId; - static const Field _f$parentId = - Field('parentId', _$parentId); + static const Field _f$parentId = Field('parentId', _$parentId); static String? _$playlistId(SeriesModel v) => v.playlistId; - static const Field _f$playlistId = - Field('playlistId', _$playlistId); + static const Field _f$playlistId = Field('playlistId', _$playlistId); static ImagesData? _$images(SeriesModel v) => v.images; - static const Field _f$images = - Field('images', _$images); + static const Field _f$images = Field('images', _$images); static int? _$childCount(SeriesModel v) => v.childCount; - static const Field _f$childCount = - Field('childCount', _$childCount); + static const Field _f$childCount = Field('childCount', _$childCount); static double? _$primaryRatio(SeriesModel v) => v.primaryRatio; - static const Field _f$primaryRatio = - Field('primaryRatio', _$primaryRatio); + static const Field _f$primaryRatio = Field('primaryRatio', _$primaryRatio); static UserData _$userData(SeriesModel v) => v.userData; - static const Field _f$userData = - Field('userData', _$userData); + static const Field _f$userData = Field('userData', _$userData); static bool? _$canDownload(SeriesModel v) => v.canDownload; - static const Field _f$canDownload = - Field('canDownload', _$canDownload, opt: true); + static const Field _f$canDownload = Field('canDownload', _$canDownload, opt: true); static bool? _$canDelete(SeriesModel v) => v.canDelete; - static const Field _f$canDelete = - Field('canDelete', _$canDelete, opt: true); + static const Field _f$canDelete = Field('canDelete', _$canDelete, opt: true); static dto.BaseItemKind? _$jellyType(SeriesModel v) => v.jellyType; - static const Field _f$jellyType = - Field('jellyType', _$jellyType, opt: true); + static const Field _f$jellyType = Field('jellyType', _$jellyType, opt: true); @override final MappableFields fields = const { @@ -135,8 +114,7 @@ class SeriesModelMapper extends SubClassMapperBase { @override final dynamic discriminatorValue = 'SeriesModel'; @override - late final ClassMapperBase superMapper = - ItemBaseModelMapper.ensureInitialized(); + late final ClassMapperBase superMapper = ItemBaseModelMapper.ensureInitialized(); static SeriesModel _instantiate(DecodingData data) { return SeriesModel( @@ -171,43 +149,26 @@ class SeriesModelMapper extends SubClassMapperBase { mixin SeriesModelMappable { SeriesModelCopyWith get copyWith => - _SeriesModelCopyWithImpl( - this as SeriesModel, $identity, $identity); + _SeriesModelCopyWithImpl(this as SeriesModel, $identity, $identity); } -extension SeriesModelValueCopy<$R, $Out> - on ObjectCopyWith<$R, SeriesModel, $Out> { +extension SeriesModelValueCopy<$R, $Out> on ObjectCopyWith<$R, SeriesModel, $Out> { SeriesModelCopyWith<$R, SeriesModel, $Out> get $asSeriesModel => $base.as((v, t, t2) => _SeriesModelCopyWithImpl<$R, $Out>(v, t, t2)); } -abstract class SeriesModelCopyWith<$R, $In extends SeriesModel, $Out> - implements ItemBaseModelCopyWith<$R, $In, $Out> { - ListCopyWith<$R, EpisodeModel, - EpisodeModelCopyWith<$R, EpisodeModel, EpisodeModel>>? - get availableEpisodes; - ListCopyWith<$R, SeasonModel, - SeasonModelCopyWith<$R, SeasonModel, SeasonModel>>? get seasons; +abstract class SeriesModelCopyWith<$R, $In extends SeriesModel, $Out> implements ItemBaseModelCopyWith<$R, $In, $Out> { + ListCopyWith<$R, EpisodeModel, EpisodeModelCopyWith<$R, EpisodeModel, EpisodeModel>>? get availableEpisodes; + ListCopyWith<$R, SeasonModel, SeasonModelCopyWith<$R, SeasonModel, SeasonModel>>? get seasons; EpisodeModelCopyWith<$R, EpisodeModel, EpisodeModel>? get selectedEpisode; - ListCopyWith< - $R, - SpecialFeatureModel, - SpecialFeatureModelCopyWith<$R, SpecialFeatureModel, - SpecialFeatureModel>>? get specialFeatures; - ListCopyWith<$R, ItemBaseModel, - ItemBaseModelCopyWith<$R, ItemBaseModel, ItemBaseModel>> get related; - ListCopyWith< - $R, - SeerrDashboardPosterModel, - ObjectCopyWith<$R, SeerrDashboardPosterModel, - SeerrDashboardPosterModel>> get seerrRelated; - ListCopyWith< - $R, - SeerrDashboardPosterModel, - ObjectCopyWith<$R, SeerrDashboardPosterModel, - SeerrDashboardPosterModel>> get seerrRecommended; - MapCopyWith<$R, String, dynamic, ObjectCopyWith<$R, dynamic, dynamic>>? - get providerIds; + ListCopyWith<$R, SpecialFeatureModel, SpecialFeatureModelCopyWith<$R, SpecialFeatureModel, SpecialFeatureModel>>? + get specialFeatures; + ListCopyWith<$R, ItemBaseModel, ItemBaseModelCopyWith<$R, ItemBaseModel, ItemBaseModel>> get related; + ListCopyWith<$R, SeerrDashboardPosterModel, ObjectCopyWith<$R, SeerrDashboardPosterModel, SeerrDashboardPosterModel>> + get seerrRelated; + ListCopyWith<$R, SeerrDashboardPosterModel, ObjectCopyWith<$R, SeerrDashboardPosterModel, SeerrDashboardPosterModel>> + get seerrRecommended; + MapCopyWith<$R, String, dynamic, ObjectCopyWith<$R, dynamic, dynamic>>? get providerIds; @override OverviewModelCopyWith<$R, OverviewModel, OverviewModel> get overview; @override @@ -240,78 +201,50 @@ abstract class SeriesModelCopyWith<$R, $In extends SeriesModel, $Out> SeriesModelCopyWith<$R2, $In, $Out2> $chain<$R2, $Out2>(Then<$Out2, $R2> t); } -class _SeriesModelCopyWithImpl<$R, $Out> - extends ClassCopyWithBase<$R, SeriesModel, $Out> +class _SeriesModelCopyWithImpl<$R, $Out> extends ClassCopyWithBase<$R, SeriesModel, $Out> implements SeriesModelCopyWith<$R, SeriesModel, $Out> { _SeriesModelCopyWithImpl(super.value, super.then, super.then2); @override - late final ClassMapperBase $mapper = - SeriesModelMapper.ensureInitialized(); + late final ClassMapperBase $mapper = SeriesModelMapper.ensureInitialized(); @override - ListCopyWith<$R, EpisodeModel, - EpisodeModelCopyWith<$R, EpisodeModel, EpisodeModel>>? - get availableEpisodes => $value.availableEpisodes != null - ? ListCopyWith($value.availableEpisodes!, - (v, t) => v.copyWith.$chain(t), (v) => call(availableEpisodes: v)) + ListCopyWith<$R, EpisodeModel, EpisodeModelCopyWith<$R, EpisodeModel, EpisodeModel>>? get availableEpisodes => + $value.availableEpisodes != null + ? ListCopyWith($value.availableEpisodes!, (v, t) => v.copyWith.$chain(t), (v) => call(availableEpisodes: v)) : null; @override - ListCopyWith<$R, SeasonModel, - SeasonModelCopyWith<$R, SeasonModel, SeasonModel>>? - get seasons => $value.seasons != null - ? ListCopyWith($value.seasons!, (v, t) => v.copyWith.$chain(t), - (v) => call(seasons: v)) + ListCopyWith<$R, SeasonModel, SeasonModelCopyWith<$R, SeasonModel, SeasonModel>>? get seasons => + $value.seasons != null + ? ListCopyWith($value.seasons!, (v, t) => v.copyWith.$chain(t), (v) => call(seasons: v)) : null; @override EpisodeModelCopyWith<$R, EpisodeModel, EpisodeModel>? get selectedEpisode => $value.selectedEpisode?.copyWith.$chain((v) => call(selectedEpisode: v)); @override - ListCopyWith< - $R, - SpecialFeatureModel, - SpecialFeatureModelCopyWith<$R, SpecialFeatureModel, - SpecialFeatureModel>>? get specialFeatures => - $value.specialFeatures != null - ? ListCopyWith($value.specialFeatures!, - (v, t) => v.copyWith.$chain(t), (v) => call(specialFeatures: v)) + ListCopyWith<$R, SpecialFeatureModel, SpecialFeatureModelCopyWith<$R, SpecialFeatureModel, SpecialFeatureModel>>? + get specialFeatures => $value.specialFeatures != null + ? ListCopyWith($value.specialFeatures!, (v, t) => v.copyWith.$chain(t), (v) => call(specialFeatures: v)) : null; @override - ListCopyWith<$R, ItemBaseModel, - ItemBaseModelCopyWith<$R, ItemBaseModel, ItemBaseModel>> - get related => ListCopyWith($value.related, - (v, t) => v.copyWith.$chain(t), (v) => call(related: v)); + ListCopyWith<$R, ItemBaseModel, ItemBaseModelCopyWith<$R, ItemBaseModel, ItemBaseModel>> get related => + ListCopyWith($value.related, (v, t) => v.copyWith.$chain(t), (v) => call(related: v)); @override - ListCopyWith< - $R, - SeerrDashboardPosterModel, - ObjectCopyWith<$R, SeerrDashboardPosterModel, - SeerrDashboardPosterModel>> get seerrRelated => ListCopyWith( - $value.seerrRelated, - (v, t) => ObjectCopyWith(v, $identity, t), - (v) => call(seerrRelated: v)); + ListCopyWith<$R, SeerrDashboardPosterModel, ObjectCopyWith<$R, SeerrDashboardPosterModel, SeerrDashboardPosterModel>> + get seerrRelated => + ListCopyWith($value.seerrRelated, (v, t) => ObjectCopyWith(v, $identity, t), (v) => call(seerrRelated: v)); @override - ListCopyWith< - $R, - SeerrDashboardPosterModel, - ObjectCopyWith<$R, SeerrDashboardPosterModel, - SeerrDashboardPosterModel>> get seerrRecommended => ListCopyWith( - $value.seerrRecommended, - (v, t) => ObjectCopyWith(v, $identity, t), - (v) => call(seerrRecommended: v)); + ListCopyWith<$R, SeerrDashboardPosterModel, ObjectCopyWith<$R, SeerrDashboardPosterModel, SeerrDashboardPosterModel>> + get seerrRecommended => ListCopyWith( + $value.seerrRecommended, (v, t) => ObjectCopyWith(v, $identity, t), (v) => call(seerrRecommended: v)); @override - MapCopyWith<$R, String, dynamic, ObjectCopyWith<$R, dynamic, dynamic>>? - get providerIds => $value.providerIds != null - ? MapCopyWith( - $value.providerIds!, - (v, t) => ObjectCopyWith(v, $identity, t), - (v) => call(providerIds: v)) - : null; + MapCopyWith<$R, String, dynamic, ObjectCopyWith<$R, dynamic, dynamic>>? get providerIds => $value.providerIds != null + ? MapCopyWith($value.providerIds!, (v, t) => ObjectCopyWith(v, $identity, t), (v) => call(providerIds: v)) + : null; @override OverviewModelCopyWith<$R, OverviewModel, OverviewModel> get overview => $value.overview.copyWith.$chain((v) => call(overview: v)); @override - UserDataCopyWith<$R, UserData, UserData> get userData => - $value.userData.copyWith.$chain((v) => call(userData: v)); + UserDataCopyWith<$R, UserData, UserData> get userData => $value.userData.copyWith.$chain((v) => call(userData: v)); @override $R call( {Object? availableEpisodes = $none, @@ -364,8 +297,7 @@ class _SeriesModelCopyWithImpl<$R, $Out> })); @override SeriesModel $make(CopyWithData data) => SeriesModel( - availableEpisodes: - data.get(#availableEpisodes, or: $value.availableEpisodes), + availableEpisodes: data.get(#availableEpisodes, or: $value.availableEpisodes), seasons: data.get(#seasons, or: $value.seasons), selectedEpisode: data.get(#selectedEpisode, or: $value.selectedEpisode), specialFeatures: data.get(#specialFeatures, or: $value.specialFeatures), @@ -374,8 +306,7 @@ class _SeriesModelCopyWithImpl<$R, $Out> status: data.get(#status, or: $value.status), related: data.get(#related, or: $value.related), seerrRelated: data.get(#seerrRelated, or: $value.seerrRelated), - seerrRecommended: - data.get(#seerrRecommended, or: $value.seerrRecommended), + seerrRecommended: data.get(#seerrRecommended, or: $value.seerrRecommended), providerIds: data.get(#providerIds, or: $value.providerIds), name: data.get(#name, or: $value.name), id: data.get(#id, or: $value.id), @@ -391,7 +322,6 @@ class _SeriesModelCopyWithImpl<$R, $Out> jellyType: data.get(#jellyType, or: $value.jellyType)); @override - SeriesModelCopyWith<$R2, SeriesModel, $Out2> $chain<$R2, $Out2>( - Then<$Out2, $R2> t) => + SeriesModelCopyWith<$R2, SeriesModel, $Out2> $chain<$R2, $Out2>(Then<$Out2, $R2> t) => _SeriesModelCopyWithImpl<$R2, $Out2>($value, $cast, t); } diff --git a/lib/models/items/special_feature_model.mapper.dart b/lib/models/items/special_feature_model.mapper.dart index 8ca507d75..f4fcad42a 100644 --- a/lib/models/items/special_feature_model.mapper.dart +++ b/lib/models/items/special_feature_model.mapper.dart @@ -6,8 +6,7 @@ part of 'special_feature_model.dart'; -class SpecialFeatureModelMapper - extends SubClassMapperBase { +class SpecialFeatureModelMapper extends SubClassMapperBase { SpecialFeatureModelMapper._(); static SpecialFeatureModelMapper? _instance; @@ -25,50 +24,35 @@ class SpecialFeatureModelMapper final String id = 'SpecialFeatureModel'; static DateTime? _$dateAired(SpecialFeatureModel v) => v.dateAired; - static const Field _f$dateAired = - Field('dateAired', _$dateAired, opt: true); + static const Field _f$dateAired = Field('dateAired', _$dateAired, opt: true); static String _$name(SpecialFeatureModel v) => v.name; - static const Field _f$name = - Field('name', _$name); + static const Field _f$name = Field('name', _$name); static String _$id(SpecialFeatureModel v) => v.id; static const Field _f$id = Field('id', _$id); static OverviewModel _$overview(SpecialFeatureModel v) => v.overview; - static const Field _f$overview = - Field('overview', _$overview); + static const Field _f$overview = Field('overview', _$overview); static String? _$parentId(SpecialFeatureModel v) => v.parentId; - static const Field _f$parentId = - Field('parentId', _$parentId); + static const Field _f$parentId = Field('parentId', _$parentId); static String? _$playlistId(SpecialFeatureModel v) => v.playlistId; - static const Field _f$playlistId = - Field('playlistId', _$playlistId); + static const Field _f$playlistId = Field('playlistId', _$playlistId); static ImagesData? _$images(SpecialFeatureModel v) => v.images; - static const Field _f$images = - Field('images', _$images); + static const Field _f$images = Field('images', _$images); static int? _$childCount(SpecialFeatureModel v) => v.childCount; - static const Field _f$childCount = - Field('childCount', _$childCount); + static const Field _f$childCount = Field('childCount', _$childCount); static double? _$primaryRatio(SpecialFeatureModel v) => v.primaryRatio; - static const Field _f$primaryRatio = - Field('primaryRatio', _$primaryRatio); + static const Field _f$primaryRatio = Field('primaryRatio', _$primaryRatio); static UserData _$userData(SpecialFeatureModel v) => v.userData; - static const Field _f$userData = - Field('userData', _$userData); + static const Field _f$userData = Field('userData', _$userData); static ImagesData? _$parentImages(SpecialFeatureModel v) => v.parentImages; - static const Field _f$parentImages = - Field('parentImages', _$parentImages); - static MediaStreamsModel _$mediaStreams(SpecialFeatureModel v) => - v.mediaStreams; - static const Field _f$mediaStreams = - Field('mediaStreams', _$mediaStreams); + static const Field _f$parentImages = Field('parentImages', _$parentImages); + static MediaStreamsModel _$mediaStreams(SpecialFeatureModel v) => v.mediaStreams; + static const Field _f$mediaStreams = Field('mediaStreams', _$mediaStreams); static bool? _$canDelete(SpecialFeatureModel v) => v.canDelete; - static const Field _f$canDelete = - Field('canDelete', _$canDelete, opt: true); + static const Field _f$canDelete = Field('canDelete', _$canDelete, opt: true); static bool? _$canDownload(SpecialFeatureModel v) => v.canDownload; - static const Field _f$canDownload = - Field('canDownload', _$canDownload, opt: true); + static const Field _f$canDownload = Field('canDownload', _$canDownload, opt: true); static dto.BaseItemKind? _$jellyType(SpecialFeatureModel v) => v.jellyType; - static const Field _f$jellyType = - Field('jellyType', _$jellyType, opt: true); + static const Field _f$jellyType = Field('jellyType', _$jellyType, opt: true); @override final MappableFields fields = const { @@ -96,8 +80,7 @@ class SpecialFeatureModelMapper @override final dynamic discriminatorValue = 'SpecialFeatureModel'; @override - late final ClassMapperBase superMapper = - ItemStreamModelMapper.ensureInitialized(); + late final ClassMapperBase superMapper = ItemStreamModelMapper.ensureInitialized(); static SpecialFeatureModel _instantiate(DecodingData data) { return SpecialFeatureModel( @@ -123,21 +106,18 @@ class SpecialFeatureModelMapper } mixin SpecialFeatureModelMappable { - SpecialFeatureModelCopyWith get copyWith => _SpecialFeatureModelCopyWithImpl< - SpecialFeatureModel, SpecialFeatureModel>( - this as SpecialFeatureModel, $identity, $identity); + SpecialFeatureModelCopyWith get copyWith => + _SpecialFeatureModelCopyWithImpl( + this as SpecialFeatureModel, $identity, $identity); } -extension SpecialFeatureModelValueCopy<$R, $Out> - on ObjectCopyWith<$R, SpecialFeatureModel, $Out> { - SpecialFeatureModelCopyWith<$R, SpecialFeatureModel, $Out> - get $asSpecialFeatureModel => $base.as( - (v, t, t2) => _SpecialFeatureModelCopyWithImpl<$R, $Out>(v, t, t2)); +extension SpecialFeatureModelValueCopy<$R, $Out> on ObjectCopyWith<$R, SpecialFeatureModel, $Out> { + SpecialFeatureModelCopyWith<$R, SpecialFeatureModel, $Out> get $asSpecialFeatureModel => + $base.as((v, t, t2) => _SpecialFeatureModelCopyWithImpl<$R, $Out>(v, t, t2)); } -abstract class SpecialFeatureModelCopyWith<$R, $In extends SpecialFeatureModel, - $Out> implements ItemStreamModelCopyWith<$R, $In, $Out> { +abstract class SpecialFeatureModelCopyWith<$R, $In extends SpecialFeatureModel, $Out> + implements ItemStreamModelCopyWith<$R, $In, $Out> { @override OverviewModelCopyWith<$R, OverviewModel, OverviewModel> get overview; @override @@ -159,24 +139,20 @@ abstract class SpecialFeatureModelCopyWith<$R, $In extends SpecialFeatureModel, bool? canDelete, bool? canDownload, dto.BaseItemKind? jellyType}); - SpecialFeatureModelCopyWith<$R2, $In, $Out2> $chain<$R2, $Out2>( - Then<$Out2, $R2> t); + SpecialFeatureModelCopyWith<$R2, $In, $Out2> $chain<$R2, $Out2>(Then<$Out2, $R2> t); } -class _SpecialFeatureModelCopyWithImpl<$R, $Out> - extends ClassCopyWithBase<$R, SpecialFeatureModel, $Out> +class _SpecialFeatureModelCopyWithImpl<$R, $Out> extends ClassCopyWithBase<$R, SpecialFeatureModel, $Out> implements SpecialFeatureModelCopyWith<$R, SpecialFeatureModel, $Out> { _SpecialFeatureModelCopyWithImpl(super.value, super.then, super.then2); @override - late final ClassMapperBase $mapper = - SpecialFeatureModelMapper.ensureInitialized(); + late final ClassMapperBase $mapper = SpecialFeatureModelMapper.ensureInitialized(); @override OverviewModelCopyWith<$R, OverviewModel, OverviewModel> get overview => $value.overview.copyWith.$chain((v) => call(overview: v)); @override - UserDataCopyWith<$R, UserData, UserData> get userData => - $value.userData.copyWith.$chain((v) => call(userData: v)); + UserDataCopyWith<$R, UserData, UserData> get userData => $value.userData.copyWith.$chain((v) => call(userData: v)); @override $R call( {Object? dateAired = $none, @@ -230,7 +206,6 @@ class _SpecialFeatureModelCopyWithImpl<$R, $Out> jellyType: data.get(#jellyType, or: $value.jellyType)); @override - SpecialFeatureModelCopyWith<$R2, SpecialFeatureModel, $Out2> - $chain<$R2, $Out2>(Then<$Out2, $R2> t) => - _SpecialFeatureModelCopyWithImpl<$R2, $Out2>($value, $cast, t); + SpecialFeatureModelCopyWith<$R2, SpecialFeatureModel, $Out2> $chain<$R2, $Out2>(Then<$Out2, $R2> t) => + _SpecialFeatureModelCopyWithImpl<$R2, $Out2>($value, $cast, t); } diff --git a/lib/models/items/trick_play_model.freezed.dart b/lib/models/items/trick_play_model.freezed.dart index b63efabbb..378a0c381 100644 --- a/lib/models/items/trick_play_model.freezed.dart +++ b/lib/models/items/trick_play_model.freezed.dart @@ -27,8 +27,7 @@ mixin _$TrickPlayModel { @JsonKey(includeFromJson: false, includeToJson: false) @pragma('vm:prefer-inline') $TrickPlayModelCopyWith get copyWith => - _$TrickPlayModelCopyWithImpl( - this as TrickPlayModel, _$identity); + _$TrickPlayModelCopyWithImpl(this as TrickPlayModel, _$identity); /// Serializes this TrickPlayModel to a JSON map. Map toJson(); @@ -41,8 +40,7 @@ mixin _$TrickPlayModel { /// @nodoc abstract mixin class $TrickPlayModelCopyWith<$Res> { - factory $TrickPlayModelCopyWith( - TrickPlayModel value, $Res Function(TrickPlayModel) _then) = + factory $TrickPlayModelCopyWith(TrickPlayModel value, $Res Function(TrickPlayModel) _then) = _$TrickPlayModelCopyWithImpl; @useResult $Res call( @@ -56,8 +54,7 @@ abstract mixin class $TrickPlayModelCopyWith<$Res> { } /// @nodoc -class _$TrickPlayModelCopyWithImpl<$Res> - implements $TrickPlayModelCopyWith<$Res> { +class _$TrickPlayModelCopyWithImpl<$Res> implements $TrickPlayModelCopyWith<$Res> { _$TrickPlayModelCopyWithImpl(this._self, this._then); final TrickPlayModel _self; @@ -202,22 +199,16 @@ extension TrickPlayModelPatterns on TrickPlayModel { @optionalTypeArgs TResult maybeWhen( - TResult Function(int width, int height, int tileWidth, int tileHeight, - int thumbnailCount, Duration interval, List images)? + TResult Function(int width, int height, int tileWidth, int tileHeight, int thumbnailCount, Duration interval, + List images)? $default, { required TResult orElse(), }) { final _that = this; switch (_that) { case _TrickPlayModel() when $default != null: - return $default( - _that.width, - _that.height, - _that.tileWidth, - _that.tileHeight, - _that.thumbnailCount, - _that.interval, - _that.images); + return $default(_that.width, _that.height, _that.tileWidth, _that.tileHeight, _that.thumbnailCount, + _that.interval, _that.images); case _: return orElse(); } @@ -238,21 +229,15 @@ extension TrickPlayModelPatterns on TrickPlayModel { @optionalTypeArgs TResult when( - TResult Function(int width, int height, int tileWidth, int tileHeight, - int thumbnailCount, Duration interval, List images) + TResult Function(int width, int height, int tileWidth, int tileHeight, int thumbnailCount, Duration interval, + List images) $default, ) { final _that = this; switch (_that) { case _TrickPlayModel(): - return $default( - _that.width, - _that.height, - _that.tileWidth, - _that.tileHeight, - _that.thumbnailCount, - _that.interval, - _that.images); + return $default(_that.width, _that.height, _that.tileWidth, _that.tileHeight, _that.thumbnailCount, + _that.interval, _that.images); case _: throw StateError('Unexpected subclass'); } @@ -272,21 +257,15 @@ extension TrickPlayModelPatterns on TrickPlayModel { @optionalTypeArgs TResult? whenOrNull( - TResult? Function(int width, int height, int tileWidth, int tileHeight, - int thumbnailCount, Duration interval, List images)? + TResult? Function(int width, int height, int tileWidth, int tileHeight, int thumbnailCount, Duration interval, + List images)? $default, ) { final _that = this; switch (_that) { case _TrickPlayModel() when $default != null: - return $default( - _that.width, - _that.height, - _that.tileWidth, - _that.tileHeight, - _that.thumbnailCount, - _that.interval, - _that.images); + return $default(_that.width, _that.height, _that.tileWidth, _that.tileHeight, _that.thumbnailCount, + _that.interval, _that.images); case _: return null; } @@ -306,8 +285,7 @@ class _TrickPlayModel extends TrickPlayModel { final List images = const []}) : _images = images, super._(); - factory _TrickPlayModel.fromJson(Map json) => - _$TrickPlayModelFromJson(json); + factory _TrickPlayModel.fromJson(Map json) => _$TrickPlayModelFromJson(json); @override final int width; @@ -352,10 +330,8 @@ class _TrickPlayModel extends TrickPlayModel { } /// @nodoc -abstract mixin class _$TrickPlayModelCopyWith<$Res> - implements $TrickPlayModelCopyWith<$Res> { - factory _$TrickPlayModelCopyWith( - _TrickPlayModel value, $Res Function(_TrickPlayModel) _then) = +abstract mixin class _$TrickPlayModelCopyWith<$Res> implements $TrickPlayModelCopyWith<$Res> { + factory _$TrickPlayModelCopyWith(_TrickPlayModel value, $Res Function(_TrickPlayModel) _then) = __$TrickPlayModelCopyWithImpl; @override @useResult @@ -370,8 +346,7 @@ abstract mixin class _$TrickPlayModelCopyWith<$Res> } /// @nodoc -class __$TrickPlayModelCopyWithImpl<$Res> - implements _$TrickPlayModelCopyWith<$Res> { +class __$TrickPlayModelCopyWithImpl<$Res> implements _$TrickPlayModelCopyWith<$Res> { __$TrickPlayModelCopyWithImpl(this._self, this._then); final _TrickPlayModel _self; diff --git a/lib/models/items/trick_play_model.g.dart b/lib/models/items/trick_play_model.g.dart index 8490c17d5..52d33df0a 100644 --- a/lib/models/items/trick_play_model.g.dart +++ b/lib/models/items/trick_play_model.g.dart @@ -6,22 +6,17 @@ part of 'trick_play_model.dart'; // JsonSerializableGenerator // ************************************************************************** -_TrickPlayModel _$TrickPlayModelFromJson(Map json) => - _TrickPlayModel( +_TrickPlayModel _$TrickPlayModelFromJson(Map json) => _TrickPlayModel( width: (json['width'] as num).toInt(), height: (json['height'] as num).toInt(), tileWidth: (json['tileWidth'] as num).toInt(), tileHeight: (json['tileHeight'] as num).toInt(), thumbnailCount: (json['thumbnailCount'] as num).toInt(), interval: Duration(microseconds: (json['interval'] as num).toInt()), - images: (json['images'] as List?) - ?.map((e) => e as String) - .toList() ?? - const [], + images: (json['images'] as List?)?.map((e) => e as String).toList() ?? const [], ); -Map _$TrickPlayModelToJson(_TrickPlayModel instance) => - { +Map _$TrickPlayModelToJson(_TrickPlayModel instance) => { 'width': instance.width, 'height': instance.height, 'tileWidth': instance.tileWidth, diff --git a/lib/models/library_filter_model.freezed.dart b/lib/models/library_filter_model.freezed.dart index 4c6352e07..af42dd7cd 100644 --- a/lib/models/library_filter_model.freezed.dart +++ b/lib/models/library_filter_model.freezed.dart @@ -34,8 +34,7 @@ mixin _$LibraryFilterModel implements DiagnosticableTreeMixin { @JsonKey(includeFromJson: false, includeToJson: false) @pragma('vm:prefer-inline') $LibraryFilterModelCopyWith get copyWith => - _$LibraryFilterModelCopyWithImpl( - this as LibraryFilterModel, _$identity); + _$LibraryFilterModelCopyWithImpl(this as LibraryFilterModel, _$identity); /// Serializes this LibraryFilterModel to a JSON map. Map toJson(); @@ -67,8 +66,7 @@ mixin _$LibraryFilterModel implements DiagnosticableTreeMixin { /// @nodoc abstract mixin class $LibraryFilterModelCopyWith<$Res> { - factory $LibraryFilterModelCopyWith( - LibraryFilterModel value, $Res Function(LibraryFilterModel) _then) = + factory $LibraryFilterModelCopyWith(LibraryFilterModel value, $Res Function(LibraryFilterModel) _then) = _$LibraryFilterModelCopyWithImpl; @useResult $Res call( @@ -88,8 +86,7 @@ abstract mixin class $LibraryFilterModelCopyWith<$Res> { } /// @nodoc -class _$LibraryFilterModelCopyWithImpl<$Res> - implements $LibraryFilterModelCopyWith<$Res> { +class _$LibraryFilterModelCopyWithImpl<$Res> implements $LibraryFilterModelCopyWith<$Res> { _$LibraryFilterModelCopyWithImpl(this._self, this._then); final LibraryFilterModel _self; @@ -411,8 +408,7 @@ extension LibraryFilterModelPatterns on LibraryFilterModel { /// @nodoc @JsonSerializable() -class _LibraryFilterModel extends LibraryFilterModel - with DiagnosticableTreeMixin { +class _LibraryFilterModel extends LibraryFilterModel with DiagnosticableTreeMixin { const _LibraryFilterModel( {final Map genres = const {}, final Map itemFilters = const { @@ -454,8 +450,7 @@ class _LibraryFilterModel extends LibraryFilterModel _officialRatings = officialRatings, _types = types, super._(); - factory _LibraryFilterModel.fromJson(Map json) => - _$LibraryFilterModelFromJson(json); + factory _LibraryFilterModel.fromJson(Map json) => _$LibraryFilterModelFromJson(json); final Map _genres; @override @@ -581,10 +576,8 @@ class _LibraryFilterModel extends LibraryFilterModel } /// @nodoc -abstract mixin class _$LibraryFilterModelCopyWith<$Res> - implements $LibraryFilterModelCopyWith<$Res> { - factory _$LibraryFilterModelCopyWith( - _LibraryFilterModel value, $Res Function(_LibraryFilterModel) _then) = +abstract mixin class _$LibraryFilterModelCopyWith<$Res> implements $LibraryFilterModelCopyWith<$Res> { + factory _$LibraryFilterModelCopyWith(_LibraryFilterModel value, $Res Function(_LibraryFilterModel) _then) = __$LibraryFilterModelCopyWithImpl; @override @useResult @@ -605,8 +598,7 @@ abstract mixin class _$LibraryFilterModelCopyWith<$Res> } /// @nodoc -class __$LibraryFilterModelCopyWithImpl<$Res> - implements _$LibraryFilterModelCopyWith<$Res> { +class __$LibraryFilterModelCopyWithImpl<$Res> implements _$LibraryFilterModelCopyWith<$Res> { __$LibraryFilterModelCopyWithImpl(this._self, this._then); final _LibraryFilterModel _self; diff --git a/lib/models/library_filter_model.g.dart b/lib/models/library_filter_model.g.dart index e13400c10..def01bbd3 100644 --- a/lib/models/library_filter_model.g.dart +++ b/lib/models/library_filter_model.g.dart @@ -6,8 +6,7 @@ part of 'library_filter_model.dart'; // JsonSerializableGenerator // ************************************************************************** -_LibraryFilterModel _$LibraryFilterModelFromJson(Map json) => - _LibraryFilterModel( +_LibraryFilterModel _$LibraryFilterModelFromJson(Map json) => _LibraryFilterModel( genres: (json['genres'] as Map?)?.map( (k, e) => MapEntry(k, e as bool), ) ?? @@ -15,14 +14,8 @@ _LibraryFilterModel _$LibraryFilterModelFromJson(Map json) => itemFilters: (json['itemFilters'] as Map?)?.map( (k, e) => MapEntry($enumDecode(_$ItemFilterEnumMap, k), e as bool), ) ?? - const { - ItemFilter.isplayed: false, - ItemFilter.isunplayed: false, - ItemFilter.isresumable: false - }, - studios: json['studios'] == null - ? const {} - : const StudioEncoder().fromJson(json['studios'] as String), + const {ItemFilter.isplayed: false, ItemFilter.isunplayed: false, ItemFilter.isresumable: false}, + studios: json['studios'] == null ? const {} : const StudioEncoder().fromJson(json['studios'] as String), tags: (json['tags'] as Map?)?.map( (k, e) => MapEntry(k, e as bool), ) ?? @@ -36,8 +29,7 @@ _LibraryFilterModel _$LibraryFilterModelFromJson(Map json) => ) ?? const {}, types: (json['types'] as Map?)?.map( - (k, e) => - MapEntry($enumDecode(_$FladderItemTypeEnumMap, k), e as bool), + (k, e) => MapEntry($enumDecode(_$FladderItemTypeEnumMap, k), e as bool), ) ?? const { FladderItemType.audio: false, @@ -55,30 +47,22 @@ _LibraryFilterModel _$LibraryFilterModelFromJson(Map json) => FladderItemType.series: false, FladderItemType.video: false }, - sortingOption: - $enumDecodeNullable(_$SortingOptionsEnumMap, json['sortingOption']) ?? - SortingOptions.sortName, - sortOrder: - $enumDecodeNullable(_$SortingOrderEnumMap, json['sortOrder']) ?? - SortingOrder.ascending, + sortingOption: $enumDecodeNullable(_$SortingOptionsEnumMap, json['sortingOption']) ?? SortingOptions.sortName, + sortOrder: $enumDecodeNullable(_$SortingOrderEnumMap, json['sortOrder']) ?? SortingOrder.ascending, favourites: json['favourites'] as bool? ?? false, hideEmptyShows: json['hideEmptyShows'] as bool? ?? true, recursive: json['recursive'] as bool? ?? true, - groupBy: $enumDecodeNullable(_$GroupByEnumMap, json['groupBy']) ?? - GroupBy.none, + groupBy: $enumDecodeNullable(_$GroupByEnumMap, json['groupBy']) ?? GroupBy.none, ); -Map _$LibraryFilterModelToJson(_LibraryFilterModel instance) => - { +Map _$LibraryFilterModelToJson(_LibraryFilterModel instance) => { 'genres': instance.genres, - 'itemFilters': instance.itemFilters - .map((k, e) => MapEntry(_$ItemFilterEnumMap[k], e)), + 'itemFilters': instance.itemFilters.map((k, e) => MapEntry(_$ItemFilterEnumMap[k], e)), 'studios': const StudioEncoder().toJson(instance.studios), 'tags': instance.tags, 'years': instance.years.map((k, e) => MapEntry(k.toString(), e)), 'officialRatings': instance.officialRatings, - 'types': instance.types - .map((k, e) => MapEntry(_$FladderItemTypeEnumMap[k]!, e)), + 'types': instance.types.map((k, e) => MapEntry(_$FladderItemTypeEnumMap[k]!, e)), 'sortingOption': _$SortingOptionsEnumMap[instance.sortingOption]!, 'sortOrder': _$SortingOrderEnumMap[instance.sortOrder]!, 'favourites': instance.favourites, diff --git a/lib/models/library_filters_model.freezed.dart b/lib/models/library_filters_model.freezed.dart index 114a4e41c..570b78d04 100644 --- a/lib/models/library_filters_model.freezed.dart +++ b/lib/models/library_filters_model.freezed.dart @@ -25,8 +25,7 @@ mixin _$LibraryFiltersModel { @JsonKey(includeFromJson: false, includeToJson: false) @pragma('vm:prefer-inline') $LibraryFiltersModelCopyWith get copyWith => - _$LibraryFiltersModelCopyWithImpl( - this as LibraryFiltersModel, _$identity); + _$LibraryFiltersModelCopyWithImpl(this as LibraryFiltersModel, _$identity); /// Serializes this LibraryFiltersModel to a JSON map. Map toJson(); @@ -39,23 +38,16 @@ mixin _$LibraryFiltersModel { /// @nodoc abstract mixin class $LibraryFiltersModelCopyWith<$Res> { - factory $LibraryFiltersModelCopyWith( - LibraryFiltersModel value, $Res Function(LibraryFiltersModel) _then) = + factory $LibraryFiltersModelCopyWith(LibraryFiltersModel value, $Res Function(LibraryFiltersModel) _then) = _$LibraryFiltersModelCopyWithImpl; @useResult - $Res call( - {String id, - String name, - bool isFavourite, - List ids, - LibraryFilterModel filter}); + $Res call({String id, String name, bool isFavourite, List ids, LibraryFilterModel filter}); $LibraryFilterModelCopyWith<$Res> get filter; } /// @nodoc -class _$LibraryFiltersModelCopyWithImpl<$Res> - implements $LibraryFiltersModelCopyWith<$Res> { +class _$LibraryFiltersModelCopyWithImpl<$Res> implements $LibraryFiltersModelCopyWith<$Res> { _$LibraryFiltersModelCopyWithImpl(this._self, this._then); final LibraryFiltersModel _self; @@ -200,16 +192,13 @@ extension LibraryFiltersModelPatterns on LibraryFiltersModel { @optionalTypeArgs TResult maybeWhen( - TResult Function(String id, String name, bool isFavourite, List ids, - LibraryFilterModel filter)? - $default, { + TResult Function(String id, String name, bool isFavourite, List ids, LibraryFilterModel filter)? $default, { required TResult orElse(), }) { final _that = this; switch (_that) { case _LibraryFiltersModel() when $default != null: - return $default( - _that.id, _that.name, _that.isFavourite, _that.ids, _that.filter); + return $default(_that.id, _that.name, _that.isFavourite, _that.ids, _that.filter); case _: return orElse(); } @@ -230,15 +219,12 @@ extension LibraryFiltersModelPatterns on LibraryFiltersModel { @optionalTypeArgs TResult when( - TResult Function(String id, String name, bool isFavourite, List ids, - LibraryFilterModel filter) - $default, + TResult Function(String id, String name, bool isFavourite, List ids, LibraryFilterModel filter) $default, ) { final _that = this; switch (_that) { case _LibraryFiltersModel(): - return $default( - _that.id, _that.name, _that.isFavourite, _that.ids, _that.filter); + return $default(_that.id, _that.name, _that.isFavourite, _that.ids, _that.filter); case _: throw StateError('Unexpected subclass'); } @@ -258,15 +244,12 @@ extension LibraryFiltersModelPatterns on LibraryFiltersModel { @optionalTypeArgs TResult? whenOrNull( - TResult? Function(String id, String name, bool isFavourite, - List ids, LibraryFilterModel filter)? - $default, + TResult? Function(String id, String name, bool isFavourite, List ids, LibraryFilterModel filter)? $default, ) { final _that = this; switch (_that) { case _LibraryFiltersModel() when $default != null: - return $default( - _that.id, _that.name, _that.isFavourite, _that.ids, _that.filter); + return $default(_that.id, _that.name, _that.isFavourite, _that.ids, _that.filter); case _: return null; } @@ -284,8 +267,7 @@ class _LibraryFiltersModel extends LibraryFiltersModel { this.filter = const LibraryFilterModel()}) : _ids = ids, super._(); - factory _LibraryFiltersModel.fromJson(Map json) => - _$LibraryFiltersModelFromJson(json); + factory _LibraryFiltersModel.fromJson(Map json) => _$LibraryFiltersModelFromJson(json); @override final String id; @@ -312,8 +294,7 @@ class _LibraryFiltersModel extends LibraryFiltersModel { @JsonKey(includeFromJson: false, includeToJson: false) @pragma('vm:prefer-inline') _$LibraryFiltersModelCopyWith<_LibraryFiltersModel> get copyWith => - __$LibraryFiltersModelCopyWithImpl<_LibraryFiltersModel>( - this, _$identity); + __$LibraryFiltersModelCopyWithImpl<_LibraryFiltersModel>(this, _$identity); @override Map toJson() { @@ -329,27 +310,19 @@ class _LibraryFiltersModel extends LibraryFiltersModel { } /// @nodoc -abstract mixin class _$LibraryFiltersModelCopyWith<$Res> - implements $LibraryFiltersModelCopyWith<$Res> { - factory _$LibraryFiltersModelCopyWith(_LibraryFiltersModel value, - $Res Function(_LibraryFiltersModel) _then) = +abstract mixin class _$LibraryFiltersModelCopyWith<$Res> implements $LibraryFiltersModelCopyWith<$Res> { + factory _$LibraryFiltersModelCopyWith(_LibraryFiltersModel value, $Res Function(_LibraryFiltersModel) _then) = __$LibraryFiltersModelCopyWithImpl; @override @useResult - $Res call( - {String id, - String name, - bool isFavourite, - List ids, - LibraryFilterModel filter}); + $Res call({String id, String name, bool isFavourite, List ids, LibraryFilterModel filter}); @override $LibraryFilterModelCopyWith<$Res> get filter; } /// @nodoc -class __$LibraryFiltersModelCopyWithImpl<$Res> - implements _$LibraryFiltersModelCopyWith<$Res> { +class __$LibraryFiltersModelCopyWithImpl<$Res> implements _$LibraryFiltersModelCopyWith<$Res> { __$LibraryFiltersModelCopyWithImpl(this._self, this._then); final _LibraryFiltersModel _self; diff --git a/lib/models/library_filters_model.g.dart b/lib/models/library_filters_model.g.dart index 7778bc523..868967944 100644 --- a/lib/models/library_filters_model.g.dart +++ b/lib/models/library_filters_model.g.dart @@ -6,21 +6,17 @@ part of 'library_filters_model.dart'; // JsonSerializableGenerator // ************************************************************************** -_LibraryFiltersModel _$LibraryFiltersModelFromJson(Map json) => - _LibraryFiltersModel( +_LibraryFiltersModel _$LibraryFiltersModelFromJson(Map json) => _LibraryFiltersModel( id: json['id'] as String, name: json['name'] as String, isFavourite: json['isFavourite'] as bool, - ids: (json['ids'] as List?)?.map((e) => e as String).toList() ?? - const [], + ids: (json['ids'] as List?)?.map((e) => e as String).toList() ?? const [], filter: json['filter'] == null ? const LibraryFilterModel() : LibraryFilterModel.fromJson(json['filter'] as Map), ); -Map _$LibraryFiltersModelToJson( - _LibraryFiltersModel instance) => - { +Map _$LibraryFiltersModelToJson(_LibraryFiltersModel instance) => { 'id': instance.id, 'name': instance.name, 'isFavourite': instance.isFavourite, diff --git a/lib/models/library_search/library_search_model.freezed.dart b/lib/models/library_search/library_search_model.freezed.dart index 0cbd542b1..fdf9b6718 100644 --- a/lib/models/library_search/library_search_model.freezed.dart +++ b/lib/models/library_search/library_search_model.freezed.dart @@ -31,8 +31,7 @@ mixin _$LibrarySearchModel implements DiagnosticableTreeMixin { @JsonKey(includeFromJson: false, includeToJson: false) @pragma('vm:prefer-inline') $LibrarySearchModelCopyWith get copyWith => - _$LibrarySearchModelCopyWithImpl( - this as LibrarySearchModel, _$identity); + _$LibrarySearchModelCopyWithImpl(this as LibrarySearchModel, _$identity); @override void debugFillProperties(DiagnosticPropertiesBuilder properties) { @@ -59,8 +58,7 @@ mixin _$LibrarySearchModel implements DiagnosticableTreeMixin { /// @nodoc abstract mixin class $LibrarySearchModelCopyWith<$Res> { - factory $LibrarySearchModelCopyWith( - LibrarySearchModel value, $Res Function(LibrarySearchModel) _then) = + factory $LibrarySearchModelCopyWith(LibrarySearchModel value, $Res Function(LibrarySearchModel) _then) = _$LibrarySearchModelCopyWithImpl; @useResult $Res call( @@ -80,8 +78,7 @@ abstract mixin class $LibrarySearchModelCopyWith<$Res> { } /// @nodoc -class _$LibrarySearchModelCopyWithImpl<$Res> - implements $LibrarySearchModelCopyWith<$Res> { +class _$LibrarySearchModelCopyWithImpl<$Res> implements $LibrarySearchModelCopyWith<$Res> { _$LibrarySearchModelCopyWithImpl(this._self, this._then); final LibrarySearchModel _self; @@ -391,9 +388,7 @@ extension LibrarySearchModelPatterns on LibrarySearchModel { /// @nodoc -class _LibrarySearchModel - with DiagnosticableTreeMixin - implements LibrarySearchModel { +class _LibrarySearchModel with DiagnosticableTreeMixin implements LibrarySearchModel { const _LibrarySearchModel( {this.loading = false, this.selecteMode = false, @@ -474,8 +469,7 @@ class _LibrarySearchModel @override @JsonKey() Map get libraryItemCounts { - if (_libraryItemCounts is EqualUnmodifiableMapView) - return _libraryItemCounts; + if (_libraryItemCounts is EqualUnmodifiableMapView) return _libraryItemCounts; // ignore: implicit_dynamic_type return EqualUnmodifiableMapView(_libraryItemCounts); } @@ -516,10 +510,8 @@ class _LibrarySearchModel } /// @nodoc -abstract mixin class _$LibrarySearchModelCopyWith<$Res> - implements $LibrarySearchModelCopyWith<$Res> { - factory _$LibrarySearchModelCopyWith( - _LibrarySearchModel value, $Res Function(_LibrarySearchModel) _then) = +abstract mixin class _$LibrarySearchModelCopyWith<$Res> implements $LibrarySearchModelCopyWith<$Res> { + factory _$LibrarySearchModelCopyWith(_LibrarySearchModel value, $Res Function(_LibrarySearchModel) _then) = __$LibrarySearchModelCopyWithImpl; @override @useResult @@ -541,8 +533,7 @@ abstract mixin class _$LibrarySearchModelCopyWith<$Res> } /// @nodoc -class __$LibrarySearchModelCopyWithImpl<$Res> - implements _$LibrarySearchModelCopyWith<$Res> { +class __$LibrarySearchModelCopyWithImpl<$Res> implements _$LibrarySearchModelCopyWith<$Res> { __$LibrarySearchModelCopyWithImpl(this._self, this._then); final _LibrarySearchModel _self; diff --git a/lib/models/live_tv_model.freezed.dart b/lib/models/live_tv_model.freezed.dart index be6b36050..b2a8bd7f4 100644 --- a/lib/models/live_tv_model.freezed.dart +++ b/lib/models/live_tv_model.freezed.dart @@ -35,9 +35,7 @@ mixin _$LiveTvModel { /// @nodoc abstract mixin class $LiveTvModelCopyWith<$Res> { - factory $LiveTvModelCopyWith( - LiveTvModel value, $Res Function(LiveTvModel) _then) = - _$LiveTvModelCopyWithImpl; + factory $LiveTvModelCopyWith(LiveTvModel value, $Res Function(LiveTvModel) _then) = _$LiveTvModelCopyWithImpl; @useResult $Res call( {DateTime startDate, @@ -183,11 +181,7 @@ extension LiveTvModelPatterns on LiveTvModel { @optionalTypeArgs TResult maybeWhen( - TResult Function( - DateTime startDate, - DateTime endDate, - List channels, - Set loadedChannelIds, + TResult Function(DateTime startDate, DateTime endDate, List channels, Set loadedChannelIds, Set loadingChannelIds)? $default, { required TResult orElse(), @@ -195,8 +189,8 @@ extension LiveTvModelPatterns on LiveTvModel { final _that = this; switch (_that) { case _LiveTvModel() when $default != null: - return $default(_that.startDate, _that.endDate, _that.channels, - _that.loadedChannelIds, _that.loadingChannelIds); + return $default( + _that.startDate, _that.endDate, _that.channels, _that.loadedChannelIds, _that.loadingChannelIds); case _: return orElse(); } @@ -217,19 +211,15 @@ extension LiveTvModelPatterns on LiveTvModel { @optionalTypeArgs TResult when( - TResult Function( - DateTime startDate, - DateTime endDate, - List channels, - Set loadedChannelIds, + TResult Function(DateTime startDate, DateTime endDate, List channels, Set loadedChannelIds, Set loadingChannelIds) $default, ) { final _that = this; switch (_that) { case _LiveTvModel(): - return $default(_that.startDate, _that.endDate, _that.channels, - _that.loadedChannelIds, _that.loadingChannelIds); + return $default( + _that.startDate, _that.endDate, _that.channels, _that.loadedChannelIds, _that.loadingChannelIds); case _: throw StateError('Unexpected subclass'); } @@ -249,19 +239,15 @@ extension LiveTvModelPatterns on LiveTvModel { @optionalTypeArgs TResult? whenOrNull( - TResult? Function( - DateTime startDate, - DateTime endDate, - List channels, - Set loadedChannelIds, + TResult? Function(DateTime startDate, DateTime endDate, List channels, Set loadedChannelIds, Set loadingChannelIds)? $default, ) { final _that = this; switch (_that) { case _LiveTvModel() when $default != null: - return $default(_that.startDate, _that.endDate, _that.channels, - _that.loadedChannelIds, _that.loadingChannelIds); + return $default( + _that.startDate, _that.endDate, _that.channels, _that.loadedChannelIds, _that.loadingChannelIds); case _: return null; } @@ -307,8 +293,7 @@ class _LiveTvModel implements LiveTvModel { @override @JsonKey() Set get loadingChannelIds { - if (_loadingChannelIds is EqualUnmodifiableSetView) - return _loadingChannelIds; + if (_loadingChannelIds is EqualUnmodifiableSetView) return _loadingChannelIds; // ignore: implicit_dynamic_type return EqualUnmodifiableSetView(_loadingChannelIds); } @@ -318,8 +303,7 @@ class _LiveTvModel implements LiveTvModel { @override @JsonKey(includeFromJson: false, includeToJson: false) @pragma('vm:prefer-inline') - _$LiveTvModelCopyWith<_LiveTvModel> get copyWith => - __$LiveTvModelCopyWithImpl<_LiveTvModel>(this, _$identity); + _$LiveTvModelCopyWith<_LiveTvModel> get copyWith => __$LiveTvModelCopyWithImpl<_LiveTvModel>(this, _$identity); @override String toString() { @@ -328,11 +312,8 @@ class _LiveTvModel implements LiveTvModel { } /// @nodoc -abstract mixin class _$LiveTvModelCopyWith<$Res> - implements $LiveTvModelCopyWith<$Res> { - factory _$LiveTvModelCopyWith( - _LiveTvModel value, $Res Function(_LiveTvModel) _then) = - __$LiveTvModelCopyWithImpl; +abstract mixin class _$LiveTvModelCopyWith<$Res> implements $LiveTvModelCopyWith<$Res> { + factory _$LiveTvModelCopyWith(_LiveTvModel value, $Res Function(_LiveTvModel) _then) = __$LiveTvModelCopyWithImpl; @override @useResult $Res call( diff --git a/lib/models/login_screen_model.freezed.dart b/lib/models/login_screen_model.freezed.dart index 93d679b02..a9a6d702e 100644 --- a/lib/models/login_screen_model.freezed.dart +++ b/lib/models/login_screen_model.freezed.dart @@ -28,8 +28,7 @@ mixin _$LoginScreenModel { @JsonKey(includeFromJson: false, includeToJson: false) @pragma('vm:prefer-inline') $LoginScreenModelCopyWith get copyWith => - _$LoginScreenModelCopyWithImpl( - this as LoginScreenModel, _$identity); + _$LoginScreenModelCopyWithImpl(this as LoginScreenModel, _$identity); @override String toString() { @@ -39,8 +38,7 @@ mixin _$LoginScreenModel { /// @nodoc abstract mixin class $LoginScreenModelCopyWith<$Res> { - factory $LoginScreenModelCopyWith( - LoginScreenModel value, $Res Function(LoginScreenModel) _then) = + factory $LoginScreenModelCopyWith(LoginScreenModel value, $Res Function(LoginScreenModel) _then) = _$LoginScreenModelCopyWithImpl; @useResult $Res call( @@ -57,8 +55,7 @@ abstract mixin class $LoginScreenModelCopyWith<$Res> { } /// @nodoc -class _$LoginScreenModelCopyWithImpl<$Res> - implements $LoginScreenModelCopyWith<$Res> { +class _$LoginScreenModelCopyWithImpl<$Res> implements $LoginScreenModelCopyWith<$Res> { _$LoginScreenModelCopyWithImpl(this._self, this._then); final LoginScreenModel _self; @@ -222,30 +219,16 @@ extension LoginScreenModelPatterns on LoginScreenModel { @optionalTypeArgs TResult maybeWhen( - TResult Function( - List accounts, - LoginScreenType screen, - ServerLoginModel? serverLoginModel, - String? errorMessage, - bool hasBaseUrl, - bool loading, - String? tempSeerrUrl, - String? tempSeerrSessionCookie)? + TResult Function(List accounts, LoginScreenType screen, ServerLoginModel? serverLoginModel, + String? errorMessage, bool hasBaseUrl, bool loading, String? tempSeerrUrl, String? tempSeerrSessionCookie)? $default, { required TResult orElse(), }) { final _that = this; switch (_that) { case _LoginScreenModel() when $default != null: - return $default( - _that.accounts, - _that.screen, - _that.serverLoginModel, - _that.errorMessage, - _that.hasBaseUrl, - _that.loading, - _that.tempSeerrUrl, - _that.tempSeerrSessionCookie); + return $default(_that.accounts, _that.screen, _that.serverLoginModel, _that.errorMessage, _that.hasBaseUrl, + _that.loading, _that.tempSeerrUrl, _that.tempSeerrSessionCookie); case _: return orElse(); } @@ -266,29 +249,15 @@ extension LoginScreenModelPatterns on LoginScreenModel { @optionalTypeArgs TResult when( - TResult Function( - List accounts, - LoginScreenType screen, - ServerLoginModel? serverLoginModel, - String? errorMessage, - bool hasBaseUrl, - bool loading, - String? tempSeerrUrl, - String? tempSeerrSessionCookie) + TResult Function(List accounts, LoginScreenType screen, ServerLoginModel? serverLoginModel, + String? errorMessage, bool hasBaseUrl, bool loading, String? tempSeerrUrl, String? tempSeerrSessionCookie) $default, ) { final _that = this; switch (_that) { case _LoginScreenModel(): - return $default( - _that.accounts, - _that.screen, - _that.serverLoginModel, - _that.errorMessage, - _that.hasBaseUrl, - _that.loading, - _that.tempSeerrUrl, - _that.tempSeerrSessionCookie); + return $default(_that.accounts, _that.screen, _that.serverLoginModel, _that.errorMessage, _that.hasBaseUrl, + _that.loading, _that.tempSeerrUrl, _that.tempSeerrSessionCookie); case _: throw StateError('Unexpected subclass'); } @@ -308,29 +277,15 @@ extension LoginScreenModelPatterns on LoginScreenModel { @optionalTypeArgs TResult? whenOrNull( - TResult? Function( - List accounts, - LoginScreenType screen, - ServerLoginModel? serverLoginModel, - String? errorMessage, - bool hasBaseUrl, - bool loading, - String? tempSeerrUrl, - String? tempSeerrSessionCookie)? + TResult? Function(List accounts, LoginScreenType screen, ServerLoginModel? serverLoginModel, + String? errorMessage, bool hasBaseUrl, bool loading, String? tempSeerrUrl, String? tempSeerrSessionCookie)? $default, ) { final _that = this; switch (_that) { case _LoginScreenModel() when $default != null: - return $default( - _that.accounts, - _that.screen, - _that.serverLoginModel, - _that.errorMessage, - _that.hasBaseUrl, - _that.loading, - _that.tempSeerrUrl, - _that.tempSeerrSessionCookie); + return $default(_that.accounts, _that.screen, _that.serverLoginModel, _that.errorMessage, _that.hasBaseUrl, + _that.loading, _that.tempSeerrUrl, _that.tempSeerrSessionCookie); case _: return null; } @@ -393,10 +348,8 @@ class _LoginScreenModel implements LoginScreenModel { } /// @nodoc -abstract mixin class _$LoginScreenModelCopyWith<$Res> - implements $LoginScreenModelCopyWith<$Res> { - factory _$LoginScreenModelCopyWith( - _LoginScreenModel value, $Res Function(_LoginScreenModel) _then) = +abstract mixin class _$LoginScreenModelCopyWith<$Res> implements $LoginScreenModelCopyWith<$Res> { + factory _$LoginScreenModelCopyWith(_LoginScreenModel value, $Res Function(_LoginScreenModel) _then) = __$LoginScreenModelCopyWithImpl; @override @useResult @@ -415,8 +368,7 @@ abstract mixin class _$LoginScreenModelCopyWith<$Res> } /// @nodoc -class __$LoginScreenModelCopyWithImpl<$Res> - implements _$LoginScreenModelCopyWith<$Res> { +class __$LoginScreenModelCopyWithImpl<$Res> implements _$LoginScreenModelCopyWith<$Res> { __$LoginScreenModelCopyWithImpl(this._self, this._then); final _LoginScreenModel _self; @@ -499,8 +451,7 @@ mixin _$ServerLoginModel { @JsonKey(includeFromJson: false, includeToJson: false) @pragma('vm:prefer-inline') $ServerLoginModelCopyWith get copyWith => - _$ServerLoginModelCopyWithImpl( - this as ServerLoginModel, _$identity); + _$ServerLoginModelCopyWithImpl(this as ServerLoginModel, _$identity); @override String toString() { @@ -510,22 +461,17 @@ mixin _$ServerLoginModel { /// @nodoc abstract mixin class $ServerLoginModelCopyWith<$Res> { - factory $ServerLoginModelCopyWith( - ServerLoginModel value, $Res Function(ServerLoginModel) _then) = + factory $ServerLoginModelCopyWith(ServerLoginModel value, $Res Function(ServerLoginModel) _then) = _$ServerLoginModelCopyWithImpl; @useResult $Res call( - {CredentialsModel tempCredentials, - List accounts, - String? serverMessage, - bool hasQuickConnect}); + {CredentialsModel tempCredentials, List accounts, String? serverMessage, bool hasQuickConnect}); $CredentialsModelCopyWith<$Res> get tempCredentials; } /// @nodoc -class _$ServerLoginModelCopyWithImpl<$Res> - implements $ServerLoginModelCopyWith<$Res> { +class _$ServerLoginModelCopyWithImpl<$Res> implements $ServerLoginModelCopyWith<$Res> { _$ServerLoginModelCopyWithImpl(this._self, this._then); final ServerLoginModel _self; @@ -666,18 +612,14 @@ extension ServerLoginModelPatterns on ServerLoginModel { @optionalTypeArgs TResult maybeWhen( TResult Function( - CredentialsModel tempCredentials, - List accounts, - String? serverMessage, - bool hasQuickConnect)? + CredentialsModel tempCredentials, List accounts, String? serverMessage, bool hasQuickConnect)? $default, { required TResult orElse(), }) { final _that = this; switch (_that) { case _ServerLoginModel() when $default != null: - return $default(_that.tempCredentials, _that.accounts, - _that.serverMessage, _that.hasQuickConnect); + return $default(_that.tempCredentials, _that.accounts, _that.serverMessage, _that.hasQuickConnect); case _: return orElse(); } @@ -699,17 +641,13 @@ extension ServerLoginModelPatterns on ServerLoginModel { @optionalTypeArgs TResult when( TResult Function( - CredentialsModel tempCredentials, - List accounts, - String? serverMessage, - bool hasQuickConnect) + CredentialsModel tempCredentials, List accounts, String? serverMessage, bool hasQuickConnect) $default, ) { final _that = this; switch (_that) { case _ServerLoginModel(): - return $default(_that.tempCredentials, _that.accounts, - _that.serverMessage, _that.hasQuickConnect); + return $default(_that.tempCredentials, _that.accounts, _that.serverMessage, _that.hasQuickConnect); case _: throw StateError('Unexpected subclass'); } @@ -730,17 +668,13 @@ extension ServerLoginModelPatterns on ServerLoginModel { @optionalTypeArgs TResult? whenOrNull( TResult? Function( - CredentialsModel tempCredentials, - List accounts, - String? serverMessage, - bool hasQuickConnect)? + CredentialsModel tempCredentials, List accounts, String? serverMessage, bool hasQuickConnect)? $default, ) { final _that = this; switch (_that) { case _ServerLoginModel() when $default != null: - return $default(_that.tempCredentials, _that.accounts, - _that.serverMessage, _that.hasQuickConnect); + return $default(_that.tempCredentials, _that.accounts, _that.serverMessage, _that.hasQuickConnect); case _: return null; } @@ -789,26 +723,20 @@ class _ServerLoginModel implements ServerLoginModel { } /// @nodoc -abstract mixin class _$ServerLoginModelCopyWith<$Res> - implements $ServerLoginModelCopyWith<$Res> { - factory _$ServerLoginModelCopyWith( - _ServerLoginModel value, $Res Function(_ServerLoginModel) _then) = +abstract mixin class _$ServerLoginModelCopyWith<$Res> implements $ServerLoginModelCopyWith<$Res> { + factory _$ServerLoginModelCopyWith(_ServerLoginModel value, $Res Function(_ServerLoginModel) _then) = __$ServerLoginModelCopyWithImpl; @override @useResult $Res call( - {CredentialsModel tempCredentials, - List accounts, - String? serverMessage, - bool hasQuickConnect}); + {CredentialsModel tempCredentials, List accounts, String? serverMessage, bool hasQuickConnect}); @override $CredentialsModelCopyWith<$Res> get tempCredentials; } /// @nodoc -class __$ServerLoginModelCopyWithImpl<$Res> - implements _$ServerLoginModelCopyWith<$Res> { +class __$ServerLoginModelCopyWithImpl<$Res> implements _$ServerLoginModelCopyWith<$Res> { __$ServerLoginModelCopyWithImpl(this._self, this._then); final _ServerLoginModel _self; diff --git a/lib/models/playback/playback_model.dart b/lib/models/playback/playback_model.dart index d08b82a96..272a23c18 100644 --- a/lib/models/playback/playback_model.dart +++ b/lib/models/playback/playback_model.dart @@ -51,12 +51,11 @@ class Media { } extension PlaybackModelExtension on PlaybackModel? { - SubStreamModel? get defaultSubStream => this?.subStreams?.firstWhereOrNull( - (element) => element.index == this?.mediaStreams?.defaultSubStreamIndex); + SubStreamModel? get defaultSubStream => + this?.subStreams?.firstWhereOrNull((element) => element.index == this?.mediaStreams?.defaultSubStreamIndex); AudioStreamModel? get defaultAudioStream => - this?.audioStreams?.firstWhereOrNull((element) => - element.index == this?.mediaStreams?.defaultAudioStreamIndex); + this?.audioStreams?.firstWhereOrNull((element) => element.index == this?.mediaStreams?.defaultAudioStreamIndex); String? label(BuildContext context) => switch (this) { DirectPlaybackModel _ => PlaybackType.directStream.name(context), @@ -79,13 +78,10 @@ class PlaybackModel { List? chapters = []; TrickPlayModel? trickPlay; - Future updatePlaybackPosition( - Duration position, bool isPlaying, Ref ref) => + Future updatePlaybackPosition(Duration position, bool isPlaying, Ref ref) => throw UnimplementedError(); - Future playbackStarted(Duration position, Ref ref) => - throw UnimplementedError(); - Future playbackStopped( - Duration position, Duration? totalDuration, Ref ref) => + Future playbackStarted(Duration position, Ref ref) => throw UnimplementedError(); + Future playbackStopped(Duration position, Duration? totalDuration, Ref ref) => throw UnimplementedError(); final MediaStreamsModel? mediaStreams; @@ -94,17 +90,11 @@ class PlaybackModel { Future? startDuration() async => item.userData.playBackPosition; - PlaybackModel? updateUserData(UserData userData) => - throw UnimplementedError(); + PlaybackModel? updateUserData(UserData userData) => throw UnimplementedError(); - Future? setSubtitle( - SubStreamModel? model, MediaControlsWrapper player) => - throw UnimplementedError(); - Future? setAudio( - AudioStreamModel? model, MediaControlsWrapper player) => - throw UnimplementedError(); - Future? setQualityOption(Map map) => - throw UnimplementedError(); + Future? setSubtitle(SubStreamModel? model, MediaControlsWrapper player) => throw UnimplementedError(); + Future? setAudio(AudioStreamModel? model, MediaControlsWrapper player) => throw UnimplementedError(); + Future? setQualityOption(Map map) => throw UnimplementedError(); ItemBaseModel? get nextVideo => queue.nextOrNull(item); ItemBaseModel? get previousVideo => queue.previousOrNull(item); @@ -137,9 +127,7 @@ class PlaybackModelHelper { Future loadNewVideo(ItemBaseModel newItem) async { ref.read(videoPlayerProvider).pause(); - ref - .read(mediaPlaybackProvider.notifier) - .update((state) => state.copyWith(buffering: true)); + ref.read(mediaPlaybackProvider.notifier).update((state) => state.copyWith(buffering: true)); final currentModel = ref.read(playBackModel); final newModel = (await createPlaybackModel( null, @@ -153,9 +141,7 @@ class PlaybackModelHelper { oldModel: currentModel, ); if (newModel == null) return null; - ref - .read(videoPlayerProvider.notifier) - .loadPlaybackItem(newModel, Duration.zero); + ref.read(videoPlayerProvider.notifier).loadPlaybackItem(newModel, Duration.zero); return newModel; } @@ -187,16 +173,11 @@ class PlaybackModelHelper { PlaybackModel? oldModel, }) async { final ItemBaseModel? syncedItemModel = syncedItem?.itemModel; - if (syncedItemModel == null || - syncedItem == null || - !await syncedItem.videoFile.exists()) return null; - - final children = - await ref.read(syncProvider.notifier).getSiblings(syncedItem); - final syncedItems = children - .where((element) => - element.videoFile.existsSync() && element.id != syncedItem.id) - .toList(); + if (syncedItemModel == null || syncedItem == null || !await syncedItem.videoFile.exists()) return null; + + final children = await ref.read(syncProvider.notifier).getSiblings(syncedItem); + final syncedItems = + children.where((element) => element.videoFile.existsSync() && element.id != syncedItem.id).toList(); final itemQueue = syncedItems.map((e) => e.itemModel).nonNulls; return OfflinePlaybackModel( @@ -228,25 +209,19 @@ class PlaybackModelHelper { final queue = oldModel?.queue ?? libraryQueue ?? await collectQueue(item); final firstItemToPlay = switch (item) { - SeriesModel _ || - SeasonModel _ => - (queue.whereType().toList().nextUp), + SeriesModel _ || SeasonModel _ => (queue.whereType().toList().nextUp), _ => item, }; if (firstItemToPlay == null) return null; - final fullItem = - (await api.usersUserIdItemsItemIdGet(itemId: firstItemToPlay.id)) - .body; + final fullItem = (await api.usersUserIdItemsItemIdGet(itemId: firstItemToPlay.id)).body; if (fullItem == null) return null; - SyncedItem? syncedItem = - await ref.read(syncProvider.notifier).getSyncedItem(fullItem.id); + SyncedItem? syncedItem = await ref.read(syncProvider.notifier).getSyncedItem(fullItem.id); - final firstItemIsSynced = - syncedItem != null && syncedItem.status == TaskStatus.complete; + final firstItemIsSynced = syncedItem != null && syncedItem.status == TaskStatus.complete; final options = { PlaybackType.directStream, @@ -254,11 +229,9 @@ class PlaybackModelHelper { if (firstItemIsSynced) PlaybackType.offline, }; - final isOffline = ref.read(connectivityStatusProvider - .select((value) => value == ConnectionState.offline)); + final isOffline = ref.read(connectivityStatusProvider.select((value) => value == ConnectionState.offline)); - if (((showPlaybackOptions || firstItemIsSynced) && !isOffline) && - context != null) { + if (((showPlaybackOptions || firstItemIsSynced) && !isOffline) && context != null) { final playbackType = await showPlaybackTypeSelection( context: context, options: options, @@ -267,9 +240,7 @@ class PlaybackModelHelper { if (!context.mounted) return null; return switch (playbackType) { - PlaybackType.directStream || - PlaybackType.transcode || PlaybackType.tv => - await _createServerPlaybackModel( + PlaybackType.directStream || PlaybackType.transcode || PlaybackType.tv => await _createServerPlaybackModel( fullItem, item.streamModel, forcedPlaybackType ?? playbackType, @@ -321,35 +292,30 @@ class PlaybackModelHelper { Map qualityOptions = getVideoQualityOptions( VideoQualitySettings( - maxBitRate: ref.read(videoPlayerSettingsProvider - .select((value) => value.maxHomeBitrate)), + maxBitRate: ref.read(videoPlayerSettingsProvider.select((value) => value.maxHomeBitrate)), videoBitRate: newStreamModel?.videoStreams.firstOrNull?.bitRate ?? 0, videoCodec: newStreamModel?.videoStreams.firstOrNull?.codec, ), ); final audioStreamIndex = selectAudioStream( - ref.read(userProvider.select((value) => - value?.userConfiguration?.rememberAudioSelections ?? true)), + ref.read(userProvider.select((value) => value?.userConfiguration?.rememberAudioSelections ?? true)), oldModel?.mediaStreams?.currentAudioStream, newStreamModel?.audioStreams, newStreamModel?.defaultAudioStreamIndex); final subStreamIndex = selectSubStream( - ref.read(userProvider.select((value) => - value?.userConfiguration?.rememberSubtitleSelections ?? true)), + ref.read(userProvider.select((value) => value?.userConfiguration?.rememberSubtitleSelections ?? true)), oldModel?.mediaStreams?.currentSubStream, newStreamModel?.subStreams, newStreamModel?.defaultSubStreamIndex); //Native player does not allow for loading external subtitles with transcoding - final isNativePlayer = ref.read(videoPlayerSettingsProvider - .select((value) => value.wantedPlayer == PlayerOptions.nativePlayer)); - final isExternalSub = - newStreamModel?.currentSubStream?.isExternal == true; + final isNativePlayer = + ref.read(videoPlayerSettingsProvider.select((value) => value.wantedPlayer == PlayerOptions.nativePlayer)); + final isExternalSub = newStreamModel?.currentSubStream?.isExternal == true; - final Response response = - await api.itemsItemIdPlaybackInfoPost( + final Response response = await api.itemsItemIdPlaybackInfoPost( itemId: item.id, body: PlaybackInfoDto( startTimeTicks: startPosition?.toRuntimeTicks, @@ -362,8 +328,7 @@ class PlaybackModelHelper { enableDirectPlay: type != PlaybackType.transcode, enableDirectStream: type != PlaybackType.transcode, alwaysBurnInSubtitleWhenTranscoding: isNativePlayer && isExternalSub, - maxStreamingBitrate: - qualityOptions.enabledFirst.keys.firstOrNull?.bitRate, + maxStreamingBitrate: qualityOptions.enabledFirst.keys.firstOrNull?.bitRate, mediaSourceId: newStreamModel?.currentVersionStream?.id, ), ); @@ -372,14 +337,11 @@ class PlaybackModelHelper { if (playbackInfo == null) return null; - final mediaSource = - playbackInfo.mediaSources?[newStreamModel?.versionStreamIndex ?? 0]; + final mediaSource = playbackInfo.mediaSources?[newStreamModel?.versionStreamIndex ?? 0]; if (mediaSource == null) return null; - final mediaStreamsWithUrls = - MediaStreamsModel.fromMediaStreamsList(playbackInfo.mediaSources, ref) - .copyWith( + final mediaStreamsWithUrls = MediaStreamsModel.fromMediaStreamsList(playbackInfo.mediaSources, ref).copyWith( defaultAudioStreamIndex: audioStreamIndex, defaultSubStreamIndex: subStreamIndex, ); @@ -390,8 +352,7 @@ class PlaybackModelHelper { final mediaPath = isValidVideoUrl(mediaSource.path ?? ""); - if ((mediaSource.supportsDirectStream ?? false) || - (mediaSource.supportsDirectPlay ?? false)) { + if ((mediaSource.supportsDirectStream ?? false) || (mediaSource.supportsDirectPlay ?? false)) { final Map directOptions = { 'Static': 'true', 'mediaSourceId': mediaSource.id, @@ -435,8 +396,7 @@ class PlaybackModelHelper { bitRateOptions: qualityOptions, ); } - } else if ((mediaSource.supportsTranscoding ?? false) && - mediaSource.transcodingUrl != null) { + } else if ((mediaSource.supportsTranscoding ?? false) && mediaSource.transcodingUrl != null) { return TranscodePlaybackModel( item: item, queue: libraryQueue, @@ -444,9 +404,7 @@ class PlaybackModelHelper { chapters: chapters, trickPlay: trickPlay, playbackInfo: playbackInfo, - media: Media( - url: - buildServerUrl(ref, relativeUrl: mediaSource.transcodingUrl)), + media: Media(url: buildServerUrl(ref, relativeUrl: mediaSource.transcodingUrl)), mediaStreams: mediaStreamsWithUrls, bitRateOptions: qualityOptions, ); @@ -468,18 +426,15 @@ class PlaybackModelHelper { case EpisodeModel _: case SeriesModel _: case SeasonModel _: - List episodeList = - ((await fetchEpisodesFromSeries(model.streamId)).body ?? []) - ..removeWhere( - (element) => element.status != EpisodeStatus.available); + List episodeList = ((await fetchEpisodesFromSeries(model.streamId)).body ?? []) + ..removeWhere((element) => element.status != EpisodeStatus.available); return episodeList; default: return []; } } - Future>> fetchEpisodesFromSeries( - String seriesId) async { + Future>> fetchEpisodesFromSeries(String seriesId) async { final response = await api.showsSeriesIdEpisodesGet( seriesId: seriesId, fields: [ @@ -492,12 +447,7 @@ class PlaybackModelHelper { ItemFields.height, ], ); - return Response( - response.base, - (response.body?.items - ?.map((e) => EpisodeModel.fromBaseDto(e, ref)) - .toList() ?? - [])); + return Response(response.base, (response.body?.items?.map((e) => EpisodeModel.fromBaseDto(e, ref)).toList() ?? [])); } Future shouldReload(PlaybackModel playbackModel) async { @@ -522,31 +472,26 @@ class PlaybackModelHelper { final syncPlayState = ref.read(syncPlayProvider); final positionTicks = syncPlayState.positionTicks; // Convert ticks to Duration: 1 tick = 100 nanoseconds, 10000 ticks = 1 millisecond - currentPosition = - Duration(milliseconds: ticksToMilliseconds(positionTicks)); + currentPosition = Duration(milliseconds: ticksToMilliseconds(positionTicks)); // Report buffering to syncplay BEFORE stopping/reloading to pause other group members await ref.read(syncPlayProvider.notifier).reportBuffering(); } else { - currentPosition = - ref.read(mediaPlaybackProvider.select((value) => value.position)); + currentPosition = ref.read(mediaPlaybackProvider.select((value) => value.position)); } final audioIndex = selectAudioStream( - ref.read(userProvider.select((value) => - value?.userConfiguration?.rememberAudioSelections ?? true)), + ref.read(userProvider.select((value) => value?.userConfiguration?.rememberAudioSelections ?? true)), playbackModel.mediaStreams?.currentAudioStream, playbackModel.audioStreams, playbackModel.mediaStreams?.defaultAudioStreamIndex); final subIndex = selectSubStream( - ref.read(userProvider.select((value) => - value?.userConfiguration?.rememberSubtitleSelections ?? true)), + ref.read(userProvider.select((value) => value?.userConfiguration?.rememberSubtitleSelections ?? true)), playbackModel.mediaStreams?.currentSubStream, playbackModel.subStreams, playbackModel.mediaStreams?.defaultSubStreamIndex); - Response response = - await api.itemsItemIdPlaybackInfoPost( + Response response = await api.itemsItemIdPlaybackInfoPost( itemId: item.id, body: PlaybackInfoDto( startTimeTicks: currentPosition.toRuntimeTicks, @@ -558,8 +503,7 @@ class PlaybackModelHelper { autoOpenLiveStream: true, deviceProfile: ref.read(videoProfileProvider), userId: userId, - maxStreamingBitrate: playbackModel - .bitRateOptions.enabledFirst.entries.firstOrNull?.key.bitRate, + maxStreamingBitrate: playbackModel.bitRateOptions.enabledFirst.entries.firstOrNull?.key.bitRate, mediaSourceId: playbackModel.mediaStreams?.currentVersionStream?.id, ), ); @@ -568,9 +512,7 @@ class PlaybackModelHelper { final mediaSource = playbackInfo.mediaSources?.first; - final mediaStreamsWithUrls = - MediaStreamsModel.fromMediaStreamsList(playbackInfo.mediaSources, ref) - .copyWith( + final mediaStreamsWithUrls = MediaStreamsModel.fromMediaStreamsList(playbackInfo.mediaSources, ref).copyWith( defaultAudioStreamIndex: audioIndex, defaultSubStreamIndex: subIndex, ); @@ -579,8 +521,7 @@ class PlaybackModelHelper { PlaybackModel? newModel; - if ((mediaSource.supportsDirectStream ?? false) || - (mediaSource.supportsDirectPlay ?? false)) { + if ((mediaSource.supportsDirectStream ?? false) || (mediaSource.supportsDirectPlay ?? false)) { final Map directOptions = { 'Static': 'true', 'mediaSourceId': mediaSource.id, @@ -614,8 +555,7 @@ class PlaybackModelHelper { mediaStreams: mediaStreamsWithUrls, bitRateOptions: playbackModel.bitRateOptions, ); - } else if ((mediaSource.supportsTranscoding ?? false) && - mediaSource.transcodingUrl != null) { + } else if ((mediaSource.supportsTranscoding ?? false) && mediaSource.transcodingUrl != null) { newModel = TranscodePlaybackModel( item: playbackModel.item, queue: playbackModel.queue, @@ -623,8 +563,7 @@ class PlaybackModelHelper { chapters: playbackModel.chapters, playbackInfo: playbackInfo, trickPlay: playbackModel.trickPlay, - media: Media( - url: buildServerUrl(ref, relativeUrl: mediaSource.transcodingUrl)), + media: Media(url: buildServerUrl(ref, relativeUrl: mediaSource.transcodingUrl)), mediaStreams: mediaStreamsWithUrls, bitRateOptions: playbackModel.bitRateOptions, ); @@ -635,11 +574,8 @@ class PlaybackModelHelper { } return; } - if (newModel.runtimeType != playbackModel.runtimeType || - newModel is TranscodePlaybackModel) { - ref - .read(videoPlayerProvider.notifier) - .loadPlaybackItem(newModel, currentPosition); + if (newModel.runtimeType != playbackModel.runtimeType || newModel is TranscodePlaybackModel) { + ref.read(videoPlayerProvider.notifier).loadPlaybackItem(newModel, currentPosition); } else if (isSyncPlayActive) { // If we didn't call loadPlaybackItem, we must reset reloading state ref.read(videoPlayerProvider.notifier).setReloading(false); diff --git a/lib/models/seerr/seerr_item_models.dart b/lib/models/seerr/seerr_item_models.dart index 0ac9ddcbd..f85477816 100644 --- a/lib/models/seerr/seerr_item_models.dart +++ b/lib/models/seerr/seerr_item_models.dart @@ -18,28 +18,28 @@ String? resolveImageUrl({ }) { if (path == null || path.trim().isEmpty) return path; final trimmed = path.trim(); - + if (trimmed.startsWith('http://') || trimmed.startsWith('https://')) { return trimmed; } - + final tmdb = tmdbUrl(tmdbBase, trimmed); if (tmdb != null) return tmdb; - + return resolveServerUrl(path: trimmed, serverUrl: serverUrl); } String? resolveServerUrl({required String? path, required String? serverUrl}) { if (path == null || path.trim().isEmpty) return path; final trimmed = path.trim(); - + if (trimmed.startsWith('http://') || trimmed.startsWith('https://')) { return trimmed; } - + if (serverUrl == null || serverUrl.trim().isEmpty) return trimmed; final cleanServerUrl = serverUrl.trim(); - + final needsSlash = !cleanServerUrl.endsWith('/') && !trimmed.startsWith('/'); return '$cleanServerUrl${needsSlash ? '/' : ''}$trimmed'; } diff --git a/lib/models/seerr_credentials_model.freezed.dart b/lib/models/seerr_credentials_model.freezed.dart index f5b9cbb10..a8017ac5a 100644 --- a/lib/models/seerr_credentials_model.freezed.dart +++ b/lib/models/seerr_credentials_model.freezed.dart @@ -24,8 +24,7 @@ mixin _$SeerrCredentialsModel { @JsonKey(includeFromJson: false, includeToJson: false) @pragma('vm:prefer-inline') $SeerrCredentialsModelCopyWith get copyWith => - _$SeerrCredentialsModelCopyWithImpl( - this as SeerrCredentialsModel, _$identity); + _$SeerrCredentialsModelCopyWithImpl(this as SeerrCredentialsModel, _$identity); /// Serializes this SeerrCredentialsModel to a JSON map. Map toJson(); @@ -38,20 +37,14 @@ mixin _$SeerrCredentialsModel { /// @nodoc abstract mixin class $SeerrCredentialsModelCopyWith<$Res> { - factory $SeerrCredentialsModelCopyWith(SeerrCredentialsModel value, - $Res Function(SeerrCredentialsModel) _then) = + factory $SeerrCredentialsModelCopyWith(SeerrCredentialsModel value, $Res Function(SeerrCredentialsModel) _then) = _$SeerrCredentialsModelCopyWithImpl; @useResult - $Res call( - {String serverUrl, - String apiKey, - String sessionCookie, - Map customHeaders}); + $Res call({String serverUrl, String apiKey, String sessionCookie, Map customHeaders}); } /// @nodoc -class _$SeerrCredentialsModelCopyWithImpl<$Res> - implements $SeerrCredentialsModelCopyWith<$Res> { +class _$SeerrCredentialsModelCopyWithImpl<$Res> implements $SeerrCredentialsModelCopyWith<$Res> { _$SeerrCredentialsModelCopyWithImpl(this._self, this._then); final SeerrCredentialsModel _self; @@ -181,16 +174,14 @@ extension SeerrCredentialsModelPatterns on SeerrCredentialsModel { @optionalTypeArgs TResult maybeWhen( - TResult Function(String serverUrl, String apiKey, String sessionCookie, - Map customHeaders)? + TResult Function(String serverUrl, String apiKey, String sessionCookie, Map customHeaders)? $default, { required TResult orElse(), }) { final _that = this; switch (_that) { case _SeerrCredentialsModel() when $default != null: - return $default(_that.serverUrl, _that.apiKey, _that.sessionCookie, - _that.customHeaders); + return $default(_that.serverUrl, _that.apiKey, _that.sessionCookie, _that.customHeaders); case _: return orElse(); } @@ -211,15 +202,12 @@ extension SeerrCredentialsModelPatterns on SeerrCredentialsModel { @optionalTypeArgs TResult when( - TResult Function(String serverUrl, String apiKey, String sessionCookie, - Map customHeaders) - $default, + TResult Function(String serverUrl, String apiKey, String sessionCookie, Map customHeaders) $default, ) { final _that = this; switch (_that) { case _SeerrCredentialsModel(): - return $default(_that.serverUrl, _that.apiKey, _that.sessionCookie, - _that.customHeaders); + return $default(_that.serverUrl, _that.apiKey, _that.sessionCookie, _that.customHeaders); case _: throw StateError('Unexpected subclass'); } @@ -239,15 +227,13 @@ extension SeerrCredentialsModelPatterns on SeerrCredentialsModel { @optionalTypeArgs TResult? whenOrNull( - TResult? Function(String serverUrl, String apiKey, String sessionCookie, - Map customHeaders)? + TResult? Function(String serverUrl, String apiKey, String sessionCookie, Map customHeaders)? $default, ) { final _that = this; switch (_that) { case _SeerrCredentialsModel() when $default != null: - return $default(_that.serverUrl, _that.apiKey, _that.sessionCookie, - _that.customHeaders); + return $default(_that.serverUrl, _that.apiKey, _that.sessionCookie, _that.customHeaders); case _: return null; } @@ -264,8 +250,7 @@ class _SeerrCredentialsModel extends SeerrCredentialsModel { final Map customHeaders = const {}}) : _customHeaders = customHeaders, super._(); - factory _SeerrCredentialsModel.fromJson(Map json) => - _$SeerrCredentialsModelFromJson(json); + factory _SeerrCredentialsModel.fromJson(Map json) => _$SeerrCredentialsModelFromJson(json); @override @JsonKey() @@ -291,8 +276,7 @@ class _SeerrCredentialsModel extends SeerrCredentialsModel { @JsonKey(includeFromJson: false, includeToJson: false) @pragma('vm:prefer-inline') _$SeerrCredentialsModelCopyWith<_SeerrCredentialsModel> get copyWith => - __$SeerrCredentialsModelCopyWithImpl<_SeerrCredentialsModel>( - this, _$identity); + __$SeerrCredentialsModelCopyWithImpl<_SeerrCredentialsModel>(this, _$identity); @override Map toJson() { @@ -308,23 +292,16 @@ class _SeerrCredentialsModel extends SeerrCredentialsModel { } /// @nodoc -abstract mixin class _$SeerrCredentialsModelCopyWith<$Res> - implements $SeerrCredentialsModelCopyWith<$Res> { - factory _$SeerrCredentialsModelCopyWith(_SeerrCredentialsModel value, - $Res Function(_SeerrCredentialsModel) _then) = +abstract mixin class _$SeerrCredentialsModelCopyWith<$Res> implements $SeerrCredentialsModelCopyWith<$Res> { + factory _$SeerrCredentialsModelCopyWith(_SeerrCredentialsModel value, $Res Function(_SeerrCredentialsModel) _then) = __$SeerrCredentialsModelCopyWithImpl; @override @useResult - $Res call( - {String serverUrl, - String apiKey, - String sessionCookie, - Map customHeaders}); + $Res call({String serverUrl, String apiKey, String sessionCookie, Map customHeaders}); } /// @nodoc -class __$SeerrCredentialsModelCopyWithImpl<$Res> - implements _$SeerrCredentialsModelCopyWith<$Res> { +class __$SeerrCredentialsModelCopyWithImpl<$Res> implements _$SeerrCredentialsModelCopyWith<$Res> { __$SeerrCredentialsModelCopyWithImpl(this._self, this._then); final _SeerrCredentialsModel _self; diff --git a/lib/models/seerr_credentials_model.g.dart b/lib/models/seerr_credentials_model.g.dart index 3346cdca2..8eaa87a8c 100644 --- a/lib/models/seerr_credentials_model.g.dart +++ b/lib/models/seerr_credentials_model.g.dart @@ -6,9 +6,7 @@ part of 'seerr_credentials_model.dart'; // JsonSerializableGenerator // ************************************************************************** -_SeerrCredentialsModel _$SeerrCredentialsModelFromJson( - Map json) => - _SeerrCredentialsModel( +_SeerrCredentialsModel _$SeerrCredentialsModelFromJson(Map json) => _SeerrCredentialsModel( serverUrl: json['serverUrl'] as String? ?? "", apiKey: json['apiKey'] as String? ?? "", sessionCookie: json['sessionCookie'] as String? ?? "", @@ -18,9 +16,7 @@ _SeerrCredentialsModel _$SeerrCredentialsModelFromJson( const {}, ); -Map _$SeerrCredentialsModelToJson( - _SeerrCredentialsModel instance) => - { +Map _$SeerrCredentialsModelToJson(_SeerrCredentialsModel instance) => { 'serverUrl': instance.serverUrl, 'apiKey': instance.apiKey, 'sessionCookie': instance.sessionCookie, diff --git a/lib/models/settings/arguments_model.freezed.dart b/lib/models/settings/arguments_model.freezed.dart index 73d6f9f48..c5299d85f 100644 --- a/lib/models/settings/arguments_model.freezed.dart +++ b/lib/models/settings/arguments_model.freezed.dart @@ -117,8 +117,7 @@ extension ArgumentsModelPatterns on ArgumentsModel { @optionalTypeArgs TResult maybeWhen( - TResult Function(bool htpcMode, bool leanBackMode, bool newWindow)? - $default, { + TResult Function(bool htpcMode, bool leanBackMode, bool newWindow)? $default, { required TResult orElse(), }) { final _that = this; @@ -170,8 +169,7 @@ extension ArgumentsModelPatterns on ArgumentsModel { @optionalTypeArgs TResult? whenOrNull( - TResult? Function(bool htpcMode, bool leanBackMode, bool newWindow)? - $default, + TResult? Function(bool htpcMode, bool leanBackMode, bool newWindow)? $default, ) { final _that = this; switch (_that) { @@ -186,11 +184,7 @@ extension ArgumentsModelPatterns on ArgumentsModel { /// @nodoc class _ArgumentsModel extends ArgumentsModel { - _ArgumentsModel( - {this.htpcMode = false, - this.leanBackMode = false, - this.newWindow = false}) - : super._(); + _ArgumentsModel({this.htpcMode = false, this.leanBackMode = false, this.newWindow = false}) : super._(); @override @JsonKey() diff --git a/lib/models/settings/client_settings_model.freezed.dart b/lib/models/settings/client_settings_model.freezed.dart index 87eee843d..870db93d1 100644 --- a/lib/models/settings/client_settings_model.freezed.dart +++ b/lib/models/settings/client_settings_model.freezed.dart @@ -49,8 +49,7 @@ mixin _$ClientSettingsModel implements DiagnosticableTreeMixin { @JsonKey(includeFromJson: false, includeToJson: false) @pragma('vm:prefer-inline') $ClientSettingsModelCopyWith get copyWith => - _$ClientSettingsModelCopyWithImpl( - this as ClientSettingsModel, _$identity); + _$ClientSettingsModelCopyWithImpl(this as ClientSettingsModel, _$identity); /// Serializes this ClientSettingsModel to a JSON map. Map toJson(); @@ -76,10 +75,8 @@ mixin _$ClientSettingsModel implements DiagnosticableTreeMixin { ..add(DiagnosticsProperty('pinchPosterZoom', pinchPosterZoom)) ..add(DiagnosticsProperty('mouseDragSupport', mouseDragSupport)) ..add(DiagnosticsProperty('requireWifi', requireWifi)) - ..add( - DiagnosticsProperty('showAllCollectionTypes', showAllCollectionTypes)) - ..add( - DiagnosticsProperty('maxConcurrentDownloads', maxConcurrentDownloads)) + ..add(DiagnosticsProperty('showAllCollectionTypes', showAllCollectionTypes)) + ..add(DiagnosticsProperty('maxConcurrentDownloads', maxConcurrentDownloads)) ..add(DiagnosticsProperty('schemeVariant', schemeVariant)) ..add(DiagnosticsProperty('backgroundImage', backgroundImage)) ..add(DiagnosticsProperty('checkForUpdates', checkForUpdates)) @@ -99,8 +96,7 @@ mixin _$ClientSettingsModel implements DiagnosticableTreeMixin { /// @nodoc abstract mixin class $ClientSettingsModelCopyWith<$Res> { - factory $ClientSettingsModelCopyWith( - ClientSettingsModel value, $Res Function(ClientSettingsModel) _then) = + factory $ClientSettingsModelCopyWith(ClientSettingsModel value, $Res Function(ClientSettingsModel) _then) = _$ClientSettingsModelCopyWithImpl; @useResult $Res call( @@ -135,8 +131,7 @@ abstract mixin class $ClientSettingsModelCopyWith<$Res> { } /// @nodoc -class _$ClientSettingsModelCopyWithImpl<$Res> - implements $ClientSettingsModelCopyWith<$Res> { +class _$ClientSettingsModelCopyWithImpl<$Res> implements $ClientSettingsModelCopyWith<$Res> { _$ClientSettingsModelCopyWithImpl(this._self, this._then); final ClientSettingsModel _self; @@ -623,8 +618,7 @@ extension ClientSettingsModelPatterns on ClientSettingsModel { /// @nodoc @JsonSerializable() -class _ClientSettingsModel extends ClientSettingsModel - with DiagnosticableTreeMixin { +class _ClientSettingsModel extends ClientSettingsModel with DiagnosticableTreeMixin { _ClientSettingsModel( {this.syncPath, this.position = const Vector2(x: 0, y: 0), @@ -656,8 +650,7 @@ class _ClientSettingsModel extends ClientSettingsModel final Map shortcuts = const {}}) : _shortcuts = shortcuts, super._(); - factory _ClientSettingsModel.fromJson(Map json) => - _$ClientSettingsModelFromJson(json); + factory _ClientSettingsModel.fromJson(Map json) => _$ClientSettingsModelFromJson(json); @override final String? syncPath; @@ -750,8 +743,7 @@ class _ClientSettingsModel extends ClientSettingsModel @JsonKey(includeFromJson: false, includeToJson: false) @pragma('vm:prefer-inline') _$ClientSettingsModelCopyWith<_ClientSettingsModel> get copyWith => - __$ClientSettingsModelCopyWithImpl<_ClientSettingsModel>( - this, _$identity); + __$ClientSettingsModelCopyWithImpl<_ClientSettingsModel>(this, _$identity); @override Map toJson() { @@ -781,10 +773,8 @@ class _ClientSettingsModel extends ClientSettingsModel ..add(DiagnosticsProperty('pinchPosterZoom', pinchPosterZoom)) ..add(DiagnosticsProperty('mouseDragSupport', mouseDragSupport)) ..add(DiagnosticsProperty('requireWifi', requireWifi)) - ..add( - DiagnosticsProperty('showAllCollectionTypes', showAllCollectionTypes)) - ..add( - DiagnosticsProperty('maxConcurrentDownloads', maxConcurrentDownloads)) + ..add(DiagnosticsProperty('showAllCollectionTypes', showAllCollectionTypes)) + ..add(DiagnosticsProperty('maxConcurrentDownloads', maxConcurrentDownloads)) ..add(DiagnosticsProperty('schemeVariant', schemeVariant)) ..add(DiagnosticsProperty('backgroundImage', backgroundImage)) ..add(DiagnosticsProperty('checkForUpdates', checkForUpdates)) @@ -803,10 +793,8 @@ class _ClientSettingsModel extends ClientSettingsModel } /// @nodoc -abstract mixin class _$ClientSettingsModelCopyWith<$Res> - implements $ClientSettingsModelCopyWith<$Res> { - factory _$ClientSettingsModelCopyWith(_ClientSettingsModel value, - $Res Function(_ClientSettingsModel) _then) = +abstract mixin class _$ClientSettingsModelCopyWith<$Res> implements $ClientSettingsModelCopyWith<$Res> { + factory _$ClientSettingsModelCopyWith(_ClientSettingsModel value, $Res Function(_ClientSettingsModel) _then) = __$ClientSettingsModelCopyWithImpl; @override @useResult @@ -842,8 +830,7 @@ abstract mixin class _$ClientSettingsModelCopyWith<$Res> } /// @nodoc -class __$ClientSettingsModelCopyWithImpl<$Res> - implements _$ClientSettingsModelCopyWith<$Res> { +class __$ClientSettingsModelCopyWithImpl<$Res> implements _$ClientSettingsModelCopyWith<$Res> { __$ClientSettingsModelCopyWithImpl(this._self, this._then); final _ClientSettingsModel _self; diff --git a/lib/models/settings/client_settings_model.g.dart b/lib/models/settings/client_settings_model.g.dart index ebf5ea7b1..c4714c83f 100644 --- a/lib/models/settings/client_settings_model.g.dart +++ b/lib/models/settings/client_settings_model.g.dart @@ -6,44 +6,32 @@ part of 'client_settings_model.dart'; // JsonSerializableGenerator // ************************************************************************** -_ClientSettingsModel _$ClientSettingsModelFromJson(Map json) => - _ClientSettingsModel( +_ClientSettingsModel _$ClientSettingsModelFromJson(Map json) => _ClientSettingsModel( syncPath: json['syncPath'] as String?, - position: json['position'] == null - ? const Vector2(x: 0, y: 0) - : Vector2.fromJson(json['position'] as String), - size: json['size'] == null - ? const Vector2(x: 1280, y: 720) - : Vector2.fromJson(json['size'] as String), + position: json['position'] == null ? const Vector2(x: 0, y: 0) : Vector2.fromJson(json['position'] as String), + size: json['size'] == null ? const Vector2(x: 1280, y: 720) : Vector2.fromJson(json['size'] as String), timeOut: json['timeOut'] == null ? const Duration(seconds: 30) : Duration(microseconds: (json['timeOut'] as num).toInt()), - nextUpDateCutoff: json['nextUpDateCutoff'] == null - ? null - : Duration(microseconds: (json['nextUpDateCutoff'] as num).toInt()), - themeMode: $enumDecodeNullable(_$ThemeModeEnumMap, json['themeMode']) ?? - ThemeMode.system, + nextUpDateCutoff: + json['nextUpDateCutoff'] == null ? null : Duration(microseconds: (json['nextUpDateCutoff'] as num).toInt()), + themeMode: $enumDecodeNullable(_$ThemeModeEnumMap, json['themeMode']) ?? ThemeMode.system, themeColor: $enumDecodeNullable(_$ColorThemesEnumMap, json['themeColor']), deriveColorsFromItem: json['deriveColorsFromItem'] as bool? ?? true, amoledBlack: json['amoledBlack'] as bool? ?? false, blurPlaceHolders: json['blurPlaceHolders'] as bool? ?? true, blurUpcomingEpisodes: json['blurUpcomingEpisodes'] as bool? ?? false, - selectedLocale: - const LocaleConvert().fromJson(json['selectedLocale'] as String?), + selectedLocale: const LocaleConvert().fromJson(json['selectedLocale'] as String?), enableMediaKeys: json['enableMediaKeys'] as bool? ?? true, posterSize: (json['posterSize'] as num?)?.toDouble() ?? 1.0, pinchPosterZoom: json['pinchPosterZoom'] as bool? ?? false, mouseDragSupport: json['mouseDragSupport'] as bool? ?? false, requireWifi: json['requireWifi'] as bool? ?? true, showAllCollectionTypes: json['showAllCollectionTypes'] as bool? ?? false, - maxConcurrentDownloads: - (json['maxConcurrentDownloads'] as num?)?.toInt() ?? 2, - schemeVariant: $enumDecodeNullable( - _$DynamicSchemeVariantEnumMap, json['schemeVariant']) ?? - DynamicSchemeVariant.rainbow, - backgroundImage: $enumDecodeNullable( - _$BackgroundTypeEnumMap, json['backgroundImage']) ?? - BackgroundType.blurred, + maxConcurrentDownloads: (json['maxConcurrentDownloads'] as num?)?.toInt() ?? 2, + schemeVariant: + $enumDecodeNullable(_$DynamicSchemeVariantEnumMap, json['schemeVariant']) ?? DynamicSchemeVariant.rainbow, + backgroundImage: $enumDecodeNullable(_$BackgroundTypeEnumMap, json['backgroundImage']) ?? BackgroundType.blurred, checkForUpdates: json['checkForUpdates'] as bool? ?? true, usePosterForLibrary: json['usePosterForLibrary'] as bool? ?? false, useSystemIME: json['useSystemIME'] as bool? ?? false, @@ -51,15 +39,13 @@ _ClientSettingsModel _$ClientSettingsModelFromJson(Map json) => lastViewedUpdate: json['lastViewedUpdate'] as String?, libraryPageSize: (json['libraryPageSize'] as num?)?.toInt(), shortcuts: (json['shortcuts'] as Map?)?.map( - (k, e) => MapEntry($enumDecode(_$GlobalHotKeysEnumMap, k), - KeyCombination.fromJson(e as Map)), + (k, e) => + MapEntry($enumDecode(_$GlobalHotKeysEnumMap, k), KeyCombination.fromJson(e as Map)), ) ?? const {}, ); -Map _$ClientSettingsModelToJson( - _ClientSettingsModel instance) => - { +Map _$ClientSettingsModelToJson(_ClientSettingsModel instance) => { 'syncPath': instance.syncPath, 'position': instance.position, 'size': instance.size, @@ -87,8 +73,7 @@ Map _$ClientSettingsModelToJson( 'useTVExpandedLayout': instance.useTVExpandedLayout, 'lastViewedUpdate': instance.lastViewedUpdate, 'libraryPageSize': instance.libraryPageSize, - 'shortcuts': instance.shortcuts - .map((k, e) => MapEntry(_$GlobalHotKeysEnumMap[k]!, e)), + 'shortcuts': instance.shortcuts.map((k, e) => MapEntry(_$GlobalHotKeysEnumMap[k]!, e)), }; const _$ThemeModeEnumMap = { diff --git a/lib/models/settings/home_settings_model.freezed.dart b/lib/models/settings/home_settings_model.freezed.dart index 5e04c5062..b8dc60511 100644 --- a/lib/models/settings/home_settings_model.freezed.dart +++ b/lib/models/settings/home_settings_model.freezed.dart @@ -25,8 +25,7 @@ mixin _$HomeSettingsModel { @JsonKey(includeFromJson: false, includeToJson: false) @pragma('vm:prefer-inline') $HomeSettingsModelCopyWith get copyWith => - _$HomeSettingsModelCopyWithImpl( - this as HomeSettingsModel, _$identity); + _$HomeSettingsModelCopyWithImpl(this as HomeSettingsModel, _$identity); /// Serializes this HomeSettingsModel to a JSON map. Map toJson(); @@ -39,8 +38,7 @@ mixin _$HomeSettingsModel { /// @nodoc abstract mixin class $HomeSettingsModelCopyWith<$Res> { - factory $HomeSettingsModelCopyWith( - HomeSettingsModel value, $Res Function(HomeSettingsModel) _then) = + factory $HomeSettingsModelCopyWith(HomeSettingsModel value, $Res Function(HomeSettingsModel) _then) = _$HomeSettingsModelCopyWithImpl; @useResult $Res call( @@ -52,8 +50,7 @@ abstract mixin class $HomeSettingsModelCopyWith<$Res> { } /// @nodoc -class _$HomeSettingsModelCopyWithImpl<$Res> - implements $HomeSettingsModelCopyWith<$Res> { +class _$HomeSettingsModelCopyWithImpl<$Res> implements $HomeSettingsModelCopyWith<$Res> { _$HomeSettingsModelCopyWithImpl(this._self, this._then); final HomeSettingsModel _self; @@ -188,20 +185,16 @@ extension HomeSettingsModelPatterns on HomeSettingsModel { @optionalTypeArgs TResult maybeWhen( - TResult Function( - Set screenLayouts, - Set layoutStates, - HomeBanner homeBanner, - HomeCarouselSettings carouselSettings, - HomeNextUp nextUp)? + TResult Function(Set screenLayouts, Set layoutStates, HomeBanner homeBanner, + HomeCarouselSettings carouselSettings, HomeNextUp nextUp)? $default, { required TResult orElse(), }) { final _that = this; switch (_that) { case _HomeSettingsModel() when $default != null: - return $default(_that.screenLayouts, _that.layoutStates, - _that.homeBanner, _that.carouselSettings, _that.nextUp); + return $default( + _that.screenLayouts, _that.layoutStates, _that.homeBanner, _that.carouselSettings, _that.nextUp); case _: return orElse(); } @@ -222,19 +215,15 @@ extension HomeSettingsModelPatterns on HomeSettingsModel { @optionalTypeArgs TResult when( - TResult Function( - Set screenLayouts, - Set layoutStates, - HomeBanner homeBanner, - HomeCarouselSettings carouselSettings, - HomeNextUp nextUp) + TResult Function(Set screenLayouts, Set layoutStates, HomeBanner homeBanner, + HomeCarouselSettings carouselSettings, HomeNextUp nextUp) $default, ) { final _that = this; switch (_that) { case _HomeSettingsModel(): - return $default(_that.screenLayouts, _that.layoutStates, - _that.homeBanner, _that.carouselSettings, _that.nextUp); + return $default( + _that.screenLayouts, _that.layoutStates, _that.homeBanner, _that.carouselSettings, _that.nextUp); case _: throw StateError('Unexpected subclass'); } @@ -254,19 +243,15 @@ extension HomeSettingsModelPatterns on HomeSettingsModel { @optionalTypeArgs TResult? whenOrNull( - TResult? Function( - Set screenLayouts, - Set layoutStates, - HomeBanner homeBanner, - HomeCarouselSettings carouselSettings, - HomeNextUp nextUp)? + TResult? Function(Set screenLayouts, Set layoutStates, HomeBanner homeBanner, + HomeCarouselSettings carouselSettings, HomeNextUp nextUp)? $default, ) { final _that = this; switch (_that) { case _HomeSettingsModel() when $default != null: - return $default(_that.screenLayouts, _that.layoutStates, - _that.homeBanner, _that.carouselSettings, _that.nextUp); + return $default( + _that.screenLayouts, _that.layoutStates, _that.homeBanner, _that.carouselSettings, _that.nextUp); case _: return null; } @@ -285,8 +270,7 @@ class _HomeSettingsModel extends HomeSettingsModel { : _screenLayouts = screenLayouts, _layoutStates = layoutStates, super._(); - factory _HomeSettingsModel.fromJson(Map json) => - _$HomeSettingsModelFromJson(json); + factory _HomeSettingsModel.fromJson(Map json) => _$HomeSettingsModelFromJson(json); final Set _screenLayouts; @override @@ -338,10 +322,8 @@ class _HomeSettingsModel extends HomeSettingsModel { } /// @nodoc -abstract mixin class _$HomeSettingsModelCopyWith<$Res> - implements $HomeSettingsModelCopyWith<$Res> { - factory _$HomeSettingsModelCopyWith( - _HomeSettingsModel value, $Res Function(_HomeSettingsModel) _then) = +abstract mixin class _$HomeSettingsModelCopyWith<$Res> implements $HomeSettingsModelCopyWith<$Res> { + factory _$HomeSettingsModelCopyWith(_HomeSettingsModel value, $Res Function(_HomeSettingsModel) _then) = __$HomeSettingsModelCopyWithImpl; @override @useResult @@ -354,8 +336,7 @@ abstract mixin class _$HomeSettingsModelCopyWith<$Res> } /// @nodoc -class __$HomeSettingsModelCopyWithImpl<$Res> - implements _$HomeSettingsModelCopyWith<$Res> { +class __$HomeSettingsModelCopyWithImpl<$Res> implements _$HomeSettingsModelCopyWith<$Res> { __$HomeSettingsModelCopyWithImpl(this._self, this._then); final _HomeSettingsModel _self; diff --git a/lib/models/settings/home_settings_model.g.dart b/lib/models/settings/home_settings_model.g.dart index 734ba4f0d..d1b0d43af 100644 --- a/lib/models/settings/home_settings_model.g.dart +++ b/lib/models/settings/home_settings_model.g.dart @@ -6,35 +6,23 @@ part of 'home_settings_model.dart'; // JsonSerializableGenerator // ************************************************************************** -_HomeSettingsModel _$HomeSettingsModelFromJson(Map json) => - _HomeSettingsModel( - screenLayouts: (json['screenLayouts'] as List?) - ?.map((e) => $enumDecode(_$LayoutModeEnumMap, e)) - .toSet() ?? - const {...LayoutMode.values}, - layoutStates: (json['layoutStates'] as List?) - ?.map((e) => $enumDecode(_$ViewSizeEnumMap, e)) - .toSet() ?? +_HomeSettingsModel _$HomeSettingsModelFromJson(Map json) => _HomeSettingsModel( + screenLayouts: + (json['screenLayouts'] as List?)?.map((e) => $enumDecode(_$LayoutModeEnumMap, e)).toSet() ?? + const {...LayoutMode.values}, + layoutStates: (json['layoutStates'] as List?)?.map((e) => $enumDecode(_$ViewSizeEnumMap, e)).toSet() ?? const {...ViewSize.values}, - homeBanner: - $enumDecodeNullable(_$HomeBannerEnumMap, json['homeBanner']) ?? - HomeBanner.carousel, - carouselSettings: $enumDecodeNullable( - _$HomeCarouselSettingsEnumMap, json['carouselSettings']) ?? - HomeCarouselSettings.combined, - nextUp: $enumDecodeNullable(_$HomeNextUpEnumMap, json['nextUp']) ?? - HomeNextUp.separate, + homeBanner: $enumDecodeNullable(_$HomeBannerEnumMap, json['homeBanner']) ?? HomeBanner.carousel, + carouselSettings: + $enumDecodeNullable(_$HomeCarouselSettingsEnumMap, json['carouselSettings']) ?? HomeCarouselSettings.combined, + nextUp: $enumDecodeNullable(_$HomeNextUpEnumMap, json['nextUp']) ?? HomeNextUp.separate, ); -Map _$HomeSettingsModelToJson(_HomeSettingsModel instance) => - { - 'screenLayouts': - instance.screenLayouts.map((e) => _$LayoutModeEnumMap[e]!).toList(), - 'layoutStates': - instance.layoutStates.map((e) => _$ViewSizeEnumMap[e]!).toList(), +Map _$HomeSettingsModelToJson(_HomeSettingsModel instance) => { + 'screenLayouts': instance.screenLayouts.map((e) => _$LayoutModeEnumMap[e]!).toList(), + 'layoutStates': instance.layoutStates.map((e) => _$ViewSizeEnumMap[e]!).toList(), 'homeBanner': _$HomeBannerEnumMap[instance.homeBanner]!, - 'carouselSettings': - _$HomeCarouselSettingsEnumMap[instance.carouselSettings]!, + 'carouselSettings': _$HomeCarouselSettingsEnumMap[instance.carouselSettings]!, 'nextUp': _$HomeNextUpEnumMap[instance.nextUp]!, }; diff --git a/lib/models/settings/key_combinations.freezed.dart b/lib/models/settings/key_combinations.freezed.dart index 48ae91d9b..91a70228d 100644 --- a/lib/models/settings/key_combinations.freezed.dart +++ b/lib/models/settings/key_combinations.freezed.dart @@ -28,8 +28,7 @@ mixin _$KeyCombination { @JsonKey(includeFromJson: false, includeToJson: false) @pragma('vm:prefer-inline') $KeyCombinationCopyWith get copyWith => - _$KeyCombinationCopyWithImpl( - this as KeyCombination, _$identity); + _$KeyCombinationCopyWithImpl(this as KeyCombination, _$identity); /// Serializes this KeyCombination to a JSON map. Map toJson(); @@ -42,8 +41,7 @@ mixin _$KeyCombination { /// @nodoc abstract mixin class $KeyCombinationCopyWith<$Res> { - factory $KeyCombinationCopyWith( - KeyCombination value, $Res Function(KeyCombination) _then) = + factory $KeyCombinationCopyWith(KeyCombination value, $Res Function(KeyCombination) _then) = _$KeyCombinationCopyWithImpl; @useResult $Res call( @@ -54,8 +52,7 @@ abstract mixin class $KeyCombinationCopyWith<$Res> { } /// @nodoc -class _$KeyCombinationCopyWithImpl<$Res> - implements $KeyCombinationCopyWith<$Res> { +class _$KeyCombinationCopyWithImpl<$Res> implements $KeyCombinationCopyWith<$Res> { _$KeyCombinationCopyWithImpl(this._self, this._then); final KeyCombination _self; @@ -196,8 +193,7 @@ extension KeyCombinationPatterns on KeyCombination { final _that = this; switch (_that) { case _KeyCombination() when $default != null: - return $default( - _that.key, _that.modifier, _that.altKey, _that.altModifier); + return $default(_that.key, _that.modifier, _that.altKey, _that.altModifier); case _: return orElse(); } @@ -228,8 +224,7 @@ extension KeyCombinationPatterns on KeyCombination { final _that = this; switch (_that) { case _KeyCombination(): - return $default( - _that.key, _that.modifier, _that.altKey, _that.altModifier); + return $default(_that.key, _that.modifier, _that.altKey, _that.altModifier); case _: throw StateError('Unexpected subclass'); } @@ -259,8 +254,7 @@ extension KeyCombinationPatterns on KeyCombination { final _that = this; switch (_that) { case _KeyCombination() when $default != null: - return $default( - _that.key, _that.modifier, _that.altKey, _that.altModifier); + return $default(_that.key, _that.modifier, _that.altKey, _that.altModifier); case _: return null; } @@ -276,8 +270,7 @@ class _KeyCombination extends KeyCombination { @LogicalKeyboardSerializer() this.altKey, @LogicalKeyboardSerializer() this.altModifier}) : super._(); - factory _KeyCombination.fromJson(Map json) => - _$KeyCombinationFromJson(json); + factory _KeyCombination.fromJson(Map json) => _$KeyCombinationFromJson(json); @override @LogicalKeyboardSerializer() @@ -314,10 +307,8 @@ class _KeyCombination extends KeyCombination { } /// @nodoc -abstract mixin class _$KeyCombinationCopyWith<$Res> - implements $KeyCombinationCopyWith<$Res> { - factory _$KeyCombinationCopyWith( - _KeyCombination value, $Res Function(_KeyCombination) _then) = +abstract mixin class _$KeyCombinationCopyWith<$Res> implements $KeyCombinationCopyWith<$Res> { + factory _$KeyCombinationCopyWith(_KeyCombination value, $Res Function(_KeyCombination) _then) = __$KeyCombinationCopyWithImpl; @override @useResult @@ -329,8 +320,7 @@ abstract mixin class _$KeyCombinationCopyWith<$Res> } /// @nodoc -class __$KeyCombinationCopyWithImpl<$Res> - implements _$KeyCombinationCopyWith<$Res> { +class __$KeyCombinationCopyWithImpl<$Res> implements _$KeyCombinationCopyWith<$Res> { __$KeyCombinationCopyWithImpl(this._self, this._then); final _KeyCombination _self; diff --git a/lib/models/settings/key_combinations.g.dart b/lib/models/settings/key_combinations.g.dart index 45e5712b1..ec302cc4c 100644 --- a/lib/models/settings/key_combinations.g.dart +++ b/lib/models/settings/key_combinations.g.dart @@ -6,10 +6,8 @@ part of 'key_combinations.dart'; // JsonSerializableGenerator // ************************************************************************** -_KeyCombination _$KeyCombinationFromJson(Map json) => - _KeyCombination( - key: _$JsonConverterFromJson( - json['key'], const LogicalKeyboardSerializer().fromJson), +_KeyCombination _$KeyCombinationFromJson(Map json) => _KeyCombination( + key: _$JsonConverterFromJson(json['key'], const LogicalKeyboardSerializer().fromJson), modifier: _$JsonConverterFromJson( json['modifier'], const LogicalKeyboardSerializer().fromJson), altKey: _$JsonConverterFromJson( @@ -18,14 +16,12 @@ _KeyCombination _$KeyCombinationFromJson(Map json) => json['altModifier'], const LogicalKeyboardSerializer().fromJson), ); -Map _$KeyCombinationToJson(_KeyCombination instance) => - { - 'key': _$JsonConverterToJson( - instance.key, const LogicalKeyboardSerializer().toJson), +Map _$KeyCombinationToJson(_KeyCombination instance) => { + 'key': _$JsonConverterToJson(instance.key, const LogicalKeyboardSerializer().toJson), 'modifier': _$JsonConverterToJson( instance.modifier, const LogicalKeyboardSerializer().toJson), - 'altKey': _$JsonConverterToJson( - instance.altKey, const LogicalKeyboardSerializer().toJson), + 'altKey': + _$JsonConverterToJson(instance.altKey, const LogicalKeyboardSerializer().toJson), 'altModifier': _$JsonConverterToJson( instance.altModifier, const LogicalKeyboardSerializer().toJson), }; diff --git a/lib/models/settings/video_player_settings.freezed.dart b/lib/models/settings/video_player_settings.freezed.dart index 147941da9..9fc5807c4 100644 --- a/lib/models/settings/video_player_settings.freezed.dart +++ b/lib/models/settings/video_player_settings.freezed.dart @@ -37,8 +37,7 @@ mixin _$VideoPlayerSettingsModel implements DiagnosticableTreeMixin { @JsonKey(includeFromJson: false, includeToJson: false) @pragma('vm:prefer-inline') $VideoPlayerSettingsModelCopyWith get copyWith => - _$VideoPlayerSettingsModelCopyWithImpl( - this as VideoPlayerSettingsModel, _$identity); + _$VideoPlayerSettingsModelCopyWithImpl(this as VideoPlayerSettingsModel, _$identity); /// Serializes this VideoPlayerSettingsModel to a JSON map. Map toJson(); @@ -74,8 +73,8 @@ mixin _$VideoPlayerSettingsModel implements DiagnosticableTreeMixin { /// @nodoc abstract mixin class $VideoPlayerSettingsModelCopyWith<$Res> { - factory $VideoPlayerSettingsModelCopyWith(VideoPlayerSettingsModel value, - $Res Function(VideoPlayerSettingsModel) _then) = + factory $VideoPlayerSettingsModelCopyWith( + VideoPlayerSettingsModel value, $Res Function(VideoPlayerSettingsModel) _then) = _$VideoPlayerSettingsModelCopyWithImpl; @useResult $Res call( @@ -99,8 +98,7 @@ abstract mixin class $VideoPlayerSettingsModelCopyWith<$Res> { } /// @nodoc -class _$VideoPlayerSettingsModelCopyWithImpl<$Res> - implements $VideoPlayerSettingsModelCopyWith<$Res> { +class _$VideoPlayerSettingsModelCopyWithImpl<$Res> implements $VideoPlayerSettingsModelCopyWith<$Res> { _$VideoPlayerSettingsModelCopyWithImpl(this._self, this._then); final VideoPlayerSettingsModel _self; @@ -466,8 +464,7 @@ extension VideoPlayerSettingsModelPatterns on VideoPlayerSettingsModel { /// @nodoc @JsonSerializable() -class _VideoPlayerSettingsModel extends VideoPlayerSettingsModel - with DiagnosticableTreeMixin { +class _VideoPlayerSettingsModel extends VideoPlayerSettingsModel with DiagnosticableTreeMixin { _VideoPlayerSettingsModel( {this.screenBrightness, this.videoFit = BoxFit.contain, @@ -483,16 +480,14 @@ class _VideoPlayerSettingsModel extends VideoPlayerSettingsModel this.maxHomeBitrate = Bitrate.original, this.maxInternetBitrate = Bitrate.original, this.audioDevice, - final Map segmentSkipSettings = - defaultSegmentSkipValues, + final Map segmentSkipSettings = defaultSegmentSkipValues, final Map hotKeys = const {}, this.screensaver = Screensaver.logo}) : _allowedOrientations = allowedOrientations, _segmentSkipSettings = segmentSkipSettings, _hotKeys = hotKeys, super._(); - factory _VideoPlayerSettingsModel.fromJson(Map json) => - _$VideoPlayerSettingsModelFromJson(json); + factory _VideoPlayerSettingsModel.fromJson(Map json) => _$VideoPlayerSettingsModelFromJson(json); @override final double? screenBrightness; @@ -524,8 +519,7 @@ class _VideoPlayerSettingsModel extends VideoPlayerSettingsModel Set? get allowedOrientations { final value = _allowedOrientations; if (value == null) return null; - if (_allowedOrientations is EqualUnmodifiableSetView) - return _allowedOrientations; + if (_allowedOrientations is EqualUnmodifiableSetView) return _allowedOrientations; // ignore: implicit_dynamic_type return EqualUnmodifiableSetView(value); } @@ -545,8 +539,7 @@ class _VideoPlayerSettingsModel extends VideoPlayerSettingsModel @override @JsonKey() Map get segmentSkipSettings { - if (_segmentSkipSettings is EqualUnmodifiableMapView) - return _segmentSkipSettings; + if (_segmentSkipSettings is EqualUnmodifiableMapView) return _segmentSkipSettings; // ignore: implicit_dynamic_type return EqualUnmodifiableMapView(_segmentSkipSettings); } @@ -570,8 +563,7 @@ class _VideoPlayerSettingsModel extends VideoPlayerSettingsModel @JsonKey(includeFromJson: false, includeToJson: false) @pragma('vm:prefer-inline') _$VideoPlayerSettingsModelCopyWith<_VideoPlayerSettingsModel> get copyWith => - __$VideoPlayerSettingsModelCopyWithImpl<_VideoPlayerSettingsModel>( - this, _$identity); + __$VideoPlayerSettingsModelCopyWithImpl<_VideoPlayerSettingsModel>(this, _$identity); @override Map toJson() { @@ -610,10 +602,9 @@ class _VideoPlayerSettingsModel extends VideoPlayerSettingsModel } /// @nodoc -abstract mixin class _$VideoPlayerSettingsModelCopyWith<$Res> - implements $VideoPlayerSettingsModelCopyWith<$Res> { - factory _$VideoPlayerSettingsModelCopyWith(_VideoPlayerSettingsModel value, - $Res Function(_VideoPlayerSettingsModel) _then) = +abstract mixin class _$VideoPlayerSettingsModelCopyWith<$Res> implements $VideoPlayerSettingsModelCopyWith<$Res> { + factory _$VideoPlayerSettingsModelCopyWith( + _VideoPlayerSettingsModel value, $Res Function(_VideoPlayerSettingsModel) _then) = __$VideoPlayerSettingsModelCopyWithImpl; @override @useResult @@ -638,8 +629,7 @@ abstract mixin class _$VideoPlayerSettingsModelCopyWith<$Res> } /// @nodoc -class __$VideoPlayerSettingsModelCopyWithImpl<$Res> - implements _$VideoPlayerSettingsModelCopyWith<$Res> { +class __$VideoPlayerSettingsModelCopyWithImpl<$Res> implements _$VideoPlayerSettingsModelCopyWith<$Res> { __$VideoPlayerSettingsModelCopyWithImpl(this._self, this._then); final _VideoPlayerSettingsModel _self; diff --git a/lib/models/settings/video_player_settings.g.dart b/lib/models/settings/video_player_settings.g.dart index 63cd7b0f8..3d251b631 100644 --- a/lib/models/settings/video_player_settings.g.dart +++ b/lib/models/settings/video_player_settings.g.dart @@ -6,52 +6,36 @@ part of 'video_player_settings.dart'; // JsonSerializableGenerator // ************************************************************************** -_VideoPlayerSettingsModel _$VideoPlayerSettingsModelFromJson( - Map json) => - _VideoPlayerSettingsModel( +_VideoPlayerSettingsModel _$VideoPlayerSettingsModelFromJson(Map json) => _VideoPlayerSettingsModel( screenBrightness: (json['screenBrightness'] as num?)?.toDouble(), - videoFit: $enumDecodeNullable(_$BoxFitEnumMap, json['videoFit']) ?? - BoxFit.contain, + videoFit: $enumDecodeNullable(_$BoxFitEnumMap, json['videoFit']) ?? BoxFit.contain, fillScreen: json['fillScreen'] as bool? ?? false, hardwareAccel: json['hardwareAccel'] as bool? ?? true, useLibass: json['useLibass'] as bool? ?? false, enableTunneling: json['enableTunneling'] as bool? ?? false, bufferSize: (json['bufferSize'] as num?)?.toInt() ?? 32, - playerOptions: - $enumDecodeNullable(_$PlayerOptionsEnumMap, json['playerOptions']), + playerOptions: $enumDecodeNullable(_$PlayerOptionsEnumMap, json['playerOptions']), internalVolume: (json['internalVolume'] as num?)?.toDouble() ?? 100, allowedOrientations: (json['allowedOrientations'] as List?) ?.map((e) => $enumDecode(_$DeviceOrientationEnumMap, e)) .toSet(), - nextVideoType: - $enumDecodeNullable(_$AutoNextTypeEnumMap, json['nextVideoType']) ?? - AutoNextType.smart, - maxHomeBitrate: - $enumDecodeNullable(_$BitrateEnumMap, json['maxHomeBitrate']) ?? - Bitrate.original, - maxInternetBitrate: - $enumDecodeNullable(_$BitrateEnumMap, json['maxInternetBitrate']) ?? - Bitrate.original, + nextVideoType: $enumDecodeNullable(_$AutoNextTypeEnumMap, json['nextVideoType']) ?? AutoNextType.smart, + maxHomeBitrate: $enumDecodeNullable(_$BitrateEnumMap, json['maxHomeBitrate']) ?? Bitrate.original, + maxInternetBitrate: $enumDecodeNullable(_$BitrateEnumMap, json['maxInternetBitrate']) ?? Bitrate.original, audioDevice: json['audioDevice'] as String?, - segmentSkipSettings: - (json['segmentSkipSettings'] as Map?)?.map( - (k, e) => MapEntry($enumDecode(_$MediaSegmentTypeEnumMap, k), - $enumDecode(_$SegmentSkipEnumMap, e)), - ) ?? - defaultSegmentSkipValues, + segmentSkipSettings: (json['segmentSkipSettings'] as Map?)?.map( + (k, e) => MapEntry($enumDecode(_$MediaSegmentTypeEnumMap, k), $enumDecode(_$SegmentSkipEnumMap, e)), + ) ?? + defaultSegmentSkipValues, hotKeys: (json['hotKeys'] as Map?)?.map( - (k, e) => MapEntry($enumDecode(_$VideoHotKeysEnumMap, k), - KeyCombination.fromJson(e as Map)), + (k, e) => + MapEntry($enumDecode(_$VideoHotKeysEnumMap, k), KeyCombination.fromJson(e as Map)), ) ?? const {}, - screensaver: - $enumDecodeNullable(_$ScreensaverEnumMap, json['screensaver']) ?? - Screensaver.logo, + screensaver: $enumDecodeNullable(_$ScreensaverEnumMap, json['screensaver']) ?? Screensaver.logo, ); -Map _$VideoPlayerSettingsModelToJson( - _VideoPlayerSettingsModel instance) => - { +Map _$VideoPlayerSettingsModelToJson(_VideoPlayerSettingsModel instance) => { 'screenBrightness': instance.screenBrightness, 'videoFit': _$BoxFitEnumMap[instance.videoFit]!, 'fillScreen': instance.fillScreen, @@ -61,17 +45,14 @@ Map _$VideoPlayerSettingsModelToJson( 'bufferSize': instance.bufferSize, 'playerOptions': _$PlayerOptionsEnumMap[instance.playerOptions], 'internalVolume': instance.internalVolume, - 'allowedOrientations': instance.allowedOrientations - ?.map((e) => _$DeviceOrientationEnumMap[e]!) - .toList(), + 'allowedOrientations': instance.allowedOrientations?.map((e) => _$DeviceOrientationEnumMap[e]!).toList(), 'nextVideoType': _$AutoNextTypeEnumMap[instance.nextVideoType]!, 'maxHomeBitrate': _$BitrateEnumMap[instance.maxHomeBitrate]!, 'maxInternetBitrate': _$BitrateEnumMap[instance.maxInternetBitrate]!, 'audioDevice': instance.audioDevice, - 'segmentSkipSettings': instance.segmentSkipSettings.map((k, e) => - MapEntry(_$MediaSegmentTypeEnumMap[k]!, _$SegmentSkipEnumMap[e]!)), - 'hotKeys': instance.hotKeys - .map((k, e) => MapEntry(_$VideoHotKeysEnumMap[k]!, e)), + 'segmentSkipSettings': + instance.segmentSkipSettings.map((k, e) => MapEntry(_$MediaSegmentTypeEnumMap[k]!, _$SegmentSkipEnumMap[e]!)), + 'hotKeys': instance.hotKeys.map((k, e) => MapEntry(_$VideoHotKeysEnumMap[k]!, e)), 'screensaver': _$ScreensaverEnumMap[instance.screensaver]!, }; diff --git a/lib/models/syncing/database_item.g.dart b/lib/models/syncing/database_item.g.dart index 8570d7c93..91331fbe5 100644 --- a/lib/models/syncing/database_item.g.dart +++ b/lib/models/syncing/database_item.g.dart @@ -3,114 +3,85 @@ part of 'database_item.dart'; // ignore_for_file: type=lint -class $DatabaseItemsTable extends DatabaseItems - with TableInfo<$DatabaseItemsTable, DatabaseItem> { +class $DatabaseItemsTable extends DatabaseItems with TableInfo<$DatabaseItemsTable, DatabaseItem> { @override final GeneratedDatabase attachedDatabase; final String? _alias; $DatabaseItemsTable(this.attachedDatabase, [this._alias]); static const VerificationMeta _userIdMeta = const VerificationMeta('userId'); @override - late final GeneratedColumn userId = - GeneratedColumn('user_id', aliasedName, false, - additionalChecks: GeneratedColumn.checkTextLength( - minTextLength: 1, - ), - type: DriftSqlType.string, - requiredDuringInsert: true); + late final GeneratedColumn userId = GeneratedColumn('user_id', aliasedName, false, + additionalChecks: GeneratedColumn.checkTextLength( + minTextLength: 1, + ), + type: DriftSqlType.string, + requiredDuringInsert: true); static const VerificationMeta _idMeta = const VerificationMeta('id'); @override - late final GeneratedColumn id = - GeneratedColumn('id', aliasedName, false, - additionalChecks: GeneratedColumn.checkTextLength( - minTextLength: 1, - ), - type: DriftSqlType.string, - requiredDuringInsert: true); - static const VerificationMeta _syncingMeta = - const VerificationMeta('syncing'); + late final GeneratedColumn id = GeneratedColumn('id', aliasedName, false, + additionalChecks: GeneratedColumn.checkTextLength( + minTextLength: 1, + ), + type: DriftSqlType.string, + requiredDuringInsert: true); + static const VerificationMeta _syncingMeta = const VerificationMeta('syncing'); @override - late final GeneratedColumn syncing = GeneratedColumn( - 'syncing', aliasedName, false, + late final GeneratedColumn syncing = GeneratedColumn('syncing', aliasedName, false, type: DriftSqlType.bool, requiredDuringInsert: false, - defaultConstraints: - GeneratedColumn.constraintIsAlways('CHECK ("syncing" IN (0, 1))'), + defaultConstraints: GeneratedColumn.constraintIsAlways('CHECK ("syncing" IN (0, 1))'), defaultValue: const Constant(false)); - static const VerificationMeta _sortNameMeta = - const VerificationMeta('sortName'); + static const VerificationMeta _sortNameMeta = const VerificationMeta('sortName'); @override - late final GeneratedColumn sortName = GeneratedColumn( - 'sort_name', aliasedName, true, - type: DriftSqlType.string, requiredDuringInsert: false); - static const VerificationMeta _parentIdMeta = - const VerificationMeta('parentId'); + late final GeneratedColumn sortName = + GeneratedColumn('sort_name', aliasedName, true, type: DriftSqlType.string, requiredDuringInsert: false); + static const VerificationMeta _parentIdMeta = const VerificationMeta('parentId'); @override - late final GeneratedColumn parentId = GeneratedColumn( - 'parent_id', aliasedName, true, - type: DriftSqlType.string, requiredDuringInsert: false); + late final GeneratedColumn parentId = + GeneratedColumn('parent_id', aliasedName, true, type: DriftSqlType.string, requiredDuringInsert: false); static const VerificationMeta _pathMeta = const VerificationMeta('path'); @override - late final GeneratedColumn path = GeneratedColumn( - 'path', aliasedName, true, - type: DriftSqlType.string, requiredDuringInsert: false); - static const VerificationMeta _fileSizeMeta = - const VerificationMeta('fileSize'); + late final GeneratedColumn path = + GeneratedColumn('path', aliasedName, true, type: DriftSqlType.string, requiredDuringInsert: false); + static const VerificationMeta _fileSizeMeta = const VerificationMeta('fileSize'); @override - late final GeneratedColumn fileSize = GeneratedColumn( - 'file_size', aliasedName, true, - type: DriftSqlType.int, requiredDuringInsert: false); - static const VerificationMeta _videoFileNameMeta = - const VerificationMeta('videoFileName'); + late final GeneratedColumn fileSize = + GeneratedColumn('file_size', aliasedName, true, type: DriftSqlType.int, requiredDuringInsert: false); + static const VerificationMeta _videoFileNameMeta = const VerificationMeta('videoFileName'); @override - late final GeneratedColumn videoFileName = GeneratedColumn( - 'video_file_name', aliasedName, true, + late final GeneratedColumn videoFileName = GeneratedColumn('video_file_name', aliasedName, true, type: DriftSqlType.string, requiredDuringInsert: false); - static const VerificationMeta _trickPlayModelMeta = - const VerificationMeta('trickPlayModel'); + static const VerificationMeta _trickPlayModelMeta = const VerificationMeta('trickPlayModel'); @override - late final GeneratedColumn trickPlayModel = GeneratedColumn( - 'trick_play_model', aliasedName, true, + late final GeneratedColumn trickPlayModel = GeneratedColumn('trick_play_model', aliasedName, true, type: DriftSqlType.string, requiredDuringInsert: false); - static const VerificationMeta _mediaSegmentsMeta = - const VerificationMeta('mediaSegments'); + static const VerificationMeta _mediaSegmentsMeta = const VerificationMeta('mediaSegments'); @override - late final GeneratedColumn mediaSegments = GeneratedColumn( - 'media_segments', aliasedName, true, + late final GeneratedColumn mediaSegments = GeneratedColumn('media_segments', aliasedName, true, type: DriftSqlType.string, requiredDuringInsert: false); static const VerificationMeta _imagesMeta = const VerificationMeta('images'); @override - late final GeneratedColumn images = GeneratedColumn( - 'images', aliasedName, true, - type: DriftSqlType.string, requiredDuringInsert: false); - static const VerificationMeta _chaptersMeta = - const VerificationMeta('chapters'); + late final GeneratedColumn images = + GeneratedColumn('images', aliasedName, true, type: DriftSqlType.string, requiredDuringInsert: false); + static const VerificationMeta _chaptersMeta = const VerificationMeta('chapters'); @override - late final GeneratedColumn chapters = GeneratedColumn( - 'chapters', aliasedName, true, - type: DriftSqlType.string, requiredDuringInsert: false); - static const VerificationMeta _subtitlesMeta = - const VerificationMeta('subtitles'); + late final GeneratedColumn chapters = + GeneratedColumn('chapters', aliasedName, true, type: DriftSqlType.string, requiredDuringInsert: false); + static const VerificationMeta _subtitlesMeta = const VerificationMeta('subtitles'); @override - late final GeneratedColumn subtitles = GeneratedColumn( - 'subtitles', aliasedName, true, - type: DriftSqlType.string, requiredDuringInsert: false); - static const VerificationMeta _unSyncedDataMeta = - const VerificationMeta('unSyncedData'); + late final GeneratedColumn subtitles = + GeneratedColumn('subtitles', aliasedName, true, type: DriftSqlType.string, requiredDuringInsert: false); + static const VerificationMeta _unSyncedDataMeta = const VerificationMeta('unSyncedData'); @override - late final GeneratedColumn unSyncedData = GeneratedColumn( - 'un_synced_data', aliasedName, false, + late final GeneratedColumn unSyncedData = GeneratedColumn('un_synced_data', aliasedName, false, type: DriftSqlType.bool, requiredDuringInsert: false, - defaultConstraints: GeneratedColumn.constraintIsAlways( - 'CHECK ("un_synced_data" IN (0, 1))'), + defaultConstraints: GeneratedColumn.constraintIsAlways('CHECK ("un_synced_data" IN (0, 1))'), defaultValue: const Constant(false)); - static const VerificationMeta _userDataMeta = - const VerificationMeta('userData'); + static const VerificationMeta _userDataMeta = const VerificationMeta('userData'); @override - late final GeneratedColumn userData = GeneratedColumn( - 'user_data', aliasedName, true, - type: DriftSqlType.string, requiredDuringInsert: false); + late final GeneratedColumn userData = + GeneratedColumn('user_data', aliasedName, true, type: DriftSqlType.string, requiredDuringInsert: false); @override List get $columns => [ userId, @@ -135,13 +106,11 @@ class $DatabaseItemsTable extends DatabaseItems String get actualTableName => $name; static const String $name = 'database_items'; @override - VerificationContext validateIntegrity(Insertable instance, - {bool isInserting = false}) { + VerificationContext validateIntegrity(Insertable instance, {bool isInserting = false}) { final context = VerificationContext(); final data = instance.toColumns(true); if (data.containsKey('user_id')) { - context.handle(_userIdMeta, - userId.isAcceptableOrUnknown(data['user_id']!, _userIdMeta)); + context.handle(_userIdMeta, userId.isAcceptableOrUnknown(data['user_id']!, _userIdMeta)); } else if (isInserting) { context.missing(_userIdMeta); } @@ -151,64 +120,46 @@ class $DatabaseItemsTable extends DatabaseItems context.missing(_idMeta); } if (data.containsKey('syncing')) { - context.handle(_syncingMeta, - syncing.isAcceptableOrUnknown(data['syncing']!, _syncingMeta)); + context.handle(_syncingMeta, syncing.isAcceptableOrUnknown(data['syncing']!, _syncingMeta)); } if (data.containsKey('sort_name')) { - context.handle(_sortNameMeta, - sortName.isAcceptableOrUnknown(data['sort_name']!, _sortNameMeta)); + context.handle(_sortNameMeta, sortName.isAcceptableOrUnknown(data['sort_name']!, _sortNameMeta)); } if (data.containsKey('parent_id')) { - context.handle(_parentIdMeta, - parentId.isAcceptableOrUnknown(data['parent_id']!, _parentIdMeta)); + context.handle(_parentIdMeta, parentId.isAcceptableOrUnknown(data['parent_id']!, _parentIdMeta)); } if (data.containsKey('path')) { - context.handle( - _pathMeta, path.isAcceptableOrUnknown(data['path']!, _pathMeta)); + context.handle(_pathMeta, path.isAcceptableOrUnknown(data['path']!, _pathMeta)); } if (data.containsKey('file_size')) { - context.handle(_fileSizeMeta, - fileSize.isAcceptableOrUnknown(data['file_size']!, _fileSizeMeta)); + context.handle(_fileSizeMeta, fileSize.isAcceptableOrUnknown(data['file_size']!, _fileSizeMeta)); } if (data.containsKey('video_file_name')) { context.handle( - _videoFileNameMeta, - videoFileName.isAcceptableOrUnknown( - data['video_file_name']!, _videoFileNameMeta)); + _videoFileNameMeta, videoFileName.isAcceptableOrUnknown(data['video_file_name']!, _videoFileNameMeta)); } if (data.containsKey('trick_play_model')) { context.handle( - _trickPlayModelMeta, - trickPlayModel.isAcceptableOrUnknown( - data['trick_play_model']!, _trickPlayModelMeta)); + _trickPlayModelMeta, trickPlayModel.isAcceptableOrUnknown(data['trick_play_model']!, _trickPlayModelMeta)); } if (data.containsKey('media_segments')) { context.handle( - _mediaSegmentsMeta, - mediaSegments.isAcceptableOrUnknown( - data['media_segments']!, _mediaSegmentsMeta)); + _mediaSegmentsMeta, mediaSegments.isAcceptableOrUnknown(data['media_segments']!, _mediaSegmentsMeta)); } if (data.containsKey('images')) { - context.handle(_imagesMeta, - images.isAcceptableOrUnknown(data['images']!, _imagesMeta)); + context.handle(_imagesMeta, images.isAcceptableOrUnknown(data['images']!, _imagesMeta)); } if (data.containsKey('chapters')) { - context.handle(_chaptersMeta, - chapters.isAcceptableOrUnknown(data['chapters']!, _chaptersMeta)); + context.handle(_chaptersMeta, chapters.isAcceptableOrUnknown(data['chapters']!, _chaptersMeta)); } if (data.containsKey('subtitles')) { - context.handle(_subtitlesMeta, - subtitles.isAcceptableOrUnknown(data['subtitles']!, _subtitlesMeta)); + context.handle(_subtitlesMeta, subtitles.isAcceptableOrUnknown(data['subtitles']!, _subtitlesMeta)); } if (data.containsKey('un_synced_data')) { - context.handle( - _unSyncedDataMeta, - unSyncedData.isAcceptableOrUnknown( - data['un_synced_data']!, _unSyncedDataMeta)); + context.handle(_unSyncedDataMeta, unSyncedData.isAcceptableOrUnknown(data['un_synced_data']!, _unSyncedDataMeta)); } if (data.containsKey('user_data')) { - context.handle(_userDataMeta, - userData.isAcceptableOrUnknown(data['user_data']!, _userDataMeta)); + context.handle(_userDataMeta, userData.isAcceptableOrUnknown(data['user_data']!, _userDataMeta)); } return context; } @@ -219,36 +170,22 @@ class $DatabaseItemsTable extends DatabaseItems DatabaseItem map(Map data, {String? tablePrefix}) { final effectivePrefix = tablePrefix != null ? '$tablePrefix.' : ''; return DatabaseItem( - userId: attachedDatabase.typeMapping - .read(DriftSqlType.string, data['${effectivePrefix}user_id'])!, - id: attachedDatabase.typeMapping - .read(DriftSqlType.string, data['${effectivePrefix}id'])!, - syncing: attachedDatabase.typeMapping - .read(DriftSqlType.bool, data['${effectivePrefix}syncing'])!, - sortName: attachedDatabase.typeMapping - .read(DriftSqlType.string, data['${effectivePrefix}sort_name']), - parentId: attachedDatabase.typeMapping - .read(DriftSqlType.string, data['${effectivePrefix}parent_id']), - path: attachedDatabase.typeMapping - .read(DriftSqlType.string, data['${effectivePrefix}path']), - fileSize: attachedDatabase.typeMapping - .read(DriftSqlType.int, data['${effectivePrefix}file_size']), - videoFileName: attachedDatabase.typeMapping - .read(DriftSqlType.string, data['${effectivePrefix}video_file_name']), - trickPlayModel: attachedDatabase.typeMapping.read( - DriftSqlType.string, data['${effectivePrefix}trick_play_model']), - mediaSegments: attachedDatabase.typeMapping - .read(DriftSqlType.string, data['${effectivePrefix}media_segments']), - images: attachedDatabase.typeMapping - .read(DriftSqlType.string, data['${effectivePrefix}images']), - chapters: attachedDatabase.typeMapping - .read(DriftSqlType.string, data['${effectivePrefix}chapters']), - subtitles: attachedDatabase.typeMapping - .read(DriftSqlType.string, data['${effectivePrefix}subtitles']), - unSyncedData: attachedDatabase.typeMapping - .read(DriftSqlType.bool, data['${effectivePrefix}un_synced_data'])!, - userData: attachedDatabase.typeMapping - .read(DriftSqlType.string, data['${effectivePrefix}user_data']), + userId: attachedDatabase.typeMapping.read(DriftSqlType.string, data['${effectivePrefix}user_id'])!, + id: attachedDatabase.typeMapping.read(DriftSqlType.string, data['${effectivePrefix}id'])!, + syncing: attachedDatabase.typeMapping.read(DriftSqlType.bool, data['${effectivePrefix}syncing'])!, + sortName: attachedDatabase.typeMapping.read(DriftSqlType.string, data['${effectivePrefix}sort_name']), + parentId: attachedDatabase.typeMapping.read(DriftSqlType.string, data['${effectivePrefix}parent_id']), + path: attachedDatabase.typeMapping.read(DriftSqlType.string, data['${effectivePrefix}path']), + fileSize: attachedDatabase.typeMapping.read(DriftSqlType.int, data['${effectivePrefix}file_size']), + videoFileName: attachedDatabase.typeMapping.read(DriftSqlType.string, data['${effectivePrefix}video_file_name']), + trickPlayModel: + attachedDatabase.typeMapping.read(DriftSqlType.string, data['${effectivePrefix}trick_play_model']), + mediaSegments: attachedDatabase.typeMapping.read(DriftSqlType.string, data['${effectivePrefix}media_segments']), + images: attachedDatabase.typeMapping.read(DriftSqlType.string, data['${effectivePrefix}images']), + chapters: attachedDatabase.typeMapping.read(DriftSqlType.string, data['${effectivePrefix}chapters']), + subtitles: attachedDatabase.typeMapping.read(DriftSqlType.string, data['${effectivePrefix}subtitles']), + unSyncedData: attachedDatabase.typeMapping.read(DriftSqlType.bool, data['${effectivePrefix}un_synced_data'])!, + userData: attachedDatabase.typeMapping.read(DriftSqlType.string, data['${effectivePrefix}user_data']), ); } @@ -338,42 +275,22 @@ class DatabaseItem extends DataClass implements Insertable { userId: Value(userId), id: Value(id), syncing: Value(syncing), - sortName: sortName == null && nullToAbsent - ? const Value.absent() - : Value(sortName), - parentId: parentId == null && nullToAbsent - ? const Value.absent() - : Value(parentId), + sortName: sortName == null && nullToAbsent ? const Value.absent() : Value(sortName), + parentId: parentId == null && nullToAbsent ? const Value.absent() : Value(parentId), path: path == null && nullToAbsent ? const Value.absent() : Value(path), - fileSize: fileSize == null && nullToAbsent - ? const Value.absent() - : Value(fileSize), - videoFileName: videoFileName == null && nullToAbsent - ? const Value.absent() - : Value(videoFileName), - trickPlayModel: trickPlayModel == null && nullToAbsent - ? const Value.absent() - : Value(trickPlayModel), - mediaSegments: mediaSegments == null && nullToAbsent - ? const Value.absent() - : Value(mediaSegments), - images: - images == null && nullToAbsent ? const Value.absent() : Value(images), - chapters: chapters == null && nullToAbsent - ? const Value.absent() - : Value(chapters), - subtitles: subtitles == null && nullToAbsent - ? const Value.absent() - : Value(subtitles), + fileSize: fileSize == null && nullToAbsent ? const Value.absent() : Value(fileSize), + videoFileName: videoFileName == null && nullToAbsent ? const Value.absent() : Value(videoFileName), + trickPlayModel: trickPlayModel == null && nullToAbsent ? const Value.absent() : Value(trickPlayModel), + mediaSegments: mediaSegments == null && nullToAbsent ? const Value.absent() : Value(mediaSegments), + images: images == null && nullToAbsent ? const Value.absent() : Value(images), + chapters: chapters == null && nullToAbsent ? const Value.absent() : Value(chapters), + subtitles: subtitles == null && nullToAbsent ? const Value.absent() : Value(subtitles), unSyncedData: Value(unSyncedData), - userData: userData == null && nullToAbsent - ? const Value.absent() - : Value(userData), + userData: userData == null && nullToAbsent ? const Value.absent() : Value(userData), ); } - factory DatabaseItem.fromJson(Map json, - {ValueSerializer? serializer}) { + factory DatabaseItem.fromJson(Map json, {ValueSerializer? serializer}) { serializer ??= driftRuntimeOptions.defaultSerializer; return DatabaseItem( userId: serializer.fromJson(json['userId']), @@ -439,12 +356,9 @@ class DatabaseItem extends DataClass implements Insertable { parentId: parentId.present ? parentId.value : this.parentId, path: path.present ? path.value : this.path, fileSize: fileSize.present ? fileSize.value : this.fileSize, - videoFileName: - videoFileName.present ? videoFileName.value : this.videoFileName, - trickPlayModel: - trickPlayModel.present ? trickPlayModel.value : this.trickPlayModel, - mediaSegments: - mediaSegments.present ? mediaSegments.value : this.mediaSegments, + videoFileName: videoFileName.present ? videoFileName.value : this.videoFileName, + trickPlayModel: trickPlayModel.present ? trickPlayModel.value : this.trickPlayModel, + mediaSegments: mediaSegments.present ? mediaSegments.value : this.mediaSegments, images: images.present ? images.value : this.images, chapters: chapters.present ? chapters.value : this.chapters, subtitles: subtitles.present ? subtitles.value : this.subtitles, @@ -460,21 +374,13 @@ class DatabaseItem extends DataClass implements Insertable { parentId: data.parentId.present ? data.parentId.value : this.parentId, path: data.path.present ? data.path.value : this.path, fileSize: data.fileSize.present ? data.fileSize.value : this.fileSize, - videoFileName: data.videoFileName.present - ? data.videoFileName.value - : this.videoFileName, - trickPlayModel: data.trickPlayModel.present - ? data.trickPlayModel.value - : this.trickPlayModel, - mediaSegments: data.mediaSegments.present - ? data.mediaSegments.value - : this.mediaSegments, + videoFileName: data.videoFileName.present ? data.videoFileName.value : this.videoFileName, + trickPlayModel: data.trickPlayModel.present ? data.trickPlayModel.value : this.trickPlayModel, + mediaSegments: data.mediaSegments.present ? data.mediaSegments.value : this.mediaSegments, images: data.images.present ? data.images.value : this.images, chapters: data.chapters.present ? data.chapters.value : this.chapters, subtitles: data.subtitles.present ? data.subtitles.value : this.subtitles, - unSyncedData: data.unSyncedData.present - ? data.unSyncedData.value - : this.unSyncedData, + unSyncedData: data.unSyncedData.present ? data.unSyncedData.value : this.unSyncedData, userData: data.userData.present ? data.userData.value : this.userData, ); } @@ -502,22 +408,8 @@ class DatabaseItem extends DataClass implements Insertable { } @override - int get hashCode => Object.hash( - userId, - id, - syncing, - sortName, - parentId, - path, - fileSize, - videoFileName, - trickPlayModel, - mediaSegments, - images, - chapters, - subtitles, - unSyncedData, - userData); + int get hashCode => Object.hash(userId, id, syncing, sortName, parentId, path, fileSize, videoFileName, + trickPlayModel, mediaSegments, images, chapters, subtitles, unSyncedData, userData); @override bool operator ==(Object other) => identical(this, other) || @@ -750,18 +642,14 @@ abstract class _$AppDatabase extends GeneratedDatabase { _$AppDatabase(QueryExecutor e) : super(e); $AppDatabaseManager get managers => $AppDatabaseManager(this); late final $DatabaseItemsTable databaseItems = $DatabaseItemsTable(this); - late final Index databaseId = Index('database_id', - 'CREATE INDEX database_id ON database_items (user_id, id)'); + late final Index databaseId = Index('database_id', 'CREATE INDEX database_id ON database_items (user_id, id)'); @override - Iterable> get allTables => - allSchemaEntities.whereType>(); + Iterable> get allTables => allSchemaEntities.whereType>(); @override - List get allSchemaEntities => - [databaseItems, databaseId]; + List get allSchemaEntities => [databaseItems, databaseId]; } -typedef $$DatabaseItemsTableCreateCompanionBuilder = DatabaseItemsCompanion - Function({ +typedef $$DatabaseItemsTableCreateCompanionBuilder = DatabaseItemsCompanion Function({ required String userId, required String id, Value syncing, @@ -779,8 +667,7 @@ typedef $$DatabaseItemsTableCreateCompanionBuilder = DatabaseItemsCompanion Value userData, Value rowid, }); -typedef $$DatabaseItemsTableUpdateCompanionBuilder = DatabaseItemsCompanion - Function({ +typedef $$DatabaseItemsTableUpdateCompanionBuilder = DatabaseItemsCompanion Function({ Value userId, Value id, Value syncing, @@ -799,8 +686,7 @@ typedef $$DatabaseItemsTableUpdateCompanionBuilder = DatabaseItemsCompanion Value rowid, }); -class $$DatabaseItemsTableFilterComposer - extends Composer<_$AppDatabase, $DatabaseItemsTable> { +class $$DatabaseItemsTableFilterComposer extends Composer<_$AppDatabase, $DatabaseItemsTable> { $$DatabaseItemsTableFilterComposer({ required super.$db, required super.$table, @@ -808,55 +694,51 @@ class $$DatabaseItemsTableFilterComposer super.$addJoinBuilderToRootComposer, super.$removeJoinBuilderFromRootComposer, }); - ColumnFilters get userId => $composableBuilder( - column: $table.userId, builder: (column) => ColumnFilters(column)); + ColumnFilters get userId => + $composableBuilder(column: $table.userId, builder: (column) => ColumnFilters(column)); - ColumnFilters get id => $composableBuilder( - column: $table.id, builder: (column) => ColumnFilters(column)); + ColumnFilters get id => $composableBuilder(column: $table.id, builder: (column) => ColumnFilters(column)); - ColumnFilters get syncing => $composableBuilder( - column: $table.syncing, builder: (column) => ColumnFilters(column)); + ColumnFilters get syncing => + $composableBuilder(column: $table.syncing, builder: (column) => ColumnFilters(column)); - ColumnFilters get sortName => $composableBuilder( - column: $table.sortName, builder: (column) => ColumnFilters(column)); + ColumnFilters get sortName => + $composableBuilder(column: $table.sortName, builder: (column) => ColumnFilters(column)); - ColumnFilters get parentId => $composableBuilder( - column: $table.parentId, builder: (column) => ColumnFilters(column)); + ColumnFilters get parentId => + $composableBuilder(column: $table.parentId, builder: (column) => ColumnFilters(column)); - ColumnFilters get path => $composableBuilder( - column: $table.path, builder: (column) => ColumnFilters(column)); + ColumnFilters get path => $composableBuilder(column: $table.path, builder: (column) => ColumnFilters(column)); - ColumnFilters get fileSize => $composableBuilder( - column: $table.fileSize, builder: (column) => ColumnFilters(column)); + ColumnFilters get fileSize => + $composableBuilder(column: $table.fileSize, builder: (column) => ColumnFilters(column)); - ColumnFilters get videoFileName => $composableBuilder( - column: $table.videoFileName, builder: (column) => ColumnFilters(column)); + ColumnFilters get videoFileName => + $composableBuilder(column: $table.videoFileName, builder: (column) => ColumnFilters(column)); - ColumnFilters get trickPlayModel => $composableBuilder( - column: $table.trickPlayModel, - builder: (column) => ColumnFilters(column)); + ColumnFilters get trickPlayModel => + $composableBuilder(column: $table.trickPlayModel, builder: (column) => ColumnFilters(column)); - ColumnFilters get mediaSegments => $composableBuilder( - column: $table.mediaSegments, builder: (column) => ColumnFilters(column)); + ColumnFilters get mediaSegments => + $composableBuilder(column: $table.mediaSegments, builder: (column) => ColumnFilters(column)); - ColumnFilters get images => $composableBuilder( - column: $table.images, builder: (column) => ColumnFilters(column)); + ColumnFilters get images => + $composableBuilder(column: $table.images, builder: (column) => ColumnFilters(column)); - ColumnFilters get chapters => $composableBuilder( - column: $table.chapters, builder: (column) => ColumnFilters(column)); + ColumnFilters get chapters => + $composableBuilder(column: $table.chapters, builder: (column) => ColumnFilters(column)); - ColumnFilters get subtitles => $composableBuilder( - column: $table.subtitles, builder: (column) => ColumnFilters(column)); + ColumnFilters get subtitles => + $composableBuilder(column: $table.subtitles, builder: (column) => ColumnFilters(column)); - ColumnFilters get unSyncedData => $composableBuilder( - column: $table.unSyncedData, builder: (column) => ColumnFilters(column)); + ColumnFilters get unSyncedData => + $composableBuilder(column: $table.unSyncedData, builder: (column) => ColumnFilters(column)); - ColumnFilters get userData => $composableBuilder( - column: $table.userData, builder: (column) => ColumnFilters(column)); + ColumnFilters get userData => + $composableBuilder(column: $table.userData, builder: (column) => ColumnFilters(column)); } -class $$DatabaseItemsTableOrderingComposer - extends Composer<_$AppDatabase, $DatabaseItemsTable> { +class $$DatabaseItemsTableOrderingComposer extends Composer<_$AppDatabase, $DatabaseItemsTable> { $$DatabaseItemsTableOrderingComposer({ required super.$db, required super.$table, @@ -864,58 +746,52 @@ class $$DatabaseItemsTableOrderingComposer super.$addJoinBuilderToRootComposer, super.$removeJoinBuilderFromRootComposer, }); - ColumnOrderings get userId => $composableBuilder( - column: $table.userId, builder: (column) => ColumnOrderings(column)); + ColumnOrderings get userId => + $composableBuilder(column: $table.userId, builder: (column) => ColumnOrderings(column)); - ColumnOrderings get id => $composableBuilder( - column: $table.id, builder: (column) => ColumnOrderings(column)); + ColumnOrderings get id => $composableBuilder(column: $table.id, builder: (column) => ColumnOrderings(column)); - ColumnOrderings get syncing => $composableBuilder( - column: $table.syncing, builder: (column) => ColumnOrderings(column)); + ColumnOrderings get syncing => + $composableBuilder(column: $table.syncing, builder: (column) => ColumnOrderings(column)); - ColumnOrderings get sortName => $composableBuilder( - column: $table.sortName, builder: (column) => ColumnOrderings(column)); + ColumnOrderings get sortName => + $composableBuilder(column: $table.sortName, builder: (column) => ColumnOrderings(column)); - ColumnOrderings get parentId => $composableBuilder( - column: $table.parentId, builder: (column) => ColumnOrderings(column)); + ColumnOrderings get parentId => + $composableBuilder(column: $table.parentId, builder: (column) => ColumnOrderings(column)); - ColumnOrderings get path => $composableBuilder( - column: $table.path, builder: (column) => ColumnOrderings(column)); + ColumnOrderings get path => + $composableBuilder(column: $table.path, builder: (column) => ColumnOrderings(column)); - ColumnOrderings get fileSize => $composableBuilder( - column: $table.fileSize, builder: (column) => ColumnOrderings(column)); + ColumnOrderings get fileSize => + $composableBuilder(column: $table.fileSize, builder: (column) => ColumnOrderings(column)); - ColumnOrderings get videoFileName => $composableBuilder( - column: $table.videoFileName, - builder: (column) => ColumnOrderings(column)); + ColumnOrderings get videoFileName => + $composableBuilder(column: $table.videoFileName, builder: (column) => ColumnOrderings(column)); - ColumnOrderings get trickPlayModel => $composableBuilder( - column: $table.trickPlayModel, - builder: (column) => ColumnOrderings(column)); + ColumnOrderings get trickPlayModel => + $composableBuilder(column: $table.trickPlayModel, builder: (column) => ColumnOrderings(column)); - ColumnOrderings get mediaSegments => $composableBuilder( - column: $table.mediaSegments, - builder: (column) => ColumnOrderings(column)); + ColumnOrderings get mediaSegments => + $composableBuilder(column: $table.mediaSegments, builder: (column) => ColumnOrderings(column)); - ColumnOrderings get images => $composableBuilder( - column: $table.images, builder: (column) => ColumnOrderings(column)); + ColumnOrderings get images => + $composableBuilder(column: $table.images, builder: (column) => ColumnOrderings(column)); - ColumnOrderings get chapters => $composableBuilder( - column: $table.chapters, builder: (column) => ColumnOrderings(column)); + ColumnOrderings get chapters => + $composableBuilder(column: $table.chapters, builder: (column) => ColumnOrderings(column)); - ColumnOrderings get subtitles => $composableBuilder( - column: $table.subtitles, builder: (column) => ColumnOrderings(column)); + ColumnOrderings get subtitles => + $composableBuilder(column: $table.subtitles, builder: (column) => ColumnOrderings(column)); - ColumnOrderings get unSyncedData => $composableBuilder( - column: $table.unSyncedData, - builder: (column) => ColumnOrderings(column)); + ColumnOrderings get unSyncedData => + $composableBuilder(column: $table.unSyncedData, builder: (column) => ColumnOrderings(column)); - ColumnOrderings get userData => $composableBuilder( - column: $table.userData, builder: (column) => ColumnOrderings(column)); + ColumnOrderings get userData => + $composableBuilder(column: $table.userData, builder: (column) => ColumnOrderings(column)); } -class $$DatabaseItemsTableAnnotationComposer - extends Composer<_$AppDatabase, $DatabaseItemsTable> { +class $$DatabaseItemsTableAnnotationComposer extends Composer<_$AppDatabase, $DatabaseItemsTable> { $$DatabaseItemsTableAnnotationComposer({ required super.$db, required super.$table, @@ -923,50 +799,39 @@ class $$DatabaseItemsTableAnnotationComposer super.$addJoinBuilderToRootComposer, super.$removeJoinBuilderFromRootComposer, }); - GeneratedColumn get userId => - $composableBuilder(column: $table.userId, builder: (column) => column); + GeneratedColumn get userId => $composableBuilder(column: $table.userId, builder: (column) => column); - GeneratedColumn get id => - $composableBuilder(column: $table.id, builder: (column) => column); + GeneratedColumn get id => $composableBuilder(column: $table.id, builder: (column) => column); - GeneratedColumn get syncing => - $composableBuilder(column: $table.syncing, builder: (column) => column); + GeneratedColumn get syncing => $composableBuilder(column: $table.syncing, builder: (column) => column); - GeneratedColumn get sortName => - $composableBuilder(column: $table.sortName, builder: (column) => column); + GeneratedColumn get sortName => $composableBuilder(column: $table.sortName, builder: (column) => column); - GeneratedColumn get parentId => - $composableBuilder(column: $table.parentId, builder: (column) => column); + GeneratedColumn get parentId => $composableBuilder(column: $table.parentId, builder: (column) => column); - GeneratedColumn get path => - $composableBuilder(column: $table.path, builder: (column) => column); + GeneratedColumn get path => $composableBuilder(column: $table.path, builder: (column) => column); - GeneratedColumn get fileSize => - $composableBuilder(column: $table.fileSize, builder: (column) => column); + GeneratedColumn get fileSize => $composableBuilder(column: $table.fileSize, builder: (column) => column); - GeneratedColumn get videoFileName => $composableBuilder( - column: $table.videoFileName, builder: (column) => column); + GeneratedColumn get videoFileName => + $composableBuilder(column: $table.videoFileName, builder: (column) => column); - GeneratedColumn get trickPlayModel => $composableBuilder( - column: $table.trickPlayModel, builder: (column) => column); + GeneratedColumn get trickPlayModel => + $composableBuilder(column: $table.trickPlayModel, builder: (column) => column); - GeneratedColumn get mediaSegments => $composableBuilder( - column: $table.mediaSegments, builder: (column) => column); + GeneratedColumn get mediaSegments => + $composableBuilder(column: $table.mediaSegments, builder: (column) => column); - GeneratedColumn get images => - $composableBuilder(column: $table.images, builder: (column) => column); + GeneratedColumn get images => $composableBuilder(column: $table.images, builder: (column) => column); - GeneratedColumn get chapters => - $composableBuilder(column: $table.chapters, builder: (column) => column); + GeneratedColumn get chapters => $composableBuilder(column: $table.chapters, builder: (column) => column); - GeneratedColumn get subtitles => - $composableBuilder(column: $table.subtitles, builder: (column) => column); + GeneratedColumn get subtitles => $composableBuilder(column: $table.subtitles, builder: (column) => column); - GeneratedColumn get unSyncedData => $composableBuilder( - column: $table.unSyncedData, builder: (column) => column); + GeneratedColumn get unSyncedData => + $composableBuilder(column: $table.unSyncedData, builder: (column) => column); - GeneratedColumn get userData => - $composableBuilder(column: $table.userData, builder: (column) => column); + GeneratedColumn get userData => $composableBuilder(column: $table.userData, builder: (column) => column); } class $$DatabaseItemsTableTableManager extends RootTableManager< @@ -978,22 +843,16 @@ class $$DatabaseItemsTableTableManager extends RootTableManager< $$DatabaseItemsTableAnnotationComposer, $$DatabaseItemsTableCreateCompanionBuilder, $$DatabaseItemsTableUpdateCompanionBuilder, - ( - DatabaseItem, - BaseReferences<_$AppDatabase, $DatabaseItemsTable, DatabaseItem> - ), + (DatabaseItem, BaseReferences<_$AppDatabase, $DatabaseItemsTable, DatabaseItem>), DatabaseItem, PrefetchHooks Function()> { $$DatabaseItemsTableTableManager(_$AppDatabase db, $DatabaseItemsTable table) : super(TableManagerState( db: db, table: table, - createFilteringComposer: () => - $$DatabaseItemsTableFilterComposer($db: db, $table: table), - createOrderingComposer: () => - $$DatabaseItemsTableOrderingComposer($db: db, $table: table), - createComputedFieldComposer: () => - $$DatabaseItemsTableAnnotationComposer($db: db, $table: table), + createFilteringComposer: () => $$DatabaseItemsTableFilterComposer($db: db, $table: table), + createOrderingComposer: () => $$DatabaseItemsTableOrderingComposer($db: db, $table: table), + createComputedFieldComposer: () => $$DatabaseItemsTableAnnotationComposer($db: db, $table: table), updateCompanionCallback: ({ Value userId = const Value.absent(), Value id = const Value.absent(), @@ -1066,9 +925,7 @@ class $$DatabaseItemsTableTableManager extends RootTableManager< userData: userData, rowid: rowid, ), - withReferenceMapper: (p0) => p0 - .map((e) => (e.readTable(table), BaseReferences(db, table, e))) - .toList(), + withReferenceMapper: (p0) => p0.map((e) => (e.readTable(table), BaseReferences(db, table, e))).toList(), prefetchHooksCallback: null, )); } @@ -1082,16 +939,12 @@ typedef $$DatabaseItemsTableProcessedTableManager = ProcessedTableManager< $$DatabaseItemsTableAnnotationComposer, $$DatabaseItemsTableCreateCompanionBuilder, $$DatabaseItemsTableUpdateCompanionBuilder, - ( - DatabaseItem, - BaseReferences<_$AppDatabase, $DatabaseItemsTable, DatabaseItem> - ), + (DatabaseItem, BaseReferences<_$AppDatabase, $DatabaseItemsTable, DatabaseItem>), DatabaseItem, PrefetchHooks Function()>; class $AppDatabaseManager { final _$AppDatabase _db; $AppDatabaseManager(this._db); - $$DatabaseItemsTableTableManager get databaseItems => - $$DatabaseItemsTableTableManager(_db, _db.databaseItems); + $$DatabaseItemsTableTableManager get databaseItems => $$DatabaseItemsTableTableManager(_db, _db.databaseItems); } diff --git a/lib/models/syncing/sync_item.freezed.dart b/lib/models/syncing/sync_item.freezed.dart index 57064b20a..7de769dab 100644 --- a/lib/models/syncing/sync_item.freezed.dart +++ b/lib/models/syncing/sync_item.freezed.dart @@ -38,8 +38,7 @@ mixin _$SyncedItem { /// with the given fields replaced by the non-null parameter values. @JsonKey(includeFromJson: false, includeToJson: false) @pragma('vm:prefer-inline') - $SyncedItemCopyWith get copyWith => - _$SyncedItemCopyWithImpl(this as SyncedItem, _$identity); + $SyncedItemCopyWith get copyWith => _$SyncedItemCopyWithImpl(this as SyncedItem, _$identity); @override String toString() { @@ -49,9 +48,7 @@ mixin _$SyncedItem { /// @nodoc abstract mixin class $SyncedItemCopyWith<$Res> { - factory $SyncedItemCopyWith( - SyncedItem value, $Res Function(SyncedItem) _then) = - _$SyncedItemCopyWithImpl; + factory $SyncedItemCopyWith(SyncedItem value, $Res Function(SyncedItem) _then) = _$SyncedItemCopyWithImpl; @useResult $Res call( {String id, @@ -70,8 +67,7 @@ abstract mixin class $SyncedItemCopyWith<$Res> { List subtitles, bool unSyncedData, @UserDataJsonSerializer() UserData? userData, - @JsonKey(includeFromJson: false, includeToJson: false) - ItemBaseModel? itemModel}); + @JsonKey(includeFromJson: false, includeToJson: false) ItemBaseModel? itemModel}); $TrickPlayModelCopyWith<$Res>? get fTrickPlayModel; } @@ -303,8 +299,7 @@ extension SyncedItemPatterns on SyncedItem { List subtitles, bool unSyncedData, @UserDataJsonSerializer() UserData? userData, - @JsonKey(includeFromJson: false, includeToJson: false) - ItemBaseModel? itemModel)? + @JsonKey(includeFromJson: false, includeToJson: false) ItemBaseModel? itemModel)? $default, { required TResult orElse(), }) { @@ -366,8 +361,7 @@ extension SyncedItemPatterns on SyncedItem { List subtitles, bool unSyncedData, @UserDataJsonSerializer() UserData? userData, - @JsonKey(includeFromJson: false, includeToJson: false) - ItemBaseModel? itemModel) + @JsonKey(includeFromJson: false, includeToJson: false) ItemBaseModel? itemModel) $default, ) { final _that = this; @@ -427,8 +421,7 @@ extension SyncedItemPatterns on SyncedItem { List subtitles, bool unSyncedData, @UserDataJsonSerializer() UserData? userData, - @JsonKey(includeFromJson: false, includeToJson: false) - ItemBaseModel? itemModel)? + @JsonKey(includeFromJson: false, includeToJson: false) ItemBaseModel? itemModel)? $default, ) { final _that = this; @@ -543,8 +536,7 @@ class _SyncItem extends SyncedItem { @override @JsonKey(includeFromJson: false, includeToJson: false) @pragma('vm:prefer-inline') - _$SyncItemCopyWith<_SyncItem> get copyWith => - __$SyncItemCopyWithImpl<_SyncItem>(this, _$identity); + _$SyncItemCopyWith<_SyncItem> get copyWith => __$SyncItemCopyWithImpl<_SyncItem>(this, _$identity); @override String toString() { @@ -553,10 +545,8 @@ class _SyncItem extends SyncedItem { } /// @nodoc -abstract mixin class _$SyncItemCopyWith<$Res> - implements $SyncedItemCopyWith<$Res> { - factory _$SyncItemCopyWith(_SyncItem value, $Res Function(_SyncItem) _then) = - __$SyncItemCopyWithImpl; +abstract mixin class _$SyncItemCopyWith<$Res> implements $SyncedItemCopyWith<$Res> { + factory _$SyncItemCopyWith(_SyncItem value, $Res Function(_SyncItem) _then) = __$SyncItemCopyWithImpl; @override @useResult $Res call( @@ -576,8 +566,7 @@ abstract mixin class _$SyncItemCopyWith<$Res> List subtitles, bool unSyncedData, @UserDataJsonSerializer() UserData? userData, - @JsonKey(includeFromJson: false, includeToJson: false) - ItemBaseModel? itemModel}); + @JsonKey(includeFromJson: false, includeToJson: false) ItemBaseModel? itemModel}); @override $TrickPlayModelCopyWith<$Res>? get fTrickPlayModel; diff --git a/lib/models/syncing/sync_settings_model.freezed.dart b/lib/models/syncing/sync_settings_model.freezed.dart index b70eeca18..902cc4cb3 100644 --- a/lib/models/syncing/sync_settings_model.freezed.dart +++ b/lib/models/syncing/sync_settings_model.freezed.dart @@ -21,8 +21,7 @@ mixin _$SyncSettingsModel { @JsonKey(includeFromJson: false, includeToJson: false) @pragma('vm:prefer-inline') $SyncSettingsModelCopyWith get copyWith => - _$SyncSettingsModelCopyWithImpl( - this as SyncSettingsModel, _$identity); + _$SyncSettingsModelCopyWithImpl(this as SyncSettingsModel, _$identity); @override String toString() { @@ -32,16 +31,14 @@ mixin _$SyncSettingsModel { /// @nodoc abstract mixin class $SyncSettingsModelCopyWith<$Res> { - factory $SyncSettingsModelCopyWith( - SyncSettingsModel value, $Res Function(SyncSettingsModel) _then) = + factory $SyncSettingsModelCopyWith(SyncSettingsModel value, $Res Function(SyncSettingsModel) _then) = _$SyncSettingsModelCopyWithImpl; @useResult $Res call({List items}); } /// @nodoc -class _$SyncSettingsModelCopyWithImpl<$Res> - implements $SyncSettingsModelCopyWith<$Res> { +class _$SyncSettingsModelCopyWithImpl<$Res> implements $SyncSettingsModelCopyWith<$Res> { _$SyncSettingsModelCopyWithImpl(this._self, this._then); final SyncSettingsModel _self; @@ -251,10 +248,8 @@ class _SyncSettignsModel extends SyncSettingsModel { } /// @nodoc -abstract mixin class _$SyncSettignsModelCopyWith<$Res> - implements $SyncSettingsModelCopyWith<$Res> { - factory _$SyncSettignsModelCopyWith( - _SyncSettignsModel value, $Res Function(_SyncSettignsModel) _then) = +abstract mixin class _$SyncSettignsModelCopyWith<$Res> implements $SyncSettingsModelCopyWith<$Res> { + factory _$SyncSettignsModelCopyWith(_SyncSettignsModel value, $Res Function(_SyncSettignsModel) _then) = __$SyncSettignsModelCopyWithImpl; @override @useResult @@ -262,8 +257,7 @@ abstract mixin class _$SyncSettignsModelCopyWith<$Res> } /// @nodoc -class __$SyncSettignsModelCopyWithImpl<$Res> - implements _$SyncSettignsModelCopyWith<$Res> { +class __$SyncSettignsModelCopyWithImpl<$Res> implements _$SyncSettignsModelCopyWith<$Res> { __$SyncSettignsModelCopyWithImpl(this._self, this._then); final _SyncSettignsModel _self; diff --git a/lib/models/syncplay/syncplay_models.dart b/lib/models/syncplay/syncplay_models.dart index a98d99731..13e9016ae 100644 --- a/lib/models/syncplay/syncplay_models.dart +++ b/lib/models/syncplay/syncplay_models.dart @@ -64,8 +64,10 @@ abstract class SyncPlayState with _$SyncPlayState { String? playlistItemId, @Default(0) int positionTicks, DateTime? lastCommandTime, + /// Whether a SyncPlay command is currently being processed @Default(false) bool isProcessingCommand, + /// The type of command being processed (for UI feedback) String? processingCommandType, }) = _SyncPlayState; diff --git a/lib/models/syncplay/syncplay_models.freezed.dart b/lib/models/syncplay/syncplay_models.freezed.dart index 91b8a611a..28b0c5130 100644 --- a/lib/models/syncplay/syncplay_models.freezed.dart +++ b/lib/models/syncplay/syncplay_models.freezed.dart @@ -24,8 +24,7 @@ mixin _$TimeSyncMeasurement { @JsonKey(includeFromJson: false, includeToJson: false) @pragma('vm:prefer-inline') $TimeSyncMeasurementCopyWith get copyWith => - _$TimeSyncMeasurementCopyWithImpl( - this as TimeSyncMeasurement, _$identity); + _$TimeSyncMeasurementCopyWithImpl(this as TimeSyncMeasurement, _$identity); @override String toString() { @@ -35,20 +34,14 @@ mixin _$TimeSyncMeasurement { /// @nodoc abstract mixin class $TimeSyncMeasurementCopyWith<$Res> { - factory $TimeSyncMeasurementCopyWith( - TimeSyncMeasurement value, $Res Function(TimeSyncMeasurement) _then) = + factory $TimeSyncMeasurementCopyWith(TimeSyncMeasurement value, $Res Function(TimeSyncMeasurement) _then) = _$TimeSyncMeasurementCopyWithImpl; @useResult - $Res call( - {DateTime requestSent, - DateTime requestReceived, - DateTime responseSent, - DateTime responseReceived}); + $Res call({DateTime requestSent, DateTime requestReceived, DateTime responseSent, DateTime responseReceived}); } /// @nodoc -class _$TimeSyncMeasurementCopyWithImpl<$Res> - implements $TimeSyncMeasurementCopyWith<$Res> { +class _$TimeSyncMeasurementCopyWithImpl<$Res> implements $TimeSyncMeasurementCopyWith<$Res> { _$TimeSyncMeasurementCopyWithImpl(this._self, this._then); final TimeSyncMeasurement _self; @@ -178,16 +171,14 @@ extension TimeSyncMeasurementPatterns on TimeSyncMeasurement { @optionalTypeArgs TResult maybeWhen( - TResult Function(DateTime requestSent, DateTime requestReceived, - DateTime responseSent, DateTime responseReceived)? + TResult Function(DateTime requestSent, DateTime requestReceived, DateTime responseSent, DateTime responseReceived)? $default, { required TResult orElse(), }) { final _that = this; switch (_that) { case _TimeSyncMeasurement() when $default != null: - return $default(_that.requestSent, _that.requestReceived, - _that.responseSent, _that.responseReceived); + return $default(_that.requestSent, _that.requestReceived, _that.responseSent, _that.responseReceived); case _: return orElse(); } @@ -208,15 +199,13 @@ extension TimeSyncMeasurementPatterns on TimeSyncMeasurement { @optionalTypeArgs TResult when( - TResult Function(DateTime requestSent, DateTime requestReceived, - DateTime responseSent, DateTime responseReceived) + TResult Function(DateTime requestSent, DateTime requestReceived, DateTime responseSent, DateTime responseReceived) $default, ) { final _that = this; switch (_that) { case _TimeSyncMeasurement(): - return $default(_that.requestSent, _that.requestReceived, - _that.responseSent, _that.responseReceived); + return $default(_that.requestSent, _that.requestReceived, _that.responseSent, _that.responseReceived); case _: throw StateError('Unexpected subclass'); } @@ -236,15 +225,13 @@ extension TimeSyncMeasurementPatterns on TimeSyncMeasurement { @optionalTypeArgs TResult? whenOrNull( - TResult? Function(DateTime requestSent, DateTime requestReceived, - DateTime responseSent, DateTime responseReceived)? + TResult? Function(DateTime requestSent, DateTime requestReceived, DateTime responseSent, DateTime responseReceived)? $default, ) { final _that = this; switch (_that) { case _TimeSyncMeasurement() when $default != null: - return $default(_that.requestSent, _that.requestReceived, - _that.responseSent, _that.responseReceived); + return $default(_that.requestSent, _that.requestReceived, _that.responseSent, _that.responseReceived); case _: return null; } @@ -276,8 +263,7 @@ class _TimeSyncMeasurement extends TimeSyncMeasurement { @JsonKey(includeFromJson: false, includeToJson: false) @pragma('vm:prefer-inline') _$TimeSyncMeasurementCopyWith<_TimeSyncMeasurement> get copyWith => - __$TimeSyncMeasurementCopyWithImpl<_TimeSyncMeasurement>( - this, _$identity); + __$TimeSyncMeasurementCopyWithImpl<_TimeSyncMeasurement>(this, _$identity); @override String toString() { @@ -286,23 +272,16 @@ class _TimeSyncMeasurement extends TimeSyncMeasurement { } /// @nodoc -abstract mixin class _$TimeSyncMeasurementCopyWith<$Res> - implements $TimeSyncMeasurementCopyWith<$Res> { - factory _$TimeSyncMeasurementCopyWith(_TimeSyncMeasurement value, - $Res Function(_TimeSyncMeasurement) _then) = +abstract mixin class _$TimeSyncMeasurementCopyWith<$Res> implements $TimeSyncMeasurementCopyWith<$Res> { + factory _$TimeSyncMeasurementCopyWith(_TimeSyncMeasurement value, $Res Function(_TimeSyncMeasurement) _then) = __$TimeSyncMeasurementCopyWithImpl; @override @useResult - $Res call( - {DateTime requestSent, - DateTime requestReceived, - DateTime responseSent, - DateTime responseReceived}); + $Res call({DateTime requestSent, DateTime requestReceived, DateTime responseSent, DateTime responseReceived}); } /// @nodoc -class __$TimeSyncMeasurementCopyWithImpl<$Res> - implements _$TimeSyncMeasurementCopyWith<$Res> { +class __$TimeSyncMeasurementCopyWithImpl<$Res> implements _$TimeSyncMeasurementCopyWith<$Res> { __$TimeSyncMeasurementCopyWithImpl(this._self, this._then); final _TimeSyncMeasurement _self; @@ -364,8 +343,7 @@ mixin _$SyncPlayState { @JsonKey(includeFromJson: false, includeToJson: false) @pragma('vm:prefer-inline') $SyncPlayStateCopyWith get copyWith => - _$SyncPlayStateCopyWithImpl( - this as SyncPlayState, _$identity); + _$SyncPlayStateCopyWithImpl(this as SyncPlayState, _$identity); @override String toString() { @@ -375,9 +353,7 @@ mixin _$SyncPlayState { /// @nodoc abstract mixin class $SyncPlayStateCopyWith<$Res> { - factory $SyncPlayStateCopyWith( - SyncPlayState value, $Res Function(SyncPlayState) _then) = - _$SyncPlayStateCopyWithImpl; + factory $SyncPlayStateCopyWith(SyncPlayState value, $Res Function(SyncPlayState) _then) = _$SyncPlayStateCopyWithImpl; @useResult $Res call( {bool isConnected, @@ -396,8 +372,7 @@ abstract mixin class $SyncPlayStateCopyWith<$Res> { } /// @nodoc -class _$SyncPlayStateCopyWithImpl<$Res> - implements $SyncPlayStateCopyWith<$Res> { +class _$SyncPlayStateCopyWithImpl<$Res> implements $SyncPlayStateCopyWith<$Res> { _$SyncPlayStateCopyWithImpl(this._self, this._then); final SyncPlayState _self; @@ -795,10 +770,8 @@ class _SyncPlayState extends SyncPlayState { } /// @nodoc -abstract mixin class _$SyncPlayStateCopyWith<$Res> - implements $SyncPlayStateCopyWith<$Res> { - factory _$SyncPlayStateCopyWith( - _SyncPlayState value, $Res Function(_SyncPlayState) _then) = +abstract mixin class _$SyncPlayStateCopyWith<$Res> implements $SyncPlayStateCopyWith<$Res> { + factory _$SyncPlayStateCopyWith(_SyncPlayState value, $Res Function(_SyncPlayState) _then) = __$SyncPlayStateCopyWithImpl; @override @useResult @@ -819,8 +792,7 @@ abstract mixin class _$SyncPlayStateCopyWith<$Res> } /// @nodoc -class __$SyncPlayStateCopyWithImpl<$Res> - implements _$SyncPlayStateCopyWith<$Res> { +class __$SyncPlayStateCopyWithImpl<$Res> implements _$SyncPlayStateCopyWith<$Res> { __$SyncPlayStateCopyWithImpl(this._self, this._then); final _SyncPlayState _self; @@ -914,8 +886,7 @@ mixin _$LastSyncPlayCommand { @JsonKey(includeFromJson: false, includeToJson: false) @pragma('vm:prefer-inline') $LastSyncPlayCommandCopyWith get copyWith => - _$LastSyncPlayCommandCopyWithImpl( - this as LastSyncPlayCommand, _$identity); + _$LastSyncPlayCommandCopyWithImpl(this as LastSyncPlayCommand, _$identity); @override String toString() { @@ -925,17 +896,14 @@ mixin _$LastSyncPlayCommand { /// @nodoc abstract mixin class $LastSyncPlayCommandCopyWith<$Res> { - factory $LastSyncPlayCommandCopyWith( - LastSyncPlayCommand value, $Res Function(LastSyncPlayCommand) _then) = + factory $LastSyncPlayCommandCopyWith(LastSyncPlayCommand value, $Res Function(LastSyncPlayCommand) _then) = _$LastSyncPlayCommandCopyWithImpl; @useResult - $Res call( - {String when, int positionTicks, String command, String playlistItemId}); + $Res call({String when, int positionTicks, String command, String playlistItemId}); } /// @nodoc -class _$LastSyncPlayCommandCopyWithImpl<$Res> - implements $LastSyncPlayCommandCopyWith<$Res> { +class _$LastSyncPlayCommandCopyWithImpl<$Res> implements $LastSyncPlayCommandCopyWith<$Res> { _$LastSyncPlayCommandCopyWithImpl(this._self, this._then); final LastSyncPlayCommand _self; @@ -1065,16 +1033,13 @@ extension LastSyncPlayCommandPatterns on LastSyncPlayCommand { @optionalTypeArgs TResult maybeWhen( - TResult Function(String when, int positionTicks, String command, - String playlistItemId)? - $default, { + TResult Function(String when, int positionTicks, String command, String playlistItemId)? $default, { required TResult orElse(), }) { final _that = this; switch (_that) { case _LastSyncPlayCommand() when $default != null: - return $default(_that.when, _that.positionTicks, _that.command, - _that.playlistItemId); + return $default(_that.when, _that.positionTicks, _that.command, _that.playlistItemId); case _: return orElse(); } @@ -1095,15 +1060,12 @@ extension LastSyncPlayCommandPatterns on LastSyncPlayCommand { @optionalTypeArgs TResult when( - TResult Function(String when, int positionTicks, String command, - String playlistItemId) - $default, + TResult Function(String when, int positionTicks, String command, String playlistItemId) $default, ) { final _that = this; switch (_that) { case _LastSyncPlayCommand(): - return $default(_that.when, _that.positionTicks, _that.command, - _that.playlistItemId); + return $default(_that.when, _that.positionTicks, _that.command, _that.playlistItemId); case _: throw StateError('Unexpected subclass'); } @@ -1123,15 +1085,12 @@ extension LastSyncPlayCommandPatterns on LastSyncPlayCommand { @optionalTypeArgs TResult? whenOrNull( - TResult? Function(String when, int positionTicks, String command, - String playlistItemId)? - $default, + TResult? Function(String when, int positionTicks, String command, String playlistItemId)? $default, ) { final _that = this; switch (_that) { case _LastSyncPlayCommand() when $default != null: - return $default(_that.when, _that.positionTicks, _that.command, - _that.playlistItemId); + return $default(_that.when, _that.positionTicks, _that.command, _that.playlistItemId); case _: return null; } @@ -1142,10 +1101,7 @@ extension LastSyncPlayCommandPatterns on LastSyncPlayCommand { class _LastSyncPlayCommand implements LastSyncPlayCommand { _LastSyncPlayCommand( - {required this.when, - required this.positionTicks, - required this.command, - required this.playlistItemId}); + {required this.when, required this.positionTicks, required this.command, required this.playlistItemId}); @override final String when; @@ -1162,8 +1118,7 @@ class _LastSyncPlayCommand implements LastSyncPlayCommand { @JsonKey(includeFromJson: false, includeToJson: false) @pragma('vm:prefer-inline') _$LastSyncPlayCommandCopyWith<_LastSyncPlayCommand> get copyWith => - __$LastSyncPlayCommandCopyWithImpl<_LastSyncPlayCommand>( - this, _$identity); + __$LastSyncPlayCommandCopyWithImpl<_LastSyncPlayCommand>(this, _$identity); @override String toString() { @@ -1172,20 +1127,16 @@ class _LastSyncPlayCommand implements LastSyncPlayCommand { } /// @nodoc -abstract mixin class _$LastSyncPlayCommandCopyWith<$Res> - implements $LastSyncPlayCommandCopyWith<$Res> { - factory _$LastSyncPlayCommandCopyWith(_LastSyncPlayCommand value, - $Res Function(_LastSyncPlayCommand) _then) = +abstract mixin class _$LastSyncPlayCommandCopyWith<$Res> implements $LastSyncPlayCommandCopyWith<$Res> { + factory _$LastSyncPlayCommandCopyWith(_LastSyncPlayCommand value, $Res Function(_LastSyncPlayCommand) _then) = __$LastSyncPlayCommandCopyWithImpl; @override @useResult - $Res call( - {String when, int positionTicks, String command, String playlistItemId}); + $Res call({String when, int positionTicks, String command, String playlistItemId}); } /// @nodoc -class __$LastSyncPlayCommandCopyWithImpl<$Res> - implements _$LastSyncPlayCommandCopyWith<$Res> { +class __$LastSyncPlayCommandCopyWithImpl<$Res> implements _$LastSyncPlayCommandCopyWith<$Res> { __$LastSyncPlayCommandCopyWithImpl(this._self, this._then); final _LastSyncPlayCommand _self; diff --git a/lib/providers/api_provider.g.dart b/lib/providers/api_provider.g.dart index dd4988991..709646cdc 100644 --- a/lib/providers/api_provider.g.dart +++ b/lib/providers/api_provider.g.dart @@ -10,12 +10,10 @@ String _$jellyApiHash() => r'9bc824d28d17f88f40c768cefb637144e0fbf346'; /// See also [JellyApi]. @ProviderFor(JellyApi) -final jellyApiProvider = - AutoDisposeNotifierProvider.internal( +final jellyApiProvider = AutoDisposeNotifierProvider.internal( JellyApi.new, name: r'jellyApiProvider', - debugGetCreateSourceHash: - const bool.fromEnvironment('dart.vm.product') ? null : _$jellyApiHash, + debugGetCreateSourceHash: const bool.fromEnvironment('dart.vm.product') ? null : _$jellyApiHash, dependencies: null, allTransitiveDependencies: null, ); diff --git a/lib/providers/connectivity_provider.g.dart b/lib/providers/connectivity_provider.g.dart index d44f52b38..330a708de 100644 --- a/lib/providers/connectivity_provider.g.dart +++ b/lib/providers/connectivity_provider.g.dart @@ -6,18 +6,14 @@ part of 'connectivity_provider.dart'; // RiverpodGenerator // ************************************************************************** -String _$connectivityStatusHash() => - r'52306e5e6a94bafdcb98d63e6fd5c7fe9c2a5bd7'; +String _$connectivityStatusHash() => r'52306e5e6a94bafdcb98d63e6fd5c7fe9c2a5bd7'; /// See also [ConnectivityStatus]. @ProviderFor(ConnectivityStatus) -final connectivityStatusProvider = - NotifierProvider.internal( +final connectivityStatusProvider = NotifierProvider.internal( ConnectivityStatus.new, name: r'connectivityStatusProvider', - debugGetCreateSourceHash: const bool.fromEnvironment('dart.vm.product') - ? null - : _$connectivityStatusHash, + debugGetCreateSourceHash: const bool.fromEnvironment('dart.vm.product') ? null : _$connectivityStatusHash, dependencies: null, allTransitiveDependencies: null, ); diff --git a/lib/providers/control_panel/control_active_tasks_provider.g.dart b/lib/providers/control_panel/control_active_tasks_provider.g.dart index dececcfa0..bad7af0ec 100644 --- a/lib/providers/control_panel/control_active_tasks_provider.g.dart +++ b/lib/providers/control_panel/control_active_tasks_provider.g.dart @@ -6,18 +6,14 @@ part of 'control_active_tasks_provider.dart'; // RiverpodGenerator // ************************************************************************** -String _$controlActiveTasksHash() => - r'afe69c1b45a2b1492d99f539fe8322d2c891942a'; +String _$controlActiveTasksHash() => r'afe69c1b45a2b1492d99f539fe8322d2c891942a'; /// See also [ControlActiveTasks]. @ProviderFor(ControlActiveTasks) -final controlActiveTasksProvider = - AutoDisposeNotifierProvider>.internal( +final controlActiveTasksProvider = AutoDisposeNotifierProvider>.internal( ControlActiveTasks.new, name: r'controlActiveTasksProvider', - debugGetCreateSourceHash: const bool.fromEnvironment('dart.vm.product') - ? null - : _$controlActiveTasksHash, + debugGetCreateSourceHash: const bool.fromEnvironment('dart.vm.product') ? null : _$controlActiveTasksHash, dependencies: null, allTransitiveDependencies: null, ); diff --git a/lib/providers/control_panel/control_activity_provider.freezed.dart b/lib/providers/control_panel/control_activity_provider.freezed.dart index 9c354f02a..7556a53fd 100644 --- a/lib/providers/control_panel/control_activity_provider.freezed.dart +++ b/lib/providers/control_panel/control_activity_provider.freezed.dart @@ -29,8 +29,7 @@ mixin _$ControlActivityModel { @JsonKey(includeFromJson: false, includeToJson: false) @pragma('vm:prefer-inline') $ControlActivityModelCopyWith get copyWith => - _$ControlActivityModelCopyWithImpl( - this as ControlActivityModel, _$identity); + _$ControlActivityModelCopyWithImpl(this as ControlActivityModel, _$identity); @override String toString() { @@ -40,8 +39,7 @@ mixin _$ControlActivityModel { /// @nodoc abstract mixin class $ControlActivityModelCopyWith<$Res> { - factory $ControlActivityModelCopyWith(ControlActivityModel value, - $Res Function(ControlActivityModel) _then) = + factory $ControlActivityModelCopyWith(ControlActivityModel value, $Res Function(ControlActivityModel) _then) = _$ControlActivityModelCopyWithImpl; @useResult $Res call( @@ -61,8 +59,7 @@ abstract mixin class $ControlActivityModelCopyWith<$Res> { } /// @nodoc -class _$ControlActivityModelCopyWithImpl<$Res> - implements $ControlActivityModelCopyWith<$Res> { +class _$ControlActivityModelCopyWithImpl<$Res> implements $ControlActivityModelCopyWith<$Res> { _$ControlActivityModelCopyWithImpl(this._self, this._then); final ControlActivityModel _self; @@ -275,16 +272,8 @@ extension ControlActivityModelPatterns on ControlActivityModel { final _that = this; switch (_that) { case _ControlActivityModel() when $default != null: - return $default( - _that.user, - _that.deviceName, - _that.client, - _that.applicationVersion, - _that.activityType, - _that.nowPlayingItem, - _that.trickPlay, - _that.playState, - _that.lastActivityDate); + return $default(_that.user, _that.deviceName, _that.client, _that.applicationVersion, _that.activityType, + _that.nowPlayingItem, _that.trickPlay, _that.playState, _that.lastActivityDate); case _: return orElse(); } @@ -320,16 +309,8 @@ extension ControlActivityModelPatterns on ControlActivityModel { final _that = this; switch (_that) { case _ControlActivityModel(): - return $default( - _that.user, - _that.deviceName, - _that.client, - _that.applicationVersion, - _that.activityType, - _that.nowPlayingItem, - _that.trickPlay, - _that.playState, - _that.lastActivityDate); + return $default(_that.user, _that.deviceName, _that.client, _that.applicationVersion, _that.activityType, + _that.nowPlayingItem, _that.trickPlay, _that.playState, _that.lastActivityDate); case _: throw StateError('Unexpected subclass'); } @@ -364,16 +345,8 @@ extension ControlActivityModelPatterns on ControlActivityModel { final _that = this; switch (_that) { case _ControlActivityModel() when $default != null: - return $default( - _that.user, - _that.deviceName, - _that.client, - _that.applicationVersion, - _that.activityType, - _that.nowPlayingItem, - _that.trickPlay, - _that.playState, - _that.lastActivityDate); + return $default(_that.user, _that.deviceName, _that.client, _that.applicationVersion, _that.activityType, + _that.nowPlayingItem, _that.trickPlay, _that.playState, _that.lastActivityDate); case _: return null; } @@ -419,8 +392,7 @@ class _ControlActivityModel implements ControlActivityModel { @JsonKey(includeFromJson: false, includeToJson: false) @pragma('vm:prefer-inline') _$ControlActivityModelCopyWith<_ControlActivityModel> get copyWith => - __$ControlActivityModelCopyWithImpl<_ControlActivityModel>( - this, _$identity); + __$ControlActivityModelCopyWithImpl<_ControlActivityModel>(this, _$identity); @override String toString() { @@ -429,10 +401,8 @@ class _ControlActivityModel implements ControlActivityModel { } /// @nodoc -abstract mixin class _$ControlActivityModelCopyWith<$Res> - implements $ControlActivityModelCopyWith<$Res> { - factory _$ControlActivityModelCopyWith(_ControlActivityModel value, - $Res Function(_ControlActivityModel) _then) = +abstract mixin class _$ControlActivityModelCopyWith<$Res> implements $ControlActivityModelCopyWith<$Res> { + factory _$ControlActivityModelCopyWith(_ControlActivityModel value, $Res Function(_ControlActivityModel) _then) = __$ControlActivityModelCopyWithImpl; @override @useResult @@ -456,8 +426,7 @@ abstract mixin class _$ControlActivityModelCopyWith<$Res> } /// @nodoc -class __$ControlActivityModelCopyWithImpl<$Res> - implements _$ControlActivityModelCopyWith<$Res> { +class __$ControlActivityModelCopyWithImpl<$Res> implements _$ControlActivityModelCopyWith<$Res> { __$ControlActivityModelCopyWithImpl(this._self, this._then); final _ControlActivityModel _self; @@ -572,8 +541,7 @@ mixin _$ActivityPlayState { @JsonKey(includeFromJson: false, includeToJson: false) @pragma('vm:prefer-inline') $ActivityPlayStateCopyWith get copyWith => - _$ActivityPlayStateCopyWithImpl( - this as ActivityPlayState, _$identity); + _$ActivityPlayStateCopyWithImpl(this as ActivityPlayState, _$identity); @override String toString() { @@ -583,16 +551,14 @@ mixin _$ActivityPlayState { /// @nodoc abstract mixin class $ActivityPlayStateCopyWith<$Res> { - factory $ActivityPlayStateCopyWith( - ActivityPlayState value, $Res Function(ActivityPlayState) _then) = + factory $ActivityPlayStateCopyWith(ActivityPlayState value, $Res Function(ActivityPlayState) _then) = _$ActivityPlayStateCopyWithImpl; @useResult $Res call({Duration currentPosition, String? playMethod, bool? isPaused}); } /// @nodoc -class _$ActivityPlayStateCopyWithImpl<$Res> - implements $ActivityPlayStateCopyWith<$Res> { +class _$ActivityPlayStateCopyWithImpl<$Res> implements $ActivityPlayStateCopyWith<$Res> { _$ActivityPlayStateCopyWithImpl(this._self, this._then); final ActivityPlayState _self; @@ -717,16 +683,13 @@ extension ActivityPlayStatePatterns on ActivityPlayState { @optionalTypeArgs TResult maybeWhen( - TResult Function( - Duration currentPosition, String? playMethod, bool? isPaused)? - $default, { + TResult Function(Duration currentPosition, String? playMethod, bool? isPaused)? $default, { required TResult orElse(), }) { final _that = this; switch (_that) { case _ActivityPlayState() when $default != null: - return $default( - _that.currentPosition, _that.playMethod, _that.isPaused); + return $default(_that.currentPosition, _that.playMethod, _that.isPaused); case _: return orElse(); } @@ -747,15 +710,12 @@ extension ActivityPlayStatePatterns on ActivityPlayState { @optionalTypeArgs TResult when( - TResult Function( - Duration currentPosition, String? playMethod, bool? isPaused) - $default, + TResult Function(Duration currentPosition, String? playMethod, bool? isPaused) $default, ) { final _that = this; switch (_that) { case _ActivityPlayState(): - return $default( - _that.currentPosition, _that.playMethod, _that.isPaused); + return $default(_that.currentPosition, _that.playMethod, _that.isPaused); case _: throw StateError('Unexpected subclass'); } @@ -775,15 +735,12 @@ extension ActivityPlayStatePatterns on ActivityPlayState { @optionalTypeArgs TResult? whenOrNull( - TResult? Function( - Duration currentPosition, String? playMethod, bool? isPaused)? - $default, + TResult? Function(Duration currentPosition, String? playMethod, bool? isPaused)? $default, ) { final _that = this; switch (_that) { case _ActivityPlayState() when $default != null: - return $default( - _that.currentPosition, _that.playMethod, _that.isPaused); + return $default(_that.currentPosition, _that.playMethod, _that.isPaused); case _: return null; } @@ -793,8 +750,7 @@ extension ActivityPlayStatePatterns on ActivityPlayState { /// @nodoc class _ActivityPlayState implements ActivityPlayState { - _ActivityPlayState( - {required this.currentPosition, this.playMethod, this.isPaused}); + _ActivityPlayState({required this.currentPosition, this.playMethod, this.isPaused}); @override final Duration currentPosition; @@ -818,10 +774,8 @@ class _ActivityPlayState implements ActivityPlayState { } /// @nodoc -abstract mixin class _$ActivityPlayStateCopyWith<$Res> - implements $ActivityPlayStateCopyWith<$Res> { - factory _$ActivityPlayStateCopyWith( - _ActivityPlayState value, $Res Function(_ActivityPlayState) _then) = +abstract mixin class _$ActivityPlayStateCopyWith<$Res> implements $ActivityPlayStateCopyWith<$Res> { + factory _$ActivityPlayStateCopyWith(_ActivityPlayState value, $Res Function(_ActivityPlayState) _then) = __$ActivityPlayStateCopyWithImpl; @override @useResult @@ -829,8 +783,7 @@ abstract mixin class _$ActivityPlayStateCopyWith<$Res> } /// @nodoc -class __$ActivityPlayStateCopyWithImpl<$Res> - implements _$ActivityPlayStateCopyWith<$Res> { +class __$ActivityPlayStateCopyWithImpl<$Res> implements _$ActivityPlayStateCopyWith<$Res> { __$ActivityPlayStateCopyWithImpl(this._self, this._then); final _ActivityPlayState _self; diff --git a/lib/providers/control_panel/control_activity_provider.g.dart b/lib/providers/control_panel/control_activity_provider.g.dart index cfdeae880..5a25c2ad1 100644 --- a/lib/providers/control_panel/control_activity_provider.g.dart +++ b/lib/providers/control_panel/control_activity_provider.g.dart @@ -10,13 +10,10 @@ String _$controlActivityHash() => r'6bf669b9917ca9c694b6e0d498c57bbf1e77748c'; /// See also [ControlActivity]. @ProviderFor(ControlActivity) -final controlActivityProvider = AutoDisposeNotifierProvider>.internal( +final controlActivityProvider = AutoDisposeNotifierProvider>.internal( ControlActivity.new, name: r'controlActivityProvider', - debugGetCreateSourceHash: const bool.fromEnvironment('dart.vm.product') - ? null - : _$controlActivityHash, + debugGetCreateSourceHash: const bool.fromEnvironment('dart.vm.product') ? null : _$controlActivityHash, dependencies: null, allTransitiveDependencies: null, ); diff --git a/lib/providers/control_panel/control_dashboard_provider.freezed.dart b/lib/providers/control_panel/control_dashboard_provider.freezed.dart index ae3cf1dfe..22d1ec78a 100644 --- a/lib/providers/control_panel/control_dashboard_provider.freezed.dart +++ b/lib/providers/control_panel/control_dashboard_provider.freezed.dart @@ -26,8 +26,7 @@ mixin _$ControlDashboardModel { @JsonKey(includeFromJson: false, includeToJson: false) @pragma('vm:prefer-inline') $ControlDashboardModelCopyWith get copyWith => - _$ControlDashboardModelCopyWithImpl( - this as ControlDashboardModel, _$identity); + _$ControlDashboardModelCopyWithImpl(this as ControlDashboardModel, _$identity); @override String toString() { @@ -37,8 +36,7 @@ mixin _$ControlDashboardModel { /// @nodoc abstract mixin class $ControlDashboardModelCopyWith<$Res> { - factory $ControlDashboardModelCopyWith(ControlDashboardModel value, - $Res Function(ControlDashboardModel) _then) = + factory $ControlDashboardModelCopyWith(ControlDashboardModel value, $Res Function(ControlDashboardModel) _then) = _$ControlDashboardModelCopyWithImpl; @useResult $Res call( @@ -51,8 +49,7 @@ abstract mixin class $ControlDashboardModelCopyWith<$Res> { } /// @nodoc -class _$ControlDashboardModelCopyWithImpl<$Res> - implements $ControlDashboardModelCopyWith<$Res> { +class _$ControlDashboardModelCopyWithImpl<$Res> implements $ControlDashboardModelCopyWith<$Res> { _$ControlDashboardModelCopyWithImpl(this._self, this._then); final ControlDashboardModel _self; @@ -192,21 +189,16 @@ extension ControlDashboardModelPatterns on ControlDashboardModel { @optionalTypeArgs TResult maybeWhen( - TResult Function( - String? serverName, - String? serverVersion, - String? webVersion, - bool isShuttingDown, - jelly.ItemCounts? itemCounts, - jelly.SystemStorageDto? storagePaths)? + TResult Function(String? serverName, String? serverVersion, String? webVersion, bool isShuttingDown, + jelly.ItemCounts? itemCounts, jelly.SystemStorageDto? storagePaths)? $default, { required TResult orElse(), }) { final _that = this; switch (_that) { case _ControlDashboardModel() when $default != null: - return $default(_that.serverName, _that.serverVersion, _that.webVersion, - _that.isShuttingDown, _that.itemCounts, _that.storagePaths); + return $default(_that.serverName, _that.serverVersion, _that.webVersion, _that.isShuttingDown, _that.itemCounts, + _that.storagePaths); case _: return orElse(); } @@ -227,20 +219,15 @@ extension ControlDashboardModelPatterns on ControlDashboardModel { @optionalTypeArgs TResult when( - TResult Function( - String? serverName, - String? serverVersion, - String? webVersion, - bool isShuttingDown, - jelly.ItemCounts? itemCounts, - jelly.SystemStorageDto? storagePaths) + TResult Function(String? serverName, String? serverVersion, String? webVersion, bool isShuttingDown, + jelly.ItemCounts? itemCounts, jelly.SystemStorageDto? storagePaths) $default, ) { final _that = this; switch (_that) { case _ControlDashboardModel(): - return $default(_that.serverName, _that.serverVersion, _that.webVersion, - _that.isShuttingDown, _that.itemCounts, _that.storagePaths); + return $default(_that.serverName, _that.serverVersion, _that.webVersion, _that.isShuttingDown, _that.itemCounts, + _that.storagePaths); case _: throw StateError('Unexpected subclass'); } @@ -260,20 +247,15 @@ extension ControlDashboardModelPatterns on ControlDashboardModel { @optionalTypeArgs TResult? whenOrNull( - TResult? Function( - String? serverName, - String? serverVersion, - String? webVersion, - bool isShuttingDown, - jelly.ItemCounts? itemCounts, - jelly.SystemStorageDto? storagePaths)? + TResult? Function(String? serverName, String? serverVersion, String? webVersion, bool isShuttingDown, + jelly.ItemCounts? itemCounts, jelly.SystemStorageDto? storagePaths)? $default, ) { final _that = this; switch (_that) { case _ControlDashboardModel() when $default != null: - return $default(_that.serverName, _that.serverVersion, _that.webVersion, - _that.isShuttingDown, _that.itemCounts, _that.storagePaths); + return $default(_that.serverName, _that.serverVersion, _that.webVersion, _that.isShuttingDown, _that.itemCounts, + _that.storagePaths); case _: return null; } @@ -311,8 +293,7 @@ class _ControlDashboardModel implements ControlDashboardModel { @JsonKey(includeFromJson: false, includeToJson: false) @pragma('vm:prefer-inline') _$ControlDashboardModelCopyWith<_ControlDashboardModel> get copyWith => - __$ControlDashboardModelCopyWithImpl<_ControlDashboardModel>( - this, _$identity); + __$ControlDashboardModelCopyWithImpl<_ControlDashboardModel>(this, _$identity); @override String toString() { @@ -321,10 +302,8 @@ class _ControlDashboardModel implements ControlDashboardModel { } /// @nodoc -abstract mixin class _$ControlDashboardModelCopyWith<$Res> - implements $ControlDashboardModelCopyWith<$Res> { - factory _$ControlDashboardModelCopyWith(_ControlDashboardModel value, - $Res Function(_ControlDashboardModel) _then) = +abstract mixin class _$ControlDashboardModelCopyWith<$Res> implements $ControlDashboardModelCopyWith<$Res> { + factory _$ControlDashboardModelCopyWith(_ControlDashboardModel value, $Res Function(_ControlDashboardModel) _then) = __$ControlDashboardModelCopyWithImpl; @override @useResult @@ -338,8 +317,7 @@ abstract mixin class _$ControlDashboardModelCopyWith<$Res> } /// @nodoc -class __$ControlDashboardModelCopyWithImpl<$Res> - implements _$ControlDashboardModelCopyWith<$Res> { +class __$ControlDashboardModelCopyWithImpl<$Res> implements _$ControlDashboardModelCopyWith<$Res> { __$ControlDashboardModelCopyWithImpl(this._self, this._then); final _ControlDashboardModel _self; diff --git a/lib/providers/control_panel/control_dashboard_provider.g.dart b/lib/providers/control_panel/control_dashboard_provider.g.dart index 2a7733968..2366051c6 100644 --- a/lib/providers/control_panel/control_dashboard_provider.g.dart +++ b/lib/providers/control_panel/control_dashboard_provider.g.dart @@ -10,13 +10,10 @@ String _$controlDashboardHash() => r'5d6d925acafc9a0e837351cf5d29952cb1f507eb'; /// See also [ControlDashboard]. @ProviderFor(ControlDashboard) -final controlDashboardProvider = AutoDisposeNotifierProvider.internal( +final controlDashboardProvider = AutoDisposeNotifierProvider.internal( ControlDashboard.new, name: r'controlDashboardProvider', - debugGetCreateSourceHash: const bool.fromEnvironment('dart.vm.product') - ? null - : _$controlDashboardHash, + debugGetCreateSourceHash: const bool.fromEnvironment('dart.vm.product') ? null : _$controlDashboardHash, dependencies: null, allTransitiveDependencies: null, ); diff --git a/lib/providers/control_panel/control_libraries_provider.freezed.dart b/lib/providers/control_panel/control_libraries_provider.freezed.dart index 50de08413..ba1b3b2a1 100644 --- a/lib/providers/control_panel/control_libraries_provider.freezed.dart +++ b/lib/providers/control_panel/control_libraries_provider.freezed.dart @@ -27,8 +27,7 @@ mixin _$ControlLibrariesModel implements DiagnosticableTreeMixin { @JsonKey(includeFromJson: false, includeToJson: false) @pragma('vm:prefer-inline') $ControlLibrariesModelCopyWith get copyWith => - _$ControlLibrariesModelCopyWithImpl( - this as ControlLibrariesModel, _$identity); + _$ControlLibrariesModelCopyWithImpl(this as ControlLibrariesModel, _$identity); @override void debugFillProperties(DiagnosticPropertiesBuilder properties) { @@ -51,8 +50,7 @@ mixin _$ControlLibrariesModel implements DiagnosticableTreeMixin { /// @nodoc abstract mixin class $ControlLibrariesModelCopyWith<$Res> { - factory $ControlLibrariesModelCopyWith(ControlLibrariesModel value, - $Res Function(ControlLibrariesModel) _then) = + factory $ControlLibrariesModelCopyWith(ControlLibrariesModel value, $Res Function(ControlLibrariesModel) _then) = _$ControlLibrariesModelCopyWithImpl; @useResult $Res call( @@ -66,8 +64,7 @@ abstract mixin class $ControlLibrariesModelCopyWith<$Res> { } /// @nodoc -class _$ControlLibrariesModelCopyWithImpl<$Res> - implements $ControlLibrariesModelCopyWith<$Res> { +class _$ControlLibrariesModelCopyWithImpl<$Res> implements $ControlLibrariesModelCopyWith<$Res> { _$ControlLibrariesModelCopyWithImpl(this._self, this._then); final ControlLibrariesModel _self; @@ -226,14 +223,8 @@ extension ControlLibrariesModelPatterns on ControlLibrariesModel { final _that = this; switch (_that) { case _ControlLibrariesModel() when $default != null: - return $default( - _that.availableLibraries, - _that.selectedLibrary, - _that.newVirtualFolder, - _that.cultures, - _that.countries, - _that.virtualFolders, - _that.availableOptions); + return $default(_that.availableLibraries, _that.selectedLibrary, _that.newVirtualFolder, _that.cultures, + _that.countries, _that.virtualFolders, _that.availableOptions); case _: return orElse(); } @@ -267,14 +258,8 @@ extension ControlLibrariesModelPatterns on ControlLibrariesModel { final _that = this; switch (_that) { case _ControlLibrariesModel(): - return $default( - _that.availableLibraries, - _that.selectedLibrary, - _that.newVirtualFolder, - _that.cultures, - _that.countries, - _that.virtualFolders, - _that.availableOptions); + return $default(_that.availableLibraries, _that.selectedLibrary, _that.newVirtualFolder, _that.cultures, + _that.countries, _that.virtualFolders, _that.availableOptions); case _: throw StateError('Unexpected subclass'); } @@ -307,14 +292,8 @@ extension ControlLibrariesModelPatterns on ControlLibrariesModel { final _that = this; switch (_that) { case _ControlLibrariesModel() when $default != null: - return $default( - _that.availableLibraries, - _that.selectedLibrary, - _that.newVirtualFolder, - _that.cultures, - _that.countries, - _that.virtualFolders, - _that.availableOptions); + return $default(_that.availableLibraries, _that.selectedLibrary, _that.newVirtualFolder, _that.cultures, + _that.countries, _that.virtualFolders, _that.availableOptions); case _: return null; } @@ -323,8 +302,7 @@ extension ControlLibrariesModelPatterns on ControlLibrariesModel { /// @nodoc -class _ControlLibrariesModel extends ControlLibrariesModel - with DiagnosticableTreeMixin { +class _ControlLibrariesModel extends ControlLibrariesModel with DiagnosticableTreeMixin { _ControlLibrariesModel( {final List availableLibraries = const [], this.selectedLibrary, @@ -343,8 +321,7 @@ class _ControlLibrariesModel extends ControlLibrariesModel @override @JsonKey() List get availableLibraries { - if (_availableLibraries is EqualUnmodifiableListView) - return _availableLibraries; + if (_availableLibraries is EqualUnmodifiableListView) return _availableLibraries; // ignore: implicit_dynamic_type return EqualUnmodifiableListView(_availableLibraries); } @@ -389,8 +366,7 @@ class _ControlLibrariesModel extends ControlLibrariesModel @JsonKey(includeFromJson: false, includeToJson: false) @pragma('vm:prefer-inline') _$ControlLibrariesModelCopyWith<_ControlLibrariesModel> get copyWith => - __$ControlLibrariesModelCopyWithImpl<_ControlLibrariesModel>( - this, _$identity); + __$ControlLibrariesModelCopyWithImpl<_ControlLibrariesModel>(this, _$identity); @override void debugFillProperties(DiagnosticPropertiesBuilder properties) { @@ -412,10 +388,8 @@ class _ControlLibrariesModel extends ControlLibrariesModel } /// @nodoc -abstract mixin class _$ControlLibrariesModelCopyWith<$Res> - implements $ControlLibrariesModelCopyWith<$Res> { - factory _$ControlLibrariesModelCopyWith(_ControlLibrariesModel value, - $Res Function(_ControlLibrariesModel) _then) = +abstract mixin class _$ControlLibrariesModelCopyWith<$Res> implements $ControlLibrariesModelCopyWith<$Res> { + factory _$ControlLibrariesModelCopyWith(_ControlLibrariesModel value, $Res Function(_ControlLibrariesModel) _then) = __$ControlLibrariesModelCopyWithImpl; @override @useResult @@ -430,8 +404,7 @@ abstract mixin class _$ControlLibrariesModelCopyWith<$Res> } /// @nodoc -class __$ControlLibrariesModelCopyWithImpl<$Res> - implements _$ControlLibrariesModelCopyWith<$Res> { +class __$ControlLibrariesModelCopyWithImpl<$Res> implements _$ControlLibrariesModelCopyWith<$Res> { __$ControlLibrariesModelCopyWithImpl(this._self, this._then); final _ControlLibrariesModel _self; diff --git a/lib/providers/control_panel/control_libraries_provider.g.dart b/lib/providers/control_panel/control_libraries_provider.g.dart index 91929ee8f..668421052 100644 --- a/lib/providers/control_panel/control_libraries_provider.g.dart +++ b/lib/providers/control_panel/control_libraries_provider.g.dart @@ -10,13 +10,10 @@ String _$controlLibrariesHash() => r'e3da05dc3d283260923cedee26a2069ad6ec2ab0'; /// See also [ControlLibraries]. @ProviderFor(ControlLibraries) -final controlLibrariesProvider = AutoDisposeNotifierProvider.internal( +final controlLibrariesProvider = AutoDisposeNotifierProvider.internal( ControlLibraries.new, name: r'controlLibrariesProvider', - debugGetCreateSourceHash: const bool.fromEnvironment('dart.vm.product') - ? null - : _$controlLibrariesHash, + debugGetCreateSourceHash: const bool.fromEnvironment('dart.vm.product') ? null : _$controlLibrariesHash, dependencies: null, allTransitiveDependencies: null, ); diff --git a/lib/providers/control_panel/control_server_provider.freezed.dart b/lib/providers/control_panel/control_server_provider.freezed.dart index 542964639..7d952dc8c 100644 --- a/lib/providers/control_panel/control_server_provider.freezed.dart +++ b/lib/providers/control_panel/control_server_provider.freezed.dart @@ -28,8 +28,7 @@ mixin _$ControlServerModel { @JsonKey(includeFromJson: false, includeToJson: false) @pragma('vm:prefer-inline') $ControlServerModelCopyWith get copyWith => - _$ControlServerModelCopyWithImpl( - this as ControlServerModel, _$identity); + _$ControlServerModelCopyWithImpl(this as ControlServerModel, _$identity); @override String toString() { @@ -39,8 +38,7 @@ mixin _$ControlServerModel { /// @nodoc abstract mixin class $ControlServerModelCopyWith<$Res> { - factory $ControlServerModelCopyWith( - ControlServerModel value, $Res Function(ControlServerModel) _then) = + factory $ControlServerModelCopyWith(ControlServerModel value, $Res Function(ControlServerModel) _then) = _$ControlServerModelCopyWithImpl; @useResult $Res call( @@ -55,8 +53,7 @@ abstract mixin class $ControlServerModelCopyWith<$Res> { } /// @nodoc -class _$ControlServerModelCopyWithImpl<$Res> - implements $ControlServerModelCopyWith<$Res> { +class _$ControlServerModelCopyWithImpl<$Res> implements $ControlServerModelCopyWith<$Res> { _$ControlServerModelCopyWithImpl(this._self, this._then); final ControlServerModel _self; @@ -221,15 +218,8 @@ extension ControlServerModelPatterns on ControlServerModel { final _that = this; switch (_that) { case _ControlServerModel() when $default != null: - return $default( - _that.name, - _that.language, - _that.availableLanguages, - _that.cachePath, - _that.metaDataPath, - _that.quickConnectEnabled, - _that.maxConcurrentLibraryScan, - _that.maxImageDecodingThreads); + return $default(_that.name, _that.language, _that.availableLanguages, _that.cachePath, _that.metaDataPath, + _that.quickConnectEnabled, _that.maxConcurrentLibraryScan, _that.maxImageDecodingThreads); case _: return orElse(); } @@ -264,15 +254,8 @@ extension ControlServerModelPatterns on ControlServerModel { final _that = this; switch (_that) { case _ControlServerModel(): - return $default( - _that.name, - _that.language, - _that.availableLanguages, - _that.cachePath, - _that.metaDataPath, - _that.quickConnectEnabled, - _that.maxConcurrentLibraryScan, - _that.maxImageDecodingThreads); + return $default(_that.name, _that.language, _that.availableLanguages, _that.cachePath, _that.metaDataPath, + _that.quickConnectEnabled, _that.maxConcurrentLibraryScan, _that.maxImageDecodingThreads); case _: throw StateError('Unexpected subclass'); } @@ -306,15 +289,8 @@ extension ControlServerModelPatterns on ControlServerModel { final _that = this; switch (_that) { case _ControlServerModel() when $default != null: - return $default( - _that.name, - _that.language, - _that.availableLanguages, - _that.cachePath, - _that.metaDataPath, - _that.quickConnectEnabled, - _that.maxConcurrentLibraryScan, - _that.maxImageDecodingThreads); + return $default(_that.name, _that.language, _that.availableLanguages, _that.cachePath, _that.metaDataPath, + _that.quickConnectEnabled, _that.maxConcurrentLibraryScan, _that.maxImageDecodingThreads); case _: return null; } @@ -345,8 +321,7 @@ class _ControlServerModel implements ControlServerModel { List? get availableLanguages { final value = _availableLanguages; if (value == null) return null; - if (_availableLanguages is EqualUnmodifiableListView) - return _availableLanguages; + if (_availableLanguages is EqualUnmodifiableListView) return _availableLanguages; // ignore: implicit_dynamic_type return EqualUnmodifiableListView(value); } @@ -382,10 +357,8 @@ class _ControlServerModel implements ControlServerModel { } /// @nodoc -abstract mixin class _$ControlServerModelCopyWith<$Res> - implements $ControlServerModelCopyWith<$Res> { - factory _$ControlServerModelCopyWith( - _ControlServerModel value, $Res Function(_ControlServerModel) _then) = +abstract mixin class _$ControlServerModelCopyWith<$Res> implements $ControlServerModelCopyWith<$Res> { + factory _$ControlServerModelCopyWith(_ControlServerModel value, $Res Function(_ControlServerModel) _then) = __$ControlServerModelCopyWithImpl; @override @useResult @@ -401,8 +374,7 @@ abstract mixin class _$ControlServerModelCopyWith<$Res> } /// @nodoc -class __$ControlServerModelCopyWithImpl<$Res> - implements _$ControlServerModelCopyWith<$Res> { +class __$ControlServerModelCopyWithImpl<$Res> implements _$ControlServerModelCopyWith<$Res> { __$ControlServerModelCopyWithImpl(this._self, this._then); final _ControlServerModel _self; diff --git a/lib/providers/control_panel/control_server_provider.g.dart b/lib/providers/control_panel/control_server_provider.g.dart index 2fa466dcb..bbfe62a4b 100644 --- a/lib/providers/control_panel/control_server_provider.g.dart +++ b/lib/providers/control_panel/control_server_provider.g.dart @@ -10,13 +10,10 @@ String _$controlServerHash() => r'6b0310b063bd0de6ba7b332f056dd5da50648af4'; /// See also [ControlServer]. @ProviderFor(ControlServer) -final controlServerProvider = - AutoDisposeNotifierProvider.internal( +final controlServerProvider = AutoDisposeNotifierProvider.internal( ControlServer.new, name: r'controlServerProvider', - debugGetCreateSourceHash: const bool.fromEnvironment('dart.vm.product') - ? null - : _$controlServerHash, + debugGetCreateSourceHash: const bool.fromEnvironment('dart.vm.product') ? null : _$controlServerHash, dependencies: null, allTransitiveDependencies: null, ); diff --git a/lib/providers/control_panel/control_users_provider.freezed.dart b/lib/providers/control_panel/control_users_provider.freezed.dart index 101985190..904a3033f 100644 --- a/lib/providers/control_panel/control_users_provider.freezed.dart +++ b/lib/providers/control_panel/control_users_provider.freezed.dart @@ -26,8 +26,7 @@ mixin _$ControlUsersModel { @JsonKey(includeFromJson: false, includeToJson: false) @pragma('vm:prefer-inline') $ControlUsersModelCopyWith get copyWith => - _$ControlUsersModelCopyWithImpl( - this as ControlUsersModel, _$identity); + _$ControlUsersModelCopyWithImpl(this as ControlUsersModel, _$identity); @override String toString() { @@ -37,8 +36,7 @@ mixin _$ControlUsersModel { /// @nodoc abstract mixin class $ControlUsersModelCopyWith<$Res> { - factory $ControlUsersModelCopyWith( - ControlUsersModel value, $Res Function(ControlUsersModel) _then) = + factory $ControlUsersModelCopyWith(ControlUsersModel value, $Res Function(ControlUsersModel) _then) = _$ControlUsersModelCopyWithImpl; @useResult $Res call( @@ -53,8 +51,7 @@ abstract mixin class $ControlUsersModelCopyWith<$Res> { } /// @nodoc -class _$ControlUsersModelCopyWithImpl<$Res> - implements $ControlUsersModelCopyWith<$Res> { +class _$ControlUsersModelCopyWithImpl<$Res> implements $ControlUsersModelCopyWith<$Res> { _$ControlUsersModelCopyWithImpl(this._self, this._then); final ControlUsersModel _self; @@ -208,21 +205,16 @@ extension ControlUsersModelPatterns on ControlUsersModel { @optionalTypeArgs TResult maybeWhen( - TResult Function( - List users, - List views, - AccountModel? selectedUser, - UserPolicy? editingPolicy, - List? availableDevices, - List? parentalRatings)? + TResult Function(List users, List views, AccountModel? selectedUser, + UserPolicy? editingPolicy, List? availableDevices, List? parentalRatings)? $default, { required TResult orElse(), }) { final _that = this; switch (_that) { case _ControlUsersModel() when $default != null: - return $default(_that.users, _that.views, _that.selectedUser, - _that.editingPolicy, _that.availableDevices, _that.parentalRatings); + return $default(_that.users, _that.views, _that.selectedUser, _that.editingPolicy, _that.availableDevices, + _that.parentalRatings); case _: return orElse(); } @@ -243,20 +235,15 @@ extension ControlUsersModelPatterns on ControlUsersModel { @optionalTypeArgs TResult when( - TResult Function( - List users, - List views, - AccountModel? selectedUser, - UserPolicy? editingPolicy, - List? availableDevices, - List? parentalRatings) + TResult Function(List users, List views, AccountModel? selectedUser, + UserPolicy? editingPolicy, List? availableDevices, List? parentalRatings) $default, ) { final _that = this; switch (_that) { case _ControlUsersModel(): - return $default(_that.users, _that.views, _that.selectedUser, - _that.editingPolicy, _that.availableDevices, _that.parentalRatings); + return $default(_that.users, _that.views, _that.selectedUser, _that.editingPolicy, _that.availableDevices, + _that.parentalRatings); case _: throw StateError('Unexpected subclass'); } @@ -276,20 +263,15 @@ extension ControlUsersModelPatterns on ControlUsersModel { @optionalTypeArgs TResult? whenOrNull( - TResult? Function( - List users, - List views, - AccountModel? selectedUser, - UserPolicy? editingPolicy, - List? availableDevices, - List? parentalRatings)? + TResult? Function(List users, List views, AccountModel? selectedUser, + UserPolicy? editingPolicy, List? availableDevices, List? parentalRatings)? $default, ) { final _that = this; switch (_that) { case _ControlUsersModel() when $default != null: - return $default(_that.users, _that.views, _that.selectedUser, - _that.editingPolicy, _that.availableDevices, _that.parentalRatings); + return $default(_that.users, _that.views, _that.selectedUser, _that.editingPolicy, _that.availableDevices, + _that.parentalRatings); case _: return null; } @@ -338,8 +320,7 @@ class _ControlUsersModel implements ControlUsersModel { List? get availableDevices { final value = _availableDevices; if (value == null) return null; - if (_availableDevices is EqualUnmodifiableListView) - return _availableDevices; + if (_availableDevices is EqualUnmodifiableListView) return _availableDevices; // ignore: implicit_dynamic_type return EqualUnmodifiableListView(value); } @@ -369,10 +350,8 @@ class _ControlUsersModel implements ControlUsersModel { } /// @nodoc -abstract mixin class _$ControlUsersModelCopyWith<$Res> - implements $ControlUsersModelCopyWith<$Res> { - factory _$ControlUsersModelCopyWith( - _ControlUsersModel value, $Res Function(_ControlUsersModel) _then) = +abstract mixin class _$ControlUsersModelCopyWith<$Res> implements $ControlUsersModelCopyWith<$Res> { + factory _$ControlUsersModelCopyWith(_ControlUsersModel value, $Res Function(_ControlUsersModel) _then) = __$ControlUsersModelCopyWithImpl; @override @useResult @@ -389,8 +368,7 @@ abstract mixin class _$ControlUsersModelCopyWith<$Res> } /// @nodoc -class __$ControlUsersModelCopyWithImpl<$Res> - implements _$ControlUsersModelCopyWith<$Res> { +class __$ControlUsersModelCopyWithImpl<$Res> implements _$ControlUsersModelCopyWith<$Res> { __$ControlUsersModelCopyWithImpl(this._self, this._then); final _ControlUsersModel _self; diff --git a/lib/providers/control_panel/control_users_provider.g.dart b/lib/providers/control_panel/control_users_provider.g.dart index d339c144e..91a5aff0d 100644 --- a/lib/providers/control_panel/control_users_provider.g.dart +++ b/lib/providers/control_panel/control_users_provider.g.dart @@ -10,12 +10,10 @@ String _$controlUsersHash() => r'c75c30523c95aa41812bcdb4c6d34873cbf2bca6'; /// See also [ControlUsers]. @ProviderFor(ControlUsers) -final controlUsersProvider = - AutoDisposeNotifierProvider.internal( +final controlUsersProvider = AutoDisposeNotifierProvider.internal( ControlUsers.new, name: r'controlUsersProvider', - debugGetCreateSourceHash: - const bool.fromEnvironment('dart.vm.product') ? null : _$controlUsersHash, + debugGetCreateSourceHash: const bool.fromEnvironment('dart.vm.product') ? null : _$controlUsersHash, dependencies: null, allTransitiveDependencies: null, ); diff --git a/lib/providers/cultures_provider.g.dart b/lib/providers/cultures_provider.g.dart index 95be7dda8..0622cf1e5 100644 --- a/lib/providers/cultures_provider.g.dart +++ b/lib/providers/cultures_provider.g.dart @@ -10,12 +10,10 @@ String _$culturesHash() => r'588163e393fff0bc643f10c4be598787a3581170'; /// See also [Cultures]. @ProviderFor(Cultures) -final culturesProvider = - AutoDisposeNotifierProvider>.internal( +final culturesProvider = AutoDisposeNotifierProvider>.internal( Cultures.new, name: r'culturesProvider', - debugGetCreateSourceHash: - const bool.fromEnvironment('dart.vm.product') ? null : _$culturesHash, + debugGetCreateSourceHash: const bool.fromEnvironment('dart.vm.product') ? null : _$culturesHash, dependencies: null, allTransitiveDependencies: null, ); diff --git a/lib/providers/directory_browser_provider.freezed.dart b/lib/providers/directory_browser_provider.freezed.dart index 6c66b77ca..df700f19d 100644 --- a/lib/providers/directory_browser_provider.freezed.dart +++ b/lib/providers/directory_browser_provider.freezed.dart @@ -24,8 +24,7 @@ mixin _$DirectoryBrowserModel { @JsonKey(includeFromJson: false, includeToJson: false) @pragma('vm:prefer-inline') $DirectoryBrowserModelCopyWith get copyWith => - _$DirectoryBrowserModelCopyWithImpl( - this as DirectoryBrowserModel, _$identity); + _$DirectoryBrowserModelCopyWithImpl(this as DirectoryBrowserModel, _$identity); @override String toString() { @@ -35,20 +34,14 @@ mixin _$DirectoryBrowserModel { /// @nodoc abstract mixin class $DirectoryBrowserModelCopyWith<$Res> { - factory $DirectoryBrowserModelCopyWith(DirectoryBrowserModel value, - $Res Function(DirectoryBrowserModel) _then) = + factory $DirectoryBrowserModelCopyWith(DirectoryBrowserModel value, $Res Function(DirectoryBrowserModel) _then) = _$DirectoryBrowserModelCopyWithImpl; @useResult - $Res call( - {String? parentFolder, - String? currentPath, - List paths, - bool loading}); + $Res call({String? parentFolder, String? currentPath, List paths, bool loading}); } /// @nodoc -class _$DirectoryBrowserModelCopyWithImpl<$Res> - implements $DirectoryBrowserModelCopyWith<$Res> { +class _$DirectoryBrowserModelCopyWithImpl<$Res> implements $DirectoryBrowserModelCopyWith<$Res> { _$DirectoryBrowserModelCopyWithImpl(this._self, this._then); final DirectoryBrowserModel _self; @@ -178,16 +171,13 @@ extension DirectoryBrowserModelPatterns on DirectoryBrowserModel { @optionalTypeArgs TResult maybeWhen( - TResult Function(String? parentFolder, String? currentPath, - List paths, bool loading)? - $default, { + TResult Function(String? parentFolder, String? currentPath, List paths, bool loading)? $default, { required TResult orElse(), }) { final _that = this; switch (_that) { case _DirectoryBrowserModel() when $default != null: - return $default( - _that.parentFolder, _that.currentPath, _that.paths, _that.loading); + return $default(_that.parentFolder, _that.currentPath, _that.paths, _that.loading); case _: return orElse(); } @@ -208,15 +198,12 @@ extension DirectoryBrowserModelPatterns on DirectoryBrowserModel { @optionalTypeArgs TResult when( - TResult Function(String? parentFolder, String? currentPath, - List paths, bool loading) - $default, + TResult Function(String? parentFolder, String? currentPath, List paths, bool loading) $default, ) { final _that = this; switch (_that) { case _DirectoryBrowserModel(): - return $default( - _that.parentFolder, _that.currentPath, _that.paths, _that.loading); + return $default(_that.parentFolder, _that.currentPath, _that.paths, _that.loading); case _: throw StateError('Unexpected subclass'); } @@ -236,15 +223,12 @@ extension DirectoryBrowserModelPatterns on DirectoryBrowserModel { @optionalTypeArgs TResult? whenOrNull( - TResult? Function(String? parentFolder, String? currentPath, - List paths, bool loading)? - $default, + TResult? Function(String? parentFolder, String? currentPath, List paths, bool loading)? $default, ) { final _that = this; switch (_that) { case _DirectoryBrowserModel() when $default != null: - return $default( - _that.parentFolder, _that.currentPath, _that.paths, _that.loading); + return $default(_that.parentFolder, _that.currentPath, _that.paths, _that.loading); case _: return null; } @@ -255,10 +239,7 @@ extension DirectoryBrowserModelPatterns on DirectoryBrowserModel { class _DirectoryBrowserModel implements DirectoryBrowserModel { const _DirectoryBrowserModel( - {this.parentFolder, - this.currentPath, - final List paths = const [], - this.loading = false}) + {this.parentFolder, this.currentPath, final List paths = const [], this.loading = false}) : _paths = paths; @override @@ -284,8 +265,7 @@ class _DirectoryBrowserModel implements DirectoryBrowserModel { @JsonKey(includeFromJson: false, includeToJson: false) @pragma('vm:prefer-inline') _$DirectoryBrowserModelCopyWith<_DirectoryBrowserModel> get copyWith => - __$DirectoryBrowserModelCopyWithImpl<_DirectoryBrowserModel>( - this, _$identity); + __$DirectoryBrowserModelCopyWithImpl<_DirectoryBrowserModel>(this, _$identity); @override String toString() { @@ -294,23 +274,16 @@ class _DirectoryBrowserModel implements DirectoryBrowserModel { } /// @nodoc -abstract mixin class _$DirectoryBrowserModelCopyWith<$Res> - implements $DirectoryBrowserModelCopyWith<$Res> { - factory _$DirectoryBrowserModelCopyWith(_DirectoryBrowserModel value, - $Res Function(_DirectoryBrowserModel) _then) = +abstract mixin class _$DirectoryBrowserModelCopyWith<$Res> implements $DirectoryBrowserModelCopyWith<$Res> { + factory _$DirectoryBrowserModelCopyWith(_DirectoryBrowserModel value, $Res Function(_DirectoryBrowserModel) _then) = __$DirectoryBrowserModelCopyWithImpl; @override @useResult - $Res call( - {String? parentFolder, - String? currentPath, - List paths, - bool loading}); + $Res call({String? parentFolder, String? currentPath, List paths, bool loading}); } /// @nodoc -class __$DirectoryBrowserModelCopyWithImpl<$Res> - implements _$DirectoryBrowserModelCopyWith<$Res> { +class __$DirectoryBrowserModelCopyWithImpl<$Res> implements _$DirectoryBrowserModelCopyWith<$Res> { __$DirectoryBrowserModelCopyWithImpl(this._self, this._then); final _DirectoryBrowserModel _self; diff --git a/lib/providers/directory_browser_provider.g.dart b/lib/providers/directory_browser_provider.g.dart index 09f17af54..96a754e3c 100644 --- a/lib/providers/directory_browser_provider.g.dart +++ b/lib/providers/directory_browser_provider.g.dart @@ -10,13 +10,10 @@ String _$directoryBrowserHash() => r'baecaa63893df6dcbcf6c940bee81f92a7cd5c92'; /// See also [DirectoryBrowser]. @ProviderFor(DirectoryBrowser) -final directoryBrowserProvider = AutoDisposeNotifierProvider.internal( +final directoryBrowserProvider = AutoDisposeNotifierProvider.internal( DirectoryBrowser.new, name: r'directoryBrowserProvider', - debugGetCreateSourceHash: const bool.fromEnvironment('dart.vm.product') - ? null - : _$directoryBrowserHash, + debugGetCreateSourceHash: const bool.fromEnvironment('dart.vm.product') ? null : _$directoryBrowserHash, dependencies: null, allTransitiveDependencies: null, ); diff --git a/lib/providers/discovery_provider.g.dart b/lib/providers/discovery_provider.g.dart index 5a43da7e6..0c254fe97 100644 --- a/lib/providers/discovery_provider.g.dart +++ b/lib/providers/discovery_provider.g.dart @@ -10,13 +10,10 @@ String _$serverDiscoveryHash() => r'f299dab33f48950f0bd91afab1f831fd6e351923'; /// See also [ServerDiscovery]. @ProviderFor(ServerDiscovery) -final serverDiscoveryProvider = AutoDisposeStreamNotifierProvider< - ServerDiscovery, List>.internal( +final serverDiscoveryProvider = AutoDisposeStreamNotifierProvider>.internal( ServerDiscovery.new, name: r'serverDiscoveryProvider', - debugGetCreateSourceHash: const bool.fromEnvironment('dart.vm.product') - ? null - : _$serverDiscoveryHash, + debugGetCreateSourceHash: const bool.fromEnvironment('dart.vm.product') ? null : _$serverDiscoveryHash, dependencies: null, allTransitiveDependencies: null, ); diff --git a/lib/providers/discovery_provider.mapper.dart b/lib/providers/discovery_provider.mapper.dart index eb28f0ec8..f58125641 100644 --- a/lib/providers/discovery_provider.mapper.dart +++ b/lib/providers/discovery_provider.mapper.dart @@ -21,14 +21,11 @@ class DiscoveryInfoMapper extends ClassMapperBase { final String id = 'DiscoveryInfo'; static String _$id(DiscoveryInfo v) => v.id; - static const Field _f$id = - Field('id', _$id, key: r'Id'); + static const Field _f$id = Field('id', _$id, key: r'Id'); static String _$name(DiscoveryInfo v) => v.name; - static const Field _f$name = - Field('name', _$name, key: r'Name'); + static const Field _f$name = Field('name', _$name, key: r'Name'); static String _$address(DiscoveryInfo v) => v.address; - static const Field _f$address = - Field('address', _$address, key: r'Address'); + static const Field _f$address = Field('address', _$address, key: r'Address'); static String? _$endPointAddress(DiscoveryInfo v) => v.endPointAddress; static const Field _f$endPointAddress = Field('endPointAddress', _$endPointAddress, key: r'EndpointAddress'); @@ -65,12 +62,10 @@ class DiscoveryInfoMapper extends ClassMapperBase { mixin DiscoveryInfoMappable { String toJson() { - return DiscoveryInfoMapper.ensureInitialized() - .encodeJson(this as DiscoveryInfo); + return DiscoveryInfoMapper.ensureInitialized().encodeJson(this as DiscoveryInfo); } Map toMap() { - return DiscoveryInfoMapper.ensureInitialized() - .encodeMap(this as DiscoveryInfo); + return DiscoveryInfoMapper.ensureInitialized().encodeMap(this as DiscoveryInfo); } } diff --git a/lib/providers/items/channel_details_provider.g.dart b/lib/providers/items/channel_details_provider.g.dart index c181b3d5f..c922ee79b 100644 --- a/lib/providers/items/channel_details_provider.g.dart +++ b/lib/providers/items/channel_details_provider.g.dart @@ -29,8 +29,7 @@ class _SystemHash { } } -abstract class _$ChannelDetails - extends BuildlessAutoDisposeNotifier { +abstract class _$ChannelDetails extends BuildlessAutoDisposeNotifier { late final String id; ChannelModel? build( @@ -73,16 +72,14 @@ class ChannelDetailsFamily extends Family { static const Iterable? _allTransitiveDependencies = null; @override - Iterable? get allTransitiveDependencies => - _allTransitiveDependencies; + Iterable? get allTransitiveDependencies => _allTransitiveDependencies; @override String? get name => r'channelDetailsProvider'; } /// See also [ChannelDetails]. -class ChannelDetailsProvider - extends AutoDisposeNotifierProviderImpl { +class ChannelDetailsProvider extends AutoDisposeNotifierProviderImpl { /// See also [ChannelDetails]. ChannelDetailsProvider( String id, @@ -90,13 +87,9 @@ class ChannelDetailsProvider () => ChannelDetails()..id = id, from: channelDetailsProvider, name: r'channelDetailsProvider', - debugGetCreateSourceHash: - const bool.fromEnvironment('dart.vm.product') - ? null - : _$channelDetailsHash, + debugGetCreateSourceHash: const bool.fromEnvironment('dart.vm.product') ? null : _$channelDetailsHash, dependencies: ChannelDetailsFamily._dependencies, - allTransitiveDependencies: - ChannelDetailsFamily._allTransitiveDependencies, + allTransitiveDependencies: ChannelDetailsFamily._allTransitiveDependencies, id: id, ); @@ -138,8 +131,7 @@ class ChannelDetailsProvider } @override - AutoDisposeNotifierProviderElement - createElement() { + AutoDisposeNotifierProviderElement createElement() { return _ChannelDetailsProviderElement(this); } @@ -164,8 +156,7 @@ mixin ChannelDetailsRef on AutoDisposeNotifierProviderRef { String get id; } -class _ChannelDetailsProviderElement - extends AutoDisposeNotifierProviderElement +class _ChannelDetailsProviderElement extends AutoDisposeNotifierProviderElement with ChannelDetailsRef { _ChannelDetailsProviderElement(super.provider); diff --git a/lib/providers/items/movies_details_provider.g.dart b/lib/providers/items/movies_details_provider.g.dart index 0820102da..38080dd80 100644 --- a/lib/providers/items/movies_details_provider.g.dart +++ b/lib/providers/items/movies_details_provider.g.dart @@ -6,7 +6,7 @@ part of 'movies_details_provider.dart'; // RiverpodGenerator // ************************************************************************** -String _$movieDetailsHash() => r'82f07f95ee66d836ddf6f18c731408b094c111c5'; +String _$movieDetailsHash() => r'cef764853d7527e173927bd45b9cd0a5c78a2b63'; /// Copied from Dart SDK class _SystemHash { @@ -29,8 +29,7 @@ class _SystemHash { } } -abstract class _$MovieDetails - extends BuildlessAutoDisposeNotifier { +abstract class _$MovieDetails extends BuildlessAutoDisposeNotifier { late final String arg; MovieModel? build( @@ -73,16 +72,14 @@ class MovieDetailsFamily extends Family { static const Iterable? _allTransitiveDependencies = null; @override - Iterable? get allTransitiveDependencies => - _allTransitiveDependencies; + Iterable? get allTransitiveDependencies => _allTransitiveDependencies; @override String? get name => r'movieDetailsProvider'; } /// See also [MovieDetails]. -class MovieDetailsProvider - extends AutoDisposeNotifierProviderImpl { +class MovieDetailsProvider extends AutoDisposeNotifierProviderImpl { /// See also [MovieDetails]. MovieDetailsProvider( String arg, @@ -90,13 +87,9 @@ class MovieDetailsProvider () => MovieDetails()..arg = arg, from: movieDetailsProvider, name: r'movieDetailsProvider', - debugGetCreateSourceHash: - const bool.fromEnvironment('dart.vm.product') - ? null - : _$movieDetailsHash, + debugGetCreateSourceHash: const bool.fromEnvironment('dart.vm.product') ? null : _$movieDetailsHash, dependencies: MovieDetailsFamily._dependencies, - allTransitiveDependencies: - MovieDetailsFamily._allTransitiveDependencies, + allTransitiveDependencies: MovieDetailsFamily._allTransitiveDependencies, arg: arg, ); @@ -138,8 +131,7 @@ class MovieDetailsProvider } @override - AutoDisposeNotifierProviderElement - createElement() { + AutoDisposeNotifierProviderElement createElement() { return _MovieDetailsProviderElement(this); } @@ -164,8 +156,7 @@ mixin MovieDetailsRef on AutoDisposeNotifierProviderRef { String get arg; } -class _MovieDetailsProviderElement - extends AutoDisposeNotifierProviderElement +class _MovieDetailsProviderElement extends AutoDisposeNotifierProviderElement with MovieDetailsRef { _MovieDetailsProviderElement(super.provider); diff --git a/lib/providers/library_filters_provider.g.dart b/lib/providers/library_filters_provider.g.dart index 7e9331ff8..1b73764d3 100644 --- a/lib/providers/library_filters_provider.g.dart +++ b/lib/providers/library_filters_provider.g.dart @@ -29,8 +29,7 @@ class _SystemHash { } } -abstract class _$LibraryFilters - extends BuildlessAutoDisposeNotifier> { +abstract class _$LibraryFilters extends BuildlessAutoDisposeNotifier> { late final List ids; List build( @@ -73,16 +72,14 @@ class LibraryFiltersFamily extends Family> { static const Iterable? _allTransitiveDependencies = null; @override - Iterable? get allTransitiveDependencies => - _allTransitiveDependencies; + Iterable? get allTransitiveDependencies => _allTransitiveDependencies; @override String? get name => r'libraryFiltersProvider'; } /// See also [LibraryFilters]. -class LibraryFiltersProvider extends AutoDisposeNotifierProviderImpl< - LibraryFilters, List> { +class LibraryFiltersProvider extends AutoDisposeNotifierProviderImpl> { /// See also [LibraryFilters]. LibraryFiltersProvider( List ids, @@ -90,13 +87,9 @@ class LibraryFiltersProvider extends AutoDisposeNotifierProviderImpl< () => LibraryFilters()..ids = ids, from: libraryFiltersProvider, name: r'libraryFiltersProvider', - debugGetCreateSourceHash: - const bool.fromEnvironment('dart.vm.product') - ? null - : _$libraryFiltersHash, + debugGetCreateSourceHash: const bool.fromEnvironment('dart.vm.product') ? null : _$libraryFiltersHash, dependencies: LibraryFiltersFamily._dependencies, - allTransitiveDependencies: - LibraryFiltersFamily._allTransitiveDependencies, + allTransitiveDependencies: LibraryFiltersFamily._allTransitiveDependencies, ids: ids, ); @@ -138,8 +131,7 @@ class LibraryFiltersProvider extends AutoDisposeNotifierProviderImpl< } @override - AutoDisposeNotifierProviderElement> - createElement() { + AutoDisposeNotifierProviderElement> createElement() { return _LibraryFiltersProviderElement(this); } @@ -159,14 +151,13 @@ class LibraryFiltersProvider extends AutoDisposeNotifierProviderImpl< @Deprecated('Will be removed in 3.0. Use Ref instead') // ignore: unused_element -mixin LibraryFiltersRef - on AutoDisposeNotifierProviderRef> { +mixin LibraryFiltersRef on AutoDisposeNotifierProviderRef> { /// The parameter `ids` of this provider. List get ids; } -class _LibraryFiltersProviderElement extends AutoDisposeNotifierProviderElement< - LibraryFilters, List> with LibraryFiltersRef { +class _LibraryFiltersProviderElement + extends AutoDisposeNotifierProviderElement> with LibraryFiltersRef { _LibraryFiltersProviderElement(super.provider); @override diff --git a/lib/providers/library_screen_provider.freezed.dart b/lib/providers/library_screen_provider.freezed.dart index 7fb9a63f7..f0267ee36 100644 --- a/lib/providers/library_screen_provider.freezed.dart +++ b/lib/providers/library_screen_provider.freezed.dart @@ -26,8 +26,7 @@ mixin _$LibraryScreenModel { @JsonKey(includeFromJson: false, includeToJson: false) @pragma('vm:prefer-inline') $LibraryScreenModelCopyWith get copyWith => - _$LibraryScreenModelCopyWithImpl( - this as LibraryScreenModel, _$identity); + _$LibraryScreenModelCopyWithImpl(this as LibraryScreenModel, _$identity); @override String toString() { @@ -37,8 +36,7 @@ mixin _$LibraryScreenModel { /// @nodoc abstract mixin class $LibraryScreenModelCopyWith<$Res> { - factory $LibraryScreenModelCopyWith( - LibraryScreenModel value, $Res Function(LibraryScreenModel) _then) = + factory $LibraryScreenModelCopyWith(LibraryScreenModel value, $Res Function(LibraryScreenModel) _then) = _$LibraryScreenModelCopyWithImpl; @useResult $Res call( @@ -51,8 +49,7 @@ abstract mixin class $LibraryScreenModelCopyWith<$Res> { } /// @nodoc -class _$LibraryScreenModelCopyWithImpl<$Res> - implements $LibraryScreenModelCopyWith<$Res> { +class _$LibraryScreenModelCopyWithImpl<$Res> implements $LibraryScreenModelCopyWith<$Res> { _$LibraryScreenModelCopyWithImpl(this._self, this._then); final LibraryScreenModel _self; @@ -192,21 +189,16 @@ extension LibraryScreenModelPatterns on LibraryScreenModel { @optionalTypeArgs TResult maybeWhen( - TResult Function( - List views, - ViewModel? selectedViewModel, - Set viewType, - List recommendations, - List genres, - List favourites)? + TResult Function(List views, ViewModel? selectedViewModel, Set viewType, + List recommendations, List genres, List favourites)? $default, { required TResult orElse(), }) { final _that = this; switch (_that) { case _LibraryScreenModel() when $default != null: - return $default(_that.views, _that.selectedViewModel, _that.viewType, - _that.recommendations, _that.genres, _that.favourites); + return $default(_that.views, _that.selectedViewModel, _that.viewType, _that.recommendations, _that.genres, + _that.favourites); case _: return orElse(); } @@ -227,20 +219,15 @@ extension LibraryScreenModelPatterns on LibraryScreenModel { @optionalTypeArgs TResult when( - TResult Function( - List views, - ViewModel? selectedViewModel, - Set viewType, - List recommendations, - List genres, - List favourites) + TResult Function(List views, ViewModel? selectedViewModel, Set viewType, + List recommendations, List genres, List favourites) $default, ) { final _that = this; switch (_that) { case _LibraryScreenModel(): - return $default(_that.views, _that.selectedViewModel, _that.viewType, - _that.recommendations, _that.genres, _that.favourites); + return $default(_that.views, _that.selectedViewModel, _that.viewType, _that.recommendations, _that.genres, + _that.favourites); case _: throw StateError('Unexpected subclass'); } @@ -260,20 +247,15 @@ extension LibraryScreenModelPatterns on LibraryScreenModel { @optionalTypeArgs TResult? whenOrNull( - TResult? Function( - List views, - ViewModel? selectedViewModel, - Set viewType, - List recommendations, - List genres, - List favourites)? + TResult? Function(List views, ViewModel? selectedViewModel, Set viewType, + List recommendations, List genres, List favourites)? $default, ) { final _that = this; switch (_that) { case _LibraryScreenModel() when $default != null: - return $default(_that.views, _that.selectedViewModel, _that.viewType, - _that.recommendations, _that.genres, _that.favourites); + return $default(_that.views, _that.selectedViewModel, _that.viewType, _that.recommendations, _that.genres, + _that.favourites); case _: return null; } @@ -286,10 +268,7 @@ class _LibraryScreenModel implements LibraryScreenModel { _LibraryScreenModel( {final List views = const [], this.selectedViewModel, - final Set viewType = const { - LibraryViewType.recommended, - LibraryViewType.favourites - }, + final Set viewType = const {LibraryViewType.recommended, LibraryViewType.favourites}, final List recommendations = const [], final List genres = const [], final List favourites = const []}) @@ -361,10 +340,8 @@ class _LibraryScreenModel implements LibraryScreenModel { } /// @nodoc -abstract mixin class _$LibraryScreenModelCopyWith<$Res> - implements $LibraryScreenModelCopyWith<$Res> { - factory _$LibraryScreenModelCopyWith( - _LibraryScreenModel value, $Res Function(_LibraryScreenModel) _then) = +abstract mixin class _$LibraryScreenModelCopyWith<$Res> implements $LibraryScreenModelCopyWith<$Res> { + factory _$LibraryScreenModelCopyWith(_LibraryScreenModel value, $Res Function(_LibraryScreenModel) _then) = __$LibraryScreenModelCopyWithImpl; @override @useResult @@ -378,8 +355,7 @@ abstract mixin class _$LibraryScreenModelCopyWith<$Res> } /// @nodoc -class __$LibraryScreenModelCopyWithImpl<$Res> - implements _$LibraryScreenModelCopyWith<$Res> { +class __$LibraryScreenModelCopyWithImpl<$Res> implements _$LibraryScreenModelCopyWith<$Res> { __$LibraryScreenModelCopyWithImpl(this._self, this._then); final _LibraryScreenModel _self; diff --git a/lib/providers/library_screen_provider.g.dart b/lib/providers/library_screen_provider.g.dart index 0684c20e4..9e8d33c7a 100644 --- a/lib/providers/library_screen_provider.g.dart +++ b/lib/providers/library_screen_provider.g.dart @@ -6,17 +6,14 @@ part of 'library_screen_provider.dart'; // RiverpodGenerator // ************************************************************************** -String _$libraryScreenHash() => r'a436b76bb61f67ad24f86d0b80d63cbb29630220'; +String _$libraryScreenHash() => r'5841098435816a9d30708538cba5aaa8f59834aa'; /// See also [LibraryScreen]. @ProviderFor(LibraryScreen) -final libraryScreenProvider = - NotifierProvider.internal( +final libraryScreenProvider = NotifierProvider.internal( LibraryScreen.new, name: r'libraryScreenProvider', - debugGetCreateSourceHash: const bool.fromEnvironment('dart.vm.product') - ? null - : _$libraryScreenHash, + debugGetCreateSourceHash: const bool.fromEnvironment('dart.vm.product') ? null : _$libraryScreenHash, dependencies: null, allTransitiveDependencies: null, ); diff --git a/lib/providers/live_tv_provider.g.dart b/lib/providers/live_tv_provider.g.dart index 42a76e9aa..3b32600bd 100644 --- a/lib/providers/live_tv_provider.g.dart +++ b/lib/providers/live_tv_provider.g.dart @@ -13,8 +13,7 @@ String _$liveTvHash() => r'06fb75eeafd5f2d1bc860c2da7b7ca493a58d743'; final liveTvProvider = NotifierProvider.internal( LiveTv.new, name: r'liveTvProvider', - debugGetCreateSourceHash: - const bool.fromEnvironment('dart.vm.product') ? null : _$liveTvHash, + debugGetCreateSourceHash: const bool.fromEnvironment('dart.vm.product') ? null : _$liveTvHash, dependencies: null, allTransitiveDependencies: null, ); diff --git a/lib/providers/lock_screen_provider.dart b/lib/providers/lock_screen_provider.dart index e69de29bb..8b1378917 100644 --- a/lib/providers/lock_screen_provider.dart +++ b/lib/providers/lock_screen_provider.dart @@ -0,0 +1 @@ + diff --git a/lib/providers/seerr/seerr_details_provider.freezed.dart b/lib/providers/seerr/seerr_details_provider.freezed.dart index f201e9f4b..feeae81e5 100644 --- a/lib/providers/seerr/seerr_details_provider.freezed.dart +++ b/lib/providers/seerr/seerr_details_provider.freezed.dart @@ -36,8 +36,7 @@ mixin _$SeerrDetailsModel { @JsonKey(includeFromJson: false, includeToJson: false) @pragma('vm:prefer-inline') $SeerrDetailsModelCopyWith get copyWith => - _$SeerrDetailsModelCopyWithImpl( - this as SeerrDetailsModel, _$identity); + _$SeerrDetailsModelCopyWithImpl(this as SeerrDetailsModel, _$identity); @override String toString() { @@ -47,8 +46,7 @@ mixin _$SeerrDetailsModel { /// @nodoc abstract mixin class $SeerrDetailsModelCopyWith<$Res> { - factory $SeerrDetailsModelCopyWith( - SeerrDetailsModel value, $Res Function(SeerrDetailsModel) _then) = + factory $SeerrDetailsModelCopyWith(SeerrDetailsModel value, $Res Function(SeerrDetailsModel) _then) = _$SeerrDetailsModelCopyWithImpl; @useResult $Res call( @@ -73,8 +71,7 @@ abstract mixin class $SeerrDetailsModelCopyWith<$Res> { } /// @nodoc -class _$SeerrDetailsModelCopyWithImpl<$Res> - implements $SeerrDetailsModelCopyWith<$Res> { +class _$SeerrDetailsModelCopyWithImpl<$Res> implements $SeerrDetailsModelCopyWith<$Res> { _$SeerrDetailsModelCopyWithImpl(this._self, this._then); final SeerrDetailsModel _self; @@ -567,10 +564,8 @@ class _SeerrDetailsModel extends SeerrDetailsModel { } /// @nodoc -abstract mixin class _$SeerrDetailsModelCopyWith<$Res> - implements $SeerrDetailsModelCopyWith<$Res> { - factory _$SeerrDetailsModelCopyWith( - _SeerrDetailsModel value, $Res Function(_SeerrDetailsModel) _then) = +abstract mixin class _$SeerrDetailsModelCopyWith<$Res> implements $SeerrDetailsModelCopyWith<$Res> { + factory _$SeerrDetailsModelCopyWith(_SeerrDetailsModel value, $Res Function(_SeerrDetailsModel) _then) = __$SeerrDetailsModelCopyWithImpl; @override @useResult @@ -597,8 +592,7 @@ abstract mixin class _$SeerrDetailsModelCopyWith<$Res> } /// @nodoc -class __$SeerrDetailsModelCopyWithImpl<$Res> - implements _$SeerrDetailsModelCopyWith<$Res> { +class __$SeerrDetailsModelCopyWithImpl<$Res> implements _$SeerrDetailsModelCopyWith<$Res> { __$SeerrDetailsModelCopyWithImpl(this._self, this._then); final _SeerrDetailsModel _self; diff --git a/lib/providers/seerr/seerr_details_provider.g.dart b/lib/providers/seerr/seerr_details_provider.g.dart index 752461d09..389c11b19 100644 --- a/lib/providers/seerr/seerr_details_provider.g.dart +++ b/lib/providers/seerr/seerr_details_provider.g.dart @@ -29,8 +29,7 @@ class _SystemHash { } } -abstract class _$SeerrDetails - extends BuildlessAutoDisposeNotifier { +abstract class _$SeerrDetails extends BuildlessAutoDisposeNotifier { late final int tmdbId; late final SeerrMediaType mediaType; late final SeerrDashboardPosterModel? poster; @@ -83,16 +82,14 @@ class SeerrDetailsFamily extends Family { static const Iterable? _allTransitiveDependencies = null; @override - Iterable? get allTransitiveDependencies => - _allTransitiveDependencies; + Iterable? get allTransitiveDependencies => _allTransitiveDependencies; @override String? get name => r'seerrDetailsProvider'; } /// See also [SeerrDetails]. -class SeerrDetailsProvider - extends AutoDisposeNotifierProviderImpl { +class SeerrDetailsProvider extends AutoDisposeNotifierProviderImpl { /// See also [SeerrDetails]. SeerrDetailsProvider({ required int tmdbId, @@ -105,13 +102,9 @@ class SeerrDetailsProvider ..poster = poster, from: seerrDetailsProvider, name: r'seerrDetailsProvider', - debugGetCreateSourceHash: - const bool.fromEnvironment('dart.vm.product') - ? null - : _$seerrDetailsHash, + debugGetCreateSourceHash: const bool.fromEnvironment('dart.vm.product') ? null : _$seerrDetailsHash, dependencies: SeerrDetailsFamily._dependencies, - allTransitiveDependencies: - SeerrDetailsFamily._allTransitiveDependencies, + allTransitiveDependencies: SeerrDetailsFamily._allTransitiveDependencies, tmdbId: tmdbId, mediaType: mediaType, poster: poster, @@ -166,8 +159,7 @@ class SeerrDetailsProvider } @override - AutoDisposeNotifierProviderElement - createElement() { + AutoDisposeNotifierProviderElement createElement() { return _SeerrDetailsProviderElement(this); } @@ -203,8 +195,7 @@ mixin SeerrDetailsRef on AutoDisposeNotifierProviderRef { SeerrDashboardPosterModel? get poster; } -class _SeerrDetailsProviderElement - extends AutoDisposeNotifierProviderElement +class _SeerrDetailsProviderElement extends AutoDisposeNotifierProviderElement with SeerrDetailsRef { _SeerrDetailsProviderElement(super.provider); @@ -213,8 +204,7 @@ class _SeerrDetailsProviderElement @override SeerrMediaType get mediaType => (origin as SeerrDetailsProvider).mediaType; @override - SeerrDashboardPosterModel? get poster => - (origin as SeerrDetailsProvider).poster; + SeerrDashboardPosterModel? get poster => (origin as SeerrDetailsProvider).poster; } // ignore_for_file: type=lint // ignore_for_file: subtype_of_sealed_class, invalid_use_of_internal_member, invalid_use_of_visible_for_testing_member, deprecated_member_use_from_same_package diff --git a/lib/providers/seerr/seerr_request_provider.freezed.dart b/lib/providers/seerr/seerr_request_provider.freezed.dart index f10666637..c8af86b0e 100644 --- a/lib/providers/seerr/seerr_request_provider.freezed.dart +++ b/lib/providers/seerr/seerr_request_provider.freezed.dart @@ -40,8 +40,7 @@ mixin _$SeerrRequestModel { @JsonKey(includeFromJson: false, includeToJson: false) @pragma('vm:prefer-inline') $SeerrRequestModelCopyWith get copyWith => - _$SeerrRequestModelCopyWithImpl( - this as SeerrRequestModel, _$identity); + _$SeerrRequestModelCopyWithImpl(this as SeerrRequestModel, _$identity); @override String toString() { @@ -51,8 +50,7 @@ mixin _$SeerrRequestModel { /// @nodoc abstract mixin class $SeerrRequestModelCopyWith<$Res> { - factory $SeerrRequestModelCopyWith( - SeerrRequestModel value, $Res Function(SeerrRequestModel) _then) = + factory $SeerrRequestModelCopyWith(SeerrRequestModel value, $Res Function(SeerrRequestModel) _then) = _$SeerrRequestModelCopyWithImpl; @useResult $Res call( @@ -85,8 +83,7 @@ abstract mixin class $SeerrRequestModelCopyWith<$Res> { } /// @nodoc -class _$SeerrRequestModelCopyWithImpl<$Res> - implements $SeerrRequestModelCopyWith<$Res> { +class _$SeerrRequestModelCopyWithImpl<$Res> implements $SeerrRequestModelCopyWith<$Res> { _$SeerrRequestModelCopyWithImpl(this._self, this._then); final SeerrRequestModel _self; @@ -211,8 +208,7 @@ class _$SeerrRequestModelCopyWithImpl<$Res> return null; } - return $SeerrSonarrServerCopyWith<$Res>(_self.selectedSonarrServer!, - (value) { + return $SeerrSonarrServerCopyWith<$Res>(_self.selectedSonarrServer!, (value) { return _then(_self.copyWith(selectedSonarrServer: value)); }); } @@ -226,8 +222,7 @@ class _$SeerrRequestModelCopyWithImpl<$Res> return null; } - return $SeerrRadarrServerCopyWith<$Res>(_self.selectedRadarrServer!, - (value) { + return $SeerrRadarrServerCopyWith<$Res>(_self.selectedRadarrServer!, (value) { return _then(_self.copyWith(selectedRadarrServer: value)); }); } @@ -703,10 +698,8 @@ class _SeerrRequestModel extends SeerrRequestModel { } /// @nodoc -abstract mixin class _$SeerrRequestModelCopyWith<$Res> - implements $SeerrRequestModelCopyWith<$Res> { - factory _$SeerrRequestModelCopyWith( - _SeerrRequestModel value, $Res Function(_SeerrRequestModel) _then) = +abstract mixin class _$SeerrRequestModelCopyWith<$Res> implements $SeerrRequestModelCopyWith<$Res> { + factory _$SeerrRequestModelCopyWith(_SeerrRequestModel value, $Res Function(_SeerrRequestModel) _then) = __$SeerrRequestModelCopyWithImpl; @override @useResult @@ -745,8 +738,7 @@ abstract mixin class _$SeerrRequestModelCopyWith<$Res> } /// @nodoc -class __$SeerrRequestModelCopyWithImpl<$Res> - implements _$SeerrRequestModelCopyWith<$Res> { +class __$SeerrRequestModelCopyWithImpl<$Res> implements _$SeerrRequestModelCopyWith<$Res> { __$SeerrRequestModelCopyWithImpl(this._self, this._then); final _SeerrRequestModel _self; @@ -871,8 +863,7 @@ class __$SeerrRequestModelCopyWithImpl<$Res> return null; } - return $SeerrSonarrServerCopyWith<$Res>(_self.selectedSonarrServer!, - (value) { + return $SeerrSonarrServerCopyWith<$Res>(_self.selectedSonarrServer!, (value) { return _then(_self.copyWith(selectedSonarrServer: value)); }); } @@ -886,8 +877,7 @@ class __$SeerrRequestModelCopyWithImpl<$Res> return null; } - return $SeerrRadarrServerCopyWith<$Res>(_self.selectedRadarrServer!, - (value) { + return $SeerrRadarrServerCopyWith<$Res>(_self.selectedRadarrServer!, (value) { return _then(_self.copyWith(selectedRadarrServer: value)); }); } diff --git a/lib/providers/seerr/seerr_request_provider.g.dart b/lib/providers/seerr/seerr_request_provider.g.dart index ca6f517e0..b5e325585 100644 --- a/lib/providers/seerr/seerr_request_provider.g.dart +++ b/lib/providers/seerr/seerr_request_provider.g.dart @@ -6,16 +6,14 @@ part of 'seerr_request_provider.dart'; // RiverpodGenerator // ************************************************************************** -String _$seerrRequestHash() => r'fe55319a6ed1699d5ce76ba51f480049cbc495ca'; +String _$seerrRequestHash() => r'89604c3fa7ae8c3cd68218b8fe89c1df284aea5d'; /// See also [SeerrRequest]. @ProviderFor(SeerrRequest) -final seerrRequestProvider = - AutoDisposeNotifierProvider.internal( +final seerrRequestProvider = AutoDisposeNotifierProvider.internal( SeerrRequest.new, name: r'seerrRequestProvider', - debugGetCreateSourceHash: - const bool.fromEnvironment('dart.vm.product') ? null : _$seerrRequestHash, + debugGetCreateSourceHash: const bool.fromEnvironment('dart.vm.product') ? null : _$seerrRequestHash, dependencies: null, allTransitiveDependencies: null, ); diff --git a/lib/providers/seerr_api_provider.g.dart b/lib/providers/seerr_api_provider.g.dart index 4f11f3a66..9915ddfbf 100644 --- a/lib/providers/seerr_api_provider.g.dart +++ b/lib/providers/seerr_api_provider.g.dart @@ -10,12 +10,10 @@ String _$seerrApiHash() => r'a0579ab868cc9021e4c3e8830d6c1a6a614a055c'; /// See also [SeerrApi]. @ProviderFor(SeerrApi) -final seerrApiProvider = - AutoDisposeNotifierProvider.internal( +final seerrApiProvider = AutoDisposeNotifierProvider.internal( SeerrApi.new, name: r'seerrApiProvider', - debugGetCreateSourceHash: - const bool.fromEnvironment('dart.vm.product') ? null : _$seerrApiHash, + debugGetCreateSourceHash: const bool.fromEnvironment('dart.vm.product') ? null : _$seerrApiHash, dependencies: null, allTransitiveDependencies: null, ); diff --git a/lib/providers/seerr_dashboard_provider.g.dart b/lib/providers/seerr_dashboard_provider.g.dart index 8089d24bb..5ce7a4f18 100644 --- a/lib/providers/seerr_dashboard_provider.g.dart +++ b/lib/providers/seerr_dashboard_provider.g.dart @@ -10,13 +10,10 @@ String _$seerrDashboardHash() => r'e04260df2673014d673f2bf6a715ac638c6bdc4e'; /// See also [SeerrDashboard]. @ProviderFor(SeerrDashboard) -final seerrDashboardProvider = - AutoDisposeNotifierProvider.internal( +final seerrDashboardProvider = AutoDisposeNotifierProvider.internal( SeerrDashboard.new, name: r'seerrDashboardProvider', - debugGetCreateSourceHash: const bool.fromEnvironment('dart.vm.product') - ? null - : _$seerrDashboardHash, + debugGetCreateSourceHash: const bool.fromEnvironment('dart.vm.product') ? null : _$seerrDashboardHash, dependencies: null, allTransitiveDependencies: null, ); diff --git a/lib/providers/seerr_search_provider.freezed.dart b/lib/providers/seerr_search_provider.freezed.dart index 70ca5be32..007d0f45c 100644 --- a/lib/providers/seerr_search_provider.freezed.dart +++ b/lib/providers/seerr_search_provider.freezed.dart @@ -33,8 +33,7 @@ mixin _$SeerrSearchModel { @JsonKey(includeFromJson: false, includeToJson: false) @pragma('vm:prefer-inline') $SeerrSearchModelCopyWith get copyWith => - _$SeerrSearchModelCopyWithImpl( - this as SeerrSearchModel, _$identity); + _$SeerrSearchModelCopyWithImpl(this as SeerrSearchModel, _$identity); @override String toString() { @@ -44,8 +43,7 @@ mixin _$SeerrSearchModel { /// @nodoc abstract mixin class $SeerrSearchModelCopyWith<$Res> { - factory $SeerrSearchModelCopyWith( - SeerrSearchModel value, $Res Function(SeerrSearchModel) _then) = + factory $SeerrSearchModelCopyWith(SeerrSearchModel value, $Res Function(SeerrSearchModel) _then) = _$SeerrSearchModelCopyWithImpl; @useResult $Res call( @@ -67,8 +65,7 @@ abstract mixin class $SeerrSearchModelCopyWith<$Res> { } /// @nodoc -class _$SeerrSearchModelCopyWithImpl<$Res> - implements $SeerrSearchModelCopyWith<$Res> { +class _$SeerrSearchModelCopyWithImpl<$Res> implements $SeerrSearchModelCopyWith<$Res> { _$SeerrSearchModelCopyWithImpl(this._self, this._then); final SeerrSearchModel _self; @@ -455,8 +452,7 @@ class _SeerrSearchModel implements SeerrSearchModel { @override @JsonKey() List get watchProviderRegions { - if (_watchProviderRegions is EqualUnmodifiableListView) - return _watchProviderRegions; + if (_watchProviderRegions is EqualUnmodifiableListView) return _watchProviderRegions; // ignore: implicit_dynamic_type return EqualUnmodifiableListView(_watchProviderRegions); } @@ -506,10 +502,8 @@ class _SeerrSearchModel implements SeerrSearchModel { } /// @nodoc -abstract mixin class _$SeerrSearchModelCopyWith<$Res> - implements $SeerrSearchModelCopyWith<$Res> { - factory _$SeerrSearchModelCopyWith( - _SeerrSearchModel value, $Res Function(_SeerrSearchModel) _then) = +abstract mixin class _$SeerrSearchModelCopyWith<$Res> implements $SeerrSearchModelCopyWith<$Res> { + factory _$SeerrSearchModelCopyWith(_SeerrSearchModel value, $Res Function(_SeerrSearchModel) _then) = __$SeerrSearchModelCopyWithImpl; @override @useResult @@ -533,8 +527,7 @@ abstract mixin class _$SeerrSearchModelCopyWith<$Res> } /// @nodoc -class __$SeerrSearchModelCopyWithImpl<$Res> - implements _$SeerrSearchModelCopyWith<$Res> { +class __$SeerrSearchModelCopyWithImpl<$Res> implements _$SeerrSearchModelCopyWith<$Res> { __$SeerrSearchModelCopyWithImpl(this._self, this._then); final _SeerrSearchModel _self; diff --git a/lib/providers/seerr_search_provider.g.dart b/lib/providers/seerr_search_provider.g.dart index dc4463fe1..036340bc4 100644 --- a/lib/providers/seerr_search_provider.g.dart +++ b/lib/providers/seerr_search_provider.g.dart @@ -10,12 +10,10 @@ String _$seerrSearchHash() => r'5daff3516f1e839326485a9c763549829172f194'; /// See also [SeerrSearch]. @ProviderFor(SeerrSearch) -final seerrSearchProvider = - AutoDisposeNotifierProvider.internal( +final seerrSearchProvider = AutoDisposeNotifierProvider.internal( SeerrSearch.new, name: r'seerrSearchProvider', - debugGetCreateSourceHash: - const bool.fromEnvironment('dart.vm.product') ? null : _$seerrSearchHash, + debugGetCreateSourceHash: const bool.fromEnvironment('dart.vm.product') ? null : _$seerrSearchHash, dependencies: null, allTransitiveDependencies: null, ); diff --git a/lib/providers/seerr_service_provider.dart b/lib/providers/seerr_service_provider.dart index 48e244bcc..1fd6af07a 100644 --- a/lib/providers/seerr_service_provider.dart +++ b/lib/providers/seerr_service_provider.dart @@ -1,14 +1,13 @@ import 'dart:io'; import 'package:chopper/chopper.dart'; -import 'package:flutter_riverpod/flutter_riverpod.dart'; - import 'package:fladder/models/items/images_models.dart'; import 'package:fladder/models/seerr/seerr_dashboard_model.dart'; import 'package:fladder/models/seerr/seerr_item_models.dart'; import 'package:fladder/providers/user_provider.dart'; import 'package:fladder/seerr/seerr_chopper_service.dart'; import 'package:fladder/seerr/seerr_models.dart'; +import 'package:flutter_riverpod/flutter_riverpod.dart'; const tmbdUrl = 'https://image.tmdb.org/t/p/original'; @@ -231,7 +230,9 @@ class SeerrService { ); } else { final movieResponse = await movieDetails(tmdbId: tmdbId, language: language); - if (!movieResponse.isSuccessful || movieResponse.body == null) return null; + if (!movieResponse.isSuccessful || movieResponse.body == null) { + return null; + } final details = movieResponse.body!; String? releaseYear; final releaseDate = details.releaseDate; @@ -632,7 +633,8 @@ class SeerrService { SeerrDashboardPosterModel? posterFromDiscoverItem(SeerrDiscoverItem item) => _posterFromDiscoverItem(item); - Future authenticateLocal({required String email, required String password, Map? headers}) async { + Future authenticateLocal( + {required String email, required String password, Map? headers}) async { final response = await _api.authenticateLocal( SeerrAuthLocalBody(email: email, password: password), headers: headers, @@ -647,14 +649,16 @@ class SeerrService { return cookie; } - Future authenticateJellyfin({required String username, required String password, Map? headers}) async { + Future authenticateJellyfin( + {required String username, required String password, Map? headers}) async { final response = await _authenticateJellyfin(username: username, password: password, headers: headers); return _requireSessionCookie(response, label: 'Jellyfin'); } Future logout() async => await _api.logout(); - Future> _authenticateJellyfin({required String username, required String password, Map? headers}) async { + Future> _authenticateJellyfin( + {required String username, required String password, Map? headers}) async { var response = await _api.authenticateJellyfin( SeerrAuthJellyfinBody(username: username, password: password), headers: headers, diff --git a/lib/providers/seerr_user_provider.g.dart b/lib/providers/seerr_user_provider.g.dart index 97e3ff319..7d9411f0d 100644 --- a/lib/providers/seerr_user_provider.g.dart +++ b/lib/providers/seerr_user_provider.g.dart @@ -10,12 +10,10 @@ String _$seerrUserHash() => r'99fd98d6e4f32a4d7eda0567f970714f32023896'; /// See also [SeerrUser]. @ProviderFor(SeerrUser) -final seerrUserProvider = - AutoDisposeNotifierProvider.internal( +final seerrUserProvider = AutoDisposeNotifierProvider.internal( SeerrUser.new, name: r'seerrUserProvider', - debugGetCreateSourceHash: - const bool.fromEnvironment('dart.vm.product') ? null : _$seerrUserHash, + debugGetCreateSourceHash: const bool.fromEnvironment('dart.vm.product') ? null : _$seerrUserHash, dependencies: null, allTransitiveDependencies: null, ); diff --git a/lib/providers/service_provider.dart b/lib/providers/service_provider.dart index 41ee333e7..a4da1a95f 100644 --- a/lib/providers/service_provider.dart +++ b/lib/providers/service_provider.dart @@ -1,12 +1,7 @@ import 'dart:developer'; -import 'package:flutter/foundation.dart'; - import 'package:chopper/chopper.dart'; import 'package:collection/collection.dart'; -import 'package:flutter_riverpod/flutter_riverpod.dart'; -import 'package:http/http.dart' as http; - import 'package:fladder/fake/fake_jellyfin_open_api.dart'; import 'package:fladder/jellyfin/enum_models.dart'; import 'package:fladder/jellyfin/jellyfin_open_api.swagger.dart'; @@ -24,6 +19,9 @@ import 'package:fladder/providers/image_provider.dart'; import 'package:fladder/providers/sync_provider.dart'; import 'package:fladder/providers/user_provider.dart'; import 'package:fladder/util/jellyfin_extension.dart'; +import 'package:flutter/foundation.dart'; +import 'package:flutter_riverpod/flutter_riverpod.dart'; +import 'package:http/http.dart' as http; const _userSettings = "usersettings"; const _client = "fladder"; @@ -675,9 +673,7 @@ class JellyService { return response.body?.items?.map((e) => ItemBaseModel.fromBaseDto(e, ref)).toList() ?? []; } - Future>> itemsItemIdSpecialFeaturesGet({ - required String itemId - }) async { + Future>> itemsItemIdSpecialFeaturesGet({required String itemId}) async { return api.itemsItemIdSpecialFeaturesGet(itemId: itemId, userId: account?.id); } @@ -1219,7 +1215,9 @@ class JellyService { (e) { final parsed = Uri.tryParse(e); if (parsed == null) return ''; - if (parsed.hasScheme && parsed.host.isNotEmpty) return parsed.toString(); + if (parsed.hasScheme && parsed.host.isNotEmpty) { + return parsed.toString(); + } return buildServerUrl( ref, pathSegments: [ diff --git a/lib/providers/session_info_provider.freezed.dart b/lib/providers/session_info_provider.freezed.dart index 04e9ee0f4..4976ffcab 100644 --- a/lib/providers/session_info_provider.freezed.dart +++ b/lib/providers/session_info_provider.freezed.dart @@ -119,8 +119,7 @@ extension SessionInfoModelPatterns on SessionInfoModel { @optionalTypeArgs TResult maybeWhen( - TResult Function(String? playbackModel, TranscodingInfo? transCodeInfo)? - $default, { + TResult Function(String? playbackModel, TranscodingInfo? transCodeInfo)? $default, { required TResult orElse(), }) { final _that = this; @@ -147,8 +146,7 @@ extension SessionInfoModelPatterns on SessionInfoModel { @optionalTypeArgs TResult when( - TResult Function(String? playbackModel, TranscodingInfo? transCodeInfo) - $default, + TResult Function(String? playbackModel, TranscodingInfo? transCodeInfo) $default, ) { final _that = this; switch (_that) { @@ -173,8 +171,7 @@ extension SessionInfoModelPatterns on SessionInfoModel { @optionalTypeArgs TResult? whenOrNull( - TResult? Function(String? playbackModel, TranscodingInfo? transCodeInfo)? - $default, + TResult? Function(String? playbackModel, TranscodingInfo? transCodeInfo)? $default, ) { final _that = this; switch (_that) { @@ -190,8 +187,7 @@ extension SessionInfoModelPatterns on SessionInfoModel { @JsonSerializable() class _SessionInfoModel extends SessionInfoModel { _SessionInfoModel({this.playbackModel, this.transCodeInfo}) : super._(); - factory _SessionInfoModel.fromJson(Map json) => - _$SessionInfoModelFromJson(json); + factory _SessionInfoModel.fromJson(Map json) => _$SessionInfoModelFromJson(json); @override final String? playbackModel; diff --git a/lib/providers/session_info_provider.g.dart b/lib/providers/session_info_provider.g.dart index 00432075b..e98c37111 100644 --- a/lib/providers/session_info_provider.g.dart +++ b/lib/providers/session_info_provider.g.dart @@ -6,17 +6,14 @@ part of 'session_info_provider.dart'; // JsonSerializableGenerator // ************************************************************************** -_SessionInfoModel _$SessionInfoModelFromJson(Map json) => - _SessionInfoModel( +_SessionInfoModel _$SessionInfoModelFromJson(Map json) => _SessionInfoModel( playbackModel: json['playbackModel'] as String?, transCodeInfo: json['transCodeInfo'] == null ? null - : TranscodingInfo.fromJson( - json['transCodeInfo'] as Map), + : TranscodingInfo.fromJson(json['transCodeInfo'] as Map), ); -Map _$SessionInfoModelToJson(_SessionInfoModel instance) => - { +Map _$SessionInfoModelToJson(_SessionInfoModel instance) => { 'playbackModel': instance.playbackModel, 'transCodeInfo': instance.transCodeInfo, }; @@ -29,12 +26,10 @@ String _$sessionInfoHash() => r'024da7f8d05fb98f6e2e5395ed06c1cc9d003f79'; /// See also [SessionInfo]. @ProviderFor(SessionInfo) -final sessionInfoProvider = - AutoDisposeNotifierProvider.internal( +final sessionInfoProvider = AutoDisposeNotifierProvider.internal( SessionInfo.new, name: r'sessionInfoProvider', - debugGetCreateSourceHash: - const bool.fromEnvironment('dart.vm.product') ? null : _$sessionInfoHash, + debugGetCreateSourceHash: const bool.fromEnvironment('dart.vm.product') ? null : _$sessionInfoHash, dependencies: null, allTransitiveDependencies: null, ); diff --git a/lib/providers/sync/background_download_provider.g.dart b/lib/providers/sync/background_download_provider.g.dart index 27ffbc405..d8e03e4e6 100644 --- a/lib/providers/sync/background_download_provider.g.dart +++ b/lib/providers/sync/background_download_provider.g.dart @@ -6,18 +6,14 @@ part of 'background_download_provider.dart'; // RiverpodGenerator // ************************************************************************** -String _$backgroundDownloaderHash() => - r'4dcf61b6439ce1251d42abc80b99e53fe97d7465'; +String _$backgroundDownloaderHash() => r'4dcf61b6439ce1251d42abc80b99e53fe97d7465'; /// See also [BackgroundDownloader]. @ProviderFor(BackgroundDownloader) -final backgroundDownloaderProvider = - NotifierProvider.internal( +final backgroundDownloaderProvider = NotifierProvider.internal( BackgroundDownloader.new, name: r'backgroundDownloaderProvider', - debugGetCreateSourceHash: const bool.fromEnvironment('dart.vm.product') - ? null - : _$backgroundDownloaderHash, + debugGetCreateSourceHash: const bool.fromEnvironment('dart.vm.product') ? null : _$backgroundDownloaderHash, dependencies: null, allTransitiveDependencies: null, ); diff --git a/lib/providers/sync/sync_provider_helpers.g.dart b/lib/providers/sync/sync_provider_helpers.g.dart index 08adeae4c..4abf478a3 100644 --- a/lib/providers/sync/sync_provider_helpers.g.dart +++ b/lib/providers/sync/sync_provider_helpers.g.dart @@ -64,8 +64,7 @@ class SyncedItemFamily extends Family> { static const Iterable? _allTransitiveDependencies = null; @override - Iterable? get allTransitiveDependencies => - _allTransitiveDependencies; + Iterable? get allTransitiveDependencies => _allTransitiveDependencies; @override String? get name => r'syncedItemProvider'; @@ -83,13 +82,9 @@ class SyncedItemProvider extends AutoDisposeStreamProvider { ), from: syncedItemProvider, name: r'syncedItemProvider', - debugGetCreateSourceHash: - const bool.fromEnvironment('dart.vm.product') - ? null - : _$syncedItemHash, + debugGetCreateSourceHash: const bool.fromEnvironment('dart.vm.product') ? null : _$syncedItemHash, dependencies: SyncedItemFamily._dependencies, - allTransitiveDependencies: - SyncedItemFamily._allTransitiveDependencies, + allTransitiveDependencies: SyncedItemFamily._allTransitiveDependencies, item: item, ); @@ -149,8 +144,7 @@ mixin SyncedItemRef on AutoDisposeStreamProviderRef { ItemBaseModel? get item; } -class _SyncedItemProviderElement - extends AutoDisposeStreamProviderElement with SyncedItemRef { +class _SyncedItemProviderElement extends AutoDisposeStreamProviderElement with SyncedItemRef { _SyncedItemProviderElement(super.provider); @override @@ -159,8 +153,7 @@ class _SyncedItemProviderElement String _$syncedChildrenHash() => r'75e25432f33e0fe31708618b7ba744430523a4d3'; -abstract class _$SyncedChildren - extends BuildlessAutoDisposeAsyncNotifier> { +abstract class _$SyncedChildren extends BuildlessAutoDisposeAsyncNotifier> { late final SyncedItem item; FutureOr> build( @@ -203,16 +196,14 @@ class SyncedChildrenFamily extends Family>> { static const Iterable? _allTransitiveDependencies = null; @override - Iterable? get allTransitiveDependencies => - _allTransitiveDependencies; + Iterable? get allTransitiveDependencies => _allTransitiveDependencies; @override String? get name => r'syncedChildrenProvider'; } /// See also [SyncedChildren]. -class SyncedChildrenProvider extends AutoDisposeAsyncNotifierProviderImpl< - SyncedChildren, List> { +class SyncedChildrenProvider extends AutoDisposeAsyncNotifierProviderImpl> { /// See also [SyncedChildren]. SyncedChildrenProvider( SyncedItem item, @@ -220,13 +211,9 @@ class SyncedChildrenProvider extends AutoDisposeAsyncNotifierProviderImpl< () => SyncedChildren()..item = item, from: syncedChildrenProvider, name: r'syncedChildrenProvider', - debugGetCreateSourceHash: - const bool.fromEnvironment('dart.vm.product') - ? null - : _$syncedChildrenHash, + debugGetCreateSourceHash: const bool.fromEnvironment('dart.vm.product') ? null : _$syncedChildrenHash, dependencies: SyncedChildrenFamily._dependencies, - allTransitiveDependencies: - SyncedChildrenFamily._allTransitiveDependencies, + allTransitiveDependencies: SyncedChildrenFamily._allTransitiveDependencies, item: item, ); @@ -268,8 +255,7 @@ class SyncedChildrenProvider extends AutoDisposeAsyncNotifierProviderImpl< } @override - AutoDisposeAsyncNotifierProviderElement> - createElement() { + AutoDisposeAsyncNotifierProviderElement> createElement() { return _SyncedChildrenProviderElement(this); } @@ -289,26 +275,22 @@ class SyncedChildrenProvider extends AutoDisposeAsyncNotifierProviderImpl< @Deprecated('Will be removed in 3.0. Use Ref instead') // ignore: unused_element -mixin SyncedChildrenRef - on AutoDisposeAsyncNotifierProviderRef> { +mixin SyncedChildrenRef on AutoDisposeAsyncNotifierProviderRef> { /// The parameter `item` of this provider. SyncedItem get item; } -class _SyncedChildrenProviderElement - extends AutoDisposeAsyncNotifierProviderElement> with SyncedChildrenRef { +class _SyncedChildrenProviderElement extends AutoDisposeAsyncNotifierProviderElement> + with SyncedChildrenRef { _SyncedChildrenProviderElement(super.provider); @override SyncedItem get item => (origin as SyncedChildrenProvider).item; } -String _$syncedNestedChildrenHash() => - r'ea8dd0e694efa6d6ec0c73d699b5fb3e933f9322'; +String _$syncedNestedChildrenHash() => r'ea8dd0e694efa6d6ec0c73d699b5fb3e933f9322'; -abstract class _$SyncedNestedChildren - extends BuildlessAutoDisposeAsyncNotifier> { +abstract class _$SyncedNestedChildren extends BuildlessAutoDisposeAsyncNotifier> { late final SyncedItem item; FutureOr> build( @@ -351,16 +333,15 @@ class SyncedNestedChildrenFamily extends Family>> { static const Iterable? _allTransitiveDependencies = null; @override - Iterable? get allTransitiveDependencies => - _allTransitiveDependencies; + Iterable? get allTransitiveDependencies => _allTransitiveDependencies; @override String? get name => r'syncedNestedChildrenProvider'; } /// See also [SyncedNestedChildren]. -class SyncedNestedChildrenProvider extends AutoDisposeAsyncNotifierProviderImpl< - SyncedNestedChildren, List> { +class SyncedNestedChildrenProvider + extends AutoDisposeAsyncNotifierProviderImpl> { /// See also [SyncedNestedChildren]. SyncedNestedChildrenProvider( SyncedItem item, @@ -368,13 +349,9 @@ class SyncedNestedChildrenProvider extends AutoDisposeAsyncNotifierProviderImpl< () => SyncedNestedChildren()..item = item, from: syncedNestedChildrenProvider, name: r'syncedNestedChildrenProvider', - debugGetCreateSourceHash: - const bool.fromEnvironment('dart.vm.product') - ? null - : _$syncedNestedChildrenHash, + debugGetCreateSourceHash: const bool.fromEnvironment('dart.vm.product') ? null : _$syncedNestedChildrenHash, dependencies: SyncedNestedChildrenFamily._dependencies, - allTransitiveDependencies: - SyncedNestedChildrenFamily._allTransitiveDependencies, + allTransitiveDependencies: SyncedNestedChildrenFamily._allTransitiveDependencies, item: item, ); @@ -416,8 +393,7 @@ class SyncedNestedChildrenProvider extends AutoDisposeAsyncNotifierProviderImpl< } @override - AutoDisposeAsyncNotifierProviderElement> createElement() { + AutoDisposeAsyncNotifierProviderElement> createElement() { return _SyncedNestedChildrenProviderElement(this); } @@ -437,26 +413,23 @@ class SyncedNestedChildrenProvider extends AutoDisposeAsyncNotifierProviderImpl< @Deprecated('Will be removed in 3.0. Use Ref instead') // ignore: unused_element -mixin SyncedNestedChildrenRef - on AutoDisposeAsyncNotifierProviderRef> { +mixin SyncedNestedChildrenRef on AutoDisposeAsyncNotifierProviderRef> { /// The parameter `item` of this provider. SyncedItem get item; } class _SyncedNestedChildrenProviderElement - extends AutoDisposeAsyncNotifierProviderElement> with SyncedNestedChildrenRef { + extends AutoDisposeAsyncNotifierProviderElement> + with SyncedNestedChildrenRef { _SyncedNestedChildrenProviderElement(super.provider); @override SyncedItem get item => (origin as SyncedNestedChildrenProvider).item; } -String _$syncDownloadStatusHash() => - r'39cacaf983e7da79b406b0249f5de4da1e785f9a'; +String _$syncDownloadStatusHash() => r'39cacaf983e7da79b406b0249f5de4da1e785f9a'; -abstract class _$SyncDownloadStatus - extends BuildlessAutoDisposeNotifier { +abstract class _$SyncDownloadStatus extends BuildlessAutoDisposeNotifier { late final SyncedItem arg; late final List children; @@ -504,16 +477,14 @@ class SyncDownloadStatusFamily extends Family { static const Iterable? _allTransitiveDependencies = null; @override - Iterable? get allTransitiveDependencies => - _allTransitiveDependencies; + Iterable? get allTransitiveDependencies => _allTransitiveDependencies; @override String? get name => r'syncDownloadStatusProvider'; } /// See also [SyncDownloadStatus]. -class SyncDownloadStatusProvider extends AutoDisposeNotifierProviderImpl< - SyncDownloadStatus, DownloadStream?> { +class SyncDownloadStatusProvider extends AutoDisposeNotifierProviderImpl { /// See also [SyncDownloadStatus]. SyncDownloadStatusProvider( SyncedItem arg, @@ -524,13 +495,9 @@ class SyncDownloadStatusProvider extends AutoDisposeNotifierProviderImpl< ..children = children, from: syncDownloadStatusProvider, name: r'syncDownloadStatusProvider', - debugGetCreateSourceHash: - const bool.fromEnvironment('dart.vm.product') - ? null - : _$syncDownloadStatusHash, + debugGetCreateSourceHash: const bool.fromEnvironment('dart.vm.product') ? null : _$syncDownloadStatusHash, dependencies: SyncDownloadStatusFamily._dependencies, - allTransitiveDependencies: - SyncDownloadStatusFamily._allTransitiveDependencies, + allTransitiveDependencies: SyncDownloadStatusFamily._allTransitiveDependencies, arg: arg, children: children, ); @@ -579,16 +546,13 @@ class SyncDownloadStatusProvider extends AutoDisposeNotifierProviderImpl< } @override - AutoDisposeNotifierProviderElement - createElement() { + AutoDisposeNotifierProviderElement createElement() { return _SyncDownloadStatusProviderElement(this); } @override bool operator ==(Object other) { - return other is SyncDownloadStatusProvider && - other.arg == arg && - other.children == children; + return other is SyncDownloadStatusProvider && other.arg == arg && other.children == children; } @override @@ -611,16 +575,14 @@ mixin SyncDownloadStatusRef on AutoDisposeNotifierProviderRef { List get children; } -class _SyncDownloadStatusProviderElement - extends AutoDisposeNotifierProviderElement with SyncDownloadStatusRef { +class _SyncDownloadStatusProviderElement extends AutoDisposeNotifierProviderElement + with SyncDownloadStatusRef { _SyncDownloadStatusProviderElement(super.provider); @override SyncedItem get arg => (origin as SyncDownloadStatusProvider).arg; @override - List get children => - (origin as SyncDownloadStatusProvider).children; + List get children => (origin as SyncDownloadStatusProvider).children; } String _$syncSizeHash() => r'eeb6ab8dc1fdf5696c06e53f04a0e54ad68c6748'; @@ -673,8 +635,7 @@ class SyncSizeFamily extends Family { static const Iterable? _allTransitiveDependencies = null; @override - Iterable? get allTransitiveDependencies => - _allTransitiveDependencies; + Iterable? get allTransitiveDependencies => _allTransitiveDependencies; @override String? get name => r'syncSizeProvider'; @@ -692,10 +653,7 @@ class SyncSizeProvider extends AutoDisposeNotifierProviderImpl { ..children = children, from: syncSizeProvider, name: r'syncSizeProvider', - debugGetCreateSourceHash: - const bool.fromEnvironment('dart.vm.product') - ? null - : _$syncSizeHash, + debugGetCreateSourceHash: const bool.fromEnvironment('dart.vm.product') ? null : _$syncSizeHash, dependencies: SyncSizeFamily._dependencies, allTransitiveDependencies: SyncSizeFamily._allTransitiveDependencies, arg: arg, @@ -752,9 +710,7 @@ class SyncSizeProvider extends AutoDisposeNotifierProviderImpl { @override bool operator ==(Object other) { - return other is SyncSizeProvider && - other.arg == arg && - other.children == children; + return other is SyncSizeProvider && other.arg == arg && other.children == children; } @override @@ -777,9 +733,7 @@ mixin SyncSizeRef on AutoDisposeNotifierProviderRef { List? get children; } -class _SyncSizeProviderElement - extends AutoDisposeNotifierProviderElement - with SyncSizeRef { +class _SyncSizeProviderElement extends AutoDisposeNotifierProviderElement with SyncSizeRef { _SyncSizeProviderElement(super.provider); @override diff --git a/lib/providers/syncplay/handlers/syncplay_command_handler.dart b/lib/providers/syncplay/handlers/syncplay_command_handler.dart index 780230fb0..d58698d75 100644 --- a/lib/providers/syncplay/handlers/syncplay_command_handler.dart +++ b/lib/providers/syncplay/handlers/syncplay_command_handler.dart @@ -77,8 +77,7 @@ class SyncPlayCommandHandler { _scheduleCommand(command, when, positionTicks); } - bool _isDuplicateCommand( - String when, int positionTicks, String command, String playlistItemId) { + bool _isDuplicateCommand(String when, int positionTicks, String command, String playlistItemId) { if (_lastCommand == null) return false; // For Unpause commands, if we are not currently playing, we should NEVER treat it as a duplicate @@ -93,8 +92,7 @@ class SyncPlayCommandHandler { _lastCommand!.playlistItemId == playlistItemId; } - void _scheduleCommand( - String command, DateTime serverTime, int positionTicks) { + void _scheduleCommand(String command, DateTime serverTime, int positionTicks) { final timeSyncService = timeSync(); if (timeSyncService == null) { log('SyncPlay: Cannot schedule command without time sync'); @@ -123,12 +121,10 @@ class SyncPlayCommandHandler { } else if (delay.inMilliseconds > 5000) { // Suspiciously large delay - might indicate time sync issue log('SyncPlay: Warning - large delay: ${delay.inMilliseconds}ms'); - _commandTimer = - Timer(delay, () => _executeCommand(command, positionTicks)); + _commandTimer = Timer(delay, () => _executeCommand(command, positionTicks)); } else { log('SyncPlay: Scheduling command: $command in ${delay.inMilliseconds}ms'); - _commandTimer = - Timer(delay, () => _executeCommand(command, positionTicks)); + _commandTimer = Timer(delay, () => _executeCommand(command, positionTicks)); } } diff --git a/lib/providers/syncplay/handlers/syncplay_message_handler.dart b/lib/providers/syncplay/handlers/syncplay_message_handler.dart index c52602d50..3ce1fdf32 100644 --- a/lib/providers/syncplay/handlers/syncplay_message_handler.dart +++ b/lib/providers/syncplay/handlers/syncplay_message_handler.dart @@ -9,8 +9,7 @@ import 'package:flutter/material.dart'; typedef ReportReadyCallback = Future Function({bool isPlaying}); /// Callback for starting playback of an item -typedef StartPlaybackCallback = Future Function( - String itemId, int startPositionTicks); +typedef StartPlaybackCallback = Future Function(String itemId, int startPositionTicks); /// Handles SyncPlay group update messages from WebSocket class SyncPlayMessageHandler { @@ -22,6 +21,8 @@ class SyncPlayMessageHandler { required this.getContext, required this.onGroupJoined, required this.onGroupJoinFailed, + this.onGroupLeftOrKicked, + this.onStateUpdateToPlaying, }); final void Function(SyncPlayState Function(SyncPlayState)) onStateUpdate; @@ -32,9 +33,14 @@ class SyncPlayMessageHandler { final void Function() onGroupJoined; final void Function() onGroupJoinFailed; + /// Called when we leave or are kicked so controller can cancel pending commands and clear processing state. + final void Function()? onGroupLeftOrKicked; + + /// Called when group state becomes Playing so controller can ensure player is actually playing (per docs). + final void Function()? onStateUpdateToPlaying; + /// Handle group update message - void handleGroupUpdate( - Map data, SyncPlayState currentState) { + void handleGroupUpdate(Map data, SyncPlayState currentState) { final updateType = data['Type'] as String?; final updateData = data['Data']; @@ -93,22 +99,19 @@ class SyncPlayMessageHandler { final context = getContext(); if (context != null) { - fladderSnackbar(context, - title: context.localized.syncPlayUserJoined(userId)); + fladderSnackbar(context, title: context.localized.syncPlayUserJoined(userId)); } log('SyncPlay: User joined: $userId'); } void _handleUserLeft(String? userId, SyncPlayState currentState) { if (userId == null) return; - final participants = - currentState.participants.where((p) => p != userId).toList(); + final participants = currentState.participants.where((p) => p != userId).toList(); onStateUpdate((state) => state.copyWith(participants: participants)); final context = getContext(); if (context != null) { - fladderSnackbar(context, - title: context.localized.syncPlayUserLeft(userId)); + fladderSnackbar(context, title: context.localized.syncPlayUserLeft(userId)); } log('SyncPlay: User left: $userId'); } @@ -120,7 +123,10 @@ class SyncPlayMessageHandler { groupName: null, groupState: SyncPlayGroupState.idle, participants: [], + isProcessingCommand: false, + processingCommandType: null, )); + onGroupLeftOrKicked?.call(); log('SyncPlay: Left group'); } @@ -131,7 +137,10 @@ class SyncPlayMessageHandler { groupName: null, groupState: SyncPlayGroupState.idle, participants: [], + isProcessingCommand: false, + processingCommandType: null, )); + onGroupLeftOrKicked?.call(); log('SyncPlay: Group does not exist'); // Notify controller that group join failed @@ -145,7 +154,10 @@ class SyncPlayMessageHandler { groupName: null, groupState: SyncPlayGroupState.idle, participants: [], + isProcessingCommand: false, + processingCommandType: null, )); + onGroupLeftOrKicked?.call(); log('SyncPlay: Not in group - server rejected operation'); // Notify controller that group join failed @@ -156,19 +168,25 @@ class SyncPlayMessageHandler { final stateStr = data['State'] as String?; final reason = data['Reason'] as String?; final positionTicks = data['PositionTicks'] as int? ?? 0; + final newGroupState = _parseGroupState(stateStr); onStateUpdate((state) => state.copyWith( - groupState: _parseGroupState(stateStr), + groupState: newGroupState, stateReason: reason, positionTicks: positionTicks, )); log('SyncPlay: State update: $stateStr (reason: $reason)'); - // Handle waiting state - if (_parseGroupState(stateStr) == SyncPlayGroupState.waiting) { + // Handle waiting state (per docs: report Ready for Unpause/Buffer so server can broadcast Unpause) + if (newGroupState == SyncPlayGroupState.waiting) { _handleWaitingState(reason); } + + // Per docs: when state becomes Playing, ensure player is actually playing (recover if Unpause was missed) + if (newGroupState == SyncPlayGroupState.playing) { + onStateUpdateToPlaying?.call(); + } } void _handleWaitingState(String? reason) { @@ -212,9 +230,7 @@ class SyncPlayMessageHandler { // Trigger playback for NewPlaylist/SetCurrentItem regardless of whether item changed // (the same user who set the queue also receives the update and needs to start playing) final shouldTrigger = playingItemId != null && - (reason == 'NewPlaylist' || - reason == 'SetCurrentItem' || - (playingItemId != previousItemId && isPlayingNow)); + (reason == 'NewPlaylist' || reason == 'SetCurrentItem' || (playingItemId != previousItemId && isPlayingNow)); log('SyncPlay: shouldTrigger=$shouldTrigger (reason: $reason)'); diff --git a/lib/providers/syncplay/syncplay_controller.dart b/lib/providers/syncplay/syncplay_controller.dart index 12ec36321..61212190c 100644 --- a/lib/providers/syncplay/syncplay_controller.dart +++ b/lib/providers/syncplay/syncplay_controller.dart @@ -26,13 +26,14 @@ class SyncPlayController { ); _messageHandler = SyncPlayMessageHandler( onStateUpdate: _updateStateWith, - reportReady: ({bool isPlaying = true}) => - reportReady(isPlaying: isPlaying), + reportReady: ({bool isPlaying = true}) => reportReady(isPlaying: isPlaying), startPlayback: _startPlayback, isBuffering: () => _commandHandler.isBuffering?.call() ?? false, getContext: () => getNavigatorKey(_ref)?.currentContext, onGroupJoined: _onGroupJoined, onGroupJoinFailed: _onGroupJoinFailed, + onGroupLeftOrKicked: _onGroupLeftOrKicked, + onStateUpdateToPlaying: _onStateUpdateToPlaying, ); } @@ -59,24 +60,15 @@ class SyncPlayController { Completer? _joinGroupCompleter; // Player callbacks (delegated to command handler) - set onPlay(SyncPlayPlayerCallback? callback) => - _commandHandler.onPlay = callback; - set onPause(SyncPlayPlayerCallback? callback) => - _commandHandler.onPause = callback; - set onSeek(SyncPlaySeekCallback? callback) => - _commandHandler.onSeek = callback; - set onStop(SyncPlayPlayerCallback? callback) => - _commandHandler.onStop = callback; - set getPositionTicks(SyncPlayPositionCallback? callback) => - _commandHandler.getPositionTicks = callback; - set isPlaying(bool Function()? callback) => - _commandHandler.isPlaying = callback; - set isBuffering(bool Function()? callback) => - _commandHandler.isBuffering = callback; - set onSeekRequested(SyncPlaySeekCallback? callback) => - _commandHandler.onSeekRequested = callback; - set onReportReady(SyncPlayReportReadyCallback? callback) => - _commandHandler.onReportReady = callback; + set onPlay(SyncPlayPlayerCallback? callback) => _commandHandler.onPlay = callback; + set onPause(SyncPlayPlayerCallback? callback) => _commandHandler.onPause = callback; + set onSeek(SyncPlaySeekCallback? callback) => _commandHandler.onSeek = callback; + set onStop(SyncPlayPlayerCallback? callback) => _commandHandler.onStop = callback; + set getPositionTicks(SyncPlayPositionCallback? callback) => _commandHandler.getPositionTicks = callback; + set isPlaying(bool Function()? callback) => _commandHandler.isPlaying = callback; + set isBuffering(bool Function()? callback) => _commandHandler.isBuffering = callback; + set onSeekRequested(SyncPlaySeekCallback? callback) => _commandHandler.onSeekRequested = callback; + set onReportReady(SyncPlayReportReadyCallback? callback) => _commandHandler.onReportReady = callback; JellyfinOpenApi get _api => _ref.read(jellyApiProvider).api; @@ -106,8 +98,7 @@ class SyncPlayController { deviceId: user.credentials.deviceId, ); - _wsStateSubscription = - _wsManager!.connectionState.listen(_handleConnectionState); + _wsStateSubscription = _wsManager!.connectionState.listen(_handleConnectionState); _wsMessageSubscription = _wsManager!.messages.listen(_handleMessage); await _wsManager!.connect(); @@ -214,21 +205,56 @@ class SyncPlayController { _joinGroupCompleter?.complete(false); } - /// Leave the current SyncPlay group + /// Called when we leave or are kicked; cancel pending commands and clear processing so playback is not stuck. + void _onGroupLeftOrKicked() { + _commandHandler.cancelPendingCommands(); + _updateStateWith((s) => s.copyWith( + isProcessingCommand: false, + processingCommandType: null, + )); + } + + /// When server reports Playing, ensure player is actually playing (per docs: recover if Unpause command was missed). + void _onStateUpdateToPlaying() { + if (_commandHandler.isPlaying?.call() != true) { + log('SyncPlay: State is Playing but player not playing, triggering play'); + _commandHandler.onPlay?.call(); + } + } + + /// Leave the current SyncPlay group. + /// Resets processing state and cancels pending commands so playback is not stuck (per docs). Future leaveGroup() async { if (!_state.isInGroup) return; try { await _api.syncPlayLeavePost(); _lastGroupId = null; + _commandHandler.cancelPendingCommands(); _updateState(_state.copyWith( isInGroup: false, groupId: null, groupName: null, groupState: SyncPlayGroupState.idle, participants: [], + isProcessingCommand: false, + processingCommandType: null, + positionTicks: 0, + playlistItemId: null, )); + log('SyncPlay: Left group, state reset'); } catch (e) { log('SyncPlay: Failed to leave group: $e'); + // Still reset local state so we are not stuck + _commandHandler.cancelPendingCommands(); + _updateState(_state.copyWith( + isInGroup: false, + groupId: null, + groupName: null, + groupState: SyncPlayGroupState.idle, + participants: [], + isProcessingCommand: false, + processingCommandType: null, + )); } } @@ -242,10 +268,11 @@ class SyncPlayController { } } - /// Request unpause/play + /// Request unpause/play (server will move to Waiting until all clients report Ready, then broadcast Unpause). Future requestUnpause() async { if (!_state.isInGroup) return; try { + log('SyncPlay: Sending Unpause request'); await _api.syncPlayUnpausePost(); } catch (e) { log('SyncPlay: Failed to request unpause: $e'); @@ -282,15 +309,17 @@ class SyncPlayController { } } - /// Report ready state + /// Report ready state (required for server to broadcast Unpause when in Waiting). Future reportReady({bool isPlaying = true}) async { if (!_state.isInGroup) return; try { final when = _timeSync?.localDateToRemote(DateTime.now().toUtc()); + final ticks = _commandHandler.getPositionTicks?.call() ?? 0; + log('SyncPlay: Reporting Ready (isPlaying=$isPlaying, positionTicks=$ticks)'); await _api.syncPlayReadyPost( body: ReadyRequestDto( when: when, - positionTicks: _commandHandler.getPositionTicks?.call() ?? 0, + positionTicks: ticks, isPlaying: isPlaying, playlistItemId: _state.playlistItemId, ), @@ -351,7 +380,9 @@ class SyncPlayController { switch (messageType) { case 'SyncPlayCommand': - _commandHandler.handleCommand(data as Map, _state); + final cmd = (data as Map)['Command'] as String?; + log('SyncPlay: Received SyncPlayCommand: $cmd'); + _commandHandler.handleCommand(data, _state); break; case 'SyncPlayGroupUpdate': log('SyncPlay: GroupUpdate data: $data'); @@ -401,11 +432,10 @@ class SyncPlayController { // Load and play log('SyncPlay: Loading playback item...'); - final loadedCorrectly = - await _ref.read(videoPlayerProvider.notifier).loadPlaybackItem( - playbackModel, - startPosition, - ); + final loadedCorrectly = await _ref.read(videoPlayerProvider.notifier).loadPlaybackItem( + playbackModel, + startPosition, + ); if (!loadedCorrectly) { log('SyncPlay: Failed to load playback item $itemId'); @@ -453,8 +483,7 @@ class SyncPlayController { /// Handle app lifecycle state changes /// Call this from a WidgetsBindingObserver when app state changes - Future handleAppLifecycleChange( - AppLifecycleState lifecycleState) async { + Future handleAppLifecycleChange(AppLifecycleState lifecycleState) async { // On web, we want to stay connected even in background and avoid forced reconnection on resume. if (kIsWeb) return; @@ -462,8 +491,7 @@ class SyncPlayController { case AppLifecycleState.paused: case AppLifecycleState.inactive: // App going to background - remember state for reconnection - _wasConnected = - _wsManager?.currentState == WebSocketConnectionState.connected; + _wasConnected = _wsManager?.currentState == WebSocketConnectionState.connected; log('SyncPlay: App paused, wasConnected=$_wasConnected, lastGroupId=$_lastGroupId'); break; diff --git a/lib/providers/syncplay/syncplay_provider.dart b/lib/providers/syncplay/syncplay_provider.dart index f4c39a1b0..7c06030b0 100644 --- a/lib/providers/syncplay/syncplay_provider.dart +++ b/lib/providers/syncplay/syncplay_provider.dart @@ -6,8 +6,10 @@ import 'package:fladder/providers/syncplay/syncplay_controller.dart'; import 'package:flutter/foundation.dart'; import 'package:flutter/widgets.dart'; import 'package:flutter_riverpod/flutter_riverpod.dart'; +import 'package:freezed_annotation/freezed_annotation.dart'; import 'package:riverpod_annotation/riverpod_annotation.dart'; +part 'syncplay_provider.freezed.dart'; part 'syncplay_provider.g.dart'; /// Lifecycle observer for SyncPlay - handles app background/resume @@ -78,8 +80,7 @@ class SyncPlay extends _$SyncPlay { Future> listGroups() => controller.listGroups(); /// Create a new SyncPlay group - Future createGroup(String groupName) => - controller.createGroup(groupName); + Future createGroup(String groupName) => controller.createGroup(groupName); /// Join an existing group Future joinGroup(String groupId) => controller.joinGroup(groupId); @@ -94,15 +95,13 @@ class SyncPlay extends _$SyncPlay { Future requestUnpause() async => await controller.requestUnpause(); /// Request seek - Future requestSeek(int positionTicks) => - controller.requestSeek(positionTicks); + Future requestSeek(int positionTicks) => controller.requestSeek(positionTicks); /// Report buffering state Future reportBuffering() => controller.reportBuffering(); /// Report ready state - Future reportReady({bool isPlaying = true}) => - controller.reportReady(isPlaying: isPlaying); + Future reportReady({bool isPlaying = true}) => controller.reportReady(isPlaying: isPlaying); /// Set a new queue/playlist Future setNewQueue({ @@ -170,3 +169,39 @@ String? syncPlayGroupName(Ref ref) { SyncPlayGroupState syncPlayGroupState(Ref ref) { return ref.watch(syncPlayProvider.select((s) => s.groupState)); } + +/// Immutable state for the SyncPlay groups list (used by group sheet). +/// Lists are stored unmodifiable so the state cannot be mutated. +@Freezed(copyWith: true) +abstract class SyncPlayGroupsState with _$SyncPlayGroupsState { + const factory SyncPlayGroupsState({ + List? groups, + @Default(false) bool isLoading, + String? error, + }) = _SyncPlayGroupsState; +} + +/// Provider for the list of SyncPlay groups (load/refresh from sheet). +@Riverpod(keepAlive: false) +class SyncPlayGroups extends _$SyncPlayGroups { + @override + SyncPlayGroupsState build() => const SyncPlayGroupsState(isLoading: true); + + Future loadGroups() async { + state = state.copyWith(isLoading: true, error: null); + try { + await ref.read(syncPlayProvider.notifier).connect(); + final groups = await ref.read(syncPlayProvider.notifier).listGroups(); + state = state.copyWith( + groups: List.unmodifiable(groups), + isLoading: false, + ); + } catch (e) { + state = state.copyWith(isLoading: false, error: e.toString()); + } + } + + void setLoading(bool isLoading) { + state = state.copyWith(isLoading: isLoading); + } +} diff --git a/lib/providers/syncplay/syncplay_provider.freezed.dart b/lib/providers/syncplay/syncplay_provider.freezed.dart new file mode 100644 index 000000000..40457a1a4 --- /dev/null +++ b/lib/providers/syncplay/syncplay_provider.freezed.dart @@ -0,0 +1,327 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND +// coverage:ignore-file +// ignore_for_file: type=lint +// ignore_for_file: unused_element, deprecated_member_use, deprecated_member_use_from_same_package, use_function_type_syntax_for_parameters, unnecessary_const, avoid_init_to_null, invalid_override_different_default_values_named, prefer_expression_function_bodies, annotate_overrides, invalid_annotation_target, unnecessary_question_mark + +part of 'syncplay_provider.dart'; + +// ************************************************************************** +// FreezedGenerator +// ************************************************************************** + +// dart format off +T _$identity(T value) => value; + +/// @nodoc +mixin _$SyncPlayGroupsState implements DiagnosticableTreeMixin { + List? get groups; + bool get isLoading; + String? get error; + + /// Create a copy of SyncPlayGroupsState + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) + @pragma('vm:prefer-inline') + $SyncPlayGroupsStateCopyWith get copyWith => + _$SyncPlayGroupsStateCopyWithImpl(this as SyncPlayGroupsState, _$identity); + + @override + void debugFillProperties(DiagnosticPropertiesBuilder properties) { + properties + ..add(DiagnosticsProperty('type', 'SyncPlayGroupsState')) + ..add(DiagnosticsProperty('groups', groups)) + ..add(DiagnosticsProperty('isLoading', isLoading)) + ..add(DiagnosticsProperty('error', error)); + } + + @override + String toString({DiagnosticLevel minLevel = DiagnosticLevel.info}) { + return 'SyncPlayGroupsState(groups: $groups, isLoading: $isLoading, error: $error)'; + } +} + +/// @nodoc +abstract mixin class $SyncPlayGroupsStateCopyWith<$Res> { + factory $SyncPlayGroupsStateCopyWith(SyncPlayGroupsState value, $Res Function(SyncPlayGroupsState) _then) = + _$SyncPlayGroupsStateCopyWithImpl; + @useResult + $Res call({List? groups, bool isLoading, String? error}); +} + +/// @nodoc +class _$SyncPlayGroupsStateCopyWithImpl<$Res> implements $SyncPlayGroupsStateCopyWith<$Res> { + _$SyncPlayGroupsStateCopyWithImpl(this._self, this._then); + + final SyncPlayGroupsState _self; + final $Res Function(SyncPlayGroupsState) _then; + + /// Create a copy of SyncPlayGroupsState + /// with the given fields replaced by the non-null parameter values. + @pragma('vm:prefer-inline') + @override + $Res call({ + Object? groups = freezed, + Object? isLoading = null, + Object? error = freezed, + }) { + return _then(_self.copyWith( + groups: freezed == groups + ? _self.groups + : groups // ignore: cast_nullable_to_non_nullable + as List?, + isLoading: null == isLoading + ? _self.isLoading + : isLoading // ignore: cast_nullable_to_non_nullable + as bool, + error: freezed == error + ? _self.error + : error // ignore: cast_nullable_to_non_nullable + as String?, + )); + } +} + +/// Adds pattern-matching-related methods to [SyncPlayGroupsState]. +extension SyncPlayGroupsStatePatterns on SyncPlayGroupsState { + /// A variant of `map` that fallback to returning `orElse`. + /// + /// It is equivalent to doing: + /// ```dart + /// switch (sealedClass) { + /// case final Subclass value: + /// return ...; + /// case _: + /// return orElse(); + /// } + /// ``` + + @optionalTypeArgs + TResult maybeMap( + TResult Function(_SyncPlayGroupsState value)? $default, { + required TResult orElse(), + }) { + final _that = this; + switch (_that) { + case _SyncPlayGroupsState() when $default != null: + return $default(_that); + case _: + return orElse(); + } + } + + /// A `switch`-like method, using callbacks. + /// + /// Callbacks receives the raw object, upcasted. + /// It is equivalent to doing: + /// ```dart + /// switch (sealedClass) { + /// case final Subclass value: + /// return ...; + /// case final Subclass2 value: + /// return ...; + /// } + /// ``` + + @optionalTypeArgs + TResult map( + TResult Function(_SyncPlayGroupsState value) $default, + ) { + final _that = this; + switch (_that) { + case _SyncPlayGroupsState(): + return $default(_that); + case _: + throw StateError('Unexpected subclass'); + } + } + + /// A variant of `map` that fallback to returning `null`. + /// + /// It is equivalent to doing: + /// ```dart + /// switch (sealedClass) { + /// case final Subclass value: + /// return ...; + /// case _: + /// return null; + /// } + /// ``` + + @optionalTypeArgs + TResult? mapOrNull( + TResult? Function(_SyncPlayGroupsState value)? $default, + ) { + final _that = this; + switch (_that) { + case _SyncPlayGroupsState() when $default != null: + return $default(_that); + case _: + return null; + } + } + + /// A variant of `when` that fallback to an `orElse` callback. + /// + /// It is equivalent to doing: + /// ```dart + /// switch (sealedClass) { + /// case Subclass(:final field): + /// return ...; + /// case _: + /// return orElse(); + /// } + /// ``` + + @optionalTypeArgs + TResult maybeWhen( + TResult Function(List? groups, bool isLoading, String? error)? $default, { + required TResult orElse(), + }) { + final _that = this; + switch (_that) { + case _SyncPlayGroupsState() when $default != null: + return $default(_that.groups, _that.isLoading, _that.error); + case _: + return orElse(); + } + } + + /// A `switch`-like method, using callbacks. + /// + /// As opposed to `map`, this offers destructuring. + /// It is equivalent to doing: + /// ```dart + /// switch (sealedClass) { + /// case Subclass(:final field): + /// return ...; + /// case Subclass2(:final field2): + /// return ...; + /// } + /// ``` + + @optionalTypeArgs + TResult when( + TResult Function(List? groups, bool isLoading, String? error) $default, + ) { + final _that = this; + switch (_that) { + case _SyncPlayGroupsState(): + return $default(_that.groups, _that.isLoading, _that.error); + case _: + throw StateError('Unexpected subclass'); + } + } + + /// A variant of `when` that fallback to returning `null` + /// + /// It is equivalent to doing: + /// ```dart + /// switch (sealedClass) { + /// case Subclass(:final field): + /// return ...; + /// case _: + /// return null; + /// } + /// ``` + + @optionalTypeArgs + TResult? whenOrNull( + TResult? Function(List? groups, bool isLoading, String? error)? $default, + ) { + final _that = this; + switch (_that) { + case _SyncPlayGroupsState() when $default != null: + return $default(_that.groups, _that.isLoading, _that.error); + case _: + return null; + } + } +} + +/// @nodoc + +class _SyncPlayGroupsState with DiagnosticableTreeMixin implements SyncPlayGroupsState { + const _SyncPlayGroupsState({final List? groups, this.isLoading = false, this.error}) : _groups = groups; + + final List? _groups; + @override + List? get groups { + final value = _groups; + if (value == null) return null; + if (_groups is EqualUnmodifiableListView) return _groups; + // ignore: implicit_dynamic_type + return EqualUnmodifiableListView(value); + } + + @override + @JsonKey() + final bool isLoading; + @override + final String? error; + + /// Create a copy of SyncPlayGroupsState + /// with the given fields replaced by the non-null parameter values. + @override + @JsonKey(includeFromJson: false, includeToJson: false) + @pragma('vm:prefer-inline') + _$SyncPlayGroupsStateCopyWith<_SyncPlayGroupsState> get copyWith => + __$SyncPlayGroupsStateCopyWithImpl<_SyncPlayGroupsState>(this, _$identity); + + @override + void debugFillProperties(DiagnosticPropertiesBuilder properties) { + properties + ..add(DiagnosticsProperty('type', 'SyncPlayGroupsState')) + ..add(DiagnosticsProperty('groups', groups)) + ..add(DiagnosticsProperty('isLoading', isLoading)) + ..add(DiagnosticsProperty('error', error)); + } + + @override + String toString({DiagnosticLevel minLevel = DiagnosticLevel.info}) { + return 'SyncPlayGroupsState(groups: $groups, isLoading: $isLoading, error: $error)'; + } +} + +/// @nodoc +abstract mixin class _$SyncPlayGroupsStateCopyWith<$Res> implements $SyncPlayGroupsStateCopyWith<$Res> { + factory _$SyncPlayGroupsStateCopyWith(_SyncPlayGroupsState value, $Res Function(_SyncPlayGroupsState) _then) = + __$SyncPlayGroupsStateCopyWithImpl; + @override + @useResult + $Res call({List? groups, bool isLoading, String? error}); +} + +/// @nodoc +class __$SyncPlayGroupsStateCopyWithImpl<$Res> implements _$SyncPlayGroupsStateCopyWith<$Res> { + __$SyncPlayGroupsStateCopyWithImpl(this._self, this._then); + + final _SyncPlayGroupsState _self; + final $Res Function(_SyncPlayGroupsState) _then; + + /// Create a copy of SyncPlayGroupsState + /// with the given fields replaced by the non-null parameter values. + @override + @pragma('vm:prefer-inline') + $Res call({ + Object? groups = freezed, + Object? isLoading = null, + Object? error = freezed, + }) { + return _then(_SyncPlayGroupsState( + groups: freezed == groups + ? _self._groups + : groups // ignore: cast_nullable_to_non_nullable + as List?, + isLoading: null == isLoading + ? _self.isLoading + : isLoading // ignore: cast_nullable_to_non_nullable + as bool, + error: freezed == error + ? _self.error + : error // ignore: cast_nullable_to_non_nullable + as String?, + )); + } +} + +// dart format on diff --git a/lib/providers/syncplay/syncplay_provider.g.dart b/lib/providers/syncplay/syncplay_provider.g.dart index 1a0eccbb8..f38106768 100644 --- a/lib/providers/syncplay/syncplay_provider.g.dart +++ b/lib/providers/syncplay/syncplay_provider.g.dart @@ -15,9 +15,7 @@ String _$isSyncPlayActiveHash() => r'bf9cda97aa9130fed8fc6558481c02f10f815f99'; final isSyncPlayActiveProvider = AutoDisposeProvider.internal( isSyncPlayActive, name: r'isSyncPlayActiveProvider', - debugGetCreateSourceHash: const bool.fromEnvironment('dart.vm.product') - ? null - : _$isSyncPlayActiveHash, + debugGetCreateSourceHash: const bool.fromEnvironment('dart.vm.product') ? null : _$isSyncPlayActiveHash, dependencies: null, allTransitiveDependencies: null, ); @@ -34,9 +32,7 @@ String _$syncPlayGroupNameHash() => r'f73f243808920efbfbfa467d1ba1234fec622283'; final syncPlayGroupNameProvider = AutoDisposeProvider.internal( syncPlayGroupName, name: r'syncPlayGroupNameProvider', - debugGetCreateSourceHash: const bool.fromEnvironment('dart.vm.product') - ? null - : _$syncPlayGroupNameHash, + debugGetCreateSourceHash: const bool.fromEnvironment('dart.vm.product') ? null : _$syncPlayGroupNameHash, dependencies: null, allTransitiveDependencies: null, ); @@ -44,20 +40,16 @@ final syncPlayGroupNameProvider = AutoDisposeProvider.internal( @Deprecated('Will be removed in 3.0. Use Ref instead') // ignore: unused_element typedef SyncPlayGroupNameRef = AutoDisposeProviderRef; -String _$syncPlayGroupStateHash() => - r'dff5dba3297066e06ff5ed1b9b273ee19bc27878'; +String _$syncPlayGroupStateHash() => r'dff5dba3297066e06ff5ed1b9b273ee19bc27878'; /// Provider for SyncPlay group state /// /// Copied from [syncPlayGroupState]. @ProviderFor(syncPlayGroupState) -final syncPlayGroupStateProvider = - AutoDisposeProvider.internal( +final syncPlayGroupStateProvider = AutoDisposeProvider.internal( syncPlayGroupState, name: r'syncPlayGroupStateProvider', - debugGetCreateSourceHash: const bool.fromEnvironment('dart.vm.product') - ? null - : _$syncPlayGroupStateHash, + debugGetCreateSourceHash: const bool.fromEnvironment('dart.vm.product') ? null : _$syncPlayGroupStateHash, dependencies: null, allTransitiveDependencies: null, ); @@ -74,12 +66,26 @@ String _$syncPlayHash() => r'a5c53eed3cf0d94ea3b1601a0d11c17d58bb3e41'; final syncPlayProvider = NotifierProvider.internal( SyncPlay.new, name: r'syncPlayProvider', - debugGetCreateSourceHash: - const bool.fromEnvironment('dart.vm.product') ? null : _$syncPlayHash, + debugGetCreateSourceHash: const bool.fromEnvironment('dart.vm.product') ? null : _$syncPlayHash, dependencies: null, allTransitiveDependencies: null, ); typedef _$SyncPlay = Notifier; +String _$syncPlayGroupsHash() => r'7f17436df1b0afb4c77cd21128e03b1ed0875939'; + +/// Provider for the list of SyncPlay groups (load/refresh from sheet). +/// +/// Copied from [SyncPlayGroups]. +@ProviderFor(SyncPlayGroups) +final syncPlayGroupsProvider = AutoDisposeNotifierProvider.internal( + SyncPlayGroups.new, + name: r'syncPlayGroupsProvider', + debugGetCreateSourceHash: const bool.fromEnvironment('dart.vm.product') ? null : _$syncPlayGroupsHash, + dependencies: null, + allTransitiveDependencies: null, +); + +typedef _$SyncPlayGroups = AutoDisposeNotifier; // ignore_for_file: type=lint // ignore_for_file: subtype_of_sealed_class, invalid_use_of_internal_member, invalid_use_of_visible_for_testing_member, deprecated_member_use_from_same_package diff --git a/lib/providers/syncplay/time_sync_service.dart b/lib/providers/syncplay/time_sync_service.dart index 58557e9a7..c55113d02 100644 --- a/lib/providers/syncplay/time_sync_service.dart +++ b/lib/providers/syncplay/time_sync_service.dart @@ -93,9 +93,7 @@ class TimeSyncService { if (!_isActive) return; _pingCount++; - final interval = _pingCount <= _greedyPingCount - ? _greedyInterval - : _lowProfileInterval; + final interval = _pingCount <= _greedyPingCount ? _greedyInterval : _lowProfileInterval; _pollingTimer?.cancel(); _pollingTimer = Timer(interval, _poll); diff --git a/lib/providers/syncplay/websocket_manager.dart b/lib/providers/syncplay/websocket_manager.dart index 5aac867cd..55604511e 100644 --- a/lib/providers/syncplay/websocket_manager.dart +++ b/lib/providers/syncplay/websocket_manager.dart @@ -2,9 +2,8 @@ import 'dart:async'; import 'dart:convert'; import 'dart:developer'; -import 'package:web_socket_channel/web_socket_channel.dart'; - import 'package:fladder/models/syncplay/syncplay_models.dart'; +import 'package:web_socket_channel/web_socket_channel.dart'; /// Manages WebSocket connection to Jellyfin server for SyncPlay class WebSocketManager { @@ -52,8 +51,7 @@ class WebSocketManager { /// Connect to WebSocket Future connect() async { - if (_currentState == WebSocketConnectionState.connected || - _currentState == WebSocketConnectionState.connecting) { + if (_currentState == WebSocketConnectionState.connected || _currentState == WebSocketConnectionState.connecting) { return; } @@ -125,7 +123,7 @@ class WebSocketManager { try { final message = json.decode(data as String) as Map; final messageType = message['MessageType'] as String?; - + // Log all received messages for debugging (except KeepAlive spam) if (messageType != 'KeepAlive') { log('WebSocket: Received message: $message'); diff --git a/lib/providers/update_provider.g.dart b/lib/providers/update_provider.g.dart index 0dc684976..541ed82f8 100644 --- a/lib/providers/update_provider.g.dart +++ b/lib/providers/update_provider.g.dart @@ -13,8 +13,7 @@ String _$updateHash() => r'e22205cb13e6b43df1296de90e39059f09bb80a8'; final updateProvider = NotifierProvider.internal( Update.new, name: r'updateProvider', - debugGetCreateSourceHash: - const bool.fromEnvironment('dart.vm.product') ? null : _$updateHash, + debugGetCreateSourceHash: const bool.fromEnvironment('dart.vm.product') ? null : _$updateHash, dependencies: null, allTransitiveDependencies: null, ); diff --git a/lib/providers/user_provider.g.dart b/lib/providers/user_provider.g.dart index 21c4ad206..8b5ba288e 100644 --- a/lib/providers/user_provider.g.dart +++ b/lib/providers/user_provider.g.dart @@ -6,17 +6,14 @@ part of 'user_provider.dart'; // RiverpodGenerator // ************************************************************************** -String _$showSyncButtonProviderHash() => - r'c09f42cd6536425bf9417da41c83e15c135d0edb'; +String _$showSyncButtonProviderHash() => r'c09f42cd6536425bf9417da41c83e15c135d0edb'; /// See also [showSyncButtonProvider]. @ProviderFor(showSyncButtonProvider) final showSyncButtonProviderProvider = AutoDisposeProvider.internal( showSyncButtonProvider, name: r'showSyncButtonProviderProvider', - debugGetCreateSourceHash: const bool.fromEnvironment('dart.vm.product') - ? null - : _$showSyncButtonProviderHash, + debugGetCreateSourceHash: const bool.fromEnvironment('dart.vm.product') ? null : _$showSyncButtonProviderHash, dependencies: null, allTransitiveDependencies: null, ); @@ -31,8 +28,7 @@ String _$userHash() => r'730e21dfff1e4cbe24c0c47d701ce51de38c303e'; final userProvider = NotifierProvider.internal( User.new, name: r'userProvider', - debugGetCreateSourceHash: - const bool.fromEnvironment('dart.vm.product') ? null : _$userHash, + debugGetCreateSourceHash: const bool.fromEnvironment('dart.vm.product') ? null : _$userHash, dependencies: null, allTransitiveDependencies: null, ); diff --git a/lib/providers/video_player_provider.dart b/lib/providers/video_player_provider.dart index 32298ae37..2101dc6ba 100644 --- a/lib/providers/video_player_provider.dart +++ b/lib/providers/video_player_provider.dart @@ -7,19 +7,18 @@ import 'package:fladder/models/syncplay/syncplay_models.dart'; import 'package:fladder/providers/settings/client_settings_provider.dart'; import 'package:fladder/providers/settings/video_player_settings_provider.dart'; import 'package:fladder/providers/syncplay/syncplay_provider.dart'; +import 'package:fladder/src/video_player_helper.g.dart' show PlaybackChangeSource; import 'package:fladder/util/debouncer.dart'; import 'package:fladder/wrappers/media_control_wrapper.dart'; import 'package:flutter/material.dart'; import 'package:flutter_riverpod/flutter_riverpod.dart'; import 'package:path/path.dart' as p; -final mediaPlaybackProvider = - StateProvider((ref) => MediaPlaybackModel()); +final mediaPlaybackProvider = StateProvider((ref) => MediaPlaybackModel()); final playBackModel = StateProvider((ref) => null); -final videoPlayerProvider = - StateNotifierProvider((ref) { +final videoPlayerProvider = StateNotifierProvider((ref) { final videoPlayer = VideoPlayerNotifier(ref); videoPlayer.init(); return videoPlayer; @@ -56,8 +55,7 @@ class VideoPlayerNotifier extends StateNotifier { /// Check if we're in the SyncPlay cooldown period bool get _inSyncPlayCooldown { if (_lastSyncPlayCommandTime == null) return false; - return DateTime.now().difference(_lastSyncPlayCommandTime!) < - _syncPlayCooldown; + return DateTime.now().difference(_lastSyncPlayCommandTime!) < _syncPlayCooldown; } void init() async { @@ -71,6 +69,19 @@ class VideoPlayerNotifier extends StateNotifier { } final subscription = state.stateStream?.listen((value) { + // Infer SyncPlay user actions from native player state stream (reviewer request). + if (value.changeSource == PlaybackChangeSource.user) { + final prev = playbackState; + if (value.playing != prev.playing) { + if (value.playing) { + userPlay(); + } else { + userPause(); + } + } else if ((value.position - prev.position).inSeconds.abs() > 2) { + userSeek(value.position); + } + } updateBuffering(value.buffering); updateBuffer(value.buffer); updatePlaying(value.playing); @@ -169,18 +180,13 @@ class VideoPlayerNotifier extends StateNotifier { // Report buffering state to SyncPlay if active // Skip if we're in the cooldown period after a SyncPlay command to prevent feedback loops // Also skip if we are currently reloading (we'll report manually when done) - if (_isSyncPlayActive && - !_syncPlayAction && - !_inSyncPlayCooldown && - !_isReloading) { + if (_isSyncPlayActive && !_syncPlayAction && !_inSyncPlayCooldown && !_isReloading) { if (event) { // Started buffering ref.read(syncPlayProvider.notifier).reportBuffering(); } else { // Finished buffering - ready - ref - .read(syncPlayProvider.notifier) - .reportReady(isPlaying: playbackState.playing); + ref.read(syncPlayProvider.notifier).reportReady(isPlaying: playbackState.playing); } } } @@ -211,8 +217,7 @@ class VideoPlayerNotifier extends StateNotifier { mediaState.update( (state) => state.copyWith(playing: event), ); - ref.read(playBackModel)?.updatePlaybackPosition( - currentState.position, currentState.playing, ref); + ref.read(playBackModel)?.updatePlaybackPosition(currentState.position, currentState.playing, ref); } Future updatePosition(Duration event) async { @@ -233,9 +238,7 @@ class VideoPlayerNotifier extends StateNotifier { position: event, lastPosition: position, )); - ref - .read(playBackModel) - ?.updatePlaybackPosition(position, playbackState.playing, ref); + ref.read(playBackModel)?.updatePlaybackPosition(position, playbackState.playing, ref); } else { mediaState.update((value) => value.copyWith( position: event, @@ -243,8 +246,7 @@ class VideoPlayerNotifier extends StateNotifier { } } - Future loadPlaybackItem( - PlaybackModel model, Duration startPosition) async { + Future loadPlaybackItem(PlaybackModel model, Duration startPosition) async { _isReloading = true; // Explicitly report buffering to SyncPlay if active before stopping/loading @@ -288,9 +290,7 @@ class VideoPlayerNotifier extends StateNotifier { } else { // For SyncPlay, we report ready now that reload AND seek are done. // We report NOT playing so the server sends an explicit Unpause command. - await ref - .read(syncPlayProvider.notifier) - .reportReady(isPlaying: false); + await ref.read(syncPlayProvider.notifier).reportReady(isPlaying: false); } ref.read(playBackModel.notifier).update((state) => newPlaybackModel); }, @@ -306,8 +306,7 @@ class VideoPlayerNotifier extends StateNotifier { return false; } - Future openPlayer(BuildContext context) async => - state.openPlayer(context); + Future openPlayer(BuildContext context) async => state.openPlayer(context); Future takeScreenshot() async { final syncPath = ref.read(clientSettingsProvider).syncPath; diff --git a/lib/routes/auto_router.gr.dart b/lib/routes/auto_router.gr.dart index 8d19e9ed1..e75c5f819 100644 --- a/lib/routes/auto_router.gr.dart +++ b/lib/routes/auto_router.gr.dart @@ -15,29 +15,22 @@ import 'package:auto_route/auto_route.dart' as _i30; import 'package:collection/collection.dart' as _i35; import 'package:fladder/models/item_base_model.dart' as _i32; import 'package:fladder/models/items/photos_model.dart' as _i36; -import 'package:fladder/models/library_search/library_search_options.dart' - as _i34; +import 'package:fladder/models/library_search/library_search_options.dart' as _i34; import 'package:fladder/models/seerr/seerr_dashboard_model.dart' as _i38; import 'package:fladder/routes/nested_details_screen.dart' as _i12; -import 'package:fladder/screens/control_panel/control_active_tasks_page.dart' - as _i3; -import 'package:fladder/screens/control_panel/control_dashboard_page.dart' - as _i4; -import 'package:fladder/screens/control_panel/control_libraries_page.dart' - as _i5; +import 'package:fladder/screens/control_panel/control_active_tasks_page.dart' as _i3; +import 'package:fladder/screens/control_panel/control_dashboard_page.dart' as _i4; +import 'package:fladder/screens/control_panel/control_libraries_page.dart' as _i5; import 'package:fladder/screens/control_panel/control_panel_screen.dart' as _i6; -import 'package:fladder/screens/control_panel/control_panel_selection_screen.dart' - as _i7; +import 'package:fladder/screens/control_panel/control_panel_selection_screen.dart' as _i7; import 'package:fladder/screens/control_panel/control_server_page.dart' as _i8; -import 'package:fladder/screens/control_panel/control_user_edit_page.dart' - as _i9; +import 'package:fladder/screens/control_panel/control_user_edit_page.dart' as _i9; import 'package:fladder/screens/control_panel/control_users_page.dart' as _i10; import 'package:fladder/screens/dashboard/dashboard_screen.dart' as _i11; import 'package:fladder/screens/favourites/favourites_screen.dart' as _i13; import 'package:fladder/screens/home_screen.dart' as _i14; import 'package:fladder/screens/library/library_screen.dart' as _i15; -import 'package:fladder/screens/library_search/library_search_screen.dart' - as _i16; +import 'package:fladder/screens/library_search/library_search_screen.dart' as _i16; import 'package:fladder/screens/live_tv/live_tv_screen.dart' as _i17; import 'package:fladder/screens/login/lock_screen.dart' as _i18; import 'package:fladder/screens/login/login_screen.dart' as _i19; @@ -50,8 +43,7 @@ import 'package:fladder/screens/settings/client_settings_page.dart' as _i2; import 'package:fladder/screens/settings/player_settings_page.dart' as _i21; import 'package:fladder/screens/settings/profile_settings_page.dart' as _i22; import 'package:fladder/screens/settings/settings_screen.dart' as _i26; -import 'package:fladder/screens/settings/settings_selection_screen.dart' - as _i27; +import 'package:fladder/screens/settings/settings_selection_screen.dart' as _i27; import 'package:fladder/screens/splash_screen.dart' as _i28; import 'package:fladder/screens/syncing/synced_screen.dart' as _i29; import 'package:fladder/seerr/seerr_models.dart' as _i39; @@ -188,8 +180,7 @@ class ControlServerRoute extends _i30.PageRouteInfo { /// generated route for /// [_i9.ControlUserEditPage] -class ControlUserEditRoute - extends _i30.PageRouteInfo { +class ControlUserEditRoute extends _i30.PageRouteInfo { ControlUserEditRoute({ String? userId, _i31.Key? key, @@ -208,8 +199,7 @@ class ControlUserEditRoute builder: (data) { final queryParams = data.queryParams; final args = data.argsAs( - orElse: () => - ControlUserEditRouteArgs(userId: queryParams.optString('userId')), + orElse: () => ControlUserEditRouteArgs(userId: queryParams.optString('userId')), ); return _i9.ControlUserEditPage(userId: args.userId, key: args.key); }, @@ -258,8 +248,7 @@ class ControlUsersRoute extends _i30.PageRouteInfo { /// generated route for /// [_i11.DashboardScreen] class DashboardRoute extends _i30.PageRouteInfo { - const DashboardRoute({List<_i30.PageRouteInfo>? children}) - : super(DashboardRoute.name, initialChildren: children); + const DashboardRoute({List<_i30.PageRouteInfo>? children}) : super(DashboardRoute.name, initialChildren: children); static const String name = 'DashboardRoute'; @@ -326,10 +315,7 @@ class DetailsRouteArgs { bool operator ==(Object other) { if (identical(this, other)) return true; if (other is! DetailsRouteArgs) return false; - return id == other.id && - item == other.item && - tag == other.tag && - key == other.key; + return id == other.id && item == other.item && tag == other.tag && key == other.key; } @override @@ -339,8 +325,7 @@ class DetailsRouteArgs { /// generated route for /// [_i13.FavouritesScreen] class FavouritesRoute extends _i30.PageRouteInfo { - const FavouritesRoute({List<_i30.PageRouteInfo>? children}) - : super(FavouritesRoute.name, initialChildren: children); + const FavouritesRoute({List<_i30.PageRouteInfo>? children}) : super(FavouritesRoute.name, initialChildren: children); static const String name = 'FavouritesRoute'; @@ -355,8 +340,7 @@ class FavouritesRoute extends _i30.PageRouteInfo { /// generated route for /// [_i14.HomeScreen] class HomeRoute extends _i30.PageRouteInfo { - const HomeRoute({List<_i30.PageRouteInfo>? children}) - : super(HomeRoute.name, initialChildren: children); + const HomeRoute({List<_i30.PageRouteInfo>? children}) : super(HomeRoute.name, initialChildren: children); static const String name = 'HomeRoute'; @@ -371,8 +355,7 @@ class HomeRoute extends _i30.PageRouteInfo { /// generated route for /// [_i15.LibraryScreen] class LibraryRoute extends _i30.PageRouteInfo { - const LibraryRoute({List<_i30.PageRouteInfo>? children}) - : super(LibraryRoute.name, initialChildren: children); + const LibraryRoute({List<_i30.PageRouteInfo>? children}) : super(LibraryRoute.name, initialChildren: children); static const String name = 'LibraryRoute'; @@ -542,8 +525,7 @@ class LiveTvRoute extends _i30.PageRouteInfo { builder: (data) { final queryParams = data.queryParams; final args = data.argsAs( - orElse: () => - LiveTvRouteArgs(viewId: queryParams.getString('viewId', "")), + orElse: () => LiveTvRouteArgs(viewId: queryParams.getString('viewId', "")), ); return _i17.LiveTvScreen(viewId: args.viewId, key: args.key); }, @@ -576,8 +558,7 @@ class LiveTvRouteArgs { /// generated route for /// [_i18.LockScreen] class LockRoute extends _i30.PageRouteInfo { - const LockRoute({List<_i30.PageRouteInfo>? children}) - : super(LockRoute.name, initialChildren: children); + const LockRoute({List<_i30.PageRouteInfo>? children}) : super(LockRoute.name, initialChildren: children); static const String name = 'LockRoute'; @@ -592,8 +573,7 @@ class LockRoute extends _i30.PageRouteInfo { /// generated route for /// [_i19.LoginScreen] class LoginRoute extends _i30.PageRouteInfo { - const LoginRoute({List<_i30.PageRouteInfo>? children}) - : super(LoginRoute.name, initialChildren: children); + const LoginRoute({List<_i30.PageRouteInfo>? children}) : super(LoginRoute.name, initialChildren: children); static const String name = 'LoginRoute'; @@ -633,8 +613,7 @@ class PhotoViewerRoute extends _i30.PageRouteInfo { builder: (data) { final queryParams = data.queryParams; final args = data.argsAs( - orElse: () => - PhotoViewerRouteArgs(selected: queryParams.optString('selectedId')), + orElse: () => PhotoViewerRouteArgs(selected: queryParams.optString('selectedId')), ); return _i20.PhotoViewerScreen( items: args.items, @@ -678,11 +657,7 @@ class PhotoViewerRouteArgs { } @override - int get hashCode => - const _i35.ListEquality().hash(items) ^ - selected.hashCode ^ - loadingItems.hashCode ^ - key.hashCode; + int get hashCode => const _i35.ListEquality().hash(items) ^ selected.hashCode ^ loadingItems.hashCode ^ key.hashCode; } /// generated route for @@ -785,22 +760,17 @@ class SeerrDetailsRouteArgs { bool operator ==(Object other) { if (identical(this, other)) return true; if (other is! SeerrDetailsRouteArgs) return false; - return mediaType == other.mediaType && - tmdbId == other.tmdbId && - poster == other.poster && - key == other.key; + return mediaType == other.mediaType && tmdbId == other.tmdbId && poster == other.poster && key == other.key; } @override - int get hashCode => - mediaType.hashCode ^ tmdbId.hashCode ^ poster.hashCode ^ key.hashCode; + int get hashCode => mediaType.hashCode ^ tmdbId.hashCode ^ poster.hashCode ^ key.hashCode; } /// generated route for /// [_i24.SeerrScreen] class SeerrRoute extends _i30.PageRouteInfo { - const SeerrRoute({List<_i30.PageRouteInfo>? children}) - : super(SeerrRoute.name, initialChildren: children); + const SeerrRoute({List<_i30.PageRouteInfo>? children}) : super(SeerrRoute.name, initialChildren: children); static const String name = 'SeerrRoute'; @@ -876,8 +846,7 @@ class SeerrSearchRouteArgs { /// generated route for /// [_i26.SettingsScreen] class SettingsRoute extends _i30.PageRouteInfo { - const SettingsRoute({List<_i30.PageRouteInfo>? children}) - : super(SettingsRoute.name, initialChildren: children); + const SettingsRoute({List<_i30.PageRouteInfo>? children}) : super(SettingsRoute.name, initialChildren: children); static const String name = 'SettingsRoute'; @@ -957,8 +926,7 @@ class SplashRouteArgs { /// generated route for /// [_i29.SyncedScreen] class SyncedRoute extends _i30.PageRouteInfo { - const SyncedRoute({List<_i30.PageRouteInfo>? children}) - : super(SyncedRoute.name, initialChildren: children); + const SyncedRoute({List<_i30.PageRouteInfo>? children}) : super(SyncedRoute.name, initialChildren: children); static const String name = 'SyncedRoute'; diff --git a/lib/screens/login/controllers/login_controller.dart b/lib/screens/login/controllers/login_controller.dart index e69de29bb..8b1378917 100644 --- a/lib/screens/login/controllers/login_controller.dart +++ b/lib/screens/login/controllers/login_controller.dart @@ -0,0 +1 @@ + diff --git a/lib/screens/login/login_code_dialog.dart b/lib/screens/login/login_code_dialog.dart index 3d93b999a..ca071adc3 100644 --- a/lib/screens/login/login_code_dialog.dart +++ b/lib/screens/login/login_code_dialog.dart @@ -60,9 +60,7 @@ class _LoginCodeDialogState extends ConsumerState { secret: quickConnectInfo.secret, ); final newSecret = result.body?.secret; - if (result.isSuccessful && - result.body?.authenticated == true && - newSecret != null) { + if (result.isSuccessful && result.body?.authenticated == true && newSecret != null) { widget.onAuthenticated.call(context, newSecret); } else { timer?.reset(); @@ -73,8 +71,7 @@ class _LoginCodeDialogState extends ConsumerState { @override Widget build(BuildContext context) { final code = quickConnectInfo.code; - final serverName = ref.watch(authProvider - .select((value) => value.serverLoginModel?.tempCredentials.serverName)); + final serverName = ref.watch(authProvider.select((value) => value.serverLoginModel?.tempCredentials.serverName)); return Dialog( constraints: const BoxConstraints( maxWidth: 500, @@ -108,12 +105,11 @@ class _LoginCodeDialogState extends ConsumerState { padding: const EdgeInsets.all(12.0), child: Text( code, - style: - Theme.of(context).textTheme.titleLarge?.copyWith( - fontWeight: FontWeight.bold, - wordSpacing: 8, - letterSpacing: 8, - ), + style: Theme.of(context).textTheme.titleLarge?.copyWith( + fontWeight: FontWeight.bold, + wordSpacing: 8, + letterSpacing: 8, + ), textAlign: TextAlign.center, semanticsLabel: code, ), @@ -123,8 +119,7 @@ class _LoginCodeDialogState extends ConsumerState { ], FilledButton( onPressed: () async { - final response = - await ref.read(jellyApiProvider).quickConnectInitiate(); + final response = await ref.read(jellyApiProvider).quickConnectInitiate(); if (response.isSuccessful && response.body != null) { setState(() { quickConnectInfo = response.body!; diff --git a/lib/screens/login/login_screen.dart b/lib/screens/login/login_screen.dart index 7e13f7d92..abf0df9c1 100644 --- a/lib/screens/login/login_screen.dart +++ b/lib/screens/login/login_screen.dart @@ -24,8 +24,7 @@ class LoginScreen extends ConsumerStatefulWidget { } class _LoginPageState extends ConsumerState { - late final TextEditingController serverTextController = - TextEditingController(text: ''); + late final TextEditingController serverTextController = TextEditingController(text: ''); final usernameController = TextEditingController(); final passwordController = TextEditingController(); final FocusNode focusNode = FocusNode(); @@ -58,12 +57,9 @@ class _LoginPageState extends ConsumerState { context: context, key: const Key("edit_user_button"), heroTag: "edit_user_button", - backgroundColor: editUsersMode - ? Theme.of(context).colorScheme.errorContainer - : null, + backgroundColor: editUsersMode ? Theme.of(context).colorScheme.errorContainer : null, child: const Icon(IconsaxPlusLinear.edit_2), - onPressed: () => - setState(() => editUsersMode = !editUsersMode), + onPressed: () => setState(() => editUsersMode = !editUsersMode), ).normal, AdaptiveFab( context: context, @@ -83,23 +79,18 @@ class _LoginPageState extends ConsumerState { ), child: ListView( shrinkWrap: true, - padding: MediaQuery.paddingOf(context) - .add(const EdgeInsetsGeometry.all(16)), + padding: MediaQuery.paddingOf(context).add(const EdgeInsetsGeometry.all(16)), children: [ const FladderLogo(), const SizedBox(height: 24), AnimatedFadeSize( child: switch (screen) { - LoginScreenType.login || - LoginScreenType.code => - const LoginScreenCredentials(), + LoginScreenType.login || LoginScreenType.code => const LoginScreenCredentials(), _ => LoginUserGrid( users: accounts, editMode: editUsersMode, - onPressed: (user) => - tapLoggedInAccount(context, user, ref), - onLongPress: (user) => - openUserEditDialogue(context, user), + onPressed: (user) => tapLoggedInAccount(context, user, ref), + onLongPress: (user) => openUserEditDialogue(context, user), ), }, ) diff --git a/lib/screens/login/screens/server_selection_screen.dart b/lib/screens/login/screens/server_selection_screen.dart index e69de29bb..8b1378917 100644 --- a/lib/screens/login/screens/server_selection_screen.dart +++ b/lib/screens/login/screens/server_selection_screen.dart @@ -0,0 +1 @@ + diff --git a/lib/screens/login/widgets/credentials_input_section.dart b/lib/screens/login/widgets/credentials_input_section.dart index e69de29bb..8b1378917 100644 --- a/lib/screens/login/widgets/credentials_input_section.dart +++ b/lib/screens/login/widgets/credentials_input_section.dart @@ -0,0 +1 @@ + diff --git a/lib/screens/login/widgets/login_credentials_input_extensions.dart b/lib/screens/login/widgets/login_credentials_input_extensions.dart index e69de29bb..8b1378917 100644 --- a/lib/screens/login/widgets/login_credentials_input_extensions.dart +++ b/lib/screens/login/widgets/login_credentials_input_extensions.dart @@ -0,0 +1 @@ + diff --git a/lib/screens/login/widgets/server_input_section.dart b/lib/screens/login/widgets/server_input_section.dart index e69de29bb..8b1378917 100644 --- a/lib/screens/login/widgets/server_input_section.dart +++ b/lib/screens/login/widgets/server_input_section.dart @@ -0,0 +1 @@ + diff --git a/lib/screens/login/widgets/server_url_input.dart b/lib/screens/login/widgets/server_url_input.dart index e69de29bb..8b1378917 100644 --- a/lib/screens/login/widgets/server_url_input.dart +++ b/lib/screens/login/widgets/server_url_input.dart @@ -0,0 +1 @@ + diff --git a/lib/screens/login/widgets/server_url_input_extensions.dart b/lib/screens/login/widgets/server_url_input_extensions.dart index e69de29bb..8b1378917 100644 --- a/lib/screens/login/widgets/server_url_input_extensions.dart +++ b/lib/screens/login/widgets/server_url_input_extensions.dart @@ -0,0 +1 @@ + diff --git a/lib/screens/settings/quick_connect_window.dart b/lib/screens/settings/quick_connect_window.dart index 6e01c737a..e89efed53 100644 --- a/lib/screens/settings/quick_connect_window.dart +++ b/lib/screens/settings/quick_connect_window.dart @@ -9,16 +9,14 @@ import 'package:flutter_riverpod/flutter_riverpod.dart'; Future openQuickConnectDialog( BuildContext context, ) async { - return showDialog( - context: context, builder: (context) => const QuickConnectDialog()); + return showDialog(context: context, builder: (context) => const QuickConnectDialog()); } class QuickConnectDialog extends ConsumerStatefulWidget { const QuickConnectDialog({super.key}); @override - ConsumerState createState() => - _QuickConnectDialogState(); + ConsumerState createState() => _QuickConnectDialogState(); } class _QuickConnectDialogState extends ConsumerState { @@ -105,8 +103,7 @@ class _QuickConnectDialogState extends ConsumerState { error = null; loading = true; }); - final response = - await ref.read(userProvider.notifier).quickConnect(controller.text); + final response = await ref.read(userProvider.notifier).quickConnect(controller.text); if (response.isSuccessful) { setState( () { diff --git a/lib/screens/settings/widgets/seerr_connection_dialog.dart b/lib/screens/settings/widgets/seerr_connection_dialog.dart index ea098c835..fb69845a9 100644 --- a/lib/screens/settings/widgets/seerr_connection_dialog.dart +++ b/lib/screens/settings/widgets/seerr_connection_dialog.dart @@ -204,9 +204,9 @@ class _SeerrConnectionDialogState extends ConsumerState { try { final cookie = await ref.read(seerrApiProvider).authenticateLocal( - email: localEmailController.text.trim(), - password: localPasswordController.text, - headers: customHeaders.isEmpty ? null : customHeaders, + email: localEmailController.text.trim(), + password: localPasswordController.text, + headers: customHeaders.isEmpty ? null : customHeaders, ); ref.read(userProvider.notifier).setSeerrSessionCookie(cookie); ref.read(userProvider.notifier).setSeerrApiKey(''); @@ -238,9 +238,9 @@ class _SeerrConnectionDialogState extends ConsumerState { try { final cookie = await ref.read(seerrApiProvider).authenticateJellyfin( - username: jfUsernameController.text.trim(), - password: jfPasswordController.text, - headers: customHeaders.isEmpty ? null : customHeaders, + username: jfUsernameController.text.trim(), + password: jfPasswordController.text, + headers: customHeaders.isEmpty ? null : customHeaders, ); ref.read(userProvider.notifier).setSeerrSessionCookie(cookie); ref.read(userProvider.notifier).setSeerrApiKey(''); diff --git a/lib/screens/shared/media/person_list_.dart b/lib/screens/shared/media/person_list_.dart index 30d9788d1..7650cd62a 100644 --- a/lib/screens/shared/media/person_list_.dart +++ b/lib/screens/shared/media/person_list_.dart @@ -20,12 +20,10 @@ class PersonList extends ConsumerWidget { label, style: Theme.of(context).textTheme.titleMedium, ), - ...people - .map((person) => TextButton( - onPressed: - onPersonTap != null ? () => onPersonTap?.call(person) : () => openPersonDetailPage(context, person), - child: Text(person.name))) - + ...people.map((person) => TextButton( + onPressed: + onPersonTap != null ? () => onPersonTap?.call(person) : () => openPersonDetailPage(context, person), + child: Text(person.name))) ], ); } diff --git a/lib/screens/syncing/sync_item_details.dart b/lib/screens/syncing/sync_item_details.dart index 13b31d8ba..799d4a50c 100644 --- a/lib/screens/syncing/sync_item_details.dart +++ b/lib/screens/syncing/sync_item_details.dart @@ -1,9 +1,4 @@ -import 'package:flutter/material.dart'; - import 'package:background_downloader/background_downloader.dart'; -import 'package:flutter_riverpod/flutter_riverpod.dart'; -import 'package:iconsax_plus/iconsax_plus.dart'; - import 'package:fladder/models/syncing/sync_item.dart'; import 'package:fladder/providers/settings/client_settings_provider.dart'; import 'package:fladder/providers/sync/sync_provider_helpers.dart'; @@ -23,6 +18,9 @@ import 'package:fladder/util/size_formatting.dart'; import 'package:fladder/widgets/shared/alert_content.dart'; import 'package:fladder/widgets/shared/icon_button_await.dart'; import 'package:fladder/widgets/shared/pull_to_refresh.dart'; +import 'package:flutter/material.dart'; +import 'package:flutter_riverpod/flutter_riverpod.dart'; +import 'package:iconsax_plus/iconsax_plus.dart'; Future showSyncItemDetails( BuildContext context, @@ -64,7 +62,7 @@ class _SyncItemDetailsState extends ConsumerState { syncedItem = newItem; }); }, - child: (context) => Padding( + child: (context) => Padding( padding: const EdgeInsets.all(12.0), child: SyncStatusOverlay( syncedItem: syncedItem, diff --git a/lib/screens/video_player/components/syncplay_command_indicator.dart b/lib/screens/video_player/components/syncplay_command_indicator.dart index c962528c2..43321373e 100644 --- a/lib/screens/video_player/components/syncplay_command_indicator.dart +++ b/lib/screens/video_player/components/syncplay_command_indicator.dart @@ -1,10 +1,10 @@ import 'package:flutter/material.dart'; import 'package:flutter_riverpod/flutter_riverpod.dart'; -import 'package:iconsax_plus/iconsax_plus.dart'; import 'package:fladder/providers/syncplay/syncplay_provider.dart'; import 'package:fladder/util/localization_helper.dart'; +import 'package:fladder/widgets/syncplay/syncplay_extensions.dart'; /// Centered overlay showing SyncPlay command being processed class SyncPlayCommandIndicator extends ConsumerWidget { @@ -49,7 +49,7 @@ class SyncPlayCommandIndicator extends ConsumerWidget { _CommandIcon(commandType: commandType), const SizedBox(height: 12), Text( - _getCommandLabel(context, commandType), + commandType.syncPlayCommandOverlayLabel(context), style: Theme.of(context).textTheme.titleMedium?.copyWith( color: Theme.of(context).colorScheme.onSurface, fontWeight: FontWeight.w600, @@ -84,16 +84,6 @@ class SyncPlayCommandIndicator extends ConsumerWidget { ), ); } - - String _getCommandLabel(BuildContext context, String? command) { - return switch (command) { - 'Pause' => context.localized.syncPlayCommandPausing, - 'Unpause' => context.localized.syncPlayCommandPlaying, - 'Seek' => context.localized.syncPlayCommandSeeking, - 'Stop' => context.localized.syncPlayCommandStopping, - _ => context.localized.syncPlayCommandSyncing, - }; - } } class _CommandIcon extends StatelessWidget { @@ -103,28 +93,7 @@ class _CommandIcon extends StatelessWidget { @override Widget build(BuildContext context) { - final (icon, color) = switch (commandType) { - 'Pause' => ( - IconsaxPlusBold.pause, - Theme.of(context).colorScheme.secondary, - ), - 'Unpause' => ( - IconsaxPlusBold.play, - Theme.of(context).colorScheme.primary, - ), - 'Seek' => ( - IconsaxPlusBold.forward, - Theme.of(context).colorScheme.tertiary, - ), - 'Stop' => ( - IconsaxPlusBold.stop, - Theme.of(context).colorScheme.error, - ), - _ => ( - IconsaxPlusBold.refresh, - Theme.of(context).colorScheme.primary, - ), - }; + final (icon, color) = commandType.syncPlayCommandIconAndColor(context); return Container( padding: const EdgeInsets.all(16), diff --git a/lib/screens/video_player/components/video_progress_bar.dart b/lib/screens/video_player/components/video_progress_bar.dart index 4b1fdb82f..f4eae3604 100644 --- a/lib/screens/video_player/components/video_progress_bar.dart +++ b/lib/screens/video_player/components/video_progress_bar.dart @@ -34,8 +34,7 @@ class VideoProgressBar extends ConsumerStatefulWidget { }); @override - ConsumerState createState() => - _ChapterProgressSliderState(); + ConsumerState createState() => _ChapterProgressSliderState(); } class _ChapterProgressSliderState extends ConsumerState { @@ -48,22 +47,17 @@ class _ChapterProgressSliderState extends ConsumerState { @override Widget build(BuildContext context) { - final List chapters = - ref.read(playBackModel.select((value) => value?.chapters ?? [])); + final List chapters = ref.read(playBackModel.select((value) => value?.chapters ?? [])); final isVisible = (onDragStart ? true : onHoverStart); final player = ref.watch(videoPlayerProvider); final position = onDragStart ? currentDuration : widget.position; - final MediaSegmentsModel? mediaSegments = - ref.read(playBackModel.select((value) => value?.mediaSegments)); - final relativeFraction = - position.inMilliseconds / widget.duration.inMilliseconds; + final MediaSegmentsModel? mediaSegments = ref.read(playBackModel.select((value) => value?.mediaSegments)); + final relativeFraction = position.inMilliseconds / widget.duration.inMilliseconds; return LayoutBuilder( builder: (context, constraints) { - final sliderHeight = - SliderTheme.of(context).trackHeight ?? (constraints.maxHeight / 3); + final sliderHeight = SliderTheme.of(context).trackHeight ?? (constraints.maxHeight / 3); final bufferWidth = calculateFractionWidth(constraints, widget.buffer); - final bufferFraction = - relativeFraction / (bufferWidth / constraints.maxWidth); + final bufferFraction = relativeFraction / (bufferWidth / constraints.maxWidth); return Stack( clipBehavior: Clip.none, children: [ @@ -74,8 +68,7 @@ class _ChapterProgressSliderState extends ConsumerState { onHover: (event) { setState(() { onHoverStart = true; - _updateSliderPosition( - event.localPosition.dx, constraints.maxWidth); + _updateSliderPosition(event.localPosition.dx, constraints.maxWidth); }); }, onExit: (event) { @@ -87,13 +80,11 @@ class _ChapterProgressSliderState extends ConsumerState { onPointerDown: (event) { setState(() { onDragStart = true; - _updateSliderPosition( - event.localPosition.dx, constraints.maxWidth); + _updateSliderPosition(event.localPosition.dx, constraints.maxWidth); }); }, onPointerMove: (event) { - _updateSliderPosition( - event.localPosition.dx, constraints.maxWidth); + _updateSliderPosition(event.localPosition.dx, constraints.maxWidth); }, onPointerUp: (_) { setState(() { @@ -115,10 +106,8 @@ class _ChapterProgressSliderState extends ConsumerState { onChangeEnd: (e) async { currentDuration = Duration(milliseconds: e.toInt()); // Route seek through SyncPlay if active - widget.onPositionChanged( - Duration(milliseconds: e.toInt())); - widget.onPositionChanged - .call(Duration(milliseconds: e.toInt())); + widget.onPositionChanged(Duration(milliseconds: e.toInt())); + widget.onPositionChanged.call(Duration(milliseconds: e.toInt())); await Future.delayed(const Duration(milliseconds: 250)); if (widget.wasPlaying) { // Route play through SyncPlay if active @@ -133,8 +122,7 @@ class _ChapterProgressSliderState extends ConsumerState { setState(() { onHoverStart = true; }); - widget.wasPlayingChanged - .call(player.lastState?.playing ?? false); + widget.wasPlayingChanged.call(player.lastState?.playing ?? false); // Route pause through SyncPlay if active ref.read(videoPlayerProvider.notifier).userPause(); }, @@ -172,20 +160,12 @@ class _ChapterProgressSliderState extends ConsumerState { Positioned( left: 0, child: SizedBox( - width: (constraints.maxWidth / - (widget.duration.inMilliseconds / - widget.buffer.inMilliseconds)) + width: (constraints.maxWidth / (widget.duration.inMilliseconds / widget.buffer.inMilliseconds)) .clamp(1, constraints.maxWidth), height: sliderHeight, child: GappedContainerShape( - activeColor: Theme.of(context) - .colorScheme - .primary - .withValues(alpha: 0.5), - inActiveColor: Theme.of(context) - .colorScheme - .primary - .withValues(alpha: 0.5), + activeColor: Theme.of(context).colorScheme.primary.withValues(alpha: 0.5), + inActiveColor: Theme.of(context).colorScheme.primary.withValues(alpha: 0.5), thumbPosition: bufferFraction, ), ), @@ -205,11 +185,9 @@ class _ChapterProgressSliderState extends ConsumerState { ...chapters.map( (chapter) { final offset = constraints.maxWidth / - (widget.duration.inMilliseconds / - chapter.startPosition.inMilliseconds) + (widget.duration.inMilliseconds / chapter.startPosition.inMilliseconds) .clamp(1, constraints.maxWidth); - final activePosition = - chapter.startPosition < widget.position; + final activePosition = chapter.startPosition < widget.position; if (chapter.startPosition.inSeconds == 0) return null; return Positioned( left: offset, @@ -219,10 +197,7 @@ class _ChapterProgressSliderState extends ConsumerState { shape: BoxShape.circle, color: activePosition ? Theme.of(context).colorScheme.onPrimary - : Theme.of(context) - .colorScheme - .onSurface - .withValues(alpha: 0.5), + : Theme.of(context).colorScheme.onSurface.withValues(alpha: 0.5), ), height: constraints.maxHeight, width: sliderHeight - (activePosition ? 2 : 4), @@ -238,9 +213,7 @@ class _ChapterProgressSliderState extends ConsumerState { if (!widget.buffering) ...[ chapterCard(context, position, isVisible), Positioned( - left: (constraints.maxWidth / - (widget.duration.inMilliseconds / - position.inMilliseconds)) + left: (constraints.maxWidth / (widget.duration.inMilliseconds / position.inMilliseconds)) .clamp(1, constraints.maxWidth), child: Transform.translate( offset: Offset(-(constraints.maxHeight / 2), 0), @@ -274,20 +247,15 @@ class _ChapterProgressSliderState extends ConsumerState { } double calculateFractionWidth(BoxConstraints constraints, Duration incoming) { - return (constraints.maxWidth * - (incoming.inSeconds / widget.duration.inSeconds)) - .clamp(0, constraints.maxWidth); + return (constraints.maxWidth * (incoming.inSeconds / widget.duration.inSeconds)).clamp(0, constraints.maxWidth); } double calculateStartOffset(BoxConstraints constraints, Duration start) { - return (constraints.maxWidth * - (start.inSeconds / widget.duration.inSeconds)) - .clamp(0, constraints.maxWidth); + return (constraints.maxWidth * (start.inSeconds / widget.duration.inSeconds)).clamp(0, constraints.maxWidth); } double calculateEndOffset(BoxConstraints constraints, Duration end) { - return (constraints.maxWidth * (end.inSeconds / widget.duration.inSeconds)) - .clamp(0, constraints.maxWidth); + return (constraints.maxWidth * (end.inSeconds / widget.duration.inSeconds)).clamp(0, constraints.maxWidth); } double calculateRightOffset(BoxConstraints constraints, Duration end) { @@ -298,22 +266,19 @@ class _ChapterProgressSliderState extends ConsumerState { Widget chapterCard(BuildContext context, Duration duration, bool visible) { const double height = 350; final currentStream = ref.watch(playBackModel.select((value) => value)); - final chapter = - (currentStream?.chapters ?? []).getChapterFromDuration(currentDuration); + final chapter = (currentStream?.chapters ?? []).getChapterFromDuration(currentDuration); final trickPlay = currentStream?.trickPlay; final screenWidth = MediaQuery.of(context).size.width; final calculatedPosition = _chapterPosition; final offsetDifference = _chapterPosition - calculatedPosition; return Positioned( - left: - calculatedPosition.clamp(-10, screenWidth - (chapterCardWidth + 45)), + left: calculatedPosition.clamp(-10, screenWidth - (chapterCardWidth + 45)), child: IgnorePointer( child: AnimatedOpacity( opacity: visible ? 1 : 0, duration: const Duration(milliseconds: 250), child: ConstrainedBox( - constraints: - BoxConstraints(maxHeight: height, maxWidth: chapterCardWidth), + constraints: BoxConstraints(maxHeight: height, maxWidth: chapterCardWidth), child: Transform.translate( offset: const Offset(0, -height - 10), child: Align( @@ -332,10 +297,8 @@ class _ChapterProgressSliderState extends ConsumerState { child: ConstrainedBox( constraints: const BoxConstraints(maxHeight: 250), child: ClipRRect( - borderRadius: - const BorderRadius.all(Radius.circular(8)), - child: trickPlay == null || - trickPlay.images.isEmpty + borderRadius: const BorderRadius.all(Radius.circular(8)), + child: trickPlay == null || trickPlay.images.isEmpty ? chapter != null ? Image( image: chapter.imageProvider, @@ -343,8 +306,7 @@ class _ChapterProgressSliderState extends ConsumerState { ) : const SizedBox.shrink() : AspectRatio( - aspectRatio: trickPlay.width.toDouble() / - trickPlay.height.toDouble(), + aspectRatio: trickPlay.width.toDouble() / trickPlay.height.toDouble(), child: TrickPlayImage( trickPlay, position: currentDuration, @@ -364,8 +326,7 @@ class _ChapterProgressSliderState extends ConsumerState { height: 30, width: 30, decoration: BoxDecoration( - color: - Theme.of(context).colorScheme.surface, + color: Theme.of(context).colorScheme.surface, borderRadius: BorderRadius.circular(8), ), ), @@ -380,8 +341,7 @@ class _ChapterProgressSliderState extends ConsumerState { padding: const EdgeInsets.all(8.0), child: Row( mainAxisSize: MainAxisSize.max, - mainAxisAlignment: - MainAxisAlignment.spaceBetween, + mainAxisAlignment: MainAxisAlignment.spaceBetween, children: [ if (chapter?.name.isNotEmpty ?? false) Flexible( @@ -390,18 +350,14 @@ class _ChapterProgressSliderState extends ConsumerState { style: Theme.of(context) .textTheme .titleSmall - ?.copyWith( - fontWeight: FontWeight.bold), + ?.copyWith(fontWeight: FontWeight.bold), ), ), Text( currentDuration.readAbleDuration, textAlign: TextAlign.center, - style: Theme.of(context) - .textTheme - .titleSmall - ?.copyWith( - fontWeight: FontWeight.bold), + style: + Theme.of(context).textTheme.titleSmall?.copyWith(fontWeight: FontWeight.bold), ) ], ), @@ -426,8 +382,7 @@ class _ChapterProgressSliderState extends ConsumerState { setState(() { _chapterPosition = xPosition - chapterCardWidth / 2; final value = ((maxWidth - xPosition) / maxWidth - 1).abs(); - currentDuration = Duration( - milliseconds: (widget.duration.inMilliseconds * value).toInt()); + currentDuration = Duration(milliseconds: (widget.duration.inMilliseconds * value).toInt()); }); } } diff --git a/lib/screens/video_player/video_player_controls.dart b/lib/screens/video_player/video_player_controls.dart index f9f108780..719c4156b 100644 --- a/lib/screens/video_player/video_player_controls.dart +++ b/lib/screens/video_player/video_player_controls.dart @@ -101,7 +101,9 @@ class _DesktopControlsState extends ConsumerState { children: [ Positioned.fill( child: GestureDetector( - onTap: initInputDevice == InputDevice.pointer ? () => ref.read(videoPlayerProvider.notifier).userPlayOrPause() : () => toggleOverlay(), + onTap: initInputDevice == InputDevice.pointer + ? () => ref.read(videoPlayerProvider.notifier).userPlayOrPause() + : () => toggleOverlay(), onDoubleTap: initInputDevice == InputDevice.pointer ? () => fullScreenHelper.toggleFullScreen(ref) : null, ), diff --git a/lib/seerr/seerr_chopper_service.chopper.dart b/lib/seerr/seerr_chopper_service.chopper.dart index 2fdb09ed5..a8bac573a 100644 --- a/lib/seerr/seerr_chopper_service.chopper.dart +++ b/lib/seerr/seerr_chopper_service.chopper.dart @@ -102,8 +102,7 @@ final class _$SeerrChopperService extends SeerrChopperService { $url, client.baseUrl, ); - return client - .send($request); + return client.send($request); } @override @@ -125,8 +124,7 @@ final class _$SeerrChopperService extends SeerrChopperService { $url, client.baseUrl, ); - return client - .send($request); + return client.send($request); } @override @@ -156,9 +154,7 @@ final class _$SeerrChopperService extends SeerrChopperService { String? language, }) { final Uri $url = Uri.parse('/api/v1/movie/${movieId}'); - final Map $params = { - 'language': language - }; + final Map $params = {'language': language}; final Request $request = Request( 'GET', $url, @@ -174,9 +170,7 @@ final class _$SeerrChopperService extends SeerrChopperService { String? language, }) { final Uri $url = Uri.parse('/api/v1/tv/${tvId}'); - final Map $params = { - 'language': language - }; + final Map $params = {'language': language}; final Request $request = Request( 'GET', $url, @@ -193,9 +187,7 @@ final class _$SeerrChopperService extends SeerrChopperService { String? language, }) { final Uri $url = Uri.parse('/api/v1/tv/${tvId}/season/${seasonNumber}'); - final Map $params = { - 'language': language - }; + final Map $params = {'language': language}; final Request $request = Request( 'GET', $url, @@ -264,8 +256,7 @@ final class _$SeerrChopperService extends SeerrChopperService { } @override - Future> createRequest( - SeerrCreateRequestBody body) { + Future> createRequest(SeerrCreateRequestBody body) { final Uri $url = Uri.parse('/api/v1/request'); final $body = body; final Request $request = Request( @@ -531,9 +522,7 @@ final class _$SeerrChopperService extends SeerrChopperService { String? language, }) { final Uri $url = Uri.parse('/api/v1/movie/${movieId}/similar'); - final Map $params = { - 'language': language - }; + final Map $params = {'language': language}; final Request $request = Request( 'GET', $url, @@ -549,9 +538,7 @@ final class _$SeerrChopperService extends SeerrChopperService { String? language, }) { final Uri $url = Uri.parse('/api/v1/tv/${tvId}/similar'); - final Map $params = { - 'language': language - }; + final Map $params = {'language': language}; final Request $request = Request( 'GET', $url, @@ -567,9 +554,7 @@ final class _$SeerrChopperService extends SeerrChopperService { String? language, }) { final Uri $url = Uri.parse('/api/v1/movie/${movieId}/recommendations'); - final Map $params = { - 'language': language - }; + final Map $params = {'language': language}; final Request $request = Request( 'GET', $url, @@ -607,9 +592,7 @@ final class _$SeerrChopperService extends SeerrChopperService { String? language, }) { final Uri $url = Uri.parse('/api/v1/tv/${tvId}/recommendations'); - final Map $params = { - 'language': language - }; + final Map $params = {'language': language}; final Request $request = Request( 'GET', $url, @@ -656,8 +639,7 @@ final class _$SeerrChopperService extends SeerrChopperService { client.baseUrl, parameters: $params, ); - return client - .send($request); + return client.send($request); } @override @@ -683,12 +665,9 @@ final class _$SeerrChopperService extends SeerrChopperService { } @override - Future>> getMovieWatchProviders( - {String? watchRegion}) { + Future>> getMovieWatchProviders({String? watchRegion}) { final Uri $url = Uri.parse('/api/v1/watchproviders/movies'); - final Map $params = { - 'watchRegion': watchRegion - }; + final Map $params = {'watchRegion': watchRegion}; final Request $request = Request( 'GET', $url, @@ -699,12 +678,9 @@ final class _$SeerrChopperService extends SeerrChopperService { } @override - Future>> getTvWatchProviders( - {String? watchRegion}) { + Future>> getTvWatchProviders({String? watchRegion}) { final Uri $url = Uri.parse('/api/v1/watchproviders/tv'); - final Map $params = { - 'watchRegion': watchRegion - }; + final Map $params = {'watchRegion': watchRegion}; final Request $request = Request( 'GET', $url, @@ -722,8 +698,7 @@ final class _$SeerrChopperService extends SeerrChopperService { $url, client.baseUrl, ); - return client.send, - SeerrWatchProviderRegion>($request); + return client.send, SeerrWatchProviderRegion>($request); } @override @@ -734,8 +709,7 @@ final class _$SeerrChopperService extends SeerrChopperService { $url, client.baseUrl, ); - return client.send($request); + return client.send($request); } @override @@ -746,7 +720,6 @@ final class _$SeerrChopperService extends SeerrChopperService { $url, client.baseUrl, ); - return client.send($request); + return client.send($request); } } diff --git a/lib/seerr/seerr_models.freezed.dart b/lib/seerr/seerr_models.freezed.dart index b0eb17a98..d0d388747 100644 --- a/lib/seerr/seerr_models.freezed.dart +++ b/lib/seerr/seerr_models.freezed.dart @@ -33,8 +33,7 @@ mixin _$SeerrUserModel { @JsonKey(includeFromJson: false, includeToJson: false) @pragma('vm:prefer-inline') $SeerrUserModelCopyWith get copyWith => - _$SeerrUserModelCopyWithImpl( - this as SeerrUserModel, _$identity); + _$SeerrUserModelCopyWithImpl(this as SeerrUserModel, _$identity); /// Serializes this SeerrUserModel to a JSON map. Map toJson(); @@ -47,8 +46,7 @@ mixin _$SeerrUserModel { /// @nodoc abstract mixin class $SeerrUserModelCopyWith<$Res> { - factory $SeerrUserModelCopyWith( - SeerrUserModel value, $Res Function(SeerrUserModel) _then) = + factory $SeerrUserModelCopyWith(SeerrUserModel value, $Res Function(SeerrUserModel) _then) = _$SeerrUserModelCopyWithImpl; @useResult $Res call( @@ -68,8 +66,7 @@ abstract mixin class $SeerrUserModelCopyWith<$Res> { } /// @nodoc -class _$SeerrUserModelCopyWithImpl<$Res> - implements $SeerrUserModelCopyWith<$Res> { +class _$SeerrUserModelCopyWithImpl<$Res> implements $SeerrUserModelCopyWith<$Res> { _$SeerrUserModelCopyWithImpl(this._self, this._then); final SeerrUserModel _self; @@ -406,8 +403,7 @@ class _SeerrUserModel implements SeerrUserModel { this.movieQuotaDays, this.tvQuotaLimit, this.tvQuotaDays}); - factory _SeerrUserModel.fromJson(Map json) => - _$SeerrUserModelFromJson(json); + factory _SeerrUserModel.fromJson(Map json) => _$SeerrUserModelFromJson(json); @override final int? id; @@ -458,10 +454,8 @@ class _SeerrUserModel implements SeerrUserModel { } /// @nodoc -abstract mixin class _$SeerrUserModelCopyWith<$Res> - implements $SeerrUserModelCopyWith<$Res> { - factory _$SeerrUserModelCopyWith( - _SeerrUserModel value, $Res Function(_SeerrUserModel) _then) = +abstract mixin class _$SeerrUserModelCopyWith<$Res> implements $SeerrUserModelCopyWith<$Res> { + factory _$SeerrUserModelCopyWith(_SeerrUserModel value, $Res Function(_SeerrUserModel) _then) = __$SeerrUserModelCopyWithImpl; @override @useResult @@ -482,8 +476,7 @@ abstract mixin class _$SeerrUserModelCopyWith<$Res> } /// @nodoc -class __$SeerrUserModelCopyWithImpl<$Res> - implements _$SeerrUserModelCopyWith<$Res> { +class __$SeerrUserModelCopyWithImpl<$Res> implements _$SeerrUserModelCopyWith<$Res> { __$SeerrUserModelCopyWithImpl(this._self, this._then); final _SeerrUserModel _self; @@ -597,8 +590,7 @@ mixin _$SeerrSonarrServer { @JsonKey(includeFromJson: false, includeToJson: false) @pragma('vm:prefer-inline') $SeerrSonarrServerCopyWith get copyWith => - _$SeerrSonarrServerCopyWithImpl( - this as SeerrSonarrServer, _$identity); + _$SeerrSonarrServerCopyWithImpl(this as SeerrSonarrServer, _$identity); /// Serializes this SeerrSonarrServer to a JSON map. Map toJson(); @@ -611,8 +603,7 @@ mixin _$SeerrSonarrServer { /// @nodoc abstract mixin class $SeerrSonarrServerCopyWith<$Res> { - factory $SeerrSonarrServerCopyWith( - SeerrSonarrServer value, $Res Function(SeerrSonarrServer) _then) = + factory $SeerrSonarrServerCopyWith(SeerrSonarrServer value, $Res Function(SeerrSonarrServer) _then) = _$SeerrSonarrServerCopyWithImpl; @useResult $Res call( @@ -643,8 +634,7 @@ abstract mixin class $SeerrSonarrServerCopyWith<$Res> { } /// @nodoc -class _$SeerrSonarrServerCopyWithImpl<$Res> - implements $SeerrSonarrServerCopyWith<$Res> { +class _$SeerrSonarrServerCopyWithImpl<$Res> implements $SeerrSonarrServerCopyWith<$Res> { _$SeerrSonarrServerCopyWithImpl(this._self, this._then); final SeerrSonarrServer _self; @@ -1113,8 +1103,7 @@ class _SeerrSonarrServer implements SeerrSonarrServer { this.tags, this.rootFolders, this.activeTags}); - factory _SeerrSonarrServer.fromJson(Map json) => - _$SeerrSonarrServerFromJson(json); + factory _SeerrSonarrServer.fromJson(Map json) => _$SeerrSonarrServerFromJson(json); @override final int? id; @@ -1187,10 +1176,8 @@ class _SeerrSonarrServer implements SeerrSonarrServer { } /// @nodoc -abstract mixin class _$SeerrSonarrServerCopyWith<$Res> - implements $SeerrSonarrServerCopyWith<$Res> { - factory _$SeerrSonarrServerCopyWith( - _SeerrSonarrServer value, $Res Function(_SeerrSonarrServer) _then) = +abstract mixin class _$SeerrSonarrServerCopyWith<$Res> implements $SeerrSonarrServerCopyWith<$Res> { + factory _$SeerrSonarrServerCopyWith(_SeerrSonarrServer value, $Res Function(_SeerrSonarrServer) _then) = __$SeerrSonarrServerCopyWithImpl; @override @useResult @@ -1222,8 +1209,7 @@ abstract mixin class _$SeerrSonarrServerCopyWith<$Res> } /// @nodoc -class __$SeerrSonarrServerCopyWithImpl<$Res> - implements _$SeerrSonarrServerCopyWith<$Res> { +class __$SeerrSonarrServerCopyWithImpl<$Res> implements _$SeerrSonarrServerCopyWith<$Res> { __$SeerrSonarrServerCopyWithImpl(this._self, this._then); final _SeerrSonarrServer _self; @@ -1372,8 +1358,7 @@ mixin _$SeerrSonarrServerResponse { @JsonKey(includeFromJson: false, includeToJson: false) @pragma('vm:prefer-inline') $SeerrSonarrServerResponseCopyWith get copyWith => - _$SeerrSonarrServerResponseCopyWithImpl( - this as SeerrSonarrServerResponse, _$identity); + _$SeerrSonarrServerResponseCopyWithImpl(this as SeerrSonarrServerResponse, _$identity); /// Serializes this SeerrSonarrServerResponse to a JSON map. Map toJson(); @@ -1386,8 +1371,8 @@ mixin _$SeerrSonarrServerResponse { /// @nodoc abstract mixin class $SeerrSonarrServerResponseCopyWith<$Res> { - factory $SeerrSonarrServerResponseCopyWith(SeerrSonarrServerResponse value, - $Res Function(SeerrSonarrServerResponse) _then) = + factory $SeerrSonarrServerResponseCopyWith( + SeerrSonarrServerResponse value, $Res Function(SeerrSonarrServerResponse) _then) = _$SeerrSonarrServerResponseCopyWithImpl; @useResult $Res call( @@ -1400,8 +1385,7 @@ abstract mixin class $SeerrSonarrServerResponseCopyWith<$Res> { } /// @nodoc -class _$SeerrSonarrServerResponseCopyWithImpl<$Res> - implements $SeerrSonarrServerResponseCopyWith<$Res> { +class _$SeerrSonarrServerResponseCopyWithImpl<$Res> implements $SeerrSonarrServerResponseCopyWith<$Res> { _$SeerrSonarrServerResponseCopyWithImpl(this._self, this._then); final SeerrSonarrServerResponse _self; @@ -1545,10 +1529,7 @@ extension SeerrSonarrServerResponsePatterns on SeerrSonarrServerResponse { @optionalTypeArgs TResult maybeWhen( - TResult Function( - SeerrSonarrServer? server, - List? profiles, - List? rootFolders, + TResult Function(SeerrSonarrServer? server, List? profiles, List? rootFolders, List? tags)? $default, { required TResult orElse(), @@ -1556,8 +1537,7 @@ extension SeerrSonarrServerResponsePatterns on SeerrSonarrServerResponse { final _that = this; switch (_that) { case _SeerrSonarrServerResponse() when $default != null: - return $default( - _that.server, _that.profiles, _that.rootFolders, _that.tags); + return $default(_that.server, _that.profiles, _that.rootFolders, _that.tags); case _: return orElse(); } @@ -1578,18 +1558,14 @@ extension SeerrSonarrServerResponsePatterns on SeerrSonarrServerResponse { @optionalTypeArgs TResult when( - TResult Function( - SeerrSonarrServer? server, - List? profiles, - List? rootFolders, + TResult Function(SeerrSonarrServer? server, List? profiles, List? rootFolders, List? tags) $default, ) { final _that = this; switch (_that) { case _SeerrSonarrServerResponse(): - return $default( - _that.server, _that.profiles, _that.rootFolders, _that.tags); + return $default(_that.server, _that.profiles, _that.rootFolders, _that.tags); case _: throw StateError('Unexpected subclass'); } @@ -1609,18 +1585,14 @@ extension SeerrSonarrServerResponsePatterns on SeerrSonarrServerResponse { @optionalTypeArgs TResult? whenOrNull( - TResult? Function( - SeerrSonarrServer? server, - List? profiles, - List? rootFolders, - List? tags)? + TResult? Function(SeerrSonarrServer? server, List? profiles, + List? rootFolders, List? tags)? $default, ) { final _that = this; switch (_that) { case _SeerrSonarrServerResponse() when $default != null: - return $default( - _that.server, _that.profiles, _that.rootFolders, _that.tags); + return $default(_that.server, _that.profiles, _that.rootFolders, _that.tags); case _: return null; } @@ -1630,10 +1602,8 @@ extension SeerrSonarrServerResponsePatterns on SeerrSonarrServerResponse { /// @nodoc @JsonSerializable() class _SeerrSonarrServerResponse implements SeerrSonarrServerResponse { - const _SeerrSonarrServerResponse( - {this.server, this.profiles, this.rootFolders, this.tags}); - factory _SeerrSonarrServerResponse.fromJson(Map json) => - _$SeerrSonarrServerResponseFromJson(json); + const _SeerrSonarrServerResponse({this.server, this.profiles, this.rootFolders, this.tags}); + factory _SeerrSonarrServerResponse.fromJson(Map json) => _$SeerrSonarrServerResponseFromJson(json); @override final SeerrSonarrServer? server; @@ -1649,10 +1619,8 @@ class _SeerrSonarrServerResponse implements SeerrSonarrServerResponse { @override @JsonKey(includeFromJson: false, includeToJson: false) @pragma('vm:prefer-inline') - _$SeerrSonarrServerResponseCopyWith<_SeerrSonarrServerResponse> - get copyWith => - __$SeerrSonarrServerResponseCopyWithImpl<_SeerrSonarrServerResponse>( - this, _$identity); + _$SeerrSonarrServerResponseCopyWith<_SeerrSonarrServerResponse> get copyWith => + __$SeerrSonarrServerResponseCopyWithImpl<_SeerrSonarrServerResponse>(this, _$identity); @override Map toJson() { @@ -1668,10 +1636,9 @@ class _SeerrSonarrServerResponse implements SeerrSonarrServerResponse { } /// @nodoc -abstract mixin class _$SeerrSonarrServerResponseCopyWith<$Res> - implements $SeerrSonarrServerResponseCopyWith<$Res> { - factory _$SeerrSonarrServerResponseCopyWith(_SeerrSonarrServerResponse value, - $Res Function(_SeerrSonarrServerResponse) _then) = +abstract mixin class _$SeerrSonarrServerResponseCopyWith<$Res> implements $SeerrSonarrServerResponseCopyWith<$Res> { + factory _$SeerrSonarrServerResponseCopyWith( + _SeerrSonarrServerResponse value, $Res Function(_SeerrSonarrServerResponse) _then) = __$SeerrSonarrServerResponseCopyWithImpl; @override @useResult @@ -1686,8 +1653,7 @@ abstract mixin class _$SeerrSonarrServerResponseCopyWith<$Res> } /// @nodoc -class __$SeerrSonarrServerResponseCopyWithImpl<$Res> - implements _$SeerrSonarrServerResponseCopyWith<$Res> { +class __$SeerrSonarrServerResponseCopyWithImpl<$Res> implements _$SeerrSonarrServerResponseCopyWith<$Res> { __$SeerrSonarrServerResponseCopyWithImpl(this._self, this._then); final _SeerrSonarrServerResponse _self; @@ -1770,8 +1736,7 @@ mixin _$SeerrRadarrServer { @JsonKey(includeFromJson: false, includeToJson: false) @pragma('vm:prefer-inline') $SeerrRadarrServerCopyWith get copyWith => - _$SeerrRadarrServerCopyWithImpl( - this as SeerrRadarrServer, _$identity); + _$SeerrRadarrServerCopyWithImpl(this as SeerrRadarrServer, _$identity); /// Serializes this SeerrRadarrServer to a JSON map. Map toJson(); @@ -1784,8 +1749,7 @@ mixin _$SeerrRadarrServer { /// @nodoc abstract mixin class $SeerrRadarrServerCopyWith<$Res> { - factory $SeerrRadarrServerCopyWith( - SeerrRadarrServer value, $Res Function(SeerrRadarrServer) _then) = + factory $SeerrRadarrServerCopyWith(SeerrRadarrServer value, $Res Function(SeerrRadarrServer) _then) = _$SeerrRadarrServerCopyWithImpl; @useResult $Res call( @@ -1816,8 +1780,7 @@ abstract mixin class $SeerrRadarrServerCopyWith<$Res> { } /// @nodoc -class _$SeerrRadarrServerCopyWithImpl<$Res> - implements $SeerrRadarrServerCopyWith<$Res> { +class _$SeerrRadarrServerCopyWithImpl<$Res> implements $SeerrRadarrServerCopyWith<$Res> { _$SeerrRadarrServerCopyWithImpl(this._self, this._then); final SeerrRadarrServer _self; @@ -2286,8 +2249,7 @@ class _SeerrRadarrServer implements SeerrRadarrServer { this.tags, this.rootFolders, this.activeTags}); - factory _SeerrRadarrServer.fromJson(Map json) => - _$SeerrRadarrServerFromJson(json); + factory _SeerrRadarrServer.fromJson(Map json) => _$SeerrRadarrServerFromJson(json); @override final int? id; @@ -2360,10 +2322,8 @@ class _SeerrRadarrServer implements SeerrRadarrServer { } /// @nodoc -abstract mixin class _$SeerrRadarrServerCopyWith<$Res> - implements $SeerrRadarrServerCopyWith<$Res> { - factory _$SeerrRadarrServerCopyWith( - _SeerrRadarrServer value, $Res Function(_SeerrRadarrServer) _then) = +abstract mixin class _$SeerrRadarrServerCopyWith<$Res> implements $SeerrRadarrServerCopyWith<$Res> { + factory _$SeerrRadarrServerCopyWith(_SeerrRadarrServer value, $Res Function(_SeerrRadarrServer) _then) = __$SeerrRadarrServerCopyWithImpl; @override @useResult @@ -2395,8 +2355,7 @@ abstract mixin class _$SeerrRadarrServerCopyWith<$Res> } /// @nodoc -class __$SeerrRadarrServerCopyWithImpl<$Res> - implements _$SeerrRadarrServerCopyWith<$Res> { +class __$SeerrRadarrServerCopyWithImpl<$Res> implements _$SeerrRadarrServerCopyWith<$Res> { __$SeerrRadarrServerCopyWithImpl(this._self, this._then); final _SeerrRadarrServer _self; @@ -2545,8 +2504,7 @@ mixin _$SeerrRadarrServerResponse { @JsonKey(includeFromJson: false, includeToJson: false) @pragma('vm:prefer-inline') $SeerrRadarrServerResponseCopyWith get copyWith => - _$SeerrRadarrServerResponseCopyWithImpl( - this as SeerrRadarrServerResponse, _$identity); + _$SeerrRadarrServerResponseCopyWithImpl(this as SeerrRadarrServerResponse, _$identity); /// Serializes this SeerrRadarrServerResponse to a JSON map. Map toJson(); @@ -2559,8 +2517,8 @@ mixin _$SeerrRadarrServerResponse { /// @nodoc abstract mixin class $SeerrRadarrServerResponseCopyWith<$Res> { - factory $SeerrRadarrServerResponseCopyWith(SeerrRadarrServerResponse value, - $Res Function(SeerrRadarrServerResponse) _then) = + factory $SeerrRadarrServerResponseCopyWith( + SeerrRadarrServerResponse value, $Res Function(SeerrRadarrServerResponse) _then) = _$SeerrRadarrServerResponseCopyWithImpl; @useResult $Res call( @@ -2573,8 +2531,7 @@ abstract mixin class $SeerrRadarrServerResponseCopyWith<$Res> { } /// @nodoc -class _$SeerrRadarrServerResponseCopyWithImpl<$Res> - implements $SeerrRadarrServerResponseCopyWith<$Res> { +class _$SeerrRadarrServerResponseCopyWithImpl<$Res> implements $SeerrRadarrServerResponseCopyWith<$Res> { _$SeerrRadarrServerResponseCopyWithImpl(this._self, this._then); final SeerrRadarrServerResponse _self; @@ -2718,10 +2675,7 @@ extension SeerrRadarrServerResponsePatterns on SeerrRadarrServerResponse { @optionalTypeArgs TResult maybeWhen( - TResult Function( - SeerrRadarrServer? server, - List? profiles, - List? rootFolders, + TResult Function(SeerrRadarrServer? server, List? profiles, List? rootFolders, List? tags)? $default, { required TResult orElse(), @@ -2729,8 +2683,7 @@ extension SeerrRadarrServerResponsePatterns on SeerrRadarrServerResponse { final _that = this; switch (_that) { case _SeerrRadarrServerResponse() when $default != null: - return $default( - _that.server, _that.profiles, _that.rootFolders, _that.tags); + return $default(_that.server, _that.profiles, _that.rootFolders, _that.tags); case _: return orElse(); } @@ -2751,18 +2704,14 @@ extension SeerrRadarrServerResponsePatterns on SeerrRadarrServerResponse { @optionalTypeArgs TResult when( - TResult Function( - SeerrRadarrServer? server, - List? profiles, - List? rootFolders, + TResult Function(SeerrRadarrServer? server, List? profiles, List? rootFolders, List? tags) $default, ) { final _that = this; switch (_that) { case _SeerrRadarrServerResponse(): - return $default( - _that.server, _that.profiles, _that.rootFolders, _that.tags); + return $default(_that.server, _that.profiles, _that.rootFolders, _that.tags); case _: throw StateError('Unexpected subclass'); } @@ -2782,18 +2731,14 @@ extension SeerrRadarrServerResponsePatterns on SeerrRadarrServerResponse { @optionalTypeArgs TResult? whenOrNull( - TResult? Function( - SeerrRadarrServer? server, - List? profiles, - List? rootFolders, - List? tags)? + TResult? Function(SeerrRadarrServer? server, List? profiles, + List? rootFolders, List? tags)? $default, ) { final _that = this; switch (_that) { case _SeerrRadarrServerResponse() when $default != null: - return $default( - _that.server, _that.profiles, _that.rootFolders, _that.tags); + return $default(_that.server, _that.profiles, _that.rootFolders, _that.tags); case _: return null; } @@ -2803,10 +2748,8 @@ extension SeerrRadarrServerResponsePatterns on SeerrRadarrServerResponse { /// @nodoc @JsonSerializable() class _SeerrRadarrServerResponse implements SeerrRadarrServerResponse { - const _SeerrRadarrServerResponse( - {this.server, this.profiles, this.rootFolders, this.tags}); - factory _SeerrRadarrServerResponse.fromJson(Map json) => - _$SeerrRadarrServerResponseFromJson(json); + const _SeerrRadarrServerResponse({this.server, this.profiles, this.rootFolders, this.tags}); + factory _SeerrRadarrServerResponse.fromJson(Map json) => _$SeerrRadarrServerResponseFromJson(json); @override final SeerrRadarrServer? server; @@ -2822,10 +2765,8 @@ class _SeerrRadarrServerResponse implements SeerrRadarrServerResponse { @override @JsonKey(includeFromJson: false, includeToJson: false) @pragma('vm:prefer-inline') - _$SeerrRadarrServerResponseCopyWith<_SeerrRadarrServerResponse> - get copyWith => - __$SeerrRadarrServerResponseCopyWithImpl<_SeerrRadarrServerResponse>( - this, _$identity); + _$SeerrRadarrServerResponseCopyWith<_SeerrRadarrServerResponse> get copyWith => + __$SeerrRadarrServerResponseCopyWithImpl<_SeerrRadarrServerResponse>(this, _$identity); @override Map toJson() { @@ -2841,10 +2782,9 @@ class _SeerrRadarrServerResponse implements SeerrRadarrServerResponse { } /// @nodoc -abstract mixin class _$SeerrRadarrServerResponseCopyWith<$Res> - implements $SeerrRadarrServerResponseCopyWith<$Res> { - factory _$SeerrRadarrServerResponseCopyWith(_SeerrRadarrServerResponse value, - $Res Function(_SeerrRadarrServerResponse) _then) = +abstract mixin class _$SeerrRadarrServerResponseCopyWith<$Res> implements $SeerrRadarrServerResponseCopyWith<$Res> { + factory _$SeerrRadarrServerResponseCopyWith( + _SeerrRadarrServerResponse value, $Res Function(_SeerrRadarrServerResponse) _then) = __$SeerrRadarrServerResponseCopyWithImpl; @override @useResult @@ -2859,8 +2799,7 @@ abstract mixin class _$SeerrRadarrServerResponseCopyWith<$Res> } /// @nodoc -class __$SeerrRadarrServerResponseCopyWithImpl<$Res> - implements _$SeerrRadarrServerResponseCopyWith<$Res> { +class __$SeerrRadarrServerResponseCopyWithImpl<$Res> implements _$SeerrRadarrServerResponseCopyWith<$Res> { __$SeerrRadarrServerResponseCopyWithImpl(this._self, this._then); final _SeerrRadarrServerResponse _self; @@ -2921,8 +2860,7 @@ mixin _$SeerrServiceProfile { @JsonKey(includeFromJson: false, includeToJson: false) @pragma('vm:prefer-inline') $SeerrServiceProfileCopyWith get copyWith => - _$SeerrServiceProfileCopyWithImpl( - this as SeerrServiceProfile, _$identity); + _$SeerrServiceProfileCopyWithImpl(this as SeerrServiceProfile, _$identity); /// Serializes this SeerrServiceProfile to a JSON map. Map toJson(); @@ -2935,16 +2873,14 @@ mixin _$SeerrServiceProfile { /// @nodoc abstract mixin class $SeerrServiceProfileCopyWith<$Res> { - factory $SeerrServiceProfileCopyWith( - SeerrServiceProfile value, $Res Function(SeerrServiceProfile) _then) = + factory $SeerrServiceProfileCopyWith(SeerrServiceProfile value, $Res Function(SeerrServiceProfile) _then) = _$SeerrServiceProfileCopyWithImpl; @useResult $Res call({int? id, String? name}); } /// @nodoc -class _$SeerrServiceProfileCopyWithImpl<$Res> - implements $SeerrServiceProfileCopyWith<$Res> { +class _$SeerrServiceProfileCopyWithImpl<$Res> implements $SeerrServiceProfileCopyWith<$Res> { _$SeerrServiceProfileCopyWithImpl(this._self, this._then); final SeerrServiceProfile _self; @@ -3132,8 +3068,7 @@ extension SeerrServiceProfilePatterns on SeerrServiceProfile { @JsonSerializable() class _SeerrServiceProfile implements SeerrServiceProfile { const _SeerrServiceProfile({this.id, this.name}); - factory _SeerrServiceProfile.fromJson(Map json) => - _$SeerrServiceProfileFromJson(json); + factory _SeerrServiceProfile.fromJson(Map json) => _$SeerrServiceProfileFromJson(json); @override final int? id; @@ -3146,8 +3081,7 @@ class _SeerrServiceProfile implements SeerrServiceProfile { @JsonKey(includeFromJson: false, includeToJson: false) @pragma('vm:prefer-inline') _$SeerrServiceProfileCopyWith<_SeerrServiceProfile> get copyWith => - __$SeerrServiceProfileCopyWithImpl<_SeerrServiceProfile>( - this, _$identity); + __$SeerrServiceProfileCopyWithImpl<_SeerrServiceProfile>(this, _$identity); @override Map toJson() { @@ -3163,10 +3097,8 @@ class _SeerrServiceProfile implements SeerrServiceProfile { } /// @nodoc -abstract mixin class _$SeerrServiceProfileCopyWith<$Res> - implements $SeerrServiceProfileCopyWith<$Res> { - factory _$SeerrServiceProfileCopyWith(_SeerrServiceProfile value, - $Res Function(_SeerrServiceProfile) _then) = +abstract mixin class _$SeerrServiceProfileCopyWith<$Res> implements $SeerrServiceProfileCopyWith<$Res> { + factory _$SeerrServiceProfileCopyWith(_SeerrServiceProfile value, $Res Function(_SeerrServiceProfile) _then) = __$SeerrServiceProfileCopyWithImpl; @override @useResult @@ -3174,8 +3106,7 @@ abstract mixin class _$SeerrServiceProfileCopyWith<$Res> } /// @nodoc -class __$SeerrServiceProfileCopyWithImpl<$Res> - implements _$SeerrServiceProfileCopyWith<$Res> { +class __$SeerrServiceProfileCopyWithImpl<$Res> implements _$SeerrServiceProfileCopyWith<$Res> { __$SeerrServiceProfileCopyWithImpl(this._self, this._then); final _SeerrServiceProfile _self; @@ -3212,8 +3143,7 @@ mixin _$SeerrServiceTag { @JsonKey(includeFromJson: false, includeToJson: false) @pragma('vm:prefer-inline') $SeerrServiceTagCopyWith get copyWith => - _$SeerrServiceTagCopyWithImpl( - this as SeerrServiceTag, _$identity); + _$SeerrServiceTagCopyWithImpl(this as SeerrServiceTag, _$identity); /// Serializes this SeerrServiceTag to a JSON map. Map toJson(); @@ -3226,16 +3156,14 @@ mixin _$SeerrServiceTag { /// @nodoc abstract mixin class $SeerrServiceTagCopyWith<$Res> { - factory $SeerrServiceTagCopyWith( - SeerrServiceTag value, $Res Function(SeerrServiceTag) _then) = + factory $SeerrServiceTagCopyWith(SeerrServiceTag value, $Res Function(SeerrServiceTag) _then) = _$SeerrServiceTagCopyWithImpl; @useResult $Res call({int? id, String? label}); } /// @nodoc -class _$SeerrServiceTagCopyWithImpl<$Res> - implements $SeerrServiceTagCopyWith<$Res> { +class _$SeerrServiceTagCopyWithImpl<$Res> implements $SeerrServiceTagCopyWith<$Res> { _$SeerrServiceTagCopyWithImpl(this._self, this._then); final SeerrServiceTag _self; @@ -3423,8 +3351,7 @@ extension SeerrServiceTagPatterns on SeerrServiceTag { @JsonSerializable() class _SeerrServiceTag implements SeerrServiceTag { const _SeerrServiceTag({this.id, this.label}); - factory _SeerrServiceTag.fromJson(Map json) => - _$SeerrServiceTagFromJson(json); + factory _SeerrServiceTag.fromJson(Map json) => _$SeerrServiceTagFromJson(json); @override final int? id; @@ -3453,10 +3380,8 @@ class _SeerrServiceTag implements SeerrServiceTag { } /// @nodoc -abstract mixin class _$SeerrServiceTagCopyWith<$Res> - implements $SeerrServiceTagCopyWith<$Res> { - factory _$SeerrServiceTagCopyWith( - _SeerrServiceTag value, $Res Function(_SeerrServiceTag) _then) = +abstract mixin class _$SeerrServiceTagCopyWith<$Res> implements $SeerrServiceTagCopyWith<$Res> { + factory _$SeerrServiceTagCopyWith(_SeerrServiceTag value, $Res Function(_SeerrServiceTag) _then) = __$SeerrServiceTagCopyWithImpl; @override @useResult @@ -3464,8 +3389,7 @@ abstract mixin class _$SeerrServiceTagCopyWith<$Res> } /// @nodoc -class __$SeerrServiceTagCopyWithImpl<$Res> - implements _$SeerrServiceTagCopyWith<$Res> { +class __$SeerrServiceTagCopyWithImpl<$Res> implements _$SeerrServiceTagCopyWith<$Res> { __$SeerrServiceTagCopyWithImpl(this._self, this._then); final _SeerrServiceTag _self; @@ -3503,8 +3427,7 @@ mixin _$SeerrRootFolder { @JsonKey(includeFromJson: false, includeToJson: false) @pragma('vm:prefer-inline') $SeerrRootFolderCopyWith get copyWith => - _$SeerrRootFolderCopyWithImpl( - this as SeerrRootFolder, _$identity); + _$SeerrRootFolderCopyWithImpl(this as SeerrRootFolder, _$identity); /// Serializes this SeerrRootFolder to a JSON map. Map toJson(); @@ -3517,16 +3440,14 @@ mixin _$SeerrRootFolder { /// @nodoc abstract mixin class $SeerrRootFolderCopyWith<$Res> { - factory $SeerrRootFolderCopyWith( - SeerrRootFolder value, $Res Function(SeerrRootFolder) _then) = + factory $SeerrRootFolderCopyWith(SeerrRootFolder value, $Res Function(SeerrRootFolder) _then) = _$SeerrRootFolderCopyWithImpl; @useResult $Res call({int? id, int? freeSpace, String? path}); } /// @nodoc -class _$SeerrRootFolderCopyWithImpl<$Res> - implements $SeerrRootFolderCopyWith<$Res> { +class _$SeerrRootFolderCopyWithImpl<$Res> implements $SeerrRootFolderCopyWith<$Res> { _$SeerrRootFolderCopyWithImpl(this._self, this._then); final SeerrRootFolder _self; @@ -3719,8 +3640,7 @@ extension SeerrRootFolderPatterns on SeerrRootFolder { @JsonSerializable() class _SeerrRootFolder implements SeerrRootFolder { const _SeerrRootFolder({this.id, this.freeSpace, this.path}); - factory _SeerrRootFolder.fromJson(Map json) => - _$SeerrRootFolderFromJson(json); + factory _SeerrRootFolder.fromJson(Map json) => _$SeerrRootFolderFromJson(json); @override final int? id; @@ -3751,10 +3671,8 @@ class _SeerrRootFolder implements SeerrRootFolder { } /// @nodoc -abstract mixin class _$SeerrRootFolderCopyWith<$Res> - implements $SeerrRootFolderCopyWith<$Res> { - factory _$SeerrRootFolderCopyWith( - _SeerrRootFolder value, $Res Function(_SeerrRootFolder) _then) = +abstract mixin class _$SeerrRootFolderCopyWith<$Res> implements $SeerrRootFolderCopyWith<$Res> { + factory _$SeerrRootFolderCopyWith(_SeerrRootFolder value, $Res Function(_SeerrRootFolder) _then) = __$SeerrRootFolderCopyWithImpl; @override @useResult @@ -3762,8 +3680,7 @@ abstract mixin class _$SeerrRootFolderCopyWith<$Res> } /// @nodoc -class __$SeerrRootFolderCopyWithImpl<$Res> - implements _$SeerrRootFolderCopyWith<$Res> { +class __$SeerrRootFolderCopyWithImpl<$Res> implements _$SeerrRootFolderCopyWith<$Res> { __$SeerrRootFolderCopyWithImpl(this._self, this._then); final _SeerrRootFolder _self; @@ -3814,8 +3731,7 @@ mixin _$SeerrMediaInfo { @JsonKey(includeFromJson: false, includeToJson: false) @pragma('vm:prefer-inline') $SeerrMediaInfoCopyWith get copyWith => - _$SeerrMediaInfoCopyWithImpl( - this as SeerrMediaInfo, _$identity); + _$SeerrMediaInfoCopyWithImpl(this as SeerrMediaInfo, _$identity); /// Serializes this SeerrMediaInfo to a JSON map. Map toJson(); @@ -3828,8 +3744,7 @@ mixin _$SeerrMediaInfo { /// @nodoc abstract mixin class $SeerrMediaInfoCopyWith<$Res> { - factory $SeerrMediaInfoCopyWith( - SeerrMediaInfo value, $Res Function(SeerrMediaInfo) _then) = + factory $SeerrMediaInfoCopyWith(SeerrMediaInfo value, $Res Function(SeerrMediaInfo) _then) = _$SeerrMediaInfoCopyWithImpl; @useResult $Res call( @@ -3847,8 +3762,7 @@ abstract mixin class $SeerrMediaInfoCopyWith<$Res> { } /// @nodoc -class _$SeerrMediaInfoCopyWithImpl<$Res> - implements $SeerrMediaInfoCopyWith<$Res> { +class _$SeerrMediaInfoCopyWithImpl<$Res> implements $SeerrMediaInfoCopyWith<$Res> { _$SeerrMediaInfoCopyWithImpl(this._self, this._then); final SeerrMediaInfo _self; @@ -4166,8 +4080,7 @@ class _SeerrMediaInfo extends SeerrMediaInfo { _downloadStatus = downloadStatus, _downloadStatus4k = downloadStatus4k, super._(); - factory _SeerrMediaInfo.fromJson(Map json) => - _$SeerrMediaInfoFromJson(json); + factory _SeerrMediaInfo.fromJson(Map json) => _$SeerrMediaInfoFromJson(json); @override final int? id; @@ -4218,8 +4131,7 @@ class _SeerrMediaInfo extends SeerrMediaInfo { List? get downloadStatus4k { final value = _downloadStatus4k; if (value == null) return null; - if (_downloadStatus4k is EqualUnmodifiableListView) - return _downloadStatus4k; + if (_downloadStatus4k is EqualUnmodifiableListView) return _downloadStatus4k; // ignore: implicit_dynamic_type return EqualUnmodifiableListView(value); } @@ -4246,10 +4158,8 @@ class _SeerrMediaInfo extends SeerrMediaInfo { } /// @nodoc -abstract mixin class _$SeerrMediaInfoCopyWith<$Res> - implements $SeerrMediaInfoCopyWith<$Res> { - factory _$SeerrMediaInfoCopyWith( - _SeerrMediaInfo value, $Res Function(_SeerrMediaInfo) _then) = +abstract mixin class _$SeerrMediaInfoCopyWith<$Res> implements $SeerrMediaInfoCopyWith<$Res> { + factory _$SeerrMediaInfoCopyWith(_SeerrMediaInfo value, $Res Function(_SeerrMediaInfo) _then) = __$SeerrMediaInfoCopyWithImpl; @override @useResult @@ -4268,8 +4178,7 @@ abstract mixin class _$SeerrMediaInfoCopyWith<$Res> } /// @nodoc -class __$SeerrMediaInfoCopyWithImpl<$Res> - implements _$SeerrMediaInfoCopyWith<$Res> { +class __$SeerrMediaInfoCopyWithImpl<$Res> implements _$SeerrMediaInfoCopyWith<$Res> { __$SeerrMediaInfoCopyWithImpl(this._self, this._then); final _SeerrMediaInfo _self; @@ -4363,8 +4272,7 @@ mixin _$SeerrFilterModel { @JsonKey(includeFromJson: false, includeToJson: false) @pragma('vm:prefer-inline') $SeerrFilterModelCopyWith get copyWith => - _$SeerrFilterModelCopyWithImpl( - this as SeerrFilterModel, _$identity); + _$SeerrFilterModelCopyWithImpl(this as SeerrFilterModel, _$identity); @override String toString() { @@ -4374,8 +4282,7 @@ mixin _$SeerrFilterModel { /// @nodoc abstract mixin class $SeerrFilterModelCopyWith<$Res> { - factory $SeerrFilterModelCopyWith( - SeerrFilterModel value, $Res Function(SeerrFilterModel) _then) = + factory $SeerrFilterModelCopyWith(SeerrFilterModel value, $Res Function(SeerrFilterModel) _then) = _$SeerrFilterModelCopyWithImpl; @useResult $Res call( @@ -4396,8 +4303,7 @@ abstract mixin class $SeerrFilterModelCopyWith<$Res> { } /// @nodoc -class _$SeerrFilterModelCopyWithImpl<$Res> - implements $SeerrFilterModelCopyWith<$Res> { +class _$SeerrFilterModelCopyWithImpl<$Res> implements $SeerrFilterModelCopyWith<$Res> { _$SeerrFilterModelCopyWithImpl(this._self, this._then); final SeerrFilterModel _self; @@ -4817,10 +4723,8 @@ class _SeerrFilterModel implements SeerrFilterModel { } /// @nodoc -abstract mixin class _$SeerrFilterModelCopyWith<$Res> - implements $SeerrFilterModelCopyWith<$Res> { - factory _$SeerrFilterModelCopyWith( - _SeerrFilterModel value, $Res Function(_SeerrFilterModel) _then) = +abstract mixin class _$SeerrFilterModelCopyWith<$Res> implements $SeerrFilterModelCopyWith<$Res> { + factory _$SeerrFilterModelCopyWith(_SeerrFilterModel value, $Res Function(_SeerrFilterModel) _then) = __$SeerrFilterModelCopyWithImpl; @override @useResult @@ -4842,8 +4746,7 @@ abstract mixin class _$SeerrFilterModelCopyWith<$Res> } /// @nodoc -class __$SeerrFilterModelCopyWithImpl<$Res> - implements _$SeerrFilterModelCopyWith<$Res> { +class __$SeerrFilterModelCopyWithImpl<$Res> implements _$SeerrFilterModelCopyWith<$Res> { __$SeerrFilterModelCopyWithImpl(this._self, this._then); final _SeerrFilterModel _self; diff --git a/lib/seerr/seerr_models.g.dart b/lib/seerr/seerr_models.g.dart index 8de7086ca..b577ec71b 100644 --- a/lib/seerr/seerr_models.g.dart +++ b/lib/seerr/seerr_models.g.dart @@ -13,32 +13,24 @@ SeerrStatus _$SeerrStatusFromJson(Map json) => SeerrStatus( commitsBehind: (json['commitsBehind'] as num?)?.toInt(), ); -Map _$SeerrStatusToJson(SeerrStatus instance) => - { +Map _$SeerrStatusToJson(SeerrStatus instance) => { 'version': instance.version, 'commitTag': instance.commitTag, 'updateAvailable': instance.updateAvailable, 'commitsBehind': instance.commitsBehind, }; -SeerrUserQuota _$SeerrUserQuotaFromJson(Map json) => - SeerrUserQuota( - movie: json['movie'] == null - ? null - : SeerrQuotaEntry.fromJson(json['movie'] as Map), - tv: json['tv'] == null - ? null - : SeerrQuotaEntry.fromJson(json['tv'] as Map), +SeerrUserQuota _$SeerrUserQuotaFromJson(Map json) => SeerrUserQuota( + movie: json['movie'] == null ? null : SeerrQuotaEntry.fromJson(json['movie'] as Map), + tv: json['tv'] == null ? null : SeerrQuotaEntry.fromJson(json['tv'] as Map), ); -Map _$SeerrUserQuotaToJson(SeerrUserQuota instance) => - { +Map _$SeerrUserQuotaToJson(SeerrUserQuota instance) => { 'movie': instance.movie, 'tv': instance.tv, }; -SeerrQuotaEntry _$SeerrQuotaEntryFromJson(Map json) => - SeerrQuotaEntry( +SeerrQuotaEntry _$SeerrQuotaEntryFromJson(Map json) => SeerrQuotaEntry( days: (json['days'] as num?)?.toInt(), limit: (json['limit'] as num?)?.toInt(), used: (json['used'] as num?)?.toInt(), @@ -46,8 +38,7 @@ SeerrQuotaEntry _$SeerrQuotaEntryFromJson(Map json) => restricted: json['restricted'] as bool?, ); -Map _$SeerrQuotaEntryToJson(SeerrQuotaEntry instance) => - { +Map _$SeerrQuotaEntryToJson(SeerrQuotaEntry instance) => { 'days': instance.days, 'limit': instance.limit, 'used': instance.used, @@ -55,61 +46,47 @@ Map _$SeerrQuotaEntryToJson(SeerrQuotaEntry instance) => 'restricted': instance.restricted, }; -SeerrUserSettings _$SeerrUserSettingsFromJson(Map json) => - SeerrUserSettings( +SeerrUserSettings _$SeerrUserSettingsFromJson(Map json) => SeerrUserSettings( locale: json['locale'] as String?, discoverRegion: json['discoverRegion'] as String?, originalLanguage: json['originalLanguage'] as String?, ); -Map _$SeerrUserSettingsToJson(SeerrUserSettings instance) => - { +Map _$SeerrUserSettingsToJson(SeerrUserSettings instance) => { 'locale': instance.locale, 'discoverRegion': instance.discoverRegion, 'originalLanguage': instance.originalLanguage, }; -SeerrUsersResponse _$SeerrUsersResponseFromJson(Map json) => - SeerrUsersResponse( - results: (json['results'] as List?) - ?.map((e) => SeerrUserModel.fromJson(e as Map)) - .toList(), - pageInfo: json['pageInfo'] == null - ? null - : SeerrPageInfo.fromJson(json['pageInfo'] as Map), +SeerrUsersResponse _$SeerrUsersResponseFromJson(Map json) => SeerrUsersResponse( + results: + (json['results'] as List?)?.map((e) => SeerrUserModel.fromJson(e as Map)).toList(), + pageInfo: json['pageInfo'] == null ? null : SeerrPageInfo.fromJson(json['pageInfo'] as Map), ); -Map _$SeerrUsersResponseToJson(SeerrUsersResponse instance) => - { +Map _$SeerrUsersResponseToJson(SeerrUsersResponse instance) => { 'results': instance.results, 'pageInfo': instance.pageInfo, }; -SeerrContentRating _$SeerrContentRatingFromJson(Map json) => - SeerrContentRating( +SeerrContentRating _$SeerrContentRatingFromJson(Map json) => SeerrContentRating( countryCode: json['iso_3166_1'] as String?, rating: json['rating'] as String?, descriptors: json['descriptors'] as List?, ); -Map _$SeerrContentRatingToJson(SeerrContentRating instance) => - { +Map _$SeerrContentRatingToJson(SeerrContentRating instance) => { 'iso_3166_1': instance.countryCode, 'rating': instance.rating, 'descriptors': instance.descriptors, }; SeerrCredits _$SeerrCreditsFromJson(Map json) => SeerrCredits( - cast: (json['cast'] as List?) - ?.map((e) => SeerrCast.fromJson(e as Map)) - .toList(), - crew: (json['crew'] as List?) - ?.map((e) => SeerrCrew.fromJson(e as Map)) - .toList(), + cast: (json['cast'] as List?)?.map((e) => SeerrCast.fromJson(e as Map)).toList(), + crew: (json['crew'] as List?)?.map((e) => SeerrCrew.fromJson(e as Map)).toList(), ); -Map _$SeerrCreditsToJson(SeerrCredits instance) => - { +Map _$SeerrCreditsToJson(SeerrCredits instance) => { 'cast': instance.cast, 'crew': instance.crew, }; @@ -156,8 +133,7 @@ Map _$SeerrCrewToJson(SeerrCrew instance) => { 'profilePath': instance.internalProfilePath, }; -SeerrMovieDetails _$SeerrMovieDetailsFromJson(Map json) => - SeerrMovieDetails( +SeerrMovieDetails _$SeerrMovieDetailsFromJson(Map json) => SeerrMovieDetails( id: (json['id'] as num?)?.toInt(), title: json['title'] as String?, originalTitle: json['originalTitle'] as String?, @@ -168,28 +144,18 @@ SeerrMovieDetails _$SeerrMovieDetailsFromJson(Map json) => voteAverage: (json['voteAverage'] as num?)?.toDouble(), voteCount: (json['voteCount'] as num?)?.toInt(), runtime: (json['runtime'] as num?)?.toInt(), - genres: (json['genres'] as List?) - ?.map((e) => SeerrGenre.fromJson(e as Map)) - .toList(), - mediaInfo: json['mediaInfo'] == null - ? null - : SeerrMediaInfo.fromJson(json['mediaInfo'] as Map), - externalIds: json['externalIds'] == null - ? null - : SeerrExternalIds.fromJson( - json['externalIds'] as Map), - credits: json['credits'] == null - ? null - : SeerrCredits.fromJson(json['credits'] as Map), + genres: (json['genres'] as List?)?.map((e) => SeerrGenre.fromJson(e as Map)).toList(), + mediaInfo: json['mediaInfo'] == null ? null : SeerrMediaInfo.fromJson(json['mediaInfo'] as Map), + externalIds: + json['externalIds'] == null ? null : SeerrExternalIds.fromJson(json['externalIds'] as Map), + credits: json['credits'] == null ? null : SeerrCredits.fromJson(json['credits'] as Map), mediaId: _readJellyfinMediaId(json, 'mediaId') as String?, - contentRatings: (_readContentRatings(json, 'contentRatings') - as List?) + contentRatings: (_readContentRatings(json, 'contentRatings') as List?) ?.map((e) => SeerrContentRating.fromJson(e as Map)) .toList(), ); -Map _$SeerrMovieDetailsToJson(SeerrMovieDetails instance) => - { +Map _$SeerrMovieDetailsToJson(SeerrMovieDetails instance) => { 'id': instance.id, 'title': instance.title, 'originalTitle': instance.originalTitle, @@ -208,8 +174,7 @@ Map _$SeerrMovieDetailsToJson(SeerrMovieDetails instance) => 'contentRatings': instance.contentRatings, }; -SeerrTvDetails _$SeerrTvDetailsFromJson(Map json) => - SeerrTvDetails( +SeerrTvDetails _$SeerrTvDetailsFromJson(Map json) => SeerrTvDetails( id: (json['id'] as num?)?.toInt(), name: json['name'] as String?, originalName: json['originalName'] as String?, @@ -222,34 +187,22 @@ SeerrTvDetails _$SeerrTvDetailsFromJson(Map json) => voteCount: (json['voteCount'] as num?)?.toInt(), numberOfSeasons: (json['numberOfSeasons'] as num?)?.toInt(), numberOfEpisodes: (json['numberOfEpisodes'] as num?)?.toInt(), - genres: (json['genres'] as List?) - ?.map((e) => SeerrGenre.fromJson(e as Map)) - .toList(), - seasons: (json['seasons'] as List?) - ?.map((e) => SeerrSeason.fromJson(e as Map)) - .toList(), - mediaInfo: json['mediaInfo'] == null - ? null - : SeerrMediaInfo.fromJson(json['mediaInfo'] as Map), - externalIds: json['externalIds'] == null - ? null - : SeerrExternalIds.fromJson( - json['externalIds'] as Map), - keywords: (json['keywords'] as List?) - ?.map((e) => SeerrKeyword.fromJson(e as Map)) - .toList(), - credits: json['credits'] == null - ? null - : SeerrCredits.fromJson(json['credits'] as Map), + genres: (json['genres'] as List?)?.map((e) => SeerrGenre.fromJson(e as Map)).toList(), + seasons: + (json['seasons'] as List?)?.map((e) => SeerrSeason.fromJson(e as Map)).toList(), + mediaInfo: json['mediaInfo'] == null ? null : SeerrMediaInfo.fromJson(json['mediaInfo'] as Map), + externalIds: + json['externalIds'] == null ? null : SeerrExternalIds.fromJson(json['externalIds'] as Map), + keywords: + (json['keywords'] as List?)?.map((e) => SeerrKeyword.fromJson(e as Map)).toList(), + credits: json['credits'] == null ? null : SeerrCredits.fromJson(json['credits'] as Map), mediaId: _readJellyfinMediaId(json, 'mediaId') as String?, - contentRatings: (_readContentRatings(json, 'contentRatings') - as List?) + contentRatings: (_readContentRatings(json, 'contentRatings') as List?) ?.map((e) => SeerrContentRating.fromJson(e as Map)) .toList(), ); -Map _$SeerrTvDetailsToJson(SeerrTvDetails instance) => - { +Map _$SeerrTvDetailsToJson(SeerrTvDetails instance) => { 'id': instance.id, 'name': instance.name, 'originalName': instance.originalName, @@ -277,8 +230,7 @@ SeerrGenre _$SeerrGenreFromJson(Map json) => SeerrGenre( name: json['name'] as String?, ); -Map _$SeerrGenreToJson(SeerrGenre instance) => - { +Map _$SeerrGenreToJson(SeerrGenre instance) => { 'id': instance.id, 'name': instance.name, }; @@ -288,8 +240,7 @@ SeerrKeyword _$SeerrKeywordFromJson(Map json) => SeerrKeyword( name: json['name'] as String?, ); -Map _$SeerrKeywordToJson(SeerrKeyword instance) => - { +Map _$SeerrKeywordToJson(SeerrKeyword instance) => { 'id': instance.id, 'name': instance.name, }; @@ -304,8 +255,7 @@ SeerrSeason _$SeerrSeasonFromJson(Map json) => SeerrSeason( mediaId: _readJellyfinMediaId(json, 'mediaId') as String?, ); -Map _$SeerrSeasonToJson(SeerrSeason instance) => - { +Map _$SeerrSeasonToJson(SeerrSeason instance) => { 'id': instance.id, 'name': instance.name, 'overview': instance.overview, @@ -315,20 +265,17 @@ Map _$SeerrSeasonToJson(SeerrSeason instance) => 'mediaId': instance.mediaId, }; -SeerrSeasonDetails _$SeerrSeasonDetailsFromJson(Map json) => - SeerrSeasonDetails( +SeerrSeasonDetails _$SeerrSeasonDetailsFromJson(Map json) => SeerrSeasonDetails( id: (json['id'] as num?)?.toInt(), name: json['name'] as String?, overview: json['overview'] as String?, seasonNumber: (json['seasonNumber'] as num?)?.toInt(), internalPosterPath: json['posterPath'] as String?, - episodes: (json['episodes'] as List?) - ?.map((e) => SeerrEpisode.fromJson(e as Map)) - .toList(), + episodes: + (json['episodes'] as List?)?.map((e) => SeerrEpisode.fromJson(e as Map)).toList(), ); -Map _$SeerrSeasonDetailsToJson(SeerrSeasonDetails instance) => - { +Map _$SeerrSeasonDetailsToJson(SeerrSeasonDetails instance) => { 'id': instance.id, 'name': instance.name, 'overview': instance.overview, @@ -349,8 +296,7 @@ SeerrEpisode _$SeerrEpisodeFromJson(Map json) => SeerrEpisode( voteCount: (json['voteCount'] as num?)?.toInt(), ); -Map _$SeerrEpisodeToJson(SeerrEpisode instance) => - { +Map _$SeerrEpisodeToJson(SeerrEpisode instance) => { 'id': instance.id, 'name': instance.name, 'overview': instance.overview, @@ -362,8 +308,7 @@ Map _$SeerrEpisodeToJson(SeerrEpisode instance) => 'voteCount': instance.voteCount, }; -SeerrDownloadStatusEpisode _$SeerrDownloadStatusEpisodeFromJson( - Map json) => +SeerrDownloadStatusEpisode _$SeerrDownloadStatusEpisodeFromJson(Map json) => SeerrDownloadStatusEpisode( seriesId: (json['seriesId'] as num?)?.toInt(), tvdbId: (json['tvdbId'] as num?)?.toInt(), @@ -383,9 +328,7 @@ SeerrDownloadStatusEpisode _$SeerrDownloadStatusEpisodeFromJson( id: (json['id'] as num?)?.toInt(), ); -Map _$SeerrDownloadStatusEpisodeToJson( - SeerrDownloadStatusEpisode instance) => - { +Map _$SeerrDownloadStatusEpisodeToJson(SeerrDownloadStatusEpisode instance) => { 'seriesId': instance.seriesId, 'tvdbId': instance.tvdbId, 'episodeFileId': instance.episodeFileId, @@ -404,8 +347,7 @@ Map _$SeerrDownloadStatusEpisodeToJson( 'id': instance.id, }; -SeerrDownloadStatus _$SeerrDownloadStatusFromJson(Map json) => - SeerrDownloadStatus( +SeerrDownloadStatus _$SeerrDownloadStatusFromJson(Map json) => SeerrDownloadStatus( externalId: (json['externalId'] as num?)?.toInt(), estimatedCompletionTime: json['estimatedCompletionTime'] as String?, mediaType: json['mediaType'] as String?, @@ -414,16 +356,12 @@ SeerrDownloadStatus _$SeerrDownloadStatusFromJson(Map json) => status: json['status'] as String?, timeLeft: json['timeLeft'] as String?, title: json['title'] as String?, - episode: json['episode'] == null - ? null - : SeerrDownloadStatusEpisode.fromJson( - json['episode'] as Map), + episode: + json['episode'] == null ? null : SeerrDownloadStatusEpisode.fromJson(json['episode'] as Map), downloadId: json['downloadId'] as String?, ); -Map _$SeerrDownloadStatusToJson( - SeerrDownloadStatus instance) => - { +Map _$SeerrDownloadStatusToJson(SeerrDownloadStatus instance) => { 'externalId': instance.externalId, 'estimatedCompletionTime': instance.estimatedCompletionTime, 'mediaType': instance.mediaType, @@ -436,9 +374,7 @@ Map _$SeerrDownloadStatusToJson( 'downloadId': instance.downloadId, }; -SeerrMediaInfoSeason _$SeerrMediaInfoSeasonFromJson( - Map json) => - SeerrMediaInfoSeason( +SeerrMediaInfoSeason _$SeerrMediaInfoSeasonFromJson(Map json) => SeerrMediaInfoSeason( id: (json['id'] as num?)?.toInt(), seasonNumber: (json['seasonNumber'] as num?)?.toInt(), status: (json['status'] as num?)?.toInt(), @@ -446,9 +382,7 @@ SeerrMediaInfoSeason _$SeerrMediaInfoSeasonFromJson( updatedAt: json['updatedAt'] as String?, ); -Map _$SeerrMediaInfoSeasonToJson( - SeerrMediaInfoSeason instance) => - { +Map _$SeerrMediaInfoSeasonToJson(SeerrMediaInfoSeason instance) => { 'id': instance.id, 'seasonNumber': instance.seasonNumber, 'status': instance.status, @@ -456,42 +390,31 @@ Map _$SeerrMediaInfoSeasonToJson( 'updatedAt': instance.updatedAt, }; -SeerrExternalIds _$SeerrExternalIdsFromJson(Map json) => - SeerrExternalIds( +SeerrExternalIds _$SeerrExternalIdsFromJson(Map json) => SeerrExternalIds( imdbId: json['imdbId'] as String?, facebookId: json['facebookId'] as String?, instagramId: json['instagramId'] as String?, twitterId: json['twitterId'] as String?, ); -Map _$SeerrExternalIdsToJson(SeerrExternalIds instance) => - { +Map _$SeerrExternalIdsToJson(SeerrExternalIds instance) => { 'imdbId': instance.imdbId, 'facebookId': instance.facebookId, 'instagramId': instance.instagramId, 'twitterId': instance.twitterId, }; -SeerrRatingsResponse _$SeerrRatingsResponseFromJson( - Map json) => - SeerrRatingsResponse( - rt: json['rt'] == null - ? null - : SeerrRtRating.fromJson(json['rt'] as Map), - imdb: json['imdb'] == null - ? null - : SeerrImdbRating.fromJson(json['imdb'] as Map), +SeerrRatingsResponse _$SeerrRatingsResponseFromJson(Map json) => SeerrRatingsResponse( + rt: json['rt'] == null ? null : SeerrRtRating.fromJson(json['rt'] as Map), + imdb: json['imdb'] == null ? null : SeerrImdbRating.fromJson(json['imdb'] as Map), ); -Map _$SeerrRatingsResponseToJson( - SeerrRatingsResponse instance) => - { +Map _$SeerrRatingsResponseToJson(SeerrRatingsResponse instance) => { 'rt': instance.rt, 'imdb': instance.imdb, }; -SeerrRtRating _$SeerrRtRatingFromJson(Map json) => - SeerrRtRating( +SeerrRtRating _$SeerrRtRatingFromJson(Map json) => SeerrRtRating( title: json['title'] as String?, year: (json['year'] as num?)?.toInt(), criticsScore: (json['criticsScore'] as num?)?.toInt(), @@ -501,8 +424,7 @@ SeerrRtRating _$SeerrRtRatingFromJson(Map json) => url: json['url'] as String?, ); -Map _$SeerrRtRatingToJson(SeerrRtRating instance) => - { +Map _$SeerrRtRatingToJson(SeerrRtRating instance) => { 'title': instance.title, 'year': instance.year, 'criticsScore': instance.criticsScore, @@ -512,54 +434,40 @@ Map _$SeerrRtRatingToJson(SeerrRtRating instance) => 'url': instance.url, }; -SeerrImdbRating _$SeerrImdbRatingFromJson(Map json) => - SeerrImdbRating( +SeerrImdbRating _$SeerrImdbRatingFromJson(Map json) => SeerrImdbRating( title: json['title'] as String?, url: json['url'] as String?, criticsScore: (json['criticsScore'] as num?)?.toDouble(), ); -Map _$SeerrImdbRatingToJson(SeerrImdbRating instance) => - { +Map _$SeerrImdbRatingToJson(SeerrImdbRating instance) => { 'title': instance.title, 'url': instance.url, 'criticsScore': instance.criticsScore, }; -SeerrRequestsResponse _$SeerrRequestsResponseFromJson( - Map json) => - SeerrRequestsResponse( +SeerrRequestsResponse _$SeerrRequestsResponseFromJson(Map json) => SeerrRequestsResponse( results: (json['results'] as List?) ?.map((e) => SeerrMediaRequest.fromJson(e as Map)) .toList(), - pageInfo: json['pageInfo'] == null - ? null - : SeerrPageInfo.fromJson(json['pageInfo'] as Map), + pageInfo: json['pageInfo'] == null ? null : SeerrPageInfo.fromJson(json['pageInfo'] as Map), ); -Map _$SeerrRequestsResponseToJson( - SeerrRequestsResponse instance) => - { +Map _$SeerrRequestsResponseToJson(SeerrRequestsResponse instance) => { 'results': instance.results, 'pageInfo': instance.pageInfo, }; -SeerrMediaRequest _$SeerrMediaRequestFromJson(Map json) => - SeerrMediaRequest( +SeerrMediaRequest _$SeerrMediaRequestFromJson(Map json) => SeerrMediaRequest( id: (json['id'] as num?)?.toInt(), status: (json['status'] as num?)?.toInt(), - media: json['media'] == null - ? null - : SeerrMedia.fromJson(json['media'] as Map), + media: json['media'] == null ? null : SeerrMedia.fromJson(json['media'] as Map), createdAt: json['createdAt'] as String?, updatedAt: json['updatedAt'] as String?, - requestedBy: json['requestedBy'] == null - ? null - : SeerrUserModel.fromJson( - json['requestedBy'] as Map), - modifiedBy: json['modifiedBy'] == null - ? null - : SeerrUserModel.fromJson(json['modifiedBy'] as Map), + requestedBy: + json['requestedBy'] == null ? null : SeerrUserModel.fromJson(json['requestedBy'] as Map), + modifiedBy: + json['modifiedBy'] == null ? null : SeerrUserModel.fromJson(json['modifiedBy'] as Map), is4k: json['is4k'] as bool?, seasons: _parseRequestSeasons(json['seasons'] as List?), serverId: (json['serverId'] as num?)?.toInt(), @@ -567,8 +475,7 @@ SeerrMediaRequest _$SeerrMediaRequestFromJson(Map json) => rootFolder: json['rootFolder'] as String?, ); -Map _$SeerrMediaRequestToJson(SeerrMediaRequest instance) => - { +Map _$SeerrMediaRequestToJson(SeerrMediaRequest instance) => { 'id': instance.id, 'status': instance.status, 'media': instance.media, @@ -583,43 +490,33 @@ Map _$SeerrMediaRequestToJson(SeerrMediaRequest instance) => 'rootFolder': instance.rootFolder, }; -SeerrPageInfo _$SeerrPageInfoFromJson(Map json) => - SeerrPageInfo( +SeerrPageInfo _$SeerrPageInfoFromJson(Map json) => SeerrPageInfo( pages: (json['pages'] as num?)?.toInt(), pageSize: (json['pageSize'] as num?)?.toInt(), results: (json['results'] as num?)?.toInt(), page: (json['page'] as num?)?.toInt(), ); -Map _$SeerrPageInfoToJson(SeerrPageInfo instance) => - { +Map _$SeerrPageInfoToJson(SeerrPageInfo instance) => { 'pages': instance.pages, 'pageSize': instance.pageSize, 'results': instance.results, 'page': instance.page, }; -SeerrCreateRequestBody _$SeerrCreateRequestBodyFromJson( - Map json) => - SeerrCreateRequestBody( +SeerrCreateRequestBody _$SeerrCreateRequestBodyFromJson(Map json) => SeerrCreateRequestBody( mediaType: json['mediaType'] as String?, mediaId: (json['mediaId'] as num?)?.toInt(), is4k: json['is4k'] as bool?, - seasons: (json['seasons'] as List?) - ?.map((e) => (e as num).toInt()) - .toList(), + seasons: (json['seasons'] as List?)?.map((e) => (e as num).toInt()).toList(), serverId: (json['serverId'] as num?)?.toInt(), profileId: (json['profileId'] as num?)?.toInt(), rootFolder: json['rootFolder'] as String?, - tags: (json['tags'] as List?) - ?.map((e) => (e as num).toInt()) - .toList(), + tags: (json['tags'] as List?)?.map((e) => (e as num).toInt()).toList(), userId: (json['userId'] as num?)?.toInt(), ); -Map _$SeerrCreateRequestBodyToJson( - SeerrCreateRequestBody instance) => - { +Map _$SeerrCreateRequestBodyToJson(SeerrCreateRequestBody instance) => { 'mediaType': instance.mediaType, 'mediaId': instance.mediaId, 'is4k': instance.is4k, @@ -642,8 +539,7 @@ SeerrMedia _$SeerrMediaFromJson(Map json) => SeerrMedia( .toList(), ); -Map _$SeerrMediaToJson(SeerrMedia instance) => - { +Map _$SeerrMediaToJson(SeerrMedia instance) => { 'id': instance.id, 'tmdbId': instance.tmdbId, 'tvdbId': instance.tvdbId, @@ -652,27 +548,19 @@ Map _$SeerrMediaToJson(SeerrMedia instance) => 'requests': instance.requests, }; -SeerrMediaResponse _$SeerrMediaResponseFromJson(Map json) => - SeerrMediaResponse( - results: (json['results'] as List?) - ?.map((e) => SeerrMedia.fromJson(e as Map)) - .toList(), - pageInfo: json['pageInfo'] == null - ? null - : SeerrPageInfo.fromJson(json['pageInfo'] as Map), +SeerrMediaResponse _$SeerrMediaResponseFromJson(Map json) => SeerrMediaResponse( + results: (json['results'] as List?)?.map((e) => SeerrMedia.fromJson(e as Map)).toList(), + pageInfo: json['pageInfo'] == null ? null : SeerrPageInfo.fromJson(json['pageInfo'] as Map), ); -Map _$SeerrMediaResponseToJson(SeerrMediaResponse instance) => - { +Map _$SeerrMediaResponseToJson(SeerrMediaResponse instance) => { 'results': instance.results, 'pageInfo': instance.pageInfo, }; -SeerrDiscoverItem _$SeerrDiscoverItemFromJson(Map json) => - SeerrDiscoverItem( +SeerrDiscoverItem _$SeerrDiscoverItemFromJson(Map json) => SeerrDiscoverItem( id: (json['id'] as num?)?.toInt(), - mediaType: - $enumDecodeNullable(_$SeerrMediaTypeEnumMap, json['mediaType']), + mediaType: $enumDecodeNullable(_$SeerrMediaTypeEnumMap, json['mediaType']), title: json['title'] as String?, name: json['name'] as String?, originalTitle: json['originalTitle'] as String?, @@ -682,14 +570,11 @@ SeerrDiscoverItem _$SeerrDiscoverItemFromJson(Map json) => internalBackdropPath: json['backdropPath'] as String?, releaseDate: json['releaseDate'] as String?, firstAirDate: json['firstAirDate'] as String?, - mediaInfo: json['mediaInfo'] == null - ? null - : SeerrMediaInfo.fromJson(json['mediaInfo'] as Map), + mediaInfo: json['mediaInfo'] == null ? null : SeerrMediaInfo.fromJson(json['mediaInfo'] as Map), mediaId: _readJellyfinMediaId(json, 'mediaId') as String?, ); -Map _$SeerrDiscoverItemToJson(SeerrDiscoverItem instance) => - { +Map _$SeerrDiscoverItemToJson(SeerrDiscoverItem instance) => { 'id': instance.id, 'mediaType': _$SeerrMediaTypeEnumMap[instance.mediaType], 'title': instance.title, @@ -711,9 +596,7 @@ const _$SeerrMediaTypeEnumMap = { SeerrMediaType.person: 'person', }; -SeerrDiscoverResponse _$SeerrDiscoverResponseFromJson( - Map json) => - SeerrDiscoverResponse( +SeerrDiscoverResponse _$SeerrDiscoverResponseFromJson(Map json) => SeerrDiscoverResponse( results: (json['results'] as List?) ?.map((e) => SeerrDiscoverItem.fromJson(e as Map)) .toList(), @@ -722,107 +605,82 @@ SeerrDiscoverResponse _$SeerrDiscoverResponseFromJson( totalResults: (json['totalResults'] as num?)?.toInt(), ); -Map _$SeerrDiscoverResponseToJson( - SeerrDiscoverResponse instance) => - { +Map _$SeerrDiscoverResponseToJson(SeerrDiscoverResponse instance) => { 'results': instance.results, 'page': instance.page, 'totalPages': instance.totalPages, 'totalResults': instance.totalResults, }; -SeerrGenreResponse _$SeerrGenreResponseFromJson(Map json) => - SeerrGenreResponse( - genres: (json['genres'] as List?) - ?.map((e) => SeerrGenre.fromJson(e as Map)) - .toList(), +SeerrGenreResponse _$SeerrGenreResponseFromJson(Map json) => SeerrGenreResponse( + genres: (json['genres'] as List?)?.map((e) => SeerrGenre.fromJson(e as Map)).toList(), ); -Map _$SeerrGenreResponseToJson(SeerrGenreResponse instance) => - { +Map _$SeerrGenreResponseToJson(SeerrGenreResponse instance) => { 'genres': instance.genres, }; -SeerrWatchProvider _$SeerrWatchProviderFromJson(Map json) => - SeerrWatchProvider( +SeerrWatchProvider _$SeerrWatchProviderFromJson(Map json) => SeerrWatchProvider( providerId: (json['id'] as num?)?.toInt(), providerName: json['name'] as String?, internalLogoPath: json['logoPath'] as String?, displayPriority: (json['displayPriority'] as num?)?.toInt(), ); -Map _$SeerrWatchProviderToJson(SeerrWatchProvider instance) => - { +Map _$SeerrWatchProviderToJson(SeerrWatchProvider instance) => { 'id': instance.providerId, 'name': instance.providerName, 'logoPath': instance.internalLogoPath, 'displayPriority': instance.displayPriority, }; -SeerrWatchProviderRegion _$SeerrWatchProviderRegionFromJson( - Map json) => - SeerrWatchProviderRegion( +SeerrWatchProviderRegion _$SeerrWatchProviderRegionFromJson(Map json) => SeerrWatchProviderRegion( iso31661: json['iso_3166_1'] as String?, englishName: json['english_name'] as String?, nativeName: json['native_name'] as String?, ); -Map _$SeerrWatchProviderRegionToJson( - SeerrWatchProviderRegion instance) => - { +Map _$SeerrWatchProviderRegionToJson(SeerrWatchProviderRegion instance) => { 'iso_3166_1': instance.iso31661, 'english_name': instance.englishName, 'native_name': instance.nativeName, }; -SeerrCertification _$SeerrCertificationFromJson(Map json) => - SeerrCertification( +SeerrCertification _$SeerrCertificationFromJson(Map json) => SeerrCertification( certification: json['certification'] as String?, meaning: json['meaning'] as String?, order: (json['order'] as num?)?.toInt(), ); -Map _$SeerrCertificationToJson(SeerrCertification instance) => - { +Map _$SeerrCertificationToJson(SeerrCertification instance) => { 'certification': instance.certification, 'meaning': instance.meaning, 'order': instance.order, }; -SeerrCertificationsResponse _$SeerrCertificationsResponseFromJson( - Map json) => +SeerrCertificationsResponse _$SeerrCertificationsResponseFromJson(Map json) => SeerrCertificationsResponse( certifications: (json['certifications'] as Map?)?.map( (k, e) => MapEntry( - k, - (e as List) - .map((e) => - SeerrCertification.fromJson(e as Map)) - .toList()), + k, (e as List).map((e) => SeerrCertification.fromJson(e as Map)).toList()), ), ); -Map _$SeerrCertificationsResponseToJson( - SeerrCertificationsResponse instance) => - { +Map _$SeerrCertificationsResponseToJson(SeerrCertificationsResponse instance) => { 'certifications': instance.certifications, }; -SeerrAuthLocalBody _$SeerrAuthLocalBodyFromJson(Map json) => - SeerrAuthLocalBody( +SeerrAuthLocalBody _$SeerrAuthLocalBodyFromJson(Map json) => SeerrAuthLocalBody( email: json['email'] as String, password: json['password'] as String, ); -Map _$SeerrAuthLocalBodyToJson(SeerrAuthLocalBody instance) => - { +Map _$SeerrAuthLocalBodyToJson(SeerrAuthLocalBody instance) => { 'email': instance.email, 'password': instance.password, }; -SeerrAuthJellyfinBody _$SeerrAuthJellyfinBodyFromJson( - Map json) => - SeerrAuthJellyfinBody( +SeerrAuthJellyfinBody _$SeerrAuthJellyfinBodyFromJson(Map json) => SeerrAuthJellyfinBody( username: json['username'] as String, password: json['password'] as String, customHeaders: (json['customHeaders'] as Map?)?.map( @@ -831,17 +689,14 @@ SeerrAuthJellyfinBody _$SeerrAuthJellyfinBodyFromJson( hostname: json['hostname'] as String?, ); -Map _$SeerrAuthJellyfinBodyToJson( - SeerrAuthJellyfinBody instance) => - { +Map _$SeerrAuthJellyfinBodyToJson(SeerrAuthJellyfinBody instance) => { 'username': instance.username, 'password': instance.password, if (instance.customHeaders case final value?) 'customHeaders': value, if (instance.hostname case final value?) 'hostname': value, }; -_SeerrUserModel _$SeerrUserModelFromJson(Map json) => - _SeerrUserModel( +_SeerrUserModel _$SeerrUserModelFromJson(Map json) => _SeerrUserModel( id: (json['id'] as num?)?.toInt(), email: json['email'] as String?, username: json['username'] as String?, @@ -850,18 +705,14 @@ _SeerrUserModel _$SeerrUserModelFromJson(Map json) => plexUsername: json['plexUsername'] as String?, permissions: (json['permissions'] as num?)?.toInt(), avatar: json['avatar'] as String?, - settings: json['settings'] == null - ? null - : SeerrUserSettings.fromJson( - json['settings'] as Map), + settings: json['settings'] == null ? null : SeerrUserSettings.fromJson(json['settings'] as Map), movieQuotaLimit: (json['movieQuotaLimit'] as num?)?.toInt(), movieQuotaDays: (json['movieQuotaDays'] as num?)?.toInt(), tvQuotaLimit: (json['tvQuotaLimit'] as num?)?.toInt(), tvQuotaDays: (json['tvQuotaDays'] as num?)?.toInt(), ); -Map _$SeerrUserModelToJson(_SeerrUserModel instance) => - { +Map _$SeerrUserModelToJson(_SeerrUserModel instance) => { 'id': instance.id, 'email': instance.email, 'username': instance.username, @@ -877,8 +728,7 @@ Map _$SeerrUserModelToJson(_SeerrUserModel instance) => 'tvQuotaDays': instance.tvQuotaDays, }; -_SeerrSonarrServer _$SeerrSonarrServerFromJson(Map json) => - _SeerrSonarrServer( +_SeerrSonarrServer _$SeerrSonarrServerFromJson(Map json) => _SeerrSonarrServer( id: (json['id'] as num?)?.toInt(), name: json['name'] as String?, hostname: json['hostname'] as String?, @@ -888,12 +738,10 @@ _SeerrSonarrServer _$SeerrSonarrServerFromJson(Map json) => baseUrl: json['baseUrl'] as String?, activeProfileId: (json['activeProfileId'] as num?)?.toInt(), activeProfileName: json['activeProfileName'] as String?, - activeLanguageProfileId: - (json['activeLanguageProfileId'] as num?)?.toInt(), + activeLanguageProfileId: (json['activeLanguageProfileId'] as num?)?.toInt(), activeDirectory: json['activeDirectory'] as String?, activeAnimeProfileId: (json['activeAnimeProfileId'] as num?)?.toInt(), - activeAnimeLanguageProfileId: - (json['activeAnimeLanguageProfileId'] as num?)?.toInt(), + activeAnimeLanguageProfileId: (json['activeAnimeLanguageProfileId'] as num?)?.toInt(), activeAnimeProfileName: json['activeAnimeProfileName'] as String?, activeAnimeDirectory: json['activeAnimeDirectory'] as String?, is4k: json['is4k'] as bool?, @@ -904,19 +752,14 @@ _SeerrSonarrServer _$SeerrSonarrServerFromJson(Map json) => profiles: (json['profiles'] as List?) ?.map((e) => SeerrServiceProfile.fromJson(e as Map)) .toList(), - tags: (json['tags'] as List?) - ?.map((e) => SeerrServiceTag.fromJson(e as Map)) - .toList(), + tags: (json['tags'] as List?)?.map((e) => SeerrServiceTag.fromJson(e as Map)).toList(), rootFolders: (json['rootFolders'] as List?) ?.map((e) => SeerrRootFolder.fromJson(e as Map)) .toList(), - activeTags: (json['activeTags'] as List?) - ?.map((e) => (e as num).toInt()) - .toList(), + activeTags: (json['activeTags'] as List?)?.map((e) => (e as num).toInt()).toList(), ); -Map _$SeerrSonarrServerToJson(_SeerrSonarrServer instance) => - { +Map _$SeerrSonarrServerToJson(_SeerrSonarrServer instance) => { 'id': instance.id, 'name': instance.name, 'hostname': instance.hostname, @@ -943,34 +786,25 @@ Map _$SeerrSonarrServerToJson(_SeerrSonarrServer instance) => 'activeTags': instance.activeTags, }; -_SeerrSonarrServerResponse _$SeerrSonarrServerResponseFromJson( - Map json) => - _SeerrSonarrServerResponse( - server: json['server'] == null - ? null - : SeerrSonarrServer.fromJson(json['server'] as Map), +_SeerrSonarrServerResponse _$SeerrSonarrServerResponseFromJson(Map json) => _SeerrSonarrServerResponse( + server: json['server'] == null ? null : SeerrSonarrServer.fromJson(json['server'] as Map), profiles: (json['profiles'] as List?) ?.map((e) => SeerrServiceProfile.fromJson(e as Map)) .toList(), rootFolders: (json['rootFolders'] as List?) ?.map((e) => SeerrRootFolder.fromJson(e as Map)) .toList(), - tags: (json['tags'] as List?) - ?.map((e) => SeerrServiceTag.fromJson(e as Map)) - .toList(), + tags: (json['tags'] as List?)?.map((e) => SeerrServiceTag.fromJson(e as Map)).toList(), ); -Map _$SeerrSonarrServerResponseToJson( - _SeerrSonarrServerResponse instance) => - { +Map _$SeerrSonarrServerResponseToJson(_SeerrSonarrServerResponse instance) => { 'server': instance.server, 'profiles': instance.profiles, 'rootFolders': instance.rootFolders, 'tags': instance.tags, }; -_SeerrRadarrServer _$SeerrRadarrServerFromJson(Map json) => - _SeerrRadarrServer( +_SeerrRadarrServer _$SeerrRadarrServerFromJson(Map json) => _SeerrRadarrServer( id: (json['id'] as num?)?.toInt(), name: json['name'] as String?, hostname: json['hostname'] as String?, @@ -980,12 +814,10 @@ _SeerrRadarrServer _$SeerrRadarrServerFromJson(Map json) => baseUrl: json['baseUrl'] as String?, activeProfileId: (json['activeProfileId'] as num?)?.toInt(), activeProfileName: json['activeProfileName'] as String?, - activeLanguageProfileId: - (json['activeLanguageProfileId'] as num?)?.toInt(), + activeLanguageProfileId: (json['activeLanguageProfileId'] as num?)?.toInt(), activeDirectory: json['activeDirectory'] as String?, activeAnimeProfileId: (json['activeAnimeProfileId'] as num?)?.toInt(), - activeAnimeLanguageProfileId: - (json['activeAnimeLanguageProfileId'] as num?)?.toInt(), + activeAnimeLanguageProfileId: (json['activeAnimeLanguageProfileId'] as num?)?.toInt(), activeAnimeProfileName: json['activeAnimeProfileName'] as String?, activeAnimeDirectory: json['activeAnimeDirectory'] as String?, is4k: json['is4k'] as bool?, @@ -996,19 +828,14 @@ _SeerrRadarrServer _$SeerrRadarrServerFromJson(Map json) => profiles: (json['profiles'] as List?) ?.map((e) => SeerrServiceProfile.fromJson(e as Map)) .toList(), - tags: (json['tags'] as List?) - ?.map((e) => SeerrServiceTag.fromJson(e as Map)) - .toList(), + tags: (json['tags'] as List?)?.map((e) => SeerrServiceTag.fromJson(e as Map)).toList(), rootFolders: (json['rootFolders'] as List?) ?.map((e) => SeerrRootFolder.fromJson(e as Map)) .toList(), - activeTags: (json['activeTags'] as List?) - ?.map((e) => (e as num).toInt()) - .toList(), + activeTags: (json['activeTags'] as List?)?.map((e) => (e as num).toInt()).toList(), ); -Map _$SeerrRadarrServerToJson(_SeerrRadarrServer instance) => - { +Map _$SeerrRadarrServerToJson(_SeerrRadarrServer instance) => { 'id': instance.id, 'name': instance.name, 'hostname': instance.hostname, @@ -1035,73 +862,57 @@ Map _$SeerrRadarrServerToJson(_SeerrRadarrServer instance) => 'activeTags': instance.activeTags, }; -_SeerrRadarrServerResponse _$SeerrRadarrServerResponseFromJson( - Map json) => - _SeerrRadarrServerResponse( - server: json['server'] == null - ? null - : SeerrRadarrServer.fromJson(json['server'] as Map), +_SeerrRadarrServerResponse _$SeerrRadarrServerResponseFromJson(Map json) => _SeerrRadarrServerResponse( + server: json['server'] == null ? null : SeerrRadarrServer.fromJson(json['server'] as Map), profiles: (json['profiles'] as List?) ?.map((e) => SeerrServiceProfile.fromJson(e as Map)) .toList(), rootFolders: (json['rootFolders'] as List?) ?.map((e) => SeerrRootFolder.fromJson(e as Map)) .toList(), - tags: (json['tags'] as List?) - ?.map((e) => SeerrServiceTag.fromJson(e as Map)) - .toList(), + tags: (json['tags'] as List?)?.map((e) => SeerrServiceTag.fromJson(e as Map)).toList(), ); -Map _$SeerrRadarrServerResponseToJson( - _SeerrRadarrServerResponse instance) => - { +Map _$SeerrRadarrServerResponseToJson(_SeerrRadarrServerResponse instance) => { 'server': instance.server, 'profiles': instance.profiles, 'rootFolders': instance.rootFolders, 'tags': instance.tags, }; -_SeerrServiceProfile _$SeerrServiceProfileFromJson(Map json) => - _SeerrServiceProfile( +_SeerrServiceProfile _$SeerrServiceProfileFromJson(Map json) => _SeerrServiceProfile( id: (json['id'] as num?)?.toInt(), name: json['name'] as String?, ); -Map _$SeerrServiceProfileToJson( - _SeerrServiceProfile instance) => - { +Map _$SeerrServiceProfileToJson(_SeerrServiceProfile instance) => { 'id': instance.id, 'name': instance.name, }; -_SeerrServiceTag _$SeerrServiceTagFromJson(Map json) => - _SeerrServiceTag( +_SeerrServiceTag _$SeerrServiceTagFromJson(Map json) => _SeerrServiceTag( id: (json['id'] as num?)?.toInt(), label: json['label'] as String?, ); -Map _$SeerrServiceTagToJson(_SeerrServiceTag instance) => - { +Map _$SeerrServiceTagToJson(_SeerrServiceTag instance) => { 'id': instance.id, 'label': instance.label, }; -_SeerrRootFolder _$SeerrRootFolderFromJson(Map json) => - _SeerrRootFolder( +_SeerrRootFolder _$SeerrRootFolderFromJson(Map json) => _SeerrRootFolder( id: (json['id'] as num?)?.toInt(), freeSpace: (json['freeSpace'] as num?)?.toInt(), path: json['path'] as String?, ); -Map _$SeerrRootFolderToJson(_SeerrRootFolder instance) => - { +Map _$SeerrRootFolderToJson(_SeerrRootFolder instance) => { 'id': instance.id, 'freeSpace': instance.freeSpace, 'path': instance.path, }; -_SeerrMediaInfo _$SeerrMediaInfoFromJson(Map json) => - _SeerrMediaInfo( +_SeerrMediaInfo _$SeerrMediaInfoFromJson(Map json) => _SeerrMediaInfo( id: (json['id'] as num?)?.toInt(), tmdbId: (json['tmdbId'] as num?)?.toInt(), tvdbId: (json['tvdbId'] as num?)?.toInt(), @@ -1123,8 +934,7 @@ _SeerrMediaInfo _$SeerrMediaInfoFromJson(Map json) => .toList(), ); -Map _$SeerrMediaInfoToJson(_SeerrMediaInfo instance) => - { +Map _$SeerrMediaInfoToJson(_SeerrMediaInfo instance) => { 'id': instance.id, 'tmdbId': instance.tmdbId, 'tvdbId': instance.tvdbId, diff --git a/lib/src/application_menu.g.dart b/lib/src/application_menu.g.dart index 1bdce4bd9..2ba36f41e 100644 --- a/lib/src/application_menu.g.dart +++ b/lib/src/application_menu.g.dart @@ -18,7 +18,6 @@ List wrapResponse({Object? result, PlatformException? error, bool empty return [error.code, error.message, error.details]; } - class _PigeonCodec extends StandardMessageCodec { const _PigeonCodec(); @override @@ -47,11 +46,16 @@ abstract class ApplicationMenu { void newInstance(); - static void setUp(ApplicationMenu? api, {BinaryMessenger? binaryMessenger, String messageChannelSuffix = '',}) { + static void setUp( + ApplicationMenu? api, { + BinaryMessenger? binaryMessenger, + String messageChannelSuffix = '', + }) { messageChannelSuffix = messageChannelSuffix.isNotEmpty ? '.$messageChannelSuffix' : ''; { final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.nl_jknaapen_fladder.application_menu.ApplicationMenu.openNewWindow$messageChannelSuffix', pigeonChannelCodec, + 'dev.flutter.pigeon.nl_jknaapen_fladder.application_menu.ApplicationMenu.openNewWindow$messageChannelSuffix', + pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { pigeonVar_channel.setMessageHandler(null); @@ -62,7 +66,7 @@ abstract class ApplicationMenu { return wrapResponse(empty: true); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { + } catch (e) { return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); } }); @@ -70,7 +74,8 @@ abstract class ApplicationMenu { } { final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.nl_jknaapen_fladder.application_menu.ApplicationMenu.newInstance$messageChannelSuffix', pigeonChannelCodec, + 'dev.flutter.pigeon.nl_jknaapen_fladder.application_menu.ApplicationMenu.newInstance$messageChannelSuffix', + pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { pigeonVar_channel.setMessageHandler(null); @@ -81,7 +86,7 @@ abstract class ApplicationMenu { return wrapResponse(empty: true); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { + } catch (e) { return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); } }); diff --git a/lib/src/directory_bookmark.g.dart b/lib/src/directory_bookmark.g.dart index 2695e751a..c4349ee5b 100644 --- a/lib/src/directory_bookmark.g.dart +++ b/lib/src/directory_bookmark.g.dart @@ -15,7 +15,6 @@ PlatformException _createConnectionError(String channelName) { ); } - class _PigeonCodec extends StandardMessageCodec { const _PigeonCodec(); @override @@ -51,15 +50,15 @@ class DirectoryBookmark { final String pigeonVar_messageChannelSuffix; Future saveDirectory(String key, String path) async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.nl_jknaapen_fladder.directory_bookmark.DirectoryBookmark.saveDirectory$pigeonVar_messageChannelSuffix'; + final String pigeonVar_channelName = + 'dev.flutter.pigeon.nl_jknaapen_fladder.directory_bookmark.DirectoryBookmark.saveDirectory$pigeonVar_messageChannelSuffix'; final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); final Future pigeonVar_sendFuture = pigeonVar_channel.send([key, path]); - final List? pigeonVar_replyList = - await pigeonVar_sendFuture as List?; + final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { throw _createConnectionError(pigeonVar_channelName); } else if (pigeonVar_replyList.length > 1) { @@ -74,15 +73,15 @@ class DirectoryBookmark { } Future resolveDirectory(String key) async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.nl_jknaapen_fladder.directory_bookmark.DirectoryBookmark.resolveDirectory$pigeonVar_messageChannelSuffix'; + final String pigeonVar_channelName = + 'dev.flutter.pigeon.nl_jknaapen_fladder.directory_bookmark.DirectoryBookmark.resolveDirectory$pigeonVar_messageChannelSuffix'; final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); final Future pigeonVar_sendFuture = pigeonVar_channel.send([key]); - final List? pigeonVar_replyList = - await pigeonVar_sendFuture as List?; + final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { throw _createConnectionError(pigeonVar_channelName); } else if (pigeonVar_replyList.length > 1) { @@ -97,15 +96,15 @@ class DirectoryBookmark { } Future closeDirectory(String key) async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.nl_jknaapen_fladder.directory_bookmark.DirectoryBookmark.closeDirectory$pigeonVar_messageChannelSuffix'; + final String pigeonVar_channelName = + 'dev.flutter.pigeon.nl_jknaapen_fladder.directory_bookmark.DirectoryBookmark.closeDirectory$pigeonVar_messageChannelSuffix'; final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); final Future pigeonVar_sendFuture = pigeonVar_channel.send([key]); - final List? pigeonVar_replyList = - await pigeonVar_sendFuture as List?; + final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { throw _createConnectionError(pigeonVar_channelName); } else if (pigeonVar_replyList.length > 1) { diff --git a/lib/src/player_settings_helper.g.dart b/lib/src/player_settings_helper.g.dart index 2b44241d0..7940ebee4 100644 --- a/lib/src/player_settings_helper.g.dart +++ b/lib/src/player_settings_helper.g.dart @@ -14,21 +14,19 @@ PlatformException _createConnectionError(String channelName) { message: 'Unable to establish connection on channel: "$channelName".', ); } + bool _deepEquals(Object? a, Object? b) { if (a is List && b is List) { - return a.length == b.length && - a.indexed - .every(((int, dynamic) item) => _deepEquals(item.$2, b[item.$1])); + return a.length == b.length && a.indexed.every(((int, dynamic) item) => _deepEquals(item.$2, b[item.$1])); } if (a is Map && b is Map) { - return a.length == b.length && a.entries.every((MapEntry entry) => - (b as Map).containsKey(entry.key) && - _deepEquals(entry.value, b[entry.key])); + return a.length == b.length && + a.entries.every((MapEntry entry) => + (b as Map).containsKey(entry.key) && _deepEquals(entry.value, b[entry.key])); } return a == b; } - enum Screensaver { disabled, dvd, @@ -125,7 +123,8 @@ class PlayerSettings { } Object encode() { - return _toList(); } + return _toList(); + } static PlayerSettings decode(Object result) { result as List; @@ -157,11 +156,9 @@ class PlayerSettings { @override // ignore: avoid_equals_and_hash_code_on_mutable_classes - int get hashCode => Object.hashAll(_toList()) -; + int get hashCode => Object.hashAll(_toList()); } - class _PigeonCodec extends StandardMessageCodec { const _PigeonCodec(); @override @@ -169,25 +166,25 @@ class _PigeonCodec extends StandardMessageCodec { if (value is int) { buffer.putUint8(4); buffer.putInt64(value); - } else if (value is Screensaver) { + } else if (value is Screensaver) { buffer.putUint8(129); writeValue(buffer, value.index); - } else if (value is VideoPlayerFit) { + } else if (value is VideoPlayerFit) { buffer.putUint8(130); writeValue(buffer, value.index); - } else if (value is PlayerOrientations) { + } else if (value is PlayerOrientations) { buffer.putUint8(131); writeValue(buffer, value.index); - } else if (value is AutoNextType) { + } else if (value is AutoNextType) { buffer.putUint8(132); writeValue(buffer, value.index); - } else if (value is SegmentType) { + } else if (value is SegmentType) { buffer.putUint8(133); writeValue(buffer, value.index); - } else if (value is SegmentSkip) { + } else if (value is SegmentSkip) { buffer.putUint8(134); writeValue(buffer, value.index); - } else if (value is PlayerSettings) { + } else if (value is PlayerSettings) { buffer.putUint8(135); writeValue(buffer, value.encode()); } else { @@ -198,25 +195,25 @@ class _PigeonCodec extends StandardMessageCodec { @override Object? readValueOfType(int type, ReadBuffer buffer) { switch (type) { - case 129: + case 129: final int? value = readValue(buffer) as int?; return value == null ? null : Screensaver.values[value]; - case 130: + case 130: final int? value = readValue(buffer) as int?; return value == null ? null : VideoPlayerFit.values[value]; - case 131: + case 131: final int? value = readValue(buffer) as int?; return value == null ? null : PlayerOrientations.values[value]; - case 132: + case 132: final int? value = readValue(buffer) as int?; return value == null ? null : AutoNextType.values[value]; - case 133: + case 133: final int? value = readValue(buffer) as int?; return value == null ? null : SegmentType.values[value]; - case 134: + case 134: final int? value = readValue(buffer) as int?; return value == null ? null : SegmentSkip.values[value]; - case 135: + case 135: return PlayerSettings.decode(readValue(buffer)!); default: return super.readValueOfType(type, buffer); @@ -238,15 +235,15 @@ class PlayerSettingsPigeon { final String pigeonVar_messageChannelSuffix; Future sendPlayerSettings(PlayerSettings playerSettings) async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.nl_jknaapen_fladder.settings.PlayerSettingsPigeon.sendPlayerSettings$pigeonVar_messageChannelSuffix'; + final String pigeonVar_channelName = + 'dev.flutter.pigeon.nl_jknaapen_fladder.settings.PlayerSettingsPigeon.sendPlayerSettings$pigeonVar_messageChannelSuffix'; final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); final Future pigeonVar_sendFuture = pigeonVar_channel.send([playerSettings]); - final List? pigeonVar_replyList = - await pigeonVar_sendFuture as List?; + final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { throw _createConnectionError(pigeonVar_channelName); } else if (pigeonVar_replyList.length > 1) { diff --git a/lib/src/translations_pigeon.g.dart b/lib/src/translations_pigeon.g.dart index 7ffd04d29..82de1f927 100644 --- a/lib/src/translations_pigeon.g.dart +++ b/lib/src/translations_pigeon.g.dart @@ -18,7 +18,6 @@ List wrapResponse({Object? result, PlatformException? error, bool empty return [error.code, error.message, error.details]; } - class _PigeonCodec extends StandardMessageCodec { const _PigeonCodec(); @override @@ -85,11 +84,16 @@ abstract class TranslationsPigeon { String syncPlayCommandSyncing(); - static void setUp(TranslationsPigeon? api, {BinaryMessenger? binaryMessenger, String messageChannelSuffix = '',}) { + static void setUp( + TranslationsPigeon? api, { + BinaryMessenger? binaryMessenger, + String messageChannelSuffix = '', + }) { messageChannelSuffix = messageChannelSuffix.isNotEmpty ? '.$messageChannelSuffix' : ''; { final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.nl_jknaapen_fladder.settings.TranslationsPigeon.next$messageChannelSuffix', pigeonChannelCodec, + 'dev.flutter.pigeon.nl_jknaapen_fladder.settings.TranslationsPigeon.next$messageChannelSuffix', + pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { pigeonVar_channel.setMessageHandler(null); @@ -100,7 +104,7 @@ abstract class TranslationsPigeon { return wrapResponse(result: output); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { + } catch (e) { return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); } }); @@ -108,7 +112,8 @@ abstract class TranslationsPigeon { } { final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.nl_jknaapen_fladder.settings.TranslationsPigeon.nextVideo$messageChannelSuffix', pigeonChannelCodec, + 'dev.flutter.pigeon.nl_jknaapen_fladder.settings.TranslationsPigeon.nextVideo$messageChannelSuffix', + pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { pigeonVar_channel.setMessageHandler(null); @@ -119,7 +124,7 @@ abstract class TranslationsPigeon { return wrapResponse(result: output); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { + } catch (e) { return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); } }); @@ -127,7 +132,8 @@ abstract class TranslationsPigeon { } { final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.nl_jknaapen_fladder.settings.TranslationsPigeon.close$messageChannelSuffix', pigeonChannelCodec, + 'dev.flutter.pigeon.nl_jknaapen_fladder.settings.TranslationsPigeon.close$messageChannelSuffix', + pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { pigeonVar_channel.setMessageHandler(null); @@ -138,7 +144,7 @@ abstract class TranslationsPigeon { return wrapResponse(result: output); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { + } catch (e) { return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); } }); @@ -146,14 +152,15 @@ abstract class TranslationsPigeon { } { final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.nl_jknaapen_fladder.settings.TranslationsPigeon.skip$messageChannelSuffix', pigeonChannelCodec, + 'dev.flutter.pigeon.nl_jknaapen_fladder.settings.TranslationsPigeon.skip$messageChannelSuffix', + pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { pigeonVar_channel.setMessageHandler(null); } else { pigeonVar_channel.setMessageHandler((Object? message) async { assert(message != null, - 'Argument for dev.flutter.pigeon.nl_jknaapen_fladder.settings.TranslationsPigeon.skip was null.'); + 'Argument for dev.flutter.pigeon.nl_jknaapen_fladder.settings.TranslationsPigeon.skip was null.'); final List args = (message as List?)!; final String? arg_name = (args[0] as String?); assert(arg_name != null, @@ -163,7 +170,7 @@ abstract class TranslationsPigeon { return wrapResponse(result: output); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { + } catch (e) { return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); } }); @@ -171,7 +178,8 @@ abstract class TranslationsPigeon { } { final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.nl_jknaapen_fladder.settings.TranslationsPigeon.subtitles$messageChannelSuffix', pigeonChannelCodec, + 'dev.flutter.pigeon.nl_jknaapen_fladder.settings.TranslationsPigeon.subtitles$messageChannelSuffix', + pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { pigeonVar_channel.setMessageHandler(null); @@ -182,7 +190,7 @@ abstract class TranslationsPigeon { return wrapResponse(result: output); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { + } catch (e) { return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); } }); @@ -190,7 +198,8 @@ abstract class TranslationsPigeon { } { final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.nl_jknaapen_fladder.settings.TranslationsPigeon.off$messageChannelSuffix', pigeonChannelCodec, + 'dev.flutter.pigeon.nl_jknaapen_fladder.settings.TranslationsPigeon.off$messageChannelSuffix', + pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { pigeonVar_channel.setMessageHandler(null); @@ -201,7 +210,7 @@ abstract class TranslationsPigeon { return wrapResponse(result: output); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { + } catch (e) { return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); } }); @@ -209,14 +218,15 @@ abstract class TranslationsPigeon { } { final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.nl_jknaapen_fladder.settings.TranslationsPigeon.chapters$messageChannelSuffix', pigeonChannelCodec, + 'dev.flutter.pigeon.nl_jknaapen_fladder.settings.TranslationsPigeon.chapters$messageChannelSuffix', + pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { pigeonVar_channel.setMessageHandler(null); } else { pigeonVar_channel.setMessageHandler((Object? message) async { assert(message != null, - 'Argument for dev.flutter.pigeon.nl_jknaapen_fladder.settings.TranslationsPigeon.chapters was null.'); + 'Argument for dev.flutter.pigeon.nl_jknaapen_fladder.settings.TranslationsPigeon.chapters was null.'); final List args = (message as List?)!; final int? arg_count = (args[0] as int?); assert(arg_count != null, @@ -226,7 +236,7 @@ abstract class TranslationsPigeon { return wrapResponse(result: output); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { + } catch (e) { return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); } }); @@ -234,14 +244,15 @@ abstract class TranslationsPigeon { } { final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.nl_jknaapen_fladder.settings.TranslationsPigeon.nextUpInSeconds$messageChannelSuffix', pigeonChannelCodec, + 'dev.flutter.pigeon.nl_jknaapen_fladder.settings.TranslationsPigeon.nextUpInSeconds$messageChannelSuffix', + pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { pigeonVar_channel.setMessageHandler(null); } else { pigeonVar_channel.setMessageHandler((Object? message) async { assert(message != null, - 'Argument for dev.flutter.pigeon.nl_jknaapen_fladder.settings.TranslationsPigeon.nextUpInSeconds was null.'); + 'Argument for dev.flutter.pigeon.nl_jknaapen_fladder.settings.TranslationsPigeon.nextUpInSeconds was null.'); final List args = (message as List?)!; final int? arg_seconds = (args[0] as int?); assert(arg_seconds != null, @@ -251,7 +262,7 @@ abstract class TranslationsPigeon { return wrapResponse(result: output); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { + } catch (e) { return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); } }); @@ -259,14 +270,15 @@ abstract class TranslationsPigeon { } { final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.nl_jknaapen_fladder.settings.TranslationsPigeon.hoursAndMinutes$messageChannelSuffix', pigeonChannelCodec, + 'dev.flutter.pigeon.nl_jknaapen_fladder.settings.TranslationsPigeon.hoursAndMinutes$messageChannelSuffix', + pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { pigeonVar_channel.setMessageHandler(null); } else { pigeonVar_channel.setMessageHandler((Object? message) async { assert(message != null, - 'Argument for dev.flutter.pigeon.nl_jknaapen_fladder.settings.TranslationsPigeon.hoursAndMinutes was null.'); + 'Argument for dev.flutter.pigeon.nl_jknaapen_fladder.settings.TranslationsPigeon.hoursAndMinutes was null.'); final List args = (message as List?)!; final String? arg_time = (args[0] as String?); assert(arg_time != null, @@ -276,7 +288,7 @@ abstract class TranslationsPigeon { return wrapResponse(result: output); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { + } catch (e) { return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); } }); @@ -284,14 +296,15 @@ abstract class TranslationsPigeon { } { final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.nl_jknaapen_fladder.settings.TranslationsPigeon.endsAt$messageChannelSuffix', pigeonChannelCodec, + 'dev.flutter.pigeon.nl_jknaapen_fladder.settings.TranslationsPigeon.endsAt$messageChannelSuffix', + pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { pigeonVar_channel.setMessageHandler(null); } else { pigeonVar_channel.setMessageHandler((Object? message) async { assert(message != null, - 'Argument for dev.flutter.pigeon.nl_jknaapen_fladder.settings.TranslationsPigeon.endsAt was null.'); + 'Argument for dev.flutter.pigeon.nl_jknaapen_fladder.settings.TranslationsPigeon.endsAt was null.'); final List args = (message as List?)!; final String? arg_time = (args[0] as String?); assert(arg_time != null, @@ -301,7 +314,7 @@ abstract class TranslationsPigeon { return wrapResponse(result: output); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { + } catch (e) { return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); } }); @@ -309,7 +322,8 @@ abstract class TranslationsPigeon { } { final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.nl_jknaapen_fladder.settings.TranslationsPigeon.switchChannel$messageChannelSuffix', pigeonChannelCodec, + 'dev.flutter.pigeon.nl_jknaapen_fladder.settings.TranslationsPigeon.switchChannel$messageChannelSuffix', + pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { pigeonVar_channel.setMessageHandler(null); @@ -320,7 +334,7 @@ abstract class TranslationsPigeon { return wrapResponse(result: output); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { + } catch (e) { return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); } }); @@ -328,14 +342,15 @@ abstract class TranslationsPigeon { } { final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.nl_jknaapen_fladder.settings.TranslationsPigeon.switchChannelDesc$messageChannelSuffix', pigeonChannelCodec, + 'dev.flutter.pigeon.nl_jknaapen_fladder.settings.TranslationsPigeon.switchChannelDesc$messageChannelSuffix', + pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { pigeonVar_channel.setMessageHandler(null); } else { pigeonVar_channel.setMessageHandler((Object? message) async { assert(message != null, - 'Argument for dev.flutter.pigeon.nl_jknaapen_fladder.settings.TranslationsPigeon.switchChannelDesc was null.'); + 'Argument for dev.flutter.pigeon.nl_jknaapen_fladder.settings.TranslationsPigeon.switchChannelDesc was null.'); final List args = (message as List?)!; final String? arg_programName = (args[0] as String?); assert(arg_programName != null, @@ -348,7 +363,7 @@ abstract class TranslationsPigeon { return wrapResponse(result: output); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { + } catch (e) { return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); } }); @@ -356,7 +371,8 @@ abstract class TranslationsPigeon { } { final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.nl_jknaapen_fladder.settings.TranslationsPigeon.watch$messageChannelSuffix', pigeonChannelCodec, + 'dev.flutter.pigeon.nl_jknaapen_fladder.settings.TranslationsPigeon.watch$messageChannelSuffix', + pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { pigeonVar_channel.setMessageHandler(null); @@ -367,7 +383,7 @@ abstract class TranslationsPigeon { return wrapResponse(result: output); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { + } catch (e) { return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); } }); @@ -375,7 +391,8 @@ abstract class TranslationsPigeon { } { final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.nl_jknaapen_fladder.settings.TranslationsPigeon.now$messageChannelSuffix', pigeonChannelCodec, + 'dev.flutter.pigeon.nl_jknaapen_fladder.settings.TranslationsPigeon.now$messageChannelSuffix', + pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { pigeonVar_channel.setMessageHandler(null); @@ -386,7 +403,7 @@ abstract class TranslationsPigeon { return wrapResponse(result: output); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { + } catch (e) { return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); } }); @@ -394,7 +411,8 @@ abstract class TranslationsPigeon { } { final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.nl_jknaapen_fladder.settings.TranslationsPigeon.decline$messageChannelSuffix', pigeonChannelCodec, + 'dev.flutter.pigeon.nl_jknaapen_fladder.settings.TranslationsPigeon.decline$messageChannelSuffix', + pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { pigeonVar_channel.setMessageHandler(null); @@ -405,7 +423,7 @@ abstract class TranslationsPigeon { return wrapResponse(result: output); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { + } catch (e) { return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); } }); @@ -413,7 +431,8 @@ abstract class TranslationsPigeon { } { final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.nl_jknaapen_fladder.settings.TranslationsPigeon.syncPlaySyncingWithGroup$messageChannelSuffix', pigeonChannelCodec, + 'dev.flutter.pigeon.nl_jknaapen_fladder.settings.TranslationsPigeon.syncPlaySyncingWithGroup$messageChannelSuffix', + pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { pigeonVar_channel.setMessageHandler(null); @@ -424,7 +443,7 @@ abstract class TranslationsPigeon { return wrapResponse(result: output); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { + } catch (e) { return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); } }); @@ -432,7 +451,8 @@ abstract class TranslationsPigeon { } { final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.nl_jknaapen_fladder.settings.TranslationsPigeon.syncPlayCommandPausing$messageChannelSuffix', pigeonChannelCodec, + 'dev.flutter.pigeon.nl_jknaapen_fladder.settings.TranslationsPigeon.syncPlayCommandPausing$messageChannelSuffix', + pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { pigeonVar_channel.setMessageHandler(null); @@ -443,7 +463,7 @@ abstract class TranslationsPigeon { return wrapResponse(result: output); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { + } catch (e) { return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); } }); @@ -451,7 +471,8 @@ abstract class TranslationsPigeon { } { final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.nl_jknaapen_fladder.settings.TranslationsPigeon.syncPlayCommandPlaying$messageChannelSuffix', pigeonChannelCodec, + 'dev.flutter.pigeon.nl_jknaapen_fladder.settings.TranslationsPigeon.syncPlayCommandPlaying$messageChannelSuffix', + pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { pigeonVar_channel.setMessageHandler(null); @@ -462,7 +483,7 @@ abstract class TranslationsPigeon { return wrapResponse(result: output); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { + } catch (e) { return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); } }); @@ -470,7 +491,8 @@ abstract class TranslationsPigeon { } { final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.nl_jknaapen_fladder.settings.TranslationsPigeon.syncPlayCommandSeeking$messageChannelSuffix', pigeonChannelCodec, + 'dev.flutter.pigeon.nl_jknaapen_fladder.settings.TranslationsPigeon.syncPlayCommandSeeking$messageChannelSuffix', + pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { pigeonVar_channel.setMessageHandler(null); @@ -481,7 +503,7 @@ abstract class TranslationsPigeon { return wrapResponse(result: output); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { + } catch (e) { return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); } }); @@ -489,7 +511,8 @@ abstract class TranslationsPigeon { } { final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.nl_jknaapen_fladder.settings.TranslationsPigeon.syncPlayCommandStopping$messageChannelSuffix', pigeonChannelCodec, + 'dev.flutter.pigeon.nl_jknaapen_fladder.settings.TranslationsPigeon.syncPlayCommandStopping$messageChannelSuffix', + pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { pigeonVar_channel.setMessageHandler(null); @@ -500,7 +523,7 @@ abstract class TranslationsPigeon { return wrapResponse(result: output); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { + } catch (e) { return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); } }); @@ -508,7 +531,8 @@ abstract class TranslationsPigeon { } { final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.nl_jknaapen_fladder.settings.TranslationsPigeon.syncPlayCommandSyncing$messageChannelSuffix', pigeonChannelCodec, + 'dev.flutter.pigeon.nl_jknaapen_fladder.settings.TranslationsPigeon.syncPlayCommandSyncing$messageChannelSuffix', + pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { pigeonVar_channel.setMessageHandler(null); @@ -519,7 +543,7 @@ abstract class TranslationsPigeon { return wrapResponse(result: output); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { + } catch (e) { return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); } }); diff --git a/lib/src/video_player_helper.g.dart b/lib/src/video_player_helper.g.dart index 8b962e89f..8cf92cc9c 100644 --- a/lib/src/video_player_helper.g.dart +++ b/lib/src/video_player_helper.g.dart @@ -24,21 +24,19 @@ List wrapResponse({Object? result, PlatformException? error, bool empty } return [error.code, error.message, error.details]; } + bool _deepEquals(Object? a, Object? b) { if (a is List && b is List) { - return a.length == b.length && - a.indexed - .every(((int, dynamic) item) => _deepEquals(item.$2, b[item.$1])); + return a.length == b.length && a.indexed.every(((int, dynamic) item) => _deepEquals(item.$2, b[item.$1])); } if (a is Map && b is Map) { - return a.length == b.length && a.entries.every((MapEntry entry) => - (b as Map).containsKey(entry.key) && - _deepEquals(entry.value, b[entry.key])); + return a.length == b.length && + a.entries.every((MapEntry entry) => + (b as Map).containsKey(entry.key) && _deepEquals(entry.value, b[entry.key])); } return a == b; } - enum PlaybackType { direct, transcoded, @@ -54,6 +52,18 @@ enum MediaSegmentType { outro, } +/// Source of the last playback state change (for SyncPlay: infer user actions from stream). +enum PlaybackChangeSource { + /// No specific source (e.g. periodic update, buffering). + none, + + /// User tapped play/pause/seek on native; Flutter should send SyncPlay if active. + user, + + /// Change was caused by applying a SyncPlay command; do not send again. + syncplay, +} + class SimpleItemModel { SimpleItemModel({ required this.id, @@ -88,7 +98,8 @@ class SimpleItemModel { } Object encode() { - return _toList(); } + return _toList(); + } static SimpleItemModel decode(Object result) { result as List; @@ -116,8 +127,7 @@ class SimpleItemModel { @override // ignore: avoid_equals_and_hash_code_on_mutable_classes - int get hashCode => Object.hashAll(_toList()) -; + int get hashCode => Object.hashAll(_toList()); } class MediaInfo { @@ -138,7 +148,8 @@ class MediaInfo { } Object encode() { - return _toList(); } + return _toList(); + } static MediaInfo decode(Object result) { result as List; @@ -162,8 +173,7 @@ class MediaInfo { @override // ignore: avoid_equals_and_hash_code_on_mutable_classes - int get hashCode => Object.hashAll(_toList()) -; + int get hashCode => Object.hashAll(_toList()); } class PlayableData { @@ -232,7 +242,8 @@ class PlayableData { } Object encode() { - return _toList(); } + return _toList(); + } static PlayableData decode(Object result) { result as List; @@ -268,8 +279,7 @@ class PlayableData { @override // ignore: avoid_equals_and_hash_code_on_mutable_classes - int get hashCode => Object.hashAll(_toList()) -; + int get hashCode => Object.hashAll(_toList()); } class MediaSegment { @@ -298,7 +308,8 @@ class MediaSegment { } Object encode() { - return _toList(); } + return _toList(); + } static MediaSegment decode(Object result) { result as List; @@ -324,8 +335,7 @@ class MediaSegment { @override // ignore: avoid_equals_and_hash_code_on_mutable_classes - int get hashCode => Object.hashAll(_toList()) -; + int get hashCode => Object.hashAll(_toList()); } class AudioTrack { @@ -362,7 +372,8 @@ class AudioTrack { } Object encode() { - return _toList(); } + return _toList(); + } static AudioTrack decode(Object result) { result as List; @@ -390,8 +401,7 @@ class AudioTrack { @override // ignore: avoid_equals_and_hash_code_on_mutable_classes - int get hashCode => Object.hashAll(_toList()) -; + int get hashCode => Object.hashAll(_toList()); } class SubtitleTrack { @@ -428,7 +438,8 @@ class SubtitleTrack { } Object encode() { - return _toList(); } + return _toList(); + } static SubtitleTrack decode(Object result) { result as List; @@ -456,8 +467,7 @@ class SubtitleTrack { @override // ignore: avoid_equals_and_hash_code_on_mutable_classes - int get hashCode => Object.hashAll(_toList()) -; + int get hashCode => Object.hashAll(_toList()); } class Chapter { @@ -482,7 +492,8 @@ class Chapter { } Object encode() { - return _toList(); } + return _toList(); + } static Chapter decode(Object result) { result as List; @@ -507,8 +518,7 @@ class Chapter { @override // ignore: avoid_equals_and_hash_code_on_mutable_classes - int get hashCode => Object.hashAll(_toList()) -; + int get hashCode => Object.hashAll(_toList()); } class TrickPlayModel { @@ -549,7 +559,8 @@ class TrickPlayModel { } Object encode() { - return _toList(); } + return _toList(); + } static TrickPlayModel decode(Object result) { result as List; @@ -578,8 +589,7 @@ class TrickPlayModel { @override // ignore: avoid_equals_and_hash_code_on_mutable_classes - int get hashCode => Object.hashAll(_toList()) -; + int get hashCode => Object.hashAll(_toList()); } class StartResult { @@ -596,7 +606,8 @@ class StartResult { } Object encode() { - return _toList(); } + return _toList(); + } static StartResult decode(Object result) { result as List; @@ -619,8 +630,7 @@ class StartResult { @override // ignore: avoid_equals_and_hash_code_on_mutable_classes - int get hashCode => Object.hashAll(_toList()) -; + int get hashCode => Object.hashAll(_toList()); } class PlaybackState { @@ -632,6 +642,7 @@ class PlaybackState { required this.buffering, required this.completed, required this.failed, + this.changeSource, }); int position; @@ -648,6 +659,9 @@ class PlaybackState { bool failed; + /// When set, indicates who caused this state update (for SyncPlay inference). + PlaybackChangeSource? changeSource; + List _toList() { return [ position, @@ -657,11 +671,13 @@ class PlaybackState { buffering, completed, failed, + changeSource, ]; } Object encode() { - return _toList(); } + return _toList(); + } static PlaybackState decode(Object result) { result as List; @@ -673,6 +689,7 @@ class PlaybackState { buffering: result[4]! as bool, completed: result[5]! as bool, failed: result[6]! as bool, + changeSource: result[7] as PlaybackChangeSource?, ); } @@ -690,8 +707,7 @@ class PlaybackState { @override // ignore: avoid_equals_and_hash_code_on_mutable_classes - int get hashCode => Object.hashAll(_toList()) -; + int get hashCode => Object.hashAll(_toList()); } class TVGuideModel { @@ -720,7 +736,8 @@ class TVGuideModel { } Object encode() { - return _toList(); } + return _toList(); + } static TVGuideModel decode(Object result) { result as List; @@ -746,8 +763,7 @@ class TVGuideModel { @override // ignore: avoid_equals_and_hash_code_on_mutable_classes - int get hashCode => Object.hashAll(_toList()) -; + int get hashCode => Object.hashAll(_toList()); } class GuideChannel { @@ -780,7 +796,8 @@ class GuideChannel { } Object encode() { - return _toList(); } + return _toList(); + } static GuideChannel decode(Object result) { result as List; @@ -807,8 +824,7 @@ class GuideChannel { @override // ignore: avoid_equals_and_hash_code_on_mutable_classes - int get hashCode => Object.hashAll(_toList()) -; + int get hashCode => Object.hashAll(_toList()); } class GuideProgram { @@ -853,7 +869,8 @@ class GuideProgram { } Object encode() { - return _toList(); } + return _toList(); + } static GuideProgram decode(Object result) { result as List; @@ -883,11 +900,9 @@ class GuideProgram { @override // ignore: avoid_equals_and_hash_code_on_mutable_classes - int get hashCode => Object.hashAll(_toList()) -; + int get hashCode => Object.hashAll(_toList()); } - class _PigeonCodec extends StandardMessageCodec { const _PigeonCodec(); @override @@ -895,51 +910,54 @@ class _PigeonCodec extends StandardMessageCodec { if (value is int) { buffer.putUint8(4); buffer.putInt64(value); - } else if (value is PlaybackType) { + } else if (value is PlaybackType) { buffer.putUint8(129); writeValue(buffer, value.index); - } else if (value is MediaSegmentType) { + } else if (value is MediaSegmentType) { buffer.putUint8(130); writeValue(buffer, value.index); - } else if (value is SimpleItemModel) { + } else if (value is PlaybackChangeSource) { buffer.putUint8(131); - writeValue(buffer, value.encode()); - } else if (value is MediaInfo) { + writeValue(buffer, value.index); + } else if (value is SimpleItemModel) { buffer.putUint8(132); writeValue(buffer, value.encode()); - } else if (value is PlayableData) { + } else if (value is MediaInfo) { buffer.putUint8(133); writeValue(buffer, value.encode()); - } else if (value is MediaSegment) { + } else if (value is PlayableData) { buffer.putUint8(134); writeValue(buffer, value.encode()); - } else if (value is AudioTrack) { + } else if (value is MediaSegment) { buffer.putUint8(135); writeValue(buffer, value.encode()); - } else if (value is SubtitleTrack) { + } else if (value is AudioTrack) { buffer.putUint8(136); writeValue(buffer, value.encode()); - } else if (value is Chapter) { + } else if (value is SubtitleTrack) { buffer.putUint8(137); writeValue(buffer, value.encode()); - } else if (value is TrickPlayModel) { + } else if (value is Chapter) { buffer.putUint8(138); writeValue(buffer, value.encode()); - } else if (value is StartResult) { + } else if (value is TrickPlayModel) { buffer.putUint8(139); writeValue(buffer, value.encode()); - } else if (value is PlaybackState) { + } else if (value is StartResult) { buffer.putUint8(140); writeValue(buffer, value.encode()); - } else if (value is TVGuideModel) { + } else if (value is PlaybackState) { buffer.putUint8(141); writeValue(buffer, value.encode()); - } else if (value is GuideChannel) { + } else if (value is TVGuideModel) { buffer.putUint8(142); writeValue(buffer, value.encode()); - } else if (value is GuideProgram) { + } else if (value is GuideChannel) { buffer.putUint8(143); writeValue(buffer, value.encode()); + } else if (value is GuideProgram) { + buffer.putUint8(144); + writeValue(buffer, value.encode()); } else { super.writeValue(buffer, value); } @@ -948,37 +966,40 @@ class _PigeonCodec extends StandardMessageCodec { @override Object? readValueOfType(int type, ReadBuffer buffer) { switch (type) { - case 129: + case 129: final int? value = readValue(buffer) as int?; return value == null ? null : PlaybackType.values[value]; - case 130: + case 130: final int? value = readValue(buffer) as int?; return value == null ? null : MediaSegmentType.values[value]; - case 131: + case 131: + final int? value = readValue(buffer) as int?; + return value == null ? null : PlaybackChangeSource.values[value]; + case 132: return SimpleItemModel.decode(readValue(buffer)!); - case 132: + case 133: return MediaInfo.decode(readValue(buffer)!); - case 133: + case 134: return PlayableData.decode(readValue(buffer)!); - case 134: + case 135: return MediaSegment.decode(readValue(buffer)!); - case 135: + case 136: return AudioTrack.decode(readValue(buffer)!); - case 136: + case 137: return SubtitleTrack.decode(readValue(buffer)!); - case 137: + case 138: return Chapter.decode(readValue(buffer)!); - case 138: + case 139: return TrickPlayModel.decode(readValue(buffer)!); - case 139: + case 140: return StartResult.decode(readValue(buffer)!); - case 140: + case 141: return PlaybackState.decode(readValue(buffer)!); - case 141: + case 142: return TVGuideModel.decode(readValue(buffer)!); - case 142: + case 143: return GuideChannel.decode(readValue(buffer)!); - case 143: + case 144: return GuideProgram.decode(readValue(buffer)!); default: return super.readValueOfType(type, buffer); @@ -1000,15 +1021,15 @@ class NativeVideoActivity { final String pigeonVar_messageChannelSuffix; Future launchActivity() async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.nl_jknaapen_fladder.video.NativeVideoActivity.launchActivity$pigeonVar_messageChannelSuffix'; + final String pigeonVar_channelName = + 'dev.flutter.pigeon.nl_jknaapen_fladder.video.NativeVideoActivity.launchActivity$pigeonVar_messageChannelSuffix'; final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); final Future pigeonVar_sendFuture = pigeonVar_channel.send(null); - final List? pigeonVar_replyList = - await pigeonVar_sendFuture as List?; + final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { throw _createConnectionError(pigeonVar_channelName); } else if (pigeonVar_replyList.length > 1) { @@ -1028,15 +1049,15 @@ class NativeVideoActivity { } Future disposeActivity() async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.nl_jknaapen_fladder.video.NativeVideoActivity.disposeActivity$pigeonVar_messageChannelSuffix'; + final String pigeonVar_channelName = + 'dev.flutter.pigeon.nl_jknaapen_fladder.video.NativeVideoActivity.disposeActivity$pigeonVar_messageChannelSuffix'; final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); final Future pigeonVar_sendFuture = pigeonVar_channel.send(null); - final List? pigeonVar_replyList = - await pigeonVar_sendFuture as List?; + final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { throw _createConnectionError(pigeonVar_channelName); } else if (pigeonVar_replyList.length > 1) { @@ -1051,15 +1072,15 @@ class NativeVideoActivity { } Future isLeanBackEnabled() async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.nl_jknaapen_fladder.video.NativeVideoActivity.isLeanBackEnabled$pigeonVar_messageChannelSuffix'; + final String pigeonVar_channelName = + 'dev.flutter.pigeon.nl_jknaapen_fladder.video.NativeVideoActivity.isLeanBackEnabled$pigeonVar_messageChannelSuffix'; final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); final Future pigeonVar_sendFuture = pigeonVar_channel.send(null); - final List? pigeonVar_replyList = - await pigeonVar_sendFuture as List?; + final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { throw _createConnectionError(pigeonVar_channelName); } else if (pigeonVar_replyList.length > 1) { @@ -1093,15 +1114,15 @@ class VideoPlayerApi { final String pigeonVar_messageChannelSuffix; Future sendPlayableModel(PlayableData playableData) async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.nl_jknaapen_fladder.video.VideoPlayerApi.sendPlayableModel$pigeonVar_messageChannelSuffix'; + final String pigeonVar_channelName = + 'dev.flutter.pigeon.nl_jknaapen_fladder.video.VideoPlayerApi.sendPlayableModel$pigeonVar_messageChannelSuffix'; final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); final Future pigeonVar_sendFuture = pigeonVar_channel.send([playableData]); - final List? pigeonVar_replyList = - await pigeonVar_sendFuture as List?; + final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { throw _createConnectionError(pigeonVar_channelName); } else if (pigeonVar_replyList.length > 1) { @@ -1121,15 +1142,15 @@ class VideoPlayerApi { } Future sendTVGuideModel(TVGuideModel guide) async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.nl_jknaapen_fladder.video.VideoPlayerApi.sendTVGuideModel$pigeonVar_messageChannelSuffix'; + final String pigeonVar_channelName = + 'dev.flutter.pigeon.nl_jknaapen_fladder.video.VideoPlayerApi.sendTVGuideModel$pigeonVar_messageChannelSuffix'; final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); final Future pigeonVar_sendFuture = pigeonVar_channel.send([guide]); - final List? pigeonVar_replyList = - await pigeonVar_sendFuture as List?; + final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { throw _createConnectionError(pigeonVar_channelName); } else if (pigeonVar_replyList.length > 1) { @@ -1149,15 +1170,15 @@ class VideoPlayerApi { } Future open(String url, bool play) async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.nl_jknaapen_fladder.video.VideoPlayerApi.open$pigeonVar_messageChannelSuffix'; + final String pigeonVar_channelName = + 'dev.flutter.pigeon.nl_jknaapen_fladder.video.VideoPlayerApi.open$pigeonVar_messageChannelSuffix'; final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); final Future pigeonVar_sendFuture = pigeonVar_channel.send([url, play]); - final List? pigeonVar_replyList = - await pigeonVar_sendFuture as List?; + final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { throw _createConnectionError(pigeonVar_channelName); } else if (pigeonVar_replyList.length > 1) { @@ -1177,15 +1198,15 @@ class VideoPlayerApi { } Future setLooping(bool looping) async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.nl_jknaapen_fladder.video.VideoPlayerApi.setLooping$pigeonVar_messageChannelSuffix'; + final String pigeonVar_channelName = + 'dev.flutter.pigeon.nl_jknaapen_fladder.video.VideoPlayerApi.setLooping$pigeonVar_messageChannelSuffix'; final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); final Future pigeonVar_sendFuture = pigeonVar_channel.send([looping]); - final List? pigeonVar_replyList = - await pigeonVar_sendFuture as List?; + final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { throw _createConnectionError(pigeonVar_channelName); } else if (pigeonVar_replyList.length > 1) { @@ -1201,15 +1222,15 @@ class VideoPlayerApi { /// Sets the volume, with 0.0 being muted and 1.0 being full volume. Future setVolume(double volume) async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.nl_jknaapen_fladder.video.VideoPlayerApi.setVolume$pigeonVar_messageChannelSuffix'; + final String pigeonVar_channelName = + 'dev.flutter.pigeon.nl_jknaapen_fladder.video.VideoPlayerApi.setVolume$pigeonVar_messageChannelSuffix'; final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); final Future pigeonVar_sendFuture = pigeonVar_channel.send([volume]); - final List? pigeonVar_replyList = - await pigeonVar_sendFuture as List?; + final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { throw _createConnectionError(pigeonVar_channelName); } else if (pigeonVar_replyList.length > 1) { @@ -1225,15 +1246,15 @@ class VideoPlayerApi { /// Sets the playback speed as a multiple of normal speed. Future setPlaybackSpeed(double speed) async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.nl_jknaapen_fladder.video.VideoPlayerApi.setPlaybackSpeed$pigeonVar_messageChannelSuffix'; + final String pigeonVar_channelName = + 'dev.flutter.pigeon.nl_jknaapen_fladder.video.VideoPlayerApi.setPlaybackSpeed$pigeonVar_messageChannelSuffix'; final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); final Future pigeonVar_sendFuture = pigeonVar_channel.send([speed]); - final List? pigeonVar_replyList = - await pigeonVar_sendFuture as List?; + final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { throw _createConnectionError(pigeonVar_channelName); } else if (pigeonVar_replyList.length > 1) { @@ -1248,15 +1269,15 @@ class VideoPlayerApi { } Future play() async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.nl_jknaapen_fladder.video.VideoPlayerApi.play$pigeonVar_messageChannelSuffix'; + final String pigeonVar_channelName = + 'dev.flutter.pigeon.nl_jknaapen_fladder.video.VideoPlayerApi.play$pigeonVar_messageChannelSuffix'; final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); final Future pigeonVar_sendFuture = pigeonVar_channel.send(null); - final List? pigeonVar_replyList = - await pigeonVar_sendFuture as List?; + final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { throw _createConnectionError(pigeonVar_channelName); } else if (pigeonVar_replyList.length > 1) { @@ -1272,15 +1293,15 @@ class VideoPlayerApi { /// Pauses playback if the video is currently playing. Future pause() async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.nl_jknaapen_fladder.video.VideoPlayerApi.pause$pigeonVar_messageChannelSuffix'; + final String pigeonVar_channelName = + 'dev.flutter.pigeon.nl_jknaapen_fladder.video.VideoPlayerApi.pause$pigeonVar_messageChannelSuffix'; final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); final Future pigeonVar_sendFuture = pigeonVar_channel.send(null); - final List? pigeonVar_replyList = - await pigeonVar_sendFuture as List?; + final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { throw _createConnectionError(pigeonVar_channelName); } else if (pigeonVar_replyList.length > 1) { @@ -1296,15 +1317,15 @@ class VideoPlayerApi { /// Seeks to the given playback position, in milliseconds. Future seekTo(int position) async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.nl_jknaapen_fladder.video.VideoPlayerApi.seekTo$pigeonVar_messageChannelSuffix'; + final String pigeonVar_channelName = + 'dev.flutter.pigeon.nl_jknaapen_fladder.video.VideoPlayerApi.seekTo$pigeonVar_messageChannelSuffix'; final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); final Future pigeonVar_sendFuture = pigeonVar_channel.send([position]); - final List? pigeonVar_replyList = - await pigeonVar_sendFuture as List?; + final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { throw _createConnectionError(pigeonVar_channelName); } else if (pigeonVar_replyList.length > 1) { @@ -1319,15 +1340,15 @@ class VideoPlayerApi { } Future stop() async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.nl_jknaapen_fladder.video.VideoPlayerApi.stop$pigeonVar_messageChannelSuffix'; + final String pigeonVar_channelName = + 'dev.flutter.pigeon.nl_jknaapen_fladder.video.VideoPlayerApi.stop$pigeonVar_messageChannelSuffix'; final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); final Future pigeonVar_sendFuture = pigeonVar_channel.send(null); - final List? pigeonVar_replyList = - await pigeonVar_sendFuture as List?; + final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { throw _createConnectionError(pigeonVar_channelName); } else if (pigeonVar_replyList.length > 1) { @@ -1345,15 +1366,15 @@ class VideoPlayerApi { /// [processing] indicates if a SyncPlay command is being processed. /// [commandType] is the type of command (e.g., "Pause", "Unpause", "Seek", "Stop"). Future setSyncPlayCommandState(bool processing, String? commandType) async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.nl_jknaapen_fladder.video.VideoPlayerApi.setSyncPlayCommandState$pigeonVar_messageChannelSuffix'; + final String pigeonVar_channelName = + 'dev.flutter.pigeon.nl_jknaapen_fladder.video.VideoPlayerApi.setSyncPlayCommandState$pigeonVar_messageChannelSuffix'; final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); final Future pigeonVar_sendFuture = pigeonVar_channel.send([processing, commandType]); - final List? pigeonVar_replyList = - await pigeonVar_sendFuture as List?; + final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { throw _createConnectionError(pigeonVar_channelName); } else if (pigeonVar_replyList.length > 1) { @@ -1373,18 +1394,23 @@ abstract class VideoPlayerListenerCallback { void onPlaybackStateChanged(PlaybackState state); - static void setUp(VideoPlayerListenerCallback? api, {BinaryMessenger? binaryMessenger, String messageChannelSuffix = '',}) { + static void setUp( + VideoPlayerListenerCallback? api, { + BinaryMessenger? binaryMessenger, + String messageChannelSuffix = '', + }) { messageChannelSuffix = messageChannelSuffix.isNotEmpty ? '.$messageChannelSuffix' : ''; { final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.nl_jknaapen_fladder.video.VideoPlayerListenerCallback.onPlaybackStateChanged$messageChannelSuffix', pigeonChannelCodec, + 'dev.flutter.pigeon.nl_jknaapen_fladder.video.VideoPlayerListenerCallback.onPlaybackStateChanged$messageChannelSuffix', + pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { pigeonVar_channel.setMessageHandler(null); } else { pigeonVar_channel.setMessageHandler((Object? message) async { assert(message != null, - 'Argument for dev.flutter.pigeon.nl_jknaapen_fladder.video.VideoPlayerListenerCallback.onPlaybackStateChanged was null.'); + 'Argument for dev.flutter.pigeon.nl_jknaapen_fladder.video.VideoPlayerListenerCallback.onPlaybackStateChanged was null.'); final List args = (message as List?)!; final PlaybackState? arg_state = (args[0] as PlaybackState?); assert(arg_state != null, @@ -1394,7 +1420,7 @@ abstract class VideoPlayerListenerCallback { return wrapResponse(empty: true); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { + } catch (e) { return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); } }); @@ -1430,11 +1456,16 @@ abstract class VideoPlayerControlsCallback { /// Position is in milliseconds void onUserSeek(int positionMs); - static void setUp(VideoPlayerControlsCallback? api, {BinaryMessenger? binaryMessenger, String messageChannelSuffix = '',}) { + static void setUp( + VideoPlayerControlsCallback? api, { + BinaryMessenger? binaryMessenger, + String messageChannelSuffix = '', + }) { messageChannelSuffix = messageChannelSuffix.isNotEmpty ? '.$messageChannelSuffix' : ''; { final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.nl_jknaapen_fladder.video.VideoPlayerControlsCallback.loadNextVideo$messageChannelSuffix', pigeonChannelCodec, + 'dev.flutter.pigeon.nl_jknaapen_fladder.video.VideoPlayerControlsCallback.loadNextVideo$messageChannelSuffix', + pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { pigeonVar_channel.setMessageHandler(null); @@ -1445,7 +1476,7 @@ abstract class VideoPlayerControlsCallback { return wrapResponse(empty: true); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { + } catch (e) { return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); } }); @@ -1453,7 +1484,8 @@ abstract class VideoPlayerControlsCallback { } { final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.nl_jknaapen_fladder.video.VideoPlayerControlsCallback.loadPreviousVideo$messageChannelSuffix', pigeonChannelCodec, + 'dev.flutter.pigeon.nl_jknaapen_fladder.video.VideoPlayerControlsCallback.loadPreviousVideo$messageChannelSuffix', + pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { pigeonVar_channel.setMessageHandler(null); @@ -1464,7 +1496,7 @@ abstract class VideoPlayerControlsCallback { return wrapResponse(empty: true); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { + } catch (e) { return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); } }); @@ -1472,7 +1504,8 @@ abstract class VideoPlayerControlsCallback { } { final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.nl_jknaapen_fladder.video.VideoPlayerControlsCallback.onStop$messageChannelSuffix', pigeonChannelCodec, + 'dev.flutter.pigeon.nl_jknaapen_fladder.video.VideoPlayerControlsCallback.onStop$messageChannelSuffix', + pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { pigeonVar_channel.setMessageHandler(null); @@ -1483,7 +1516,7 @@ abstract class VideoPlayerControlsCallback { return wrapResponse(empty: true); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { + } catch (e) { return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); } }); @@ -1491,14 +1524,15 @@ abstract class VideoPlayerControlsCallback { } { final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.nl_jknaapen_fladder.video.VideoPlayerControlsCallback.swapSubtitleTrack$messageChannelSuffix', pigeonChannelCodec, + 'dev.flutter.pigeon.nl_jknaapen_fladder.video.VideoPlayerControlsCallback.swapSubtitleTrack$messageChannelSuffix', + pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { pigeonVar_channel.setMessageHandler(null); } else { pigeonVar_channel.setMessageHandler((Object? message) async { assert(message != null, - 'Argument for dev.flutter.pigeon.nl_jknaapen_fladder.video.VideoPlayerControlsCallback.swapSubtitleTrack was null.'); + 'Argument for dev.flutter.pigeon.nl_jknaapen_fladder.video.VideoPlayerControlsCallback.swapSubtitleTrack was null.'); final List args = (message as List?)!; final int? arg_value = (args[0] as int?); assert(arg_value != null, @@ -1508,7 +1542,7 @@ abstract class VideoPlayerControlsCallback { return wrapResponse(empty: true); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { + } catch (e) { return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); } }); @@ -1516,14 +1550,15 @@ abstract class VideoPlayerControlsCallback { } { final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.nl_jknaapen_fladder.video.VideoPlayerControlsCallback.swapAudioTrack$messageChannelSuffix', pigeonChannelCodec, + 'dev.flutter.pigeon.nl_jknaapen_fladder.video.VideoPlayerControlsCallback.swapAudioTrack$messageChannelSuffix', + pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { pigeonVar_channel.setMessageHandler(null); } else { pigeonVar_channel.setMessageHandler((Object? message) async { assert(message != null, - 'Argument for dev.flutter.pigeon.nl_jknaapen_fladder.video.VideoPlayerControlsCallback.swapAudioTrack was null.'); + 'Argument for dev.flutter.pigeon.nl_jknaapen_fladder.video.VideoPlayerControlsCallback.swapAudioTrack was null.'); final List args = (message as List?)!; final int? arg_value = (args[0] as int?); assert(arg_value != null, @@ -1533,7 +1568,7 @@ abstract class VideoPlayerControlsCallback { return wrapResponse(empty: true); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { + } catch (e) { return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); } }); @@ -1541,14 +1576,15 @@ abstract class VideoPlayerControlsCallback { } { final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.nl_jknaapen_fladder.video.VideoPlayerControlsCallback.loadProgram$messageChannelSuffix', pigeonChannelCodec, + 'dev.flutter.pigeon.nl_jknaapen_fladder.video.VideoPlayerControlsCallback.loadProgram$messageChannelSuffix', + pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { pigeonVar_channel.setMessageHandler(null); } else { pigeonVar_channel.setMessageHandler((Object? message) async { assert(message != null, - 'Argument for dev.flutter.pigeon.nl_jknaapen_fladder.video.VideoPlayerControlsCallback.loadProgram was null.'); + 'Argument for dev.flutter.pigeon.nl_jknaapen_fladder.video.VideoPlayerControlsCallback.loadProgram was null.'); final List args = (message as List?)!; final GuideChannel? arg_selection = (args[0] as GuideChannel?); assert(arg_selection != null, @@ -1558,7 +1594,7 @@ abstract class VideoPlayerControlsCallback { return wrapResponse(empty: true); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { + } catch (e) { return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); } }); @@ -1566,14 +1602,15 @@ abstract class VideoPlayerControlsCallback { } { final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.nl_jknaapen_fladder.video.VideoPlayerControlsCallback.fetchProgramsForChannel$messageChannelSuffix', pigeonChannelCodec, + 'dev.flutter.pigeon.nl_jknaapen_fladder.video.VideoPlayerControlsCallback.fetchProgramsForChannel$messageChannelSuffix', + pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { pigeonVar_channel.setMessageHandler(null); } else { pigeonVar_channel.setMessageHandler((Object? message) async { assert(message != null, - 'Argument for dev.flutter.pigeon.nl_jknaapen_fladder.video.VideoPlayerControlsCallback.fetchProgramsForChannel was null.'); + 'Argument for dev.flutter.pigeon.nl_jknaapen_fladder.video.VideoPlayerControlsCallback.fetchProgramsForChannel was null.'); final List args = (message as List?)!; final String? arg_channelId = (args[0] as String?); assert(arg_channelId != null, @@ -1583,7 +1620,7 @@ abstract class VideoPlayerControlsCallback { return wrapResponse(result: output); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { + } catch (e) { return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); } }); @@ -1591,7 +1628,8 @@ abstract class VideoPlayerControlsCallback { } { final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.nl_jknaapen_fladder.video.VideoPlayerControlsCallback.onUserPlay$messageChannelSuffix', pigeonChannelCodec, + 'dev.flutter.pigeon.nl_jknaapen_fladder.video.VideoPlayerControlsCallback.onUserPlay$messageChannelSuffix', + pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { pigeonVar_channel.setMessageHandler(null); @@ -1602,7 +1640,7 @@ abstract class VideoPlayerControlsCallback { return wrapResponse(empty: true); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { + } catch (e) { return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); } }); @@ -1610,7 +1648,8 @@ abstract class VideoPlayerControlsCallback { } { final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.nl_jknaapen_fladder.video.VideoPlayerControlsCallback.onUserPause$messageChannelSuffix', pigeonChannelCodec, + 'dev.flutter.pigeon.nl_jknaapen_fladder.video.VideoPlayerControlsCallback.onUserPause$messageChannelSuffix', + pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { pigeonVar_channel.setMessageHandler(null); @@ -1621,7 +1660,7 @@ abstract class VideoPlayerControlsCallback { return wrapResponse(empty: true); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { + } catch (e) { return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); } }); @@ -1629,14 +1668,15 @@ abstract class VideoPlayerControlsCallback { } { final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.nl_jknaapen_fladder.video.VideoPlayerControlsCallback.onUserSeek$messageChannelSuffix', pigeonChannelCodec, + 'dev.flutter.pigeon.nl_jknaapen_fladder.video.VideoPlayerControlsCallback.onUserSeek$messageChannelSuffix', + pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { pigeonVar_channel.setMessageHandler(null); } else { pigeonVar_channel.setMessageHandler((Object? message) async { assert(message != null, - 'Argument for dev.flutter.pigeon.nl_jknaapen_fladder.video.VideoPlayerControlsCallback.onUserSeek was null.'); + 'Argument for dev.flutter.pigeon.nl_jknaapen_fladder.video.VideoPlayerControlsCallback.onUserSeek was null.'); final List args = (message as List?)!; final int? arg_positionMs = (args[0] as int?); assert(arg_positionMs != null, @@ -1646,7 +1686,7 @@ abstract class VideoPlayerControlsCallback { return wrapResponse(empty: true); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { + } catch (e) { return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); } }); diff --git a/lib/util/application_info.freezed.dart b/lib/util/application_info.freezed.dart index cd3ecd446..ad7b8a8ee 100644 --- a/lib/util/application_info.freezed.dart +++ b/lib/util/application_info.freezed.dart @@ -113,9 +113,7 @@ extension ApplicationInfoPatterns on ApplicationInfo { @optionalTypeArgs TResult maybeWhen( - TResult Function( - String name, String version, String buildNumber, String os)? - $default, { + TResult Function(String name, String version, String buildNumber, String os)? $default, { required TResult orElse(), }) { final _that = this; @@ -142,8 +140,7 @@ extension ApplicationInfoPatterns on ApplicationInfo { @optionalTypeArgs TResult when( - TResult Function(String name, String version, String buildNumber, String os) - $default, + TResult Function(String name, String version, String buildNumber, String os) $default, ) { final _that = this; switch (_that) { @@ -168,9 +165,7 @@ extension ApplicationInfoPatterns on ApplicationInfo { @optionalTypeArgs TResult? whenOrNull( - TResult? Function( - String name, String version, String buildNumber, String os)? - $default, + TResult? Function(String name, String version, String buildNumber, String os)? $default, ) { final _that = this; switch (_that) { @@ -185,11 +180,7 @@ extension ApplicationInfoPatterns on ApplicationInfo { /// @nodoc class _ApplicationInfo extends ApplicationInfo { - _ApplicationInfo( - {required this.name, - required this.version, - required this.buildNumber, - required this.os}) + _ApplicationInfo({required this.name, required this.version, required this.buildNumber, required this.os}) : super._(); @override diff --git a/lib/util/item_base_model/play_item_helpers.dart b/lib/util/item_base_model/play_item_helpers.dart index 7a4f4c7ff..0386d5769 100644 --- a/lib/util/item_base_model/play_item_helpers.dart +++ b/lib/util/item_base_model/play_item_helpers.dart @@ -78,14 +78,12 @@ Future _playVideo( return; } - final actualStartPosition = - startPosition ?? await current.startDuration() ?? Duration.zero; + final actualStartPosition = startPosition ?? await current.startDuration() ?? Duration.zero; - final loadedCorrectly = - await ref.read(videoPlayerProvider.notifier).loadPlaybackItem( - current, - actualStartPosition, - ); + final loadedCorrectly = await ref.read(videoPlayerProvider.notifier).loadPlaybackItem( + current, + actualStartPosition, + ); if (!loadedCorrectly) { if (context.mounted) { @@ -98,13 +96,10 @@ Future _playVideo( //Pop loading screen Navigator.of(context, rootNavigator: true).pop(); - ref - .read(mediaPlaybackProvider.notifier) - .update((state) => state.copyWith(state: VideoPlayerState.fullScreen)); + ref.read(mediaPlaybackProvider.notifier).update((state) => state.copyWith(state: VideoPlayerState.fullScreen)); await ref.read(videoPlayerProvider.notifier).openPlayer(context); - if (AdaptiveLayout.of(context).isDesktop && - defaultTargetPlatform != TargetPlatform.macOS) { + if (AdaptiveLayout.of(context).isDesktop && defaultTargetPlatform != TargetPlatform.macOS) { fullScreenHelper.closeFullScreen(ref); } @@ -120,9 +115,7 @@ extension BookBaseModelExtension on BookModel? { BuildContext context, WidgetRef ref, { int? currentPage, - AutoDisposeStateNotifierProvider? - provider, + AutoDisposeStateNotifierProvider? provider, BuildContext? parentContext, }) async { if (kIsWeb) { @@ -136,9 +129,7 @@ extension BookBaseModelExtension on BookModel? { if (newProvider == null) { newProvider = bookDetailsProvider(this?.id ?? ""); - await ref - .watch(bookDetailsProvider(this?.id ?? "").notifier) - .fetchDetails(this!); + await ref.watch(bookDetailsProvider(this?.id ?? "").notifier).fetchDetails(this!); } ref.read(bookViewerProvider.notifier).fetchBook(this); @@ -159,9 +150,7 @@ extension PhotoAlbumExtension on PhotoAlbumModel? { BuildContext context, WidgetRef ref, { int? currentPage, - AutoDisposeStateNotifierProvider? - provider, + AutoDisposeStateNotifierProvider? provider, BuildContext? parentContext, }) async { _showLoadingIndicator(context); @@ -171,8 +160,7 @@ extension PhotoAlbumExtension on PhotoAlbumModel? { final api = ref.read(jellyApiProvider); final getChildItems = await api.itemsGet( parentId: albumModel.id, - includeItemTypes: - FladderItemType.galleryItem.map((e) => e.dtoKind).toList(), + includeItemTypes: FladderItemType.galleryItem.map((e) => e.dtoKind).toList(), recursive: true); final photos = getChildItems.body?.items.whereType() ?? []; @@ -239,9 +227,7 @@ extension ItemBaseModelExtensions on ItemBaseModel? { PhotoAlbumModel album => album.play(context, ref), BookModel book => book.play(context, ref), ChannelModel channel => channel.play(context, ref), - _ => _default(context, this, ref, - startPosition: startPosition, - showPlaybackOption: showPlaybackOption), + _ => _default(context, this, ref, startPosition: startPosition, showPlaybackOption: showPlaybackOption), }; Future _default( @@ -256,23 +242,20 @@ extension ItemBaseModelExtensions on ItemBaseModel? { // If in SyncPlay group, set the queue via SyncPlay instead of playing directly final isSyncPlayActive = ref.read(isSyncPlayActiveProvider); if (isSyncPlayActive) { - await _playSyncPlay(context, itemModel, ref, - startPosition: startPosition); + await _playSyncPlay(context, itemModel, ref, startPosition: startPosition); return; } _showLoadingIndicator(context); - PlaybackModel? model = - await ref.read(playbackModelHelper).createPlaybackModel( - context, - itemModel, - showPlaybackOptions: showPlaybackOption, - startPosition: startPosition, - ); + PlaybackModel? model = await ref.read(playbackModelHelper).createPlaybackModel( + context, + itemModel, + showPlaybackOptions: showPlaybackOption, + startPosition: startPosition, + ); - await _playVideo(context, - startPosition: startPosition, current: model, ref: ref); + await _playVideo(context, startPosition: startPosition, current: model, ref: ref); } } @@ -283,9 +266,7 @@ Future _playSyncPlay( WidgetRef ref, { Duration? startPosition, }) async { - final startPositionTicks = startPosition != null - ? secondsToTicks(startPosition.inMilliseconds / 1000) - : 0; + final startPositionTicks = startPosition != null ? secondsToTicks(startPosition.inMilliseconds / 1000) : 0; // Set the new queue via SyncPlay - server will broadcast to all clients await ref.read(syncPlayProvider.notifier).setNewQueue( @@ -298,8 +279,7 @@ Future _playSyncPlay( } extension ItemBaseModelsBooleans on List { - Future playLibraryItems(BuildContext context, WidgetRef ref, - {bool shuffle = false}) async { + Future playLibraryItems(BuildContext context, WidgetRef ref, {bool shuffle = false}) async { if (isEmpty) return; _showLoadingIndicator(context); @@ -308,22 +288,16 @@ extension ItemBaseModelsBooleans on List { List> newList = await Future.wait(map((element) async { switch (element.type) { case FladderItemType.series: - return await ref - .read(jellyApiProvider) - .fetchEpisodeFromShow(seriesId: element.id); + return await ref.read(jellyApiProvider).fetchEpisodeFromShow(seriesId: element.id); default: return [element]; } })); - var expandedList = newList - .expand((element) => element) - .toList() - .where((element) => element.playAble) - .toList() - .uniqueBy( - (value) => value.id, - ); + var expandedList = + newList.expand((element) => element).toList().where((element) => element.playAble).toList().uniqueBy( + (value) => value.id, + ); if (shuffle) { expandedList.shuffle(); @@ -341,12 +315,11 @@ extension ItemBaseModelsBooleans on List { return; } - PlaybackModel? model = - await ref.read(playbackModelHelper).createPlaybackModel( - context, - expandedList.firstOrNull, - libraryQueue: expandedList, - ); + PlaybackModel? model = await ref.read(playbackModelHelper).createPlaybackModel( + context, + expandedList.firstOrNull, + libraryQueue: expandedList, + ); if (context.mounted) { await _playVideo(context, ref: ref, queue: expandedList, current: model); diff --git a/lib/util/string_extensions.dart b/lib/util/string_extensions.dart index c8d62a290..87fed44d8 100644 --- a/lib/util/string_extensions.dart +++ b/lib/util/string_extensions.dart @@ -55,7 +55,7 @@ extension StringExtensions on String { /// Instead of the [path.basename] method, which returns the last part of the path for the current client platform. String get universalBasename { final parts = split(RegExp(r'[\\/]+')); - return parts.where((s)=>s.isNotEmpty).lastOrNull ?? ''; + return parts.where((s) => s.isNotEmpty).lastOrNull ?? ''; } } diff --git a/lib/widgets/navigation_scaffold/components/destination_model.dart b/lib/widgets/navigation_scaffold/components/destination_model.dart index adf49cb3a..fb27874f4 100644 --- a/lib/widgets/navigation_scaffold/components/destination_model.dart +++ b/lib/widgets/navigation_scaffold/components/destination_model.dart @@ -14,6 +14,7 @@ class DestinationModel { final String? tooltip; final Widget? badge; final AdaptiveFab? floatingActionButton; + /// Custom FAB widget - takes precedence over floatingActionButton if provided final Widget? customFab; diff --git a/lib/widgets/shared/back_intent_dpad.dart b/lib/widgets/shared/back_intent_dpad.dart index a6a1a1175..59f6a37b2 100644 --- a/lib/widgets/shared/back_intent_dpad.dart +++ b/lib/widgets/shared/back_intent_dpad.dart @@ -1,11 +1,9 @@ -import 'package:flutter/material.dart'; -import 'package:flutter/services.dart'; -import 'package:flutter/gestures.dart'; - import 'package:auto_route/auto_route.dart'; - import 'package:fladder/util/adaptive_layout/adaptive_layout.dart'; import 'package:fladder/util/focus_helper.dart'; +import 'package:flutter/gestures.dart'; +import 'package:flutter/material.dart'; +import 'package:flutter/services.dart'; class BackIntentDpad extends StatelessWidget { final Widget child; @@ -34,11 +32,11 @@ class BackIntentDpad extends StatelessWidget { if (event.logicalKey == LogicalKeyboardKey.backspace) { if (isEditableTextFocused()) { return KeyEventResult.ignored; - } else { + } else { context.maybePop(); return KeyEventResult.handled; + } } - } return KeyEventResult.ignored; }, diff --git a/lib/widgets/shared/background_item_image.dart b/lib/widgets/shared/background_item_image.dart index e69de29bb..8b1378917 100644 --- a/lib/widgets/shared/background_item_image.dart +++ b/lib/widgets/shared/background_item_image.dart @@ -0,0 +1 @@ + diff --git a/lib/widgets/syncplay/syncplay_badge.dart b/lib/widgets/syncplay/syncplay_badge.dart index 485fc9477..a6a989b9c 100644 --- a/lib/widgets/syncplay/syncplay_badge.dart +++ b/lib/widgets/syncplay/syncplay_badge.dart @@ -3,9 +3,9 @@ import 'package:flutter/material.dart'; import 'package:flutter_riverpod/flutter_riverpod.dart'; import 'package:iconsax_plus/iconsax_plus.dart'; -import 'package:fladder/models/syncplay/syncplay_models.dart'; import 'package:fladder/providers/syncplay/syncplay_provider.dart'; import 'package:fladder/util/localization_helper.dart'; +import 'package:fladder/widgets/syncplay/syncplay_extensions.dart'; /// Badge widget showing SyncPlay status in the video player class SyncPlayBadge extends ConsumerWidget { @@ -22,37 +22,18 @@ class SyncPlayBadge extends ConsumerWidget { final isProcessing = ref.watch(syncPlayProvider.select((s) => s.isProcessingCommand)); final processingCommand = ref.watch(syncPlayProvider.select((s) => s.processingCommandType)); - final (icon, color) = switch (groupState) { - SyncPlayGroupState.idle => ( - IconsaxPlusLinear.pause_circle, - Theme.of(context).colorScheme.onSurfaceVariant, - ), - SyncPlayGroupState.waiting => ( - IconsaxPlusLinear.timer_1, - Theme.of(context).colorScheme.tertiary, - ), - SyncPlayGroupState.paused => ( - IconsaxPlusLinear.pause, - Theme.of(context).colorScheme.secondary, - ), - SyncPlayGroupState.playing => ( - IconsaxPlusLinear.play, - Theme.of(context).colorScheme.primary, - ), - }; + final (icon, color) = groupState.iconAndColor(context); return AnimatedContainer( duration: const Duration(milliseconds: 200), padding: const EdgeInsets.symmetric(horizontal: 10, vertical: 6), decoration: BoxDecoration( - color: isProcessing + color: isProcessing ? Theme.of(context).colorScheme.primaryContainer.withValues(alpha: 0.95) : Theme.of(context).colorScheme.surface.withValues(alpha: 0.85), borderRadius: BorderRadius.circular(20), border: Border.all( - color: isProcessing - ? Theme.of(context).colorScheme.primary - : color.withValues(alpha: 0.5), + color: isProcessing ? Theme.of(context).colorScheme.primary : color.withValues(alpha: 0.5), width: isProcessing ? 2 : 1, ), ), @@ -70,7 +51,7 @@ class SyncPlayBadge extends ConsumerWidget { ), const SizedBox(width: 6), Text( - _getProcessingText(context, processingCommand), + processingCommand.syncPlayProcessingLabel(context), style: Theme.of(context).textTheme.labelSmall?.copyWith( color: Theme.of(context).colorScheme.onPrimaryContainer, fontWeight: FontWeight.w600, @@ -100,16 +81,6 @@ class SyncPlayBadge extends ConsumerWidget { ), ); } - - String _getProcessingText(BuildContext context, String? command) { - return switch (command) { - 'Pause' => context.localized.syncPlaySyncingPause, - 'Unpause' => context.localized.syncPlaySyncingPlay, - 'Seek' => context.localized.syncPlaySyncingSeek, - 'Stop' => context.localized.syncPlayStopping, - _ => context.localized.syncPlaySyncing, - }; - } } /// Compact SyncPlay indicator for tight spaces @@ -125,24 +96,15 @@ class SyncPlayIndicator extends ConsumerWidget { final groupState = ref.watch(syncPlayGroupStateProvider); final isProcessing = ref.watch(syncPlayProvider.select((s) => s.isProcessingCommand)); - final color = switch (groupState) { - SyncPlayGroupState.idle => Theme.of(context).colorScheme.onSurfaceVariant, - SyncPlayGroupState.waiting => Theme.of(context).colorScheme.tertiary, - SyncPlayGroupState.paused => Theme.of(context).colorScheme.secondary, - SyncPlayGroupState.playing => Theme.of(context).colorScheme.primary, - }; + final color = groupState.color(context); return AnimatedContainer( duration: const Duration(milliseconds: 200), padding: const EdgeInsets.all(6), decoration: BoxDecoration( - color: isProcessing - ? Theme.of(context).colorScheme.primaryContainer - : color.withValues(alpha: 0.2), + color: isProcessing ? Theme.of(context).colorScheme.primaryContainer : color.withValues(alpha: 0.2), shape: BoxShape.circle, - border: isProcessing - ? Border.all(color: Theme.of(context).colorScheme.primary, width: 2) - : null, + border: isProcessing ? Border.all(color: Theme.of(context).colorScheme.primary, width: 2) : null, ), child: isProcessing ? SizedBox( diff --git a/lib/widgets/syncplay/syncplay_extensions.dart b/lib/widgets/syncplay/syncplay_extensions.dart new file mode 100644 index 000000000..e3da24047 --- /dev/null +++ b/lib/widgets/syncplay/syncplay_extensions.dart @@ -0,0 +1,79 @@ +import 'package:flutter/material.dart'; +import 'package:iconsax_plus/iconsax_plus.dart'; + +import 'package:fladder/models/syncplay/syncplay_models.dart'; +import 'package:fladder/util/localization_helper.dart'; + +/// Extension on [SyncPlayGroupState] for badge/indicator icon and color. +extension SyncPlayGroupStateExtension on SyncPlayGroupState { + /// Returns (icon, color) for the current group state. + (IconData, Color) iconAndColor(BuildContext context) { + final scheme = Theme.of(context).colorScheme; + return switch (this) { + SyncPlayGroupState.idle => ( + IconsaxPlusLinear.pause_circle, + scheme.onSurfaceVariant, + ), + SyncPlayGroupState.waiting => ( + IconsaxPlusLinear.timer_1, + scheme.tertiary, + ), + SyncPlayGroupState.paused => ( + IconsaxPlusLinear.pause, + scheme.secondary, + ), + SyncPlayGroupState.playing => ( + IconsaxPlusLinear.play, + scheme.primary, + ), + }; + } + + /// Returns the color only (for compact indicator). + Color color(BuildContext context) { + final scheme = Theme.of(context).colorScheme; + return switch (this) { + SyncPlayGroupState.idle => scheme.onSurfaceVariant, + SyncPlayGroupState.waiting => scheme.tertiary, + SyncPlayGroupState.paused => scheme.secondary, + SyncPlayGroupState.playing => scheme.primary, + }; + } +} + +/// Extension for localized SyncPlay command processing label (command type string). +extension SyncPlayCommandLabelExtension on String? { + /// Returns the localized "Syncing..." text for this command type. + String syncPlayProcessingLabel(BuildContext context) { + return switch (this) { + 'Pause' => context.localized.syncPlaySyncingPause, + 'Unpause' => context.localized.syncPlaySyncingPlay, + 'Seek' => context.localized.syncPlaySyncingSeek, + 'Stop' => context.localized.syncPlayStopping, + _ => context.localized.syncPlaySyncing, + }; + } + + /// Returns the short command label for overlay (e.g. "Pausing", "Seeking"). + String syncPlayCommandOverlayLabel(BuildContext context) { + return switch (this) { + 'Pause' => context.localized.syncPlayCommandPausing, + 'Unpause' => context.localized.syncPlayCommandPlaying, + 'Seek' => context.localized.syncPlayCommandSeeking, + 'Stop' => context.localized.syncPlayCommandStopping, + _ => context.localized.syncPlayCommandSyncing, + }; + } + + /// Returns (icon, color) for the command overlay. + (IconData, Color) syncPlayCommandIconAndColor(BuildContext context) { + final scheme = Theme.of(context).colorScheme; + return switch (this) { + 'Pause' => (IconsaxPlusBold.pause, scheme.secondary), + 'Unpause' => (IconsaxPlusBold.play, scheme.primary), + 'Seek' => (IconsaxPlusBold.forward, scheme.tertiary), + 'Stop' => (IconsaxPlusBold.stop, scheme.error), + _ => (IconsaxPlusBold.refresh, scheme.primary), + }; + } +} diff --git a/lib/widgets/syncplay/syncplay_group_sheet.dart b/lib/widgets/syncplay/syncplay_group_sheet.dart index 54ceffb58..8cbb6c477 100644 --- a/lib/widgets/syncplay/syncplay_group_sheet.dart +++ b/lib/widgets/syncplay/syncplay_group_sheet.dart @@ -20,55 +20,30 @@ class SyncPlayGroupSheet extends ConsumerStatefulWidget { } class _SyncPlayGroupSheetState extends ConsumerState { - List? _groups; - bool _isLoading = true; - String? _error; - @override void initState() { super.initState(); - _loadGroups(); - } - - Future _loadGroups() async { - setState(() { - _isLoading = true; - _error = null; - }); - - try { - // Ensure we're connected first - await ref.read(syncPlayProvider.notifier).connect(); - final groups = await ref.read(syncPlayProvider.notifier).listGroups(); + // Defer so we don't modify a provider during the widget lifecycle (Riverpod disallows this). + WidgetsBinding.instance.addPostFrameCallback((_) { if (mounted) { - setState(() { - _groups = groups; - _isLoading = false; - }); + ref.read(syncPlayGroupsProvider.notifier).loadGroups(); } - } catch (e) { - if (mounted) { - setState(() { - _error = e.toString(); - _isLoading = false; - }); - } - } + }); } Future _createGroup() async { final name = await _showCreateGroupDialog(); if (name == null || name.isEmpty) return; - setState(() => _isLoading = true); + ref.read(syncPlayGroupsProvider.notifier).setLoading(true); final group = await ref.read(syncPlayProvider.notifier).createGroup(name); if (group != null && mounted) { fladderSnackbar(context, title: context.localized.syncPlayCreatedGroup(group.groupName ?? '')); Navigator.of(context).pop(); } else { - setState(() => _isLoading = false); if (mounted) { + ref.read(syncPlayGroupsProvider.notifier).setLoading(false); fladderSnackbar(context, title: context.localized.syncPlayFailedToCreateGroup); } } @@ -104,15 +79,15 @@ class _SyncPlayGroupSheetState extends ConsumerState { } Future _joinGroup(GroupInfoDto group) async { - setState(() => _isLoading = true); + ref.read(syncPlayGroupsProvider.notifier).setLoading(true); final success = await ref.read(syncPlayProvider.notifier).joinGroup(group.groupId ?? ''); if (success && mounted) { fladderSnackbar(context, title: context.localized.syncPlayJoinedGroup(group.groupName ?? '')); Navigator.of(context).pop(); } else { - setState(() => _isLoading = false); if (mounted) { + ref.read(syncPlayGroupsProvider.notifier).setLoading(false); fladderSnackbar(context, title: context.localized.syncPlayFailedToJoinGroup); } } @@ -129,6 +104,7 @@ class _SyncPlayGroupSheetState extends ConsumerState { @override Widget build(BuildContext context) { final syncPlayState = ref.watch(syncPlayProvider); + final groupsState = ref.watch(syncPlayGroupsProvider); return ConstrainedBox( constraints: BoxConstraints( @@ -195,7 +171,12 @@ class _SyncPlayGroupSheetState extends ConsumerState { // Content Flexible( - child: _buildContent(syncPlayState), + child: _SyncPlaySheetContent( + syncPlayState: syncPlayState, + groupsState: groupsState, + onCreateGroup: _createGroup, + onJoinGroup: _joinGroup, + ), ), ], ), @@ -203,15 +184,28 @@ class _SyncPlayGroupSheetState extends ConsumerState { ), ); } +} + +/// Content area of the SyncPlay group sheet (loading, error, empty, list, or active group). +class _SyncPlaySheetContent extends ConsumerWidget { + const _SyncPlaySheetContent({ + required this.syncPlayState, + required this.groupsState, + required this.onCreateGroup, + required this.onJoinGroup, + }); - Widget _buildContent(SyncPlayState syncPlayState) { - // If already in a group, show group info + final SyncPlayState syncPlayState; + final SyncPlayGroupsState groupsState; + final VoidCallback onCreateGroup; + final void Function(GroupInfoDto) onJoinGroup; + + @override + Widget build(BuildContext context, WidgetRef ref) { if (syncPlayState.isInGroup) { - return _buildActiveGroupView(syncPlayState); + return _ActiveGroupView(state: syncPlayState); } - - // Loading state - if (_isLoading) { + if (groupsState.isLoading) { return const Center( child: Padding( padding: EdgeInsets.all(32), @@ -219,9 +213,7 @@ class _SyncPlayGroupSheetState extends ConsumerState { ), ); } - - // Error state - if (_error != null) { + if (groupsState.error != null) { return Center( child: Padding( padding: const EdgeInsets.all(32), @@ -240,7 +232,7 @@ class _SyncPlayGroupSheetState extends ConsumerState { ), const SizedBox(height: 8), TextButton( - onPressed: _loadGroups, + onPressed: () => ref.read(syncPlayGroupsProvider.notifier).loadGroups(), child: Text(context.localized.retry), ), ], @@ -248,9 +240,7 @@ class _SyncPlayGroupSheetState extends ConsumerState { ), ); } - - // Empty state - if (_groups == null || _groups!.isEmpty) { + if (groupsState.groups == null || groupsState.groups!.isEmpty) { return Center( child: Padding( padding: const EdgeInsets.all(32), @@ -276,8 +266,8 @@ class _SyncPlayGroupSheetState extends ConsumerState { ), const SizedBox(height: 16), FilledButton.icon( - autofocus: true, // Focus for TV navigation - onPressed: _createGroup, + autofocus: true, + onPressed: onCreateGroup, icon: const Icon(IconsaxPlusLinear.add), label: Text(context.localized.syncPlayCreateGroupButton), ), @@ -286,24 +276,30 @@ class _SyncPlayGroupSheetState extends ConsumerState { ), ); } - - // Group list + final groups = groupsState.groups!; return ListView.builder( shrinkWrap: true, - itemCount: _groups!.length, + itemCount: groups.length, padding: const EdgeInsets.only(bottom: 16), itemBuilder: (context, index) { - final group = _groups![index]; + final group = groups[index]; return _GroupListTile( group: group, - onTap: () => _joinGroup(group), - autofocus: index == 0, // Focus first item for TV navigation + onTap: () => onJoinGroup(group), + autofocus: index == 0, ); }, ); } +} + +class _ActiveGroupView extends StatelessWidget { + const _ActiveGroupView({required this.state}); - Widget _buildActiveGroupView(SyncPlayState state) { + final SyncPlayState state; + + @override + Widget build(BuildContext context) { return Padding( padding: const EdgeInsets.all(16), child: Column( @@ -346,13 +342,8 @@ class _SyncPlayGroupSheetState extends ConsumerState { ), const SizedBox(height: 16), - - // State indicator - _buildStateIndicator(state), - + _StateIndicator(state: state), const SizedBox(height: 16), - - // Instructions Text( context.localized.syncPlayInstructions, style: Theme.of(context).textTheme.bodyMedium?.copyWith( @@ -363,8 +354,15 @@ class _SyncPlayGroupSheetState extends ConsumerState { ), ); } +} + +class _StateIndicator extends StatelessWidget { + const _StateIndicator({required this.state}); - Widget _buildStateIndicator(SyncPlayState state) { + final SyncPlayState state; + + @override + Widget build(BuildContext context) { final (icon, label, color) = switch (state.groupState) { SyncPlayGroupState.idle => ( IconsaxPlusLinear.pause_circle, @@ -387,7 +385,6 @@ class _SyncPlayGroupSheetState extends ConsumerState { Theme.of(context).colorScheme.primary, ), }; - return Container( padding: const EdgeInsets.symmetric(horizontal: 12, vertical: 8), decoration: BoxDecoration( diff --git a/lib/wrappers/players/native_player.dart b/lib/wrappers/players/native_player.dart index a2ac5cf27..ac4a28240 100644 --- a/lib/wrappers/players/native_player.dart +++ b/lib/wrappers/players/native_player.dart @@ -106,6 +106,8 @@ class NativePlayer extends BasePlayer implements VideoPlayerListenerCallback { position: Duration(milliseconds: state.position), buffer: Duration(milliseconds: state.buffered), buffering: state.buffering, + changeSource: state.changeSource, + updateChangeSource: true, ); _stateController.add(lastState); } diff --git a/lib/wrappers/players/player_states.dart b/lib/wrappers/players/player_states.dart index a73e4f640..4bf3a4049 100644 --- a/lib/wrappers/players/player_states.dart +++ b/lib/wrappers/players/player_states.dart @@ -1,3 +1,5 @@ +import 'package:fladder/src/video_player_helper.g.dart' show PlaybackChangeSource; + class PlayerState { bool playing; bool completed; @@ -8,6 +10,9 @@ class PlayerState { bool buffering; Duration buffer; + /// Set when state came from native player (for SyncPlay: infer user actions from stream). + PlaybackChangeSource? changeSource; + PlayerState({ this.playing = false, this.completed = false, @@ -17,6 +22,7 @@ class PlayerState { this.rate = 1.0, this.buffering = true, this.buffer = Duration.zero, + this.changeSource, }); PlayerState update({ @@ -28,6 +34,8 @@ class PlayerState { double? volume, double? rate, Duration? buffer, + PlaybackChangeSource? changeSource, + bool updateChangeSource = false, }) { if (playing != null) this.playing = playing; if (completed != null) this.completed = completed; @@ -37,6 +45,7 @@ class PlayerState { if (volume != null) this.volume = volume; if (rate != null) this.rate = rate; if (buffer != null) this.buffer = buffer; + if (updateChangeSource) this.changeSource = changeSource; return this; } } diff --git a/pigeons/video_player.dart b/pigeons/video_player.dart index c8d153179..bea11f339 100644 --- a/pigeons/video_player.dart +++ b/pigeons/video_player.dart @@ -4,9 +4,8 @@ import 'package:pigeon/pigeon.dart'; PigeonOptions( dartOut: 'lib/src/video_player_helper.g.dart', dartOptions: DartOptions(), - kotlinOut: - 'android/app/src/main/kotlin/nl/jknaapen/fladder/api/VideoPlayerHelper.g.kt', - kotlinOptions: KotlinOptions(), + kotlinOut: 'android/app/src/main/kotlin/nl/jknaapen/fladder/api/VideoPlayerHelper.g.kt', + kotlinOptions: KotlinOptions(package: 'nl.jknaapen.fladder.api'), dartPackageName: 'nl_jknaapen_fladder.video', ), ) @@ -219,6 +218,18 @@ abstract class VideoPlayerApi { void setSyncPlayCommandState(bool processing, String? commandType); } +/// Source of the last playback state change (for SyncPlay: infer user actions from stream). +enum PlaybackChangeSource { + /// No specific source (e.g. periodic update, buffering). + none, + + /// User tapped play/pause/seek on native; Flutter should send SyncPlay if active. + user, + + /// Change was caused by applying a SyncPlay command; do not send again. + syncplay, +} + class PlaybackState { //Milliseconds final int position; @@ -231,6 +242,9 @@ class PlaybackState { final bool completed; final bool failed; + /// When set, indicates who caused this state update (for SyncPlay inference). + final PlaybackChangeSource? changeSource; + const PlaybackState({ required this.position, required this.buffered, @@ -239,6 +253,7 @@ class PlaybackState { required this.buffering, required this.completed, required this.failed, + this.changeSource, }); } diff --git a/pubspec.lock b/pubspec.lock index c92028756..43bb9f9e7 100644 --- a/pubspec.lock +++ b/pubspec.lock @@ -517,10 +517,10 @@ packages: dependency: "direct main" description: name: drift_sync - sha256: f358c39bdfa474c020ddd6022ef91540d30b21ef0faab6be331f1e0349e585e5 + sha256: "2ddb41cfe92a0d644ec2cb9cd25a6273bf0940693dddb9411c2c350f5f1cdb3f" url: "https://pub.dev" source: hosted - version: "0.14.0" + version: "0.14.1" dynamic_color: dependency: "direct main" description: diff --git a/pubspec.yaml b/pubspec.yaml index 258faf9a6..89932e766 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -46,6 +46,7 @@ dependencies: flutter_cache_manager: ^3.4.1 connectivity_plus: ^7.0.0 punycoder: ^0.2.2 + web_socket_channel: ^3.0.3 # State Management flutter_riverpod: ^2.6.1 @@ -135,7 +136,6 @@ dependencies: dart_mappable: ^4.6.0 flutter_native_splash: ^2.4.7 macos_window_utils: ^1.9.0 - web_socket_channel: ^3.0.3 # Fix cjk font rendering issue on Windows chinese_font_library: ^1.2.0 From c697e8cb4dcbbd9dd75b393487174024bfa8d934 Mon Sep 17 00:00:00 2001 From: Filip Iricanin Date: Sun, 22 Feb 2026 12:03:49 +0100 Subject: [PATCH 17/25] fix(*): merge conflicts --- lib/main.dart | 28 +- lib/models/account_model.freezed.dart | 148 ++---- lib/models/account_model.g.dart | 44 +- ...last_seen_notifications_model.freezed.dart | 81 ++- .../last_seen_notifications_model.g.dart | 20 +- lib/models/notification_model.freezed.dart | 24 +- lib/models/notification_model.g.dart | 6 +- .../client_settings_model.freezed.dart | 45 +- .../settings/client_settings_model.g.dart | 52 +- ...rol_device_discovery_provider.freezed.dart | 28 +- .../control_device_discovery_provider.g.dart | 14 +- .../control_livetv_provider.freezed.dart | 18 +- .../control_livetv_provider.g.dart | 7 +- .../control_tuner_edit_provider.freezed.dart | 21 +- .../control_tuner_edit_provider.g.dart | 32 +- .../video_player_settings_provider.dart | 2 +- .../handlers/syncplay_message_handler.dart | 6 +- lib/providers/video_player_provider.dart | 45 +- lib/routes/auto_router.gr.dart | 82 +-- .../video_player_speed_indicator.dart | 4 +- .../video_player/video_player_controls.dart | 18 +- lib/seerr/seerr_models.g.dart | 476 ++++++------------ lib/src/battery_optimization_pigeon.g.dart | 13 +- lib/src/video_player_helper.g.dart | 14 +- lib/util/application_info.freezed.dart | 27 +- .../item_base_model/play_item_helpers.dart | 47 +- .../components/side_navigation_bar.dart | 8 +- .../syncplay/syncplay_group_sheet.dart | 12 +- 28 files changed, 447 insertions(+), 875 deletions(-) diff --git a/lib/main.dart b/lib/main.dart index aae6f9845..14c67b056 100644 --- a/lib/main.dart +++ b/lib/main.dart @@ -4,23 +4,9 @@ import 'dart:developer'; import 'dart:io'; import 'dart:ui'; -import 'package:flutter/foundation.dart'; -import 'package:flutter/material.dart'; -import 'package:flutter/services.dart'; - import 'package:auto_route/auto_route.dart' show DeepLink; import 'package:desktop_multi_window/desktop_multi_window.dart'; import 'package:dynamic_color/dynamic_color.dart'; -import 'package:flutter_riverpod/flutter_riverpod.dart'; -import 'package:macos_window_utils/window_manipulator.dart'; -import 'package:package_info_plus/package_info_plus.dart'; -import 'package:path_provider/path_provider.dart'; -import 'package:shared_preferences/shared_preferences.dart'; -import 'package:smtc_windows/smtc_windows.dart' if (dart.library.html) 'package:fladder/stubs/web/smtc_web.dart'; -import 'package:universal_html/html.dart' as html; -import 'package:window_manager/window_manager.dart'; -import 'package:workmanager/workmanager.dart'; - import 'package:fladder/background/update_notifications_worker.dart' as update_worker; import 'package:fladder/l10n/generated/app_localizations.dart'; import 'package:fladder/localization_delegates.dart'; @@ -29,8 +15,8 @@ import 'package:fladder/models/account_model.dart'; import 'package:fladder/models/settings/arguments_model.dart'; import 'package:fladder/providers/arguments_provider.dart'; import 'package:fladder/providers/crash_log_provider.dart'; -import 'package:fladder/providers/settings/client_settings_provider.dart'; import 'package:fladder/providers/router_provider.dart'; +import 'package:fladder/providers/settings/client_settings_provider.dart'; import 'package:fladder/providers/shared_provider.dart'; import 'package:fladder/providers/sync_provider.dart'; import 'package:fladder/providers/update_notifications_provider.dart'; @@ -54,6 +40,18 @@ import 'package:fladder/util/svg_utils.dart'; import 'package:fladder/util/themes_data.dart'; import 'package:fladder/util/window_helper.dart'; import 'package:fladder/widgets/media_query_scaler.dart'; +import 'package:flutter/foundation.dart'; +import 'package:flutter/material.dart'; +import 'package:flutter/services.dart'; +import 'package:flutter_riverpod/flutter_riverpod.dart'; +import 'package:macos_window_utils/window_manipulator.dart'; +import 'package:package_info_plus/package_info_plus.dart'; +import 'package:path_provider/path_provider.dart'; +import 'package:shared_preferences/shared_preferences.dart'; +import 'package:smtc_windows/smtc_windows.dart' if (dart.library.html) 'package:fladder/stubs/web/smtc_web.dart'; +import 'package:universal_html/html.dart' as html; +import 'package:window_manager/window_manager.dart'; +import 'package:workmanager/workmanager.dart'; bool get _isDesktop { if (kIsWeb) return false; diff --git a/lib/models/account_model.freezed.dart b/lib/models/account_model.freezed.dart index dd38a09ea..c382cb61f 100644 --- a/lib/models/account_model.freezed.dart +++ b/lib/models/account_model.freezed.dart @@ -48,8 +48,7 @@ mixin _$AccountModel implements DiagnosticableTreeMixin { @JsonKey(includeFromJson: false, includeToJson: false) @pragma('vm:prefer-inline') $AccountModelCopyWith get copyWith => - _$AccountModelCopyWithImpl( - this as AccountModel, _$identity); + _$AccountModelCopyWithImpl(this as AccountModel, _$identity); /// Serializes this AccountModel to a JSON map. Map toJson(); @@ -71,8 +70,7 @@ mixin _$AccountModel implements DiagnosticableTreeMixin { ..add(DiagnosticsProperty('searchQueryHistory', searchQueryHistory)) ..add(DiagnosticsProperty('quickConnectState', quickConnectState)) ..add(DiagnosticsProperty('libraryFilters', libraryFilters)) - ..add(DiagnosticsProperty( - 'updateNotificationsEnabled', updateNotificationsEnabled)) + ..add(DiagnosticsProperty('updateNotificationsEnabled', updateNotificationsEnabled)) ..add(DiagnosticsProperty('seerrRequestsEnabled', seerrRequestsEnabled)) ..add(DiagnosticsProperty('includeHiddenViews', includeHiddenViews)) ..add(DiagnosticsProperty('policy', policy)) @@ -91,9 +89,7 @@ mixin _$AccountModel implements DiagnosticableTreeMixin { /// @nodoc abstract mixin class $AccountModelCopyWith<$Res> { - factory $AccountModelCopyWith( - AccountModel value, $Res Function(AccountModel) _then) = - _$AccountModelCopyWithImpl; + factory $AccountModelCopyWith(AccountModel value, $Res Function(AccountModel) _then) = _$AccountModelCopyWithImpl; @useResult $Res call( {String name, @@ -113,13 +109,10 @@ abstract mixin class $AccountModelCopyWith<$Res> { bool seerrRequestsEnabled, bool includeHiddenViews, @JsonKey(includeFromJson: false, includeToJson: false) UserPolicy? policy, - @JsonKey(includeFromJson: false, includeToJson: false) - ServerConfiguration? serverConfiguration, - @JsonKey(includeFromJson: false, includeToJson: false) - UserConfiguration? userConfiguration, + @JsonKey(includeFromJson: false, includeToJson: false) ServerConfiguration? serverConfiguration, + @JsonKey(includeFromJson: false, includeToJson: false) UserConfiguration? userConfiguration, @JsonKey(includeFromJson: false, includeToJson: false) bool? hasPassword, - @JsonKey(includeFromJson: false, includeToJson: false) - bool? hasConfiguredPassword, + @JsonKey(includeFromJson: false, includeToJson: false) bool? hasConfiguredPassword, UserSettings? userSettings}); $CredentialsModelCopyWith<$Res> get credentials; @@ -273,8 +266,7 @@ class _$AccountModelCopyWithImpl<$Res> implements $AccountModelCopyWith<$Res> { return null; } - return $SeerrCredentialsModelCopyWith<$Res>(_self.seerrCredentials!, - (value) { + return $SeerrCredentialsModelCopyWith<$Res>(_self.seerrCredentials!, (value) { return _then(_self.copyWith(seerrCredentials: value)); }); } @@ -404,16 +396,11 @@ extension AccountModelPatterns on AccountModel { bool updateNotificationsEnabled, bool seerrRequestsEnabled, bool includeHiddenViews, - @JsonKey(includeFromJson: false, includeToJson: false) - UserPolicy? policy, - @JsonKey(includeFromJson: false, includeToJson: false) - ServerConfiguration? serverConfiguration, - @JsonKey(includeFromJson: false, includeToJson: false) - UserConfiguration? userConfiguration, - @JsonKey(includeFromJson: false, includeToJson: false) - bool? hasPassword, - @JsonKey(includeFromJson: false, includeToJson: false) - bool? hasConfiguredPassword, + @JsonKey(includeFromJson: false, includeToJson: false) UserPolicy? policy, + @JsonKey(includeFromJson: false, includeToJson: false) ServerConfiguration? serverConfiguration, + @JsonKey(includeFromJson: false, includeToJson: false) UserConfiguration? userConfiguration, + @JsonKey(includeFromJson: false, includeToJson: false) bool? hasPassword, + @JsonKey(includeFromJson: false, includeToJson: false) bool? hasConfiguredPassword, UserSettings? userSettings)? $default, { required TResult orElse(), @@ -481,16 +468,11 @@ extension AccountModelPatterns on AccountModel { bool updateNotificationsEnabled, bool seerrRequestsEnabled, bool includeHiddenViews, - @JsonKey(includeFromJson: false, includeToJson: false) - UserPolicy? policy, - @JsonKey(includeFromJson: false, includeToJson: false) - ServerConfiguration? serverConfiguration, - @JsonKey(includeFromJson: false, includeToJson: false) - UserConfiguration? userConfiguration, - @JsonKey(includeFromJson: false, includeToJson: false) - bool? hasPassword, - @JsonKey(includeFromJson: false, includeToJson: false) - bool? hasConfiguredPassword, + @JsonKey(includeFromJson: false, includeToJson: false) UserPolicy? policy, + @JsonKey(includeFromJson: false, includeToJson: false) ServerConfiguration? serverConfiguration, + @JsonKey(includeFromJson: false, includeToJson: false) UserConfiguration? userConfiguration, + @JsonKey(includeFromJson: false, includeToJson: false) bool? hasPassword, + @JsonKey(includeFromJson: false, includeToJson: false) bool? hasConfiguredPassword, UserSettings? userSettings) $default, ) { @@ -556,16 +538,11 @@ extension AccountModelPatterns on AccountModel { bool updateNotificationsEnabled, bool seerrRequestsEnabled, bool includeHiddenViews, - @JsonKey(includeFromJson: false, includeToJson: false) - UserPolicy? policy, - @JsonKey(includeFromJson: false, includeToJson: false) - ServerConfiguration? serverConfiguration, - @JsonKey(includeFromJson: false, includeToJson: false) - UserConfiguration? userConfiguration, - @JsonKey(includeFromJson: false, includeToJson: false) - bool? hasPassword, - @JsonKey(includeFromJson: false, includeToJson: false) - bool? hasConfiguredPassword, + @JsonKey(includeFromJson: false, includeToJson: false) UserPolicy? policy, + @JsonKey(includeFromJson: false, includeToJson: false) ServerConfiguration? serverConfiguration, + @JsonKey(includeFromJson: false, includeToJson: false) UserConfiguration? userConfiguration, + @JsonKey(includeFromJson: false, includeToJson: false) bool? hasPassword, + @JsonKey(includeFromJson: false, includeToJson: false) bool? hasConfiguredPassword, UserSettings? userSettings)? $default, ) { @@ -622,20 +599,16 @@ class _AccountModel extends AccountModel with DiagnosticableTreeMixin { this.seerrRequestsEnabled = false, this.includeHiddenViews = false, @JsonKey(includeFromJson: false, includeToJson: false) this.policy, - @JsonKey(includeFromJson: false, includeToJson: false) - this.serverConfiguration, - @JsonKey(includeFromJson: false, includeToJson: false) - this.userConfiguration, + @JsonKey(includeFromJson: false, includeToJson: false) this.serverConfiguration, + @JsonKey(includeFromJson: false, includeToJson: false) this.userConfiguration, @JsonKey(includeFromJson: false, includeToJson: false) this.hasPassword, - @JsonKey(includeFromJson: false, includeToJson: false) - this.hasConfiguredPassword, + @JsonKey(includeFromJson: false, includeToJson: false) this.hasConfiguredPassword, this.userSettings}) : _latestItemsExcludes = latestItemsExcludes, _searchQueryHistory = searchQueryHistory, _libraryFilters = libraryFilters, super._(); - factory _AccountModel.fromJson(Map json) => - _$AccountModelFromJson(json); + factory _AccountModel.fromJson(Map json) => _$AccountModelFromJson(json); @override final String name; @@ -663,8 +636,7 @@ class _AccountModel extends AccountModel with DiagnosticableTreeMixin { @override @JsonKey() List get latestItemsExcludes { - if (_latestItemsExcludes is EqualUnmodifiableListView) - return _latestItemsExcludes; + if (_latestItemsExcludes is EqualUnmodifiableListView) return _latestItemsExcludes; // ignore: implicit_dynamic_type return EqualUnmodifiableListView(_latestItemsExcludes); } @@ -673,8 +645,7 @@ class _AccountModel extends AccountModel with DiagnosticableTreeMixin { @override @JsonKey() List get searchQueryHistory { - if (_searchQueryHistory is EqualUnmodifiableListView) - return _searchQueryHistory; + if (_searchQueryHistory is EqualUnmodifiableListView) return _searchQueryHistory; // ignore: implicit_dynamic_type return EqualUnmodifiableListView(_searchQueryHistory); } @@ -724,8 +695,7 @@ class _AccountModel extends AccountModel with DiagnosticableTreeMixin { @override @JsonKey(includeFromJson: false, includeToJson: false) @pragma('vm:prefer-inline') - _$AccountModelCopyWith<_AccountModel> get copyWith => - __$AccountModelCopyWithImpl<_AccountModel>(this, _$identity); + _$AccountModelCopyWith<_AccountModel> get copyWith => __$AccountModelCopyWithImpl<_AccountModel>(this, _$identity); @override Map toJson() { @@ -751,8 +721,7 @@ class _AccountModel extends AccountModel with DiagnosticableTreeMixin { ..add(DiagnosticsProperty('searchQueryHistory', searchQueryHistory)) ..add(DiagnosticsProperty('quickConnectState', quickConnectState)) ..add(DiagnosticsProperty('libraryFilters', libraryFilters)) - ..add(DiagnosticsProperty( - 'updateNotificationsEnabled', updateNotificationsEnabled)) + ..add(DiagnosticsProperty('updateNotificationsEnabled', updateNotificationsEnabled)) ..add(DiagnosticsProperty('seerrRequestsEnabled', seerrRequestsEnabled)) ..add(DiagnosticsProperty('includeHiddenViews', includeHiddenViews)) ..add(DiagnosticsProperty('policy', policy)) @@ -770,11 +739,8 @@ class _AccountModel extends AccountModel with DiagnosticableTreeMixin { } /// @nodoc -abstract mixin class _$AccountModelCopyWith<$Res> - implements $AccountModelCopyWith<$Res> { - factory _$AccountModelCopyWith( - _AccountModel value, $Res Function(_AccountModel) _then) = - __$AccountModelCopyWithImpl; +abstract mixin class _$AccountModelCopyWith<$Res> implements $AccountModelCopyWith<$Res> { + factory _$AccountModelCopyWith(_AccountModel value, $Res Function(_AccountModel) _then) = __$AccountModelCopyWithImpl; @override @useResult $Res call( @@ -795,13 +761,10 @@ abstract mixin class _$AccountModelCopyWith<$Res> bool seerrRequestsEnabled, bool includeHiddenViews, @JsonKey(includeFromJson: false, includeToJson: false) UserPolicy? policy, - @JsonKey(includeFromJson: false, includeToJson: false) - ServerConfiguration? serverConfiguration, - @JsonKey(includeFromJson: false, includeToJson: false) - UserConfiguration? userConfiguration, + @JsonKey(includeFromJson: false, includeToJson: false) ServerConfiguration? serverConfiguration, + @JsonKey(includeFromJson: false, includeToJson: false) UserConfiguration? userConfiguration, @JsonKey(includeFromJson: false, includeToJson: false) bool? hasPassword, - @JsonKey(includeFromJson: false, includeToJson: false) - bool? hasConfiguredPassword, + @JsonKey(includeFromJson: false, includeToJson: false) bool? hasConfiguredPassword, UserSettings? userSettings}); @override @@ -813,8 +776,7 @@ abstract mixin class _$AccountModelCopyWith<$Res> } /// @nodoc -class __$AccountModelCopyWithImpl<$Res> - implements _$AccountModelCopyWith<$Res> { +class __$AccountModelCopyWithImpl<$Res> implements _$AccountModelCopyWith<$Res> { __$AccountModelCopyWithImpl(this._self, this._then); final _AccountModel _self; @@ -959,8 +921,7 @@ class __$AccountModelCopyWithImpl<$Res> return null; } - return $SeerrCredentialsModelCopyWith<$Res>(_self.seerrCredentials!, - (value) { + return $SeerrCredentialsModelCopyWith<$Res>(_self.seerrCredentials!, (value) { return _then(_self.copyWith(seerrCredentials: value)); }); } @@ -990,8 +951,7 @@ mixin _$UserSettings implements DiagnosticableTreeMixin { @JsonKey(includeFromJson: false, includeToJson: false) @pragma('vm:prefer-inline') $UserSettingsCopyWith get copyWith => - _$UserSettingsCopyWithImpl( - this as UserSettings, _$identity); + _$UserSettingsCopyWithImpl(this as UserSettings, _$identity); /// Serializes this UserSettings to a JSON map. Map toJson(); @@ -1012,9 +972,7 @@ mixin _$UserSettings implements DiagnosticableTreeMixin { /// @nodoc abstract mixin class $UserSettingsCopyWith<$Res> { - factory $UserSettingsCopyWith( - UserSettings value, $Res Function(UserSettings) _then) = - _$UserSettingsCopyWithImpl; + factory $UserSettingsCopyWith(UserSettings value, $Res Function(UserSettings) _then) = _$UserSettingsCopyWithImpl; @useResult $Res call({Duration skipForwardDuration, Duration skipBackDuration}); } @@ -1140,8 +1098,7 @@ extension UserSettingsPatterns on UserSettings { @optionalTypeArgs TResult maybeWhen( - TResult Function(Duration skipForwardDuration, Duration skipBackDuration)? - $default, { + TResult Function(Duration skipForwardDuration, Duration skipBackDuration)? $default, { required TResult orElse(), }) { final _that = this; @@ -1168,8 +1125,7 @@ extension UserSettingsPatterns on UserSettings { @optionalTypeArgs TResult when( - TResult Function(Duration skipForwardDuration, Duration skipBackDuration) - $default, + TResult Function(Duration skipForwardDuration, Duration skipBackDuration) $default, ) { final _that = this; switch (_that) { @@ -1194,8 +1150,7 @@ extension UserSettingsPatterns on UserSettings { @optionalTypeArgs TResult? whenOrNull( - TResult? Function(Duration skipForwardDuration, Duration skipBackDuration)? - $default, + TResult? Function(Duration skipForwardDuration, Duration skipBackDuration)? $default, ) { final _that = this; switch (_that) { @@ -1211,10 +1166,8 @@ extension UserSettingsPatterns on UserSettings { @JsonSerializable() class _UserSettings with DiagnosticableTreeMixin implements UserSettings { _UserSettings( - {this.skipForwardDuration = const Duration(seconds: 30), - this.skipBackDuration = const Duration(seconds: 10)}); - factory _UserSettings.fromJson(Map json) => - _$UserSettingsFromJson(json); + {this.skipForwardDuration = const Duration(seconds: 30), this.skipBackDuration = const Duration(seconds: 10)}); + factory _UserSettings.fromJson(Map json) => _$UserSettingsFromJson(json); @override @JsonKey() @@ -1228,8 +1181,7 @@ class _UserSettings with DiagnosticableTreeMixin implements UserSettings { @override @JsonKey(includeFromJson: false, includeToJson: false) @pragma('vm:prefer-inline') - _$UserSettingsCopyWith<_UserSettings> get copyWith => - __$UserSettingsCopyWithImpl<_UserSettings>(this, _$identity); + _$UserSettingsCopyWith<_UserSettings> get copyWith => __$UserSettingsCopyWithImpl<_UserSettings>(this, _$identity); @override Map toJson() { @@ -1253,19 +1205,15 @@ class _UserSettings with DiagnosticableTreeMixin implements UserSettings { } /// @nodoc -abstract mixin class _$UserSettingsCopyWith<$Res> - implements $UserSettingsCopyWith<$Res> { - factory _$UserSettingsCopyWith( - _UserSettings value, $Res Function(_UserSettings) _then) = - __$UserSettingsCopyWithImpl; +abstract mixin class _$UserSettingsCopyWith<$Res> implements $UserSettingsCopyWith<$Res> { + factory _$UserSettingsCopyWith(_UserSettings value, $Res Function(_UserSettings) _then) = __$UserSettingsCopyWithImpl; @override @useResult $Res call({Duration skipForwardDuration, Duration skipBackDuration}); } /// @nodoc -class __$UserSettingsCopyWithImpl<$Res> - implements _$UserSettingsCopyWith<$Res> { +class __$UserSettingsCopyWithImpl<$Res> implements _$UserSettingsCopyWith<$Res> { __$UserSettingsCopyWithImpl(this._self, this._then); final _UserSettings _self; diff --git a/lib/models/account_model.g.dart b/lib/models/account_model.g.dart index 502f1044e..9e8113d5c 100644 --- a/lib/models/account_model.g.dart +++ b/lib/models/account_model.g.dart @@ -6,47 +6,34 @@ part of 'account_model.dart'; // JsonSerializableGenerator // ************************************************************************** -_AccountModel _$AccountModelFromJson(Map json) => - _AccountModel( +_AccountModel _$AccountModelFromJson(Map json) => _AccountModel( name: json['name'] as String, id: json['id'] as String, avatar: json['avatar'] as String, lastUsed: DateTime.parse(json['lastUsed'] as String), - authMethod: - $enumDecodeNullable(_$AuthenticationEnumMap, json['authMethod']) ?? - Authentication.autoLogin, + authMethod: $enumDecodeNullable(_$AuthenticationEnumMap, json['authMethod']) ?? Authentication.autoLogin, askForAuthOnLaunch: json['askForAuthOnLaunch'] as bool? ?? false, localPin: json['localPin'] as String? ?? "", credentials: const CredentialsConverter().fromJson(json['credentials']), seerrCredentials: json['seerrCredentials'] == null ? null - : SeerrCredentialsModel.fromJson( - json['seerrCredentials'] as Map), - latestItemsExcludes: (json['latestItemsExcludes'] as List?) - ?.map((e) => e as String) - .toList() ?? - const [], - searchQueryHistory: (json['searchQueryHistory'] as List?) - ?.map((e) => e as String) - .toList() ?? - const [], + : SeerrCredentialsModel.fromJson(json['seerrCredentials'] as Map), + latestItemsExcludes: + (json['latestItemsExcludes'] as List?)?.map((e) => e as String).toList() ?? const [], + searchQueryHistory: (json['searchQueryHistory'] as List?)?.map((e) => e as String).toList() ?? const [], quickConnectState: json['quickConnectState'] as bool? ?? false, libraryFilters: (json['libraryFilters'] as List?) - ?.map((e) => - LibraryFiltersModel.fromJson(e as Map)) + ?.map((e) => LibraryFiltersModel.fromJson(e as Map)) .toList() ?? const [], - updateNotificationsEnabled: - json['updateNotificationsEnabled'] as bool? ?? false, + updateNotificationsEnabled: json['updateNotificationsEnabled'] as bool? ?? false, seerrRequestsEnabled: json['seerrRequestsEnabled'] as bool? ?? false, includeHiddenViews: json['includeHiddenViews'] as bool? ?? false, - userSettings: json['userSettings'] == null - ? null - : UserSettings.fromJson(json['userSettings'] as Map), + userSettings: + json['userSettings'] == null ? null : UserSettings.fromJson(json['userSettings'] as Map), ); -Map _$AccountModelToJson(_AccountModel instance) => - { +Map _$AccountModelToJson(_AccountModel instance) => { 'name': instance.name, 'id': instance.id, 'avatar': instance.avatar, @@ -73,19 +60,16 @@ const _$AuthenticationEnumMap = { Authentication.none: 'none', }; -_UserSettings _$UserSettingsFromJson(Map json) => - _UserSettings( +_UserSettings _$UserSettingsFromJson(Map json) => _UserSettings( skipForwardDuration: json['skipForwardDuration'] == null ? const Duration(seconds: 30) - : Duration( - microseconds: (json['skipForwardDuration'] as num).toInt()), + : Duration(microseconds: (json['skipForwardDuration'] as num).toInt()), skipBackDuration: json['skipBackDuration'] == null ? const Duration(seconds: 10) : Duration(microseconds: (json['skipBackDuration'] as num).toInt()), ); -Map _$UserSettingsToJson(_UserSettings instance) => - { +Map _$UserSettingsToJson(_UserSettings instance) => { 'skipForwardDuration': instance.skipForwardDuration.inMicroseconds, 'skipBackDuration': instance.skipBackDuration.inMicroseconds, }; diff --git a/lib/models/last_seen_notifications_model.freezed.dart b/lib/models/last_seen_notifications_model.freezed.dart index b76771f8c..45361488e 100644 --- a/lib/models/last_seen_notifications_model.freezed.dart +++ b/lib/models/last_seen_notifications_model.freezed.dart @@ -21,10 +21,9 @@ mixin _$LastSeenNotificationsModel { /// with the given fields replaced by the non-null parameter values. @JsonKey(includeFromJson: false, includeToJson: false) @pragma('vm:prefer-inline') - $LastSeenNotificationsModelCopyWith - get copyWith => - _$LastSeenNotificationsModelCopyWithImpl( - this as LastSeenNotificationsModel, _$identity); + $LastSeenNotificationsModelCopyWith get copyWith => + _$LastSeenNotificationsModelCopyWithImpl( + this as LastSeenNotificationsModel, _$identity); /// Serializes this LastSeenNotificationsModel to a JSON map. Map toJson(); @@ -37,16 +36,15 @@ mixin _$LastSeenNotificationsModel { /// @nodoc abstract mixin class $LastSeenNotificationsModelCopyWith<$Res> { - factory $LastSeenNotificationsModelCopyWith(LastSeenNotificationsModel value, - $Res Function(LastSeenNotificationsModel) _then) = + factory $LastSeenNotificationsModelCopyWith( + LastSeenNotificationsModel value, $Res Function(LastSeenNotificationsModel) _then) = _$LastSeenNotificationsModelCopyWithImpl; @useResult $Res call({List lastSeen, DateTime? updatedAt}); } /// @nodoc -class _$LastSeenNotificationsModelCopyWithImpl<$Res> - implements $LastSeenNotificationsModelCopyWith<$Res> { +class _$LastSeenNotificationsModelCopyWithImpl<$Res> implements $LastSeenNotificationsModelCopyWith<$Res> { _$LastSeenNotificationsModelCopyWithImpl(this._self, this._then); final LastSeenNotificationsModel _self; @@ -166,8 +164,7 @@ extension LastSeenNotificationsModelPatterns on LastSeenNotificationsModel { @optionalTypeArgs TResult maybeWhen( - TResult Function(List lastSeen, DateTime? updatedAt)? - $default, { + TResult Function(List lastSeen, DateTime? updatedAt)? $default, { required TResult orElse(), }) { final _that = this; @@ -194,8 +191,7 @@ extension LastSeenNotificationsModelPatterns on LastSeenNotificationsModel { @optionalTypeArgs TResult when( - TResult Function(List lastSeen, DateTime? updatedAt) - $default, + TResult Function(List lastSeen, DateTime? updatedAt) $default, ) { final _that = this; switch (_that) { @@ -220,8 +216,7 @@ extension LastSeenNotificationsModelPatterns on LastSeenNotificationsModel { @optionalTypeArgs TResult? whenOrNull( - TResult? Function(List lastSeen, DateTime? updatedAt)? - $default, + TResult? Function(List lastSeen, DateTime? updatedAt)? $default, ) { final _that = this; switch (_that) { @@ -236,12 +231,10 @@ extension LastSeenNotificationsModelPatterns on LastSeenNotificationsModel { /// @nodoc @JsonSerializable() class _LastSeenNotificationsModel extends LastSeenNotificationsModel { - const _LastSeenNotificationsModel( - {final List lastSeen = const [], this.updatedAt}) + const _LastSeenNotificationsModel({final List lastSeen = const [], this.updatedAt}) : _lastSeen = lastSeen, super._(); - factory _LastSeenNotificationsModel.fromJson(Map json) => - _$LastSeenNotificationsModelFromJson(json); + factory _LastSeenNotificationsModel.fromJson(Map json) => _$LastSeenNotificationsModelFromJson(json); final List _lastSeen; @override @@ -260,9 +253,8 @@ class _LastSeenNotificationsModel extends LastSeenNotificationsModel { @override @JsonKey(includeFromJson: false, includeToJson: false) @pragma('vm:prefer-inline') - _$LastSeenNotificationsModelCopyWith<_LastSeenNotificationsModel> - get copyWith => __$LastSeenNotificationsModelCopyWithImpl< - _LastSeenNotificationsModel>(this, _$identity); + _$LastSeenNotificationsModelCopyWith<_LastSeenNotificationsModel> get copyWith => + __$LastSeenNotificationsModelCopyWithImpl<_LastSeenNotificationsModel>(this, _$identity); @override Map toJson() { @@ -278,11 +270,9 @@ class _LastSeenNotificationsModel extends LastSeenNotificationsModel { } /// @nodoc -abstract mixin class _$LastSeenNotificationsModelCopyWith<$Res> - implements $LastSeenNotificationsModelCopyWith<$Res> { +abstract mixin class _$LastSeenNotificationsModelCopyWith<$Res> implements $LastSeenNotificationsModelCopyWith<$Res> { factory _$LastSeenNotificationsModelCopyWith( - _LastSeenNotificationsModel value, - $Res Function(_LastSeenNotificationsModel) _then) = + _LastSeenNotificationsModel value, $Res Function(_LastSeenNotificationsModel) _then) = __$LastSeenNotificationsModelCopyWithImpl; @override @useResult @@ -290,8 +280,7 @@ abstract mixin class _$LastSeenNotificationsModelCopyWith<$Res> } /// @nodoc -class __$LastSeenNotificationsModelCopyWithImpl<$Res> - implements _$LastSeenNotificationsModelCopyWith<$Res> { +class __$LastSeenNotificationsModelCopyWithImpl<$Res> implements _$LastSeenNotificationsModelCopyWith<$Res> { __$LastSeenNotificationsModelCopyWithImpl(this._self, this._then); final _LastSeenNotificationsModel _self; @@ -328,8 +317,7 @@ mixin _$LastSeenModel { @JsonKey(includeFromJson: false, includeToJson: false) @pragma('vm:prefer-inline') $LastSeenModelCopyWith get copyWith => - _$LastSeenModelCopyWithImpl( - this as LastSeenModel, _$identity); + _$LastSeenModelCopyWithImpl(this as LastSeenModel, _$identity); /// Serializes this LastSeenModel to a JSON map. Map toJson(); @@ -342,16 +330,13 @@ mixin _$LastSeenModel { /// @nodoc abstract mixin class $LastSeenModelCopyWith<$Res> { - factory $LastSeenModelCopyWith( - LastSeenModel value, $Res Function(LastSeenModel) _then) = - _$LastSeenModelCopyWithImpl; + factory $LastSeenModelCopyWith(LastSeenModel value, $Res Function(LastSeenModel) _then) = _$LastSeenModelCopyWithImpl; @useResult $Res call({String userId, List lastNotifications}); } /// @nodoc -class _$LastSeenModelCopyWithImpl<$Res> - implements $LastSeenModelCopyWith<$Res> { +class _$LastSeenModelCopyWithImpl<$Res> implements $LastSeenModelCopyWith<$Res> { _$LastSeenModelCopyWithImpl(this._self, this._then); final LastSeenModel _self; @@ -471,8 +456,7 @@ extension LastSeenModelPatterns on LastSeenModel { @optionalTypeArgs TResult maybeWhen( - TResult Function(String userId, List lastNotifications)? - $default, { + TResult Function(String userId, List lastNotifications)? $default, { required TResult orElse(), }) { final _that = this; @@ -499,8 +483,7 @@ extension LastSeenModelPatterns on LastSeenModel { @optionalTypeArgs TResult when( - TResult Function(String userId, List lastNotifications) - $default, + TResult Function(String userId, List lastNotifications) $default, ) { final _that = this; switch (_that) { @@ -525,8 +508,7 @@ extension LastSeenModelPatterns on LastSeenModel { @optionalTypeArgs TResult? whenOrNull( - TResult? Function(String userId, List lastNotifications)? - $default, + TResult? Function(String userId, List lastNotifications)? $default, ) { final _that = this; switch (_that) { @@ -542,13 +524,10 @@ extension LastSeenModelPatterns on LastSeenModel { @JsonSerializable() class _LastSeenModel extends LastSeenModel { const _LastSeenModel( - {required this.userId, - final List lastNotifications = - const []}) + {required this.userId, final List lastNotifications = const []}) : _lastNotifications = lastNotifications, super._(); - factory _LastSeenModel.fromJson(Map json) => - _$LastSeenModelFromJson(json); + factory _LastSeenModel.fromJson(Map json) => _$LastSeenModelFromJson(json); @override final String userId; @@ -556,8 +535,7 @@ class _LastSeenModel extends LastSeenModel { @override @JsonKey() List get lastNotifications { - if (_lastNotifications is EqualUnmodifiableListView) - return _lastNotifications; + if (_lastNotifications is EqualUnmodifiableListView) return _lastNotifications; // ignore: implicit_dynamic_type return EqualUnmodifiableListView(_lastNotifications); } @@ -584,10 +562,8 @@ class _LastSeenModel extends LastSeenModel { } /// @nodoc -abstract mixin class _$LastSeenModelCopyWith<$Res> - implements $LastSeenModelCopyWith<$Res> { - factory _$LastSeenModelCopyWith( - _LastSeenModel value, $Res Function(_LastSeenModel) _then) = +abstract mixin class _$LastSeenModelCopyWith<$Res> implements $LastSeenModelCopyWith<$Res> { + factory _$LastSeenModelCopyWith(_LastSeenModel value, $Res Function(_LastSeenModel) _then) = __$LastSeenModelCopyWithImpl; @override @useResult @@ -595,8 +571,7 @@ abstract mixin class _$LastSeenModelCopyWith<$Res> } /// @nodoc -class __$LastSeenModelCopyWithImpl<$Res> - implements _$LastSeenModelCopyWith<$Res> { +class __$LastSeenModelCopyWithImpl<$Res> implements _$LastSeenModelCopyWith<$Res> { __$LastSeenModelCopyWithImpl(this._self, this._then); final _LastSeenModel _self; diff --git a/lib/models/last_seen_notifications_model.g.dart b/lib/models/last_seen_notifications_model.g.dart index f8dba2948..4f595e607 100644 --- a/lib/models/last_seen_notifications_model.g.dart +++ b/lib/models/last_seen_notifications_model.g.dart @@ -6,37 +6,29 @@ part of 'last_seen_notifications_model.dart'; // JsonSerializableGenerator // ************************************************************************** -_LastSeenNotificationsModel _$LastSeenNotificationsModelFromJson( - Map json) => +_LastSeenNotificationsModel _$LastSeenNotificationsModelFromJson(Map json) => _LastSeenNotificationsModel( lastSeen: (json['lastSeen'] as List?) ?.map((e) => LastSeenModel.fromJson(e as Map)) .toList() ?? const [], - updatedAt: json['updatedAt'] == null - ? null - : DateTime.parse(json['updatedAt'] as String), + updatedAt: json['updatedAt'] == null ? null : DateTime.parse(json['updatedAt'] as String), ); -Map _$LastSeenNotificationsModelToJson( - _LastSeenNotificationsModel instance) => - { +Map _$LastSeenNotificationsModelToJson(_LastSeenNotificationsModel instance) => { 'lastSeen': instance.lastSeen, 'updatedAt': instance.updatedAt?.toIso8601String(), }; -_LastSeenModel _$LastSeenModelFromJson(Map json) => - _LastSeenModel( +_LastSeenModel _$LastSeenModelFromJson(Map json) => _LastSeenModel( userId: json['userId'] as String, lastNotifications: (json['lastNotifications'] as List?) - ?.map( - (e) => NotificationModel.fromJson(e as Map)) + ?.map((e) => NotificationModel.fromJson(e as Map)) .toList() ?? const [], ); -Map _$LastSeenModelToJson(_LastSeenModel instance) => - { +Map _$LastSeenModelToJson(_LastSeenModel instance) => { 'userId': instance.userId, 'lastNotifications': instance.lastNotifications, }; diff --git a/lib/models/notification_model.freezed.dart b/lib/models/notification_model.freezed.dart index 1799f01ee..5e615277a 100644 --- a/lib/models/notification_model.freezed.dart +++ b/lib/models/notification_model.freezed.dart @@ -124,16 +124,15 @@ extension NotificationModelPatterns on NotificationModel { @optionalTypeArgs TResult maybeWhen( - TResult Function(String key, String id, int? childCount, String? image, - String title, String? subtitle, String payLoad)? + TResult Function( + String key, String id, int? childCount, String? image, String title, String? subtitle, String payLoad)? $default, { required TResult orElse(), }) { final _that = this; switch (_that) { case _NotificationModel() when $default != null: - return $default(_that.key, _that.id, _that.childCount, _that.image, - _that.title, _that.subtitle, _that.payLoad); + return $default(_that.key, _that.id, _that.childCount, _that.image, _that.title, _that.subtitle, _that.payLoad); case _: return orElse(); } @@ -154,15 +153,14 @@ extension NotificationModelPatterns on NotificationModel { @optionalTypeArgs TResult when( - TResult Function(String key, String id, int? childCount, String? image, - String title, String? subtitle, String payLoad) + TResult Function( + String key, String id, int? childCount, String? image, String title, String? subtitle, String payLoad) $default, ) { final _that = this; switch (_that) { case _NotificationModel(): - return $default(_that.key, _that.id, _that.childCount, _that.image, - _that.title, _that.subtitle, _that.payLoad); + return $default(_that.key, _that.id, _that.childCount, _that.image, _that.title, _that.subtitle, _that.payLoad); case _: throw StateError('Unexpected subclass'); } @@ -182,15 +180,14 @@ extension NotificationModelPatterns on NotificationModel { @optionalTypeArgs TResult? whenOrNull( - TResult? Function(String key, String id, int? childCount, String? image, - String title, String? subtitle, String payLoad)? + TResult? Function( + String key, String id, int? childCount, String? image, String title, String? subtitle, String payLoad)? $default, ) { final _that = this; switch (_that) { case _NotificationModel() when $default != null: - return $default(_that.key, _that.id, _that.childCount, _that.image, - _that.title, _that.subtitle, _that.payLoad); + return $default(_that.key, _that.id, _that.childCount, _that.image, _that.title, _that.subtitle, _that.payLoad); case _: return null; } @@ -208,8 +205,7 @@ class _NotificationModel implements NotificationModel { required this.title, this.subtitle, required this.payLoad}); - factory _NotificationModel.fromJson(Map json) => - _$NotificationModelFromJson(json); + factory _NotificationModel.fromJson(Map json) => _$NotificationModelFromJson(json); @override final String key; diff --git a/lib/models/notification_model.g.dart b/lib/models/notification_model.g.dart index 1a57c29a7..2871718d4 100644 --- a/lib/models/notification_model.g.dart +++ b/lib/models/notification_model.g.dart @@ -6,8 +6,7 @@ part of 'notification_model.dart'; // JsonSerializableGenerator // ************************************************************************** -_NotificationModel _$NotificationModelFromJson(Map json) => - _NotificationModel( +_NotificationModel _$NotificationModelFromJson(Map json) => _NotificationModel( key: json['key'] as String, id: json['id'] as String, childCount: (json['childCount'] as num?)?.toInt(), @@ -17,8 +16,7 @@ _NotificationModel _$NotificationModelFromJson(Map json) => payLoad: json['payLoad'] as String, ); -Map _$NotificationModelToJson(_NotificationModel instance) => - { +Map _$NotificationModelToJson(_NotificationModel instance) => { 'key': instance.key, 'id': instance.id, 'childCount': instance.childCount, diff --git a/lib/models/settings/client_settings_model.freezed.dart b/lib/models/settings/client_settings_model.freezed.dart index 5f5913736..8bf423720 100644 --- a/lib/models/settings/client_settings_model.freezed.dart +++ b/lib/models/settings/client_settings_model.freezed.dart @@ -52,8 +52,7 @@ mixin _$ClientSettingsModel implements DiagnosticableTreeMixin { @JsonKey(includeFromJson: false, includeToJson: false) @pragma('vm:prefer-inline') $ClientSettingsModelCopyWith get copyWith => - _$ClientSettingsModelCopyWithImpl( - this as ClientSettingsModel, _$identity); + _$ClientSettingsModelCopyWithImpl(this as ClientSettingsModel, _$identity); /// Serializes this ClientSettingsModel to a JSON map. Map toJson(); @@ -67,8 +66,7 @@ mixin _$ClientSettingsModel implements DiagnosticableTreeMixin { ..add(DiagnosticsProperty('size', size)) ..add(DiagnosticsProperty('timeOut', timeOut)) ..add(DiagnosticsProperty('nextUpDateCutoff', nextUpDateCutoff)) - ..add(DiagnosticsProperty( - 'updateNotificationsInterval', updateNotificationsInterval)) + ..add(DiagnosticsProperty('updateNotificationsInterval', updateNotificationsInterval)) ..add(DiagnosticsProperty('themeMode', themeMode)) ..add(DiagnosticsProperty('themeColor', themeColor)) ..add(DiagnosticsProperty('deriveColorsFromItem', deriveColorsFromItem)) @@ -82,10 +80,8 @@ mixin _$ClientSettingsModel implements DiagnosticableTreeMixin { ..add(DiagnosticsProperty('mouseDragSupport', mouseDragSupport)) ..add(DiagnosticsProperty('requireWifi', requireWifi)) ..add(DiagnosticsProperty('expandSideBar', expandSideBar)) - ..add( - DiagnosticsProperty('showAllCollectionTypes', showAllCollectionTypes)) - ..add( - DiagnosticsProperty('maxConcurrentDownloads', maxConcurrentDownloads)) + ..add(DiagnosticsProperty('showAllCollectionTypes', showAllCollectionTypes)) + ..add(DiagnosticsProperty('maxConcurrentDownloads', maxConcurrentDownloads)) ..add(DiagnosticsProperty('schemeVariant', schemeVariant)) ..add(DiagnosticsProperty('backgroundImage', backgroundImage)) ..add(DiagnosticsProperty('enableBlurEffects', enableBlurEffects)) @@ -106,8 +102,7 @@ mixin _$ClientSettingsModel implements DiagnosticableTreeMixin { /// @nodoc abstract mixin class $ClientSettingsModelCopyWith<$Res> { - factory $ClientSettingsModelCopyWith( - ClientSettingsModel value, $Res Function(ClientSettingsModel) _then) = + factory $ClientSettingsModelCopyWith(ClientSettingsModel value, $Res Function(ClientSettingsModel) _then) = _$ClientSettingsModelCopyWithImpl; @useResult $Res call( @@ -145,8 +140,7 @@ abstract mixin class $ClientSettingsModelCopyWith<$Res> { } /// @nodoc -class _$ClientSettingsModelCopyWithImpl<$Res> - implements $ClientSettingsModelCopyWith<$Res> { +class _$ClientSettingsModelCopyWithImpl<$Res> implements $ClientSettingsModelCopyWith<$Res> { _$ClientSettingsModelCopyWithImpl(this._self, this._then); final ClientSettingsModel _self; @@ -666,8 +660,7 @@ extension ClientSettingsModelPatterns on ClientSettingsModel { /// @nodoc @JsonSerializable() -class _ClientSettingsModel extends ClientSettingsModel - with DiagnosticableTreeMixin { +class _ClientSettingsModel extends ClientSettingsModel with DiagnosticableTreeMixin { _ClientSettingsModel( {this.syncPath, this.position = const Vector2(x: 0, y: 0), @@ -702,8 +695,7 @@ class _ClientSettingsModel extends ClientSettingsModel final Map shortcuts = const {}}) : _shortcuts = shortcuts, super._(); - factory _ClientSettingsModel.fromJson(Map json) => - _$ClientSettingsModelFromJson(json); + factory _ClientSettingsModel.fromJson(Map json) => _$ClientSettingsModelFromJson(json); @override final String? syncPath; @@ -805,8 +797,7 @@ class _ClientSettingsModel extends ClientSettingsModel @JsonKey(includeFromJson: false, includeToJson: false) @pragma('vm:prefer-inline') _$ClientSettingsModelCopyWith<_ClientSettingsModel> get copyWith => - __$ClientSettingsModelCopyWithImpl<_ClientSettingsModel>( - this, _$identity); + __$ClientSettingsModelCopyWithImpl<_ClientSettingsModel>(this, _$identity); @override Map toJson() { @@ -824,8 +815,7 @@ class _ClientSettingsModel extends ClientSettingsModel ..add(DiagnosticsProperty('size', size)) ..add(DiagnosticsProperty('timeOut', timeOut)) ..add(DiagnosticsProperty('nextUpDateCutoff', nextUpDateCutoff)) - ..add(DiagnosticsProperty( - 'updateNotificationsInterval', updateNotificationsInterval)) + ..add(DiagnosticsProperty('updateNotificationsInterval', updateNotificationsInterval)) ..add(DiagnosticsProperty('themeMode', themeMode)) ..add(DiagnosticsProperty('themeColor', themeColor)) ..add(DiagnosticsProperty('deriveColorsFromItem', deriveColorsFromItem)) @@ -839,10 +829,8 @@ class _ClientSettingsModel extends ClientSettingsModel ..add(DiagnosticsProperty('mouseDragSupport', mouseDragSupport)) ..add(DiagnosticsProperty('requireWifi', requireWifi)) ..add(DiagnosticsProperty('expandSideBar', expandSideBar)) - ..add( - DiagnosticsProperty('showAllCollectionTypes', showAllCollectionTypes)) - ..add( - DiagnosticsProperty('maxConcurrentDownloads', maxConcurrentDownloads)) + ..add(DiagnosticsProperty('showAllCollectionTypes', showAllCollectionTypes)) + ..add(DiagnosticsProperty('maxConcurrentDownloads', maxConcurrentDownloads)) ..add(DiagnosticsProperty('schemeVariant', schemeVariant)) ..add(DiagnosticsProperty('backgroundImage', backgroundImage)) ..add(DiagnosticsProperty('enableBlurEffects', enableBlurEffects)) @@ -862,10 +850,8 @@ class _ClientSettingsModel extends ClientSettingsModel } /// @nodoc -abstract mixin class _$ClientSettingsModelCopyWith<$Res> - implements $ClientSettingsModelCopyWith<$Res> { - factory _$ClientSettingsModelCopyWith(_ClientSettingsModel value, - $Res Function(_ClientSettingsModel) _then) = +abstract mixin class _$ClientSettingsModelCopyWith<$Res> implements $ClientSettingsModelCopyWith<$Res> { + factory _$ClientSettingsModelCopyWith(_ClientSettingsModel value, $Res Function(_ClientSettingsModel) _then) = __$ClientSettingsModelCopyWithImpl; @override @useResult @@ -904,8 +890,7 @@ abstract mixin class _$ClientSettingsModelCopyWith<$Res> } /// @nodoc -class __$ClientSettingsModelCopyWithImpl<$Res> - implements _$ClientSettingsModelCopyWith<$Res> { +class __$ClientSettingsModelCopyWithImpl<$Res> implements _$ClientSettingsModelCopyWith<$Res> { __$ClientSettingsModelCopyWithImpl(this._self, this._then); final _ClientSettingsModel _self; diff --git a/lib/models/settings/client_settings_model.g.dart b/lib/models/settings/client_settings_model.g.dart index 507790c3c..010a7f097 100644 --- a/lib/models/settings/client_settings_model.g.dart +++ b/lib/models/settings/client_settings_model.g.dart @@ -6,35 +6,25 @@ part of 'client_settings_model.dart'; // JsonSerializableGenerator // ************************************************************************** -_ClientSettingsModel _$ClientSettingsModelFromJson(Map json) => - _ClientSettingsModel( +_ClientSettingsModel _$ClientSettingsModelFromJson(Map json) => _ClientSettingsModel( syncPath: json['syncPath'] as String?, - position: json['position'] == null - ? const Vector2(x: 0, y: 0) - : Vector2.fromJson(json['position'] as String), - size: json['size'] == null - ? const Vector2(x: 1280, y: 720) - : Vector2.fromJson(json['size'] as String), + position: json['position'] == null ? const Vector2(x: 0, y: 0) : Vector2.fromJson(json['position'] as String), + size: json['size'] == null ? const Vector2(x: 1280, y: 720) : Vector2.fromJson(json['size'] as String), timeOut: json['timeOut'] == null ? const Duration(seconds: 30) : Duration(microseconds: (json['timeOut'] as num).toInt()), - nextUpDateCutoff: json['nextUpDateCutoff'] == null - ? null - : Duration(microseconds: (json['nextUpDateCutoff'] as num).toInt()), + nextUpDateCutoff: + json['nextUpDateCutoff'] == null ? null : Duration(microseconds: (json['nextUpDateCutoff'] as num).toInt()), updateNotificationsInterval: json['updateNotificationsInterval'] == null ? const Duration(hours: 1) - : Duration( - microseconds: - (json['updateNotificationsInterval'] as num).toInt()), - themeMode: $enumDecodeNullable(_$ThemeModeEnumMap, json['themeMode']) ?? - ThemeMode.system, + : Duration(microseconds: (json['updateNotificationsInterval'] as num).toInt()), + themeMode: $enumDecodeNullable(_$ThemeModeEnumMap, json['themeMode']) ?? ThemeMode.system, themeColor: $enumDecodeNullable(_$ColorThemesEnumMap, json['themeColor']), deriveColorsFromItem: json['deriveColorsFromItem'] as bool? ?? true, amoledBlack: json['amoledBlack'] as bool? ?? false, blurPlaceHolders: json['blurPlaceHolders'] as bool? ?? true, blurUpcomingEpisodes: json['blurUpcomingEpisodes'] as bool? ?? false, - selectedLocale: - const LocaleConvert().fromJson(json['selectedLocale'] as String?), + selectedLocale: const LocaleConvert().fromJson(json['selectedLocale'] as String?), enableMediaKeys: json['enableMediaKeys'] as bool? ?? true, posterSize: (json['posterSize'] as num?)?.toDouble() ?? 1.0, pinchPosterZoom: json['pinchPosterZoom'] as bool? ?? false, @@ -42,14 +32,10 @@ _ClientSettingsModel _$ClientSettingsModelFromJson(Map json) => requireWifi: json['requireWifi'] as bool? ?? true, expandSideBar: json['expandSideBar'] as bool? ?? false, showAllCollectionTypes: json['showAllCollectionTypes'] as bool? ?? false, - maxConcurrentDownloads: - (json['maxConcurrentDownloads'] as num?)?.toInt() ?? 2, - schemeVariant: $enumDecodeNullable( - _$DynamicSchemeVariantEnumMap, json['schemeVariant']) ?? - DynamicSchemeVariant.rainbow, - backgroundImage: $enumDecodeNullable( - _$BackgroundTypeEnumMap, json['backgroundImage']) ?? - BackgroundType.blurred, + maxConcurrentDownloads: (json['maxConcurrentDownloads'] as num?)?.toInt() ?? 2, + schemeVariant: + $enumDecodeNullable(_$DynamicSchemeVariantEnumMap, json['schemeVariant']) ?? DynamicSchemeVariant.rainbow, + backgroundImage: $enumDecodeNullable(_$BackgroundTypeEnumMap, json['backgroundImage']) ?? BackgroundType.blurred, enableBlurEffects: json['enableBlurEffects'] as bool? ?? false, checkForUpdates: json['checkForUpdates'] as bool? ?? true, usePosterForLibrary: json['usePosterForLibrary'] as bool? ?? false, @@ -58,22 +44,19 @@ _ClientSettingsModel _$ClientSettingsModelFromJson(Map json) => lastViewedUpdate: json['lastViewedUpdate'] as String?, libraryPageSize: (json['libraryPageSize'] as num?)?.toInt(), shortcuts: (json['shortcuts'] as Map?)?.map( - (k, e) => MapEntry($enumDecode(_$GlobalHotKeysEnumMap, k), - KeyCombination.fromJson(e as Map)), + (k, e) => + MapEntry($enumDecode(_$GlobalHotKeysEnumMap, k), KeyCombination.fromJson(e as Map)), ) ?? const {}, ); -Map _$ClientSettingsModelToJson( - _ClientSettingsModel instance) => - { +Map _$ClientSettingsModelToJson(_ClientSettingsModel instance) => { 'syncPath': instance.syncPath, 'position': instance.position, 'size': instance.size, 'timeOut': instance.timeOut?.inMicroseconds, 'nextUpDateCutoff': instance.nextUpDateCutoff?.inMicroseconds, - 'updateNotificationsInterval': - instance.updateNotificationsInterval.inMicroseconds, + 'updateNotificationsInterval': instance.updateNotificationsInterval.inMicroseconds, 'themeMode': _$ThemeModeEnumMap[instance.themeMode]!, 'themeColor': _$ColorThemesEnumMap[instance.themeColor], 'deriveColorsFromItem': instance.deriveColorsFromItem, @@ -98,8 +81,7 @@ Map _$ClientSettingsModelToJson( 'useTVExpandedLayout': instance.useTVExpandedLayout, 'lastViewedUpdate': instance.lastViewedUpdate, 'libraryPageSize': instance.libraryPageSize, - 'shortcuts': instance.shortcuts - .map((k, e) => MapEntry(_$GlobalHotKeysEnumMap[k]!, e)), + 'shortcuts': instance.shortcuts.map((k, e) => MapEntry(_$GlobalHotKeysEnumMap[k]!, e)), }; const _$ThemeModeEnumMap = { diff --git a/lib/providers/control_panel/control_device_discovery_provider.freezed.dart b/lib/providers/control_panel/control_device_discovery_provider.freezed.dart index dde87e51c..0e480d363 100644 --- a/lib/providers/control_panel/control_device_discovery_provider.freezed.dart +++ b/lib/providers/control_panel/control_device_discovery_provider.freezed.dart @@ -21,9 +21,8 @@ mixin _$ControlDeviceDiscoveryModel { /// with the given fields replaced by the non-null parameter values. @JsonKey(includeFromJson: false, includeToJson: false) @pragma('vm:prefer-inline') - $ControlDeviceDiscoveryModelCopyWith - get copyWith => _$ControlDeviceDiscoveryModelCopyWithImpl< - ControlDeviceDiscoveryModel>( + $ControlDeviceDiscoveryModelCopyWith get copyWith => + _$ControlDeviceDiscoveryModelCopyWithImpl( this as ControlDeviceDiscoveryModel, _$identity); @override @@ -35,16 +34,14 @@ mixin _$ControlDeviceDiscoveryModel { /// @nodoc abstract mixin class $ControlDeviceDiscoveryModelCopyWith<$Res> { factory $ControlDeviceDiscoveryModelCopyWith( - ControlDeviceDiscoveryModel value, - $Res Function(ControlDeviceDiscoveryModel) _then) = + ControlDeviceDiscoveryModel value, $Res Function(ControlDeviceDiscoveryModel) _then) = _$ControlDeviceDiscoveryModelCopyWithImpl; @useResult $Res call({bool isLoading, List devices}); } /// @nodoc -class _$ControlDeviceDiscoveryModelCopyWithImpl<$Res> - implements $ControlDeviceDiscoveryModelCopyWith<$Res> { +class _$ControlDeviceDiscoveryModelCopyWithImpl<$Res> implements $ControlDeviceDiscoveryModelCopyWith<$Res> { _$ControlDeviceDiscoveryModelCopyWithImpl(this._self, this._then); final ControlDeviceDiscoveryModel _self; @@ -231,8 +228,7 @@ extension ControlDeviceDiscoveryModelPatterns on ControlDeviceDiscoveryModel { /// @nodoc class _ControlDeviceDiscoveryModel implements ControlDeviceDiscoveryModel { - const _ControlDeviceDiscoveryModel( - {this.isLoading = true, final List devices = const []}) + const _ControlDeviceDiscoveryModel({this.isLoading = true, final List devices = const []}) : _devices = devices; @override @@ -252,9 +248,8 @@ class _ControlDeviceDiscoveryModel implements ControlDeviceDiscoveryModel { @override @JsonKey(includeFromJson: false, includeToJson: false) @pragma('vm:prefer-inline') - _$ControlDeviceDiscoveryModelCopyWith<_ControlDeviceDiscoveryModel> - get copyWith => __$ControlDeviceDiscoveryModelCopyWithImpl< - _ControlDeviceDiscoveryModel>(this, _$identity); + _$ControlDeviceDiscoveryModelCopyWith<_ControlDeviceDiscoveryModel> get copyWith => + __$ControlDeviceDiscoveryModelCopyWithImpl<_ControlDeviceDiscoveryModel>(this, _$identity); @override String toString() { @@ -263,11 +258,9 @@ class _ControlDeviceDiscoveryModel implements ControlDeviceDiscoveryModel { } /// @nodoc -abstract mixin class _$ControlDeviceDiscoveryModelCopyWith<$Res> - implements $ControlDeviceDiscoveryModelCopyWith<$Res> { +abstract mixin class _$ControlDeviceDiscoveryModelCopyWith<$Res> implements $ControlDeviceDiscoveryModelCopyWith<$Res> { factory _$ControlDeviceDiscoveryModelCopyWith( - _ControlDeviceDiscoveryModel value, - $Res Function(_ControlDeviceDiscoveryModel) _then) = + _ControlDeviceDiscoveryModel value, $Res Function(_ControlDeviceDiscoveryModel) _then) = __$ControlDeviceDiscoveryModelCopyWithImpl; @override @useResult @@ -275,8 +268,7 @@ abstract mixin class _$ControlDeviceDiscoveryModelCopyWith<$Res> } /// @nodoc -class __$ControlDeviceDiscoveryModelCopyWithImpl<$Res> - implements _$ControlDeviceDiscoveryModelCopyWith<$Res> { +class __$ControlDeviceDiscoveryModelCopyWithImpl<$Res> implements _$ControlDeviceDiscoveryModelCopyWith<$Res> { __$ControlDeviceDiscoveryModelCopyWithImpl(this._self, this._then); final _ControlDeviceDiscoveryModel _self; diff --git a/lib/providers/control_panel/control_device_discovery_provider.g.dart b/lib/providers/control_panel/control_device_discovery_provider.g.dart index b0d34dcab..247b181b1 100644 --- a/lib/providers/control_panel/control_device_discovery_provider.g.dart +++ b/lib/providers/control_panel/control_device_discovery_provider.g.dart @@ -6,23 +6,19 @@ part of 'control_device_discovery_provider.dart'; // RiverpodGenerator // ************************************************************************** -String _$controlDeviceDiscoveryHash() => - r'2d01dd615a1afd7dd6f3ec69dd332c341a0fdc81'; +String _$controlDeviceDiscoveryHash() => r'2d01dd615a1afd7dd6f3ec69dd332c341a0fdc81'; /// See also [ControlDeviceDiscovery]. @ProviderFor(ControlDeviceDiscovery) -final controlDeviceDiscoveryProvider = AutoDisposeNotifierProvider< - ControlDeviceDiscovery, ControlDeviceDiscoveryModel>.internal( +final controlDeviceDiscoveryProvider = + AutoDisposeNotifierProvider.internal( ControlDeviceDiscovery.new, name: r'controlDeviceDiscoveryProvider', - debugGetCreateSourceHash: const bool.fromEnvironment('dart.vm.product') - ? null - : _$controlDeviceDiscoveryHash, + debugGetCreateSourceHash: const bool.fromEnvironment('dart.vm.product') ? null : _$controlDeviceDiscoveryHash, dependencies: null, allTransitiveDependencies: null, ); -typedef _$ControlDeviceDiscovery - = AutoDisposeNotifier; +typedef _$ControlDeviceDiscovery = AutoDisposeNotifier; // ignore_for_file: type=lint // ignore_for_file: subtype_of_sealed_class, invalid_use_of_internal_member, invalid_use_of_visible_for_testing_member, deprecated_member_use_from_same_package diff --git a/lib/providers/control_panel/control_livetv_provider.freezed.dart b/lib/providers/control_panel/control_livetv_provider.freezed.dart index 114487606..1e843f251 100644 --- a/lib/providers/control_panel/control_livetv_provider.freezed.dart +++ b/lib/providers/control_panel/control_livetv_provider.freezed.dart @@ -21,8 +21,7 @@ mixin _$ControlLiveTvModel { @JsonKey(includeFromJson: false, includeToJson: false) @pragma('vm:prefer-inline') $ControlLiveTvModelCopyWith get copyWith => - _$ControlLiveTvModelCopyWithImpl( - this as ControlLiveTvModel, _$identity); + _$ControlLiveTvModelCopyWithImpl(this as ControlLiveTvModel, _$identity); @override String toString() { @@ -32,16 +31,14 @@ mixin _$ControlLiveTvModel { /// @nodoc abstract mixin class $ControlLiveTvModelCopyWith<$Res> { - factory $ControlLiveTvModelCopyWith( - ControlLiveTvModel value, $Res Function(ControlLiveTvModel) _then) = + factory $ControlLiveTvModelCopyWith(ControlLiveTvModel value, $Res Function(ControlLiveTvModel) _then) = _$ControlLiveTvModelCopyWithImpl; @useResult $Res call({LiveTvOptions? liveTvOptions}); } /// @nodoc -class _$ControlLiveTvModelCopyWithImpl<$Res> - implements $ControlLiveTvModelCopyWith<$Res> { +class _$ControlLiveTvModelCopyWithImpl<$Res> implements $ControlLiveTvModelCopyWith<$Res> { _$ControlLiveTvModelCopyWithImpl(this._self, this._then); final ControlLiveTvModel _self; @@ -243,10 +240,8 @@ class _ControlLiveTvModel implements ControlLiveTvModel { } /// @nodoc -abstract mixin class _$ControlLiveTvModelCopyWith<$Res> - implements $ControlLiveTvModelCopyWith<$Res> { - factory _$ControlLiveTvModelCopyWith( - _ControlLiveTvModel value, $Res Function(_ControlLiveTvModel) _then) = +abstract mixin class _$ControlLiveTvModelCopyWith<$Res> implements $ControlLiveTvModelCopyWith<$Res> { + factory _$ControlLiveTvModelCopyWith(_ControlLiveTvModel value, $Res Function(_ControlLiveTvModel) _then) = __$ControlLiveTvModelCopyWithImpl; @override @useResult @@ -254,8 +249,7 @@ abstract mixin class _$ControlLiveTvModelCopyWith<$Res> } /// @nodoc -class __$ControlLiveTvModelCopyWithImpl<$Res> - implements _$ControlLiveTvModelCopyWith<$Res> { +class __$ControlLiveTvModelCopyWithImpl<$Res> implements _$ControlLiveTvModelCopyWith<$Res> { __$ControlLiveTvModelCopyWithImpl(this._self, this._then); final _ControlLiveTvModel _self; diff --git a/lib/providers/control_panel/control_livetv_provider.g.dart b/lib/providers/control_panel/control_livetv_provider.g.dart index 8865a7b92..f131e00d7 100644 --- a/lib/providers/control_panel/control_livetv_provider.g.dart +++ b/lib/providers/control_panel/control_livetv_provider.g.dart @@ -10,13 +10,10 @@ String _$controlLiveTvHash() => r'f82b3b1ae56471d190aa7fa8fb5a34a6ccd73761'; /// See also [ControlLiveTv]. @ProviderFor(ControlLiveTv) -final controlLiveTvProvider = - AutoDisposeNotifierProvider.internal( +final controlLiveTvProvider = AutoDisposeNotifierProvider.internal( ControlLiveTv.new, name: r'controlLiveTvProvider', - debugGetCreateSourceHash: const bool.fromEnvironment('dart.vm.product') - ? null - : _$controlLiveTvHash, + debugGetCreateSourceHash: const bool.fromEnvironment('dart.vm.product') ? null : _$controlLiveTvHash, dependencies: null, allTransitiveDependencies: null, ); diff --git a/lib/providers/control_panel/control_tuner_edit_provider.freezed.dart b/lib/providers/control_panel/control_tuner_edit_provider.freezed.dart index 7bf353990..57cd64f13 100644 --- a/lib/providers/control_panel/control_tuner_edit_provider.freezed.dart +++ b/lib/providers/control_panel/control_tuner_edit_provider.freezed.dart @@ -37,8 +37,7 @@ mixin _$ControlTunerEditModel { @JsonKey(includeFromJson: false, includeToJson: false) @pragma('vm:prefer-inline') $ControlTunerEditModelCopyWith get copyWith => - _$ControlTunerEditModelCopyWithImpl( - this as ControlTunerEditModel, _$identity); + _$ControlTunerEditModelCopyWithImpl(this as ControlTunerEditModel, _$identity); @override String toString() { @@ -48,8 +47,7 @@ mixin _$ControlTunerEditModel { /// @nodoc abstract mixin class $ControlTunerEditModelCopyWith<$Res> { - factory $ControlTunerEditModelCopyWith(ControlTunerEditModel value, - $Res Function(ControlTunerEditModel) _then) = + factory $ControlTunerEditModelCopyWith(ControlTunerEditModel value, $Res Function(ControlTunerEditModel) _then) = _$ControlTunerEditModelCopyWithImpl; @useResult $Res call( @@ -73,8 +71,7 @@ abstract mixin class $ControlTunerEditModelCopyWith<$Res> { } /// @nodoc -class _$ControlTunerEditModelCopyWithImpl<$Res> - implements $ControlTunerEditModelCopyWith<$Res> { +class _$ControlTunerEditModelCopyWithImpl<$Res> implements $ControlTunerEditModelCopyWith<$Res> { _$ControlTunerEditModelCopyWithImpl(this._self, this._then); final ControlTunerEditModel _self; @@ -516,8 +513,7 @@ class _ControlTunerEditModel implements ControlTunerEditModel { @JsonKey(includeFromJson: false, includeToJson: false) @pragma('vm:prefer-inline') _$ControlTunerEditModelCopyWith<_ControlTunerEditModel> get copyWith => - __$ControlTunerEditModelCopyWithImpl<_ControlTunerEditModel>( - this, _$identity); + __$ControlTunerEditModelCopyWithImpl<_ControlTunerEditModel>(this, _$identity); @override String toString() { @@ -526,10 +522,8 @@ class _ControlTunerEditModel implements ControlTunerEditModel { } /// @nodoc -abstract mixin class _$ControlTunerEditModelCopyWith<$Res> - implements $ControlTunerEditModelCopyWith<$Res> { - factory _$ControlTunerEditModelCopyWith(_ControlTunerEditModel value, - $Res Function(_ControlTunerEditModel) _then) = +abstract mixin class _$ControlTunerEditModelCopyWith<$Res> implements $ControlTunerEditModelCopyWith<$Res> { + factory _$ControlTunerEditModelCopyWith(_ControlTunerEditModel value, $Res Function(_ControlTunerEditModel) _then) = __$ControlTunerEditModelCopyWithImpl; @override @useResult @@ -554,8 +548,7 @@ abstract mixin class _$ControlTunerEditModelCopyWith<$Res> } /// @nodoc -class __$ControlTunerEditModelCopyWithImpl<$Res> - implements _$ControlTunerEditModelCopyWith<$Res> { +class __$ControlTunerEditModelCopyWithImpl<$Res> implements _$ControlTunerEditModelCopyWith<$Res> { __$ControlTunerEditModelCopyWithImpl(this._self, this._then); final _ControlTunerEditModel _self; diff --git a/lib/providers/control_panel/control_tuner_edit_provider.g.dart b/lib/providers/control_panel/control_tuner_edit_provider.g.dart index 2e66bec5b..a5c511c65 100644 --- a/lib/providers/control_panel/control_tuner_edit_provider.g.dart +++ b/lib/providers/control_panel/control_tuner_edit_provider.g.dart @@ -29,8 +29,7 @@ class _SystemHash { } } -abstract class _$ControlTunerEdit - extends BuildlessAutoDisposeNotifier { +abstract class _$ControlTunerEdit extends BuildlessAutoDisposeNotifier { late final TunerHostInfo? initialTuner; ControlTunerEditModel build( @@ -73,16 +72,14 @@ class ControlTunerEditFamily extends Family { static const Iterable? _allTransitiveDependencies = null; @override - Iterable? get allTransitiveDependencies => - _allTransitiveDependencies; + Iterable? get allTransitiveDependencies => _allTransitiveDependencies; @override String? get name => r'controlTunerEditProvider'; } /// See also [ControlTunerEdit]. -class ControlTunerEditProvider extends AutoDisposeNotifierProviderImpl< - ControlTunerEdit, ControlTunerEditModel> { +class ControlTunerEditProvider extends AutoDisposeNotifierProviderImpl { /// See also [ControlTunerEdit]. ControlTunerEditProvider( TunerHostInfo? initialTuner, @@ -90,13 +87,9 @@ class ControlTunerEditProvider extends AutoDisposeNotifierProviderImpl< () => ControlTunerEdit()..initialTuner = initialTuner, from: controlTunerEditProvider, name: r'controlTunerEditProvider', - debugGetCreateSourceHash: - const bool.fromEnvironment('dart.vm.product') - ? null - : _$controlTunerEditHash, + debugGetCreateSourceHash: const bool.fromEnvironment('dart.vm.product') ? null : _$controlTunerEditHash, dependencies: ControlTunerEditFamily._dependencies, - allTransitiveDependencies: - ControlTunerEditFamily._allTransitiveDependencies, + allTransitiveDependencies: ControlTunerEditFamily._allTransitiveDependencies, initialTuner: initialTuner, ); @@ -138,15 +131,13 @@ class ControlTunerEditProvider extends AutoDisposeNotifierProviderImpl< } @override - AutoDisposeNotifierProviderElement - createElement() { + AutoDisposeNotifierProviderElement createElement() { return _ControlTunerEditProviderElement(this); } @override bool operator ==(Object other) { - return other is ControlTunerEditProvider && - other.initialTuner == initialTuner; + return other is ControlTunerEditProvider && other.initialTuner == initialTuner; } @override @@ -160,20 +151,17 @@ class ControlTunerEditProvider extends AutoDisposeNotifierProviderImpl< @Deprecated('Will be removed in 3.0. Use Ref instead') // ignore: unused_element -mixin ControlTunerEditRef - on AutoDisposeNotifierProviderRef { +mixin ControlTunerEditRef on AutoDisposeNotifierProviderRef { /// The parameter `initialTuner` of this provider. TunerHostInfo? get initialTuner; } class _ControlTunerEditProviderElement - extends AutoDisposeNotifierProviderElement with ControlTunerEditRef { + extends AutoDisposeNotifierProviderElement with ControlTunerEditRef { _ControlTunerEditProviderElement(super.provider); @override - TunerHostInfo? get initialTuner => - (origin as ControlTunerEditProvider).initialTuner; + TunerHostInfo? get initialTuner => (origin as ControlTunerEditProvider).initialTuner; } // ignore_for_file: type=lint // ignore_for_file: subtype_of_sealed_class, invalid_use_of_internal_member, invalid_use_of_visible_for_testing_member, deprecated_member_use_from_same_package diff --git a/lib/providers/settings/video_player_settings_provider.dart b/lib/providers/settings/video_player_settings_provider.dart index 14734310c..5edb20222 100644 --- a/lib/providers/settings/video_player_settings_provider.dart +++ b/lib/providers/settings/video_player_settings_provider.dart @@ -126,7 +126,7 @@ class VideoPlayerSettingsProviderNotifier extends StateNotifier state = state.copyWith(enableSpeedBoost: value); void setSpeedBoostRate(double value) { diff --git a/lib/providers/syncplay/handlers/syncplay_message_handler.dart b/lib/providers/syncplay/handlers/syncplay_message_handler.dart index 3ce1fdf32..bcec1e52b 100644 --- a/lib/providers/syncplay/handlers/syncplay_message_handler.dart +++ b/lib/providers/syncplay/handlers/syncplay_message_handler.dart @@ -1,7 +1,7 @@ import 'dart:developer'; import 'package:fladder/models/syncplay/syncplay_models.dart'; -import 'package:fladder/screens/shared/fladder_snackbar.dart'; +import 'package:fladder/screens/shared/fladder_notification_overlay.dart'; import 'package:fladder/util/localization_helper.dart'; import 'package:flutter/material.dart'; @@ -99,7 +99,7 @@ class SyncPlayMessageHandler { final context = getContext(); if (context != null) { - fladderSnackbar(context, title: context.localized.syncPlayUserJoined(userId)); + FladderSnack.show(context.localized.syncPlayUserJoined(userId), context: context); } log('SyncPlay: User joined: $userId'); } @@ -111,7 +111,7 @@ class SyncPlayMessageHandler { final context = getContext(); if (context != null) { - fladderSnackbar(context, title: context.localized.syncPlayUserLeft(userId)); + FladderSnack.show(context.localized.syncPlayUserLeft(userId), context: context); } log('SyncPlay: User left: $userId'); } diff --git a/lib/providers/video_player_provider.dart b/lib/providers/video_player_provider.dart index 5b089db21..d5525ae6f 100644 --- a/lib/providers/video_player_provider.dart +++ b/lib/providers/video_player_provider.dart @@ -8,7 +8,6 @@ import 'package:fladder/providers/settings/client_settings_provider.dart'; import 'package:fladder/providers/settings/video_player_settings_provider.dart'; import 'package:fladder/providers/syncplay/syncplay_provider.dart'; import 'package:fladder/src/video_player_helper.g.dart' show PlaybackChangeSource; -import 'package:fladder/util/debouncer.dart'; import 'package:fladder/wrappers/media_control_wrapper.dart'; import 'package:flutter/material.dart'; import 'package:flutter_riverpod/flutter_riverpod.dart'; @@ -66,38 +65,34 @@ class VideoPlayerNotifier extends StateNotifier { final subscription = state.stateStream?.listen((value) { // Infer SyncPlay user actions from native player state stream (reviewer request). - if (value.changeSource == PlaybackChangeSource.user) { - final prev = playbackState; - if (value.playing != prev.playing) { - if (value.playing) { - userPlay(); - } else { - userPause(); - } - } else if ((value.position - prev.position).inSeconds.abs() > 2) { - userSeek(value.position); + if (value.changeSource == PlaybackChangeSource.user) { + final prev = playbackState; + if (value.playing != prev.playing) { + if (value.playing) { + userPlay(); + } else { + userPause(); } + } else if ((value.position - prev.position).inSeconds.abs() > 2) { + userSeek(value.position); } - updateBuffering(value.buffering); - updateBuffer(value.buffer); - updatePlaying(value.playing); - updatePosition(value.position); - updateDuration(value.duration); - }); + } + updateBuffering(value.buffering); + updateBuffer(value.buffer); + updatePlaying(value.playing); + updatePosition(value.position); + updateDuration(value.duration); + }); if (subscription != null) { subscriptions.add(subscription); } - if (subscription != null) { - subscriptions.add(subscription); - } - // Register player callbacks with SyncPlay - _registerSyncPlayCallbacks(); + // Register player callbacks with SyncPlay + _registerSyncPlayCallbacks(); - // Listen to SyncPlay state changes for native player overlay - _setupSyncPlayStateListener(); - }); + // Listen to SyncPlay state changes for native player overlay + _setupSyncPlayStateListener(); } /// Set up listener to forward SyncPlay command state to native player diff --git a/lib/routes/auto_router.gr.dart b/lib/routes/auto_router.gr.dart index c724fcd22..c0eec5733 100644 --- a/lib/routes/auto_router.gr.dart +++ b/lib/routes/auto_router.gr.dart @@ -15,30 +15,23 @@ import 'package:auto_route/auto_route.dart' as _i31; import 'package:collection/collection.dart' as _i36; import 'package:fladder/models/item_base_model.dart' as _i33; import 'package:fladder/models/items/photos_model.dart' as _i37; -import 'package:fladder/models/library_search/library_search_options.dart' - as _i35; +import 'package:fladder/models/library_search/library_search_options.dart' as _i35; import 'package:fladder/models/seerr/seerr_dashboard_model.dart' as _i39; import 'package:fladder/routes/nested_details_screen.dart' as _i13; -import 'package:fladder/screens/control_panel/control_active_tasks_page.dart' - as _i3; -import 'package:fladder/screens/control_panel/control_dashboard_page.dart' - as _i4; -import 'package:fladder/screens/control_panel/control_libraries_page.dart' - as _i5; +import 'package:fladder/screens/control_panel/control_active_tasks_page.dart' as _i3; +import 'package:fladder/screens/control_panel/control_dashboard_page.dart' as _i4; +import 'package:fladder/screens/control_panel/control_libraries_page.dart' as _i5; import 'package:fladder/screens/control_panel/control_livetv_page.dart' as _i6; import 'package:fladder/screens/control_panel/control_panel_screen.dart' as _i7; -import 'package:fladder/screens/control_panel/control_panel_selection_screen.dart' - as _i8; +import 'package:fladder/screens/control_panel/control_panel_selection_screen.dart' as _i8; import 'package:fladder/screens/control_panel/control_server_page.dart' as _i9; -import 'package:fladder/screens/control_panel/control_user_edit_page.dart' - as _i10; +import 'package:fladder/screens/control_panel/control_user_edit_page.dart' as _i10; import 'package:fladder/screens/control_panel/control_users_page.dart' as _i11; import 'package:fladder/screens/dashboard/dashboard_screen.dart' as _i12; import 'package:fladder/screens/favourites/favourites_screen.dart' as _i14; import 'package:fladder/screens/home_screen.dart' as _i15; import 'package:fladder/screens/library/library_screen.dart' as _i16; -import 'package:fladder/screens/library_search/library_search_screen.dart' - as _i17; +import 'package:fladder/screens/library_search/library_search_screen.dart' as _i17; import 'package:fladder/screens/live_tv/live_tv_screen.dart' as _i18; import 'package:fladder/screens/login/lock_screen.dart' as _i19; import 'package:fladder/screens/login/login_screen.dart' as _i20; @@ -51,8 +44,7 @@ import 'package:fladder/screens/settings/client_settings_page.dart' as _i2; import 'package:fladder/screens/settings/player_settings_page.dart' as _i22; import 'package:fladder/screens/settings/profile_settings_page.dart' as _i23; import 'package:fladder/screens/settings/settings_screen.dart' as _i27; -import 'package:fladder/screens/settings/settings_selection_screen.dart' - as _i28; +import 'package:fladder/screens/settings/settings_selection_screen.dart' as _i28; import 'package:fladder/screens/splash_screen.dart' as _i29; import 'package:fladder/screens/syncing/synced_screen.dart' as _i30; import 'package:fladder/seerr/seerr_models.dart' as _i40; @@ -205,8 +197,7 @@ class ControlServerRoute extends _i31.PageRouteInfo { /// generated route for /// [_i10.ControlUserEditPage] -class ControlUserEditRoute - extends _i31.PageRouteInfo { +class ControlUserEditRoute extends _i31.PageRouteInfo { ControlUserEditRoute({ String? userId, _i32.Key? key, @@ -225,8 +216,7 @@ class ControlUserEditRoute builder: (data) { final queryParams = data.queryParams; final args = data.argsAs( - orElse: () => - ControlUserEditRouteArgs(userId: queryParams.optString('userId')), + orElse: () => ControlUserEditRouteArgs(userId: queryParams.optString('userId')), ); return _i10.ControlUserEditPage(userId: args.userId, key: args.key); }, @@ -275,8 +265,7 @@ class ControlUsersRoute extends _i31.PageRouteInfo { /// generated route for /// [_i12.DashboardScreen] class DashboardRoute extends _i31.PageRouteInfo { - const DashboardRoute({List<_i31.PageRouteInfo>? children}) - : super(DashboardRoute.name, initialChildren: children); + const DashboardRoute({List<_i31.PageRouteInfo>? children}) : super(DashboardRoute.name, initialChildren: children); static const String name = 'DashboardRoute'; @@ -343,10 +332,7 @@ class DetailsRouteArgs { bool operator ==(Object other) { if (identical(this, other)) return true; if (other is! DetailsRouteArgs) return false; - return id == other.id && - item == other.item && - tag == other.tag && - key == other.key; + return id == other.id && item == other.item && tag == other.tag && key == other.key; } @override @@ -356,8 +342,7 @@ class DetailsRouteArgs { /// generated route for /// [_i14.FavouritesScreen] class FavouritesRoute extends _i31.PageRouteInfo { - const FavouritesRoute({List<_i31.PageRouteInfo>? children}) - : super(FavouritesRoute.name, initialChildren: children); + const FavouritesRoute({List<_i31.PageRouteInfo>? children}) : super(FavouritesRoute.name, initialChildren: children); static const String name = 'FavouritesRoute'; @@ -372,8 +357,7 @@ class FavouritesRoute extends _i31.PageRouteInfo { /// generated route for /// [_i15.HomeScreen] class HomeRoute extends _i31.PageRouteInfo { - const HomeRoute({List<_i31.PageRouteInfo>? children}) - : super(HomeRoute.name, initialChildren: children); + const HomeRoute({List<_i31.PageRouteInfo>? children}) : super(HomeRoute.name, initialChildren: children); static const String name = 'HomeRoute'; @@ -388,8 +372,7 @@ class HomeRoute extends _i31.PageRouteInfo { /// generated route for /// [_i16.LibraryScreen] class LibraryRoute extends _i31.PageRouteInfo { - const LibraryRoute({List<_i31.PageRouteInfo>? children}) - : super(LibraryRoute.name, initialChildren: children); + const LibraryRoute({List<_i31.PageRouteInfo>? children}) : super(LibraryRoute.name, initialChildren: children); static const String name = 'LibraryRoute'; @@ -559,8 +542,7 @@ class LiveTvRoute extends _i31.PageRouteInfo { builder: (data) { final queryParams = data.queryParams; final args = data.argsAs( - orElse: () => - LiveTvRouteArgs(viewId: queryParams.getString('viewId', "")), + orElse: () => LiveTvRouteArgs(viewId: queryParams.getString('viewId', "")), ); return _i18.LiveTvScreen(viewId: args.viewId, key: args.key); }, @@ -593,8 +575,7 @@ class LiveTvRouteArgs { /// generated route for /// [_i19.LockScreen] class LockRoute extends _i31.PageRouteInfo { - const LockRoute({List<_i31.PageRouteInfo>? children}) - : super(LockRoute.name, initialChildren: children); + const LockRoute({List<_i31.PageRouteInfo>? children}) : super(LockRoute.name, initialChildren: children); static const String name = 'LockRoute'; @@ -609,8 +590,7 @@ class LockRoute extends _i31.PageRouteInfo { /// generated route for /// [_i20.LoginScreen] class LoginRoute extends _i31.PageRouteInfo { - const LoginRoute({List<_i31.PageRouteInfo>? children}) - : super(LoginRoute.name, initialChildren: children); + const LoginRoute({List<_i31.PageRouteInfo>? children}) : super(LoginRoute.name, initialChildren: children); static const String name = 'LoginRoute'; @@ -650,8 +630,7 @@ class PhotoViewerRoute extends _i31.PageRouteInfo { builder: (data) { final queryParams = data.queryParams; final args = data.argsAs( - orElse: () => - PhotoViewerRouteArgs(selected: queryParams.optString('selectedId')), + orElse: () => PhotoViewerRouteArgs(selected: queryParams.optString('selectedId')), ); return _i21.PhotoViewerScreen( items: args.items, @@ -695,11 +674,7 @@ class PhotoViewerRouteArgs { } @override - int get hashCode => - const _i36.ListEquality().hash(items) ^ - selected.hashCode ^ - loadingItems.hashCode ^ - key.hashCode; + int get hashCode => const _i36.ListEquality().hash(items) ^ selected.hashCode ^ loadingItems.hashCode ^ key.hashCode; } /// generated route for @@ -802,22 +777,17 @@ class SeerrDetailsRouteArgs { bool operator ==(Object other) { if (identical(this, other)) return true; if (other is! SeerrDetailsRouteArgs) return false; - return mediaType == other.mediaType && - tmdbId == other.tmdbId && - poster == other.poster && - key == other.key; + return mediaType == other.mediaType && tmdbId == other.tmdbId && poster == other.poster && key == other.key; } @override - int get hashCode => - mediaType.hashCode ^ tmdbId.hashCode ^ poster.hashCode ^ key.hashCode; + int get hashCode => mediaType.hashCode ^ tmdbId.hashCode ^ poster.hashCode ^ key.hashCode; } /// generated route for /// [_i25.SeerrScreen] class SeerrRoute extends _i31.PageRouteInfo { - const SeerrRoute({List<_i31.PageRouteInfo>? children}) - : super(SeerrRoute.name, initialChildren: children); + const SeerrRoute({List<_i31.PageRouteInfo>? children}) : super(SeerrRoute.name, initialChildren: children); static const String name = 'SeerrRoute'; @@ -893,8 +863,7 @@ class SeerrSearchRouteArgs { /// generated route for /// [_i27.SettingsScreen] class SettingsRoute extends _i31.PageRouteInfo { - const SettingsRoute({List<_i31.PageRouteInfo>? children}) - : super(SettingsRoute.name, initialChildren: children); + const SettingsRoute({List<_i31.PageRouteInfo>? children}) : super(SettingsRoute.name, initialChildren: children); static const String name = 'SettingsRoute'; @@ -974,8 +943,7 @@ class SplashRouteArgs { /// generated route for /// [_i30.SyncedScreen] class SyncedRoute extends _i31.PageRouteInfo { - const SyncedRoute({List<_i31.PageRouteInfo>? children}) - : super(SyncedRoute.name, initialChildren: children); + const SyncedRoute({List<_i31.PageRouteInfo>? children}) : super(SyncedRoute.name, initialChildren: children); static const String name = 'SyncedRoute'; diff --git a/lib/screens/video_player/components/video_player_speed_indicator.dart b/lib/screens/video_player/components/video_player_speed_indicator.dart index 40114f477..6367824d0 100644 --- a/lib/screens/video_player/components/video_player_speed_indicator.dart +++ b/lib/screens/video_player/components/video_player_speed_indicator.dart @@ -71,8 +71,8 @@ class _VideoPlayerSpeedIndicatorState extends ConsumerState json) => SeerrStatus( commitsBehind: (json['commitsBehind'] as num?)?.toInt(), ); -Map _$SeerrStatusToJson(SeerrStatus instance) => - { +Map _$SeerrStatusToJson(SeerrStatus instance) => { 'version': instance.version, 'commitTag': instance.commitTag, 'updateAvailable': instance.updateAvailable, 'commitsBehind': instance.commitsBehind, }; -SeerrUserQuota _$SeerrUserQuotaFromJson(Map json) => - SeerrUserQuota( - movie: json['movie'] == null - ? null - : SeerrQuotaEntry.fromJson(json['movie'] as Map), - tv: json['tv'] == null - ? null - : SeerrQuotaEntry.fromJson(json['tv'] as Map), +SeerrUserQuota _$SeerrUserQuotaFromJson(Map json) => SeerrUserQuota( + movie: json['movie'] == null ? null : SeerrQuotaEntry.fromJson(json['movie'] as Map), + tv: json['tv'] == null ? null : SeerrQuotaEntry.fromJson(json['tv'] as Map), ); -Map _$SeerrUserQuotaToJson(SeerrUserQuota instance) => - { +Map _$SeerrUserQuotaToJson(SeerrUserQuota instance) => { 'movie': instance.movie, 'tv': instance.tv, }; -SeerrQuotaEntry _$SeerrQuotaEntryFromJson(Map json) => - SeerrQuotaEntry( +SeerrQuotaEntry _$SeerrQuotaEntryFromJson(Map json) => SeerrQuotaEntry( days: (json['days'] as num?)?.toInt(), limit: (json['limit'] as num?)?.toInt(), used: (json['used'] as num?)?.toInt(), @@ -46,8 +38,7 @@ SeerrQuotaEntry _$SeerrQuotaEntryFromJson(Map json) => restricted: json['restricted'] as bool?, ); -Map _$SeerrQuotaEntryToJson(SeerrQuotaEntry instance) => - { +Map _$SeerrQuotaEntryToJson(SeerrQuotaEntry instance) => { 'days': instance.days, 'limit': instance.limit, 'used': instance.used, @@ -55,61 +46,47 @@ Map _$SeerrQuotaEntryToJson(SeerrQuotaEntry instance) => 'restricted': instance.restricted, }; -SeerrUserSettings _$SeerrUserSettingsFromJson(Map json) => - SeerrUserSettings( +SeerrUserSettings _$SeerrUserSettingsFromJson(Map json) => SeerrUserSettings( locale: json['locale'] as String?, discoverRegion: json['discoverRegion'] as String?, originalLanguage: json['originalLanguage'] as String?, ); -Map _$SeerrUserSettingsToJson(SeerrUserSettings instance) => - { +Map _$SeerrUserSettingsToJson(SeerrUserSettings instance) => { 'locale': instance.locale, 'discoverRegion': instance.discoverRegion, 'originalLanguage': instance.originalLanguage, }; -SeerrUsersResponse _$SeerrUsersResponseFromJson(Map json) => - SeerrUsersResponse( - results: (json['results'] as List?) - ?.map((e) => SeerrUserModel.fromJson(e as Map)) - .toList(), - pageInfo: json['pageInfo'] == null - ? null - : SeerrPageInfo.fromJson(json['pageInfo'] as Map), +SeerrUsersResponse _$SeerrUsersResponseFromJson(Map json) => SeerrUsersResponse( + results: + (json['results'] as List?)?.map((e) => SeerrUserModel.fromJson(e as Map)).toList(), + pageInfo: json['pageInfo'] == null ? null : SeerrPageInfo.fromJson(json['pageInfo'] as Map), ); -Map _$SeerrUsersResponseToJson(SeerrUsersResponse instance) => - { +Map _$SeerrUsersResponseToJson(SeerrUsersResponse instance) => { 'results': instance.results, 'pageInfo': instance.pageInfo, }; -SeerrContentRating _$SeerrContentRatingFromJson(Map json) => - SeerrContentRating( +SeerrContentRating _$SeerrContentRatingFromJson(Map json) => SeerrContentRating( countryCode: json['iso_3166_1'] as String?, rating: json['rating'] as String?, descriptors: json['descriptors'] as List?, ); -Map _$SeerrContentRatingToJson(SeerrContentRating instance) => - { +Map _$SeerrContentRatingToJson(SeerrContentRating instance) => { 'iso_3166_1': instance.countryCode, 'rating': instance.rating, 'descriptors': instance.descriptors, }; SeerrCredits _$SeerrCreditsFromJson(Map json) => SeerrCredits( - cast: (json['cast'] as List?) - ?.map((e) => SeerrCast.fromJson(e as Map)) - .toList(), - crew: (json['crew'] as List?) - ?.map((e) => SeerrCrew.fromJson(e as Map)) - .toList(), + cast: (json['cast'] as List?)?.map((e) => SeerrCast.fromJson(e as Map)).toList(), + crew: (json['crew'] as List?)?.map((e) => SeerrCrew.fromJson(e as Map)).toList(), ); -Map _$SeerrCreditsToJson(SeerrCredits instance) => - { +Map _$SeerrCreditsToJson(SeerrCredits instance) => { 'cast': instance.cast, 'crew': instance.crew, }; @@ -156,8 +133,7 @@ Map _$SeerrCrewToJson(SeerrCrew instance) => { 'profilePath': instance.internalProfilePath, }; -SeerrMovieDetails _$SeerrMovieDetailsFromJson(Map json) => - SeerrMovieDetails( +SeerrMovieDetails _$SeerrMovieDetailsFromJson(Map json) => SeerrMovieDetails( id: (json['id'] as num?)?.toInt(), title: json['title'] as String?, originalTitle: json['originalTitle'] as String?, @@ -168,28 +144,18 @@ SeerrMovieDetails _$SeerrMovieDetailsFromJson(Map json) => voteAverage: (json['voteAverage'] as num?)?.toDouble(), voteCount: (json['voteCount'] as num?)?.toInt(), runtime: (json['runtime'] as num?)?.toInt(), - genres: (json['genres'] as List?) - ?.map((e) => SeerrGenre.fromJson(e as Map)) - .toList(), - mediaInfo: json['mediaInfo'] == null - ? null - : SeerrMediaInfo.fromJson(json['mediaInfo'] as Map), - externalIds: json['externalIds'] == null - ? null - : SeerrExternalIds.fromJson( - json['externalIds'] as Map), - credits: json['credits'] == null - ? null - : SeerrCredits.fromJson(json['credits'] as Map), + genres: (json['genres'] as List?)?.map((e) => SeerrGenre.fromJson(e as Map)).toList(), + mediaInfo: json['mediaInfo'] == null ? null : SeerrMediaInfo.fromJson(json['mediaInfo'] as Map), + externalIds: + json['externalIds'] == null ? null : SeerrExternalIds.fromJson(json['externalIds'] as Map), + credits: json['credits'] == null ? null : SeerrCredits.fromJson(json['credits'] as Map), mediaId: _readJellyfinMediaId(json, 'mediaId') as String?, - contentRatings: (_readContentRatings(json, 'contentRatings') - as List?) + contentRatings: (_readContentRatings(json, 'contentRatings') as List?) ?.map((e) => SeerrContentRating.fromJson(e as Map)) .toList(), ); -Map _$SeerrMovieDetailsToJson(SeerrMovieDetails instance) => - { +Map _$SeerrMovieDetailsToJson(SeerrMovieDetails instance) => { 'id': instance.id, 'title': instance.title, 'originalTitle': instance.originalTitle, @@ -208,8 +174,7 @@ Map _$SeerrMovieDetailsToJson(SeerrMovieDetails instance) => 'contentRatings': instance.contentRatings, }; -SeerrTvDetails _$SeerrTvDetailsFromJson(Map json) => - SeerrTvDetails( +SeerrTvDetails _$SeerrTvDetailsFromJson(Map json) => SeerrTvDetails( id: (json['id'] as num?)?.toInt(), name: json['name'] as String?, originalName: json['originalName'] as String?, @@ -222,34 +187,22 @@ SeerrTvDetails _$SeerrTvDetailsFromJson(Map json) => voteCount: (json['voteCount'] as num?)?.toInt(), numberOfSeasons: (json['numberOfSeasons'] as num?)?.toInt(), numberOfEpisodes: (json['numberOfEpisodes'] as num?)?.toInt(), - genres: (json['genres'] as List?) - ?.map((e) => SeerrGenre.fromJson(e as Map)) - .toList(), - seasons: (json['seasons'] as List?) - ?.map((e) => SeerrSeason.fromJson(e as Map)) - .toList(), - mediaInfo: json['mediaInfo'] == null - ? null - : SeerrMediaInfo.fromJson(json['mediaInfo'] as Map), - externalIds: json['externalIds'] == null - ? null - : SeerrExternalIds.fromJson( - json['externalIds'] as Map), - keywords: (json['keywords'] as List?) - ?.map((e) => SeerrKeyword.fromJson(e as Map)) - .toList(), - credits: json['credits'] == null - ? null - : SeerrCredits.fromJson(json['credits'] as Map), + genres: (json['genres'] as List?)?.map((e) => SeerrGenre.fromJson(e as Map)).toList(), + seasons: + (json['seasons'] as List?)?.map((e) => SeerrSeason.fromJson(e as Map)).toList(), + mediaInfo: json['mediaInfo'] == null ? null : SeerrMediaInfo.fromJson(json['mediaInfo'] as Map), + externalIds: + json['externalIds'] == null ? null : SeerrExternalIds.fromJson(json['externalIds'] as Map), + keywords: + (json['keywords'] as List?)?.map((e) => SeerrKeyword.fromJson(e as Map)).toList(), + credits: json['credits'] == null ? null : SeerrCredits.fromJson(json['credits'] as Map), mediaId: _readJellyfinMediaId(json, 'mediaId') as String?, - contentRatings: (_readContentRatings(json, 'contentRatings') - as List?) + contentRatings: (_readContentRatings(json, 'contentRatings') as List?) ?.map((e) => SeerrContentRating.fromJson(e as Map)) .toList(), ); -Map _$SeerrTvDetailsToJson(SeerrTvDetails instance) => - { +Map _$SeerrTvDetailsToJson(SeerrTvDetails instance) => { 'id': instance.id, 'name': instance.name, 'originalName': instance.originalName, @@ -277,8 +230,7 @@ SeerrGenre _$SeerrGenreFromJson(Map json) => SeerrGenre( name: json['name'] as String?, ); -Map _$SeerrGenreToJson(SeerrGenre instance) => - { +Map _$SeerrGenreToJson(SeerrGenre instance) => { 'id': instance.id, 'name': instance.name, }; @@ -288,8 +240,7 @@ SeerrKeyword _$SeerrKeywordFromJson(Map json) => SeerrKeyword( name: json['name'] as String?, ); -Map _$SeerrKeywordToJson(SeerrKeyword instance) => - { +Map _$SeerrKeywordToJson(SeerrKeyword instance) => { 'id': instance.id, 'name': instance.name, }; @@ -304,8 +255,7 @@ SeerrSeason _$SeerrSeasonFromJson(Map json) => SeerrSeason( mediaId: _readJellyfinMediaId(json, 'mediaId') as String?, ); -Map _$SeerrSeasonToJson(SeerrSeason instance) => - { +Map _$SeerrSeasonToJson(SeerrSeason instance) => { 'id': instance.id, 'name': instance.name, 'overview': instance.overview, @@ -315,20 +265,17 @@ Map _$SeerrSeasonToJson(SeerrSeason instance) => 'mediaId': instance.mediaId, }; -SeerrSeasonDetails _$SeerrSeasonDetailsFromJson(Map json) => - SeerrSeasonDetails( +SeerrSeasonDetails _$SeerrSeasonDetailsFromJson(Map json) => SeerrSeasonDetails( id: (json['id'] as num?)?.toInt(), name: json['name'] as String?, overview: json['overview'] as String?, seasonNumber: (json['seasonNumber'] as num?)?.toInt(), internalPosterPath: json['posterPath'] as String?, - episodes: (json['episodes'] as List?) - ?.map((e) => SeerrEpisode.fromJson(e as Map)) - .toList(), + episodes: + (json['episodes'] as List?)?.map((e) => SeerrEpisode.fromJson(e as Map)).toList(), ); -Map _$SeerrSeasonDetailsToJson(SeerrSeasonDetails instance) => - { +Map _$SeerrSeasonDetailsToJson(SeerrSeasonDetails instance) => { 'id': instance.id, 'name': instance.name, 'overview': instance.overview, @@ -349,8 +296,7 @@ SeerrEpisode _$SeerrEpisodeFromJson(Map json) => SeerrEpisode( voteCount: (json['voteCount'] as num?)?.toInt(), ); -Map _$SeerrEpisodeToJson(SeerrEpisode instance) => - { +Map _$SeerrEpisodeToJson(SeerrEpisode instance) => { 'id': instance.id, 'name': instance.name, 'overview': instance.overview, @@ -362,8 +308,7 @@ Map _$SeerrEpisodeToJson(SeerrEpisode instance) => 'voteCount': instance.voteCount, }; -SeerrDownloadStatusEpisode _$SeerrDownloadStatusEpisodeFromJson( - Map json) => +SeerrDownloadStatusEpisode _$SeerrDownloadStatusEpisodeFromJson(Map json) => SeerrDownloadStatusEpisode( seriesId: (json['seriesId'] as num?)?.toInt(), tvdbId: (json['tvdbId'] as num?)?.toInt(), @@ -383,9 +328,7 @@ SeerrDownloadStatusEpisode _$SeerrDownloadStatusEpisodeFromJson( id: (json['id'] as num?)?.toInt(), ); -Map _$SeerrDownloadStatusEpisodeToJson( - SeerrDownloadStatusEpisode instance) => - { +Map _$SeerrDownloadStatusEpisodeToJson(SeerrDownloadStatusEpisode instance) => { 'seriesId': instance.seriesId, 'tvdbId': instance.tvdbId, 'episodeFileId': instance.episodeFileId, @@ -404,8 +347,7 @@ Map _$SeerrDownloadStatusEpisodeToJson( 'id': instance.id, }; -SeerrDownloadStatus _$SeerrDownloadStatusFromJson(Map json) => - SeerrDownloadStatus( +SeerrDownloadStatus _$SeerrDownloadStatusFromJson(Map json) => SeerrDownloadStatus( externalId: (json['externalId'] as num?)?.toInt(), estimatedCompletionTime: json['estimatedCompletionTime'] as String?, mediaType: json['mediaType'] as String?, @@ -414,16 +356,12 @@ SeerrDownloadStatus _$SeerrDownloadStatusFromJson(Map json) => status: json['status'] as String?, timeLeft: json['timeLeft'] as String?, title: json['title'] as String?, - episode: json['episode'] == null - ? null - : SeerrDownloadStatusEpisode.fromJson( - json['episode'] as Map), + episode: + json['episode'] == null ? null : SeerrDownloadStatusEpisode.fromJson(json['episode'] as Map), downloadId: json['downloadId'] as String?, ); -Map _$SeerrDownloadStatusToJson( - SeerrDownloadStatus instance) => - { +Map _$SeerrDownloadStatusToJson(SeerrDownloadStatus instance) => { 'externalId': instance.externalId, 'estimatedCompletionTime': instance.estimatedCompletionTime, 'mediaType': instance.mediaType, @@ -436,9 +374,7 @@ Map _$SeerrDownloadStatusToJson( 'downloadId': instance.downloadId, }; -SeerrMediaInfoSeason _$SeerrMediaInfoSeasonFromJson( - Map json) => - SeerrMediaInfoSeason( +SeerrMediaInfoSeason _$SeerrMediaInfoSeasonFromJson(Map json) => SeerrMediaInfoSeason( id: (json['id'] as num?)?.toInt(), seasonNumber: (json['seasonNumber'] as num?)?.toInt(), status: (json['status'] as num?)?.toInt(), @@ -446,9 +382,7 @@ SeerrMediaInfoSeason _$SeerrMediaInfoSeasonFromJson( updatedAt: json['updatedAt'] as String?, ); -Map _$SeerrMediaInfoSeasonToJson( - SeerrMediaInfoSeason instance) => - { +Map _$SeerrMediaInfoSeasonToJson(SeerrMediaInfoSeason instance) => { 'id': instance.id, 'seasonNumber': instance.seasonNumber, 'status': instance.status, @@ -456,42 +390,31 @@ Map _$SeerrMediaInfoSeasonToJson( 'updatedAt': instance.updatedAt, }; -SeerrExternalIds _$SeerrExternalIdsFromJson(Map json) => - SeerrExternalIds( +SeerrExternalIds _$SeerrExternalIdsFromJson(Map json) => SeerrExternalIds( imdbId: json['imdbId'] as String?, facebookId: json['facebookId'] as String?, instagramId: json['instagramId'] as String?, twitterId: json['twitterId'] as String?, ); -Map _$SeerrExternalIdsToJson(SeerrExternalIds instance) => - { +Map _$SeerrExternalIdsToJson(SeerrExternalIds instance) => { 'imdbId': instance.imdbId, 'facebookId': instance.facebookId, 'instagramId': instance.instagramId, 'twitterId': instance.twitterId, }; -SeerrRatingsResponse _$SeerrRatingsResponseFromJson( - Map json) => - SeerrRatingsResponse( - rt: json['rt'] == null - ? null - : SeerrRtRating.fromJson(json['rt'] as Map), - imdb: json['imdb'] == null - ? null - : SeerrImdbRating.fromJson(json['imdb'] as Map), +SeerrRatingsResponse _$SeerrRatingsResponseFromJson(Map json) => SeerrRatingsResponse( + rt: json['rt'] == null ? null : SeerrRtRating.fromJson(json['rt'] as Map), + imdb: json['imdb'] == null ? null : SeerrImdbRating.fromJson(json['imdb'] as Map), ); -Map _$SeerrRatingsResponseToJson( - SeerrRatingsResponse instance) => - { +Map _$SeerrRatingsResponseToJson(SeerrRatingsResponse instance) => { 'rt': instance.rt, 'imdb': instance.imdb, }; -SeerrRtRating _$SeerrRtRatingFromJson(Map json) => - SeerrRtRating( +SeerrRtRating _$SeerrRtRatingFromJson(Map json) => SeerrRtRating( title: json['title'] as String?, year: (json['year'] as num?)?.toInt(), criticsScore: (json['criticsScore'] as num?)?.toInt(), @@ -501,8 +424,7 @@ SeerrRtRating _$SeerrRtRatingFromJson(Map json) => url: json['url'] as String?, ); -Map _$SeerrRtRatingToJson(SeerrRtRating instance) => - { +Map _$SeerrRtRatingToJson(SeerrRtRating instance) => { 'title': instance.title, 'year': instance.year, 'criticsScore': instance.criticsScore, @@ -512,58 +434,40 @@ Map _$SeerrRtRatingToJson(SeerrRtRating instance) => 'url': instance.url, }; -SeerrImdbRating _$SeerrImdbRatingFromJson(Map json) => - SeerrImdbRating( +SeerrImdbRating _$SeerrImdbRatingFromJson(Map json) => SeerrImdbRating( title: json['title'] as String?, url: json['url'] as String?, criticsScore: (json['criticsScore'] as num?)?.toDouble(), ); -Map _$SeerrImdbRatingToJson(SeerrImdbRating instance) => - { +Map _$SeerrImdbRatingToJson(SeerrImdbRating instance) => { 'title': instance.title, 'url': instance.url, 'criticsScore': instance.criticsScore, }; -SeerrRequestsResponse _$SeerrRequestsResponseFromJson( - Map json) => - SeerrRequestsResponse( +SeerrRequestsResponse _$SeerrRequestsResponseFromJson(Map json) => SeerrRequestsResponse( results: (json['results'] as List?) ?.map((e) => SeerrMediaRequest.fromJson(e as Map)) .toList(), - pageInfo: json['pageInfo'] == null - ? null - : SeerrPageInfo.fromJson(json['pageInfo'] as Map), + pageInfo: json['pageInfo'] == null ? null : SeerrPageInfo.fromJson(json['pageInfo'] as Map), ); -Map _$SeerrRequestsResponseToJson( - SeerrRequestsResponse instance) => - { +Map _$SeerrRequestsResponseToJson(SeerrRequestsResponse instance) => { 'results': instance.results, 'pageInfo': instance.pageInfo, }; -SeerrMediaRequest _$SeerrMediaRequestFromJson(Map json) => - SeerrMediaRequest( +SeerrMediaRequest _$SeerrMediaRequestFromJson(Map json) => SeerrMediaRequest( id: (json['id'] as num?)?.toInt(), status: (json['status'] as num?)?.toInt(), - media: json['media'] == null - ? null - : SeerrMedia.fromJson(json['media'] as Map), - createdAt: json['createdAt'] == null - ? null - : DateTime.parse(json['createdAt'] as String), - updatedAt: json['updatedAt'] == null - ? null - : DateTime.parse(json['updatedAt'] as String), - requestedBy: json['requestedBy'] == null - ? null - : SeerrUserModel.fromJson( - json['requestedBy'] as Map), - modifiedBy: json['modifiedBy'] == null - ? null - : SeerrUserModel.fromJson(json['modifiedBy'] as Map), + media: json['media'] == null ? null : SeerrMedia.fromJson(json['media'] as Map), + createdAt: json['createdAt'] == null ? null : DateTime.parse(json['createdAt'] as String), + updatedAt: json['updatedAt'] == null ? null : DateTime.parse(json['updatedAt'] as String), + requestedBy: + json['requestedBy'] == null ? null : SeerrUserModel.fromJson(json['requestedBy'] as Map), + modifiedBy: + json['modifiedBy'] == null ? null : SeerrUserModel.fromJson(json['modifiedBy'] as Map), is4k: json['is4k'] as bool?, seasons: _parseRequestSeasons(json['seasons'] as List?), serverId: (json['serverId'] as num?)?.toInt(), @@ -571,8 +475,7 @@ SeerrMediaRequest _$SeerrMediaRequestFromJson(Map json) => rootFolder: json['rootFolder'] as String?, ); -Map _$SeerrMediaRequestToJson(SeerrMediaRequest instance) => - { +Map _$SeerrMediaRequestToJson(SeerrMediaRequest instance) => { 'id': instance.id, 'status': instance.status, 'media': instance.media, @@ -587,43 +490,33 @@ Map _$SeerrMediaRequestToJson(SeerrMediaRequest instance) => 'rootFolder': instance.rootFolder, }; -SeerrPageInfo _$SeerrPageInfoFromJson(Map json) => - SeerrPageInfo( +SeerrPageInfo _$SeerrPageInfoFromJson(Map json) => SeerrPageInfo( pages: (json['pages'] as num?)?.toInt(), pageSize: (json['pageSize'] as num?)?.toInt(), results: (json['results'] as num?)?.toInt(), page: (json['page'] as num?)?.toInt(), ); -Map _$SeerrPageInfoToJson(SeerrPageInfo instance) => - { +Map _$SeerrPageInfoToJson(SeerrPageInfo instance) => { 'pages': instance.pages, 'pageSize': instance.pageSize, 'results': instance.results, 'page': instance.page, }; -SeerrCreateRequestBody _$SeerrCreateRequestBodyFromJson( - Map json) => - SeerrCreateRequestBody( +SeerrCreateRequestBody _$SeerrCreateRequestBodyFromJson(Map json) => SeerrCreateRequestBody( mediaType: json['mediaType'] as String?, mediaId: (json['mediaId'] as num?)?.toInt(), is4k: json['is4k'] as bool?, - seasons: (json['seasons'] as List?) - ?.map((e) => (e as num).toInt()) - .toList(), + seasons: (json['seasons'] as List?)?.map((e) => (e as num).toInt()).toList(), serverId: (json['serverId'] as num?)?.toInt(), profileId: (json['profileId'] as num?)?.toInt(), rootFolder: json['rootFolder'] as String?, - tags: (json['tags'] as List?) - ?.map((e) => (e as num).toInt()) - .toList(), + tags: (json['tags'] as List?)?.map((e) => (e as num).toInt()).toList(), userId: (json['userId'] as num?)?.toInt(), ); -Map _$SeerrCreateRequestBodyToJson( - SeerrCreateRequestBody instance) => - { +Map _$SeerrCreateRequestBodyToJson(SeerrCreateRequestBody instance) => { 'mediaType': instance.mediaType, 'mediaId': instance.mediaId, 'is4k': instance.is4k, @@ -646,8 +539,7 @@ SeerrMedia _$SeerrMediaFromJson(Map json) => SeerrMedia( .toList(), ); -Map _$SeerrMediaToJson(SeerrMedia instance) => - { +Map _$SeerrMediaToJson(SeerrMedia instance) => { 'id': instance.id, 'tmdbId': instance.tmdbId, 'tvdbId': instance.tvdbId, @@ -656,27 +548,19 @@ Map _$SeerrMediaToJson(SeerrMedia instance) => 'requests': instance.requests, }; -SeerrMediaResponse _$SeerrMediaResponseFromJson(Map json) => - SeerrMediaResponse( - results: (json['results'] as List?) - ?.map((e) => SeerrMedia.fromJson(e as Map)) - .toList(), - pageInfo: json['pageInfo'] == null - ? null - : SeerrPageInfo.fromJson(json['pageInfo'] as Map), +SeerrMediaResponse _$SeerrMediaResponseFromJson(Map json) => SeerrMediaResponse( + results: (json['results'] as List?)?.map((e) => SeerrMedia.fromJson(e as Map)).toList(), + pageInfo: json['pageInfo'] == null ? null : SeerrPageInfo.fromJson(json['pageInfo'] as Map), ); -Map _$SeerrMediaResponseToJson(SeerrMediaResponse instance) => - { +Map _$SeerrMediaResponseToJson(SeerrMediaResponse instance) => { 'results': instance.results, 'pageInfo': instance.pageInfo, }; -SeerrDiscoverItem _$SeerrDiscoverItemFromJson(Map json) => - SeerrDiscoverItem( +SeerrDiscoverItem _$SeerrDiscoverItemFromJson(Map json) => SeerrDiscoverItem( id: (json['id'] as num?)?.toInt(), - mediaType: - $enumDecodeNullable(_$SeerrMediaTypeEnumMap, json['mediaType']), + mediaType: $enumDecodeNullable(_$SeerrMediaTypeEnumMap, json['mediaType']), title: json['title'] as String?, name: json['name'] as String?, originalTitle: json['originalTitle'] as String?, @@ -686,14 +570,11 @@ SeerrDiscoverItem _$SeerrDiscoverItemFromJson(Map json) => internalBackdropPath: json['backdropPath'] as String?, releaseDate: json['releaseDate'] as String?, firstAirDate: json['firstAirDate'] as String?, - mediaInfo: json['mediaInfo'] == null - ? null - : SeerrMediaInfo.fromJson(json['mediaInfo'] as Map), + mediaInfo: json['mediaInfo'] == null ? null : SeerrMediaInfo.fromJson(json['mediaInfo'] as Map), mediaId: _readJellyfinMediaId(json, 'mediaId') as String?, ); -Map _$SeerrDiscoverItemToJson(SeerrDiscoverItem instance) => - { +Map _$SeerrDiscoverItemToJson(SeerrDiscoverItem instance) => { 'id': instance.id, 'mediaType': _$SeerrMediaTypeEnumMap[instance.mediaType], 'title': instance.title, @@ -715,9 +596,7 @@ const _$SeerrMediaTypeEnumMap = { SeerrMediaType.person: 'person', }; -SeerrDiscoverResponse _$SeerrDiscoverResponseFromJson( - Map json) => - SeerrDiscoverResponse( +SeerrDiscoverResponse _$SeerrDiscoverResponseFromJson(Map json) => SeerrDiscoverResponse( results: (json['results'] as List?) ?.map((e) => SeerrDiscoverItem.fromJson(e as Map)) .toList(), @@ -726,107 +605,82 @@ SeerrDiscoverResponse _$SeerrDiscoverResponseFromJson( totalResults: (json['totalResults'] as num?)?.toInt(), ); -Map _$SeerrDiscoverResponseToJson( - SeerrDiscoverResponse instance) => - { +Map _$SeerrDiscoverResponseToJson(SeerrDiscoverResponse instance) => { 'results': instance.results, 'page': instance.page, 'totalPages': instance.totalPages, 'totalResults': instance.totalResults, }; -SeerrGenreResponse _$SeerrGenreResponseFromJson(Map json) => - SeerrGenreResponse( - genres: (json['genres'] as List?) - ?.map((e) => SeerrGenre.fromJson(e as Map)) - .toList(), +SeerrGenreResponse _$SeerrGenreResponseFromJson(Map json) => SeerrGenreResponse( + genres: (json['genres'] as List?)?.map((e) => SeerrGenre.fromJson(e as Map)).toList(), ); -Map _$SeerrGenreResponseToJson(SeerrGenreResponse instance) => - { +Map _$SeerrGenreResponseToJson(SeerrGenreResponse instance) => { 'genres': instance.genres, }; -SeerrWatchProvider _$SeerrWatchProviderFromJson(Map json) => - SeerrWatchProvider( +SeerrWatchProvider _$SeerrWatchProviderFromJson(Map json) => SeerrWatchProvider( providerId: (json['id'] as num?)?.toInt(), providerName: json['name'] as String?, internalLogoPath: json['logoPath'] as String?, displayPriority: (json['displayPriority'] as num?)?.toInt(), ); -Map _$SeerrWatchProviderToJson(SeerrWatchProvider instance) => - { +Map _$SeerrWatchProviderToJson(SeerrWatchProvider instance) => { 'id': instance.providerId, 'name': instance.providerName, 'logoPath': instance.internalLogoPath, 'displayPriority': instance.displayPriority, }; -SeerrWatchProviderRegion _$SeerrWatchProviderRegionFromJson( - Map json) => - SeerrWatchProviderRegion( +SeerrWatchProviderRegion _$SeerrWatchProviderRegionFromJson(Map json) => SeerrWatchProviderRegion( iso31661: json['iso_3166_1'] as String?, englishName: json['english_name'] as String?, nativeName: json['native_name'] as String?, ); -Map _$SeerrWatchProviderRegionToJson( - SeerrWatchProviderRegion instance) => - { +Map _$SeerrWatchProviderRegionToJson(SeerrWatchProviderRegion instance) => { 'iso_3166_1': instance.iso31661, 'english_name': instance.englishName, 'native_name': instance.nativeName, }; -SeerrCertification _$SeerrCertificationFromJson(Map json) => - SeerrCertification( +SeerrCertification _$SeerrCertificationFromJson(Map json) => SeerrCertification( certification: json['certification'] as String?, meaning: json['meaning'] as String?, order: (json['order'] as num?)?.toInt(), ); -Map _$SeerrCertificationToJson(SeerrCertification instance) => - { +Map _$SeerrCertificationToJson(SeerrCertification instance) => { 'certification': instance.certification, 'meaning': instance.meaning, 'order': instance.order, }; -SeerrCertificationsResponse _$SeerrCertificationsResponseFromJson( - Map json) => +SeerrCertificationsResponse _$SeerrCertificationsResponseFromJson(Map json) => SeerrCertificationsResponse( certifications: (json['certifications'] as Map?)?.map( (k, e) => MapEntry( - k, - (e as List) - .map((e) => - SeerrCertification.fromJson(e as Map)) - .toList()), + k, (e as List).map((e) => SeerrCertification.fromJson(e as Map)).toList()), ), ); -Map _$SeerrCertificationsResponseToJson( - SeerrCertificationsResponse instance) => - { +Map _$SeerrCertificationsResponseToJson(SeerrCertificationsResponse instance) => { 'certifications': instance.certifications, }; -SeerrAuthLocalBody _$SeerrAuthLocalBodyFromJson(Map json) => - SeerrAuthLocalBody( +SeerrAuthLocalBody _$SeerrAuthLocalBodyFromJson(Map json) => SeerrAuthLocalBody( email: json['email'] as String, password: json['password'] as String, ); -Map _$SeerrAuthLocalBodyToJson(SeerrAuthLocalBody instance) => - { +Map _$SeerrAuthLocalBodyToJson(SeerrAuthLocalBody instance) => { 'email': instance.email, 'password': instance.password, }; -SeerrAuthJellyfinBody _$SeerrAuthJellyfinBodyFromJson( - Map json) => - SeerrAuthJellyfinBody( +SeerrAuthJellyfinBody _$SeerrAuthJellyfinBodyFromJson(Map json) => SeerrAuthJellyfinBody( username: json['username'] as String, password: json['password'] as String, customHeaders: (json['customHeaders'] as Map?)?.map( @@ -835,17 +689,14 @@ SeerrAuthJellyfinBody _$SeerrAuthJellyfinBodyFromJson( hostname: json['hostname'] as String?, ); -Map _$SeerrAuthJellyfinBodyToJson( - SeerrAuthJellyfinBody instance) => - { +Map _$SeerrAuthJellyfinBodyToJson(SeerrAuthJellyfinBody instance) => { 'username': instance.username, 'password': instance.password, if (instance.customHeaders case final value?) 'customHeaders': value, if (instance.hostname case final value?) 'hostname': value, }; -_SeerrUserModel _$SeerrUserModelFromJson(Map json) => - _SeerrUserModel( +_SeerrUserModel _$SeerrUserModelFromJson(Map json) => _SeerrUserModel( id: (json['id'] as num?)?.toInt(), email: json['email'] as String?, username: json['username'] as String?, @@ -854,18 +705,14 @@ _SeerrUserModel _$SeerrUserModelFromJson(Map json) => plexUsername: json['plexUsername'] as String?, permissions: (json['permissions'] as num?)?.toInt(), avatar: json['avatar'] as String?, - settings: json['settings'] == null - ? null - : SeerrUserSettings.fromJson( - json['settings'] as Map), + settings: json['settings'] == null ? null : SeerrUserSettings.fromJson(json['settings'] as Map), movieQuotaLimit: (json['movieQuotaLimit'] as num?)?.toInt(), movieQuotaDays: (json['movieQuotaDays'] as num?)?.toInt(), tvQuotaLimit: (json['tvQuotaLimit'] as num?)?.toInt(), tvQuotaDays: (json['tvQuotaDays'] as num?)?.toInt(), ); -Map _$SeerrUserModelToJson(_SeerrUserModel instance) => - { +Map _$SeerrUserModelToJson(_SeerrUserModel instance) => { 'id': instance.id, 'email': instance.email, 'username': instance.username, @@ -881,8 +728,7 @@ Map _$SeerrUserModelToJson(_SeerrUserModel instance) => 'tvQuotaDays': instance.tvQuotaDays, }; -_SeerrSonarrServer _$SeerrSonarrServerFromJson(Map json) => - _SeerrSonarrServer( +_SeerrSonarrServer _$SeerrSonarrServerFromJson(Map json) => _SeerrSonarrServer( id: (json['id'] as num?)?.toInt(), name: json['name'] as String?, hostname: json['hostname'] as String?, @@ -892,12 +738,10 @@ _SeerrSonarrServer _$SeerrSonarrServerFromJson(Map json) => baseUrl: json['baseUrl'] as String?, activeProfileId: (json['activeProfileId'] as num?)?.toInt(), activeProfileName: json['activeProfileName'] as String?, - activeLanguageProfileId: - (json['activeLanguageProfileId'] as num?)?.toInt(), + activeLanguageProfileId: (json['activeLanguageProfileId'] as num?)?.toInt(), activeDirectory: json['activeDirectory'] as String?, activeAnimeProfileId: (json['activeAnimeProfileId'] as num?)?.toInt(), - activeAnimeLanguageProfileId: - (json['activeAnimeLanguageProfileId'] as num?)?.toInt(), + activeAnimeLanguageProfileId: (json['activeAnimeLanguageProfileId'] as num?)?.toInt(), activeAnimeProfileName: json['activeAnimeProfileName'] as String?, activeAnimeDirectory: json['activeAnimeDirectory'] as String?, is4k: json['is4k'] as bool?, @@ -908,19 +752,14 @@ _SeerrSonarrServer _$SeerrSonarrServerFromJson(Map json) => profiles: (json['profiles'] as List?) ?.map((e) => SeerrServiceProfile.fromJson(e as Map)) .toList(), - tags: (json['tags'] as List?) - ?.map((e) => SeerrServiceTag.fromJson(e as Map)) - .toList(), + tags: (json['tags'] as List?)?.map((e) => SeerrServiceTag.fromJson(e as Map)).toList(), rootFolders: (json['rootFolders'] as List?) ?.map((e) => SeerrRootFolder.fromJson(e as Map)) .toList(), - activeTags: (json['activeTags'] as List?) - ?.map((e) => (e as num).toInt()) - .toList(), + activeTags: (json['activeTags'] as List?)?.map((e) => (e as num).toInt()).toList(), ); -Map _$SeerrSonarrServerToJson(_SeerrSonarrServer instance) => - { +Map _$SeerrSonarrServerToJson(_SeerrSonarrServer instance) => { 'id': instance.id, 'name': instance.name, 'hostname': instance.hostname, @@ -947,34 +786,25 @@ Map _$SeerrSonarrServerToJson(_SeerrSonarrServer instance) => 'activeTags': instance.activeTags, }; -_SeerrSonarrServerResponse _$SeerrSonarrServerResponseFromJson( - Map json) => - _SeerrSonarrServerResponse( - server: json['server'] == null - ? null - : SeerrSonarrServer.fromJson(json['server'] as Map), +_SeerrSonarrServerResponse _$SeerrSonarrServerResponseFromJson(Map json) => _SeerrSonarrServerResponse( + server: json['server'] == null ? null : SeerrSonarrServer.fromJson(json['server'] as Map), profiles: (json['profiles'] as List?) ?.map((e) => SeerrServiceProfile.fromJson(e as Map)) .toList(), rootFolders: (json['rootFolders'] as List?) ?.map((e) => SeerrRootFolder.fromJson(e as Map)) .toList(), - tags: (json['tags'] as List?) - ?.map((e) => SeerrServiceTag.fromJson(e as Map)) - .toList(), + tags: (json['tags'] as List?)?.map((e) => SeerrServiceTag.fromJson(e as Map)).toList(), ); -Map _$SeerrSonarrServerResponseToJson( - _SeerrSonarrServerResponse instance) => - { +Map _$SeerrSonarrServerResponseToJson(_SeerrSonarrServerResponse instance) => { 'server': instance.server, 'profiles': instance.profiles, 'rootFolders': instance.rootFolders, 'tags': instance.tags, }; -_SeerrRadarrServer _$SeerrRadarrServerFromJson(Map json) => - _SeerrRadarrServer( +_SeerrRadarrServer _$SeerrRadarrServerFromJson(Map json) => _SeerrRadarrServer( id: (json['id'] as num?)?.toInt(), name: json['name'] as String?, hostname: json['hostname'] as String?, @@ -984,12 +814,10 @@ _SeerrRadarrServer _$SeerrRadarrServerFromJson(Map json) => baseUrl: json['baseUrl'] as String?, activeProfileId: (json['activeProfileId'] as num?)?.toInt(), activeProfileName: json['activeProfileName'] as String?, - activeLanguageProfileId: - (json['activeLanguageProfileId'] as num?)?.toInt(), + activeLanguageProfileId: (json['activeLanguageProfileId'] as num?)?.toInt(), activeDirectory: json['activeDirectory'] as String?, activeAnimeProfileId: (json['activeAnimeProfileId'] as num?)?.toInt(), - activeAnimeLanguageProfileId: - (json['activeAnimeLanguageProfileId'] as num?)?.toInt(), + activeAnimeLanguageProfileId: (json['activeAnimeLanguageProfileId'] as num?)?.toInt(), activeAnimeProfileName: json['activeAnimeProfileName'] as String?, activeAnimeDirectory: json['activeAnimeDirectory'] as String?, is4k: json['is4k'] as bool?, @@ -1000,19 +828,14 @@ _SeerrRadarrServer _$SeerrRadarrServerFromJson(Map json) => profiles: (json['profiles'] as List?) ?.map((e) => SeerrServiceProfile.fromJson(e as Map)) .toList(), - tags: (json['tags'] as List?) - ?.map((e) => SeerrServiceTag.fromJson(e as Map)) - .toList(), + tags: (json['tags'] as List?)?.map((e) => SeerrServiceTag.fromJson(e as Map)).toList(), rootFolders: (json['rootFolders'] as List?) ?.map((e) => SeerrRootFolder.fromJson(e as Map)) .toList(), - activeTags: (json['activeTags'] as List?) - ?.map((e) => (e as num).toInt()) - .toList(), + activeTags: (json['activeTags'] as List?)?.map((e) => (e as num).toInt()).toList(), ); -Map _$SeerrRadarrServerToJson(_SeerrRadarrServer instance) => - { +Map _$SeerrRadarrServerToJson(_SeerrRadarrServer instance) => { 'id': instance.id, 'name': instance.name, 'hostname': instance.hostname, @@ -1039,73 +862,57 @@ Map _$SeerrRadarrServerToJson(_SeerrRadarrServer instance) => 'activeTags': instance.activeTags, }; -_SeerrRadarrServerResponse _$SeerrRadarrServerResponseFromJson( - Map json) => - _SeerrRadarrServerResponse( - server: json['server'] == null - ? null - : SeerrRadarrServer.fromJson(json['server'] as Map), +_SeerrRadarrServerResponse _$SeerrRadarrServerResponseFromJson(Map json) => _SeerrRadarrServerResponse( + server: json['server'] == null ? null : SeerrRadarrServer.fromJson(json['server'] as Map), profiles: (json['profiles'] as List?) ?.map((e) => SeerrServiceProfile.fromJson(e as Map)) .toList(), rootFolders: (json['rootFolders'] as List?) ?.map((e) => SeerrRootFolder.fromJson(e as Map)) .toList(), - tags: (json['tags'] as List?) - ?.map((e) => SeerrServiceTag.fromJson(e as Map)) - .toList(), + tags: (json['tags'] as List?)?.map((e) => SeerrServiceTag.fromJson(e as Map)).toList(), ); -Map _$SeerrRadarrServerResponseToJson( - _SeerrRadarrServerResponse instance) => - { +Map _$SeerrRadarrServerResponseToJson(_SeerrRadarrServerResponse instance) => { 'server': instance.server, 'profiles': instance.profiles, 'rootFolders': instance.rootFolders, 'tags': instance.tags, }; -_SeerrServiceProfile _$SeerrServiceProfileFromJson(Map json) => - _SeerrServiceProfile( +_SeerrServiceProfile _$SeerrServiceProfileFromJson(Map json) => _SeerrServiceProfile( id: (json['id'] as num?)?.toInt(), name: json['name'] as String?, ); -Map _$SeerrServiceProfileToJson( - _SeerrServiceProfile instance) => - { +Map _$SeerrServiceProfileToJson(_SeerrServiceProfile instance) => { 'id': instance.id, 'name': instance.name, }; -_SeerrServiceTag _$SeerrServiceTagFromJson(Map json) => - _SeerrServiceTag( +_SeerrServiceTag _$SeerrServiceTagFromJson(Map json) => _SeerrServiceTag( id: (json['id'] as num?)?.toInt(), label: json['label'] as String?, ); -Map _$SeerrServiceTagToJson(_SeerrServiceTag instance) => - { +Map _$SeerrServiceTagToJson(_SeerrServiceTag instance) => { 'id': instance.id, 'label': instance.label, }; -_SeerrRootFolder _$SeerrRootFolderFromJson(Map json) => - _SeerrRootFolder( +_SeerrRootFolder _$SeerrRootFolderFromJson(Map json) => _SeerrRootFolder( id: (json['id'] as num?)?.toInt(), freeSpace: (json['freeSpace'] as num?)?.toInt(), path: json['path'] as String?, ); -Map _$SeerrRootFolderToJson(_SeerrRootFolder instance) => - { +Map _$SeerrRootFolderToJson(_SeerrRootFolder instance) => { 'id': instance.id, 'freeSpace': instance.freeSpace, 'path': instance.path, }; -_SeerrMediaInfo _$SeerrMediaInfoFromJson(Map json) => - _SeerrMediaInfo( +_SeerrMediaInfo _$SeerrMediaInfoFromJson(Map json) => _SeerrMediaInfo( id: (json['id'] as num?)?.toInt(), tmdbId: (json['tmdbId'] as num?)?.toInt(), tvdbId: (json['tvdbId'] as num?)?.toInt(), @@ -1127,8 +934,7 @@ _SeerrMediaInfo _$SeerrMediaInfoFromJson(Map json) => .toList(), ); -Map _$SeerrMediaInfoToJson(_SeerrMediaInfo instance) => - { +Map _$SeerrMediaInfoToJson(_SeerrMediaInfo instance) => { 'id': instance.id, 'tmdbId': instance.tmdbId, 'tvdbId': instance.tvdbId, diff --git a/lib/src/battery_optimization_pigeon.g.dart b/lib/src/battery_optimization_pigeon.g.dart index de26360b8..ab3ee0acc 100644 --- a/lib/src/battery_optimization_pigeon.g.dart +++ b/lib/src/battery_optimization_pigeon.g.dart @@ -15,7 +15,6 @@ PlatformException _createConnectionError(String channelName) { ); } - class _PigeonCodec extends StandardMessageCodec { const _PigeonCodec(); @override @@ -52,15 +51,15 @@ class BatteryOptimizationPigeon { /// Returns whether the app is currently *ignored* from battery optimizations. Future isIgnoringBatteryOptimizations() async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.nl_jknaapen_fladder.settings.BatteryOptimizationPigeon.isIgnoringBatteryOptimizations$pigeonVar_messageChannelSuffix'; + final String pigeonVar_channelName = + 'dev.flutter.pigeon.nl_jknaapen_fladder.settings.BatteryOptimizationPigeon.isIgnoringBatteryOptimizations$pigeonVar_messageChannelSuffix'; final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); final Future pigeonVar_sendFuture = pigeonVar_channel.send(null); - final List? pigeonVar_replyList = - await pigeonVar_sendFuture as List?; + final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { throw _createConnectionError(pigeonVar_channelName); } else if (pigeonVar_replyList.length > 1) { @@ -81,15 +80,15 @@ class BatteryOptimizationPigeon { /// Opens the battery-optimization/settings screen for this app (Android). Future openBatteryOptimizationSettings() async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.nl_jknaapen_fladder.settings.BatteryOptimizationPigeon.openBatteryOptimizationSettings$pigeonVar_messageChannelSuffix'; + final String pigeonVar_channelName = + 'dev.flutter.pigeon.nl_jknaapen_fladder.settings.BatteryOptimizationPigeon.openBatteryOptimizationSettings$pigeonVar_messageChannelSuffix'; final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); final Future pigeonVar_sendFuture = pigeonVar_channel.send(null); - final List? pigeonVar_replyList = - await pigeonVar_sendFuture as List?; + final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { throw _createConnectionError(pigeonVar_channelName); } else if (pigeonVar_replyList.length > 1) { diff --git a/lib/src/video_player_helper.g.dart b/lib/src/video_player_helper.g.dart index 6cc2e58db..e23bf452d 100644 --- a/lib/src/video_player_helper.g.dart +++ b/lib/src/video_player_helper.g.dart @@ -752,7 +752,8 @@ class SubtitleSettings { } Object encode() { - return _toList(); } + return _toList(); + } static SubtitleSettings decode(Object result) { result as List; @@ -782,8 +783,7 @@ class SubtitleSettings { @override // ignore: avoid_equals_and_hash_code_on_mutable_classes - int get hashCode => Object.hashAll(_toList()) -; + int get hashCode => Object.hashAll(_toList()); } class TVGuideModel { @@ -1031,7 +1031,7 @@ class _PigeonCodec extends StandardMessageCodec { } else if (value is TVGuideModel) { buffer.putUint8(143); writeValue(buffer, value.encode()); - } else if (value is GuideChannel) { + } else if (value is GuideChannel) { buffer.putUint8(143); writeValue(buffer, value.encode()); } else if (value is GuideProgram) { @@ -1470,15 +1470,15 @@ class VideoPlayerApi { } Future setSubtitleSettings(SubtitleSettings settings) async { - final String pigeonVar_channelName = 'dev.flutter.pigeon.nl_jknaapen_fladder.video.VideoPlayerApi.setSubtitleSettings$pigeonVar_messageChannelSuffix'; + final String pigeonVar_channelName = + 'dev.flutter.pigeon.nl_jknaapen_fladder.video.VideoPlayerApi.setSubtitleSettings$pigeonVar_messageChannelSuffix'; final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); final Future pigeonVar_sendFuture = pigeonVar_channel.send([settings]); - final List? pigeonVar_replyList = - await pigeonVar_sendFuture as List?; + final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { throw _createConnectionError(pigeonVar_channelName); } else if (pigeonVar_replyList.length > 1) { diff --git a/lib/util/application_info.freezed.dart b/lib/util/application_info.freezed.dart index 1aabbb0b6..beda5c207 100644 --- a/lib/util/application_info.freezed.dart +++ b/lib/util/application_info.freezed.dart @@ -113,16 +113,13 @@ extension ApplicationInfoPatterns on ApplicationInfo { @optionalTypeArgs TResult maybeWhen( - TResult Function(String name, String version, String buildNumber, - TargetPlatform platform)? - $default, { + TResult Function(String name, String version, String buildNumber, TargetPlatform platform)? $default, { required TResult orElse(), }) { final _that = this; switch (_that) { case _ApplicationInfo() when $default != null: - return $default( - _that.name, _that.version, _that.buildNumber, _that.platform); + return $default(_that.name, _that.version, _that.buildNumber, _that.platform); case _: return orElse(); } @@ -143,15 +140,12 @@ extension ApplicationInfoPatterns on ApplicationInfo { @optionalTypeArgs TResult when( - TResult Function(String name, String version, String buildNumber, - TargetPlatform platform) - $default, + TResult Function(String name, String version, String buildNumber, TargetPlatform platform) $default, ) { final _that = this; switch (_that) { case _ApplicationInfo(): - return $default( - _that.name, _that.version, _that.buildNumber, _that.platform); + return $default(_that.name, _that.version, _that.buildNumber, _that.platform); case _: throw StateError('Unexpected subclass'); } @@ -171,15 +165,12 @@ extension ApplicationInfoPatterns on ApplicationInfo { @optionalTypeArgs TResult? whenOrNull( - TResult? Function(String name, String version, String buildNumber, - TargetPlatform platform)? - $default, + TResult? Function(String name, String version, String buildNumber, TargetPlatform platform)? $default, ) { final _that = this; switch (_that) { case _ApplicationInfo() when $default != null: - return $default( - _that.name, _that.version, _that.buildNumber, _that.platform); + return $default(_that.name, _that.version, _that.buildNumber, _that.platform); case _: return null; } @@ -189,11 +180,7 @@ extension ApplicationInfoPatterns on ApplicationInfo { /// @nodoc class _ApplicationInfo extends ApplicationInfo { - _ApplicationInfo( - {required this.name, - required this.version, - required this.buildNumber, - required this.platform}) + _ApplicationInfo({required this.name, required this.version, required this.buildNumber, required this.platform}) : super._(); @override diff --git a/lib/util/item_base_model/play_item_helpers.dart b/lib/util/item_base_model/play_item_helpers.dart index 9419538c9..5be37137a 100644 --- a/lib/util/item_base_model/play_item_helpers.dart +++ b/lib/util/item_base_model/play_item_helpers.dart @@ -1,15 +1,8 @@ import 'dart:developer'; -import 'package:flutter/foundation.dart'; -import 'package:flutter/material.dart'; - import 'package:async/async.dart'; import 'package:auto_route/auto_route.dart'; import 'package:collection/collection.dart'; -import 'package:flutter_riverpod/flutter_riverpod.dart'; -import 'package:iconsax_plus/iconsax_plus.dart'; -import 'package:square_progress_indicator/square_progress_indicator.dart'; - import 'package:fladder/models/book_model.dart'; import 'package:fladder/models/item_base_model.dart'; import 'package:fladder/models/items/channel_model.dart'; @@ -36,6 +29,8 @@ import 'package:fladder/widgets/full_screen_helpers/full_screen_wrapper.dart'; import 'package:flutter/foundation.dart'; import 'package:flutter/material.dart'; import 'package:flutter_riverpod/flutter_riverpod.dart'; +import 'package:iconsax_plus/iconsax_plus.dart'; +import 'package:square_progress_indicator/square_progress_indicator.dart'; import '../../models/syncplay/syncplay_models.dart'; @@ -280,22 +275,22 @@ extension ItemBaseModelsBooleans on List { } // If in SyncPlay group, set the queue via SyncPlay - final isSyncPlayActive = ref.read(isSyncPlayActiveProvider); - if (isSyncPlayActive) { - Navigator.of(context, rootNavigator: true).pop(); // Pop loading indicator - await ref.read(syncPlayProvider.notifier).setNewQueue( - itemIds: expandedList.map((e) => e.id).toList(), - playingItemPosition: 0, - startPositionTicks: 0, - ); - return; - } + final isSyncPlayActive = ref.read(isSyncPlayActiveProvider); + if (isSyncPlayActive) { + Navigator.of(context, rootNavigator: true).pop(); // Pop loading indicator + await ref.read(syncPlayProvider.notifier).setNewQueue( + itemIds: expandedList.map((e) => e.id).toList(), + playingItemPosition: 0, + startPositionTicks: 0, + ); + return (null, expandedList); + } - PlaybackModel? model = await ref.read(playbackModelHelper).createPlaybackModel( - context, - expandedList.firstOrNull, - libraryQueue: expandedList, - ); + PlaybackModel? model = await ref.read(playbackModelHelper).createPlaybackModel( + context, + expandedList.firstOrNull, + libraryQueue: expandedList, + ); return (model, expandedList); })); @@ -318,6 +313,14 @@ extension ItemBaseModelsBooleans on List { final PlaybackModel? model = result.$1; final List expandedList = result.$2; + // SyncPlay path: queue was set via setNewQueue, no local PlaybackModel + if (model == null && expandedList.isNotEmpty) { + if (context.mounted) { + RefreshState.maybeOf(context)?.refresh(); + } + return; + } + if (context.mounted) { await _playVideo(context, ref: ref, queue: expandedList, current: model, cancelOperation: op); if (context.mounted) { diff --git a/lib/widgets/navigation_scaffold/components/side_navigation_bar.dart b/lib/widgets/navigation_scaffold/components/side_navigation_bar.dart index e3942f935..900726127 100644 --- a/lib/widgets/navigation_scaffold/components/side_navigation_bar.dart +++ b/lib/widgets/navigation_scaffold/components/side_navigation_bar.dart @@ -1,10 +1,5 @@ -import 'package:flutter/material.dart'; - import 'package:auto_route/auto_route.dart'; import 'package:collection/collection.dart'; -import 'package:flutter_riverpod/flutter_riverpod.dart'; -import 'package:iconsax_plus/iconsax_plus.dart'; - import 'package:fladder/models/collection_types.dart'; import 'package:fladder/models/settings/client_settings_model.dart'; import 'package:fladder/providers/settings/client_settings_provider.dart'; @@ -29,6 +24,9 @@ import 'package:fladder/widgets/shared/item_actions.dart'; import 'package:fladder/widgets/shared/modal_bottom_sheet.dart'; import 'package:fladder/widgets/shared/simple_overflow_widget.dart'; import 'package:fladder/widgets/syncplay/syncplay_fab.dart'; +import 'package:flutter/material.dart'; +import 'package:flutter_riverpod/flutter_riverpod.dart'; +import 'package:iconsax_plus/iconsax_plus.dart'; final navBarNode = FocusNode(); diff --git a/lib/widgets/syncplay/syncplay_group_sheet.dart b/lib/widgets/syncplay/syncplay_group_sheet.dart index 8cbb6c477..81a5fbdfc 100644 --- a/lib/widgets/syncplay/syncplay_group_sheet.dart +++ b/lib/widgets/syncplay/syncplay_group_sheet.dart @@ -6,7 +6,7 @@ import 'package:iconsax_plus/iconsax_plus.dart'; import 'package:fladder/jellyfin/jellyfin_open_api.swagger.dart'; import 'package:fladder/models/syncplay/syncplay_models.dart'; import 'package:fladder/providers/syncplay/syncplay_provider.dart'; -import 'package:fladder/screens/shared/fladder_snackbar.dart'; +import 'package:fladder/screens/shared/fladder_notification_overlay.dart'; import 'package:fladder/theme.dart'; import 'package:fladder/util/adaptive_layout/adaptive_layout.dart'; import 'package:fladder/util/localization_helper.dart'; @@ -39,12 +39,12 @@ class _SyncPlayGroupSheetState extends ConsumerState { final group = await ref.read(syncPlayProvider.notifier).createGroup(name); if (group != null && mounted) { - fladderSnackbar(context, title: context.localized.syncPlayCreatedGroup(group.groupName ?? '')); + FladderSnack.show(context.localized.syncPlayCreatedGroup(group.groupName ?? ''), context: context); Navigator.of(context).pop(); } else { if (mounted) { ref.read(syncPlayGroupsProvider.notifier).setLoading(false); - fladderSnackbar(context, title: context.localized.syncPlayFailedToCreateGroup); + FladderSnack.show(context.localized.syncPlayFailedToCreateGroup, context: context); } } } @@ -83,12 +83,12 @@ class _SyncPlayGroupSheetState extends ConsumerState { final success = await ref.read(syncPlayProvider.notifier).joinGroup(group.groupId ?? ''); if (success && mounted) { - fladderSnackbar(context, title: context.localized.syncPlayJoinedGroup(group.groupName ?? '')); + FladderSnack.show(context.localized.syncPlayJoinedGroup(group.groupName ?? ''), context: context); Navigator.of(context).pop(); } else { if (mounted) { ref.read(syncPlayGroupsProvider.notifier).setLoading(false); - fladderSnackbar(context, title: context.localized.syncPlayFailedToJoinGroup); + FladderSnack.show(context.localized.syncPlayFailedToJoinGroup, context: context); } } } @@ -96,7 +96,7 @@ class _SyncPlayGroupSheetState extends ConsumerState { Future _leaveGroup() async { await ref.read(syncPlayProvider.notifier).leaveGroup(); if (mounted) { - fladderSnackbar(context, title: context.localized.syncPlayLeftGroup); + FladderSnack.show(context.localized.syncPlayLeftGroup, context: context); Navigator.of(context).pop(); } } From 2ab1978ae29e2372dab94c1b475451b668b4b7da Mon Sep 17 00:00:00 2001 From: Filip Iricanin Date: Sat, 21 Mar 2026 12:51:29 +0100 Subject: [PATCH 18/25] feat: implement playback drift correction and enhance SyncPlay synchronization - Implement a playback drift correction system introducing `SpeedToSync` (playback rate adjustment) and `SkipToSync` (seeking) strategies to maintain alignment with the group. - Add `SyncCorrectionConfig` and `SyncCorrectionState` models to define thresholds and track synchronization attempts. - Update `SyncPlayController` to calculate drift against estimated server time and manage correction timers and cooldowns. - Enhance `SyncPlayCommandHandler` to reorder the "Unpause" sequence (seek before play) for smoother alignment and add guards for correction logic. - Optimize `VideoPlayerProvider` and `PlaybackModel` to distinguish between local track switches and group-initiated reloads, preventing unnecessary group-wide pauses during local adjustments. - Update `SyncPlayCommandIndicator` and `SyncPlayBadge` UI components to provide visual feedback when synchronization strategies are active. - Refactor `SyncPlayProvider` to expose new states for correction runtime and strategy monitoring. - Clean up code formatting and update boilerplate across various generated files, including OpenAPI swagger clients, Freezed models, and Mappable classes. - Ensure `routerProvider` is correctly initialized in `BaseAppWrapper`. --- lib/bootstrap/platform/base_app_wrapper.dart | 7 + .../jellyfin_open_api.swagger.chopper.dart | 683 +- lib/jellyfin/jellyfin_open_api.swagger.dart | 11771 +++++++++++----- lib/jellyfin/jellyfin_open_api.swagger.g.dart | 5844 +++++--- lib/models/account_model.freezed.dart | 148 +- lib/models/account_model.g.dart | 44 +- lib/models/boxset_model.mapper.dart | 66 +- lib/models/credentials_model.freezed.dart | 63 +- lib/models/credentials_model.g.dart | 6 +- .../home_preferences_model.freezed.dart | 84 +- lib/models/item_base_model.mapper.dart | 53 +- lib/models/items/channel_program.freezed.dart | 3 +- lib/models/items/channel_program.g.dart | 10 +- lib/models/items/episode_model.mapper.dart | 80 +- lib/models/items/folder_model.mapper.dart | 66 +- .../items/item_properties_model.freezed.dart | 3 +- .../items/item_shared_models.mapper.dart | 53 +- .../items/item_stream_model.mapper.dart | 63 +- .../items/media_segments_model.freezed.dart | 18 +- lib/models/items/media_segments_model.g.dart | 19 +- lib/models/items/movie_model.mapper.dart | 177 +- lib/models/items/overview_model.mapper.dart | 127 +- lib/models/items/person_model.mapper.dart | 86 +- lib/models/items/photos_model.mapper.dart | 135 +- lib/models/items/season_model.mapper.dart | 102 +- lib/models/items/series_model.mapper.dart | 192 +- .../items/special_feature_model.mapper.dart | 87 +- .../items/trick_play_model.freezed.dart | 63 +- lib/models/items/trick_play_model.g.dart | 11 +- ...last_seen_notifications_model.freezed.dart | 81 +- .../last_seen_notifications_model.g.dart | 20 +- lib/models/library_filter_model.freezed.dart | 24 +- lib/models/library_filter_model.g.dart | 36 +- lib/models/library_filters_model.freezed.dart | 59 +- lib/models/library_filters_model.g.dart | 10 +- .../library_search_model.freezed.dart | 25 +- lib/models/live_tv_model.freezed.dart | 47 +- lib/models/login_screen_model.freezed.dart | 136 +- lib/models/notification_model.freezed.dart | 24 +- lib/models/notification_model.g.dart | 6 +- lib/models/playback/playback_model.dart | 31 +- .../seerr_credentials_model.freezed.dart | 55 +- lib/models/seerr_credentials_model.g.dart | 8 +- .../settings/arguments_model.freezed.dart | 28 +- .../client_settings_model.freezed.dart | 45 +- .../settings/home_settings_model.freezed.dart | 57 +- .../settings/home_settings_model.g.dart | 38 +- .../settings/key_combinations.freezed.dart | 30 +- lib/models/settings/key_combinations.g.dart | 16 +- .../video_player_settings.freezed.dart | 38 +- .../settings/video_player_settings.g.dart | 55 +- lib/models/syncing/database_item.g.dart | 525 +- .../syncing/sync_settings_model.freezed.dart | 18 +- lib/models/syncplay/syncplay_models.dart | 132 + .../syncplay/syncplay_models.freezed.dart | 199 +- lib/providers/api_provider.g.dart | 6 +- lib/providers/connectivity_provider.g.dart | 10 +- .../control_active_tasks_provider.g.dart | 10 +- .../control_activity_provider.freezed.dart | 99 +- .../control_activity_provider.g.dart | 7 +- .../control_dashboard_provider.freezed.dart | 60 +- .../control_dashboard_provider.g.dart | 7 +- ...rol_device_discovery_provider.freezed.dart | 28 +- .../control_device_discovery_provider.g.dart | 14 +- .../control_libraries_provider.freezed.dart | 57 +- .../control_libraries_provider.g.dart | 7 +- .../control_livetv_provider.freezed.dart | 18 +- .../control_livetv_provider.g.dart | 7 +- .../control_server_provider.freezed.dart | 54 +- .../control_server_provider.g.dart | 7 +- .../control_tuner_edit_provider.freezed.dart | 21 +- .../control_tuner_edit_provider.g.dart | 32 +- .../control_users_provider.freezed.dart | 60 +- .../control_users_provider.g.dart | 6 +- lib/providers/cultures_provider.g.dart | 6 +- .../directory_browser_provider.freezed.dart | 59 +- .../directory_browser_provider.g.dart | 7 +- lib/providers/discovery_provider.g.dart | 7 +- lib/providers/discovery_provider.mapper.dart | 15 +- .../items/channel_details_provider.g.dart | 23 +- .../items/movies_details_provider.g.dart | 23 +- lib/providers/library_filters_provider.g.dart | 27 +- .../library_screen_provider.freezed.dart | 62 +- lib/providers/library_screen_provider.g.dart | 7 +- lib/providers/live_tv_provider.g.dart | 3 +- .../seerr/seerr_details_provider.freezed.dart | 18 +- .../seerr/seerr_details_provider.g.dart | 26 +- .../seerr/seerr_request_provider.freezed.dart | 30 +- .../seerr/seerr_request_provider.g.dart | 6 +- lib/providers/seerr_api_provider.g.dart | 8 +- lib/providers/seerr_dashboard_provider.g.dart | 7 +- .../seerr_search_provider.freezed.dart | 21 +- lib/providers/seerr_search_provider.g.dart | 6 +- lib/providers/seerr_user_provider.g.dart | 6 +- .../session_info_provider.freezed.dart | 12 +- lib/providers/session_info_provider.g.dart | 15 +- .../sync/background_download_provider.g.dart | 10 +- .../sync/sync_provider_helpers.g.dart | 124 +- .../handlers/syncplay_command_handler.dart | 59 +- .../handlers/syncplay_message_handler.dart | 8 +- .../syncplay/syncplay_controller.dart | 303 +- lib/providers/syncplay/syncplay_provider.dart | 44 + .../syncplay/syncplay_provider.freezed.dart | 39 +- .../syncplay/syncplay_provider.g.dart | 73 +- lib/providers/syncplay/time_sync_service.dart | 24 +- lib/providers/update_provider.g.dart | 3 +- lib/providers/user_provider.g.dart | 10 +- lib/providers/video_player_provider.dart | 99 +- lib/screens/login/login_code_dialog.dart | 40 +- .../syncplay_command_indicator.dart | 25 +- .../video_player_options_sheet.dart | 10 +- .../video_player_screenshot_indicator.dart | 10 +- lib/seerr/seerr_chopper_service.chopper.dart | 63 +- lib/seerr/seerr_models.freezed.dart | 287 +- lib/seerr/seerr_models.g.dart | 476 +- lib/util/application_info.freezed.dart | 27 +- lib/widgets/syncplay/syncplay_badge.dart | 29 +- lib/widgets/syncplay/syncplay_extensions.dart | 22 + lib/wrappers/media_control_wrapper.dart | 10 +- 119 files changed, 17010 insertions(+), 7496 deletions(-) diff --git a/lib/bootstrap/platform/base_app_wrapper.dart b/lib/bootstrap/platform/base_app_wrapper.dart index 29242469e..10577b281 100644 --- a/lib/bootstrap/platform/base_app_wrapper.dart +++ b/lib/bootstrap/platform/base_app_wrapper.dart @@ -17,6 +17,7 @@ import 'package:fladder/providers/update_notifications_provider.dart'; import 'package:fladder/providers/user_provider.dart'; import 'package:fladder/providers/video_player_provider.dart'; import 'package:fladder/routes/auto_router.dart'; +import 'package:fladder/providers/router_provider.dart'; import 'package:fladder/routes/auto_router.gr.dart'; import 'package:fladder/screens/login/lock_screen.dart'; import 'package:fladder/services/notification_service.dart'; @@ -46,6 +47,12 @@ abstract class BaseAppWrapperState extends ConsumerSta @override void initState() { super.initState(); + WidgetsBinding.instance.addPostFrameCallback((_) { + if (!mounted) { + return; + } + ref.read(routerProvider.notifier).state = autoRouter; + }); WidgetsBinding.instance.addObserver(this); WidgetsBinding.instance.addPostFrameCallback((_) async { ref.read(sharedUtilityProvider).loadSettings(); diff --git a/lib/jellyfin/jellyfin_open_api.swagger.chopper.dart b/lib/jellyfin/jellyfin_open_api.swagger.chopper.dart index ed5b89a87..b9aedab7e 100644 --- a/lib/jellyfin/jellyfin_open_api.swagger.chopper.dart +++ b/lib/jellyfin/jellyfin_open_api.swagger.chopper.dart @@ -38,7 +38,8 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { client.baseUrl, parameters: $params, ); - return client.send($request); + return client.send($request); } @override @@ -49,7 +50,8 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { $url, client.baseUrl, ); - return client.send($request); + return client.send($request); } @override @@ -152,7 +154,8 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { client.baseUrl, parameters: $params, ); - return client.send($request); + return client + .send($request); } @override @@ -247,7 +250,8 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { client.baseUrl, parameters: $params, ); - return client.send($request); + return client + .send($request); } @override @@ -716,7 +720,8 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { } @override - Future> _backupCreatePost({required BackupOptionsDto? body}) { + Future> _backupCreatePost( + {required BackupOptionsDto? body}) { final Uri $url = Uri.parse('/Backup/Create'); final $body = body; final Request $request = Request( @@ -729,7 +734,8 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { } @override - Future> _backupManifestGet({required String? path}) { + Future> _backupManifestGet( + {required String? path}) { final Uri $url = Uri.parse('/Backup/Manifest'); final Map $params = {'path': path}; final Request $request = Request( @@ -742,7 +748,8 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { } @override - Future> _backupRestorePost({required BackupRestoreRequestDto? body}) { + Future> _backupRestorePost( + {required BackupRestoreRequestDto? body}) { final Uri $url = Uri.parse('/Backup/Restore'); final $body = body; final Request $request = Request( @@ -811,11 +818,13 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { client.baseUrl, parameters: $params, ); - return client.send($request); + return client + .send($request); } @override - Future> _channelsChannelIdFeaturesGet({required String? channelId}) { + Future> _channelsChannelIdFeaturesGet( + {required String? channelId}) { final Uri $url = Uri.parse('/Channels/${channelId}/Features'); final Request $request = Request( 'GET', @@ -854,7 +863,8 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { client.baseUrl, parameters: $params, ); - return client.send($request); + return client + .send($request); } @override @@ -892,11 +902,13 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { client.baseUrl, parameters: $params, ); - return client.send($request); + return client + .send($request); } @override - Future> _clientLogDocumentPost({required Object? body}) { + Future> _clientLogDocumentPost( + {required Object? body}) { final Uri $url = Uri.parse('/ClientLog/Document'); final $body = body; final Request $request = Request( @@ -905,7 +917,8 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { client.baseUrl, body: $body, ); - return client.send($request); + return client.send($request); } @override @@ -928,7 +941,8 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { client.baseUrl, parameters: $params, ); - return client.send($request); + return client + .send($request); } @override @@ -975,7 +989,8 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { } @override - Future> _systemConfigurationPost({required ServerConfiguration? body}) { + Future> _systemConfigurationPost( + {required ServerConfiguration? body}) { final Uri $url = Uri.parse('/System/Configuration'); final $body = body; final Request $request = Request( @@ -1015,7 +1030,8 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { } @override - Future> _systemConfigurationBrandingPost({required BrandingOptionsDto? body}) { + Future> _systemConfigurationBrandingPost( + {required BrandingOptionsDto? body}) { final Uri $url = Uri.parse('/System/Configuration/Branding'); final $body = body; final Request $request = Request( @@ -1028,7 +1044,8 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { } @override - Future> _systemConfigurationMetadataOptionsDefaultGet() { + Future> + _systemConfigurationMetadataOptionsDefaultGet() { final Uri $url = Uri.parse('/System/Configuration/MetadataOptions/Default'); final Request $request = Request( 'GET', @@ -1052,16 +1069,20 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { } @override - Future>> _webConfigurationPagesGet({bool? enableInMainMenu}) { + Future>> _webConfigurationPagesGet( + {bool? enableInMainMenu}) { final Uri $url = Uri.parse('/web/ConfigurationPages'); - final Map $params = {'enableInMainMenu': enableInMainMenu}; + final Map $params = { + 'enableInMainMenu': enableInMainMenu + }; final Request $request = Request( 'GET', $url, client.baseUrl, parameters: $params, ); - return client.send, ConfigurationPageInfo>($request); + return client + .send, ConfigurationPageInfo>($request); } @override @@ -1074,7 +1095,8 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { client.baseUrl, parameters: $params, ); - return client.send($request); + return client + .send($request); } @override @@ -1135,7 +1157,8 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { } @override - Future> _displayPreferencesDisplayPreferencesIdGet({ + Future> + _displayPreferencesDisplayPreferencesIdGet({ required String? displayPreferencesId, String? userId, required String? $client, @@ -1235,7 +1258,8 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { Object? streamOptions, bool? enableAudioVbrEncoding, }) { - final Uri $url = Uri.parse('/Audio/${itemId}/hls1/${playlistId}/${segmentId}.${container}'); + final Uri $url = Uri.parse( + '/Audio/${itemId}/hls1/${playlistId}/${segmentId}.${container}'); final Map $params = { 'runtimeTicks': runtimeTicks, 'actualSegmentLengthTicks': actualSegmentLengthTicks, @@ -1704,7 +1728,8 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { bool? enableAudioVbrEncoding, bool? alwaysBurnInSubtitleWhenTranscoding, }) { - final Uri $url = Uri.parse('/Videos/${itemId}/hls1/${playlistId}/${segmentId}.${container}'); + final Uri $url = Uri.parse( + '/Videos/${itemId}/hls1/${playlistId}/${segmentId}.${container}'); final Map $params = { 'runtimeTicks': runtimeTicks, 'actualSegmentLengthTicks': actualSegmentLengthTicks, @@ -1758,7 +1783,8 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { 'context': context, 'streamOptions': streamOptions, 'enableAudioVbrEncoding': enableAudioVbrEncoding, - 'alwaysBurnInSubtitleWhenTranscoding': alwaysBurnInSubtitleWhenTranscoding, + 'alwaysBurnInSubtitleWhenTranscoding': + alwaysBurnInSubtitleWhenTranscoding, }; final Request $request = Request( 'GET', @@ -1880,7 +1906,8 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { 'maxHeight': maxHeight, 'enableSubtitlesInManifest': enableSubtitlesInManifest, 'enableAudioVbrEncoding': enableAudioVbrEncoding, - 'alwaysBurnInSubtitleWhenTranscoding': alwaysBurnInSubtitleWhenTranscoding, + 'alwaysBurnInSubtitleWhenTranscoding': + alwaysBurnInSubtitleWhenTranscoding, }; final Request $request = Request( 'GET', @@ -1998,7 +2025,8 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { 'context': context, 'streamOptions': streamOptions, 'enableAudioVbrEncoding': enableAudioVbrEncoding, - 'alwaysBurnInSubtitleWhenTranscoding': alwaysBurnInSubtitleWhenTranscoding, + 'alwaysBurnInSubtitleWhenTranscoding': + alwaysBurnInSubtitleWhenTranscoding, }; final Request $request = Request( 'GET', @@ -2120,7 +2148,8 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { 'enableAdaptiveBitrateStreaming': enableAdaptiveBitrateStreaming, 'enableTrickplay': enableTrickplay, 'enableAudioVbrEncoding': enableAudioVbrEncoding, - 'alwaysBurnInSubtitleWhenTranscoding': alwaysBurnInSubtitleWhenTranscoding, + 'alwaysBurnInSubtitleWhenTranscoding': + alwaysBurnInSubtitleWhenTranscoding, }; final Request $request = Request( 'GET', @@ -2242,7 +2271,8 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { 'enableAdaptiveBitrateStreaming': enableAdaptiveBitrateStreaming, 'enableTrickplay': enableTrickplay, 'enableAudioVbrEncoding': enableAudioVbrEncoding, - 'alwaysBurnInSubtitleWhenTranscoding': alwaysBurnInSubtitleWhenTranscoding, + 'alwaysBurnInSubtitleWhenTranscoding': + alwaysBurnInSubtitleWhenTranscoding, }; final Request $request = Request( 'HEAD', @@ -2254,14 +2284,16 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { } @override - Future> _environmentDefaultDirectoryBrowserGet() { + Future> + _environmentDefaultDirectoryBrowserGet() { final Uri $url = Uri.parse('/Environment/DefaultDirectoryBrowser'); final Request $request = Request( 'GET', $url, client.baseUrl, ); - return client.send($request); + return client.send($request); } @override @@ -2282,7 +2314,8 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { client.baseUrl, parameters: $params, ); - return client.send, FileSystemEntryInfo>($request); + return client + .send, FileSystemEntryInfo>($request); } @override @@ -2293,7 +2326,8 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { $url, client.baseUrl, ); - return client.send, FileSystemEntryInfo>($request); + return client + .send, FileSystemEntryInfo>($request); } @override @@ -2304,7 +2338,8 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { $url, client.baseUrl, ); - return client.send, FileSystemEntryInfo>($request); + return client + .send, FileSystemEntryInfo>($request); } @override @@ -2321,7 +2356,8 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { } @override - Future> _environmentValidatePathPost({required ValidatePathDto? body}) { + Future> _environmentValidatePathPost( + {required ValidatePathDto? body}) { final Uri $url = Uri.parse('/Environment/ValidatePath'); final $body = body; final Request $request = Request( @@ -2439,7 +2475,8 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { client.baseUrl, parameters: $params, ); - return client.send($request); + return client + .send($request); } @override @@ -2487,13 +2524,15 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { } @override - Future> _videosItemIdHlsPlaylistIdSegmentIdSegmentContainerGet({ + Future> + _videosItemIdHlsPlaylistIdSegmentIdSegmentContainerGet({ required String? itemId, required String? playlistId, required String? segmentId, required String? segmentContainer, }) { - final Uri $url = Uri.parse('/Videos/${itemId}/hls/${playlistId}/${segmentId}.${segmentContainer}'); + final Uri $url = Uri.parse( + '/Videos/${itemId}/hls/${playlistId}/${segmentId}.${segmentContainer}'); final Request $request = Request( 'GET', $url, @@ -2507,7 +2546,8 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { required String? itemId, required String? playlistId, }) { - final Uri $url = Uri.parse('/Videos/${itemId}/hls/${playlistId}/stream.m3u8'); + final Uri $url = + Uri.parse('/Videos/${itemId}/hls/${playlistId}/stream.m3u8'); final Request $request = Request( 'GET', $url, @@ -2555,7 +2595,8 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { String? foregroundLayer, required int? imageIndex, }) { - final Uri $url = Uri.parse('/Artists/${name}/Images/${imageType}/${imageIndex}'); + final Uri $url = + Uri.parse('/Artists/${name}/Images/${imageType}/${imageIndex}'); final Map $params = { 'tag': tag, 'format': format, @@ -2601,7 +2642,8 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { String? foregroundLayer, required int? imageIndex, }) { - final Uri $url = Uri.parse('/Artists/${name}/Images/${imageType}/${imageIndex}'); + final Uri $url = + Uri.parse('/Artists/${name}/Images/${imageType}/${imageIndex}'); final Map $params = { 'tag': tag, 'format': format, @@ -2784,7 +2826,8 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { String? backgroundColor, String? foregroundLayer, }) { - final Uri $url = Uri.parse('/Genres/${name}/Images/${imageType}/${imageIndex}'); + final Uri $url = + Uri.parse('/Genres/${name}/Images/${imageType}/${imageIndex}'); final Map $params = { 'tag': tag, 'format': format, @@ -2830,7 +2873,8 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { String? backgroundColor, String? foregroundLayer, }) { - final Uri $url = Uri.parse('/Genres/${name}/Images/${imageType}/${imageIndex}'); + final Uri $url = + Uri.parse('/Genres/${name}/Images/${imageType}/${imageIndex}'); final Map $params = { 'tag': tag, 'format': format, @@ -2857,7 +2901,8 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { } @override - Future>> _itemsItemIdImagesGet({required String? itemId}) { + Future>> _itemsItemIdImagesGet( + {required String? itemId}) { final Uri $url = Uri.parse('/Items/${itemId}/Images'); final Request $request = Request( 'GET', @@ -2874,7 +2919,9 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { int? imageIndex, }) { final Uri $url = Uri.parse('/Items/${itemId}/Images/${imageType}'); - final Map $params = {'imageIndex': imageIndex}; + final Map $params = { + 'imageIndex': imageIndex + }; final Request $request = Request( 'DELETE', $url, @@ -3001,7 +3048,8 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { required String? imageType, required int? imageIndex, }) { - final Uri $url = Uri.parse('/Items/${itemId}/Images/${imageType}/${imageIndex}'); + final Uri $url = + Uri.parse('/Items/${itemId}/Images/${imageType}/${imageIndex}'); final Request $request = Request( 'DELETE', $url, @@ -3017,7 +3065,8 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { required int? imageIndex, required Object? body, }) { - final Uri $url = Uri.parse('/Items/${itemId}/Images/${imageType}/${imageIndex}'); + final Uri $url = + Uri.parse('/Items/${itemId}/Images/${imageType}/${imageIndex}'); final $body = body; final Request $request = Request( 'POST', @@ -3048,7 +3097,8 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { String? backgroundColor, String? foregroundLayer, }) { - final Uri $url = Uri.parse('/Items/${itemId}/Images/${imageType}/${imageIndex}'); + final Uri $url = + Uri.parse('/Items/${itemId}/Images/${imageType}/${imageIndex}'); final Map $params = { 'maxWidth': maxWidth, 'maxHeight': maxHeight, @@ -3094,7 +3144,8 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { String? backgroundColor, String? foregroundLayer, }) { - final Uri $url = Uri.parse('/Items/${itemId}/Images/${imageType}/${imageIndex}'); + final Uri $url = + Uri.parse('/Items/${itemId}/Images/${imageType}/${imageIndex}'); final Map $params = { 'maxWidth': maxWidth, 'maxHeight': maxHeight, @@ -3211,8 +3262,11 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { required int? imageIndex, required int? newIndex, }) { - final Uri $url = Uri.parse('/Items/${itemId}/Images/${imageType}/${imageIndex}/Index'); - final Map $params = {'newIndex': newIndex}; + final Uri $url = + Uri.parse('/Items/${itemId}/Images/${imageType}/${imageIndex}/Index'); + final Map $params = { + 'newIndex': newIndex + }; final Request $request = Request( 'POST', $url, @@ -3336,7 +3390,8 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { String? backgroundColor, String? foregroundLayer, }) { - final Uri $url = Uri.parse('/MusicGenres/${name}/Images/${imageType}/${imageIndex}'); + final Uri $url = + Uri.parse('/MusicGenres/${name}/Images/${imageType}/${imageIndex}'); final Map $params = { 'tag': tag, 'format': format, @@ -3382,7 +3437,8 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { String? backgroundColor, String? foregroundLayer, }) { - final Uri $url = Uri.parse('/MusicGenres/${name}/Images/${imageType}/${imageIndex}'); + final Uri $url = + Uri.parse('/MusicGenres/${name}/Images/${imageType}/${imageIndex}'); final Map $params = { 'tag': tag, 'format': format, @@ -3522,7 +3578,8 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { String? backgroundColor, String? foregroundLayer, }) { - final Uri $url = Uri.parse('/Persons/${name}/Images/${imageType}/${imageIndex}'); + final Uri $url = + Uri.parse('/Persons/${name}/Images/${imageType}/${imageIndex}'); final Map $params = { 'tag': tag, 'format': format, @@ -3568,7 +3625,8 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { String? backgroundColor, String? foregroundLayer, }) { - final Uri $url = Uri.parse('/Persons/${name}/Images/${imageType}/${imageIndex}'); + final Uri $url = + Uri.parse('/Persons/${name}/Images/${imageType}/${imageIndex}'); final Map $params = { 'tag': tag, 'format': format, @@ -3708,7 +3766,8 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { String? backgroundColor, String? foregroundLayer, }) { - final Uri $url = Uri.parse('/Studios/${name}/Images/${imageType}/${imageIndex}'); + final Uri $url = + Uri.parse('/Studios/${name}/Images/${imageType}/${imageIndex}'); final Map $params = { 'tag': tag, 'format': format, @@ -3754,7 +3813,8 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { String? backgroundColor, String? foregroundLayer, }) { - final Uri $url = Uri.parse('/Studios/${name}/Images/${imageType}/${imageIndex}'); + final Uri $url = + Uri.parse('/Studios/${name}/Images/${imageType}/${imageIndex}'); final Map $params = { 'tag': tag, 'format': format, @@ -3880,7 +3940,8 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { client.baseUrl, parameters: $params, ); - return client.send($request); + return client + .send($request); } @override @@ -3910,7 +3971,8 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { client.baseUrl, parameters: $params, ); - return client.send($request); + return client + .send($request); } @override @@ -3941,7 +4003,8 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { client.baseUrl, parameters: $params, ); - return client.send($request); + return client + .send($request); } @override @@ -3971,7 +4034,8 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { client.baseUrl, parameters: $params, ); - return client.send($request); + return client + .send($request); } @override @@ -4001,7 +4065,8 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { client.baseUrl, parameters: $params, ); - return client.send($request); + return client + .send($request); } @override @@ -4032,7 +4097,8 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { client.baseUrl, parameters: $params, ); - return client.send($request); + return client + .send($request); } @override @@ -4062,7 +4128,8 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { client.baseUrl, parameters: $params, ); - return client.send($request); + return client + .send($request); } @override @@ -4092,11 +4159,13 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { client.baseUrl, parameters: $params, ); - return client.send($request); + return client + .send($request); } @override - Future>> _itemsItemIdExternalIdInfosGet({required String? itemId}) { + Future>> _itemsItemIdExternalIdInfosGet( + {required String? itemId}) { final Uri $url = Uri.parse('/Items/${itemId}/ExternalIdInfos'); final Request $request = Request( 'GET', @@ -4113,7 +4182,9 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { required RemoteSearchResult? body, }) { final Uri $url = Uri.parse('/Items/RemoteSearch/Apply/${itemId}'); - final Map $params = {'replaceAllImages': replaceAllImages}; + final Map $params = { + 'replaceAllImages': replaceAllImages + }; final $body = body; final Request $request = Request( 'POST', @@ -4126,7 +4197,8 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { } @override - Future>> _itemsRemoteSearchBookPost({required BookInfoRemoteSearchQuery? body}) { + Future>> _itemsRemoteSearchBookPost( + {required BookInfoRemoteSearchQuery? body}) { final Uri $url = Uri.parse('/Items/RemoteSearch/Book'); final $body = body; final Request $request = Request( @@ -4153,7 +4225,8 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { } @override - Future>> _itemsRemoteSearchMoviePost({required MovieInfoRemoteSearchQuery? body}) { + Future>> _itemsRemoteSearchMoviePost( + {required MovieInfoRemoteSearchQuery? body}) { final Uri $url = Uri.parse('/Items/RemoteSearch/Movie'); final $body = body; final Request $request = Request( @@ -4458,7 +4531,8 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { client.baseUrl, parameters: $params, ); - return client.send($request); + return client + .send($request); } @override @@ -4551,7 +4625,8 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { client.baseUrl, parameters: $params, ); - return client.send($request); + return client + .send($request); } @override @@ -4603,7 +4678,9 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { String? contentType, }) { final Uri $url = Uri.parse('/Items/${itemId}/ContentType'); - final Map $params = {'contentType': contentType}; + final Map $params = { + 'contentType': contentType + }; final Request $request = Request( 'POST', $url, @@ -4614,7 +4691,8 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { } @override - Future> _itemsItemIdMetadataEditorGet({required String? itemId}) { + Future> _itemsItemIdMetadataEditorGet( + {required String? itemId}) { final Uri $url = Uri.parse('/Items/${itemId}/MetadataEditor'); final Request $request = Request( 'GET', @@ -4645,7 +4723,8 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { client.baseUrl, parameters: $params, ); - return client.send($request); + return client + .send($request); } @override @@ -4669,7 +4748,8 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { client.baseUrl, parameters: $params, ); - return client.send($request); + return client + .send($request); } @override @@ -4689,14 +4769,16 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { } @override - Future> _itemsItemIdCriticReviewsGet({required String? itemId}) { + Future> _itemsItemIdCriticReviewsGet( + {required String? itemId}) { final Uri $url = Uri.parse('/Items/${itemId}/CriticReviews'); final Request $request = Request( 'GET', $url, client.baseUrl, ); - return client.send($request); + return client + .send($request); } @override @@ -4742,7 +4824,8 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { client.baseUrl, parameters: $params, ); - return client.send($request); + return client + .send($request); } @override @@ -4852,11 +4935,13 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { client.baseUrl, parameters: $params, ); - return client.send($request); + return client + .send($request); } @override - Future> _libraryMediaUpdatedPost({required MediaUpdateInfoDto? body}) { + Future> _libraryMediaUpdatedPost( + {required MediaUpdateInfoDto? body}) { final Uri $url = Uri.parse('/Library/Media/Updated'); final $body = body; final Request $request = Request( @@ -4869,16 +4954,20 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { } @override - Future> _libraryMediaFoldersGet({bool? isHidden}) { + Future> _libraryMediaFoldersGet( + {bool? isHidden}) { final Uri $url = Uri.parse('/Library/MediaFolders'); - final Map $params = {'isHidden': isHidden}; + final Map $params = { + 'isHidden': isHidden + }; final Request $request = Request( 'GET', $url, client.baseUrl, parameters: $params, ); - return client.send($request); + return client + .send($request); } @override @@ -4988,7 +5077,8 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { client.baseUrl, parameters: $params, ); - return client.send($request); + return client + .send($request); } @override @@ -5012,7 +5102,8 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { client.baseUrl, parameters: $params, ); - return client.send($request); + return client + .send($request); } @override @@ -5036,7 +5127,8 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { client.baseUrl, parameters: $params, ); - return client.send($request); + return client + .send($request); } @override @@ -5096,7 +5188,8 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { } @override - Future> _libraryVirtualFoldersLibraryOptionsPost({required UpdateLibraryOptionsDto? body}) { + Future> _libraryVirtualFoldersLibraryOptionsPost( + {required UpdateLibraryOptionsDto? body}) { final Uri $url = Uri.parse('/Library/VirtualFolders/LibraryOptions'); final $body = body; final Request $request = Request( @@ -5135,7 +5228,9 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { required MediaPathDto? body, }) { final Uri $url = Uri.parse('/Library/VirtualFolders/Paths'); - final Map $params = {'refreshLibrary': refreshLibrary}; + final Map $params = { + 'refreshLibrary': refreshLibrary + }; final $body = body; final Request $request = Request( 'POST', @@ -5169,7 +5264,8 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { } @override - Future> _libraryVirtualFoldersPathsUpdatePost({required UpdateMediaPathRequestDto? body}) { + Future> _libraryVirtualFoldersPathsUpdatePost( + {required UpdateMediaPathRequestDto? body}) { final Uri $url = Uri.parse('/Library/VirtualFolders/Paths/Update'); final $body = body; final Request $request = Request( @@ -5182,20 +5278,25 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { } @override - Future> _liveTvChannelMappingOptionsGet({String? providerId}) { + Future> _liveTvChannelMappingOptionsGet( + {String? providerId}) { final Uri $url = Uri.parse('/LiveTv/ChannelMappingOptions'); - final Map $params = {'providerId': providerId}; + final Map $params = { + 'providerId': providerId + }; final Request $request = Request( 'GET', $url, client.baseUrl, parameters: $params, ); - return client.send($request); + return client + .send($request); } @override - Future> _liveTvChannelMappingsPost({required SetChannelMappingDto? body}) { + Future> _liveTvChannelMappingsPost( + {required SetChannelMappingDto? body}) { final Uri $url = Uri.parse('/LiveTv/ChannelMappings'); final $body = body; final Request $request = Request( @@ -5261,7 +5362,8 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { client.baseUrl, parameters: $params, ); - return client.send($request); + return client + .send($request); } @override @@ -5374,8 +5476,10 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { } @override - Future> _liveTvListingProvidersSchedulesDirectCountriesGet() { - final Uri $url = Uri.parse('/LiveTv/ListingProviders/SchedulesDirect/Countries'); + Future> + _liveTvListingProvidersSchedulesDirectCountriesGet() { + final Uri $url = + Uri.parse('/LiveTv/ListingProviders/SchedulesDirect/Countries'); final Request $request = Request( 'GET', $url, @@ -5385,7 +5489,8 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { } @override - Future> _liveTvLiveRecordingsRecordingIdStreamGet({required String? recordingId}) { + Future> _liveTvLiveRecordingsRecordingIdStreamGet( + {required String? recordingId}) { final Uri $url = Uri.parse('/LiveTv/LiveRecordings/${recordingId}/stream'); final Request $request = Request( 'GET', @@ -5400,7 +5505,8 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { required String? streamId, required String? container, }) { - final Uri $url = Uri.parse('/LiveTv/LiveStreamFiles/${streamId}/stream.${container}'); + final Uri $url = + Uri.parse('/LiveTv/LiveStreamFiles/${streamId}/stream.${container}'); final Request $request = Request( 'GET', $url, @@ -5475,11 +5581,13 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { client.baseUrl, parameters: $params, ); - return client.send($request); + return client + .send($request); } @override - Future> _liveTvProgramsPost({required GetProgramsDto? body}) { + Future> _liveTvProgramsPost( + {required GetProgramsDto? body}) { final Uri $url = Uri.parse('/LiveTv/Programs'); final $body = body; final Request $request = Request( @@ -5488,7 +5596,8 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { client.baseUrl, body: $body, ); - return client.send($request); + return client + .send($request); } @override @@ -5553,7 +5662,8 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { client.baseUrl, parameters: $params, ); - return client.send($request); + return client + .send($request); } @override @@ -5606,7 +5716,8 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { client.baseUrl, parameters: $params, ); - return client.send($request); + return client + .send($request); } @override @@ -5626,7 +5737,8 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { } @override - Future> _liveTvRecordingsRecordingIdDelete({required String? recordingId}) { + Future> _liveTvRecordingsRecordingIdDelete( + {required String? recordingId}) { final Uri $url = Uri.parse('/LiveTv/Recordings/${recordingId}'); final Request $request = Request( 'DELETE', @@ -5637,7 +5749,8 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { } @override - Future> _liveTvRecordingsFoldersGet({String? userId}) { + Future> _liveTvRecordingsFoldersGet( + {String? userId}) { final Uri $url = Uri.parse('/LiveTv/Recordings/Folders'); final Map $params = {'userId': userId}; final Request $request = Request( @@ -5646,11 +5759,13 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { client.baseUrl, parameters: $params, ); - return client.send($request); + return client + .send($request); } @override - Future> _liveTvRecordingsGroupsGet({String? userId}) { + Future> _liveTvRecordingsGroupsGet( + {String? userId}) { final Uri $url = Uri.parse('/LiveTv/Recordings/Groups'); final Map $params = {'userId': userId}; final Request $request = Request( @@ -5659,11 +5774,13 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { client.baseUrl, parameters: $params, ); - return client.send($request); + return client + .send($request); } @override - Future> _liveTvRecordingsGroupsGroupIdGet({required String? groupId}) { + Future> _liveTvRecordingsGroupsGroupIdGet( + {required String? groupId}) { final Uri $url = Uri.parse('/LiveTv/Recordings/Groups/${groupId}'); final Request $request = Request( 'GET', @@ -5713,7 +5830,8 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { client.baseUrl, parameters: $params, ); - return client.send($request); + return client + .send($request); } @override @@ -5732,11 +5850,13 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { client.baseUrl, parameters: $params, ); - return client.send($request); + return client.send($request); } @override - Future> _liveTvSeriesTimersPost({required SeriesTimerInfoDto? body}) { + Future> _liveTvSeriesTimersPost( + {required SeriesTimerInfoDto? body}) { final Uri $url = Uri.parse('/LiveTv/SeriesTimers'); final $body = body; final Request $request = Request( @@ -5749,7 +5869,8 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { } @override - Future> _liveTvSeriesTimersTimerIdGet({required String? timerId}) { + Future> _liveTvSeriesTimersTimerIdGet( + {required String? timerId}) { final Uri $url = Uri.parse('/LiveTv/SeriesTimers/${timerId}'); final Request $request = Request( 'GET', @@ -5760,7 +5881,8 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { } @override - Future> _liveTvSeriesTimersTimerIdDelete({required String? timerId}) { + Future> _liveTvSeriesTimersTimerIdDelete( + {required String? timerId}) { final Uri $url = Uri.parse('/LiveTv/SeriesTimers/${timerId}'); final Request $request = Request( 'DELETE', @@ -5806,7 +5928,8 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { client.baseUrl, parameters: $params, ); - return client.send($request); + return client + .send($request); } @override @@ -5823,7 +5946,8 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { } @override - Future> _liveTvTimersTimerIdGet({required String? timerId}) { + Future> _liveTvTimersTimerIdGet( + {required String? timerId}) { final Uri $url = Uri.parse('/LiveTv/Timers/${timerId}'); final Request $request = Request( 'GET', @@ -5834,7 +5958,8 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { } @override - Future> _liveTvTimersTimerIdDelete({required String? timerId}) { + Future> _liveTvTimersTimerIdDelete( + {required String? timerId}) { final Uri $url = Uri.parse('/LiveTv/Timers/${timerId}'); final Request $request = Request( 'DELETE', @@ -5861,9 +5986,12 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { } @override - Future> _liveTvTimersDefaultsGet({String? programId}) { + Future> _liveTvTimersDefaultsGet( + {String? programId}) { final Uri $url = Uri.parse('/LiveTv/Timers/Defaults'); - final Map $params = {'programId': programId}; + final Map $params = { + 'programId': programId + }; final Request $request = Request( 'GET', $url, @@ -5874,7 +6002,8 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { } @override - Future> _liveTvTunerHostsPost({required TunerHostInfo? body}) { + Future> _liveTvTunerHostsPost( + {required TunerHostInfo? body}) { final Uri $url = Uri.parse('/LiveTv/TunerHosts'); final $body = body; final Request $request = Request( @@ -5911,7 +6040,8 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { } @override - Future> _liveTvTunersTunerIdResetPost({required String? tunerId}) { + Future> _liveTvTunersTunerIdResetPost( + {required String? tunerId}) { final Uri $url = Uri.parse('/LiveTv/Tuners/${tunerId}/Reset'); final Request $request = Request( 'POST', @@ -5922,9 +6052,12 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { } @override - Future>> _liveTvTunersDiscoverGet({bool? newDevicesOnly}) { + Future>> _liveTvTunersDiscoverGet( + {bool? newDevicesOnly}) { final Uri $url = Uri.parse('/LiveTv/Tuners/Discover'); - final Map $params = {'newDevicesOnly': newDevicesOnly}; + final Map $params = { + 'newDevicesOnly': newDevicesOnly + }; final Request $request = Request( 'GET', $url, @@ -5935,9 +6068,12 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { } @override - Future>> _liveTvTunersDiscvoverGet({bool? newDevicesOnly}) { + Future>> _liveTvTunersDiscvoverGet( + {bool? newDevicesOnly}) { final Uri $url = Uri.parse('/LiveTv/Tuners/Discvover'); - final Map $params = {'newDevicesOnly': newDevicesOnly}; + final Map $params = { + 'newDevicesOnly': newDevicesOnly + }; final Request $request = Request( 'GET', $url, @@ -6009,7 +6145,9 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { required Object? body, }) { final Uri $url = Uri.parse('/Audio/${itemId}/Lyrics'); - final Map $params = {'fileName': fileName}; + final Map $params = { + 'fileName': fileName + }; final $body = body; final Request $request = Request( 'POST', @@ -6022,7 +6160,8 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { } @override - Future> _audioItemIdLyricsDelete({required String? itemId}) { + Future> _audioItemIdLyricsDelete( + {required String? itemId}) { final Uri $url = Uri.parse('/Audio/${itemId}/Lyrics'); final Request $request = Request( 'DELETE', @@ -6033,7 +6172,8 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { } @override - Future>> _audioItemIdRemoteSearchLyricsGet({required String? itemId}) { + Future>> _audioItemIdRemoteSearchLyricsGet( + {required String? itemId}) { final Uri $url = Uri.parse('/Audio/${itemId}/RemoteSearch/Lyrics'); final Request $request = Request( 'GET', @@ -6048,7 +6188,8 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { required String? itemId, required String? lyricId, }) { - final Uri $url = Uri.parse('/Audio/${itemId}/RemoteSearch/Lyrics/${lyricId}'); + final Uri $url = + Uri.parse('/Audio/${itemId}/RemoteSearch/Lyrics/${lyricId}'); final Request $request = Request( 'POST', $url, @@ -6058,7 +6199,8 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { } @override - Future> _providersLyricsLyricIdGet({required String? lyricId}) { + Future> _providersLyricsLyricIdGet( + {required String? lyricId}) { final Uri $url = Uri.parse('/Providers/Lyrics/${lyricId}'); final Request $request = Request( 'GET', @@ -6132,9 +6274,12 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { } @override - Future> _liveStreamsClosePost({required String? liveStreamId}) { + Future> _liveStreamsClosePost( + {required String? liveStreamId}) { final Uri $url = Uri.parse('/LiveStreams/Close'); - final Map $params = {'liveStreamId': liveStreamId}; + final Map $params = { + 'liveStreamId': liveStreamId + }; final Request $request = Request( 'POST', $url, @@ -6173,7 +6318,8 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { 'itemId': itemId, 'enableDirectPlay': enableDirectPlay, 'enableDirectStream': enableDirectStream, - 'alwaysBurnInSubtitleWhenTranscoding': alwaysBurnInSubtitleWhenTranscoding, + 'alwaysBurnInSubtitleWhenTranscoding': + alwaysBurnInSubtitleWhenTranscoding, }; final $body = body; final Request $request = Request( @@ -6205,14 +6351,17 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { List? includeSegmentTypes, }) { final Uri $url = Uri.parse('/MediaSegments/${itemId}'); - final Map $params = {'includeSegmentTypes': includeSegmentTypes}; + final Map $params = { + 'includeSegmentTypes': includeSegmentTypes + }; final Request $request = Request( 'GET', $url, client.baseUrl, parameters: $params, ); - return client.send($request); + return client + .send($request); } @override @@ -6288,7 +6437,8 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { client.baseUrl, parameters: $params, ); - return client.send($request); + return client + .send($request); } @override @@ -6308,8 +6458,10 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { } @override - Future> _jellyfinPluginOpenSubtitlesValidateLoginInfoPost({required LoginInfoInput? body}) { - final Uri $url = Uri.parse('/Jellyfin.Plugin.OpenSubtitles/ValidateLoginInfo'); + Future> _jellyfinPluginOpenSubtitlesValidateLoginInfoPost( + {required LoginInfoInput? body}) { + final Uri $url = + Uri.parse('/Jellyfin.Plugin.OpenSubtitles/ValidateLoginInfo'); final $body = body; final Request $request = Request( 'POST', @@ -6337,7 +6489,9 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { String? assemblyGuid, }) { final Uri $url = Uri.parse('/Packages/${name}'); - final Map $params = {'assemblyGuid': assemblyGuid}; + final Map $params = { + 'assemblyGuid': assemblyGuid + }; final Request $request = Request( 'GET', $url, @@ -6370,7 +6524,8 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { } @override - Future> _packagesInstallingPackageIdDelete({required String? packageId}) { + Future> _packagesInstallingPackageIdDelete( + {required String? packageId}) { final Uri $url = Uri.parse('/Packages/Installing/${packageId}'); final Request $request = Request( 'DELETE', @@ -6392,7 +6547,8 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { } @override - Future> _repositoriesPost({required List? body}) { + Future> _repositoriesPost( + {required List? body}) { final Uri $url = Uri.parse('/Repositories'); final $body = body; final Request $request = Request( @@ -6442,7 +6598,8 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { client.baseUrl, parameters: $params, ); - return client.send($request); + return client + .send($request); } @override @@ -6468,7 +6625,8 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { DateTime? endDate, num? timezoneOffset, }) { - final Uri $url = Uri.parse('/user_usage_stats/${breakdownType}/BreakdownReport'); + final Uri $url = + Uri.parse('/user_usage_stats/${breakdownType}/BreakdownReport'); final Map $params = { 'days': days, 'endDate': endDate, @@ -6570,9 +6728,12 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { } @override - Future>> _userUsageStatsLoadBackupGet({String? backupFilePath}) { + Future>> _userUsageStatsLoadBackupGet( + {String? backupFilePath}) { final Uri $url = Uri.parse('/user_usage_stats/load_backup'); - final Map $params = {'backupFilePath': backupFilePath}; + final Map $params = { + 'backupFilePath': backupFilePath + }; final Request $request = Request( 'GET', $url, @@ -6640,7 +6801,8 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { } @override - Future> _userUsageStatsSubmitCustomQueryPost({required CustomQueryData? body}) { + Future> _userUsageStatsSubmitCustomQueryPost( + {required CustomQueryData? body}) { final Uri $url = Uri.parse('/user_usage_stats/submit_custom_query'); final $body = body; final Request $request = Request( @@ -6755,7 +6917,8 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { body: $body, parameters: $params, ); - return client.send($request); + return client + .send($request); } @override @@ -6775,7 +6938,8 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { } @override - Future> _playlistsPlaylistIdGet({required String? playlistId}) { + Future> _playlistsPlaylistIdGet( + {required String? playlistId}) { final Uri $url = Uri.parse('/Playlists/${playlistId}'); final Request $request = Request( 'GET', @@ -6811,7 +6975,9 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { List? entryIds, }) { final Uri $url = Uri.parse('/Playlists/${playlistId}/Items'); - final Map $params = {'entryIds': entryIds}; + final Map $params = { + 'entryIds': entryIds + }; final Request $request = Request( 'DELETE', $url, @@ -6850,7 +7016,8 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { client.baseUrl, parameters: $params, ); - return client.send($request); + return client + .send($request); } @override @@ -6859,7 +7026,8 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { required String? itemId, required int? newIndex, }) { - final Uri $url = Uri.parse('/Playlists/${playlistId}/Items/${itemId}/Move/${newIndex}'); + final Uri $url = + Uri.parse('/Playlists/${playlistId}/Items/${itemId}/Move/${newIndex}'); final Request $request = Request( 'POST', $url, @@ -6869,14 +7037,16 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { } @override - Future>> _playlistsPlaylistIdUsersGet({required String? playlistId}) { + Future>> _playlistsPlaylistIdUsersGet( + {required String? playlistId}) { final Uri $url = Uri.parse('/Playlists/${playlistId}/Users'); final Request $request = Request( 'GET', $url, client.baseUrl, ); - return client.send, PlaylistUserPermissions>($request); + return client + .send, PlaylistUserPermissions>($request); } @override @@ -6890,7 +7060,8 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { $url, client.baseUrl, ); - return client.send($request); + return client + .send($request); } @override @@ -7019,7 +7190,8 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { } @override - Future> _sessionsPlayingPost({required PlaybackStartInfo? body}) { + Future> _sessionsPlayingPost( + {required PlaybackStartInfo? body}) { final Uri $url = Uri.parse('/Sessions/Playing'); final $body = body; final Request $request = Request( @@ -7032,9 +7204,12 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { } @override - Future> _sessionsPlayingPingPost({required String? playSessionId}) { + Future> _sessionsPlayingPingPost( + {required String? playSessionId}) { final Uri $url = Uri.parse('/Sessions/Playing/Ping'); - final Map $params = {'playSessionId': playSessionId}; + final Map $params = { + 'playSessionId': playSessionId + }; final Request $request = Request( 'POST', $url, @@ -7045,7 +7220,8 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { } @override - Future> _sessionsPlayingProgressPost({required PlaybackProgressInfo? body}) { + Future> _sessionsPlayingProgressPost( + {required PlaybackProgressInfo? body}) { final Uri $url = Uri.parse('/Sessions/Playing/Progress'); final $body = body; final Request $request = Request( @@ -7058,7 +7234,8 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { } @override - Future> _sessionsPlayingStoppedPost({required PlaybackStopInfo? body}) { + Future> _sessionsPlayingStoppedPost( + {required PlaybackStopInfo? body}) { final Uri $url = Uri.parse('/Sessions/Playing/Stopped'); final $body = body; final Request $request = Request( @@ -7118,7 +7295,8 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { } @override - Future> _pluginsPluginIdDelete({required String? pluginId}) { + Future> _pluginsPluginIdDelete( + {required String? pluginId}) { final Uri $url = Uri.parse('/Plugins/${pluginId}'); final Request $request = Request( 'DELETE', @@ -7185,18 +7363,21 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { } @override - Future> _pluginsPluginIdConfigurationGet({required String? pluginId}) { + Future> _pluginsPluginIdConfigurationGet( + {required String? pluginId}) { final Uri $url = Uri.parse('/Plugins/${pluginId}/Configuration'); final Request $request = Request( 'GET', $url, client.baseUrl, ); - return client.send($request); + return client + .send($request); } @override - Future> _pluginsPluginIdConfigurationPost({required String? pluginId}) { + Future> _pluginsPluginIdConfigurationPost( + {required String? pluginId}) { final Uri $url = Uri.parse('/Plugins/${pluginId}/Configuration'); final Request $request = Request( 'POST', @@ -7207,7 +7388,8 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { } @override - Future> _pluginsPluginIdManifestPost({required String? pluginId}) { + Future> _pluginsPluginIdManifestPost( + {required String? pluginId}) { final Uri $url = Uri.parse('/Plugins/${pluginId}/Manifest'); final Request $request = Request( 'POST', @@ -7237,7 +7419,8 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { } @override - Future> _quickConnectConnectGet({required String? secret}) { + Future> _quickConnectConnectGet( + {required String? secret}) { final Uri $url = Uri.parse('/QuickConnect/Connect'); final Map $params = {'secret': secret}; final Request $request = Request( @@ -7318,7 +7501,8 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { } @override - Future>> _itemsItemIdRemoteImagesProvidersGet({required String? itemId}) { + Future>> + _itemsItemIdRemoteImagesProvidersGet({required String? itemId}) { final Uri $url = Uri.parse('/Items/${itemId}/RemoteImages/Providers'); final Request $request = Request( 'GET', @@ -7348,7 +7532,8 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { } @override - Future> _scheduledTasksTaskIdGet({required String? taskId}) { + Future> _scheduledTasksTaskIdGet( + {required String? taskId}) { final Uri $url = Uri.parse('/ScheduledTasks/${taskId}'); final Request $request = Request( 'GET', @@ -7375,7 +7560,8 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { } @override - Future> _scheduledTasksRunningTaskIdPost({required String? taskId}) { + Future> _scheduledTasksRunningTaskIdPost( + {required String? taskId}) { final Uri $url = Uri.parse('/ScheduledTasks/Running/${taskId}'); final Request $request = Request( 'POST', @@ -7386,7 +7572,8 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { } @override - Future> _scheduledTasksRunningTaskIdDelete({required String? taskId}) { + Future> _scheduledTasksRunningTaskIdDelete( + {required String? taskId}) { final Uri $url = Uri.parse('/ScheduledTasks/Running/${taskId}'); final Request $request = Request( 'DELETE', @@ -7743,11 +7930,13 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { $url, client.baseUrl, ); - return client.send($request); + return client + .send($request); } @override - Future> _startupConfigurationPost({required StartupConfigurationDto? body}) { + Future> _startupConfigurationPost( + {required StartupConfigurationDto? body}) { final Uri $url = Uri.parse('/Startup/Configuration'); final $body = body; final Request $request = Request( @@ -7771,7 +7960,8 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { } @override - Future> _startupRemoteAccessPost({required StartupRemoteAccessDto? body}) { + Future> _startupRemoteAccessPost( + {required StartupRemoteAccessDto? body}) { final Uri $url = Uri.parse('/Startup/RemoteAccess'); final $body = body; final Request $request = Request( @@ -7853,7 +8043,8 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { client.baseUrl, parameters: $params, ); - return client.send($request); + return client + .send($request); } @override @@ -7895,13 +8086,17 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { } @override - Future>> _itemsItemIdRemoteSearchSubtitlesLanguageGet({ + Future>> + _itemsItemIdRemoteSearchSubtitlesLanguageGet({ required String? itemId, required String? language, bool? isPerfectMatch, }) { - final Uri $url = Uri.parse('/Items/${itemId}/RemoteSearch/Subtitles/${language}'); - final Map $params = {'isPerfectMatch': isPerfectMatch}; + final Uri $url = + Uri.parse('/Items/${itemId}/RemoteSearch/Subtitles/${language}'); + final Map $params = { + 'isPerfectMatch': isPerfectMatch + }; final Request $request = Request( 'GET', $url, @@ -7916,7 +8111,8 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { required String? itemId, required String? subtitleId, }) { - final Uri $url = Uri.parse('/Items/${itemId}/RemoteSearch/Subtitles/${subtitleId}'); + final Uri $url = + Uri.parse('/Items/${itemId}/RemoteSearch/Subtitles/${subtitleId}'); final Request $request = Request( 'POST', $url, @@ -7926,7 +8122,8 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { } @override - Future> _providersSubtitlesSubtitlesSubtitleIdGet({required String? subtitleId}) { + Future> _providersSubtitlesSubtitlesSubtitleIdGet( + {required String? subtitleId}) { final Uri $url = Uri.parse('/Providers/Subtitles/Subtitles/${subtitleId}'); final Request $request = Request( 'GET', @@ -7937,14 +8134,18 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { } @override - Future> _videosItemIdMediaSourceIdSubtitlesIndexSubtitlesM3u8Get({ + Future> + _videosItemIdMediaSourceIdSubtitlesIndexSubtitlesM3u8Get({ required String? itemId, required int? index, required String? mediaSourceId, required int? segmentLength, }) { - final Uri $url = Uri.parse('/Videos/${itemId}/${mediaSourceId}/Subtitles/${index}/subtitles.m3u8'); - final Map $params = {'segmentLength': segmentLength}; + final Uri $url = Uri.parse( + '/Videos/${itemId}/${mediaSourceId}/Subtitles/${index}/subtitles.m3u8'); + final Map $params = { + 'segmentLength': segmentLength + }; final Request $request = Request( 'GET', $url, @@ -8023,7 +8224,8 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { } @override - Future> _videosRouteItemIdRouteMediaSourceIdSubtitlesRouteIndexStreamRouteFormatGet({ + Future> + _videosRouteItemIdRouteMediaSourceIdSubtitlesRouteIndexStreamRouteFormatGet({ required String? routeItemId, required String? routeMediaSourceId, required int? routeIndex, @@ -8037,8 +8239,8 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { bool? addVttTimeMap, int? startPositionTicks, }) { - final Uri $url = - Uri.parse('/Videos/${routeItemId}/${routeMediaSourceId}/Subtitles/${routeIndex}/Stream.${routeFormat}'); + final Uri $url = Uri.parse( + '/Videos/${routeItemId}/${routeMediaSourceId}/Subtitles/${routeIndex}/Stream.${routeFormat}'); final Map $params = { 'itemId': itemId, 'mediaSourceId': mediaSourceId, @@ -8082,7 +8284,8 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { client.baseUrl, parameters: $params, ); - return client.send($request); + return client + .send($request); } @override @@ -8097,7 +8300,8 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { } @override - Future> _syncPlayBufferingPost({required BufferRequestDto? body}) { + Future> _syncPlayBufferingPost( + {required BufferRequestDto? body}) { final Uri $url = Uri.parse('/SyncPlay/Buffering'); final $body = body; final Request $request = Request( @@ -8110,7 +8314,8 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { } @override - Future> _syncPlayJoinPost({required JoinGroupRequestDto? body}) { + Future> _syncPlayJoinPost( + {required JoinGroupRequestDto? body}) { final Uri $url = Uri.parse('/SyncPlay/Join'); final $body = body; final Request $request = Request( @@ -8145,7 +8350,8 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { } @override - Future> _syncPlayMovePlaylistItemPost({required MovePlaylistItemRequestDto? body}) { + Future> _syncPlayMovePlaylistItemPost( + {required MovePlaylistItemRequestDto? body}) { final Uri $url = Uri.parse('/SyncPlay/MovePlaylistItem'); final $body = body; final Request $request = Request( @@ -8158,7 +8364,8 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { } @override - Future> _syncPlayNewPost({required NewGroupRequestDto? body}) { + Future> _syncPlayNewPost( + {required NewGroupRequestDto? body}) { final Uri $url = Uri.parse('/SyncPlay/New'); final $body = body; final Request $request = Request( @@ -8171,7 +8378,8 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { } @override - Future> _syncPlayNextItemPost({required NextItemRequestDto? body}) { + Future> _syncPlayNextItemPost( + {required NextItemRequestDto? body}) { final Uri $url = Uri.parse('/SyncPlay/NextItem'); final $body = body; final Request $request = Request( @@ -8208,7 +8416,8 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { } @override - Future> _syncPlayPreviousItemPost({required PreviousItemRequestDto? body}) { + Future> _syncPlayPreviousItemPost( + {required PreviousItemRequestDto? body}) { final Uri $url = Uri.parse('/SyncPlay/PreviousItem'); final $body = body; final Request $request = Request( @@ -8221,7 +8430,8 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { } @override - Future> _syncPlayQueuePost({required QueueRequestDto? body}) { + Future> _syncPlayQueuePost( + {required QueueRequestDto? body}) { final Uri $url = Uri.parse('/SyncPlay/Queue'); final $body = body; final Request $request = Request( @@ -8234,7 +8444,8 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { } @override - Future> _syncPlayReadyPost({required ReadyRequestDto? body}) { + Future> _syncPlayReadyPost( + {required ReadyRequestDto? body}) { final Uri $url = Uri.parse('/SyncPlay/Ready'); final $body = body; final Request $request = Request( @@ -8247,7 +8458,8 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { } @override - Future> _syncPlayRemoveFromPlaylistPost({required RemoveFromPlaylistRequestDto? body}) { + Future> _syncPlayRemoveFromPlaylistPost( + {required RemoveFromPlaylistRequestDto? body}) { final Uri $url = Uri.parse('/SyncPlay/RemoveFromPlaylist'); final $body = body; final Request $request = Request( @@ -8273,7 +8485,8 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { } @override - Future> _syncPlaySetIgnoreWaitPost({required IgnoreWaitRequestDto? body}) { + Future> _syncPlaySetIgnoreWaitPost( + {required IgnoreWaitRequestDto? body}) { final Uri $url = Uri.parse('/SyncPlay/SetIgnoreWait'); final $body = body; final Request $request = Request( @@ -8286,7 +8499,8 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { } @override - Future> _syncPlaySetNewQueuePost({required PlayRequestDto? body}) { + Future> _syncPlaySetNewQueuePost( + {required PlayRequestDto? body}) { final Uri $url = Uri.parse('/SyncPlay/SetNewQueue'); final $body = body; final Request $request = Request( @@ -8299,7 +8513,8 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { } @override - Future> _syncPlaySetPlaylistItemPost({required SetPlaylistItemRequestDto? body}) { + Future> _syncPlaySetPlaylistItemPost( + {required SetPlaylistItemRequestDto? body}) { final Uri $url = Uri.parse('/SyncPlay/SetPlaylistItem'); final $body = body; final Request $request = Request( @@ -8312,7 +8527,8 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { } @override - Future> _syncPlaySetRepeatModePost({required SetRepeatModeRequestDto? body}) { + Future> _syncPlaySetRepeatModePost( + {required SetRepeatModeRequestDto? body}) { final Uri $url = Uri.parse('/SyncPlay/SetRepeatMode'); final $body = body; final Request $request = Request( @@ -8325,7 +8541,8 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { } @override - Future> _syncPlaySetShuffleModePost({required SetShuffleModeRequestDto? body}) { + Future> _syncPlaySetShuffleModePost( + {required SetShuffleModeRequestDto? body}) { final Uri $url = Uri.parse('/SyncPlay/SetShuffleMode'); final $body = body; final Request $request = Request( @@ -8673,7 +8890,8 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { client.baseUrl, parameters: $params, ); - return client.send($request); + return client + .send($request); } @override @@ -8683,8 +8901,11 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { required int? index, String? mediaSourceId, }) { - final Uri $url = Uri.parse('/Videos/${itemId}/Trickplay/${width}/${index}.jpg'); - final Map $params = {'mediaSourceId': mediaSourceId}; + final Uri $url = + Uri.parse('/Videos/${itemId}/Trickplay/${width}/${index}.jpg'); + final Map $params = { + 'mediaSourceId': mediaSourceId + }; final Request $request = Request( 'GET', $url, @@ -8700,8 +8921,11 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { required int? width, String? mediaSourceId, }) { - final Uri $url = Uri.parse('/Videos/${itemId}/Trickplay/${width}/tiles.m3u8'); - final Map $params = {'mediaSourceId': mediaSourceId}; + final Uri $url = + Uri.parse('/Videos/${itemId}/Trickplay/${width}/tiles.m3u8'); + final Map $params = { + 'mediaSourceId': mediaSourceId + }; final Request $request = Request( 'GET', $url, @@ -8752,7 +8976,8 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { client.baseUrl, parameters: $params, ); - return client.send($request); + return client + .send($request); } @override @@ -8786,7 +9011,8 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { client.baseUrl, parameters: $params, ); - return client.send($request); + return client + .send($request); } @override @@ -8831,7 +9057,8 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { client.baseUrl, parameters: $params, ); - return client.send($request); + return client + .send($request); } @override @@ -8864,7 +9091,8 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { client.baseUrl, parameters: $params, ); - return client.send($request); + return client + .send($request); } @override @@ -9047,7 +9275,8 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { } @override - Future> _usersAuthenticateByNamePost({required AuthenticateUserByName? body}) { + Future> _usersAuthenticateByNamePost( + {required AuthenticateUserByName? body}) { final Uri $url = Uri.parse('/Users/AuthenticateByName'); final $body = body; final Request $request = Request( @@ -9060,7 +9289,8 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { } @override - Future> _usersAuthenticateWithQuickConnectPost({required QuickConnectDto? body}) { + Future> _usersAuthenticateWithQuickConnectPost( + {required QuickConnectDto? body}) { final Uri $url = Uri.parse('/Users/AuthenticateWithQuickConnect'); final $body = body; final Request $request = Request( @@ -9091,7 +9321,8 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { } @override - Future> _usersForgotPasswordPost({required ForgotPasswordDto? body}) { + Future> _usersForgotPasswordPost( + {required ForgotPasswordDto? body}) { final Uri $url = Uri.parse('/Users/ForgotPassword'); final $body = body; final Request $request = Request( @@ -9104,7 +9335,8 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { } @override - Future> _usersForgotPasswordPinPost({required ForgotPasswordPinDto? body}) { + Future> _usersForgotPasswordPinPost( + {required ForgotPasswordPinDto? body}) { final Uri $url = Uri.parse('/Users/ForgotPassword/Pin'); final $body = body; final Request $request = Request( @@ -9182,7 +9414,8 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { client.baseUrl, parameters: $params, ); - return client.send($request); + return client + .send($request); } @override @@ -9354,11 +9587,13 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { client.baseUrl, parameters: $params, ); - return client.send($request); + return client + .send($request); } @override - Future>> _userViewsGroupingOptionsGet({String? userId}) { + Future>> _userViewsGroupingOptionsGet( + {String? userId}) { final Uri $url = Uri.parse('/UserViews/GroupingOptions'); final Map $params = {'userId': userId}; final Request $request = Request( @@ -9367,7 +9602,8 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { client.baseUrl, parameters: $params, ); - return client.send, SpecialViewOptionDto>($request); + return client + .send, SpecialViewOptionDto>($request); } @override @@ -9376,7 +9612,8 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { required String? mediaSourceId, required int? index, }) { - final Uri $url = Uri.parse('/Videos/${videoId}/${mediaSourceId}/Attachments/${index}'); + final Uri $url = + Uri.parse('/Videos/${videoId}/${mediaSourceId}/Attachments/${index}'); final Request $request = Request( 'GET', $url, @@ -9398,11 +9635,13 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { client.baseUrl, parameters: $params, ); - return client.send($request); + return client + .send($request); } @override - Future> _videosItemIdAlternateSourcesDelete({required String? itemId}) { + Future> _videosItemIdAlternateSourcesDelete( + {required String? itemId}) { final Uri $url = Uri.parse('/Videos/${itemId}/AlternateSources'); final Request $request = Request( 'DELETE', @@ -9883,7 +10122,8 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { } @override - Future> _videosMergeVersionsPost({required List? ids}) { + Future> _videosMergeVersionsPost( + {required List? ids}) { final Uri $url = Uri.parse('/Videos/MergeVersions'); final Map $params = {'ids': ids}; final Request $request = Request( @@ -9937,7 +10177,8 @@ final class _$JellyfinOpenApi extends JellyfinOpenApi { client.baseUrl, parameters: $params, ); - return client.send($request); + return client + .send($request); } @override diff --git a/lib/jellyfin/jellyfin_open_api.swagger.dart b/lib/jellyfin/jellyfin_open_api.swagger.dart index 6a1598365..8d82a2480 100644 --- a/lib/jellyfin/jellyfin_open_api.swagger.dart +++ b/lib/jellyfin/jellyfin_open_api.swagger.dart @@ -54,7 +54,8 @@ abstract class JellyfinOpenApi extends ChopperService { ///@param limit Optional. The maximum number of records to return. ///@param minDate Optional. The minimum date. Format = ISO. ///@param hasUserId Optional. Filter log entries if it has user id, or not. - Future> systemActivityLogEntriesGet({ + Future> + systemActivityLogEntriesGet({ int? startIndex, int? limit, DateTime? minDate, @@ -79,7 +80,8 @@ abstract class JellyfinOpenApi extends ChopperService { ///@param minDate Optional. The minimum date. Format = ISO. ///@param hasUserId Optional. Filter log entries if it has user id, or not. @GET(path: '/System/ActivityLog/Entries') - Future> _systemActivityLogEntriesGet({ + Future> + _systemActivityLogEntriesGet({ @Query('startIndex') int? startIndex, @Query('limit') int? limit, @Query('minDate') DateTime? minDate, @@ -1851,7 +1853,8 @@ abstract class JellyfinOpenApi extends ChopperService { ///Upload a document. @POST(path: '/ClientLog/Document', optionalBody: true) - Future> _clientLogDocumentPost({@Body() required Object? body}); + Future> + _clientLogDocumentPost({@Body() required Object? body}); ///Creates a new collection. ///@param name The name of the collection. @@ -2007,7 +2010,8 @@ abstract class JellyfinOpenApi extends ChopperService { }); ///Gets a default MetadataOptions object. - Future> systemConfigurationMetadataOptionsDefaultGet() { + Future> + systemConfigurationMetadataOptionsDefaultGet() { generatedMapping.putIfAbsent( MetadataOptions, () => MetadataOptions.fromJsonFactory, @@ -2018,7 +2022,8 @@ abstract class JellyfinOpenApi extends ChopperService { ///Gets a default MetadataOptions object. @GET(path: '/System/Configuration/MetadataOptions/Default') - Future> _systemConfigurationMetadataOptionsDefaultGet(); + Future> + _systemConfigurationMetadataOptionsDefaultGet(); ///Gets a dashboard configuration page. ///@param name The name of the page. @@ -2035,7 +2040,8 @@ abstract class JellyfinOpenApi extends ChopperService { ///Gets the configuration pages. ///@param enableInMainMenu Whether to enable in the main menu. - Future>> webConfigurationPagesGet({bool? enableInMainMenu}) { + Future>> + webConfigurationPagesGet({bool? enableInMainMenu}) { generatedMapping.putIfAbsent( ConfigurationPageInfo, () => ConfigurationPageInfo.fromJsonFactory, @@ -2047,7 +2053,8 @@ abstract class JellyfinOpenApi extends ChopperService { ///Gets the configuration pages. ///@param enableInMainMenu Whether to enable in the main menu. @GET(path: '/web/ConfigurationPages') - Future>> _webConfigurationPagesGet({ + Future>> + _webConfigurationPagesGet({ @Query('enableInMainMenu') bool? enableInMainMenu, }); @@ -2143,7 +2150,8 @@ abstract class JellyfinOpenApi extends ChopperService { ///@param displayPreferencesId Display preferences id. ///@param userId User id. ///@param client Client. - Future> displayPreferencesDisplayPreferencesIdGet({ + Future> + displayPreferencesDisplayPreferencesIdGet({ required String? displayPreferencesId, String? userId, required String? $client, @@ -2165,7 +2173,8 @@ abstract class JellyfinOpenApi extends ChopperService { ///@param userId User id. ///@param client Client. @GET(path: '/DisplayPreferences/{displayPreferencesId}') - Future> _displayPreferencesDisplayPreferencesIdGet({ + Future> + _displayPreferencesDisplayPreferencesIdGet({ @Path('displayPreferencesId') required String? displayPreferencesId, @Query('userId') String? userId, @Query('client') required String? $client, @@ -2257,7 +2266,8 @@ abstract class JellyfinOpenApi extends ChopperService { ///@param context Optional. The MediaBrowser.Model.Dlna.EncodingContext. ///@param streamOptions Optional. The streaming options. ///@param enableAudioVbrEncoding Optional. Whether to enable Audio Encoding. - Future> audioItemIdHls1PlaylistIdSegmentIdContainerGet({ + Future> + audioItemIdHls1PlaylistIdSegmentIdContainerGet({ required String? itemId, required String? playlistId, required int? segmentId, @@ -2295,7 +2305,8 @@ abstract class JellyfinOpenApi extends ChopperService { int? height, int? videoBitRate, int? subtitleStreamIndex, - enums.AudioItemIdHls1PlaylistIdSegmentIdContainerGetSubtitleMethod? subtitleMethod, + enums.AudioItemIdHls1PlaylistIdSegmentIdContainerGetSubtitleMethod? + subtitleMethod, int? maxRefFrames, int? maxVideoBitDepth, bool? requireAvc, @@ -2430,7 +2441,8 @@ abstract class JellyfinOpenApi extends ChopperService { ///@param streamOptions Optional. The streaming options. ///@param enableAudioVbrEncoding Optional. Whether to enable Audio Encoding. @GET(path: '/Audio/{itemId}/hls1/{playlistId}/{segmentId}.{container}') - Future> _audioItemIdHls1PlaylistIdSegmentIdContainerGet({ + Future> + _audioItemIdHls1PlaylistIdSegmentIdContainerGet({ @Path('itemId') required String? itemId, @Path('playlistId') required String? playlistId, @Path('segmentId') required int? segmentId, @@ -3013,7 +3025,8 @@ abstract class JellyfinOpenApi extends ChopperService { @Query('videoStreamIndex') int? videoStreamIndex, @Query('context') String? context, @Query('streamOptions') Object? streamOptions, - @Query('enableAdaptiveBitrateStreaming') bool? enableAdaptiveBitrateStreaming, + @Query('enableAdaptiveBitrateStreaming') + bool? enableAdaptiveBitrateStreaming, @Query('enableAudioVbrEncoding') bool? enableAudioVbrEncoding, }); @@ -3280,7 +3293,8 @@ abstract class JellyfinOpenApi extends ChopperService { @Query('videoStreamIndex') int? videoStreamIndex, @Query('context') String? context, @Query('streamOptions') Object? streamOptions, - @Query('enableAdaptiveBitrateStreaming') bool? enableAdaptiveBitrateStreaming, + @Query('enableAdaptiveBitrateStreaming') + bool? enableAdaptiveBitrateStreaming, @Query('enableAudioVbrEncoding') bool? enableAudioVbrEncoding, }); @@ -3342,7 +3356,8 @@ abstract class JellyfinOpenApi extends ChopperService { ///@param streamOptions Optional. The streaming options. ///@param enableAudioVbrEncoding Optional. Whether to enable Audio Encoding. ///@param alwaysBurnInSubtitleWhenTranscoding Whether to always burn in subtitles when transcoding. - Future> videosItemIdHls1PlaylistIdSegmentIdContainerGet({ + Future> + videosItemIdHls1PlaylistIdSegmentIdContainerGet({ required String? itemId, required String? playlistId, required int? segmentId, @@ -3381,7 +3396,8 @@ abstract class JellyfinOpenApi extends ChopperService { int? maxHeight, int? videoBitRate, int? subtitleStreamIndex, - enums.VideosItemIdHls1PlaylistIdSegmentIdContainerGetSubtitleMethod? subtitleMethod, + enums.VideosItemIdHls1PlaylistIdSegmentIdContainerGetSubtitleMethod? + subtitleMethod, int? maxRefFrames, int? maxVideoBitDepth, bool? requireAvc, @@ -3521,7 +3537,8 @@ abstract class JellyfinOpenApi extends ChopperService { ///@param enableAudioVbrEncoding Optional. Whether to enable Audio Encoding. ///@param alwaysBurnInSubtitleWhenTranscoding Whether to always burn in subtitles when transcoding. @GET(path: '/Videos/{itemId}/hls1/{playlistId}/{segmentId}.{container}') - Future> _videosItemIdHls1PlaylistIdSegmentIdContainerGet({ + Future> + _videosItemIdHls1PlaylistIdSegmentIdContainerGet({ @Path('itemId') required String? itemId, @Path('playlistId') required String? playlistId, @Path('segmentId') required int? segmentId, @@ -3578,7 +3595,8 @@ abstract class JellyfinOpenApi extends ChopperService { @Query('context') String? context, @Query('streamOptions') Object? streamOptions, @Query('enableAudioVbrEncoding') bool? enableAudioVbrEncoding, - @Query('alwaysBurnInSubtitleWhenTranscoding') bool? alwaysBurnInSubtitleWhenTranscoding, + @Query('alwaysBurnInSubtitleWhenTranscoding') + bool? alwaysBurnInSubtitleWhenTranscoding, }); ///Gets a hls live stream. @@ -3860,7 +3878,8 @@ abstract class JellyfinOpenApi extends ChopperService { @Query('maxHeight') int? maxHeight, @Query('enableSubtitlesInManifest') bool? enableSubtitlesInManifest, @Query('enableAudioVbrEncoding') bool? enableAudioVbrEncoding, - @Query('alwaysBurnInSubtitleWhenTranscoding') bool? alwaysBurnInSubtitleWhenTranscoding, + @Query('alwaysBurnInSubtitleWhenTranscoding') + bool? alwaysBurnInSubtitleWhenTranscoding, }); ///Gets a video stream using HTTP live streaming. @@ -4132,7 +4151,8 @@ abstract class JellyfinOpenApi extends ChopperService { @Query('context') String? context, @Query('streamOptions') Object? streamOptions, @Query('enableAudioVbrEncoding') bool? enableAudioVbrEncoding, - @Query('alwaysBurnInSubtitleWhenTranscoding') bool? alwaysBurnInSubtitleWhenTranscoding, + @Query('alwaysBurnInSubtitleWhenTranscoding') + bool? alwaysBurnInSubtitleWhenTranscoding, }); ///Gets a video hls playlist stream. @@ -4411,10 +4431,12 @@ abstract class JellyfinOpenApi extends ChopperService { @Query('videoStreamIndex') int? videoStreamIndex, @Query('context') String? context, @Query('streamOptions') Object? streamOptions, - @Query('enableAdaptiveBitrateStreaming') bool? enableAdaptiveBitrateStreaming, + @Query('enableAdaptiveBitrateStreaming') + bool? enableAdaptiveBitrateStreaming, @Query('enableTrickplay') bool? enableTrickplay, @Query('enableAudioVbrEncoding') bool? enableAudioVbrEncoding, - @Query('alwaysBurnInSubtitleWhenTranscoding') bool? alwaysBurnInSubtitleWhenTranscoding, + @Query('alwaysBurnInSubtitleWhenTranscoding') + bool? alwaysBurnInSubtitleWhenTranscoding, }); ///Gets a video hls playlist stream. @@ -4693,14 +4715,17 @@ abstract class JellyfinOpenApi extends ChopperService { @Query('videoStreamIndex') int? videoStreamIndex, @Query('context') String? context, @Query('streamOptions') Object? streamOptions, - @Query('enableAdaptiveBitrateStreaming') bool? enableAdaptiveBitrateStreaming, + @Query('enableAdaptiveBitrateStreaming') + bool? enableAdaptiveBitrateStreaming, @Query('enableTrickplay') bool? enableTrickplay, @Query('enableAudioVbrEncoding') bool? enableAudioVbrEncoding, - @Query('alwaysBurnInSubtitleWhenTranscoding') bool? alwaysBurnInSubtitleWhenTranscoding, + @Query('alwaysBurnInSubtitleWhenTranscoding') + bool? alwaysBurnInSubtitleWhenTranscoding, }); ///Get Default directory browser. - Future> environmentDefaultDirectoryBrowserGet() { + Future> + environmentDefaultDirectoryBrowserGet() { generatedMapping.putIfAbsent( DefaultDirectoryBrowserInfoDto, () => DefaultDirectoryBrowserInfoDto.fromJsonFactory, @@ -4711,13 +4736,15 @@ abstract class JellyfinOpenApi extends ChopperService { ///Get Default directory browser. @GET(path: '/Environment/DefaultDirectoryBrowser') - Future> _environmentDefaultDirectoryBrowserGet(); + Future> + _environmentDefaultDirectoryBrowserGet(); ///Gets the contents of a given directory in the file system. ///@param path The path. ///@param includeFiles An optional filter to include or exclude files from the results. true/false. ///@param includeDirectories An optional filter to include or exclude folders from the results. true/false. - Future>> environmentDirectoryContentsGet({ + Future>> + environmentDirectoryContentsGet({ required String? path, bool? includeFiles, bool? includeDirectories, @@ -4739,7 +4766,8 @@ abstract class JellyfinOpenApi extends ChopperService { ///@param includeFiles An optional filter to include or exclude files from the results. true/false. ///@param includeDirectories An optional filter to include or exclude folders from the results. true/false. @GET(path: '/Environment/DirectoryContents') - Future>> _environmentDirectoryContentsGet({ + Future>> + _environmentDirectoryContentsGet({ @Query('path') required String? path, @Query('includeFiles') bool? includeFiles, @Query('includeDirectories') bool? includeDirectories, @@ -4761,7 +4789,8 @@ abstract class JellyfinOpenApi extends ChopperService { ///Gets network paths. @deprecated - Future>> environmentNetworkSharesGet() { + Future>> + environmentNetworkSharesGet() { generatedMapping.putIfAbsent( FileSystemEntryInfo, () => FileSystemEntryInfo.fromJsonFactory, @@ -4773,7 +4802,8 @@ abstract class JellyfinOpenApi extends ChopperService { ///Gets network paths. @deprecated @GET(path: '/Environment/NetworkShares') - Future>> _environmentNetworkSharesGet(); + Future>> + _environmentNetworkSharesGet(); ///Gets the parent path of a given path. ///@param path The path. @@ -5087,7 +5117,8 @@ abstract class JellyfinOpenApi extends ChopperService { ///@param playlistId The playlist id. ///@param segmentId The segment id. ///@param segmentContainer The segment container. - Future> videosItemIdHlsPlaylistIdSegmentIdSegmentContainerGet({ + Future> + videosItemIdHlsPlaylistIdSegmentIdSegmentContainerGet({ required String? itemId, required String? playlistId, required String? segmentId, @@ -5107,7 +5138,8 @@ abstract class JellyfinOpenApi extends ChopperService { ///@param segmentId The segment id. ///@param segmentContainer The segment container. @GET(path: '/Videos/{itemId}/hls/{playlistId}/{segmentId}.{segmentContainer}') - Future> _videosItemIdHlsPlaylistIdSegmentIdSegmentContainerGet({ + Future> + _videosItemIdHlsPlaylistIdSegmentIdSegmentContainerGet({ @Path('itemId') required String? itemId, @Path('playlistId') required String? playlistId, @Path('segmentId') required String? segmentId, @@ -6053,7 +6085,8 @@ abstract class JellyfinOpenApi extends ChopperService { ///@param imageIndex The image index. Future itemsItemIdImagesImageTypeImageIndexDelete({ required String? itemId, - required enums.ItemsItemIdImagesImageTypeImageIndexDeleteImageType? imageType, + required enums.ItemsItemIdImagesImageTypeImageIndexDeleteImageType? + imageType, required int? imageIndex, }) { return _itemsItemIdImagesImageTypeImageIndexDelete( @@ -6320,10 +6353,10 @@ abstract class JellyfinOpenApi extends ChopperService { ///@param foregroundLayer Optional. Apply a foreground layer on top of the image. ///@param imageIndex Image index. Future> - itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGet({ + itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGet({ required String? itemId, required enums.ItemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetImageType? - imageType, + imageType, required int? maxWidth, required int? maxHeight, int? width, @@ -6333,7 +6366,7 @@ abstract class JellyfinOpenApi extends ChopperService { int? fillHeight, required String? tag, required enums.ItemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetFormat? - format, + format, required num? percentPlayed, required int? unplayedCount, int? blur, @@ -6385,7 +6418,7 @@ abstract class JellyfinOpenApi extends ChopperService { '/Items/{itemId}/Images/{imageType}/{imageIndex}/{tag}/{format}/{maxWidth}/{maxHeight}/{percentPlayed}/{unplayedCount}', ) Future> - _itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGet({ + _itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGet({ @Path('itemId') required String? itemId, @Path('imageType') required String? imageType, @Path('maxWidth') required int? maxWidth, @@ -6424,11 +6457,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, @@ -6438,7 +6470,7 @@ abstract class JellyfinOpenApi extends ChopperService { int? fillHeight, required String? tag, required enums.ItemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadFormat? - format, + format, required num? percentPlayed, required int? unplayedCount, int? blur, @@ -6490,7 +6522,7 @@ abstract class JellyfinOpenApi extends ChopperService { '/Items/{itemId}/Images/{imageType}/{imageIndex}/{tag}/{format}/{maxWidth}/{maxHeight}/{percentPlayed}/{unplayedCount}', ) Future> - _itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHead({ + _itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHead({ @Path('itemId') required String? itemId, @Path('imageType') required String? imageType, @Path('maxWidth') required int? maxWidth, @@ -6517,7 +6549,8 @@ abstract class JellyfinOpenApi extends ChopperService { ///@param newIndex New image index. Future itemsItemIdImagesImageTypeImageIndexIndexPost({ required String? itemId, - required enums.ItemsItemIdImagesImageTypeImageIndexIndexPostImageType? imageType, + required enums.ItemsItemIdImagesImageTypeImageIndexIndexPostImageType? + imageType, required int? imageIndex, required int? newIndex, }) { @@ -6759,7 +6792,8 @@ abstract class JellyfinOpenApi extends ChopperService { ///@param foregroundLayer Optional. Apply a foreground layer on top of the image. Future> musicGenresNameImagesImageTypeImageIndexGet({ required String? name, - required enums.MusicGenresNameImagesImageTypeImageIndexGetImageType? imageType, + required enums.MusicGenresNameImagesImageTypeImageIndexGetImageType? + imageType, required int? imageIndex, String? tag, enums.MusicGenresNameImagesImageTypeImageIndexGetFormat? format, @@ -6816,7 +6850,8 @@ abstract class JellyfinOpenApi extends ChopperService { ///@param backgroundColor Optional. Apply a background color for transparent images. ///@param foregroundLayer Optional. Apply a foreground layer on top of the image. @GET(path: '/MusicGenres/{name}/Images/{imageType}/{imageIndex}') - Future> _musicGenresNameImagesImageTypeImageIndexGet({ + Future> + _musicGenresNameImagesImageTypeImageIndexGet({ @Path('name') required String? name, @Path('imageType') required String? imageType, @Path('imageIndex') required int? imageIndex, @@ -6854,9 +6889,11 @@ abstract class JellyfinOpenApi extends ChopperService { ///@param blur Optional. Blur image. ///@param backgroundColor Optional. Apply a background color for transparent images. ///@param foregroundLayer Optional. Apply a foreground layer on top of the image. - Future> musicGenresNameImagesImageTypeImageIndexHead({ + Future> + musicGenresNameImagesImageTypeImageIndexHead({ required String? name, - required enums.MusicGenresNameImagesImageTypeImageIndexHeadImageType? imageType, + required enums.MusicGenresNameImagesImageTypeImageIndexHeadImageType? + imageType, required int? imageIndex, String? tag, enums.MusicGenresNameImagesImageTypeImageIndexHeadFormat? format, @@ -6913,7 +6950,8 @@ abstract class JellyfinOpenApi extends ChopperService { ///@param backgroundColor Optional. Apply a background color for transparent images. ///@param foregroundLayer Optional. Apply a foreground layer on top of the image. @HEAD(path: '/MusicGenres/{name}/Images/{imageType}/{imageIndex}') - Future> _musicGenresNameImagesImageTypeImageIndexHead({ + Future> + _musicGenresNameImagesImageTypeImageIndexHead({ @Path('name') required String? name, @Path('imageType') required String? imageType, @Path('imageIndex') required int? imageIndex, @@ -8030,7 +8068,8 @@ abstract class JellyfinOpenApi extends ChopperService { ///@param enableUserData Optional. Include user data. ///@param imageTypeLimit Optional. The max number of images to return, per image type. ///@param enableImageTypes Optional. The image types to include in the output. - Future> musicGenresNameInstantMixGet({ + Future> + musicGenresNameInstantMixGet({ required String? name, String? userId, int? limit, @@ -8067,7 +8106,8 @@ abstract class JellyfinOpenApi extends ChopperService { ///@param imageTypeLimit Optional. The max number of images to return, per image type. ///@param enableImageTypes Optional. The image types to include in the output. @GET(path: '/MusicGenres/{name}/InstantMix') - Future> _musicGenresNameInstantMixGet({ + Future> + _musicGenresNameInstantMixGet({ @Path('name') required String? name, @Query('userId') String? userId, @Query('limit') int? limit, @@ -8144,7 +8184,8 @@ abstract class JellyfinOpenApi extends ChopperService { ///@param enableUserData Optional. Include user data. ///@param imageTypeLimit Optional. The max number of images to return, per image type. ///@param enableImageTypes Optional. The image types to include in the output. - Future> playlistsItemIdInstantMixGet({ + Future> + playlistsItemIdInstantMixGet({ required String? itemId, String? userId, int? limit, @@ -8181,7 +8222,8 @@ abstract class JellyfinOpenApi extends ChopperService { ///@param imageTypeLimit Optional. The max number of images to return, per image type. ///@param enableImageTypes Optional. The image types to include in the output. @GET(path: '/Playlists/{itemId}/InstantMix') - Future> _playlistsItemIdInstantMixGet({ + Future> + _playlistsItemIdInstantMixGet({ @Path('itemId') required String? itemId, @Query('userId') String? userId, @Query('limit') int? limit, @@ -8265,8 +8307,8 @@ abstract class JellyfinOpenApi extends ChopperService { ///Get the item's external id info. ///@param itemId Item id. @GET(path: '/Items/{itemId}/ExternalIdInfos') - Future>> _itemsItemIdExternalIdInfosGet( - {@Path('itemId') required String? itemId}); + Future>> + _itemsItemIdExternalIdInfosGet({@Path('itemId') required String? itemId}); ///Applies search criteria to an item and refreshes metadata. ///@param itemId Item id. @@ -8307,13 +8349,14 @@ abstract class JellyfinOpenApi extends ChopperService { ///Get book remote search. @POST(path: '/Items/RemoteSearch/Book', optionalBody: true) - Future>> _itemsRemoteSearchBookPost({ + Future>> + _itemsRemoteSearchBookPost({ @Body() required BookInfoRemoteSearchQuery? body, }); ///Get box set remote search. - Future>> itemsRemoteSearchBoxSetPost( - {required BoxSetInfoRemoteSearchQuery? body}) { + Future>> + itemsRemoteSearchBoxSetPost({required BoxSetInfoRemoteSearchQuery? body}) { generatedMapping.putIfAbsent( RemoteSearchResult, () => RemoteSearchResult.fromJsonFactory, @@ -8324,13 +8367,14 @@ abstract class JellyfinOpenApi extends ChopperService { ///Get box set remote search. @POST(path: '/Items/RemoteSearch/BoxSet', optionalBody: true) - Future>> _itemsRemoteSearchBoxSetPost({ + Future>> + _itemsRemoteSearchBoxSetPost({ @Body() required BoxSetInfoRemoteSearchQuery? body, }); ///Get movie remote search. - Future>> itemsRemoteSearchMoviePost( - {required MovieInfoRemoteSearchQuery? body}) { + Future>> + itemsRemoteSearchMoviePost({required MovieInfoRemoteSearchQuery? body}) { generatedMapping.putIfAbsent( RemoteSearchResult, () => RemoteSearchResult.fromJsonFactory, @@ -8341,13 +8385,14 @@ abstract class JellyfinOpenApi extends ChopperService { ///Get movie remote search. @POST(path: '/Items/RemoteSearch/Movie', optionalBody: true) - Future>> _itemsRemoteSearchMoviePost({ + Future>> + _itemsRemoteSearchMoviePost({ @Body() required MovieInfoRemoteSearchQuery? body, }); ///Get music album remote search. - Future>> itemsRemoteSearchMusicAlbumPost( - {required AlbumInfoRemoteSearchQuery? body}) { + Future>> + itemsRemoteSearchMusicAlbumPost({required AlbumInfoRemoteSearchQuery? body}) { generatedMapping.putIfAbsent( RemoteSearchResult, () => RemoteSearchResult.fromJsonFactory, @@ -8358,12 +8403,14 @@ abstract class JellyfinOpenApi extends ChopperService { ///Get music album remote search. @POST(path: '/Items/RemoteSearch/MusicAlbum', optionalBody: true) - Future>> _itemsRemoteSearchMusicAlbumPost({ + Future>> + _itemsRemoteSearchMusicAlbumPost({ @Body() required AlbumInfoRemoteSearchQuery? body, }); ///Get music artist remote search. - Future>> itemsRemoteSearchMusicArtistPost({ + Future>> + itemsRemoteSearchMusicArtistPost({ required ArtistInfoRemoteSearchQuery? body, }) { generatedMapping.putIfAbsent( @@ -8376,12 +8423,14 @@ abstract class JellyfinOpenApi extends ChopperService { ///Get music artist remote search. @POST(path: '/Items/RemoteSearch/MusicArtist', optionalBody: true) - Future>> _itemsRemoteSearchMusicArtistPost({ + Future>> + _itemsRemoteSearchMusicArtistPost({ @Body() required ArtistInfoRemoteSearchQuery? body, }); ///Get music video remote search. - Future>> itemsRemoteSearchMusicVideoPost({ + Future>> + itemsRemoteSearchMusicVideoPost({ required MusicVideoInfoRemoteSearchQuery? body, }) { generatedMapping.putIfAbsent( @@ -8394,12 +8443,14 @@ abstract class JellyfinOpenApi extends ChopperService { ///Get music video remote search. @POST(path: '/Items/RemoteSearch/MusicVideo', optionalBody: true) - Future>> _itemsRemoteSearchMusicVideoPost({ + Future>> + _itemsRemoteSearchMusicVideoPost({ @Body() required MusicVideoInfoRemoteSearchQuery? body, }); ///Get person remote search. - Future>> itemsRemoteSearchPersonPost({ + Future>> + itemsRemoteSearchPersonPost({ required PersonLookupInfoRemoteSearchQuery? body, }) { generatedMapping.putIfAbsent( @@ -8412,13 +8463,14 @@ abstract class JellyfinOpenApi extends ChopperService { ///Get person remote search. @POST(path: '/Items/RemoteSearch/Person', optionalBody: true) - Future>> _itemsRemoteSearchPersonPost({ + Future>> + _itemsRemoteSearchPersonPost({ @Body() required PersonLookupInfoRemoteSearchQuery? body, }); ///Get series remote search. - Future>> itemsRemoteSearchSeriesPost( - {required SeriesInfoRemoteSearchQuery? body}) { + Future>> + itemsRemoteSearchSeriesPost({required SeriesInfoRemoteSearchQuery? body}) { generatedMapping.putIfAbsent( RemoteSearchResult, () => RemoteSearchResult.fromJsonFactory, @@ -8429,13 +8481,14 @@ abstract class JellyfinOpenApi extends ChopperService { ///Get series remote search. @POST(path: '/Items/RemoteSearch/Series', optionalBody: true) - Future>> _itemsRemoteSearchSeriesPost({ + Future>> + _itemsRemoteSearchSeriesPost({ @Body() required SeriesInfoRemoteSearchQuery? body, }); ///Get trailer remote search. - Future>> itemsRemoteSearchTrailerPost( - {required TrailerInfoRemoteSearchQuery? body}) { + Future>> + itemsRemoteSearchTrailerPost({required TrailerInfoRemoteSearchQuery? body}) { generatedMapping.putIfAbsent( RemoteSearchResult, () => RemoteSearchResult.fromJsonFactory, @@ -8446,7 +8499,8 @@ abstract class JellyfinOpenApi extends ChopperService { ///Get trailer remote search. @POST(path: '/Items/RemoteSearch/Trailer', optionalBody: true) - Future>> _itemsRemoteSearchTrailerPost({ + Future>> + _itemsRemoteSearchTrailerPost({ @Body() required TrailerInfoRemoteSearchQuery? body, }); @@ -9320,8 +9374,8 @@ abstract class JellyfinOpenApi extends ChopperService { ///@param itemId @deprecated @GET(path: '/Items/{itemId}/CriticReviews') - Future> _itemsItemIdCriticReviewsGet( - {@Path('itemId') required String? itemId}); + Future> + _itemsItemIdCriticReviewsGet({@Path('itemId') required String? itemId}); ///Downloads item media. ///@param itemId The item id. @@ -9545,7 +9599,8 @@ abstract class JellyfinOpenApi extends ChopperService { ///Gets the library options info. ///@param libraryContentType Library content type. ///@param isNewLibrary Whether this is a new library. - Future> librariesAvailableOptionsGet({ + Future> + librariesAvailableOptionsGet({ enums.LibrariesAvailableOptionsGetLibraryContentType? libraryContentType, bool? isNewLibrary, }) { @@ -9564,7 +9619,8 @@ abstract class JellyfinOpenApi extends ChopperService { ///@param libraryContentType Library content type. ///@param isNewLibrary Whether this is a new library. @GET(path: '/Libraries/AvailableOptions') - Future> _librariesAvailableOptionsGet({ + Future> + _librariesAvailableOptionsGet({ @Query('libraryContentType') String? libraryContentType, @Query('isNewLibrary') bool? isNewLibrary, }); @@ -9983,7 +10039,8 @@ abstract class JellyfinOpenApi extends ChopperService { ///Get channel mapping options. ///@param providerId Provider id. - Future> liveTvChannelMappingOptionsGet({String? providerId}) { + Future> + liveTvChannelMappingOptionsGet({String? providerId}) { generatedMapping.putIfAbsent( ChannelMappingOptionsDto, () => ChannelMappingOptionsDto.fromJsonFactory, @@ -9995,8 +10052,8 @@ abstract class JellyfinOpenApi extends ChopperService { ///Get channel mapping options. ///@param providerId Provider id. @GET(path: '/LiveTv/ChannelMappingOptions') - Future> _liveTvChannelMappingOptionsGet( - {@Query('providerId') String? providerId}); + Future> + _liveTvChannelMappingOptionsGet({@Query('providerId') String? providerId}); ///Set channel mappings. Future> liveTvChannelMappingsPost({ @@ -10233,7 +10290,8 @@ abstract class JellyfinOpenApi extends ChopperService { }); ///Gets default listings provider info. - Future> liveTvListingProvidersDefaultGet() { + Future> + liveTvListingProvidersDefaultGet() { generatedMapping.putIfAbsent( ListingsProviderInfo, () => ListingsProviderInfo.fromJsonFactory, @@ -10244,7 +10302,8 @@ abstract class JellyfinOpenApi extends ChopperService { ///Gets default listings provider info. @GET(path: '/LiveTv/ListingProviders/Default') - Future> _liveTvListingProvidersDefaultGet(); + Future> + _liveTvListingProvidersDefaultGet(); ///Gets available lineups. ///@param id Provider id. @@ -10281,13 +10340,15 @@ abstract class JellyfinOpenApi extends ChopperService { }); ///Gets available countries. - Future> liveTvListingProvidersSchedulesDirectCountriesGet() { + Future> + liveTvListingProvidersSchedulesDirectCountriesGet() { return _liveTvListingProvidersSchedulesDirectCountriesGet(); } ///Gets available countries. @GET(path: '/LiveTv/ListingProviders/SchedulesDirect/Countries') - Future> _liveTvListingProvidersSchedulesDirectCountriesGet(); + Future> + _liveTvListingProvidersSchedulesDirectCountriesGet(); ///Gets a live tv recording stream. ///@param recordingId Recording id. @@ -10307,7 +10368,8 @@ abstract class JellyfinOpenApi extends ChopperService { ///Gets a live tv channel stream. ///@param streamId Stream id. ///@param container Container type. - Future> liveTvLiveStreamFilesStreamIdStreamContainerGet({ + Future> + liveTvLiveStreamFilesStreamIdStreamContainerGet({ required String? streamId, required String? container, }) { @@ -10321,7 +10383,8 @@ abstract class JellyfinOpenApi extends ChopperService { ///@param streamId Stream id. ///@param container Container type. @GET(path: '/LiveTv/LiveStreamFiles/{streamId}/stream.{container}') - Future> _liveTvLiveStreamFilesStreamIdStreamContainerGet({ + Future> + _liveTvLiveStreamFilesStreamIdStreamContainerGet({ @Path('streamId') required String? streamId, @Path('container') required String? container, }); @@ -10538,7 +10601,8 @@ abstract class JellyfinOpenApi extends ChopperService { ///@param fields Optional. Specify additional fields of information to return in the output. ///@param enableUserData Optional. include user data. ///@param enableTotalRecordCount Retrieve total record count. - Future> liveTvProgramsRecommendedGet({ + Future> + liveTvProgramsRecommendedGet({ String? userId, int? startIndex, int? limit, @@ -10602,7 +10666,8 @@ abstract class JellyfinOpenApi extends ChopperService { ///@param enableUserData Optional. include user data. ///@param enableTotalRecordCount Retrieve total record count. @GET(path: '/LiveTv/Programs/Recommended') - Future> _liveTvProgramsRecommendedGet({ + Future> + _liveTvProgramsRecommendedGet({ @Query('userId') String? userId, @Query('startIndex') int? startIndex, @Query('limit') int? limit, @@ -10927,7 +10992,8 @@ abstract class JellyfinOpenApi extends ChopperService { ///Gets live tv series timers. ///@param sortBy Optional. Sort by SortName or Priority. ///@param sortOrder Optional. Sort in Ascending or Descending order. - Future> liveTvSeriesTimersGet({ + Future> + liveTvSeriesTimersGet({ String? sortBy, enums.LiveTvSeriesTimersGetSortOrder? sortOrder, }) { @@ -10946,7 +11012,8 @@ abstract class JellyfinOpenApi extends ChopperService { ///@param sortBy Optional. Sort by SortName or Priority. ///@param sortOrder Optional. Sort in Ascending or Descending order. @GET(path: '/LiveTv/SeriesTimers') - Future> _liveTvSeriesTimersGet({ + Future> + _liveTvSeriesTimersGet({ @Query('sortBy') String? sortBy, @Query('sortOrder') String? sortOrder, }); @@ -11271,7 +11338,8 @@ abstract class JellyfinOpenApi extends ChopperService { Future>> _localizationOptionsGet(); ///Gets known parental ratings. - Future>> localizationParentalRatingsGet() { + Future>> + localizationParentalRatingsGet() { generatedMapping.putIfAbsent( ParentalRating, () => ParentalRating.fromJsonFactory, @@ -11282,7 +11350,8 @@ abstract class JellyfinOpenApi extends ChopperService { ///Gets known parental ratings. @GET(path: '/Localization/ParentalRatings') - Future>> _localizationParentalRatingsGet(); + Future>> + _localizationParentalRatingsGet(); ///Gets an item's lyrics. ///@param itemId Item id. @@ -11343,7 +11412,8 @@ abstract class JellyfinOpenApi extends ChopperService { ///Search remote lyrics. ///@param itemId The item id. - Future>> audioItemIdRemoteSearchLyricsGet({required String? itemId}) { + Future>> + audioItemIdRemoteSearchLyricsGet({required String? itemId}) { generatedMapping.putIfAbsent( RemoteLyricInfoDto, () => RemoteLyricInfoDto.fromJsonFactory, @@ -11355,8 +11425,8 @@ abstract class JellyfinOpenApi extends ChopperService { ///Search remote lyrics. ///@param itemId The item id. @GET(path: '/Audio/{itemId}/RemoteSearch/Lyrics') - Future>> _audioItemIdRemoteSearchLyricsGet( - {@Path('itemId') required String? itemId}); + Future>> + _audioItemIdRemoteSearchLyricsGet({@Path('itemId') required String? itemId}); ///Downloads a remote lyric. ///@param itemId The item id. @@ -11612,7 +11682,8 @@ abstract class JellyfinOpenApi extends ChopperService { @Query('itemId') String? itemId, @Query('enableDirectPlay') bool? enableDirectPlay, @Query('enableDirectStream') bool? enableDirectStream, - @Query('alwaysBurnInSubtitleWhenTranscoding') bool? alwaysBurnInSubtitleWhenTranscoding, + @Query('alwaysBurnInSubtitleWhenTranscoding') + bool? alwaysBurnInSubtitleWhenTranscoding, @Body() required OpenLiveStreamDto? body, }); @@ -12574,7 +12645,8 @@ abstract class JellyfinOpenApi extends ChopperService { ///@param imageTypeLimit Optional. The max number of images to return, per image type. ///@param enableImageTypes Optional. The image types to include in the output. @GET(path: '/Playlists/{playlistId}/Items') - Future> _playlistsPlaylistIdItemsGet({ + Future> + _playlistsPlaylistIdItemsGet({ @Path('playlistId') required String? playlistId, @Query('userId') String? userId, @Query('startIndex') int? startIndex, @@ -12618,7 +12690,8 @@ abstract class JellyfinOpenApi extends ChopperService { ///Get a playlist's users. ///@param playlistId The playlist id. - Future>> playlistsPlaylistIdUsersGet({required String? playlistId}) { + Future>> + playlistsPlaylistIdUsersGet({required String? playlistId}) { generatedMapping.putIfAbsent( PlaylistUserPermissions, () => PlaylistUserPermissions.fromJsonFactory, @@ -12630,14 +12703,16 @@ abstract class JellyfinOpenApi extends ChopperService { ///Get a playlist's users. ///@param playlistId The playlist id. @GET(path: '/Playlists/{playlistId}/Users') - Future>> _playlistsPlaylistIdUsersGet({ + Future>> + _playlistsPlaylistIdUsersGet({ @Path('playlistId') required String? playlistId, }); ///Get a playlist user. ///@param playlistId The playlist id. ///@param userId The user id. - Future> playlistsPlaylistIdUsersUserIdGet({ + Future> + playlistsPlaylistIdUsersUserIdGet({ required String? playlistId, required String? userId, }) { @@ -12656,7 +12731,8 @@ abstract class JellyfinOpenApi extends ChopperService { ///@param playlistId The playlist id. ///@param userId The user id. @GET(path: '/Playlists/{playlistId}/Users/{userId}') - Future> _playlistsPlaylistIdUsersUserIdGet({ + Future> + _playlistsPlaylistIdUsersUserIdGet({ @Path('playlistId') required String? playlistId, @Path('userId') required String? userId, }); @@ -13103,7 +13179,8 @@ abstract class JellyfinOpenApi extends ChopperService { ///Gets plugin configuration. ///@param pluginId Plugin id. - Future> pluginsPluginIdConfigurationGet({required String? pluginId}) { + Future> + pluginsPluginIdConfigurationGet({required String? pluginId}) { generatedMapping.putIfAbsent( BasePluginConfiguration, () => BasePluginConfiguration.fromJsonFactory, @@ -13115,7 +13192,8 @@ abstract class JellyfinOpenApi extends ChopperService { ///Gets plugin configuration. ///@param pluginId Plugin id. @GET(path: '/Plugins/{pluginId}/Configuration') - Future> _pluginsPluginIdConfigurationGet({ + Future> + _pluginsPluginIdConfigurationGet({ @Path('pluginId') required String? pluginId, }); @@ -13287,7 +13365,8 @@ abstract class JellyfinOpenApi extends ChopperService { ///Gets available remote image providers for an item. ///@param itemId Item Id. - Future>> itemsItemIdRemoteImagesProvidersGet({required String? itemId}) { + Future>> + itemsItemIdRemoteImagesProvidersGet({required String? itemId}) { generatedMapping.putIfAbsent( ImageProviderInfo, () => ImageProviderInfo.fromJsonFactory, @@ -13299,7 +13378,8 @@ abstract class JellyfinOpenApi extends ChopperService { ///Gets available remote image providers for an item. ///@param itemId Item Id. @GET(path: '/Items/{itemId}/RemoteImages/Providers') - Future>> _itemsItemIdRemoteImagesProvidersGet({ + Future>> + _itemsItemIdRemoteImagesProvidersGet({ @Path('itemId') required String? itemId, }); @@ -14113,7 +14193,8 @@ abstract class JellyfinOpenApi extends ChopperService { ///@param itemId The item id. ///@param language The language of the subtitles. ///@param isPerfectMatch Optional. Only show subtitles which are a perfect match. - Future>> itemsItemIdRemoteSearchSubtitlesLanguageGet({ + Future>> + itemsItemIdRemoteSearchSubtitlesLanguageGet({ required String? itemId, required String? language, bool? isPerfectMatch, @@ -14135,7 +14216,8 @@ abstract class JellyfinOpenApi extends ChopperService { ///@param language The language of the subtitles. ///@param isPerfectMatch Optional. Only show subtitles which are a perfect match. @GET(path: '/Items/{itemId}/RemoteSearch/Subtitles/{language}') - Future>> _itemsItemIdRemoteSearchSubtitlesLanguageGet({ + Future>> + _itemsItemIdRemoteSearchSubtitlesLanguageGet({ @Path('itemId') required String? itemId, @Path('language') required String? language, @Query('isPerfectMatch') bool? isPerfectMatch, @@ -14186,7 +14268,8 @@ abstract class JellyfinOpenApi extends ChopperService { ///@param index The subtitle stream index. ///@param mediaSourceId The media source id. ///@param segmentLength The subtitle segment length. - Future> videosItemIdMediaSourceIdSubtitlesIndexSubtitlesM3u8Get({ + Future> + videosItemIdMediaSourceIdSubtitlesIndexSubtitlesM3u8Get({ required String? itemId, required int? index, required String? mediaSourceId, @@ -14208,7 +14291,8 @@ abstract class JellyfinOpenApi extends ChopperService { @GET( path: '/Videos/{itemId}/{mediaSourceId}/Subtitles/{index}/subtitles.m3u8', ) - Future> _videosItemIdMediaSourceIdSubtitlesIndexSubtitlesM3u8Get({ + Future> + _videosItemIdMediaSourceIdSubtitlesIndexSubtitlesM3u8Get({ @Path('itemId') required String? itemId, @Path('index') required int? index, @Path('mediaSourceId') required String? mediaSourceId, @@ -14266,7 +14350,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, @@ -14317,7 +14401,7 @@ abstract class JellyfinOpenApi extends ChopperService { '/Videos/{routeItemId}/{routeMediaSourceId}/Subtitles/{routeIndex}/{routeStartPositionTicks}/Stream.{routeFormat}', ) Future> - _videosRouteItemIdRouteMediaSourceIdSubtitlesRouteIndexRouteStartPositionTicksStreamRouteFormatGet({ + _videosRouteItemIdRouteMediaSourceIdSubtitlesRouteIndexRouteStartPositionTicksStreamRouteFormatGet({ @Path('routeItemId') required String? routeItemId, @Path('routeMediaSourceId') required String? routeMediaSourceId, @Path('routeIndex') required int? routeIndex, @@ -14346,7 +14430,8 @@ abstract class JellyfinOpenApi extends ChopperService { ///@param copyTimestamps Optional. Whether to copy the timestamps. ///@param addVttTimeMap Optional. Whether to add a VTT time map. ///@param startPositionTicks The start position of the subtitle in ticks. - Future> videosRouteItemIdRouteMediaSourceIdSubtitlesRouteIndexStreamRouteFormatGet({ + Future> + videosRouteItemIdRouteMediaSourceIdSubtitlesRouteIndexStreamRouteFormatGet({ required String? routeItemId, required String? routeMediaSourceId, required int? routeIndex, @@ -14390,9 +14475,11 @@ abstract class JellyfinOpenApi extends ChopperService { ///@param addVttTimeMap Optional. Whether to add a VTT time map. ///@param startPositionTicks The start position of the subtitle in ticks. @GET( - path: '/Videos/{routeItemId}/{routeMediaSourceId}/Subtitles/{routeIndex}/Stream.{routeFormat}', + path: + '/Videos/{routeItemId}/{routeMediaSourceId}/Subtitles/{routeIndex}/Stream.{routeFormat}', ) - Future> _videosRouteItemIdRouteMediaSourceIdSubtitlesRouteIndexStreamRouteFormatGet({ + Future> + _videosRouteItemIdRouteMediaSourceIdSubtitlesRouteIndexStreamRouteFormatGet({ @Path('routeItemId') required String? routeItemId, @Path('routeMediaSourceId') required String? routeMediaSourceId, @Path('routeIndex') required int? routeIndex, @@ -15990,8 +16077,8 @@ abstract class JellyfinOpenApi extends ChopperService { }); ///Authenticates a user with quick connect. - Future> usersAuthenticateWithQuickConnectPost( - {required QuickConnectDto? body}) { + Future> + usersAuthenticateWithQuickConnectPost({required QuickConnectDto? body}) { generatedMapping.putIfAbsent( AuthenticationResult, () => AuthenticationResult.fromJsonFactory, @@ -16002,7 +16089,8 @@ abstract class JellyfinOpenApi extends ChopperService { ///Authenticates a user with quick connect. @POST(path: '/Users/AuthenticateWithQuickConnect', optionalBody: true) - Future> _usersAuthenticateWithQuickConnectPost({ + Future> + _usersAuthenticateWithQuickConnectPost({ @Body() required QuickConnectDto? body, }); @@ -16418,7 +16506,8 @@ abstract class JellyfinOpenApi extends ChopperService { ///Get user view grouping options. ///@param userId User id. - Future>> userViewsGroupingOptionsGet({String? userId}) { + Future>> + userViewsGroupingOptionsGet({String? userId}) { generatedMapping.putIfAbsent( SpecialViewOptionDto, () => SpecialViewOptionDto.fromJsonFactory, @@ -16430,13 +16519,15 @@ abstract class JellyfinOpenApi extends ChopperService { ///Get user view grouping options. ///@param userId User id. @GET(path: '/UserViews/GroupingOptions') - Future>> _userViewsGroupingOptionsGet({@Query('userId') String? userId}); + Future>> + _userViewsGroupingOptionsGet({@Query('userId') String? userId}); ///Get video attachment. ///@param videoId Video ID. ///@param mediaSourceId Media Source ID. ///@param index Attachment Index. - Future> videosVideoIdMediaSourceIdAttachmentsIndexGet({ + Future> + videosVideoIdMediaSourceIdAttachmentsIndexGet({ required String? videoId, required String? mediaSourceId, required int? index, @@ -16453,7 +16544,8 @@ abstract class JellyfinOpenApi extends ChopperService { ///@param mediaSourceId Media Source ID. ///@param index Attachment Index. @GET(path: '/Videos/{videoId}/{mediaSourceId}/Attachments/{index}') - Future> _videosVideoIdMediaSourceIdAttachmentsIndexGet({ + Future> + _videosVideoIdMediaSourceIdAttachmentsIndexGet({ @Path('videoId') required String? videoId, @Path('mediaSourceId') required String? mediaSourceId, @Path('index') required int? index, @@ -16462,8 +16554,8 @@ abstract class JellyfinOpenApi extends ChopperService { ///Gets additional parts for a video. ///@param itemId The item id. ///@param userId Optional. Filter by user id, and attach user data. - Future> videosItemIdAdditionalPartsGet( - {required String? itemId, String? userId}) { + Future> + videosItemIdAdditionalPartsGet({required String? itemId, String? userId}) { generatedMapping.putIfAbsent( BaseItemDtoQueryResult, () => BaseItemDtoQueryResult.fromJsonFactory, @@ -16476,7 +16568,8 @@ abstract class JellyfinOpenApi extends ChopperService { ///@param itemId The item id. ///@param userId Optional. Filter by user id, and attach user data. @GET(path: '/Videos/{itemId}/AdditionalParts') - Future> _videosItemIdAdditionalPartsGet({ + Future> + _videosItemIdAdditionalPartsGet({ @Path('itemId') required String? itemId, @Query('userId') String? userId, }); @@ -17726,7 +17819,8 @@ class AccessSchedule { this.endHour, }); - factory AccessSchedule.fromJson(Map json) => _$AccessScheduleFromJson(json); + factory AccessSchedule.fromJson(Map json) => + _$AccessScheduleFromJson(json); static const toJsonFactory = _$AccessScheduleToJson; Map toJson() => _$AccessScheduleToJson(this); @@ -17752,8 +17846,10 @@ class AccessSchedule { bool operator ==(Object other) { return identical(this, other) || (other is AccessSchedule && - (identical(other.id, id) || const DeepCollectionEquality().equals(other.id, id)) && - (identical(other.userId, userId) || const DeepCollectionEquality().equals(other.userId, userId)) && + (identical(other.id, id) || + const DeepCollectionEquality().equals(other.id, id)) && + (identical(other.userId, userId) || + const DeepCollectionEquality().equals(other.userId, userId)) && (identical(other.dayOfWeek, dayOfWeek) || const DeepCollectionEquality().equals( other.dayOfWeek, @@ -17764,7 +17860,8 @@ class AccessSchedule { other.startHour, startHour, )) && - (identical(other.endHour, endHour) || const DeepCollectionEquality().equals(other.endHour, endHour))); + (identical(other.endHour, endHour) || + const DeepCollectionEquality().equals(other.endHour, endHour))); } @override @@ -17829,7 +17926,8 @@ class ActivityLogEntry { this.severity, }); - factory ActivityLogEntry.fromJson(Map json) => _$ActivityLogEntryFromJson(json); + factory ActivityLogEntry.fromJson(Map json) => + _$ActivityLogEntryFromJson(json); static const toJsonFactory = _$ActivityLogEntryToJson; Map toJson() => _$ActivityLogEntryToJson(this); @@ -17866,8 +17964,10 @@ class ActivityLogEntry { bool operator ==(Object other) { return identical(this, other) || (other is ActivityLogEntry && - (identical(other.id, id) || const DeepCollectionEquality().equals(other.id, id)) && - (identical(other.name, name) || const DeepCollectionEquality().equals(other.name, name)) && + (identical(other.id, id) || + const DeepCollectionEquality().equals(other.id, id)) && + (identical(other.name, name) || + const DeepCollectionEquality().equals(other.name, name)) && (identical(other.overview, overview) || const DeepCollectionEquality().equals( other.overview, @@ -17878,10 +17978,14 @@ class ActivityLogEntry { other.shortOverview, shortOverview, )) && - (identical(other.type, type) || const DeepCollectionEquality().equals(other.type, type)) && - (identical(other.itemId, itemId) || const DeepCollectionEquality().equals(other.itemId, itemId)) && - (identical(other.date, date) || const DeepCollectionEquality().equals(other.date, date)) && - (identical(other.userId, userId) || const DeepCollectionEquality().equals(other.userId, userId)) && + (identical(other.type, type) || + const DeepCollectionEquality().equals(other.type, type)) && + (identical(other.itemId, itemId) || + const DeepCollectionEquality().equals(other.itemId, itemId)) && + (identical(other.date, date) || + const DeepCollectionEquality().equals(other.date, date)) && + (identical(other.userId, userId) || + const DeepCollectionEquality().equals(other.userId, userId)) && (identical(other.userPrimaryImageTag, userPrimaryImageTag) || const DeepCollectionEquality().equals( other.userPrimaryImageTag, @@ -17955,12 +18059,16 @@ extension $ActivityLogEntryExtension on ActivityLogEntry { id: (id != null ? id.value : this.id), name: (name != null ? name.value : this.name), overview: (overview != null ? overview.value : this.overview), - shortOverview: (shortOverview != null ? shortOverview.value : this.shortOverview), + shortOverview: (shortOverview != null + ? shortOverview.value + : this.shortOverview), type: (type != null ? type.value : this.type), itemId: (itemId != null ? itemId.value : this.itemId), date: (date != null ? date.value : this.date), userId: (userId != null ? userId.value : this.userId), - userPrimaryImageTag: (userPrimaryImageTag != null ? userPrimaryImageTag.value : this.userPrimaryImageTag), + userPrimaryImageTag: (userPrimaryImageTag != null + ? userPrimaryImageTag.value + : this.userPrimaryImageTag), severity: (severity != null ? severity.value : this.severity), ); } @@ -17970,7 +18078,8 @@ extension $ActivityLogEntryExtension on ActivityLogEntry { class ActivityLogEntryMessage { const ActivityLogEntryMessage({this.data, this.messageId, this.messageType}); - factory ActivityLogEntryMessage.fromJson(Map json) => _$ActivityLogEntryMessageFromJson(json); + factory ActivityLogEntryMessage.fromJson(Map json) => + _$ActivityLogEntryMessageFromJson(json); static const toJsonFactory = _$ActivityLogEntryMessageToJson; Map toJson() => _$ActivityLogEntryMessageToJson(this); @@ -17990,7 +18099,8 @@ class ActivityLogEntryMessage { fromJson: sessionMessageTypeMessageTypeNullableFromJson, ) final enums.SessionMessageType? messageType; - static enums.SessionMessageType? sessionMessageTypeMessageTypeNullableFromJson(Object? value) => + static enums.SessionMessageType? + sessionMessageTypeMessageTypeNullableFromJson(Object? value) => sessionMessageTypeNullableFromJson( value, enums.SessionMessageType.activitylogentry, @@ -18002,7 +18112,8 @@ class ActivityLogEntryMessage { bool operator ==(Object other) { return identical(this, other) || (other is ActivityLogEntryMessage && - (identical(other.data, data) || const DeepCollectionEquality().equals(other.data, data)) && + (identical(other.data, data) || + const DeepCollectionEquality().equals(other.data, data)) && (identical(other.messageId, messageId) || const DeepCollectionEquality().equals( other.messageId, @@ -18082,7 +18193,8 @@ class ActivityLogEntryQueryResult { bool operator ==(Object other) { return identical(this, other) || (other is ActivityLogEntryQueryResult && - (identical(other.items, items) || const DeepCollectionEquality().equals(other.items, items)) && + (identical(other.items, items) || + const DeepCollectionEquality().equals(other.items, items)) && (identical(other.totalRecordCount, totalRecordCount) || const DeepCollectionEquality().equals( other.totalRecordCount, @@ -18126,7 +18238,9 @@ extension $ActivityLogEntryQueryResultExtension on ActivityLogEntryQueryResult { }) { return ActivityLogEntryQueryResult( items: (items != null ? items.value : this.items), - totalRecordCount: (totalRecordCount != null ? totalRecordCount.value : this.totalRecordCount), + totalRecordCount: (totalRecordCount != null + ? totalRecordCount.value + : this.totalRecordCount), startIndex: (startIndex != null ? startIndex.value : this.startIndex), ); } @@ -18151,7 +18265,8 @@ class ActivityLogEntryStartMessage { fromJson: sessionMessageTypeMessageTypeNullableFromJson, ) final enums.SessionMessageType? messageType; - static enums.SessionMessageType? sessionMessageTypeMessageTypeNullableFromJson(Object? value) => + static enums.SessionMessageType? + sessionMessageTypeMessageTypeNullableFromJson(Object? value) => sessionMessageTypeNullableFromJson( value, enums.SessionMessageType.activitylogentrystart, @@ -18163,7 +18278,8 @@ class ActivityLogEntryStartMessage { bool operator ==(Object other) { return identical(this, other) || (other is ActivityLogEntryStartMessage && - (identical(other.data, data) || const DeepCollectionEquality().equals(other.data, data)) && + (identical(other.data, data) || + const DeepCollectionEquality().equals(other.data, data)) && (identical(other.messageType, messageType) || const DeepCollectionEquality().equals( other.messageType, @@ -18181,7 +18297,8 @@ class ActivityLogEntryStartMessage { runtimeType.hashCode; } -extension $ActivityLogEntryStartMessageExtension on ActivityLogEntryStartMessage { +extension $ActivityLogEntryStartMessageExtension + on ActivityLogEntryStartMessage { ActivityLogEntryStartMessage copyWith({ String? data, enums.SessionMessageType? messageType, @@ -18220,7 +18337,8 @@ class ActivityLogEntryStopMessage { fromJson: sessionMessageTypeMessageTypeNullableFromJson, ) final enums.SessionMessageType? messageType; - static enums.SessionMessageType? sessionMessageTypeMessageTypeNullableFromJson(Object? value) => + static enums.SessionMessageType? + sessionMessageTypeMessageTypeNullableFromJson(Object? value) => sessionMessageTypeNullableFromJson( value, enums.SessionMessageType.activitylogentrystop, @@ -18243,7 +18361,8 @@ class ActivityLogEntryStopMessage { String toString() => jsonEncode(this); @override - int get hashCode => const DeepCollectionEquality().hash(messageType) ^ runtimeType.hashCode; + int get hashCode => + const DeepCollectionEquality().hash(messageType) ^ runtimeType.hashCode; } extension $ActivityLogEntryStopMessageExtension on ActivityLogEntryStopMessage { @@ -18268,7 +18387,8 @@ extension $ActivityLogEntryStopMessageExtension on ActivityLogEntryStopMessage { class AddVirtualFolderDto { const AddVirtualFolderDto({this.libraryOptions}); - factory AddVirtualFolderDto.fromJson(Map json) => _$AddVirtualFolderDtoFromJson(json); + factory AddVirtualFolderDto.fromJson(Map json) => + _$AddVirtualFolderDtoFromJson(json); static const toJsonFactory = _$AddVirtualFolderDtoToJson; Map toJson() => _$AddVirtualFolderDtoToJson(this); @@ -18292,7 +18412,9 @@ class AddVirtualFolderDto { String toString() => jsonEncode(this); @override - int get hashCode => const DeepCollectionEquality().hash(libraryOptions) ^ runtimeType.hashCode; + int get hashCode => + const DeepCollectionEquality().hash(libraryOptions) ^ + runtimeType.hashCode; } extension $AddVirtualFolderDtoExtension on AddVirtualFolderDto { @@ -18306,7 +18428,9 @@ extension $AddVirtualFolderDtoExtension on AddVirtualFolderDto { Wrapped? libraryOptions, }) { return AddVirtualFolderDto( - libraryOptions: (libraryOptions != null ? libraryOptions.value : this.libraryOptions), + libraryOptions: (libraryOptions != null + ? libraryOptions.value + : this.libraryOptions), ); } } @@ -18330,7 +18454,8 @@ class AlbumInfo { this.songInfos, }); - factory AlbumInfo.fromJson(Map json) => _$AlbumInfoFromJson(json); + factory AlbumInfo.fromJson(Map json) => + _$AlbumInfoFromJson(json); static const toJsonFactory = _$AlbumInfoToJson; Map toJson() => _$AlbumInfoToJson(this); @@ -18369,13 +18494,15 @@ class AlbumInfo { bool operator ==(Object other) { return identical(this, other) || (other is AlbumInfo && - (identical(other.name, name) || const DeepCollectionEquality().equals(other.name, name)) && + (identical(other.name, name) || + const DeepCollectionEquality().equals(other.name, name)) && (identical(other.originalTitle, originalTitle) || const DeepCollectionEquality().equals( other.originalTitle, originalTitle, )) && - (identical(other.path, path) || const DeepCollectionEquality().equals(other.path, path)) && + (identical(other.path, path) || + const DeepCollectionEquality().equals(other.path, path)) && (identical(other.metadataLanguage, metadataLanguage) || const DeepCollectionEquality().equals( other.metadataLanguage, @@ -18391,7 +18518,8 @@ class AlbumInfo { other.providerIds, providerIds, )) && - (identical(other.year, year) || const DeepCollectionEquality().equals(other.year, year)) && + (identical(other.year, year) || + const DeepCollectionEquality().equals(other.year, year)) && (identical(other.indexNumber, indexNumber) || const DeepCollectionEquality().equals( other.indexNumber, @@ -18504,18 +18632,32 @@ extension $AlbumInfoExtension on AlbumInfo { }) { return AlbumInfo( name: (name != null ? name.value : this.name), - originalTitle: (originalTitle != null ? originalTitle.value : this.originalTitle), + originalTitle: (originalTitle != null + ? originalTitle.value + : this.originalTitle), path: (path != null ? path.value : this.path), - metadataLanguage: (metadataLanguage != null ? metadataLanguage.value : this.metadataLanguage), - metadataCountryCode: (metadataCountryCode != null ? metadataCountryCode.value : this.metadataCountryCode), + metadataLanguage: (metadataLanguage != null + ? metadataLanguage.value + : this.metadataLanguage), + metadataCountryCode: (metadataCountryCode != null + ? metadataCountryCode.value + : this.metadataCountryCode), providerIds: (providerIds != null ? providerIds.value : this.providerIds), year: (year != null ? year.value : this.year), indexNumber: (indexNumber != null ? indexNumber.value : this.indexNumber), - parentIndexNumber: (parentIndexNumber != null ? parentIndexNumber.value : this.parentIndexNumber), - premiereDate: (premiereDate != null ? premiereDate.value : this.premiereDate), + parentIndexNumber: (parentIndexNumber != null + ? parentIndexNumber.value + : this.parentIndexNumber), + premiereDate: (premiereDate != null + ? premiereDate.value + : this.premiereDate), isAutomated: (isAutomated != null ? isAutomated.value : this.isAutomated), - albumArtists: (albumArtists != null ? albumArtists.value : this.albumArtists), - artistProviderIds: (artistProviderIds != null ? artistProviderIds.value : this.artistProviderIds), + albumArtists: (albumArtists != null + ? albumArtists.value + : this.albumArtists), + artistProviderIds: (artistProviderIds != null + ? artistProviderIds.value + : this.artistProviderIds), songInfos: (songInfos != null ? songInfos.value : this.songInfos), ); } @@ -18530,7 +18672,8 @@ class AlbumInfoRemoteSearchQuery { this.includeDisabledProviders, }); - factory AlbumInfoRemoteSearchQuery.fromJson(Map json) => _$AlbumInfoRemoteSearchQueryFromJson(json); + factory AlbumInfoRemoteSearchQuery.fromJson(Map json) => + _$AlbumInfoRemoteSearchQueryFromJson(json); static const toJsonFactory = _$AlbumInfoRemoteSearchQueryToJson; Map toJson() => _$AlbumInfoRemoteSearchQueryToJson(this); @@ -18554,7 +18697,8 @@ class AlbumInfoRemoteSearchQuery { other.searchInfo, searchInfo, )) && - (identical(other.itemId, itemId) || const DeepCollectionEquality().equals(other.itemId, itemId)) && + (identical(other.itemId, itemId) || + const DeepCollectionEquality().equals(other.itemId, itemId)) && (identical(other.searchProviderName, searchProviderName) || const DeepCollectionEquality().equals( other.searchProviderName, @@ -18593,7 +18737,8 @@ extension $AlbumInfoRemoteSearchQueryExtension on AlbumInfoRemoteSearchQuery { searchInfo: searchInfo ?? this.searchInfo, itemId: itemId ?? this.itemId, searchProviderName: searchProviderName ?? this.searchProviderName, - includeDisabledProviders: includeDisabledProviders ?? this.includeDisabledProviders, + includeDisabledProviders: + includeDisabledProviders ?? this.includeDisabledProviders, ); } @@ -18606,9 +18751,12 @@ extension $AlbumInfoRemoteSearchQueryExtension on AlbumInfoRemoteSearchQuery { return AlbumInfoRemoteSearchQuery( searchInfo: (searchInfo != null ? searchInfo.value : this.searchInfo), itemId: (itemId != null ? itemId.value : this.itemId), - searchProviderName: (searchProviderName != null ? searchProviderName.value : this.searchProviderName), - includeDisabledProviders: - (includeDisabledProviders != null ? includeDisabledProviders.value : this.includeDisabledProviders), + searchProviderName: (searchProviderName != null + ? searchProviderName.value + : this.searchProviderName), + includeDisabledProviders: (includeDisabledProviders != null + ? includeDisabledProviders.value + : this.includeDisabledProviders), ); } } @@ -18621,7 +18769,8 @@ class AllThemeMediaResult { this.soundtrackSongsResult, }); - factory AllThemeMediaResult.fromJson(Map json) => _$AllThemeMediaResultFromJson(json); + factory AllThemeMediaResult.fromJson(Map json) => + _$AllThemeMediaResultFromJson(json); static const toJsonFactory = _$AllThemeMediaResultToJson; Map toJson() => _$AllThemeMediaResultToJson(this); @@ -18675,7 +18824,8 @@ extension $AllThemeMediaResultExtension on AllThemeMediaResult { return AllThemeMediaResult( themeVideosResult: themeVideosResult ?? this.themeVideosResult, themeSongsResult: themeSongsResult ?? this.themeSongsResult, - soundtrackSongsResult: soundtrackSongsResult ?? this.soundtrackSongsResult, + soundtrackSongsResult: + soundtrackSongsResult ?? this.soundtrackSongsResult, ); } @@ -18685,9 +18835,15 @@ extension $AllThemeMediaResultExtension on AllThemeMediaResult { Wrapped? soundtrackSongsResult, }) { return AllThemeMediaResult( - themeVideosResult: (themeVideosResult != null ? themeVideosResult.value : this.themeVideosResult), - themeSongsResult: (themeSongsResult != null ? themeSongsResult.value : this.themeSongsResult), - soundtrackSongsResult: (soundtrackSongsResult != null ? soundtrackSongsResult.value : this.soundtrackSongsResult), + themeVideosResult: (themeVideosResult != null + ? themeVideosResult.value + : this.themeVideosResult), + themeSongsResult: (themeSongsResult != null + ? themeSongsResult.value + : this.themeSongsResult), + soundtrackSongsResult: (soundtrackSongsResult != null + ? soundtrackSongsResult.value + : this.soundtrackSongsResult), ); } } @@ -18709,7 +18865,8 @@ class ArtistInfo { this.songInfos, }); - factory ArtistInfo.fromJson(Map json) => _$ArtistInfoFromJson(json); + factory ArtistInfo.fromJson(Map json) => + _$ArtistInfoFromJson(json); static const toJsonFactory = _$ArtistInfoToJson; Map toJson() => _$ArtistInfoToJson(this); @@ -18744,13 +18901,15 @@ class ArtistInfo { bool operator ==(Object other) { return identical(this, other) || (other is ArtistInfo && - (identical(other.name, name) || const DeepCollectionEquality().equals(other.name, name)) && + (identical(other.name, name) || + const DeepCollectionEquality().equals(other.name, name)) && (identical(other.originalTitle, originalTitle) || const DeepCollectionEquality().equals( other.originalTitle, originalTitle, )) && - (identical(other.path, path) || const DeepCollectionEquality().equals(other.path, path)) && + (identical(other.path, path) || + const DeepCollectionEquality().equals(other.path, path)) && (identical(other.metadataLanguage, metadataLanguage) || const DeepCollectionEquality().equals( other.metadataLanguage, @@ -18766,7 +18925,8 @@ class ArtistInfo { other.providerIds, providerIds, )) && - (identical(other.year, year) || const DeepCollectionEquality().equals(other.year, year)) && + (identical(other.year, year) || + const DeepCollectionEquality().equals(other.year, year)) && (identical(other.indexNumber, indexNumber) || const DeepCollectionEquality().equals( other.indexNumber, @@ -18861,15 +19021,25 @@ extension $ArtistInfoExtension on ArtistInfo { }) { return ArtistInfo( name: (name != null ? name.value : this.name), - originalTitle: (originalTitle != null ? originalTitle.value : this.originalTitle), + originalTitle: (originalTitle != null + ? originalTitle.value + : this.originalTitle), path: (path != null ? path.value : this.path), - metadataLanguage: (metadataLanguage != null ? metadataLanguage.value : this.metadataLanguage), - metadataCountryCode: (metadataCountryCode != null ? metadataCountryCode.value : this.metadataCountryCode), + metadataLanguage: (metadataLanguage != null + ? metadataLanguage.value + : this.metadataLanguage), + metadataCountryCode: (metadataCountryCode != null + ? metadataCountryCode.value + : this.metadataCountryCode), providerIds: (providerIds != null ? providerIds.value : this.providerIds), year: (year != null ? year.value : this.year), indexNumber: (indexNumber != null ? indexNumber.value : this.indexNumber), - parentIndexNumber: (parentIndexNumber != null ? parentIndexNumber.value : this.parentIndexNumber), - premiereDate: (premiereDate != null ? premiereDate.value : this.premiereDate), + parentIndexNumber: (parentIndexNumber != null + ? parentIndexNumber.value + : this.parentIndexNumber), + premiereDate: (premiereDate != null + ? premiereDate.value + : this.premiereDate), isAutomated: (isAutomated != null ? isAutomated.value : this.isAutomated), songInfos: (songInfos != null ? songInfos.value : this.songInfos), ); @@ -18910,7 +19080,8 @@ class ArtistInfoRemoteSearchQuery { other.searchInfo, searchInfo, )) && - (identical(other.itemId, itemId) || const DeepCollectionEquality().equals(other.itemId, itemId)) && + (identical(other.itemId, itemId) || + const DeepCollectionEquality().equals(other.itemId, itemId)) && (identical(other.searchProviderName, searchProviderName) || const DeepCollectionEquality().equals( other.searchProviderName, @@ -18949,7 +19120,8 @@ extension $ArtistInfoRemoteSearchQueryExtension on ArtistInfoRemoteSearchQuery { searchInfo: searchInfo ?? this.searchInfo, itemId: itemId ?? this.itemId, searchProviderName: searchProviderName ?? this.searchProviderName, - includeDisabledProviders: includeDisabledProviders ?? this.includeDisabledProviders, + includeDisabledProviders: + includeDisabledProviders ?? this.includeDisabledProviders, ); } @@ -18962,9 +19134,12 @@ extension $ArtistInfoRemoteSearchQueryExtension on ArtistInfoRemoteSearchQuery { return ArtistInfoRemoteSearchQuery( searchInfo: (searchInfo != null ? searchInfo.value : this.searchInfo), itemId: (itemId != null ? itemId.value : this.itemId), - searchProviderName: (searchProviderName != null ? searchProviderName.value : this.searchProviderName), - includeDisabledProviders: - (includeDisabledProviders != null ? includeDisabledProviders.value : this.includeDisabledProviders), + searchProviderName: (searchProviderName != null + ? searchProviderName.value + : this.searchProviderName), + includeDisabledProviders: (includeDisabledProviders != null + ? includeDisabledProviders.value + : this.includeDisabledProviders), ); } } @@ -18973,7 +19148,8 @@ extension $ArtistInfoRemoteSearchQueryExtension on ArtistInfoRemoteSearchQuery { class AuthenticateUserByName { const AuthenticateUserByName({this.username, this.pw}); - factory AuthenticateUserByName.fromJson(Map json) => _$AuthenticateUserByNameFromJson(json); + factory AuthenticateUserByName.fromJson(Map json) => + _$AuthenticateUserByNameFromJson(json); static const toJsonFactory = _$AuthenticateUserByNameToJson; Map toJson() => _$AuthenticateUserByNameToJson(this); @@ -18993,7 +19169,8 @@ class AuthenticateUserByName { other.username, username, )) && - (identical(other.pw, pw) || const DeepCollectionEquality().equals(other.pw, pw))); + (identical(other.pw, pw) || + const DeepCollectionEquality().equals(other.pw, pw))); } @override @@ -19001,7 +19178,9 @@ class AuthenticateUserByName { @override int get hashCode => - const DeepCollectionEquality().hash(username) ^ const DeepCollectionEquality().hash(pw) ^ runtimeType.hashCode; + const DeepCollectionEquality().hash(username) ^ + const DeepCollectionEquality().hash(pw) ^ + runtimeType.hashCode; } extension $AuthenticateUserByNameExtension on AuthenticateUserByName { @@ -19040,7 +19219,8 @@ class AuthenticationInfo { this.userName, }); - factory AuthenticationInfo.fromJson(Map json) => _$AuthenticationInfoFromJson(json); + factory AuthenticationInfo.fromJson(Map json) => + _$AuthenticationInfoFromJson(json); static const toJsonFactory = _$AuthenticationInfoToJson; Map toJson() => _$AuthenticationInfoToJson(this); @@ -19075,7 +19255,8 @@ class AuthenticationInfo { bool operator ==(Object other) { return identical(this, other) || (other is AuthenticationInfo && - (identical(other.id, id) || const DeepCollectionEquality().equals(other.id, id)) && + (identical(other.id, id) || + const DeepCollectionEquality().equals(other.id, id)) && (identical(other.accessToken, accessToken) || const DeepCollectionEquality().equals( other.accessToken, @@ -19101,7 +19282,8 @@ class AuthenticationInfo { other.deviceName, deviceName, )) && - (identical(other.userId, userId) || const DeepCollectionEquality().equals(other.userId, userId)) && + (identical(other.userId, userId) || + const DeepCollectionEquality().equals(other.userId, userId)) && (identical(other.isActive, isActive) || const DeepCollectionEquality().equals( other.isActive, @@ -19205,7 +19387,9 @@ extension $AuthenticationInfoExtension on AuthenticationInfo { isActive: (isActive != null ? isActive.value : this.isActive), dateCreated: (dateCreated != null ? dateCreated.value : this.dateCreated), dateRevoked: (dateRevoked != null ? dateRevoked.value : this.dateRevoked), - dateLastActivity: (dateLastActivity != null ? dateLastActivity.value : this.dateLastActivity), + dateLastActivity: (dateLastActivity != null + ? dateLastActivity.value + : this.dateLastActivity), userName: (userName != null ? userName.value : this.userName), ); } @@ -19241,7 +19425,8 @@ class AuthenticationInfoQueryResult { bool operator ==(Object other) { return identical(this, other) || (other is AuthenticationInfoQueryResult && - (identical(other.items, items) || const DeepCollectionEquality().equals(other.items, items)) && + (identical(other.items, items) || + const DeepCollectionEquality().equals(other.items, items)) && (identical(other.totalRecordCount, totalRecordCount) || const DeepCollectionEquality().equals( other.totalRecordCount, @@ -19265,7 +19450,8 @@ class AuthenticationInfoQueryResult { runtimeType.hashCode; } -extension $AuthenticationInfoQueryResultExtension on AuthenticationInfoQueryResult { +extension $AuthenticationInfoQueryResultExtension + on AuthenticationInfoQueryResult { AuthenticationInfoQueryResult copyWith({ List? items, int? totalRecordCount, @@ -19285,7 +19471,9 @@ extension $AuthenticationInfoQueryResultExtension on AuthenticationInfoQueryResu }) { return AuthenticationInfoQueryResult( items: (items != null ? items.value : this.items), - totalRecordCount: (totalRecordCount != null ? totalRecordCount.value : this.totalRecordCount), + totalRecordCount: (totalRecordCount != null + ? totalRecordCount.value + : this.totalRecordCount), startIndex: (startIndex != null ? startIndex.value : this.startIndex), ); } @@ -19300,7 +19488,8 @@ class AuthenticationResult { this.serverId, }); - factory AuthenticationResult.fromJson(Map json) => _$AuthenticationResultFromJson(json); + factory AuthenticationResult.fromJson(Map json) => + _$AuthenticationResultFromJson(json); static const toJsonFactory = _$AuthenticationResultToJson; Map toJson() => _$AuthenticationResultToJson(this); @@ -19319,7 +19508,8 @@ class AuthenticationResult { bool operator ==(Object other) { return identical(this, other) || (other is AuthenticationResult && - (identical(other.user, user) || const DeepCollectionEquality().equals(other.user, user)) && + (identical(other.user, user) || + const DeepCollectionEquality().equals(other.user, user)) && (identical(other.sessionInfo, sessionInfo) || const DeepCollectionEquality().equals( other.sessionInfo, @@ -19389,7 +19579,8 @@ class BackupManifestDto { this.options, }); - factory BackupManifestDto.fromJson(Map json) => _$BackupManifestDtoFromJson(json); + factory BackupManifestDto.fromJson(Map json) => + _$BackupManifestDtoFromJson(json); static const toJsonFactory = _$BackupManifestDtoToJson; Map toJson() => _$BackupManifestDtoToJson(this); @@ -19425,8 +19616,10 @@ class BackupManifestDto { other.dateCreated, dateCreated, )) && - (identical(other.path, path) || const DeepCollectionEquality().equals(other.path, path)) && - (identical(other.options, options) || const DeepCollectionEquality().equals(other.options, options))); + (identical(other.path, path) || + const DeepCollectionEquality().equals(other.path, path)) && + (identical(other.options, options) || + const DeepCollectionEquality().equals(other.options, options))); } @override @@ -19467,8 +19660,12 @@ extension $BackupManifestDtoExtension on BackupManifestDto { Wrapped? options, }) { return BackupManifestDto( - serverVersion: (serverVersion != null ? serverVersion.value : this.serverVersion), - backupEngineVersion: (backupEngineVersion != null ? backupEngineVersion.value : this.backupEngineVersion), + serverVersion: (serverVersion != null + ? serverVersion.value + : this.serverVersion), + backupEngineVersion: (backupEngineVersion != null + ? backupEngineVersion.value + : this.backupEngineVersion), dateCreated: (dateCreated != null ? dateCreated.value : this.dateCreated), path: (path != null ? path.value : this.path), options: (options != null ? options.value : this.options), @@ -19485,7 +19682,8 @@ class BackupOptionsDto { this.database, }); - factory BackupOptionsDto.fromJson(Map json) => _$BackupOptionsDtoFromJson(json); + factory BackupOptionsDto.fromJson(Map json) => + _$BackupOptionsDtoFromJson(json); static const toJsonFactory = _$BackupOptionsDtoToJson; Map toJson() => _$BackupOptionsDtoToJson(this); @@ -19572,7 +19770,8 @@ extension $BackupOptionsDtoExtension on BackupOptionsDto { class BackupRestoreRequestDto { const BackupRestoreRequestDto({this.archiveFileName}); - factory BackupRestoreRequestDto.fromJson(Map json) => _$BackupRestoreRequestDtoFromJson(json); + factory BackupRestoreRequestDto.fromJson(Map json) => + _$BackupRestoreRequestDtoFromJson(json); static const toJsonFactory = _$BackupRestoreRequestDtoToJson; Map toJson() => _$BackupRestoreRequestDtoToJson(this); @@ -19596,7 +19795,9 @@ class BackupRestoreRequestDto { String toString() => jsonEncode(this); @override - int get hashCode => const DeepCollectionEquality().hash(archiveFileName) ^ runtimeType.hashCode; + int get hashCode => + const DeepCollectionEquality().hash(archiveFileName) ^ + runtimeType.hashCode; } extension $BackupRestoreRequestDtoExtension on BackupRestoreRequestDto { @@ -19608,7 +19809,9 @@ extension $BackupRestoreRequestDtoExtension on BackupRestoreRequestDto { BackupRestoreRequestDto copyWithWrapped({Wrapped? archiveFileName}) { return BackupRestoreRequestDto( - archiveFileName: (archiveFileName != null ? archiveFileName.value : this.archiveFileName), + archiveFileName: (archiveFileName != null + ? archiveFileName.value + : this.archiveFileName), ); } } @@ -19771,7 +19974,8 @@ class BaseItemDto { this.currentProgram, }); - factory BaseItemDto.fromJson(Map json) => _$BaseItemDtoFromJson(json); + factory BaseItemDto.fromJson(Map json) => + _$BaseItemDtoFromJson(json); static const toJsonFactory = _$BaseItemDtoToJson; Map toJson() => _$BaseItemDtoToJson(this); @@ -20217,7 +20421,8 @@ class BaseItemDto { bool operator ==(Object other) { return identical(this, other) || (other is BaseItemDto && - (identical(other.name, name) || const DeepCollectionEquality().equals(other.name, name)) && + (identical(other.name, name) || + const DeepCollectionEquality().equals(other.name, name)) && (identical(other.originalTitle, originalTitle) || const DeepCollectionEquality().equals( other.originalTitle, @@ -20228,8 +20433,10 @@ class BaseItemDto { other.serverId, serverId, )) && - (identical(other.id, id) || const DeepCollectionEquality().equals(other.id, id)) && - (identical(other.etag, etag) || const DeepCollectionEquality().equals(other.etag, etag)) && + (identical(other.id, id) || + const DeepCollectionEquality().equals(other.id, id)) && + (identical(other.etag, etag) || + const DeepCollectionEquality().equals(other.etag, etag)) && (identical(other.sourceType, sourceType) || const DeepCollectionEquality().equals( other.sourceType, @@ -20354,7 +20561,8 @@ class BaseItemDto { other.productionLocations, productionLocations, )) && - (identical(other.path, path) || const DeepCollectionEquality().equals(other.path, path)) && + (identical(other.path, path) || + const DeepCollectionEquality().equals(other.path, path)) && (identical( other.enableMediaSourceDisplay, enableMediaSourceDisplay, @@ -20393,7 +20601,8 @@ class BaseItemDto { other.taglines, taglines, )) && - (identical(other.genres, genres) || const DeepCollectionEquality().equals(other.genres, genres)) && + (identical(other.genres, genres) || + const DeepCollectionEquality().equals(other.genres, genres)) && (identical(other.communityRating, communityRating) || const DeepCollectionEquality().equals( other.communityRating, @@ -20429,7 +20638,8 @@ class BaseItemDto { other.isPlaceHolder, isPlaceHolder, )) && - (identical(other.number, number) || const DeepCollectionEquality().equals(other.number, number)) && + (identical(other.number, number) || + const DeepCollectionEquality().equals(other.number, number)) && (identical(other.channelNumber, channelNumber) || const DeepCollectionEquality().equals( other.channelNumber, @@ -20460,7 +20670,8 @@ class BaseItemDto { other.providerIds, providerIds, )) && - (identical(other.isHD, isHD) || const DeepCollectionEquality().equals(other.isHD, isHD)) && + (identical(other.isHD, isHD) || + const DeepCollectionEquality().equals(other.isHD, isHD)) && (identical(other.isFolder, isFolder) || const DeepCollectionEquality().equals( other.isFolder, @@ -20471,8 +20682,10 @@ class BaseItemDto { other.parentId, parentId, )) && - (identical(other.type, type) || const DeepCollectionEquality().equals(other.type, type)) && - (identical(other.people, people) || const DeepCollectionEquality().equals(other.people, people)) && + (identical(other.type, type) || + const DeepCollectionEquality().equals(other.type, type)) && + (identical(other.people, people) || + const DeepCollectionEquality().equals(other.people, people)) && (identical(other.studios, studios) || const DeepCollectionEquality().equals( other.studios, @@ -20546,7 +20759,8 @@ class BaseItemDto { other.displayPreferencesId, displayPreferencesId, )) && - (identical(other.status, status) || const DeepCollectionEquality().equals(other.status, status)) && + (identical(other.status, status) || + const DeepCollectionEquality().equals(other.status, status)) && (identical(other.airTime, airTime) || const DeepCollectionEquality().equals( other.airTime, @@ -20557,7 +20771,8 @@ class BaseItemDto { other.airDays, airDays, )) && - (identical(other.tags, tags) || const DeepCollectionEquality().equals(other.tags, tags)) && + (identical(other.tags, tags) || + const DeepCollectionEquality().equals(other.tags, tags)) && (identical( other.primaryImageAspectRatio, primaryImageAspectRatio, @@ -20576,7 +20791,8 @@ class BaseItemDto { other.artistItems, artistItems, )) && - (identical(other.album, album) || const DeepCollectionEquality().equals(other.album, album)) && + (identical(other.album, album) || + const DeepCollectionEquality().equals(other.album, album)) && (identical(other.collectionType, collectionType) || const DeepCollectionEquality().equals( other.collectionType, @@ -20790,8 +21006,10 @@ class BaseItemDto { other.lockData, lockData, )) && - (identical(other.width, width) || const DeepCollectionEquality().equals(other.width, width)) && - (identical(other.height, height) || const DeepCollectionEquality().equals(other.height, height)) && + (identical(other.width, width) || + const DeepCollectionEquality().equals(other.width, width)) && + (identical(other.height, height) || + const DeepCollectionEquality().equals(other.height, height)) && (identical(other.cameraMake, cameraMake) || const DeepCollectionEquality().equals( other.cameraMake, @@ -20892,7 +21110,8 @@ class BaseItemDto { other.channelType, channelType, )) && - (identical(other.audio, audio) || const DeepCollectionEquality().equals(other.audio, audio)) && + (identical(other.audio, audio) || + const DeepCollectionEquality().equals(other.audio, audio)) && (identical(other.isMovie, isMovie) || const DeepCollectionEquality().equals( other.isMovie, @@ -20908,9 +21127,12 @@ class BaseItemDto { other.isSeries, isSeries, )) && - (identical(other.isLive, isLive) || const DeepCollectionEquality().equals(other.isLive, isLive)) && - (identical(other.isNews, isNews) || const DeepCollectionEquality().equals(other.isNews, isNews)) && - (identical(other.isKids, isKids) || const DeepCollectionEquality().equals(other.isKids, isKids)) && + (identical(other.isLive, isLive) || + const DeepCollectionEquality().equals(other.isLive, isLive)) && + (identical(other.isNews, isNews) || + const DeepCollectionEquality().equals(other.isNews, isNews)) && + (identical(other.isKids, isKids) || + const DeepCollectionEquality().equals(other.isKids, isKids)) && (identical(other.isPremiere, isPremiere) || const DeepCollectionEquality().equals( other.isPremiere, @@ -21261,15 +21483,20 @@ extension $BaseItemDtoExtension on BaseItemDto { dateCreated: dateCreated ?? this.dateCreated, dateLastMediaAdded: dateLastMediaAdded ?? this.dateLastMediaAdded, extraType: extraType ?? this.extraType, - airsBeforeSeasonNumber: airsBeforeSeasonNumber ?? this.airsBeforeSeasonNumber, - airsAfterSeasonNumber: airsAfterSeasonNumber ?? this.airsAfterSeasonNumber, - airsBeforeEpisodeNumber: airsBeforeEpisodeNumber ?? this.airsBeforeEpisodeNumber, + airsBeforeSeasonNumber: + airsBeforeSeasonNumber ?? this.airsBeforeSeasonNumber, + airsAfterSeasonNumber: + airsAfterSeasonNumber ?? this.airsAfterSeasonNumber, + airsBeforeEpisodeNumber: + airsBeforeEpisodeNumber ?? this.airsBeforeEpisodeNumber, canDelete: canDelete ?? this.canDelete, canDownload: canDownload ?? this.canDownload, hasLyrics: hasLyrics ?? this.hasLyrics, hasSubtitles: hasSubtitles ?? this.hasSubtitles, - preferredMetadataLanguage: preferredMetadataLanguage ?? this.preferredMetadataLanguage, - preferredMetadataCountryCode: preferredMetadataCountryCode ?? this.preferredMetadataCountryCode, + preferredMetadataLanguage: + preferredMetadataLanguage ?? this.preferredMetadataLanguage, + preferredMetadataCountryCode: + preferredMetadataCountryCode ?? this.preferredMetadataCountryCode, container: container ?? this.container, sortName: sortName ?? this.sortName, forcedSortName: forcedSortName ?? this.forcedSortName, @@ -21280,7 +21507,8 @@ extension $BaseItemDtoExtension on BaseItemDto { criticRating: criticRating ?? this.criticRating, productionLocations: productionLocations ?? this.productionLocations, path: path ?? this.path, - enableMediaSourceDisplay: enableMediaSourceDisplay ?? this.enableMediaSourceDisplay, + enableMediaSourceDisplay: + enableMediaSourceDisplay ?? this.enableMediaSourceDisplay, officialRating: officialRating ?? this.officialRating, customRating: customRating ?? this.customRating, channelId: channelId ?? this.channelId, @@ -21289,7 +21517,8 @@ extension $BaseItemDtoExtension on BaseItemDto { taglines: taglines ?? this.taglines, genres: genres ?? this.genres, communityRating: communityRating ?? this.communityRating, - cumulativeRunTimeTicks: cumulativeRunTimeTicks ?? this.cumulativeRunTimeTicks, + cumulativeRunTimeTicks: + cumulativeRunTimeTicks ?? this.cumulativeRunTimeTicks, runTimeTicks: runTimeTicks ?? this.runTimeTicks, playAccess: playAccess ?? this.playAccess, aspectRatio: aspectRatio ?? this.aspectRatio, @@ -21311,7 +21540,8 @@ extension $BaseItemDtoExtension on BaseItemDto { genreItems: genreItems ?? this.genreItems, parentLogoItemId: parentLogoItemId ?? this.parentLogoItemId, parentBackdropItemId: parentBackdropItemId ?? this.parentBackdropItemId, - parentBackdropImageTags: parentBackdropImageTags ?? this.parentBackdropImageTags, + parentBackdropImageTags: + parentBackdropImageTags ?? this.parentBackdropImageTags, localTrailerCount: localTrailerCount ?? this.localTrailerCount, userData: userData ?? this.userData, recursiveItemCount: recursiveItemCount ?? this.recursiveItemCount, @@ -21325,7 +21555,8 @@ extension $BaseItemDtoExtension on BaseItemDto { airTime: airTime ?? this.airTime, airDays: airDays ?? this.airDays, tags: tags ?? this.tags, - primaryImageAspectRatio: primaryImageAspectRatio ?? this.primaryImageAspectRatio, + primaryImageAspectRatio: + primaryImageAspectRatio ?? this.primaryImageAspectRatio, artists: artists ?? this.artists, artistItems: artistItems ?? this.artistItems, album: album ?? this.album, @@ -21333,7 +21564,8 @@ extension $BaseItemDtoExtension on BaseItemDto { displayOrder: displayOrder ?? this.displayOrder, albumId: albumId ?? this.albumId, albumPrimaryImageTag: albumPrimaryImageTag ?? this.albumPrimaryImageTag, - seriesPrimaryImageTag: seriesPrimaryImageTag ?? this.seriesPrimaryImageTag, + seriesPrimaryImageTag: + seriesPrimaryImageTag ?? this.seriesPrimaryImageTag, albumArtist: albumArtist ?? this.albumArtist, albumArtists: albumArtists ?? this.albumArtists, seasonName: seasonName ?? this.seasonName, @@ -21352,8 +21584,10 @@ extension $BaseItemDtoExtension on BaseItemDto { seriesStudio: seriesStudio ?? this.seriesStudio, parentThumbItemId: parentThumbItemId ?? this.parentThumbItemId, parentThumbImageTag: parentThumbImageTag ?? this.parentThumbImageTag, - parentPrimaryImageItemId: parentPrimaryImageItemId ?? this.parentPrimaryImageItemId, - parentPrimaryImageTag: parentPrimaryImageTag ?? this.parentPrimaryImageTag, + parentPrimaryImageItemId: + parentPrimaryImageItemId ?? this.parentPrimaryImageItemId, + parentPrimaryImageTag: + parentPrimaryImageTag ?? this.parentPrimaryImageTag, chapters: chapters ?? this.chapters, trickplay: trickplay ?? this.trickplay, locationType: locationType ?? this.locationType, @@ -21387,7 +21621,8 @@ extension $BaseItemDtoExtension on BaseItemDto { isoSpeedRating: isoSpeedRating ?? this.isoSpeedRating, seriesTimerId: seriesTimerId ?? this.seriesTimerId, programId: programId ?? this.programId, - channelPrimaryImageTag: channelPrimaryImageTag ?? this.channelPrimaryImageTag, + channelPrimaryImageTag: + channelPrimaryImageTag ?? this.channelPrimaryImageTag, startDate: startDate ?? this.startDate, completionPercentage: completionPercentage ?? this.completionPercentage, isRepeat: isRepeat ?? this.isRepeat, @@ -21564,62 +21799,111 @@ extension $BaseItemDtoExtension on BaseItemDto { }) { return BaseItemDto( name: (name != null ? name.value : this.name), - originalTitle: (originalTitle != null ? originalTitle.value : this.originalTitle), + originalTitle: (originalTitle != null + ? originalTitle.value + : this.originalTitle), serverId: (serverId != null ? serverId.value : this.serverId), id: (id != null ? id.value : this.id), etag: (etag != null ? etag.value : this.etag), sourceType: (sourceType != null ? sourceType.value : this.sourceType), - playlistItemId: (playlistItemId != null ? playlistItemId.value : this.playlistItemId), + playlistItemId: (playlistItemId != null + ? playlistItemId.value + : this.playlistItemId), dateCreated: (dateCreated != null ? dateCreated.value : this.dateCreated), - dateLastMediaAdded: (dateLastMediaAdded != null ? dateLastMediaAdded.value : this.dateLastMediaAdded), + dateLastMediaAdded: (dateLastMediaAdded != null + ? dateLastMediaAdded.value + : this.dateLastMediaAdded), extraType: (extraType != null ? extraType.value : this.extraType), - airsBeforeSeasonNumber: - (airsBeforeSeasonNumber != null ? airsBeforeSeasonNumber.value : this.airsBeforeSeasonNumber), - airsAfterSeasonNumber: (airsAfterSeasonNumber != null ? airsAfterSeasonNumber.value : this.airsAfterSeasonNumber), - airsBeforeEpisodeNumber: - (airsBeforeEpisodeNumber != null ? airsBeforeEpisodeNumber.value : this.airsBeforeEpisodeNumber), + airsBeforeSeasonNumber: (airsBeforeSeasonNumber != null + ? airsBeforeSeasonNumber.value + : this.airsBeforeSeasonNumber), + airsAfterSeasonNumber: (airsAfterSeasonNumber != null + ? airsAfterSeasonNumber.value + : this.airsAfterSeasonNumber), + airsBeforeEpisodeNumber: (airsBeforeEpisodeNumber != null + ? airsBeforeEpisodeNumber.value + : this.airsBeforeEpisodeNumber), canDelete: (canDelete != null ? canDelete.value : this.canDelete), canDownload: (canDownload != null ? canDownload.value : this.canDownload), hasLyrics: (hasLyrics != null ? hasLyrics.value : this.hasLyrics), - hasSubtitles: (hasSubtitles != null ? hasSubtitles.value : this.hasSubtitles), - preferredMetadataLanguage: - (preferredMetadataLanguage != null ? preferredMetadataLanguage.value : this.preferredMetadataLanguage), + hasSubtitles: (hasSubtitles != null + ? hasSubtitles.value + : this.hasSubtitles), + preferredMetadataLanguage: (preferredMetadataLanguage != null + ? preferredMetadataLanguage.value + : this.preferredMetadataLanguage), preferredMetadataCountryCode: (preferredMetadataCountryCode != null ? preferredMetadataCountryCode.value : this.preferredMetadataCountryCode), container: (container != null ? container.value : this.container), sortName: (sortName != null ? sortName.value : this.sortName), - forcedSortName: (forcedSortName != null ? forcedSortName.value : this.forcedSortName), - video3DFormat: (video3DFormat != null ? video3DFormat.value : this.video3DFormat), - premiereDate: (premiereDate != null ? premiereDate.value : this.premiereDate), - externalUrls: (externalUrls != null ? externalUrls.value : this.externalUrls), - mediaSources: (mediaSources != null ? mediaSources.value : this.mediaSources), - criticRating: (criticRating != null ? criticRating.value : this.criticRating), - productionLocations: (productionLocations != null ? productionLocations.value : this.productionLocations), + forcedSortName: (forcedSortName != null + ? forcedSortName.value + : this.forcedSortName), + video3DFormat: (video3DFormat != null + ? video3DFormat.value + : this.video3DFormat), + premiereDate: (premiereDate != null + ? premiereDate.value + : this.premiereDate), + externalUrls: (externalUrls != null + ? externalUrls.value + : this.externalUrls), + mediaSources: (mediaSources != null + ? mediaSources.value + : this.mediaSources), + criticRating: (criticRating != null + ? criticRating.value + : this.criticRating), + productionLocations: (productionLocations != null + ? productionLocations.value + : this.productionLocations), path: (path != null ? path.value : this.path), - enableMediaSourceDisplay: - (enableMediaSourceDisplay != null ? enableMediaSourceDisplay.value : this.enableMediaSourceDisplay), - officialRating: (officialRating != null ? officialRating.value : this.officialRating), - customRating: (customRating != null ? customRating.value : this.customRating), + enableMediaSourceDisplay: (enableMediaSourceDisplay != null + ? enableMediaSourceDisplay.value + : this.enableMediaSourceDisplay), + officialRating: (officialRating != null + ? officialRating.value + : this.officialRating), + customRating: (customRating != null + ? customRating.value + : this.customRating), channelId: (channelId != null ? channelId.value : this.channelId), channelName: (channelName != null ? channelName.value : this.channelName), overview: (overview != null ? overview.value : this.overview), taglines: (taglines != null ? taglines.value : this.taglines), genres: (genres != null ? genres.value : this.genres), - communityRating: (communityRating != null ? communityRating.value : this.communityRating), - cumulativeRunTimeTicks: - (cumulativeRunTimeTicks != null ? cumulativeRunTimeTicks.value : this.cumulativeRunTimeTicks), - runTimeTicks: (runTimeTicks != null ? runTimeTicks.value : this.runTimeTicks), + communityRating: (communityRating != null + ? communityRating.value + : this.communityRating), + cumulativeRunTimeTicks: (cumulativeRunTimeTicks != null + ? cumulativeRunTimeTicks.value + : this.cumulativeRunTimeTicks), + runTimeTicks: (runTimeTicks != null + ? runTimeTicks.value + : this.runTimeTicks), playAccess: (playAccess != null ? playAccess.value : this.playAccess), aspectRatio: (aspectRatio != null ? aspectRatio.value : this.aspectRatio), - productionYear: (productionYear != null ? productionYear.value : this.productionYear), - isPlaceHolder: (isPlaceHolder != null ? isPlaceHolder.value : this.isPlaceHolder), + productionYear: (productionYear != null + ? productionYear.value + : this.productionYear), + isPlaceHolder: (isPlaceHolder != null + ? isPlaceHolder.value + : this.isPlaceHolder), number: (number != null ? number.value : this.number), - channelNumber: (channelNumber != null ? channelNumber.value : this.channelNumber), + channelNumber: (channelNumber != null + ? channelNumber.value + : this.channelNumber), indexNumber: (indexNumber != null ? indexNumber.value : this.indexNumber), - indexNumberEnd: (indexNumberEnd != null ? indexNumberEnd.value : this.indexNumberEnd), - parentIndexNumber: (parentIndexNumber != null ? parentIndexNumber.value : this.parentIndexNumber), - remoteTrailers: (remoteTrailers != null ? remoteTrailers.value : this.remoteTrailers), + indexNumberEnd: (indexNumberEnd != null + ? indexNumberEnd.value + : this.indexNumberEnd), + parentIndexNumber: (parentIndexNumber != null + ? parentIndexNumber.value + : this.parentIndexNumber), + remoteTrailers: (remoteTrailers != null + ? remoteTrailers.value + : this.remoteTrailers), providerIds: (providerIds != null ? providerIds.value : this.providerIds), isHD: (isHD != null ? isHD.value : this.isHD), isFolder: (isFolder != null ? isFolder.value : this.isFolder), @@ -21628,93 +21912,171 @@ extension $BaseItemDtoExtension on BaseItemDto { people: (people != null ? people.value : this.people), studios: (studios != null ? studios.value : this.studios), genreItems: (genreItems != null ? genreItems.value : this.genreItems), - parentLogoItemId: (parentLogoItemId != null ? parentLogoItemId.value : this.parentLogoItemId), - parentBackdropItemId: (parentBackdropItemId != null ? parentBackdropItemId.value : this.parentBackdropItemId), - parentBackdropImageTags: - (parentBackdropImageTags != null ? parentBackdropImageTags.value : this.parentBackdropImageTags), - localTrailerCount: (localTrailerCount != null ? localTrailerCount.value : this.localTrailerCount), + parentLogoItemId: (parentLogoItemId != null + ? parentLogoItemId.value + : this.parentLogoItemId), + parentBackdropItemId: (parentBackdropItemId != null + ? parentBackdropItemId.value + : this.parentBackdropItemId), + parentBackdropImageTags: (parentBackdropImageTags != null + ? parentBackdropImageTags.value + : this.parentBackdropImageTags), + localTrailerCount: (localTrailerCount != null + ? localTrailerCount.value + : this.localTrailerCount), userData: (userData != null ? userData.value : this.userData), - recursiveItemCount: (recursiveItemCount != null ? recursiveItemCount.value : this.recursiveItemCount), + recursiveItemCount: (recursiveItemCount != null + ? recursiveItemCount.value + : this.recursiveItemCount), childCount: (childCount != null ? childCount.value : this.childCount), seriesName: (seriesName != null ? seriesName.value : this.seriesName), seriesId: (seriesId != null ? seriesId.value : this.seriesId), seasonId: (seasonId != null ? seasonId.value : this.seasonId), - specialFeatureCount: (specialFeatureCount != null ? specialFeatureCount.value : this.specialFeatureCount), - displayPreferencesId: (displayPreferencesId != null ? displayPreferencesId.value : this.displayPreferencesId), + specialFeatureCount: (specialFeatureCount != null + ? specialFeatureCount.value + : this.specialFeatureCount), + displayPreferencesId: (displayPreferencesId != null + ? displayPreferencesId.value + : this.displayPreferencesId), status: (status != null ? status.value : this.status), airTime: (airTime != null ? airTime.value : this.airTime), airDays: (airDays != null ? airDays.value : this.airDays), tags: (tags != null ? tags.value : this.tags), - primaryImageAspectRatio: - (primaryImageAspectRatio != null ? primaryImageAspectRatio.value : this.primaryImageAspectRatio), + primaryImageAspectRatio: (primaryImageAspectRatio != null + ? primaryImageAspectRatio.value + : this.primaryImageAspectRatio), artists: (artists != null ? artists.value : this.artists), artistItems: (artistItems != null ? artistItems.value : this.artistItems), album: (album != null ? album.value : this.album), - collectionType: (collectionType != null ? collectionType.value : this.collectionType), - displayOrder: (displayOrder != null ? displayOrder.value : this.displayOrder), + collectionType: (collectionType != null + ? collectionType.value + : this.collectionType), + displayOrder: (displayOrder != null + ? displayOrder.value + : this.displayOrder), albumId: (albumId != null ? albumId.value : this.albumId), - albumPrimaryImageTag: (albumPrimaryImageTag != null ? albumPrimaryImageTag.value : this.albumPrimaryImageTag), - seriesPrimaryImageTag: (seriesPrimaryImageTag != null ? seriesPrimaryImageTag.value : this.seriesPrimaryImageTag), + albumPrimaryImageTag: (albumPrimaryImageTag != null + ? albumPrimaryImageTag.value + : this.albumPrimaryImageTag), + seriesPrimaryImageTag: (seriesPrimaryImageTag != null + ? seriesPrimaryImageTag.value + : this.seriesPrimaryImageTag), albumArtist: (albumArtist != null ? albumArtist.value : this.albumArtist), - albumArtists: (albumArtists != null ? albumArtists.value : this.albumArtists), + albumArtists: (albumArtists != null + ? albumArtists.value + : this.albumArtists), seasonName: (seasonName != null ? seasonName.value : this.seasonName), - mediaStreams: (mediaStreams != null ? mediaStreams.value : this.mediaStreams), + mediaStreams: (mediaStreams != null + ? mediaStreams.value + : this.mediaStreams), videoType: (videoType != null ? videoType.value : this.videoType), partCount: (partCount != null ? partCount.value : this.partCount), - mediaSourceCount: (mediaSourceCount != null ? mediaSourceCount.value : this.mediaSourceCount), + mediaSourceCount: (mediaSourceCount != null + ? mediaSourceCount.value + : this.mediaSourceCount), imageTags: (imageTags != null ? imageTags.value : this.imageTags), - backdropImageTags: (backdropImageTags != null ? backdropImageTags.value : this.backdropImageTags), - screenshotImageTags: (screenshotImageTags != null ? screenshotImageTags.value : this.screenshotImageTags), - parentLogoImageTag: (parentLogoImageTag != null ? parentLogoImageTag.value : this.parentLogoImageTag), - parentArtItemId: (parentArtItemId != null ? parentArtItemId.value : this.parentArtItemId), - parentArtImageTag: (parentArtImageTag != null ? parentArtImageTag.value : this.parentArtImageTag), - seriesThumbImageTag: (seriesThumbImageTag != null ? seriesThumbImageTag.value : this.seriesThumbImageTag), - imageBlurHashes: (imageBlurHashes != null ? imageBlurHashes.value : this.imageBlurHashes), - seriesStudio: (seriesStudio != null ? seriesStudio.value : this.seriesStudio), - parentThumbItemId: (parentThumbItemId != null ? parentThumbItemId.value : this.parentThumbItemId), - parentThumbImageTag: (parentThumbImageTag != null ? parentThumbImageTag.value : this.parentThumbImageTag), - parentPrimaryImageItemId: - (parentPrimaryImageItemId != null ? parentPrimaryImageItemId.value : this.parentPrimaryImageItemId), - parentPrimaryImageTag: (parentPrimaryImageTag != null ? parentPrimaryImageTag.value : this.parentPrimaryImageTag), + backdropImageTags: (backdropImageTags != null + ? backdropImageTags.value + : this.backdropImageTags), + screenshotImageTags: (screenshotImageTags != null + ? screenshotImageTags.value + : this.screenshotImageTags), + parentLogoImageTag: (parentLogoImageTag != null + ? parentLogoImageTag.value + : this.parentLogoImageTag), + parentArtItemId: (parentArtItemId != null + ? parentArtItemId.value + : this.parentArtItemId), + parentArtImageTag: (parentArtImageTag != null + ? parentArtImageTag.value + : this.parentArtImageTag), + seriesThumbImageTag: (seriesThumbImageTag != null + ? seriesThumbImageTag.value + : this.seriesThumbImageTag), + imageBlurHashes: (imageBlurHashes != null + ? imageBlurHashes.value + : this.imageBlurHashes), + seriesStudio: (seriesStudio != null + ? seriesStudio.value + : this.seriesStudio), + parentThumbItemId: (parentThumbItemId != null + ? parentThumbItemId.value + : this.parentThumbItemId), + parentThumbImageTag: (parentThumbImageTag != null + ? parentThumbImageTag.value + : this.parentThumbImageTag), + parentPrimaryImageItemId: (parentPrimaryImageItemId != null + ? parentPrimaryImageItemId.value + : this.parentPrimaryImageItemId), + parentPrimaryImageTag: (parentPrimaryImageTag != null + ? parentPrimaryImageTag.value + : this.parentPrimaryImageTag), chapters: (chapters != null ? chapters.value : this.chapters), trickplay: (trickplay != null ? trickplay.value : this.trickplay), - locationType: (locationType != null ? locationType.value : this.locationType), + locationType: (locationType != null + ? locationType.value + : this.locationType), isoType: (isoType != null ? isoType.value : this.isoType), mediaType: (mediaType != null ? mediaType.value : this.mediaType), endDate: (endDate != null ? endDate.value : this.endDate), - lockedFields: (lockedFields != null ? lockedFields.value : this.lockedFields), - trailerCount: (trailerCount != null ? trailerCount.value : this.trailerCount), + lockedFields: (lockedFields != null + ? lockedFields.value + : this.lockedFields), + trailerCount: (trailerCount != null + ? trailerCount.value + : this.trailerCount), movieCount: (movieCount != null ? movieCount.value : this.movieCount), seriesCount: (seriesCount != null ? seriesCount.value : this.seriesCount), - programCount: (programCount != null ? programCount.value : this.programCount), - episodeCount: (episodeCount != null ? episodeCount.value : this.episodeCount), + programCount: (programCount != null + ? programCount.value + : this.programCount), + episodeCount: (episodeCount != null + ? episodeCount.value + : this.episodeCount), songCount: (songCount != null ? songCount.value : this.songCount), albumCount: (albumCount != null ? albumCount.value : this.albumCount), artistCount: (artistCount != null ? artistCount.value : this.artistCount), - musicVideoCount: (musicVideoCount != null ? musicVideoCount.value : this.musicVideoCount), + musicVideoCount: (musicVideoCount != null + ? musicVideoCount.value + : this.musicVideoCount), lockData: (lockData != null ? lockData.value : this.lockData), width: (width != null ? width.value : this.width), height: (height != null ? height.value : this.height), cameraMake: (cameraMake != null ? cameraMake.value : this.cameraMake), cameraModel: (cameraModel != null ? cameraModel.value : this.cameraModel), software: (software != null ? software.value : this.software), - exposureTime: (exposureTime != null ? exposureTime.value : this.exposureTime), + exposureTime: (exposureTime != null + ? exposureTime.value + : this.exposureTime), focalLength: (focalLength != null ? focalLength.value : this.focalLength), - imageOrientation: (imageOrientation != null ? imageOrientation.value : this.imageOrientation), + imageOrientation: (imageOrientation != null + ? imageOrientation.value + : this.imageOrientation), aperture: (aperture != null ? aperture.value : this.aperture), - shutterSpeed: (shutterSpeed != null ? shutterSpeed.value : this.shutterSpeed), + shutterSpeed: (shutterSpeed != null + ? shutterSpeed.value + : this.shutterSpeed), latitude: (latitude != null ? latitude.value : this.latitude), longitude: (longitude != null ? longitude.value : this.longitude), altitude: (altitude != null ? altitude.value : this.altitude), - isoSpeedRating: (isoSpeedRating != null ? isoSpeedRating.value : this.isoSpeedRating), - seriesTimerId: (seriesTimerId != null ? seriesTimerId.value : this.seriesTimerId), + isoSpeedRating: (isoSpeedRating != null + ? isoSpeedRating.value + : this.isoSpeedRating), + seriesTimerId: (seriesTimerId != null + ? seriesTimerId.value + : this.seriesTimerId), programId: (programId != null ? programId.value : this.programId), - channelPrimaryImageTag: - (channelPrimaryImageTag != null ? channelPrimaryImageTag.value : this.channelPrimaryImageTag), + channelPrimaryImageTag: (channelPrimaryImageTag != null + ? channelPrimaryImageTag.value + : this.channelPrimaryImageTag), startDate: (startDate != null ? startDate.value : this.startDate), - completionPercentage: (completionPercentage != null ? completionPercentage.value : this.completionPercentage), + completionPercentage: (completionPercentage != null + ? completionPercentage.value + : this.completionPercentage), isRepeat: (isRepeat != null ? isRepeat.value : this.isRepeat), - episodeTitle: (episodeTitle != null ? episodeTitle.value : this.episodeTitle), + episodeTitle: (episodeTitle != null + ? episodeTitle.value + : this.episodeTitle), channelType: (channelType != null ? channelType.value : this.channelType), audio: (audio != null ? audio.value : this.audio), isMovie: (isMovie != null ? isMovie.value : this.isMovie), @@ -21725,8 +22087,12 @@ extension $BaseItemDtoExtension on BaseItemDto { isKids: (isKids != null ? isKids.value : this.isKids), isPremiere: (isPremiere != null ? isPremiere.value : this.isPremiere), timerId: (timerId != null ? timerId.value : this.timerId), - normalizationGain: (normalizationGain != null ? normalizationGain.value : this.normalizationGain), - currentProgram: (currentProgram != null ? currentProgram.value : this.currentProgram), + normalizationGain: (normalizationGain != null + ? normalizationGain.value + : this.normalizationGain), + currentProgram: (currentProgram != null + ? currentProgram.value + : this.currentProgram), ); } } @@ -21739,7 +22105,8 @@ class BaseItemDtoQueryResult { this.startIndex, }); - factory BaseItemDtoQueryResult.fromJson(Map json) => _$BaseItemDtoQueryResultFromJson(json); + factory BaseItemDtoQueryResult.fromJson(Map json) => + _$BaseItemDtoQueryResultFromJson(json); static const toJsonFactory = _$BaseItemDtoQueryResultToJson; Map toJson() => _$BaseItemDtoQueryResultToJson(this); @@ -21756,7 +22123,8 @@ class BaseItemDtoQueryResult { bool operator ==(Object other) { return identical(this, other) || (other is BaseItemDtoQueryResult && - (identical(other.items, items) || const DeepCollectionEquality().equals(other.items, items)) && + (identical(other.items, items) || + const DeepCollectionEquality().equals(other.items, items)) && (identical(other.totalRecordCount, totalRecordCount) || const DeepCollectionEquality().equals( other.totalRecordCount, @@ -21800,7 +22168,9 @@ extension $BaseItemDtoQueryResultExtension on BaseItemDtoQueryResult { }) { return BaseItemDtoQueryResult( items: (items != null ? items.value : this.items), - totalRecordCount: (totalRecordCount != null ? totalRecordCount.value : this.totalRecordCount), + totalRecordCount: (totalRecordCount != null + ? totalRecordCount.value + : this.totalRecordCount), startIndex: (startIndex != null ? startIndex.value : this.startIndex), ); } @@ -21817,7 +22187,8 @@ class BaseItemPerson { this.imageBlurHashes, }); - factory BaseItemPerson.fromJson(Map json) => _$BaseItemPersonFromJson(json); + factory BaseItemPerson.fromJson(Map json) => + _$BaseItemPersonFromJson(json); static const toJsonFactory = _$BaseItemPersonToJson; Map toJson() => _$BaseItemPersonToJson(this); @@ -21848,10 +22219,14 @@ class BaseItemPerson { bool operator ==(Object other) { return identical(this, other) || (other is BaseItemPerson && - (identical(other.name, name) || const DeepCollectionEquality().equals(other.name, name)) && - (identical(other.id, id) || const DeepCollectionEquality().equals(other.id, id)) && - (identical(other.role, role) || const DeepCollectionEquality().equals(other.role, role)) && - (identical(other.type, type) || const DeepCollectionEquality().equals(other.type, type)) && + (identical(other.name, name) || + const DeepCollectionEquality().equals(other.name, name)) && + (identical(other.id, id) || + const DeepCollectionEquality().equals(other.id, id)) && + (identical(other.role, role) || + const DeepCollectionEquality().equals(other.role, role)) && + (identical(other.type, type) || + const DeepCollectionEquality().equals(other.type, type)) && (identical(other.primaryImageTag, primaryImageTag) || const DeepCollectionEquality().equals( other.primaryImageTag, @@ -21910,8 +22285,12 @@ extension $BaseItemPersonExtension on BaseItemPerson { id: (id != null ? id.value : this.id), role: (role != null ? role.value : this.role), type: (type != null ? type.value : this.type), - primaryImageTag: (primaryImageTag != null ? primaryImageTag.value : this.primaryImageTag), - imageBlurHashes: (imageBlurHashes != null ? imageBlurHashes.value : this.imageBlurHashes), + primaryImageTag: (primaryImageTag != null + ? primaryImageTag.value + : this.primaryImageTag), + imageBlurHashes: (imageBlurHashes != null + ? imageBlurHashes.value + : this.imageBlurHashes), ); } } @@ -21920,7 +22299,8 @@ extension $BaseItemPersonExtension on BaseItemPerson { class BasePluginConfiguration { const BasePluginConfiguration(); - factory BasePluginConfiguration.fromJson(Map json) => _$BasePluginConfigurationFromJson(json); + factory BasePluginConfiguration.fromJson(Map json) => + _$BasePluginConfigurationFromJson(json); static const toJsonFactory = _$BasePluginConfigurationToJson; Map toJson() => _$BasePluginConfigurationToJson(this); @@ -21951,7 +22331,8 @@ class BookInfo { this.seriesName, }); - factory BookInfo.fromJson(Map json) => _$BookInfoFromJson(json); + factory BookInfo.fromJson(Map json) => + _$BookInfoFromJson(json); static const toJsonFactory = _$BookInfoToJson; Map toJson() => _$BookInfoToJson(this); @@ -21986,13 +22367,15 @@ class BookInfo { bool operator ==(Object other) { return identical(this, other) || (other is BookInfo && - (identical(other.name, name) || const DeepCollectionEquality().equals(other.name, name)) && + (identical(other.name, name) || + const DeepCollectionEquality().equals(other.name, name)) && (identical(other.originalTitle, originalTitle) || const DeepCollectionEquality().equals( other.originalTitle, originalTitle, )) && - (identical(other.path, path) || const DeepCollectionEquality().equals(other.path, path)) && + (identical(other.path, path) || + const DeepCollectionEquality().equals(other.path, path)) && (identical(other.metadataLanguage, metadataLanguage) || const DeepCollectionEquality().equals( other.metadataLanguage, @@ -22008,7 +22391,8 @@ class BookInfo { other.providerIds, providerIds, )) && - (identical(other.year, year) || const DeepCollectionEquality().equals(other.year, year)) && + (identical(other.year, year) || + const DeepCollectionEquality().equals(other.year, year)) && (identical(other.indexNumber, indexNumber) || const DeepCollectionEquality().equals( other.indexNumber, @@ -22103,15 +22487,25 @@ extension $BookInfoExtension on BookInfo { }) { return BookInfo( name: (name != null ? name.value : this.name), - originalTitle: (originalTitle != null ? originalTitle.value : this.originalTitle), + originalTitle: (originalTitle != null + ? originalTitle.value + : this.originalTitle), path: (path != null ? path.value : this.path), - metadataLanguage: (metadataLanguage != null ? metadataLanguage.value : this.metadataLanguage), - metadataCountryCode: (metadataCountryCode != null ? metadataCountryCode.value : this.metadataCountryCode), + metadataLanguage: (metadataLanguage != null + ? metadataLanguage.value + : this.metadataLanguage), + metadataCountryCode: (metadataCountryCode != null + ? metadataCountryCode.value + : this.metadataCountryCode), providerIds: (providerIds != null ? providerIds.value : this.providerIds), year: (year != null ? year.value : this.year), indexNumber: (indexNumber != null ? indexNumber.value : this.indexNumber), - parentIndexNumber: (parentIndexNumber != null ? parentIndexNumber.value : this.parentIndexNumber), - premiereDate: (premiereDate != null ? premiereDate.value : this.premiereDate), + parentIndexNumber: (parentIndexNumber != null + ? parentIndexNumber.value + : this.parentIndexNumber), + premiereDate: (premiereDate != null + ? premiereDate.value + : this.premiereDate), isAutomated: (isAutomated != null ? isAutomated.value : this.isAutomated), seriesName: (seriesName != null ? seriesName.value : this.seriesName), ); @@ -22127,7 +22521,8 @@ class BookInfoRemoteSearchQuery { this.includeDisabledProviders, }); - factory BookInfoRemoteSearchQuery.fromJson(Map json) => _$BookInfoRemoteSearchQueryFromJson(json); + factory BookInfoRemoteSearchQuery.fromJson(Map json) => + _$BookInfoRemoteSearchQueryFromJson(json); static const toJsonFactory = _$BookInfoRemoteSearchQueryToJson; Map toJson() => _$BookInfoRemoteSearchQueryToJson(this); @@ -22151,7 +22546,8 @@ class BookInfoRemoteSearchQuery { other.searchInfo, searchInfo, )) && - (identical(other.itemId, itemId) || const DeepCollectionEquality().equals(other.itemId, itemId)) && + (identical(other.itemId, itemId) || + const DeepCollectionEquality().equals(other.itemId, itemId)) && (identical(other.searchProviderName, searchProviderName) || const DeepCollectionEquality().equals( other.searchProviderName, @@ -22190,7 +22586,8 @@ extension $BookInfoRemoteSearchQueryExtension on BookInfoRemoteSearchQuery { searchInfo: searchInfo ?? this.searchInfo, itemId: itemId ?? this.itemId, searchProviderName: searchProviderName ?? this.searchProviderName, - includeDisabledProviders: includeDisabledProviders ?? this.includeDisabledProviders, + includeDisabledProviders: + includeDisabledProviders ?? this.includeDisabledProviders, ); } @@ -22203,9 +22600,12 @@ extension $BookInfoRemoteSearchQueryExtension on BookInfoRemoteSearchQuery { return BookInfoRemoteSearchQuery( searchInfo: (searchInfo != null ? searchInfo.value : this.searchInfo), itemId: (itemId != null ? itemId.value : this.itemId), - searchProviderName: (searchProviderName != null ? searchProviderName.value : this.searchProviderName), - includeDisabledProviders: - (includeDisabledProviders != null ? includeDisabledProviders.value : this.includeDisabledProviders), + searchProviderName: (searchProviderName != null + ? searchProviderName.value + : this.searchProviderName), + includeDisabledProviders: (includeDisabledProviders != null + ? includeDisabledProviders.value + : this.includeDisabledProviders), ); } } @@ -22226,7 +22626,8 @@ class BoxSetInfo { this.isAutomated, }); - factory BoxSetInfo.fromJson(Map json) => _$BoxSetInfoFromJson(json); + factory BoxSetInfo.fromJson(Map json) => + _$BoxSetInfoFromJson(json); static const toJsonFactory = _$BoxSetInfoToJson; Map toJson() => _$BoxSetInfoToJson(this); @@ -22259,13 +22660,15 @@ class BoxSetInfo { bool operator ==(Object other) { return identical(this, other) || (other is BoxSetInfo && - (identical(other.name, name) || const DeepCollectionEquality().equals(other.name, name)) && + (identical(other.name, name) || + const DeepCollectionEquality().equals(other.name, name)) && (identical(other.originalTitle, originalTitle) || const DeepCollectionEquality().equals( other.originalTitle, originalTitle, )) && - (identical(other.path, path) || const DeepCollectionEquality().equals(other.path, path)) && + (identical(other.path, path) || + const DeepCollectionEquality().equals(other.path, path)) && (identical(other.metadataLanguage, metadataLanguage) || const DeepCollectionEquality().equals( other.metadataLanguage, @@ -22281,7 +22684,8 @@ class BoxSetInfo { other.providerIds, providerIds, )) && - (identical(other.year, year) || const DeepCollectionEquality().equals(other.year, year)) && + (identical(other.year, year) || + const DeepCollectionEquality().equals(other.year, year)) && (identical(other.indexNumber, indexNumber) || const DeepCollectionEquality().equals( other.indexNumber, @@ -22367,15 +22771,25 @@ extension $BoxSetInfoExtension on BoxSetInfo { }) { return BoxSetInfo( name: (name != null ? name.value : this.name), - originalTitle: (originalTitle != null ? originalTitle.value : this.originalTitle), + originalTitle: (originalTitle != null + ? originalTitle.value + : this.originalTitle), path: (path != null ? path.value : this.path), - metadataLanguage: (metadataLanguage != null ? metadataLanguage.value : this.metadataLanguage), - metadataCountryCode: (metadataCountryCode != null ? metadataCountryCode.value : this.metadataCountryCode), + metadataLanguage: (metadataLanguage != null + ? metadataLanguage.value + : this.metadataLanguage), + metadataCountryCode: (metadataCountryCode != null + ? metadataCountryCode.value + : this.metadataCountryCode), providerIds: (providerIds != null ? providerIds.value : this.providerIds), year: (year != null ? year.value : this.year), indexNumber: (indexNumber != null ? indexNumber.value : this.indexNumber), - parentIndexNumber: (parentIndexNumber != null ? parentIndexNumber.value : this.parentIndexNumber), - premiereDate: (premiereDate != null ? premiereDate.value : this.premiereDate), + parentIndexNumber: (parentIndexNumber != null + ? parentIndexNumber.value + : this.parentIndexNumber), + premiereDate: (premiereDate != null + ? premiereDate.value + : this.premiereDate), isAutomated: (isAutomated != null ? isAutomated.value : this.isAutomated), ); } @@ -22415,7 +22829,8 @@ class BoxSetInfoRemoteSearchQuery { other.searchInfo, searchInfo, )) && - (identical(other.itemId, itemId) || const DeepCollectionEquality().equals(other.itemId, itemId)) && + (identical(other.itemId, itemId) || + const DeepCollectionEquality().equals(other.itemId, itemId)) && (identical(other.searchProviderName, searchProviderName) || const DeepCollectionEquality().equals( other.searchProviderName, @@ -22454,7 +22869,8 @@ extension $BoxSetInfoRemoteSearchQueryExtension on BoxSetInfoRemoteSearchQuery { searchInfo: searchInfo ?? this.searchInfo, itemId: itemId ?? this.itemId, searchProviderName: searchProviderName ?? this.searchProviderName, - includeDisabledProviders: includeDisabledProviders ?? this.includeDisabledProviders, + includeDisabledProviders: + includeDisabledProviders ?? this.includeDisabledProviders, ); } @@ -22467,9 +22883,12 @@ extension $BoxSetInfoRemoteSearchQueryExtension on BoxSetInfoRemoteSearchQuery { return BoxSetInfoRemoteSearchQuery( searchInfo: (searchInfo != null ? searchInfo.value : this.searchInfo), itemId: (itemId != null ? itemId.value : this.itemId), - searchProviderName: (searchProviderName != null ? searchProviderName.value : this.searchProviderName), - includeDisabledProviders: - (includeDisabledProviders != null ? includeDisabledProviders.value : this.includeDisabledProviders), + searchProviderName: (searchProviderName != null + ? searchProviderName.value + : this.searchProviderName), + includeDisabledProviders: (includeDisabledProviders != null + ? includeDisabledProviders.value + : this.includeDisabledProviders), ); } } @@ -22482,7 +22901,8 @@ class BrandingOptionsDto { this.splashscreenEnabled, }); - factory BrandingOptionsDto.fromJson(Map json) => _$BrandingOptionsDtoFromJson(json); + factory BrandingOptionsDto.fromJson(Map json) => + _$BrandingOptionsDtoFromJson(json); static const toJsonFactory = _$BrandingOptionsDtoToJson; Map toJson() => _$BrandingOptionsDtoToJson(this); @@ -22546,9 +22966,13 @@ extension $BrandingOptionsDtoExtension on BrandingOptionsDto { Wrapped? splashscreenEnabled, }) { return BrandingOptionsDto( - loginDisclaimer: (loginDisclaimer != null ? loginDisclaimer.value : this.loginDisclaimer), + loginDisclaimer: (loginDisclaimer != null + ? loginDisclaimer.value + : this.loginDisclaimer), customCss: (customCss != null ? customCss.value : this.customCss), - splashscreenEnabled: (splashscreenEnabled != null ? splashscreenEnabled.value : this.splashscreenEnabled), + splashscreenEnabled: (splashscreenEnabled != null + ? splashscreenEnabled.value + : this.splashscreenEnabled), ); } } @@ -22562,7 +22986,8 @@ class BufferRequestDto { this.playlistItemId, }); - factory BufferRequestDto.fromJson(Map json) => _$BufferRequestDtoFromJson(json); + factory BufferRequestDto.fromJson(Map json) => + _$BufferRequestDtoFromJson(json); static const toJsonFactory = _$BufferRequestDtoToJson; Map toJson() => _$BufferRequestDtoToJson(this); @@ -22581,7 +23006,8 @@ class BufferRequestDto { bool operator ==(Object other) { return identical(this, other) || (other is BufferRequestDto && - (identical(other.when, when) || const DeepCollectionEquality().equals(other.when, when)) && + (identical(other.when, when) || + const DeepCollectionEquality().equals(other.when, when)) && (identical(other.positionTicks, positionTicks) || const DeepCollectionEquality().equals( other.positionTicks, @@ -22634,9 +23060,13 @@ extension $BufferRequestDtoExtension on BufferRequestDto { }) { return BufferRequestDto( when: (when != null ? when.value : this.when), - positionTicks: (positionTicks != null ? positionTicks.value : this.positionTicks), + positionTicks: (positionTicks != null + ? positionTicks.value + : this.positionTicks), isPlaying: (isPlaying != null ? isPlaying.value : this.isPlaying), - playlistItemId: (playlistItemId != null ? playlistItemId.value : this.playlistItemId), + playlistItemId: (playlistItemId != null + ? playlistItemId.value + : this.playlistItemId), ); } } @@ -22645,7 +23075,8 @@ extension $BufferRequestDtoExtension on BufferRequestDto { class CastReceiverApplication { const CastReceiverApplication({this.id, this.name}); - factory CastReceiverApplication.fromJson(Map json) => _$CastReceiverApplicationFromJson(json); + factory CastReceiverApplication.fromJson(Map json) => + _$CastReceiverApplicationFromJson(json); static const toJsonFactory = _$CastReceiverApplicationToJson; Map toJson() => _$CastReceiverApplicationToJson(this); @@ -22660,8 +23091,10 @@ class CastReceiverApplication { bool operator ==(Object other) { return identical(this, other) || (other is CastReceiverApplication && - (identical(other.id, id) || const DeepCollectionEquality().equals(other.id, id)) && - (identical(other.name, name) || const DeepCollectionEquality().equals(other.name, name))); + (identical(other.id, id) || + const DeepCollectionEquality().equals(other.id, id)) && + (identical(other.name, name) || + const DeepCollectionEquality().equals(other.name, name))); } @override @@ -22669,7 +23102,9 @@ class CastReceiverApplication { @override int get hashCode => - const DeepCollectionEquality().hash(id) ^ const DeepCollectionEquality().hash(name) ^ runtimeType.hashCode; + const DeepCollectionEquality().hash(id) ^ + const DeepCollectionEquality().hash(name) ^ + runtimeType.hashCode; } extension $CastReceiverApplicationExtension on CastReceiverApplication { @@ -22705,7 +23140,8 @@ class ChannelFeatures { this.supportsContentDownloading, }); - factory ChannelFeatures.fromJson(Map json) => _$ChannelFeaturesFromJson(json); + factory ChannelFeatures.fromJson(Map json) => + _$ChannelFeaturesFromJson(json); static const toJsonFactory = _$ChannelFeaturesToJson; Map toJson() => _$ChannelFeaturesToJson(this); @@ -22755,8 +23191,10 @@ class ChannelFeatures { bool operator ==(Object other) { return identical(this, other) || (other is ChannelFeatures && - (identical(other.name, name) || const DeepCollectionEquality().equals(other.name, name)) && - (identical(other.id, id) || const DeepCollectionEquality().equals(other.id, id)) && + (identical(other.name, name) || + const DeepCollectionEquality().equals(other.name, name)) && + (identical(other.id, id) || + const DeepCollectionEquality().equals(other.id, id)) && (identical(other.canSearch, canSearch) || const DeepCollectionEquality().equals( other.canSearch, @@ -22859,10 +23297,12 @@ extension $ChannelFeaturesExtension on ChannelFeatures { maxPageSize: maxPageSize ?? this.maxPageSize, autoRefreshLevels: autoRefreshLevels ?? this.autoRefreshLevels, defaultSortFields: defaultSortFields ?? this.defaultSortFields, - supportsSortOrderToggle: supportsSortOrderToggle ?? this.supportsSortOrderToggle, + supportsSortOrderToggle: + supportsSortOrderToggle ?? this.supportsSortOrderToggle, supportsLatestMedia: supportsLatestMedia ?? this.supportsLatestMedia, canFilter: canFilter ?? this.canFilter, - supportsContentDownloading: supportsContentDownloading ?? this.supportsContentDownloading, + supportsContentDownloading: + supportsContentDownloading ?? this.supportsContentDownloading, ); } @@ -22885,16 +23325,26 @@ extension $ChannelFeaturesExtension on ChannelFeatures { id: (id != null ? id.value : this.id), canSearch: (canSearch != null ? canSearch.value : this.canSearch), mediaTypes: (mediaTypes != null ? mediaTypes.value : this.mediaTypes), - contentTypes: (contentTypes != null ? contentTypes.value : this.contentTypes), + contentTypes: (contentTypes != null + ? contentTypes.value + : this.contentTypes), maxPageSize: (maxPageSize != null ? maxPageSize.value : this.maxPageSize), - autoRefreshLevels: (autoRefreshLevels != null ? autoRefreshLevels.value : this.autoRefreshLevels), - defaultSortFields: (defaultSortFields != null ? defaultSortFields.value : this.defaultSortFields), - supportsSortOrderToggle: - (supportsSortOrderToggle != null ? supportsSortOrderToggle.value : this.supportsSortOrderToggle), - supportsLatestMedia: (supportsLatestMedia != null ? supportsLatestMedia.value : this.supportsLatestMedia), + autoRefreshLevels: (autoRefreshLevels != null + ? autoRefreshLevels.value + : this.autoRefreshLevels), + defaultSortFields: (defaultSortFields != null + ? defaultSortFields.value + : this.defaultSortFields), + supportsSortOrderToggle: (supportsSortOrderToggle != null + ? supportsSortOrderToggle.value + : this.supportsSortOrderToggle), + supportsLatestMedia: (supportsLatestMedia != null + ? supportsLatestMedia.value + : this.supportsLatestMedia), canFilter: (canFilter != null ? canFilter.value : this.canFilter), - supportsContentDownloading: - (supportsContentDownloading != null ? supportsContentDownloading.value : this.supportsContentDownloading), + supportsContentDownloading: (supportsContentDownloading != null + ? supportsContentDownloading.value + : this.supportsContentDownloading), ); } } @@ -22908,7 +23358,8 @@ class ChannelMappingOptionsDto { this.providerName, }); - factory ChannelMappingOptionsDto.fromJson(Map json) => _$ChannelMappingOptionsDtoFromJson(json); + factory ChannelMappingOptionsDto.fromJson(Map json) => + _$ChannelMappingOptionsDtoFromJson(json); static const toJsonFactory = _$ChannelMappingOptionsDtoToJson; Map toJson() => _$ChannelMappingOptionsDtoToJson(this); @@ -22995,10 +23446,16 @@ extension $ChannelMappingOptionsDtoExtension on ChannelMappingOptionsDto { Wrapped? providerName, }) { return ChannelMappingOptionsDto( - tunerChannels: (tunerChannels != null ? tunerChannels.value : this.tunerChannels), - providerChannels: (providerChannels != null ? providerChannels.value : this.providerChannels), + tunerChannels: (tunerChannels != null + ? tunerChannels.value + : this.tunerChannels), + providerChannels: (providerChannels != null + ? providerChannels.value + : this.providerChannels), mappings: (mappings != null ? mappings.value : this.mappings), - providerName: (providerName != null ? providerName.value : this.providerName), + providerName: (providerName != null + ? providerName.value + : this.providerName), ); } } @@ -23013,7 +23470,8 @@ class ChapterInfo { this.imageTag, }); - factory ChapterInfo.fromJson(Map json) => _$ChapterInfoFromJson(json); + factory ChapterInfo.fromJson(Map json) => + _$ChapterInfoFromJson(json); static const toJsonFactory = _$ChapterInfoToJson; Map toJson() => _$ChapterInfoToJson(this); @@ -23039,7 +23497,8 @@ class ChapterInfo { other.startPositionTicks, startPositionTicks, )) && - (identical(other.name, name) || const DeepCollectionEquality().equals(other.name, name)) && + (identical(other.name, name) || + const DeepCollectionEquality().equals(other.name, name)) && (identical(other.imagePath, imagePath) || const DeepCollectionEquality().equals( other.imagePath, @@ -23095,10 +23554,14 @@ extension $ChapterInfoExtension on ChapterInfo { Wrapped? imageTag, }) { return ChapterInfo( - startPositionTicks: (startPositionTicks != null ? startPositionTicks.value : this.startPositionTicks), + startPositionTicks: (startPositionTicks != null + ? startPositionTicks.value + : this.startPositionTicks), name: (name != null ? name.value : this.name), imagePath: (imagePath != null ? imagePath.value : this.imagePath), - imageDateModified: (imageDateModified != null ? imageDateModified.value : this.imageDateModified), + imageDateModified: (imageDateModified != null + ? imageDateModified.value + : this.imageDateModified), imageTag: (imageTag != null ? imageTag.value : this.imageTag), ); } @@ -23116,7 +23579,8 @@ class ClientCapabilitiesDto { this.iconUrl, }); - factory ClientCapabilitiesDto.fromJson(Map json) => _$ClientCapabilitiesDtoFromJson(json); + factory ClientCapabilitiesDto.fromJson(Map json) => + _$ClientCapabilitiesDtoFromJson(json); static const toJsonFactory = _$ClientCapabilitiesDtoToJson; Map toJson() => _$ClientCapabilitiesDtoToJson(this); @@ -23184,7 +23648,8 @@ class ClientCapabilitiesDto { other.appStoreUrl, appStoreUrl, )) && - (identical(other.iconUrl, iconUrl) || const DeepCollectionEquality().equals(other.iconUrl, iconUrl))); + (identical(other.iconUrl, iconUrl) || + const DeepCollectionEquality().equals(other.iconUrl, iconUrl))); } @override @@ -23216,7 +23681,8 @@ extension $ClientCapabilitiesDtoExtension on ClientCapabilitiesDto { playableMediaTypes: playableMediaTypes ?? this.playableMediaTypes, supportedCommands: supportedCommands ?? this.supportedCommands, supportsMediaControl: supportsMediaControl ?? this.supportsMediaControl, - supportsPersistentIdentifier: supportsPersistentIdentifier ?? this.supportsPersistentIdentifier, + supportsPersistentIdentifier: + supportsPersistentIdentifier ?? this.supportsPersistentIdentifier, deviceProfile: deviceProfile ?? this.deviceProfile, appStoreUrl: appStoreUrl ?? this.appStoreUrl, iconUrl: iconUrl ?? this.iconUrl, @@ -23233,13 +23699,21 @@ extension $ClientCapabilitiesDtoExtension on ClientCapabilitiesDto { Wrapped? iconUrl, }) { return ClientCapabilitiesDto( - playableMediaTypes: (playableMediaTypes != null ? playableMediaTypes.value : this.playableMediaTypes), - supportedCommands: (supportedCommands != null ? supportedCommands.value : this.supportedCommands), - supportsMediaControl: (supportsMediaControl != null ? supportsMediaControl.value : this.supportsMediaControl), + playableMediaTypes: (playableMediaTypes != null + ? playableMediaTypes.value + : this.playableMediaTypes), + supportedCommands: (supportedCommands != null + ? supportedCommands.value + : this.supportedCommands), + supportsMediaControl: (supportsMediaControl != null + ? supportsMediaControl.value + : this.supportsMediaControl), supportsPersistentIdentifier: (supportsPersistentIdentifier != null ? supportsPersistentIdentifier.value : this.supportsPersistentIdentifier), - deviceProfile: (deviceProfile != null ? deviceProfile.value : this.deviceProfile), + deviceProfile: (deviceProfile != null + ? deviceProfile.value + : this.deviceProfile), appStoreUrl: (appStoreUrl != null ? appStoreUrl.value : this.appStoreUrl), iconUrl: (iconUrl != null ? iconUrl.value : this.iconUrl), ); @@ -23275,10 +23749,12 @@ class ClientLogDocumentResponseDto { String toString() => jsonEncode(this); @override - int get hashCode => const DeepCollectionEquality().hash(fileName) ^ runtimeType.hashCode; + int get hashCode => + const DeepCollectionEquality().hash(fileName) ^ runtimeType.hashCode; } -extension $ClientLogDocumentResponseDtoExtension on ClientLogDocumentResponseDto { +extension $ClientLogDocumentResponseDtoExtension + on ClientLogDocumentResponseDto { ClientLogDocumentResponseDto copyWith({String? fileName}) { return ClientLogDocumentResponseDto(fileName: fileName ?? this.fileName); } @@ -23301,7 +23777,8 @@ class CodecProfile { this.subContainer, }); - factory CodecProfile.fromJson(Map json) => _$CodecProfileFromJson(json); + factory CodecProfile.fromJson(Map json) => + _$CodecProfileFromJson(json); static const toJsonFactory = _$CodecProfileToJson; Map toJson() => _$CodecProfileToJson(this); @@ -23337,7 +23814,8 @@ class CodecProfile { bool operator ==(Object other) { return identical(this, other) || (other is CodecProfile && - (identical(other.type, type) || const DeepCollectionEquality().equals(other.type, type)) && + (identical(other.type, type) || + const DeepCollectionEquality().equals(other.type, type)) && (identical(other.conditions, conditions) || const DeepCollectionEquality().equals( other.conditions, @@ -23348,7 +23826,8 @@ class CodecProfile { other.applyConditions, applyConditions, )) && - (identical(other.codec, codec) || const DeepCollectionEquality().equals(other.codec, codec)) && + (identical(other.codec, codec) || + const DeepCollectionEquality().equals(other.codec, codec)) && (identical(other.container, container) || const DeepCollectionEquality().equals( other.container, @@ -23405,10 +23884,14 @@ extension $CodecProfileExtension on CodecProfile { return CodecProfile( type: (type != null ? type.value : this.type), conditions: (conditions != null ? conditions.value : this.conditions), - applyConditions: (applyConditions != null ? applyConditions.value : this.applyConditions), + applyConditions: (applyConditions != null + ? applyConditions.value + : this.applyConditions), codec: (codec != null ? codec.value : this.codec), container: (container != null ? container.value : this.container), - subContainer: (subContainer != null ? subContainer.value : this.subContainer), + subContainer: (subContainer != null + ? subContainer.value + : this.subContainer), ); } } @@ -23417,7 +23900,8 @@ extension $CodecProfileExtension on CodecProfile { class CollectionCreationResult { const CollectionCreationResult({this.id}); - factory CollectionCreationResult.fromJson(Map json) => _$CollectionCreationResultFromJson(json); + factory CollectionCreationResult.fromJson(Map json) => + _$CollectionCreationResultFromJson(json); static const toJsonFactory = _$CollectionCreationResultToJson; Map toJson() => _$CollectionCreationResultToJson(this); @@ -23430,14 +23914,16 @@ class CollectionCreationResult { bool operator ==(Object other) { return identical(this, other) || (other is CollectionCreationResult && - (identical(other.id, id) || const DeepCollectionEquality().equals(other.id, id))); + (identical(other.id, id) || + const DeepCollectionEquality().equals(other.id, id))); } @override String toString() => jsonEncode(this); @override - int get hashCode => const DeepCollectionEquality().hash(id) ^ runtimeType.hashCode; + int get hashCode => + const DeepCollectionEquality().hash(id) ^ runtimeType.hashCode; } extension $CollectionCreationResultExtension on CollectionCreationResult { @@ -23462,7 +23948,8 @@ class ConfigImageTypes { this.stillSizes, }); - factory ConfigImageTypes.fromJson(Map json) => _$ConfigImageTypesFromJson(json); + factory ConfigImageTypes.fromJson(Map json) => + _$ConfigImageTypesFromJson(json); static const toJsonFactory = _$ConfigImageTypesToJson; Map toJson() => _$ConfigImageTypesToJson(this); @@ -23574,12 +24061,18 @@ extension $ConfigImageTypesExtension on ConfigImageTypes { Wrapped?>? stillSizes, }) { return ConfigImageTypes( - backdropSizes: (backdropSizes != null ? backdropSizes.value : this.backdropSizes), + backdropSizes: (backdropSizes != null + ? backdropSizes.value + : this.backdropSizes), baseUrl: (baseUrl != null ? baseUrl.value : this.baseUrl), logoSizes: (logoSizes != null ? logoSizes.value : this.logoSizes), posterSizes: (posterSizes != null ? posterSizes.value : this.posterSizes), - profileSizes: (profileSizes != null ? profileSizes.value : this.profileSizes), - secureBaseUrl: (secureBaseUrl != null ? secureBaseUrl.value : this.secureBaseUrl), + profileSizes: (profileSizes != null + ? profileSizes.value + : this.profileSizes), + secureBaseUrl: (secureBaseUrl != null + ? secureBaseUrl.value + : this.secureBaseUrl), stillSizes: (stillSizes != null ? stillSizes.value : this.stillSizes), ); } @@ -23596,7 +24089,8 @@ class ConfigurationPageInfo { this.pluginId, }); - factory ConfigurationPageInfo.fromJson(Map json) => _$ConfigurationPageInfoFromJson(json); + factory ConfigurationPageInfo.fromJson(Map json) => + _$ConfigurationPageInfoFromJson(json); static const toJsonFactory = _$ConfigurationPageInfoToJson; Map toJson() => _$ConfigurationPageInfoToJson(this); @@ -23619,7 +24113,8 @@ class ConfigurationPageInfo { bool operator ==(Object other) { return identical(this, other) || (other is ConfigurationPageInfo && - (identical(other.name, name) || const DeepCollectionEquality().equals(other.name, name)) && + (identical(other.name, name) || + const DeepCollectionEquality().equals(other.name, name)) && (identical(other.enableInMainMenu, enableInMainMenu) || const DeepCollectionEquality().equals( other.enableInMainMenu, @@ -23690,7 +24185,9 @@ extension $ConfigurationPageInfoExtension on ConfigurationPageInfo { }) { return ConfigurationPageInfo( name: (name != null ? name.value : this.name), - enableInMainMenu: (enableInMainMenu != null ? enableInMainMenu.value : this.enableInMainMenu), + enableInMainMenu: (enableInMainMenu != null + ? enableInMainMenu.value + : this.enableInMainMenu), menuSection: (menuSection != null ? menuSection.value : this.menuSection), menuIcon: (menuIcon != null ? menuIcon.value : this.menuIcon), displayName: (displayName != null ? displayName.value : this.displayName), @@ -23708,7 +24205,8 @@ class ContainerProfile { this.subContainer, }); - factory ContainerProfile.fromJson(Map json) => _$ContainerProfileFromJson(json); + factory ContainerProfile.fromJson(Map json) => + _$ContainerProfileFromJson(json); static const toJsonFactory = _$ContainerProfileToJson; Map toJson() => _$ContainerProfileToJson(this); @@ -23736,7 +24234,8 @@ class ContainerProfile { bool operator ==(Object other) { return identical(this, other) || (other is ContainerProfile && - (identical(other.type, type) || const DeepCollectionEquality().equals(other.type, type)) && + (identical(other.type, type) || + const DeepCollectionEquality().equals(other.type, type)) && (identical(other.conditions, conditions) || const DeepCollectionEquality().equals( other.conditions, @@ -23791,7 +24290,9 @@ extension $ContainerProfileExtension on ContainerProfile { type: (type != null ? type.value : this.type), conditions: (conditions != null ? conditions.value : this.conditions), container: (container != null ? container.value : this.container), - subContainer: (subContainer != null ? subContainer.value : this.subContainer), + subContainer: (subContainer != null + ? subContainer.value + : this.subContainer), ); } } @@ -23805,7 +24306,8 @@ class CountryInfo { this.threeLetterISORegionName, }); - factory CountryInfo.fromJson(Map json) => _$CountryInfoFromJson(json); + factory CountryInfo.fromJson(Map json) => + _$CountryInfoFromJson(json); static const toJsonFactory = _$CountryInfoToJson; Map toJson() => _$CountryInfoToJson(this); @@ -23824,7 +24326,8 @@ class CountryInfo { bool operator ==(Object other) { return identical(this, other) || (other is CountryInfo && - (identical(other.name, name) || const DeepCollectionEquality().equals(other.name, name)) && + (identical(other.name, name) || + const DeepCollectionEquality().equals(other.name, name)) && (identical(other.displayName, displayName) || const DeepCollectionEquality().equals( other.displayName, @@ -23867,8 +24370,10 @@ extension $CountryInfoExtension on CountryInfo { return CountryInfo( name: name ?? this.name, displayName: displayName ?? this.displayName, - twoLetterISORegionName: twoLetterISORegionName ?? this.twoLetterISORegionName, - threeLetterISORegionName: threeLetterISORegionName ?? this.threeLetterISORegionName, + twoLetterISORegionName: + twoLetterISORegionName ?? this.twoLetterISORegionName, + threeLetterISORegionName: + threeLetterISORegionName ?? this.threeLetterISORegionName, ); } @@ -23881,10 +24386,12 @@ extension $CountryInfoExtension on CountryInfo { return CountryInfo( name: (name != null ? name.value : this.name), displayName: (displayName != null ? displayName.value : this.displayName), - twoLetterISORegionName: - (twoLetterISORegionName != null ? twoLetterISORegionName.value : this.twoLetterISORegionName), - threeLetterISORegionName: - (threeLetterISORegionName != null ? threeLetterISORegionName.value : this.threeLetterISORegionName), + twoLetterISORegionName: (twoLetterISORegionName != null + ? twoLetterISORegionName.value + : this.twoLetterISORegionName), + threeLetterISORegionName: (threeLetterISORegionName != null + ? threeLetterISORegionName.value + : this.threeLetterISORegionName), ); } } @@ -23900,7 +24407,8 @@ class CreatePlaylistDto { this.isPublic, }); - factory CreatePlaylistDto.fromJson(Map json) => _$CreatePlaylistDtoFromJson(json); + factory CreatePlaylistDto.fromJson(Map json) => + _$CreatePlaylistDtoFromJson(json); static const toJsonFactory = _$CreatePlaylistDtoToJson; Map toJson() => _$CreatePlaylistDtoToJson(this); @@ -23932,15 +24440,19 @@ class CreatePlaylistDto { bool operator ==(Object other) { return identical(this, other) || (other is CreatePlaylistDto && - (identical(other.name, name) || const DeepCollectionEquality().equals(other.name, name)) && - (identical(other.ids, ids) || const DeepCollectionEquality().equals(other.ids, ids)) && - (identical(other.userId, userId) || const DeepCollectionEquality().equals(other.userId, userId)) && + (identical(other.name, name) || + const DeepCollectionEquality().equals(other.name, name)) && + (identical(other.ids, ids) || + const DeepCollectionEquality().equals(other.ids, ids)) && + (identical(other.userId, userId) || + const DeepCollectionEquality().equals(other.userId, userId)) && (identical(other.mediaType, mediaType) || const DeepCollectionEquality().equals( other.mediaType, mediaType, )) && - (identical(other.users, users) || const DeepCollectionEquality().equals(other.users, users)) && + (identical(other.users, users) || + const DeepCollectionEquality().equals(other.users, users)) && (identical(other.isPublic, isPublic) || const DeepCollectionEquality().equals( other.isPublic, @@ -24004,7 +24516,8 @@ extension $CreatePlaylistDtoExtension on CreatePlaylistDto { class CreateUserByName { const CreateUserByName({required this.name, this.password}); - factory CreateUserByName.fromJson(Map json) => _$CreateUserByNameFromJson(json); + factory CreateUserByName.fromJson(Map json) => + _$CreateUserByNameFromJson(json); static const toJsonFactory = _$CreateUserByNameToJson; Map toJson() => _$CreateUserByNameToJson(this); @@ -24019,7 +24532,8 @@ class CreateUserByName { bool operator ==(Object other) { return identical(this, other) || (other is CreateUserByName && - (identical(other.name, name) || const DeepCollectionEquality().equals(other.name, name)) && + (identical(other.name, name) || + const DeepCollectionEquality().equals(other.name, name)) && (identical(other.password, password) || const DeepCollectionEquality().equals( other.password, @@ -24032,7 +24546,9 @@ class CreateUserByName { @override int get hashCode => - const DeepCollectionEquality().hash(name) ^ const DeepCollectionEquality().hash(password) ^ runtimeType.hashCode; + const DeepCollectionEquality().hash(name) ^ + const DeepCollectionEquality().hash(password) ^ + runtimeType.hashCode; } extension $CreateUserByNameExtension on CreateUserByName { @@ -24064,7 +24580,8 @@ class CultureDto { this.threeLetterISOLanguageNames, }); - factory CultureDto.fromJson(Map json) => _$CultureDtoFromJson(json); + factory CultureDto.fromJson(Map json) => + _$CultureDtoFromJson(json); static const toJsonFactory = _$CultureDtoToJson; Map toJson() => _$CultureDtoToJson(this); @@ -24089,7 +24606,8 @@ class CultureDto { bool operator ==(Object other) { return identical(this, other) || (other is CultureDto && - (identical(other.name, name) || const DeepCollectionEquality().equals(other.name, name)) && + (identical(other.name, name) || + const DeepCollectionEquality().equals(other.name, name)) && (identical(other.displayName, displayName) || const DeepCollectionEquality().equals( other.displayName, @@ -24145,9 +24663,12 @@ extension $CultureDtoExtension on CultureDto { return CultureDto( name: name ?? this.name, displayName: displayName ?? this.displayName, - twoLetterISOLanguageName: twoLetterISOLanguageName ?? this.twoLetterISOLanguageName, - threeLetterISOLanguageName: threeLetterISOLanguageName ?? this.threeLetterISOLanguageName, - threeLetterISOLanguageNames: threeLetterISOLanguageNames ?? this.threeLetterISOLanguageNames, + twoLetterISOLanguageName: + twoLetterISOLanguageName ?? this.twoLetterISOLanguageName, + threeLetterISOLanguageName: + threeLetterISOLanguageName ?? this.threeLetterISOLanguageName, + threeLetterISOLanguageNames: + threeLetterISOLanguageNames ?? this.threeLetterISOLanguageNames, ); } @@ -24161,12 +24682,15 @@ extension $CultureDtoExtension on CultureDto { return CultureDto( name: (name != null ? name.value : this.name), displayName: (displayName != null ? displayName.value : this.displayName), - twoLetterISOLanguageName: - (twoLetterISOLanguageName != null ? twoLetterISOLanguageName.value : this.twoLetterISOLanguageName), - threeLetterISOLanguageName: - (threeLetterISOLanguageName != null ? threeLetterISOLanguageName.value : this.threeLetterISOLanguageName), - threeLetterISOLanguageNames: - (threeLetterISOLanguageNames != null ? threeLetterISOLanguageNames.value : this.threeLetterISOLanguageNames), + twoLetterISOLanguageName: (twoLetterISOLanguageName != null + ? twoLetterISOLanguageName.value + : this.twoLetterISOLanguageName), + threeLetterISOLanguageName: (threeLetterISOLanguageName != null + ? threeLetterISOLanguageName.value + : this.threeLetterISOLanguageName), + threeLetterISOLanguageNames: (threeLetterISOLanguageNames != null + ? threeLetterISOLanguageNames.value + : this.threeLetterISOLanguageNames), ); } } @@ -24175,7 +24699,8 @@ extension $CultureDtoExtension on CultureDto { class CustomDatabaseOption { const CustomDatabaseOption({this.key, this.$Value}); - factory CustomDatabaseOption.fromJson(Map json) => _$CustomDatabaseOptionFromJson(json); + factory CustomDatabaseOption.fromJson(Map json) => + _$CustomDatabaseOptionFromJson(json); static const toJsonFactory = _$CustomDatabaseOptionToJson; Map toJson() => _$CustomDatabaseOptionToJson(this); @@ -24190,8 +24715,10 @@ class CustomDatabaseOption { bool operator ==(Object other) { return identical(this, other) || (other is CustomDatabaseOption && - (identical(other.key, key) || const DeepCollectionEquality().equals(other.key, key)) && - (identical(other.$Value, $Value) || const DeepCollectionEquality().equals(other.$Value, $Value))); + (identical(other.key, key) || + const DeepCollectionEquality().equals(other.key, key)) && + (identical(other.$Value, $Value) || + const DeepCollectionEquality().equals(other.$Value, $Value))); } @override @@ -24199,7 +24726,9 @@ class CustomDatabaseOption { @override int get hashCode => - const DeepCollectionEquality().hash(key) ^ const DeepCollectionEquality().hash($Value) ^ runtimeType.hashCode; + const DeepCollectionEquality().hash(key) ^ + const DeepCollectionEquality().hash($Value) ^ + runtimeType.hashCode; } extension $CustomDatabaseOptionExtension on CustomDatabaseOption { @@ -24230,7 +24759,8 @@ class CustomDatabaseOptions { this.options, }); - factory CustomDatabaseOptions.fromJson(Map json) => _$CustomDatabaseOptionsFromJson(json); + factory CustomDatabaseOptions.fromJson(Map json) => + _$CustomDatabaseOptionsFromJson(json); static const toJsonFactory = _$CustomDatabaseOptionsToJson; Map toJson() => _$CustomDatabaseOptionsToJson(this); @@ -24268,7 +24798,8 @@ class CustomDatabaseOptions { other.connectionString, connectionString, )) && - (identical(other.options, options) || const DeepCollectionEquality().equals(other.options, options))); + (identical(other.options, options) || + const DeepCollectionEquality().equals(other.options, options))); } @override @@ -24306,8 +24837,12 @@ extension $CustomDatabaseOptionsExtension on CustomDatabaseOptions { }) { return CustomDatabaseOptions( pluginName: (pluginName != null ? pluginName.value : this.pluginName), - pluginAssembly: (pluginAssembly != null ? pluginAssembly.value : this.pluginAssembly), - connectionString: (connectionString != null ? connectionString.value : this.connectionString), + pluginAssembly: (pluginAssembly != null + ? pluginAssembly.value + : this.pluginAssembly), + connectionString: (connectionString != null + ? connectionString.value + : this.connectionString), options: (options != null ? options.value : this.options), ); } @@ -24317,7 +24852,8 @@ extension $CustomDatabaseOptionsExtension on CustomDatabaseOptions { class CustomQueryData { const CustomQueryData({this.customQueryString, this.replaceUserId}); - factory CustomQueryData.fromJson(Map json) => _$CustomQueryDataFromJson(json); + factory CustomQueryData.fromJson(Map json) => + _$CustomQueryDataFromJson(json); static const toJsonFactory = _$CustomQueryDataToJson; Map toJson() => _$CustomQueryDataToJson(this); @@ -24367,8 +24903,12 @@ extension $CustomQueryDataExtension on CustomQueryData { Wrapped? replaceUserId, }) { return CustomQueryData( - customQueryString: (customQueryString != null ? customQueryString.value : this.customQueryString), - replaceUserId: (replaceUserId != null ? replaceUserId.value : this.replaceUserId), + customQueryString: (customQueryString != null + ? customQueryString.value + : this.customQueryString), + replaceUserId: (replaceUserId != null + ? replaceUserId.value + : this.replaceUserId), ); } } @@ -24432,7 +24972,8 @@ class DatabaseConfigurationOptions { runtimeType.hashCode; } -extension $DatabaseConfigurationOptionsExtension on DatabaseConfigurationOptions { +extension $DatabaseConfigurationOptionsExtension + on DatabaseConfigurationOptions { DatabaseConfigurationOptions copyWith({ String? databaseType, CustomDatabaseOptions? customProviderOptions, @@ -24440,7 +24981,8 @@ extension $DatabaseConfigurationOptionsExtension on DatabaseConfigurationOptions }) { return DatabaseConfigurationOptions( databaseType: databaseType ?? this.databaseType, - customProviderOptions: customProviderOptions ?? this.customProviderOptions, + customProviderOptions: + customProviderOptions ?? this.customProviderOptions, lockingBehavior: lockingBehavior ?? this.lockingBehavior, ); } @@ -24451,9 +24993,15 @@ extension $DatabaseConfigurationOptionsExtension on DatabaseConfigurationOptions Wrapped? lockingBehavior, }) { return DatabaseConfigurationOptions( - databaseType: (databaseType != null ? databaseType.value : this.databaseType), - customProviderOptions: (customProviderOptions != null ? customProviderOptions.value : this.customProviderOptions), - lockingBehavior: (lockingBehavior != null ? lockingBehavior.value : this.lockingBehavior), + databaseType: (databaseType != null + ? databaseType.value + : this.databaseType), + customProviderOptions: (customProviderOptions != null + ? customProviderOptions.value + : this.customProviderOptions), + lockingBehavior: (lockingBehavior != null + ? lockingBehavior.value + : this.lockingBehavior), ); } } @@ -24476,17 +25024,20 @@ class DefaultDirectoryBrowserInfoDto { bool operator ==(Object other) { return identical(this, other) || (other is DefaultDirectoryBrowserInfoDto && - (identical(other.path, path) || const DeepCollectionEquality().equals(other.path, path))); + (identical(other.path, path) || + const DeepCollectionEquality().equals(other.path, path))); } @override String toString() => jsonEncode(this); @override - int get hashCode => const DeepCollectionEquality().hash(path) ^ runtimeType.hashCode; + int get hashCode => + const DeepCollectionEquality().hash(path) ^ runtimeType.hashCode; } -extension $DefaultDirectoryBrowserInfoDtoExtension on DefaultDirectoryBrowserInfoDto { +extension $DefaultDirectoryBrowserInfoDtoExtension + on DefaultDirectoryBrowserInfoDto { DefaultDirectoryBrowserInfoDto copyWith({String? path}) { return DefaultDirectoryBrowserInfoDto(path: path ?? this.path); } @@ -24514,7 +25065,8 @@ class DeviceInfoDto { this.iconUrl, }); - factory DeviceInfoDto.fromJson(Map json) => _$DeviceInfoDtoFromJson(json); + factory DeviceInfoDto.fromJson(Map json) => + _$DeviceInfoDtoFromJson(json); static const toJsonFactory = _$DeviceInfoDtoToJson; Map toJson() => _$DeviceInfoDtoToJson(this); @@ -24547,7 +25099,8 @@ class DeviceInfoDto { bool operator ==(Object other) { return identical(this, other) || (other is DeviceInfoDto && - (identical(other.name, name) || const DeepCollectionEquality().equals(other.name, name)) && + (identical(other.name, name) || + const DeepCollectionEquality().equals(other.name, name)) && (identical(other.customName, customName) || const DeepCollectionEquality().equals( other.customName, @@ -24558,7 +25111,8 @@ class DeviceInfoDto { other.accessToken, accessToken, )) && - (identical(other.id, id) || const DeepCollectionEquality().equals(other.id, id)) && + (identical(other.id, id) || + const DeepCollectionEquality().equals(other.id, id)) && (identical(other.lastUserName, lastUserName) || const DeepCollectionEquality().equals( other.lastUserName, @@ -24589,7 +25143,8 @@ class DeviceInfoDto { other.capabilities, capabilities, )) && - (identical(other.iconUrl, iconUrl) || const DeepCollectionEquality().equals(other.iconUrl, iconUrl))); + (identical(other.iconUrl, iconUrl) || + const DeepCollectionEquality().equals(other.iconUrl, iconUrl))); } @override @@ -24658,12 +25213,18 @@ extension $DeviceInfoDtoExtension on DeviceInfoDto { customName: (customName != null ? customName.value : this.customName), accessToken: (accessToken != null ? accessToken.value : this.accessToken), id: (id != null ? id.value : this.id), - lastUserName: (lastUserName != null ? lastUserName.value : this.lastUserName), + lastUserName: (lastUserName != null + ? lastUserName.value + : this.lastUserName), appName: (appName != null ? appName.value : this.appName), appVersion: (appVersion != null ? appVersion.value : this.appVersion), lastUserId: (lastUserId != null ? lastUserId.value : this.lastUserId), - dateLastActivity: (dateLastActivity != null ? dateLastActivity.value : this.dateLastActivity), - capabilities: (capabilities != null ? capabilities.value : this.capabilities), + dateLastActivity: (dateLastActivity != null + ? dateLastActivity.value + : this.dateLastActivity), + capabilities: (capabilities != null + ? capabilities.value + : this.capabilities), iconUrl: (iconUrl != null ? iconUrl.value : this.iconUrl), ); } @@ -24677,7 +25238,8 @@ class DeviceInfoDtoQueryResult { this.startIndex, }); - factory DeviceInfoDtoQueryResult.fromJson(Map json) => _$DeviceInfoDtoQueryResultFromJson(json); + factory DeviceInfoDtoQueryResult.fromJson(Map json) => + _$DeviceInfoDtoQueryResultFromJson(json); static const toJsonFactory = _$DeviceInfoDtoQueryResultToJson; Map toJson() => _$DeviceInfoDtoQueryResultToJson(this); @@ -24694,7 +25256,8 @@ class DeviceInfoDtoQueryResult { bool operator ==(Object other) { return identical(this, other) || (other is DeviceInfoDtoQueryResult && - (identical(other.items, items) || const DeepCollectionEquality().equals(other.items, items)) && + (identical(other.items, items) || + const DeepCollectionEquality().equals(other.items, items)) && (identical(other.totalRecordCount, totalRecordCount) || const DeepCollectionEquality().equals( other.totalRecordCount, @@ -24738,7 +25301,9 @@ extension $DeviceInfoDtoQueryResultExtension on DeviceInfoDtoQueryResult { }) { return DeviceInfoDtoQueryResult( items: (items != null ? items.value : this.items), - totalRecordCount: (totalRecordCount != null ? totalRecordCount.value : this.totalRecordCount), + totalRecordCount: (totalRecordCount != null + ? totalRecordCount.value + : this.totalRecordCount), startIndex: (startIndex != null ? startIndex.value : this.startIndex), ); } @@ -24748,7 +25313,8 @@ extension $DeviceInfoDtoQueryResultExtension on DeviceInfoDtoQueryResult { class DeviceOptionsDto { const DeviceOptionsDto({this.id, this.deviceId, this.customName}); - factory DeviceOptionsDto.fromJson(Map json) => _$DeviceOptionsDtoFromJson(json); + factory DeviceOptionsDto.fromJson(Map json) => + _$DeviceOptionsDtoFromJson(json); static const toJsonFactory = _$DeviceOptionsDtoToJson; Map toJson() => _$DeviceOptionsDtoToJson(this); @@ -24765,7 +25331,8 @@ class DeviceOptionsDto { bool operator ==(Object other) { return identical(this, other) || (other is DeviceOptionsDto && - (identical(other.id, id) || const DeepCollectionEquality().equals(other.id, id)) && + (identical(other.id, id) || + const DeepCollectionEquality().equals(other.id, id)) && (identical(other.deviceId, deviceId) || const DeepCollectionEquality().equals( other.deviceId, @@ -24827,7 +25394,8 @@ class DeviceProfile { this.subtitleProfiles, }); - factory DeviceProfile.fromJson(Map json) => _$DeviceProfileFromJson(json); + factory DeviceProfile.fromJson(Map json) => + _$DeviceProfileFromJson(json); static const toJsonFactory = _$DeviceProfileToJson; Map toJson() => _$DeviceProfileToJson(this); @@ -24880,8 +25448,10 @@ class DeviceProfile { bool operator ==(Object other) { return identical(this, other) || (other is DeviceProfile && - (identical(other.name, name) || const DeepCollectionEquality().equals(other.name, name)) && - (identical(other.id, id) || const DeepCollectionEquality().equals(other.id, id)) && + (identical(other.name, name) || + const DeepCollectionEquality().equals(other.name, name)) && + (identical(other.id, id) || + const DeepCollectionEquality().equals(other.id, id)) && (identical(other.maxStreamingBitrate, maxStreamingBitrate) || const DeepCollectionEquality().equals( other.maxStreamingBitrate, @@ -24970,8 +25540,11 @@ extension $DeviceProfileExtension on DeviceProfile { id: id ?? this.id, maxStreamingBitrate: maxStreamingBitrate ?? this.maxStreamingBitrate, maxStaticBitrate: maxStaticBitrate ?? this.maxStaticBitrate, - musicStreamingTranscodingBitrate: musicStreamingTranscodingBitrate ?? this.musicStreamingTranscodingBitrate, - maxStaticMusicBitrate: maxStaticMusicBitrate ?? this.maxStaticMusicBitrate, + musicStreamingTranscodingBitrate: + musicStreamingTranscodingBitrate ?? + this.musicStreamingTranscodingBitrate, + maxStaticMusicBitrate: + maxStaticMusicBitrate ?? this.maxStaticMusicBitrate, directPlayProfiles: directPlayProfiles ?? this.directPlayProfiles, transcodingProfiles: transcodingProfiles ?? this.transcodingProfiles, containerProfiles: containerProfiles ?? this.containerProfiles, @@ -24996,17 +25569,34 @@ extension $DeviceProfileExtension on DeviceProfile { return DeviceProfile( name: (name != null ? name.value : this.name), id: (id != null ? id.value : this.id), - maxStreamingBitrate: (maxStreamingBitrate != null ? maxStreamingBitrate.value : this.maxStreamingBitrate), - maxStaticBitrate: (maxStaticBitrate != null ? maxStaticBitrate.value : this.maxStaticBitrate), - musicStreamingTranscodingBitrate: (musicStreamingTranscodingBitrate != null + maxStreamingBitrate: (maxStreamingBitrate != null + ? maxStreamingBitrate.value + : this.maxStreamingBitrate), + maxStaticBitrate: (maxStaticBitrate != null + ? maxStaticBitrate.value + : this.maxStaticBitrate), + musicStreamingTranscodingBitrate: + (musicStreamingTranscodingBitrate != null ? musicStreamingTranscodingBitrate.value : this.musicStreamingTranscodingBitrate), - maxStaticMusicBitrate: (maxStaticMusicBitrate != null ? maxStaticMusicBitrate.value : this.maxStaticMusicBitrate), - directPlayProfiles: (directPlayProfiles != null ? directPlayProfiles.value : this.directPlayProfiles), - transcodingProfiles: (transcodingProfiles != null ? transcodingProfiles.value : this.transcodingProfiles), - containerProfiles: (containerProfiles != null ? containerProfiles.value : this.containerProfiles), - codecProfiles: (codecProfiles != null ? codecProfiles.value : this.codecProfiles), - subtitleProfiles: (subtitleProfiles != null ? subtitleProfiles.value : this.subtitleProfiles), + maxStaticMusicBitrate: (maxStaticMusicBitrate != null + ? maxStaticMusicBitrate.value + : this.maxStaticMusicBitrate), + directPlayProfiles: (directPlayProfiles != null + ? directPlayProfiles.value + : this.directPlayProfiles), + transcodingProfiles: (transcodingProfiles != null + ? transcodingProfiles.value + : this.transcodingProfiles), + containerProfiles: (containerProfiles != null + ? containerProfiles.value + : this.containerProfiles), + codecProfiles: (codecProfiles != null + ? codecProfiles.value + : this.codecProfiles), + subtitleProfiles: (subtitleProfiles != null + ? subtitleProfiles.value + : this.subtitleProfiles), ); } } @@ -25020,7 +25610,8 @@ class DirectPlayProfile { this.type, }); - factory DirectPlayProfile.fromJson(Map json) => _$DirectPlayProfileFromJson(json); + factory DirectPlayProfile.fromJson(Map json) => + _$DirectPlayProfileFromJson(json); static const toJsonFactory = _$DirectPlayProfileToJson; Map toJson() => _$DirectPlayProfileToJson(this); @@ -25059,7 +25650,8 @@ class DirectPlayProfile { other.videoCodec, videoCodec, )) && - (identical(other.type, type) || const DeepCollectionEquality().equals(other.type, type))); + (identical(other.type, type) || + const DeepCollectionEquality().equals(other.type, type))); } @override @@ -25123,7 +25715,8 @@ class DisplayPreferencesDto { this.$Client, }); - factory DisplayPreferencesDto.fromJson(Map json) => _$DisplayPreferencesDtoFromJson(json); + factory DisplayPreferencesDto.fromJson(Map json) => + _$DisplayPreferencesDtoFromJson(json); static const toJsonFactory = _$DisplayPreferencesDtoToJson; Map toJson() => _$DisplayPreferencesDtoToJson(this); @@ -25172,13 +25765,15 @@ class DisplayPreferencesDto { bool operator ==(Object other) { return identical(this, other) || (other is DisplayPreferencesDto && - (identical(other.id, id) || const DeepCollectionEquality().equals(other.id, id)) && + (identical(other.id, id) || + const DeepCollectionEquality().equals(other.id, id)) && (identical(other.viewType, viewType) || const DeepCollectionEquality().equals( other.viewType, viewType, )) && - (identical(other.sortBy, sortBy) || const DeepCollectionEquality().equals(other.sortBy, sortBy)) && + (identical(other.sortBy, sortBy) || + const DeepCollectionEquality().equals(other.sortBy, sortBy)) && (identical(other.indexBy, indexBy) || const DeepCollectionEquality().equals( other.indexBy, @@ -25229,7 +25824,8 @@ class DisplayPreferencesDto { other.showSidebar, showSidebar, )) && - (identical(other.$Client, $Client) || const DeepCollectionEquality().equals(other.$Client, $Client))); + (identical(other.$Client, $Client) || + const DeepCollectionEquality().equals(other.$Client, $Client))); } @override @@ -25310,13 +25906,25 @@ extension $DisplayPreferencesDtoExtension on DisplayPreferencesDto { viewType: (viewType != null ? viewType.value : this.viewType), sortBy: (sortBy != null ? sortBy.value : this.sortBy), indexBy: (indexBy != null ? indexBy.value : this.indexBy), - rememberIndexing: (rememberIndexing != null ? rememberIndexing.value : this.rememberIndexing), - primaryImageHeight: (primaryImageHeight != null ? primaryImageHeight.value : this.primaryImageHeight), - primaryImageWidth: (primaryImageWidth != null ? primaryImageWidth.value : this.primaryImageWidth), + rememberIndexing: (rememberIndexing != null + ? rememberIndexing.value + : this.rememberIndexing), + primaryImageHeight: (primaryImageHeight != null + ? primaryImageHeight.value + : this.primaryImageHeight), + primaryImageWidth: (primaryImageWidth != null + ? primaryImageWidth.value + : this.primaryImageWidth), customPrefs: (customPrefs != null ? customPrefs.value : this.customPrefs), - scrollDirection: (scrollDirection != null ? scrollDirection.value : this.scrollDirection), - showBackdrop: (showBackdrop != null ? showBackdrop.value : this.showBackdrop), - rememberSorting: (rememberSorting != null ? rememberSorting.value : this.rememberSorting), + scrollDirection: (scrollDirection != null + ? scrollDirection.value + : this.scrollDirection), + showBackdrop: (showBackdrop != null + ? showBackdrop.value + : this.showBackdrop), + rememberSorting: (rememberSorting != null + ? rememberSorting.value + : this.rememberSorting), sortOrder: (sortOrder != null ? sortOrder.value : this.sortOrder), showSidebar: (showSidebar != null ? showSidebar.value : this.showSidebar), $Client: ($Client != null ? $Client.value : this.$Client), @@ -25376,7 +25984,8 @@ class EncodingOptions { this.allowOnDemandMetadataBasedKeyframeExtractionForExtensions, }); - factory EncodingOptions.fromJson(Map json) => _$EncodingOptionsFromJson(json); + factory EncodingOptions.fromJson(Map json) => + _$EncodingOptionsFromJson(json); static const toJsonFactory = _$EncodingOptionsToJson; Map toJson() => _$EncodingOptionsToJson(this); @@ -25791,11 +26400,13 @@ class EncodingOptions { hardwareDecodingCodecs, )) && (identical( - other.allowOnDemandMetadataBasedKeyframeExtractionForExtensions, + other + .allowOnDemandMetadataBasedKeyframeExtractionForExtensions, allowOnDemandMetadataBasedKeyframeExtractionForExtensions, ) || const DeepCollectionEquality().equals( - other.allowOnDemandMetadataBasedKeyframeExtractionForExtensions, + other + .allowOnDemandMetadataBasedKeyframeExtractionForExtensions, allowOnDemandMetadataBasedKeyframeExtractionForExtensions, ))); } @@ -25914,49 +26525,72 @@ extension $EncodingOptionsExtension on EncodingOptions { enableFallbackFont: enableFallbackFont ?? this.enableFallbackFont, enableAudioVbr: enableAudioVbr ?? this.enableAudioVbr, downMixAudioBoost: downMixAudioBoost ?? this.downMixAudioBoost, - downMixStereoAlgorithm: downMixStereoAlgorithm ?? this.downMixStereoAlgorithm, + downMixStereoAlgorithm: + downMixStereoAlgorithm ?? this.downMixStereoAlgorithm, maxMuxingQueueSize: maxMuxingQueueSize ?? this.maxMuxingQueueSize, enableThrottling: enableThrottling ?? this.enableThrottling, throttleDelaySeconds: throttleDelaySeconds ?? this.throttleDelaySeconds, - enableSegmentDeletion: enableSegmentDeletion ?? this.enableSegmentDeletion, + enableSegmentDeletion: + enableSegmentDeletion ?? this.enableSegmentDeletion, segmentKeepSeconds: segmentKeepSeconds ?? this.segmentKeepSeconds, - hardwareAccelerationType: hardwareAccelerationType ?? this.hardwareAccelerationType, + hardwareAccelerationType: + hardwareAccelerationType ?? this.hardwareAccelerationType, encoderAppPath: encoderAppPath ?? this.encoderAppPath, - encoderAppPathDisplay: encoderAppPathDisplay ?? this.encoderAppPathDisplay, + encoderAppPathDisplay: + encoderAppPathDisplay ?? this.encoderAppPathDisplay, vaapiDevice: vaapiDevice ?? this.vaapiDevice, qsvDevice: qsvDevice ?? this.qsvDevice, enableTonemapping: enableTonemapping ?? this.enableTonemapping, enableVppTonemapping: enableVppTonemapping ?? this.enableVppTonemapping, - enableVideoToolboxTonemapping: enableVideoToolboxTonemapping ?? this.enableVideoToolboxTonemapping, + enableVideoToolboxTonemapping: + enableVideoToolboxTonemapping ?? this.enableVideoToolboxTonemapping, tonemappingAlgorithm: tonemappingAlgorithm ?? this.tonemappingAlgorithm, tonemappingMode: tonemappingMode ?? this.tonemappingMode, tonemappingRange: tonemappingRange ?? this.tonemappingRange, tonemappingDesat: tonemappingDesat ?? this.tonemappingDesat, tonemappingPeak: tonemappingPeak ?? this.tonemappingPeak, tonemappingParam: tonemappingParam ?? this.tonemappingParam, - vppTonemappingBrightness: vppTonemappingBrightness ?? this.vppTonemappingBrightness, - vppTonemappingContrast: vppTonemappingContrast ?? this.vppTonemappingContrast, + vppTonemappingBrightness: + vppTonemappingBrightness ?? this.vppTonemappingBrightness, + vppTonemappingContrast: + vppTonemappingContrast ?? this.vppTonemappingContrast, h264Crf: h264Crf ?? this.h264Crf, h265Crf: h265Crf ?? this.h265Crf, encoderPreset: encoderPreset ?? this.encoderPreset, - deinterlaceDoubleRate: deinterlaceDoubleRate ?? this.deinterlaceDoubleRate, + deinterlaceDoubleRate: + deinterlaceDoubleRate ?? this.deinterlaceDoubleRate, deinterlaceMethod: deinterlaceMethod ?? this.deinterlaceMethod, - enableDecodingColorDepth10Hevc: enableDecodingColorDepth10Hevc ?? this.enableDecodingColorDepth10Hevc, - enableDecodingColorDepth10Vp9: enableDecodingColorDepth10Vp9 ?? this.enableDecodingColorDepth10Vp9, - enableDecodingColorDepth10HevcRext: enableDecodingColorDepth10HevcRext ?? this.enableDecodingColorDepth10HevcRext, - enableDecodingColorDepth12HevcRext: enableDecodingColorDepth12HevcRext ?? this.enableDecodingColorDepth12HevcRext, - enableEnhancedNvdecDecoder: enableEnhancedNvdecDecoder ?? this.enableEnhancedNvdecDecoder, - preferSystemNativeHwDecoder: preferSystemNativeHwDecoder ?? this.preferSystemNativeHwDecoder, - enableIntelLowPowerH264HwEncoder: enableIntelLowPowerH264HwEncoder ?? this.enableIntelLowPowerH264HwEncoder, - enableIntelLowPowerHevcHwEncoder: enableIntelLowPowerHevcHwEncoder ?? this.enableIntelLowPowerHevcHwEncoder, - enableHardwareEncoding: enableHardwareEncoding ?? this.enableHardwareEncoding, + enableDecodingColorDepth10Hevc: + enableDecodingColorDepth10Hevc ?? this.enableDecodingColorDepth10Hevc, + enableDecodingColorDepth10Vp9: + enableDecodingColorDepth10Vp9 ?? this.enableDecodingColorDepth10Vp9, + enableDecodingColorDepth10HevcRext: + enableDecodingColorDepth10HevcRext ?? + this.enableDecodingColorDepth10HevcRext, + enableDecodingColorDepth12HevcRext: + enableDecodingColorDepth12HevcRext ?? + this.enableDecodingColorDepth12HevcRext, + enableEnhancedNvdecDecoder: + enableEnhancedNvdecDecoder ?? this.enableEnhancedNvdecDecoder, + preferSystemNativeHwDecoder: + preferSystemNativeHwDecoder ?? this.preferSystemNativeHwDecoder, + enableIntelLowPowerH264HwEncoder: + enableIntelLowPowerH264HwEncoder ?? + this.enableIntelLowPowerH264HwEncoder, + enableIntelLowPowerHevcHwEncoder: + enableIntelLowPowerHevcHwEncoder ?? + this.enableIntelLowPowerHevcHwEncoder, + enableHardwareEncoding: + enableHardwareEncoding ?? this.enableHardwareEncoding, allowHevcEncoding: allowHevcEncoding ?? this.allowHevcEncoding, allowAv1Encoding: allowAv1Encoding ?? this.allowAv1Encoding, - enableSubtitleExtraction: enableSubtitleExtraction ?? this.enableSubtitleExtraction, - hardwareDecodingCodecs: hardwareDecodingCodecs ?? this.hardwareDecodingCodecs, + enableSubtitleExtraction: + enableSubtitleExtraction ?? this.enableSubtitleExtraction, + hardwareDecodingCodecs: + hardwareDecodingCodecs ?? this.hardwareDecodingCodecs, allowOnDemandMetadataBasedKeyframeExtractionForExtensions: allowOnDemandMetadataBasedKeyframeExtractionForExtensions ?? - this.allowOnDemandMetadataBasedKeyframeExtractionForExtensions, + this.allowOnDemandMetadataBasedKeyframeExtractionForExtensions, ); } @@ -26007,82 +26641,148 @@ extension $EncodingOptionsExtension on EncodingOptions { Wrapped? allowAv1Encoding, Wrapped? enableSubtitleExtraction, Wrapped?>? hardwareDecodingCodecs, - Wrapped?>? allowOnDemandMetadataBasedKeyframeExtractionForExtensions, + Wrapped?>? + allowOnDemandMetadataBasedKeyframeExtractionForExtensions, }) { return EncodingOptions( - encodingThreadCount: (encodingThreadCount != null ? encodingThreadCount.value : this.encodingThreadCount), - transcodingTempPath: (transcodingTempPath != null ? transcodingTempPath.value : this.transcodingTempPath), - fallbackFontPath: (fallbackFontPath != null ? fallbackFontPath.value : this.fallbackFontPath), - enableFallbackFont: (enableFallbackFont != null ? enableFallbackFont.value : this.enableFallbackFont), - enableAudioVbr: (enableAudioVbr != null ? enableAudioVbr.value : this.enableAudioVbr), - downMixAudioBoost: (downMixAudioBoost != null ? downMixAudioBoost.value : this.downMixAudioBoost), - downMixStereoAlgorithm: - (downMixStereoAlgorithm != null ? downMixStereoAlgorithm.value : this.downMixStereoAlgorithm), - maxMuxingQueueSize: (maxMuxingQueueSize != null ? maxMuxingQueueSize.value : this.maxMuxingQueueSize), - enableThrottling: (enableThrottling != null ? enableThrottling.value : this.enableThrottling), - throttleDelaySeconds: (throttleDelaySeconds != null ? throttleDelaySeconds.value : this.throttleDelaySeconds), - enableSegmentDeletion: (enableSegmentDeletion != null ? enableSegmentDeletion.value : this.enableSegmentDeletion), - segmentKeepSeconds: (segmentKeepSeconds != null ? segmentKeepSeconds.value : this.segmentKeepSeconds), - hardwareAccelerationType: - (hardwareAccelerationType != null ? hardwareAccelerationType.value : this.hardwareAccelerationType), - encoderAppPath: (encoderAppPath != null ? encoderAppPath.value : this.encoderAppPath), - encoderAppPathDisplay: (encoderAppPathDisplay != null ? encoderAppPathDisplay.value : this.encoderAppPathDisplay), + encodingThreadCount: (encodingThreadCount != null + ? encodingThreadCount.value + : this.encodingThreadCount), + transcodingTempPath: (transcodingTempPath != null + ? transcodingTempPath.value + : this.transcodingTempPath), + fallbackFontPath: (fallbackFontPath != null + ? fallbackFontPath.value + : this.fallbackFontPath), + enableFallbackFont: (enableFallbackFont != null + ? enableFallbackFont.value + : this.enableFallbackFont), + enableAudioVbr: (enableAudioVbr != null + ? enableAudioVbr.value + : this.enableAudioVbr), + downMixAudioBoost: (downMixAudioBoost != null + ? downMixAudioBoost.value + : this.downMixAudioBoost), + downMixStereoAlgorithm: (downMixStereoAlgorithm != null + ? downMixStereoAlgorithm.value + : this.downMixStereoAlgorithm), + maxMuxingQueueSize: (maxMuxingQueueSize != null + ? maxMuxingQueueSize.value + : this.maxMuxingQueueSize), + enableThrottling: (enableThrottling != null + ? enableThrottling.value + : this.enableThrottling), + throttleDelaySeconds: (throttleDelaySeconds != null + ? throttleDelaySeconds.value + : this.throttleDelaySeconds), + enableSegmentDeletion: (enableSegmentDeletion != null + ? enableSegmentDeletion.value + : this.enableSegmentDeletion), + segmentKeepSeconds: (segmentKeepSeconds != null + ? segmentKeepSeconds.value + : this.segmentKeepSeconds), + hardwareAccelerationType: (hardwareAccelerationType != null + ? hardwareAccelerationType.value + : this.hardwareAccelerationType), + encoderAppPath: (encoderAppPath != null + ? encoderAppPath.value + : this.encoderAppPath), + encoderAppPathDisplay: (encoderAppPathDisplay != null + ? encoderAppPathDisplay.value + : this.encoderAppPathDisplay), vaapiDevice: (vaapiDevice != null ? vaapiDevice.value : this.vaapiDevice), qsvDevice: (qsvDevice != null ? qsvDevice.value : this.qsvDevice), - enableTonemapping: (enableTonemapping != null ? enableTonemapping.value : this.enableTonemapping), - enableVppTonemapping: (enableVppTonemapping != null ? enableVppTonemapping.value : this.enableVppTonemapping), + enableTonemapping: (enableTonemapping != null + ? enableTonemapping.value + : this.enableTonemapping), + enableVppTonemapping: (enableVppTonemapping != null + ? enableVppTonemapping.value + : this.enableVppTonemapping), enableVideoToolboxTonemapping: (enableVideoToolboxTonemapping != null ? enableVideoToolboxTonemapping.value : this.enableVideoToolboxTonemapping), - tonemappingAlgorithm: (tonemappingAlgorithm != null ? tonemappingAlgorithm.value : this.tonemappingAlgorithm), - tonemappingMode: (tonemappingMode != null ? tonemappingMode.value : this.tonemappingMode), - tonemappingRange: (tonemappingRange != null ? tonemappingRange.value : this.tonemappingRange), - tonemappingDesat: (tonemappingDesat != null ? tonemappingDesat.value : this.tonemappingDesat), - tonemappingPeak: (tonemappingPeak != null ? tonemappingPeak.value : this.tonemappingPeak), - tonemappingParam: (tonemappingParam != null ? tonemappingParam.value : this.tonemappingParam), - vppTonemappingBrightness: - (vppTonemappingBrightness != null ? vppTonemappingBrightness.value : this.vppTonemappingBrightness), - vppTonemappingContrast: - (vppTonemappingContrast != null ? vppTonemappingContrast.value : this.vppTonemappingContrast), + tonemappingAlgorithm: (tonemappingAlgorithm != null + ? tonemappingAlgorithm.value + : this.tonemappingAlgorithm), + tonemappingMode: (tonemappingMode != null + ? tonemappingMode.value + : this.tonemappingMode), + tonemappingRange: (tonemappingRange != null + ? tonemappingRange.value + : this.tonemappingRange), + tonemappingDesat: (tonemappingDesat != null + ? tonemappingDesat.value + : this.tonemappingDesat), + tonemappingPeak: (tonemappingPeak != null + ? tonemappingPeak.value + : this.tonemappingPeak), + tonemappingParam: (tonemappingParam != null + ? tonemappingParam.value + : this.tonemappingParam), + vppTonemappingBrightness: (vppTonemappingBrightness != null + ? vppTonemappingBrightness.value + : this.vppTonemappingBrightness), + vppTonemappingContrast: (vppTonemappingContrast != null + ? vppTonemappingContrast.value + : this.vppTonemappingContrast), h264Crf: (h264Crf != null ? h264Crf.value : this.h264Crf), h265Crf: (h265Crf != null ? h265Crf.value : this.h265Crf), - encoderPreset: (encoderPreset != null ? encoderPreset.value : this.encoderPreset), - deinterlaceDoubleRate: (deinterlaceDoubleRate != null ? deinterlaceDoubleRate.value : this.deinterlaceDoubleRate), - deinterlaceMethod: (deinterlaceMethod != null ? deinterlaceMethod.value : this.deinterlaceMethod), + encoderPreset: (encoderPreset != null + ? encoderPreset.value + : this.encoderPreset), + deinterlaceDoubleRate: (deinterlaceDoubleRate != null + ? deinterlaceDoubleRate.value + : this.deinterlaceDoubleRate), + deinterlaceMethod: (deinterlaceMethod != null + ? deinterlaceMethod.value + : this.deinterlaceMethod), enableDecodingColorDepth10Hevc: (enableDecodingColorDepth10Hevc != null ? enableDecodingColorDepth10Hevc.value : this.enableDecodingColorDepth10Hevc), enableDecodingColorDepth10Vp9: (enableDecodingColorDepth10Vp9 != null ? enableDecodingColorDepth10Vp9.value : this.enableDecodingColorDepth10Vp9), - enableDecodingColorDepth10HevcRext: (enableDecodingColorDepth10HevcRext != null + enableDecodingColorDepth10HevcRext: + (enableDecodingColorDepth10HevcRext != null ? enableDecodingColorDepth10HevcRext.value : this.enableDecodingColorDepth10HevcRext), - enableDecodingColorDepth12HevcRext: (enableDecodingColorDepth12HevcRext != null + enableDecodingColorDepth12HevcRext: + (enableDecodingColorDepth12HevcRext != null ? enableDecodingColorDepth12HevcRext.value : this.enableDecodingColorDepth12HevcRext), - enableEnhancedNvdecDecoder: - (enableEnhancedNvdecDecoder != null ? enableEnhancedNvdecDecoder.value : this.enableEnhancedNvdecDecoder), - preferSystemNativeHwDecoder: - (preferSystemNativeHwDecoder != null ? preferSystemNativeHwDecoder.value : this.preferSystemNativeHwDecoder), - enableIntelLowPowerH264HwEncoder: (enableIntelLowPowerH264HwEncoder != null + enableEnhancedNvdecDecoder: (enableEnhancedNvdecDecoder != null + ? enableEnhancedNvdecDecoder.value + : this.enableEnhancedNvdecDecoder), + preferSystemNativeHwDecoder: (preferSystemNativeHwDecoder != null + ? preferSystemNativeHwDecoder.value + : this.preferSystemNativeHwDecoder), + enableIntelLowPowerH264HwEncoder: + (enableIntelLowPowerH264HwEncoder != null ? enableIntelLowPowerH264HwEncoder.value : this.enableIntelLowPowerH264HwEncoder), - enableIntelLowPowerHevcHwEncoder: (enableIntelLowPowerHevcHwEncoder != null + enableIntelLowPowerHevcHwEncoder: + (enableIntelLowPowerHevcHwEncoder != null ? enableIntelLowPowerHevcHwEncoder.value : this.enableIntelLowPowerHevcHwEncoder), - enableHardwareEncoding: - (enableHardwareEncoding != null ? enableHardwareEncoding.value : this.enableHardwareEncoding), - allowHevcEncoding: (allowHevcEncoding != null ? allowHevcEncoding.value : this.allowHevcEncoding), - allowAv1Encoding: (allowAv1Encoding != null ? allowAv1Encoding.value : this.allowAv1Encoding), - enableSubtitleExtraction: - (enableSubtitleExtraction != null ? enableSubtitleExtraction.value : this.enableSubtitleExtraction), - hardwareDecodingCodecs: - (hardwareDecodingCodecs != null ? hardwareDecodingCodecs.value : this.hardwareDecodingCodecs), + enableHardwareEncoding: (enableHardwareEncoding != null + ? enableHardwareEncoding.value + : this.enableHardwareEncoding), + allowHevcEncoding: (allowHevcEncoding != null + ? allowHevcEncoding.value + : this.allowHevcEncoding), + allowAv1Encoding: (allowAv1Encoding != null + ? allowAv1Encoding.value + : this.allowAv1Encoding), + enableSubtitleExtraction: (enableSubtitleExtraction != null + ? enableSubtitleExtraction.value + : this.enableSubtitleExtraction), + hardwareDecodingCodecs: (hardwareDecodingCodecs != null + ? hardwareDecodingCodecs.value + : this.hardwareDecodingCodecs), allowOnDemandMetadataBasedKeyframeExtractionForExtensions: (allowOnDemandMetadataBasedKeyframeExtractionForExtensions != null - ? allowOnDemandMetadataBasedKeyframeExtractionForExtensions.value - : this.allowOnDemandMetadataBasedKeyframeExtractionForExtensions), + ? allowOnDemandMetadataBasedKeyframeExtractionForExtensions.value + : this.allowOnDemandMetadataBasedKeyframeExtractionForExtensions), ); } } @@ -26091,7 +26791,8 @@ extension $EncodingOptionsExtension on EncodingOptions { class EndPointInfo { const EndPointInfo({this.isLocal, this.isInNetwork}); - factory EndPointInfo.fromJson(Map json) => _$EndPointInfoFromJson(json); + factory EndPointInfo.fromJson(Map json) => + _$EndPointInfoFromJson(json); static const toJsonFactory = _$EndPointInfoToJson; Map toJson() => _$EndPointInfoToJson(this); @@ -26151,7 +26852,8 @@ extension $EndPointInfoExtension on EndPointInfo { class ExternalIdInfo { const ExternalIdInfo({this.name, this.key, this.type}); - factory ExternalIdInfo.fromJson(Map json) => _$ExternalIdInfoFromJson(json); + factory ExternalIdInfo.fromJson(Map json) => + _$ExternalIdInfoFromJson(json); static const toJsonFactory = _$ExternalIdInfoToJson; Map toJson() => _$ExternalIdInfoToJson(this); @@ -26173,9 +26875,12 @@ class ExternalIdInfo { bool operator ==(Object other) { return identical(this, other) || (other is ExternalIdInfo && - (identical(other.name, name) || const DeepCollectionEquality().equals(other.name, name)) && - (identical(other.key, key) || const DeepCollectionEquality().equals(other.key, key)) && - (identical(other.type, type) || const DeepCollectionEquality().equals(other.type, type))); + (identical(other.name, name) || + const DeepCollectionEquality().equals(other.name, name)) && + (identical(other.key, key) || + const DeepCollectionEquality().equals(other.key, key)) && + (identical(other.type, type) || + const DeepCollectionEquality().equals(other.type, type))); } @override @@ -26219,7 +26924,8 @@ extension $ExternalIdInfoExtension on ExternalIdInfo { class ExternalUrl { const ExternalUrl({this.name, this.url}); - factory ExternalUrl.fromJson(Map json) => _$ExternalUrlFromJson(json); + factory ExternalUrl.fromJson(Map json) => + _$ExternalUrlFromJson(json); static const toJsonFactory = _$ExternalUrlToJson; Map toJson() => _$ExternalUrlToJson(this); @@ -26234,8 +26940,10 @@ class ExternalUrl { bool operator ==(Object other) { return identical(this, other) || (other is ExternalUrl && - (identical(other.name, name) || const DeepCollectionEquality().equals(other.name, name)) && - (identical(other.url, url) || const DeepCollectionEquality().equals(other.url, url))); + (identical(other.name, name) || + const DeepCollectionEquality().equals(other.name, name)) && + (identical(other.url, url) || + const DeepCollectionEquality().equals(other.url, url))); } @override @@ -26243,7 +26951,9 @@ class ExternalUrl { @override int get hashCode => - const DeepCollectionEquality().hash(name) ^ const DeepCollectionEquality().hash(url) ^ runtimeType.hashCode; + const DeepCollectionEquality().hash(name) ^ + const DeepCollectionEquality().hash(url) ^ + runtimeType.hashCode; } extension $ExternalUrlExtension on ExternalUrl { @@ -26263,7 +26973,8 @@ extension $ExternalUrlExtension on ExternalUrl { class FileSystemEntryInfo { const FileSystemEntryInfo({this.name, this.path, this.type}); - factory FileSystemEntryInfo.fromJson(Map json) => _$FileSystemEntryInfoFromJson(json); + factory FileSystemEntryInfo.fromJson(Map json) => + _$FileSystemEntryInfoFromJson(json); static const toJsonFactory = _$FileSystemEntryInfoToJson; Map toJson() => _$FileSystemEntryInfoToJson(this); @@ -26285,9 +26996,12 @@ class FileSystemEntryInfo { bool operator ==(Object other) { return identical(this, other) || (other is FileSystemEntryInfo && - (identical(other.name, name) || const DeepCollectionEquality().equals(other.name, name)) && - (identical(other.path, path) || const DeepCollectionEquality().equals(other.path, path)) && - (identical(other.type, type) || const DeepCollectionEquality().equals(other.type, type))); + (identical(other.name, name) || + const DeepCollectionEquality().equals(other.name, name)) && + (identical(other.path, path) || + const DeepCollectionEquality().equals(other.path, path)) && + (identical(other.type, type) || + const DeepCollectionEquality().equals(other.type, type))); } @override @@ -26337,7 +27051,8 @@ class FolderStorageDto { this.deviceId, }); - factory FolderStorageDto.fromJson(Map json) => _$FolderStorageDtoFromJson(json); + factory FolderStorageDto.fromJson(Map json) => + _$FolderStorageDtoFromJson(json); static const toJsonFactory = _$FolderStorageDtoToJson; Map toJson() => _$FolderStorageDtoToJson(this); @@ -26358,7 +27073,8 @@ class FolderStorageDto { bool operator ==(Object other) { return identical(this, other) || (other is FolderStorageDto && - (identical(other.path, path) || const DeepCollectionEquality().equals(other.path, path)) && + (identical(other.path, path) || + const DeepCollectionEquality().equals(other.path, path)) && (identical(other.freeSpace, freeSpace) || const DeepCollectionEquality().equals( other.freeSpace, @@ -26432,7 +27148,8 @@ extension $FolderStorageDtoExtension on FolderStorageDto { class FontFile { const FontFile({this.name, this.size, this.dateCreated, this.dateModified}); - factory FontFile.fromJson(Map json) => _$FontFileFromJson(json); + factory FontFile.fromJson(Map json) => + _$FontFileFromJson(json); static const toJsonFactory = _$FontFileToJson; Map toJson() => _$FontFileToJson(this); @@ -26451,8 +27168,10 @@ class FontFile { bool operator ==(Object other) { return identical(this, other) || (other is FontFile && - (identical(other.name, name) || const DeepCollectionEquality().equals(other.name, name)) && - (identical(other.size, size) || const DeepCollectionEquality().equals(other.size, size)) && + (identical(other.name, name) || + const DeepCollectionEquality().equals(other.name, name)) && + (identical(other.size, size) || + const DeepCollectionEquality().equals(other.size, size)) && (identical(other.dateCreated, dateCreated) || const DeepCollectionEquality().equals( other.dateCreated, @@ -26502,7 +27221,9 @@ extension $FontFileExtension on FontFile { name: (name != null ? name.value : this.name), size: (size != null ? size.value : this.size), dateCreated: (dateCreated != null ? dateCreated.value : this.dateCreated), - dateModified: (dateModified != null ? dateModified.value : this.dateModified), + dateModified: (dateModified != null + ? dateModified.value + : this.dateModified), ); } } @@ -26511,7 +27232,8 @@ extension $FontFileExtension on FontFile { class ForceKeepAliveMessage { const ForceKeepAliveMessage({this.data, this.messageId, this.messageType}); - factory ForceKeepAliveMessage.fromJson(Map json) => _$ForceKeepAliveMessageFromJson(json); + factory ForceKeepAliveMessage.fromJson(Map json) => + _$ForceKeepAliveMessageFromJson(json); static const toJsonFactory = _$ForceKeepAliveMessageToJson; Map toJson() => _$ForceKeepAliveMessageToJson(this); @@ -26527,7 +27249,8 @@ class ForceKeepAliveMessage { fromJson: sessionMessageTypeMessageTypeNullableFromJson, ) final enums.SessionMessageType? messageType; - static enums.SessionMessageType? sessionMessageTypeMessageTypeNullableFromJson(Object? value) => + static enums.SessionMessageType? + sessionMessageTypeMessageTypeNullableFromJson(Object? value) => sessionMessageTypeNullableFromJson( value, enums.SessionMessageType.forcekeepalive, @@ -26539,7 +27262,8 @@ class ForceKeepAliveMessage { bool operator ==(Object other) { return identical(this, other) || (other is ForceKeepAliveMessage && - (identical(other.data, data) || const DeepCollectionEquality().equals(other.data, data)) && + (identical(other.data, data) || + const DeepCollectionEquality().equals(other.data, data)) && (identical(other.messageId, messageId) || const DeepCollectionEquality().equals( other.messageId, @@ -26593,7 +27317,8 @@ extension $ForceKeepAliveMessageExtension on ForceKeepAliveMessage { class ForgotPasswordDto { const ForgotPasswordDto({required this.enteredUsername}); - factory ForgotPasswordDto.fromJson(Map json) => _$ForgotPasswordDtoFromJson(json); + factory ForgotPasswordDto.fromJson(Map json) => + _$ForgotPasswordDtoFromJson(json); static const toJsonFactory = _$ForgotPasswordDtoToJson; Map toJson() => _$ForgotPasswordDtoToJson(this); @@ -26617,7 +27342,9 @@ class ForgotPasswordDto { String toString() => jsonEncode(this); @override - int get hashCode => const DeepCollectionEquality().hash(enteredUsername) ^ runtimeType.hashCode; + int get hashCode => + const DeepCollectionEquality().hash(enteredUsername) ^ + runtimeType.hashCode; } extension $ForgotPasswordDtoExtension on ForgotPasswordDto { @@ -26629,7 +27356,9 @@ extension $ForgotPasswordDtoExtension on ForgotPasswordDto { ForgotPasswordDto copyWithWrapped({Wrapped? enteredUsername}) { return ForgotPasswordDto( - enteredUsername: (enteredUsername != null ? enteredUsername.value : this.enteredUsername), + enteredUsername: (enteredUsername != null + ? enteredUsername.value + : this.enteredUsername), ); } } @@ -26638,7 +27367,8 @@ extension $ForgotPasswordDtoExtension on ForgotPasswordDto { class ForgotPasswordPinDto { const ForgotPasswordPinDto({required this.pin}); - factory ForgotPasswordPinDto.fromJson(Map json) => _$ForgotPasswordPinDtoFromJson(json); + factory ForgotPasswordPinDto.fromJson(Map json) => + _$ForgotPasswordPinDtoFromJson(json); static const toJsonFactory = _$ForgotPasswordPinDtoToJson; Map toJson() => _$ForgotPasswordPinDtoToJson(this); @@ -26651,14 +27381,16 @@ class ForgotPasswordPinDto { bool operator ==(Object other) { return identical(this, other) || (other is ForgotPasswordPinDto && - (identical(other.pin, pin) || const DeepCollectionEquality().equals(other.pin, pin))); + (identical(other.pin, pin) || + const DeepCollectionEquality().equals(other.pin, pin))); } @override String toString() => jsonEncode(this); @override - int get hashCode => const DeepCollectionEquality().hash(pin) ^ runtimeType.hashCode; + int get hashCode => + const DeepCollectionEquality().hash(pin) ^ runtimeType.hashCode; } extension $ForgotPasswordPinDtoExtension on ForgotPasswordPinDto { @@ -26679,7 +27411,8 @@ class ForgotPasswordResult { this.pinExpirationDate, }); - factory ForgotPasswordResult.fromJson(Map json) => _$ForgotPasswordResultFromJson(json); + factory ForgotPasswordResult.fromJson(Map json) => + _$ForgotPasswordResultFromJson(json); static const toJsonFactory = _$ForgotPasswordResultToJson; Map toJson() => _$ForgotPasswordResultToJson(this); @@ -26701,7 +27434,8 @@ class ForgotPasswordResult { bool operator ==(Object other) { return identical(this, other) || (other is ForgotPasswordResult && - (identical(other.action, action) || const DeepCollectionEquality().equals(other.action, action)) && + (identical(other.action, action) || + const DeepCollectionEquality().equals(other.action, action)) && (identical(other.pinFile, pinFile) || const DeepCollectionEquality().equals( other.pinFile, @@ -26746,7 +27480,9 @@ extension $ForgotPasswordResultExtension on ForgotPasswordResult { return ForgotPasswordResult( action: (action != null ? action.value : this.action), pinFile: (pinFile != null ? pinFile.value : this.pinFile), - pinExpirationDate: (pinExpirationDate != null ? pinExpirationDate.value : this.pinExpirationDate), + pinExpirationDate: (pinExpirationDate != null + ? pinExpirationDate.value + : this.pinExpirationDate), ); } } @@ -26755,7 +27491,8 @@ extension $ForgotPasswordResultExtension on ForgotPasswordResult { class GeneralCommand { const GeneralCommand({this.name, this.controllingUserId, this.arguments}); - factory GeneralCommand.fromJson(Map json) => _$GeneralCommandFromJson(json); + factory GeneralCommand.fromJson(Map json) => + _$GeneralCommandFromJson(json); static const toJsonFactory = _$GeneralCommandToJson; Map toJson() => _$GeneralCommandToJson(this); @@ -26777,7 +27514,8 @@ class GeneralCommand { bool operator ==(Object other) { return identical(this, other) || (other is GeneralCommand && - (identical(other.name, name) || const DeepCollectionEquality().equals(other.name, name)) && + (identical(other.name, name) || + const DeepCollectionEquality().equals(other.name, name)) && (identical(other.controllingUserId, controllingUserId) || const DeepCollectionEquality().equals( other.controllingUserId, @@ -26821,7 +27559,9 @@ extension $GeneralCommandExtension on GeneralCommand { }) { return GeneralCommand( name: (name != null ? name.value : this.name), - controllingUserId: (controllingUserId != null ? controllingUserId.value : this.controllingUserId), + controllingUserId: (controllingUserId != null + ? controllingUserId.value + : this.controllingUserId), arguments: (arguments != null ? arguments.value : this.arguments), ); } @@ -26831,7 +27571,8 @@ extension $GeneralCommandExtension on GeneralCommand { class GeneralCommandMessage { const GeneralCommandMessage({this.data, this.messageId, this.messageType}); - factory GeneralCommandMessage.fromJson(Map json) => _$GeneralCommandMessageFromJson(json); + factory GeneralCommandMessage.fromJson(Map json) => + _$GeneralCommandMessageFromJson(json); static const toJsonFactory = _$GeneralCommandMessageToJson; Map toJson() => _$GeneralCommandMessageToJson(this); @@ -26847,7 +27588,8 @@ class GeneralCommandMessage { fromJson: sessionMessageTypeMessageTypeNullableFromJson, ) final enums.SessionMessageType? messageType; - static enums.SessionMessageType? sessionMessageTypeMessageTypeNullableFromJson(Object? value) => + static enums.SessionMessageType? + sessionMessageTypeMessageTypeNullableFromJson(Object? value) => sessionMessageTypeNullableFromJson( value, enums.SessionMessageType.generalcommand, @@ -26859,7 +27601,8 @@ class GeneralCommandMessage { bool operator ==(Object other) { return identical(this, other) || (other is GeneralCommandMessage && - (identical(other.data, data) || const DeepCollectionEquality().equals(other.data, data)) && + (identical(other.data, data) || + const DeepCollectionEquality().equals(other.data, data)) && (identical(other.messageId, messageId) || const DeepCollectionEquality().equals( other.messageId, @@ -26941,7 +27684,8 @@ class GetProgramsDto { this.fields, }); - factory GetProgramsDto.fromJson(Map json) => _$GetProgramsDtoFromJson(json); + factory GetProgramsDto.fromJson(Map json) => + _$GetProgramsDtoFromJson(json); static const toJsonFactory = _$GetProgramsDtoToJson; Map toJson() => _$GetProgramsDtoToJson(this); @@ -27035,7 +27779,8 @@ class GetProgramsDto { other.channelIds, channelIds, )) && - (identical(other.userId, userId) || const DeepCollectionEquality().equals(other.userId, userId)) && + (identical(other.userId, userId) || + const DeepCollectionEquality().equals(other.userId, userId)) && (identical(other.minStartDate, minStartDate) || const DeepCollectionEquality().equals( other.minStartDate, @@ -27076,8 +27821,10 @@ class GetProgramsDto { other.isSeries, isSeries, )) && - (identical(other.isNews, isNews) || const DeepCollectionEquality().equals(other.isNews, isNews)) && - (identical(other.isKids, isKids) || const DeepCollectionEquality().equals(other.isKids, isKids)) && + (identical(other.isNews, isNews) || + const DeepCollectionEquality().equals(other.isNews, isNews)) && + (identical(other.isKids, isKids) || + const DeepCollectionEquality().equals(other.isKids, isKids)) && (identical(other.isSports, isSports) || const DeepCollectionEquality().equals( other.isSports, @@ -27088,14 +27835,17 @@ class GetProgramsDto { other.startIndex, startIndex, )) && - (identical(other.limit, limit) || const DeepCollectionEquality().equals(other.limit, limit)) && - (identical(other.sortBy, sortBy) || const DeepCollectionEquality().equals(other.sortBy, sortBy)) && + (identical(other.limit, limit) || + const DeepCollectionEquality().equals(other.limit, limit)) && + (identical(other.sortBy, sortBy) || + const DeepCollectionEquality().equals(other.sortBy, sortBy)) && (identical(other.sortOrder, sortOrder) || const DeepCollectionEquality().equals( other.sortOrder, sortOrder, )) && - (identical(other.genres, genres) || const DeepCollectionEquality().equals(other.genres, genres)) && + (identical(other.genres, genres) || + const DeepCollectionEquality().equals(other.genres, genres)) && (identical(other.genreIds, genreIds) || const DeepCollectionEquality().equals( other.genreIds, @@ -27136,7 +27886,8 @@ class GetProgramsDto { other.librarySeriesId, librarySeriesId, )) && - (identical(other.fields, fields) || const DeepCollectionEquality().equals(other.fields, fields))); + (identical(other.fields, fields) || + const DeepCollectionEquality().equals(other.fields, fields))); } @override @@ -27225,7 +27976,8 @@ extension $GetProgramsDtoExtension on GetProgramsDto { genres: genres ?? this.genres, genreIds: genreIds ?? this.genreIds, enableImages: enableImages ?? this.enableImages, - enableTotalRecordCount: enableTotalRecordCount ?? this.enableTotalRecordCount, + enableTotalRecordCount: + enableTotalRecordCount ?? this.enableTotalRecordCount, imageTypeLimit: imageTypeLimit ?? this.imageTypeLimit, enableImageTypes: enableImageTypes ?? this.enableImageTypes, enableUserData: enableUserData ?? this.enableUserData, @@ -27267,10 +28019,14 @@ extension $GetProgramsDtoExtension on GetProgramsDto { return GetProgramsDto( channelIds: (channelIds != null ? channelIds.value : this.channelIds), userId: (userId != null ? userId.value : this.userId), - minStartDate: (minStartDate != null ? minStartDate.value : this.minStartDate), + minStartDate: (minStartDate != null + ? minStartDate.value + : this.minStartDate), hasAired: (hasAired != null ? hasAired.value : this.hasAired), isAiring: (isAiring != null ? isAiring.value : this.isAiring), - maxStartDate: (maxStartDate != null ? maxStartDate.value : this.maxStartDate), + maxStartDate: (maxStartDate != null + ? maxStartDate.value + : this.maxStartDate), minEndDate: (minEndDate != null ? minEndDate.value : this.minEndDate), maxEndDate: (maxEndDate != null ? maxEndDate.value : this.maxEndDate), isMovie: (isMovie != null ? isMovie.value : this.isMovie), @@ -27284,14 +28040,27 @@ extension $GetProgramsDtoExtension on GetProgramsDto { sortOrder: (sortOrder != null ? sortOrder.value : this.sortOrder), genres: (genres != null ? genres.value : this.genres), genreIds: (genreIds != null ? genreIds.value : this.genreIds), - enableImages: (enableImages != null ? enableImages.value : this.enableImages), - enableTotalRecordCount: - (enableTotalRecordCount != null ? enableTotalRecordCount.value : this.enableTotalRecordCount), - imageTypeLimit: (imageTypeLimit != null ? imageTypeLimit.value : this.imageTypeLimit), - enableImageTypes: (enableImageTypes != null ? enableImageTypes.value : this.enableImageTypes), - enableUserData: (enableUserData != null ? enableUserData.value : this.enableUserData), - seriesTimerId: (seriesTimerId != null ? seriesTimerId.value : this.seriesTimerId), - librarySeriesId: (librarySeriesId != null ? librarySeriesId.value : this.librarySeriesId), + enableImages: (enableImages != null + ? enableImages.value + : this.enableImages), + enableTotalRecordCount: (enableTotalRecordCount != null + ? enableTotalRecordCount.value + : this.enableTotalRecordCount), + imageTypeLimit: (imageTypeLimit != null + ? imageTypeLimit.value + : this.imageTypeLimit), + enableImageTypes: (enableImageTypes != null + ? enableImageTypes.value + : this.enableImageTypes), + enableUserData: (enableUserData != null + ? enableUserData.value + : this.enableUserData), + seriesTimerId: (seriesTimerId != null + ? seriesTimerId.value + : this.seriesTimerId), + librarySeriesId: (librarySeriesId != null + ? librarySeriesId.value + : this.librarySeriesId), fields: (fields != null ? fields.value : this.fields), ); } @@ -27307,7 +28076,8 @@ class GroupInfoDto { this.lastUpdatedAt, }); - factory GroupInfoDto.fromJson(Map json) => _$GroupInfoDtoFromJson(json); + factory GroupInfoDto.fromJson(Map json) => + _$GroupInfoDtoFromJson(json); static const toJsonFactory = _$GroupInfoDtoToJson; Map toJson() => _$GroupInfoDtoToJson(this); @@ -27343,7 +28113,8 @@ class GroupInfoDto { other.groupName, groupName, )) && - (identical(other.state, state) || const DeepCollectionEquality().equals(other.state, state)) && + (identical(other.state, state) || + const DeepCollectionEquality().equals(other.state, state)) && (identical(other.participants, participants) || const DeepCollectionEquality().equals( other.participants, @@ -27397,8 +28168,12 @@ extension $GroupInfoDtoExtension on GroupInfoDto { groupId: (groupId != null ? groupId.value : this.groupId), groupName: (groupName != null ? groupName.value : this.groupName), state: (state != null ? state.value : this.state), - participants: (participants != null ? participants.value : this.participants), - lastUpdatedAt: (lastUpdatedAt != null ? lastUpdatedAt.value : this.lastUpdatedAt), + participants: (participants != null + ? participants.value + : this.participants), + lastUpdatedAt: (lastUpdatedAt != null + ? lastUpdatedAt.value + : this.lastUpdatedAt), ); } } @@ -27407,7 +28182,8 @@ extension $GroupInfoDtoExtension on GroupInfoDto { class GroupStateUpdate { const GroupStateUpdate({this.state, this.reason}); - factory GroupStateUpdate.fromJson(Map json) => _$GroupStateUpdateFromJson(json); + factory GroupStateUpdate.fromJson(Map json) => + _$GroupStateUpdateFromJson(json); static const toJsonFactory = _$GroupStateUpdateToJson; Map toJson() => _$GroupStateUpdateToJson(this); @@ -27432,8 +28208,10 @@ class GroupStateUpdate { bool operator ==(Object other) { return identical(this, other) || (other is GroupStateUpdate && - (identical(other.state, state) || const DeepCollectionEquality().equals(other.state, state)) && - (identical(other.reason, reason) || const DeepCollectionEquality().equals(other.reason, reason))); + (identical(other.state, state) || + const DeepCollectionEquality().equals(other.state, state)) && + (identical(other.reason, reason) || + const DeepCollectionEquality().equals(other.reason, reason))); } @override @@ -27441,7 +28219,9 @@ class GroupStateUpdate { @override int get hashCode => - const DeepCollectionEquality().hash(state) ^ const DeepCollectionEquality().hash(reason) ^ runtimeType.hashCode; + const DeepCollectionEquality().hash(state) ^ + const DeepCollectionEquality().hash(reason) ^ + runtimeType.hashCode; } extension $GroupStateUpdateExtension on GroupStateUpdate { @@ -27470,7 +28250,8 @@ extension $GroupStateUpdateExtension on GroupStateUpdate { class GroupUpdate { const GroupUpdate(); - factory GroupUpdate.fromJson(Map json) => _$GroupUpdateFromJson(json); + factory GroupUpdate.fromJson(Map json) => + _$GroupUpdateFromJson(json); static const toJsonFactory = _$GroupUpdateToJson; Map toJson() => _$GroupUpdateToJson(this); @@ -27488,7 +28269,8 @@ class GroupUpdate { class GuideInfo { const GuideInfo({this.startDate, this.endDate}); - factory GuideInfo.fromJson(Map json) => _$GuideInfoFromJson(json); + factory GuideInfo.fromJson(Map json) => + _$GuideInfoFromJson(json); static const toJsonFactory = _$GuideInfoToJson; Map toJson() => _$GuideInfoToJson(this); @@ -27508,7 +28290,8 @@ class GuideInfo { other.startDate, startDate, )) && - (identical(other.endDate, endDate) || const DeepCollectionEquality().equals(other.endDate, endDate))); + (identical(other.endDate, endDate) || + const DeepCollectionEquality().equals(other.endDate, endDate))); } @override @@ -27544,7 +28327,8 @@ extension $GuideInfoExtension on GuideInfo { class IgnoreWaitRequestDto { const IgnoreWaitRequestDto({this.ignoreWait}); - factory IgnoreWaitRequestDto.fromJson(Map json) => _$IgnoreWaitRequestDtoFromJson(json); + factory IgnoreWaitRequestDto.fromJson(Map json) => + _$IgnoreWaitRequestDtoFromJson(json); static const toJsonFactory = _$IgnoreWaitRequestDtoToJson; Map toJson() => _$IgnoreWaitRequestDtoToJson(this); @@ -27568,7 +28352,8 @@ class IgnoreWaitRequestDto { String toString() => jsonEncode(this); @override - int get hashCode => const DeepCollectionEquality().hash(ignoreWait) ^ runtimeType.hashCode; + int get hashCode => + const DeepCollectionEquality().hash(ignoreWait) ^ runtimeType.hashCode; } extension $IgnoreWaitRequestDtoExtension on IgnoreWaitRequestDto { @@ -27596,7 +28381,8 @@ class ImageInfo { this.size, }); - factory ImageInfo.fromJson(Map json) => _$ImageInfoFromJson(json); + factory ImageInfo.fromJson(Map json) => + _$ImageInfoFromJson(json); static const toJsonFactory = _$ImageInfoToJson; Map toJson() => _$ImageInfoToJson(this); @@ -27643,15 +28429,19 @@ class ImageInfo { other.imageTag, imageTag, )) && - (identical(other.path, path) || const DeepCollectionEquality().equals(other.path, path)) && + (identical(other.path, path) || + const DeepCollectionEquality().equals(other.path, path)) && (identical(other.blurHash, blurHash) || const DeepCollectionEquality().equals( other.blurHash, blurHash, )) && - (identical(other.height, height) || const DeepCollectionEquality().equals(other.height, height)) && - (identical(other.width, width) || const DeepCollectionEquality().equals(other.width, width)) && - (identical(other.size, size) || const DeepCollectionEquality().equals(other.size, size))); + (identical(other.height, height) || + const DeepCollectionEquality().equals(other.height, height)) && + (identical(other.width, width) || + const DeepCollectionEquality().equals(other.width, width)) && + (identical(other.size, size) || + const DeepCollectionEquality().equals(other.size, size))); } @override @@ -27720,7 +28510,8 @@ extension $ImageInfoExtension on ImageInfo { class ImageOption { const ImageOption({this.type, this.limit, this.minWidth}); - factory ImageOption.fromJson(Map json) => _$ImageOptionFromJson(json); + factory ImageOption.fromJson(Map json) => + _$ImageOptionFromJson(json); static const toJsonFactory = _$ImageOptionToJson; Map toJson() => _$ImageOptionToJson(this); @@ -27742,8 +28533,10 @@ class ImageOption { bool operator ==(Object other) { return identical(this, other) || (other is ImageOption && - (identical(other.type, type) || const DeepCollectionEquality().equals(other.type, type)) && - (identical(other.limit, limit) || const DeepCollectionEquality().equals(other.limit, limit)) && + (identical(other.type, type) || + const DeepCollectionEquality().equals(other.type, type)) && + (identical(other.limit, limit) || + const DeepCollectionEquality().equals(other.limit, limit)) && (identical(other.minWidth, minWidth) || const DeepCollectionEquality().equals( other.minWidth, @@ -27788,7 +28581,8 @@ extension $ImageOptionExtension on ImageOption { class ImageProviderInfo { const ImageProviderInfo({this.name, this.supportedImages}); - factory ImageProviderInfo.fromJson(Map json) => _$ImageProviderInfoFromJson(json); + factory ImageProviderInfo.fromJson(Map json) => + _$ImageProviderInfoFromJson(json); static const toJsonFactory = _$ImageProviderInfoToJson; Map toJson() => _$ImageProviderInfoToJson(this); @@ -27808,7 +28602,8 @@ class ImageProviderInfo { bool operator ==(Object other) { return identical(this, other) || (other is ImageProviderInfo && - (identical(other.name, name) || const DeepCollectionEquality().equals(other.name, name)) && + (identical(other.name, name) || + const DeepCollectionEquality().equals(other.name, name)) && (identical(other.supportedImages, supportedImages) || const DeepCollectionEquality().equals( other.supportedImages, @@ -27843,7 +28638,9 @@ extension $ImageProviderInfoExtension on ImageProviderInfo { }) { return ImageProviderInfo( name: (name != null ? name.value : this.name), - supportedImages: (supportedImages != null ? supportedImages.value : this.supportedImages), + supportedImages: (supportedImages != null + ? supportedImages.value + : this.supportedImages), ); } } @@ -27852,7 +28649,8 @@ extension $ImageProviderInfoExtension on ImageProviderInfo { class InboundKeepAliveMessage { const InboundKeepAliveMessage({this.messageType}); - factory InboundKeepAliveMessage.fromJson(Map json) => _$InboundKeepAliveMessageFromJson(json); + factory InboundKeepAliveMessage.fromJson(Map json) => + _$InboundKeepAliveMessageFromJson(json); static const toJsonFactory = _$InboundKeepAliveMessageToJson; Map toJson() => _$InboundKeepAliveMessageToJson(this); @@ -27864,7 +28662,8 @@ class InboundKeepAliveMessage { fromJson: sessionMessageTypeMessageTypeNullableFromJson, ) final enums.SessionMessageType? messageType; - static enums.SessionMessageType? sessionMessageTypeMessageTypeNullableFromJson(Object? value) => + static enums.SessionMessageType? + sessionMessageTypeMessageTypeNullableFromJson(Object? value) => sessionMessageTypeNullableFromJson( value, enums.SessionMessageType.keepalive, @@ -27887,7 +28686,8 @@ class InboundKeepAliveMessage { String toString() => jsonEncode(this); @override - int get hashCode => const DeepCollectionEquality().hash(messageType) ^ runtimeType.hashCode; + int get hashCode => + const DeepCollectionEquality().hash(messageType) ^ runtimeType.hashCode; } extension $InboundKeepAliveMessageExtension on InboundKeepAliveMessage { @@ -27910,7 +28710,8 @@ extension $InboundKeepAliveMessageExtension on InboundKeepAliveMessage { class InboundWebSocketMessage { const InboundWebSocketMessage(); - factory InboundWebSocketMessage.fromJson(Map json) => _$InboundWebSocketMessageFromJson(json); + factory InboundWebSocketMessage.fromJson(Map json) => + _$InboundWebSocketMessageFromJson(json); static const toJsonFactory = _$InboundWebSocketMessageToJson; Map toJson() => _$InboundWebSocketMessageToJson(this); @@ -27936,7 +28737,8 @@ class InstallationInfo { this.packageInfo, }); - factory InstallationInfo.fromJson(Map json) => _$InstallationInfoFromJson(json); + factory InstallationInfo.fromJson(Map json) => + _$InstallationInfoFromJson(json); static const toJsonFactory = _$InstallationInfoToJson; Map toJson() => _$InstallationInfoToJson(this); @@ -27961,8 +28763,10 @@ class InstallationInfo { bool operator ==(Object other) { return identical(this, other) || (other is InstallationInfo && - (identical(other.guid, guid) || const DeepCollectionEquality().equals(other.guid, guid)) && - (identical(other.name, name) || const DeepCollectionEquality().equals(other.name, name)) && + (identical(other.guid, guid) || + const DeepCollectionEquality().equals(other.guid, guid)) && + (identical(other.name, name) || + const DeepCollectionEquality().equals(other.name, name)) && (identical(other.version, version) || const DeepCollectionEquality().equals( other.version, @@ -28059,7 +28863,8 @@ class IPlugin { this.dataFolderPath, }); - factory IPlugin.fromJson(Map json) => _$IPluginFromJson(json); + factory IPlugin.fromJson(Map json) => + _$IPluginFromJson(json); static const toJsonFactory = _$IPluginToJson; Map toJson() => _$IPluginToJson(this); @@ -28084,13 +28889,15 @@ class IPlugin { bool operator ==(Object other) { return identical(this, other) || (other is IPlugin && - (identical(other.name, name) || const DeepCollectionEquality().equals(other.name, name)) && + (identical(other.name, name) || + const DeepCollectionEquality().equals(other.name, name)) && (identical(other.description, description) || const DeepCollectionEquality().equals( other.description, description, )) && - (identical(other.id, id) || const DeepCollectionEquality().equals(other.id, id)) && + (identical(other.id, id) || + const DeepCollectionEquality().equals(other.id, id)) && (identical(other.version, version) || const DeepCollectionEquality().equals( other.version, @@ -28163,9 +28970,15 @@ extension $IPluginExtension on IPlugin { description: (description != null ? description.value : this.description), id: (id != null ? id.value : this.id), version: (version != null ? version.value : this.version), - assemblyFilePath: (assemblyFilePath != null ? assemblyFilePath.value : this.assemblyFilePath), - canUninstall: (canUninstall != null ? canUninstall.value : this.canUninstall), - dataFolderPath: (dataFolderPath != null ? dataFolderPath.value : this.dataFolderPath), + assemblyFilePath: (assemblyFilePath != null + ? assemblyFilePath.value + : this.assemblyFilePath), + canUninstall: (canUninstall != null + ? canUninstall.value + : this.canUninstall), + dataFolderPath: (dataFolderPath != null + ? dataFolderPath.value + : this.dataFolderPath), ); } } @@ -28187,7 +29000,8 @@ class ItemCounts { this.itemCount, }); - factory ItemCounts.fromJson(Map json) => _$ItemCountsFromJson(json); + factory ItemCounts.fromJson(Map json) => + _$ItemCountsFromJson(json); static const toJsonFactory = _$ItemCountsToJson; Map toJson() => _$ItemCountsToJson(this); @@ -28352,13 +29166,21 @@ extension $ItemCountsExtension on ItemCounts { return ItemCounts( movieCount: (movieCount != null ? movieCount.value : this.movieCount), seriesCount: (seriesCount != null ? seriesCount.value : this.seriesCount), - episodeCount: (episodeCount != null ? episodeCount.value : this.episodeCount), + episodeCount: (episodeCount != null + ? episodeCount.value + : this.episodeCount), artistCount: (artistCount != null ? artistCount.value : this.artistCount), - programCount: (programCount != null ? programCount.value : this.programCount), - trailerCount: (trailerCount != null ? trailerCount.value : this.trailerCount), + programCount: (programCount != null + ? programCount.value + : this.programCount), + trailerCount: (trailerCount != null + ? trailerCount.value + : this.trailerCount), songCount: (songCount != null ? songCount.value : this.songCount), albumCount: (albumCount != null ? albumCount.value : this.albumCount), - musicVideoCount: (musicVideoCount != null ? musicVideoCount.value : this.musicVideoCount), + musicVideoCount: (musicVideoCount != null + ? musicVideoCount.value + : this.musicVideoCount), boxSetCount: (boxSetCount != null ? boxSetCount.value : this.boxSetCount), bookCount: (bookCount != null ? bookCount.value : this.bookCount), itemCount: (itemCount != null ? itemCount.value : this.itemCount), @@ -28370,7 +29192,8 @@ extension $ItemCountsExtension on ItemCounts { class JoinGroupRequestDto { const JoinGroupRequestDto({this.groupId}); - factory JoinGroupRequestDto.fromJson(Map json) => _$JoinGroupRequestDtoFromJson(json); + factory JoinGroupRequestDto.fromJson(Map json) => + _$JoinGroupRequestDtoFromJson(json); static const toJsonFactory = _$JoinGroupRequestDtoToJson; Map toJson() => _$JoinGroupRequestDtoToJson(this); @@ -28383,14 +29206,16 @@ class JoinGroupRequestDto { bool operator ==(Object other) { return identical(this, other) || (other is JoinGroupRequestDto && - (identical(other.groupId, groupId) || const DeepCollectionEquality().equals(other.groupId, groupId))); + (identical(other.groupId, groupId) || + const DeepCollectionEquality().equals(other.groupId, groupId))); } @override String toString() => jsonEncode(this); @override - int get hashCode => const DeepCollectionEquality().hash(groupId) ^ runtimeType.hashCode; + int get hashCode => + const DeepCollectionEquality().hash(groupId) ^ runtimeType.hashCode; } extension $JoinGroupRequestDtoExtension on JoinGroupRequestDto { @@ -28409,7 +29234,8 @@ extension $JoinGroupRequestDtoExtension on JoinGroupRequestDto { class LibraryChangedMessage { const LibraryChangedMessage({this.data, this.messageId, this.messageType}); - factory LibraryChangedMessage.fromJson(Map json) => _$LibraryChangedMessageFromJson(json); + factory LibraryChangedMessage.fromJson(Map json) => + _$LibraryChangedMessageFromJson(json); static const toJsonFactory = _$LibraryChangedMessageToJson; Map toJson() => _$LibraryChangedMessageToJson(this); @@ -28425,7 +29251,8 @@ class LibraryChangedMessage { fromJson: sessionMessageTypeMessageTypeNullableFromJson, ) final enums.SessionMessageType? messageType; - static enums.SessionMessageType? sessionMessageTypeMessageTypeNullableFromJson(Object? value) => + static enums.SessionMessageType? + sessionMessageTypeMessageTypeNullableFromJson(Object? value) => sessionMessageTypeNullableFromJson( value, enums.SessionMessageType.librarychanged, @@ -28437,7 +29264,8 @@ class LibraryChangedMessage { bool operator ==(Object other) { return identical(this, other) || (other is LibraryChangedMessage && - (identical(other.data, data) || const DeepCollectionEquality().equals(other.data, data)) && + (identical(other.data, data) || + const DeepCollectionEquality().equals(other.data, data)) && (identical(other.messageId, messageId) || const DeepCollectionEquality().equals( other.messageId, @@ -28491,7 +29319,8 @@ extension $LibraryChangedMessageExtension on LibraryChangedMessage { class LibraryOptionInfoDto { const LibraryOptionInfoDto({this.name, this.defaultEnabled}); - factory LibraryOptionInfoDto.fromJson(Map json) => _$LibraryOptionInfoDtoFromJson(json); + factory LibraryOptionInfoDto.fromJson(Map json) => + _$LibraryOptionInfoDtoFromJson(json); static const toJsonFactory = _$LibraryOptionInfoDtoToJson; Map toJson() => _$LibraryOptionInfoDtoToJson(this); @@ -28506,7 +29335,8 @@ class LibraryOptionInfoDto { bool operator ==(Object other) { return identical(this, other) || (other is LibraryOptionInfoDto && - (identical(other.name, name) || const DeepCollectionEquality().equals(other.name, name)) && + (identical(other.name, name) || + const DeepCollectionEquality().equals(other.name, name)) && (identical(other.defaultEnabled, defaultEnabled) || const DeepCollectionEquality().equals( other.defaultEnabled, @@ -28538,7 +29368,9 @@ extension $LibraryOptionInfoDtoExtension on LibraryOptionInfoDto { }) { return LibraryOptionInfoDto( name: (name != null ? name.value : this.name), - defaultEnabled: (defaultEnabled != null ? defaultEnabled.value : this.defaultEnabled), + defaultEnabled: (defaultEnabled != null + ? defaultEnabled.value + : this.defaultEnabled), ); } } @@ -28590,7 +29422,8 @@ class LibraryOptions { this.typeOptions, }); - factory LibraryOptions.fromJson(Map json) => _$LibraryOptionsFromJson(json); + factory LibraryOptions.fromJson(Map json) => + _$LibraryOptionsFromJson(json); static const toJsonFactory = _$LibraryOptionsToJson; Map toJson() => _$LibraryOptionsToJson(this); @@ -29148,48 +29981,77 @@ extension $LibraryOptionsExtension on LibraryOptions { return LibraryOptions( enabled: enabled ?? this.enabled, enablePhotos: enablePhotos ?? this.enablePhotos, - enableRealtimeMonitor: enableRealtimeMonitor ?? this.enableRealtimeMonitor, + enableRealtimeMonitor: + enableRealtimeMonitor ?? this.enableRealtimeMonitor, enableLUFSScan: enableLUFSScan ?? this.enableLUFSScan, - enableChapterImageExtraction: enableChapterImageExtraction ?? this.enableChapterImageExtraction, + enableChapterImageExtraction: + enableChapterImageExtraction ?? this.enableChapterImageExtraction, extractChapterImagesDuringLibraryScan: - extractChapterImagesDuringLibraryScan ?? this.extractChapterImagesDuringLibraryScan, - enableTrickplayImageExtraction: enableTrickplayImageExtraction ?? this.enableTrickplayImageExtraction, + extractChapterImagesDuringLibraryScan ?? + this.extractChapterImagesDuringLibraryScan, + enableTrickplayImageExtraction: + enableTrickplayImageExtraction ?? this.enableTrickplayImageExtraction, extractTrickplayImagesDuringLibraryScan: - extractTrickplayImagesDuringLibraryScan ?? this.extractTrickplayImagesDuringLibraryScan, + extractTrickplayImagesDuringLibraryScan ?? + this.extractTrickplayImagesDuringLibraryScan, pathInfos: pathInfos ?? this.pathInfos, saveLocalMetadata: saveLocalMetadata ?? this.saveLocalMetadata, - enableInternetProviders: enableInternetProviders ?? this.enableInternetProviders, - enableAutomaticSeriesGrouping: enableAutomaticSeriesGrouping ?? this.enableAutomaticSeriesGrouping, + enableInternetProviders: + enableInternetProviders ?? this.enableInternetProviders, + enableAutomaticSeriesGrouping: + enableAutomaticSeriesGrouping ?? this.enableAutomaticSeriesGrouping, enableEmbeddedTitles: enableEmbeddedTitles ?? this.enableEmbeddedTitles, - enableEmbeddedExtrasTitles: enableEmbeddedExtrasTitles ?? this.enableEmbeddedExtrasTitles, - enableEmbeddedEpisodeInfos: enableEmbeddedEpisodeInfos ?? this.enableEmbeddedEpisodeInfos, - automaticRefreshIntervalDays: automaticRefreshIntervalDays ?? this.automaticRefreshIntervalDays, - preferredMetadataLanguage: preferredMetadataLanguage ?? this.preferredMetadataLanguage, + enableEmbeddedExtrasTitles: + enableEmbeddedExtrasTitles ?? this.enableEmbeddedExtrasTitles, + enableEmbeddedEpisodeInfos: + enableEmbeddedEpisodeInfos ?? this.enableEmbeddedEpisodeInfos, + automaticRefreshIntervalDays: + automaticRefreshIntervalDays ?? this.automaticRefreshIntervalDays, + preferredMetadataLanguage: + preferredMetadataLanguage ?? this.preferredMetadataLanguage, metadataCountryCode: metadataCountryCode ?? this.metadataCountryCode, - seasonZeroDisplayName: seasonZeroDisplayName ?? this.seasonZeroDisplayName, + seasonZeroDisplayName: + seasonZeroDisplayName ?? this.seasonZeroDisplayName, metadataSavers: metadataSavers ?? this.metadataSavers, - disabledLocalMetadataReaders: disabledLocalMetadataReaders ?? this.disabledLocalMetadataReaders, - localMetadataReaderOrder: localMetadataReaderOrder ?? this.localMetadataReaderOrder, - disabledSubtitleFetchers: disabledSubtitleFetchers ?? this.disabledSubtitleFetchers, + disabledLocalMetadataReaders: + disabledLocalMetadataReaders ?? this.disabledLocalMetadataReaders, + localMetadataReaderOrder: + localMetadataReaderOrder ?? this.localMetadataReaderOrder, + disabledSubtitleFetchers: + disabledSubtitleFetchers ?? this.disabledSubtitleFetchers, subtitleFetcherOrder: subtitleFetcherOrder ?? this.subtitleFetcherOrder, - disabledMediaSegmentProviders: disabledMediaSegmentProviders ?? this.disabledMediaSegmentProviders, - mediaSegmentProviderOrder: mediaSegmentProviderOrder ?? this.mediaSegmentProviderOrder, + disabledMediaSegmentProviders: + disabledMediaSegmentProviders ?? this.disabledMediaSegmentProviders, + mediaSegmentProviderOrder: + mediaSegmentProviderOrder ?? this.mediaSegmentProviderOrder, skipSubtitlesIfEmbeddedSubtitlesPresent: - skipSubtitlesIfEmbeddedSubtitlesPresent ?? this.skipSubtitlesIfEmbeddedSubtitlesPresent, - skipSubtitlesIfAudioTrackMatches: skipSubtitlesIfAudioTrackMatches ?? this.skipSubtitlesIfAudioTrackMatches, - subtitleDownloadLanguages: subtitleDownloadLanguages ?? this.subtitleDownloadLanguages, - requirePerfectSubtitleMatch: requirePerfectSubtitleMatch ?? this.requirePerfectSubtitleMatch, - saveSubtitlesWithMedia: saveSubtitlesWithMedia ?? this.saveSubtitlesWithMedia, + skipSubtitlesIfEmbeddedSubtitlesPresent ?? + this.skipSubtitlesIfEmbeddedSubtitlesPresent, + skipSubtitlesIfAudioTrackMatches: + skipSubtitlesIfAudioTrackMatches ?? + this.skipSubtitlesIfAudioTrackMatches, + subtitleDownloadLanguages: + subtitleDownloadLanguages ?? this.subtitleDownloadLanguages, + requirePerfectSubtitleMatch: + requirePerfectSubtitleMatch ?? this.requirePerfectSubtitleMatch, + saveSubtitlesWithMedia: + saveSubtitlesWithMedia ?? this.saveSubtitlesWithMedia, saveLyricsWithMedia: saveLyricsWithMedia ?? this.saveLyricsWithMedia, - saveTrickplayWithMedia: saveTrickplayWithMedia ?? this.saveTrickplayWithMedia, - disabledLyricFetchers: disabledLyricFetchers ?? this.disabledLyricFetchers, + saveTrickplayWithMedia: + saveTrickplayWithMedia ?? this.saveTrickplayWithMedia, + disabledLyricFetchers: + disabledLyricFetchers ?? this.disabledLyricFetchers, lyricFetcherOrder: lyricFetcherOrder ?? this.lyricFetcherOrder, - preferNonstandardArtistsTag: preferNonstandardArtistsTag ?? this.preferNonstandardArtistsTag, - useCustomTagDelimiters: useCustomTagDelimiters ?? this.useCustomTagDelimiters, + preferNonstandardArtistsTag: + preferNonstandardArtistsTag ?? this.preferNonstandardArtistsTag, + useCustomTagDelimiters: + useCustomTagDelimiters ?? this.useCustomTagDelimiters, customTagDelimiters: customTagDelimiters ?? this.customTagDelimiters, delimiterWhitelist: delimiterWhitelist ?? this.delimiterWhitelist, - automaticallyAddToCollection: automaticallyAddToCollection ?? this.automaticallyAddToCollection, - allowEmbeddedSubtitles: allowEmbeddedSubtitles ?? this.allowEmbeddedSubtitles, + automaticallyAddToCollection: + automaticallyAddToCollection ?? this.automaticallyAddToCollection, + allowEmbeddedSubtitles: + allowEmbeddedSubtitles ?? this.allowEmbeddedSubtitles, typeOptions: typeOptions ?? this.typeOptions, ); } @@ -29240,82 +30102,128 @@ extension $LibraryOptionsExtension on LibraryOptions { }) { return LibraryOptions( enabled: (enabled != null ? enabled.value : this.enabled), - enablePhotos: (enablePhotos != null ? enablePhotos.value : this.enablePhotos), - enableRealtimeMonitor: (enableRealtimeMonitor != null ? enableRealtimeMonitor.value : this.enableRealtimeMonitor), - enableLUFSScan: (enableLUFSScan != null ? enableLUFSScan.value : this.enableLUFSScan), + enablePhotos: (enablePhotos != null + ? enablePhotos.value + : this.enablePhotos), + enableRealtimeMonitor: (enableRealtimeMonitor != null + ? enableRealtimeMonitor.value + : this.enableRealtimeMonitor), + enableLUFSScan: (enableLUFSScan != null + ? enableLUFSScan.value + : this.enableLUFSScan), enableChapterImageExtraction: (enableChapterImageExtraction != null ? enableChapterImageExtraction.value : this.enableChapterImageExtraction), - extractChapterImagesDuringLibraryScan: (extractChapterImagesDuringLibraryScan != null + extractChapterImagesDuringLibraryScan: + (extractChapterImagesDuringLibraryScan != null ? extractChapterImagesDuringLibraryScan.value : this.extractChapterImagesDuringLibraryScan), enableTrickplayImageExtraction: (enableTrickplayImageExtraction != null ? enableTrickplayImageExtraction.value : this.enableTrickplayImageExtraction), - extractTrickplayImagesDuringLibraryScan: (extractTrickplayImagesDuringLibraryScan != null + extractTrickplayImagesDuringLibraryScan: + (extractTrickplayImagesDuringLibraryScan != null ? extractTrickplayImagesDuringLibraryScan.value : this.extractTrickplayImagesDuringLibraryScan), pathInfos: (pathInfos != null ? pathInfos.value : this.pathInfos), - saveLocalMetadata: (saveLocalMetadata != null ? saveLocalMetadata.value : this.saveLocalMetadata), - enableInternetProviders: - (enableInternetProviders != null ? enableInternetProviders.value : this.enableInternetProviders), + saveLocalMetadata: (saveLocalMetadata != null + ? saveLocalMetadata.value + : this.saveLocalMetadata), + enableInternetProviders: (enableInternetProviders != null + ? enableInternetProviders.value + : this.enableInternetProviders), enableAutomaticSeriesGrouping: (enableAutomaticSeriesGrouping != null ? enableAutomaticSeriesGrouping.value : this.enableAutomaticSeriesGrouping), - enableEmbeddedTitles: (enableEmbeddedTitles != null ? enableEmbeddedTitles.value : this.enableEmbeddedTitles), - enableEmbeddedExtrasTitles: - (enableEmbeddedExtrasTitles != null ? enableEmbeddedExtrasTitles.value : this.enableEmbeddedExtrasTitles), - enableEmbeddedEpisodeInfos: - (enableEmbeddedEpisodeInfos != null ? enableEmbeddedEpisodeInfos.value : this.enableEmbeddedEpisodeInfos), + enableEmbeddedTitles: (enableEmbeddedTitles != null + ? enableEmbeddedTitles.value + : this.enableEmbeddedTitles), + enableEmbeddedExtrasTitles: (enableEmbeddedExtrasTitles != null + ? enableEmbeddedExtrasTitles.value + : this.enableEmbeddedExtrasTitles), + enableEmbeddedEpisodeInfos: (enableEmbeddedEpisodeInfos != null + ? enableEmbeddedEpisodeInfos.value + : this.enableEmbeddedEpisodeInfos), automaticRefreshIntervalDays: (automaticRefreshIntervalDays != null ? automaticRefreshIntervalDays.value : this.automaticRefreshIntervalDays), - preferredMetadataLanguage: - (preferredMetadataLanguage != null ? preferredMetadataLanguage.value : this.preferredMetadataLanguage), - metadataCountryCode: (metadataCountryCode != null ? metadataCountryCode.value : this.metadataCountryCode), - seasonZeroDisplayName: (seasonZeroDisplayName != null ? seasonZeroDisplayName.value : this.seasonZeroDisplayName), - metadataSavers: (metadataSavers != null ? metadataSavers.value : this.metadataSavers), + preferredMetadataLanguage: (preferredMetadataLanguage != null + ? preferredMetadataLanguage.value + : this.preferredMetadataLanguage), + metadataCountryCode: (metadataCountryCode != null + ? metadataCountryCode.value + : this.metadataCountryCode), + seasonZeroDisplayName: (seasonZeroDisplayName != null + ? seasonZeroDisplayName.value + : this.seasonZeroDisplayName), + metadataSavers: (metadataSavers != null + ? metadataSavers.value + : this.metadataSavers), disabledLocalMetadataReaders: (disabledLocalMetadataReaders != null ? disabledLocalMetadataReaders.value : this.disabledLocalMetadataReaders), - localMetadataReaderOrder: - (localMetadataReaderOrder != null ? localMetadataReaderOrder.value : this.localMetadataReaderOrder), - disabledSubtitleFetchers: - (disabledSubtitleFetchers != null ? disabledSubtitleFetchers.value : this.disabledSubtitleFetchers), - subtitleFetcherOrder: (subtitleFetcherOrder != null ? subtitleFetcherOrder.value : this.subtitleFetcherOrder), + localMetadataReaderOrder: (localMetadataReaderOrder != null + ? localMetadataReaderOrder.value + : this.localMetadataReaderOrder), + disabledSubtitleFetchers: (disabledSubtitleFetchers != null + ? disabledSubtitleFetchers.value + : this.disabledSubtitleFetchers), + subtitleFetcherOrder: (subtitleFetcherOrder != null + ? subtitleFetcherOrder.value + : this.subtitleFetcherOrder), disabledMediaSegmentProviders: (disabledMediaSegmentProviders != null ? disabledMediaSegmentProviders.value : this.disabledMediaSegmentProviders), - mediaSegmentProviderOrder: - (mediaSegmentProviderOrder != null ? mediaSegmentProviderOrder.value : this.mediaSegmentProviderOrder), - skipSubtitlesIfEmbeddedSubtitlesPresent: (skipSubtitlesIfEmbeddedSubtitlesPresent != null + mediaSegmentProviderOrder: (mediaSegmentProviderOrder != null + ? mediaSegmentProviderOrder.value + : this.mediaSegmentProviderOrder), + skipSubtitlesIfEmbeddedSubtitlesPresent: + (skipSubtitlesIfEmbeddedSubtitlesPresent != null ? skipSubtitlesIfEmbeddedSubtitlesPresent.value : this.skipSubtitlesIfEmbeddedSubtitlesPresent), - skipSubtitlesIfAudioTrackMatches: (skipSubtitlesIfAudioTrackMatches != null + skipSubtitlesIfAudioTrackMatches: + (skipSubtitlesIfAudioTrackMatches != null ? skipSubtitlesIfAudioTrackMatches.value : this.skipSubtitlesIfAudioTrackMatches), - subtitleDownloadLanguages: - (subtitleDownloadLanguages != null ? subtitleDownloadLanguages.value : this.subtitleDownloadLanguages), - requirePerfectSubtitleMatch: - (requirePerfectSubtitleMatch != null ? requirePerfectSubtitleMatch.value : this.requirePerfectSubtitleMatch), - saveSubtitlesWithMedia: - (saveSubtitlesWithMedia != null ? saveSubtitlesWithMedia.value : this.saveSubtitlesWithMedia), - saveLyricsWithMedia: (saveLyricsWithMedia != null ? saveLyricsWithMedia.value : this.saveLyricsWithMedia), - saveTrickplayWithMedia: - (saveTrickplayWithMedia != null ? saveTrickplayWithMedia.value : this.saveTrickplayWithMedia), - disabledLyricFetchers: (disabledLyricFetchers != null ? disabledLyricFetchers.value : this.disabledLyricFetchers), - lyricFetcherOrder: (lyricFetcherOrder != null ? lyricFetcherOrder.value : this.lyricFetcherOrder), - preferNonstandardArtistsTag: - (preferNonstandardArtistsTag != null ? preferNonstandardArtistsTag.value : this.preferNonstandardArtistsTag), - useCustomTagDelimiters: - (useCustomTagDelimiters != null ? useCustomTagDelimiters.value : this.useCustomTagDelimiters), - customTagDelimiters: (customTagDelimiters != null ? customTagDelimiters.value : this.customTagDelimiters), - delimiterWhitelist: (delimiterWhitelist != null ? delimiterWhitelist.value : this.delimiterWhitelist), + subtitleDownloadLanguages: (subtitleDownloadLanguages != null + ? subtitleDownloadLanguages.value + : this.subtitleDownloadLanguages), + requirePerfectSubtitleMatch: (requirePerfectSubtitleMatch != null + ? requirePerfectSubtitleMatch.value + : this.requirePerfectSubtitleMatch), + saveSubtitlesWithMedia: (saveSubtitlesWithMedia != null + ? saveSubtitlesWithMedia.value + : this.saveSubtitlesWithMedia), + saveLyricsWithMedia: (saveLyricsWithMedia != null + ? saveLyricsWithMedia.value + : this.saveLyricsWithMedia), + saveTrickplayWithMedia: (saveTrickplayWithMedia != null + ? saveTrickplayWithMedia.value + : this.saveTrickplayWithMedia), + disabledLyricFetchers: (disabledLyricFetchers != null + ? disabledLyricFetchers.value + : this.disabledLyricFetchers), + lyricFetcherOrder: (lyricFetcherOrder != null + ? lyricFetcherOrder.value + : this.lyricFetcherOrder), + preferNonstandardArtistsTag: (preferNonstandardArtistsTag != null + ? preferNonstandardArtistsTag.value + : this.preferNonstandardArtistsTag), + useCustomTagDelimiters: (useCustomTagDelimiters != null + ? useCustomTagDelimiters.value + : this.useCustomTagDelimiters), + customTagDelimiters: (customTagDelimiters != null + ? customTagDelimiters.value + : this.customTagDelimiters), + delimiterWhitelist: (delimiterWhitelist != null + ? delimiterWhitelist.value + : this.delimiterWhitelist), automaticallyAddToCollection: (automaticallyAddToCollection != null ? automaticallyAddToCollection.value : this.automaticallyAddToCollection), - allowEmbeddedSubtitles: - (allowEmbeddedSubtitles != null ? allowEmbeddedSubtitles.value : this.allowEmbeddedSubtitles), + allowEmbeddedSubtitles: (allowEmbeddedSubtitles != null + ? allowEmbeddedSubtitles.value + : this.allowEmbeddedSubtitles), typeOptions: (typeOptions != null ? typeOptions.value : this.typeOptions), ); } @@ -29332,7 +30240,8 @@ class LibraryOptionsResultDto { this.typeOptions, }); - factory LibraryOptionsResultDto.fromJson(Map json) => _$LibraryOptionsResultDtoFromJson(json); + factory LibraryOptionsResultDto.fromJson(Map json) => + _$LibraryOptionsResultDtoFromJson(json); static const toJsonFactory = _$LibraryOptionsResultDtoToJson; Map toJson() => _$LibraryOptionsResultDtoToJson(this); @@ -29439,7 +30348,8 @@ extension $LibraryOptionsResultDtoExtension on LibraryOptionsResultDto { metadataReaders: metadataReaders ?? this.metadataReaders, subtitleFetchers: subtitleFetchers ?? this.subtitleFetchers, lyricFetchers: lyricFetchers ?? this.lyricFetchers, - mediaSegmentProviders: mediaSegmentProviders ?? this.mediaSegmentProviders, + mediaSegmentProviders: + mediaSegmentProviders ?? this.mediaSegmentProviders, typeOptions: typeOptions ?? this.typeOptions, ); } @@ -29453,11 +30363,21 @@ extension $LibraryOptionsResultDtoExtension on LibraryOptionsResultDto { Wrapped?>? typeOptions, }) { return LibraryOptionsResultDto( - metadataSavers: (metadataSavers != null ? metadataSavers.value : this.metadataSavers), - metadataReaders: (metadataReaders != null ? metadataReaders.value : this.metadataReaders), - subtitleFetchers: (subtitleFetchers != null ? subtitleFetchers.value : this.subtitleFetchers), - lyricFetchers: (lyricFetchers != null ? lyricFetchers.value : this.lyricFetchers), - mediaSegmentProviders: (mediaSegmentProviders != null ? mediaSegmentProviders.value : this.mediaSegmentProviders), + metadataSavers: (metadataSavers != null + ? metadataSavers.value + : this.metadataSavers), + metadataReaders: (metadataReaders != null + ? metadataReaders.value + : this.metadataReaders), + subtitleFetchers: (subtitleFetchers != null + ? subtitleFetchers.value + : this.subtitleFetchers), + lyricFetchers: (lyricFetchers != null + ? lyricFetchers.value + : this.lyricFetchers), + mediaSegmentProviders: (mediaSegmentProviders != null + ? mediaSegmentProviders.value + : this.mediaSegmentProviders), typeOptions: (typeOptions != null ? typeOptions.value : this.typeOptions), ); } @@ -29467,7 +30387,8 @@ extension $LibraryOptionsResultDtoExtension on LibraryOptionsResultDto { class LibraryStorageDto { const LibraryStorageDto({this.id, this.name, this.folders}); - factory LibraryStorageDto.fromJson(Map json) => _$LibraryStorageDtoFromJson(json); + factory LibraryStorageDto.fromJson(Map json) => + _$LibraryStorageDtoFromJson(json); static const toJsonFactory = _$LibraryStorageDtoToJson; Map toJson() => _$LibraryStorageDtoToJson(this); @@ -29488,9 +30409,12 @@ class LibraryStorageDto { bool operator ==(Object other) { return identical(this, other) || (other is LibraryStorageDto && - (identical(other.id, id) || const DeepCollectionEquality().equals(other.id, id)) && - (identical(other.name, name) || const DeepCollectionEquality().equals(other.name, name)) && - (identical(other.folders, folders) || const DeepCollectionEquality().equals(other.folders, folders))); + (identical(other.id, id) || + const DeepCollectionEquality().equals(other.id, id)) && + (identical(other.name, name) || + const DeepCollectionEquality().equals(other.name, name)) && + (identical(other.folders, folders) || + const DeepCollectionEquality().equals(other.folders, folders))); } @override @@ -29540,7 +30464,8 @@ class LibraryTypeOptionsDto { this.defaultImageOptions, }); - factory LibraryTypeOptionsDto.fromJson(Map json) => _$LibraryTypeOptionsDtoFromJson(json); + factory LibraryTypeOptionsDto.fromJson(Map json) => + _$LibraryTypeOptionsDtoFromJson(json); static const toJsonFactory = _$LibraryTypeOptionsDtoToJson; Map toJson() => _$LibraryTypeOptionsDtoToJson(this); @@ -29578,7 +30503,8 @@ class LibraryTypeOptionsDto { bool operator ==(Object other) { return identical(this, other) || (other is LibraryTypeOptionsDto && - (identical(other.type, type) || const DeepCollectionEquality().equals(other.type, type)) && + (identical(other.type, type) || + const DeepCollectionEquality().equals(other.type, type)) && (identical(other.metadataFetchers, metadataFetchers) || const DeepCollectionEquality().equals( other.metadataFetchers, @@ -29640,10 +30566,18 @@ extension $LibraryTypeOptionsDtoExtension on LibraryTypeOptionsDto { }) { return LibraryTypeOptionsDto( type: (type != null ? type.value : this.type), - metadataFetchers: (metadataFetchers != null ? metadataFetchers.value : this.metadataFetchers), - imageFetchers: (imageFetchers != null ? imageFetchers.value : this.imageFetchers), - supportedImageTypes: (supportedImageTypes != null ? supportedImageTypes.value : this.supportedImageTypes), - defaultImageOptions: (defaultImageOptions != null ? defaultImageOptions.value : this.defaultImageOptions), + metadataFetchers: (metadataFetchers != null + ? metadataFetchers.value + : this.metadataFetchers), + imageFetchers: (imageFetchers != null + ? imageFetchers.value + : this.imageFetchers), + supportedImageTypes: (supportedImageTypes != null + ? supportedImageTypes.value + : this.supportedImageTypes), + defaultImageOptions: (defaultImageOptions != null + ? defaultImageOptions.value + : this.defaultImageOptions), ); } } @@ -29660,7 +30594,8 @@ class LibraryUpdateInfo { this.isEmpty, }); - factory LibraryUpdateInfo.fromJson(Map json) => _$LibraryUpdateInfoFromJson(json); + factory LibraryUpdateInfo.fromJson(Map json) => + _$LibraryUpdateInfoFromJson(json); static const toJsonFactory = _$LibraryUpdateInfoToJson; Map toJson() => _$LibraryUpdateInfoToJson(this); @@ -29727,7 +30662,8 @@ class LibraryUpdateInfo { other.collectionFolders, collectionFolders, )) && - (identical(other.isEmpty, isEmpty) || const DeepCollectionEquality().equals(other.isEmpty, isEmpty))); + (identical(other.isEmpty, isEmpty) || + const DeepCollectionEquality().equals(other.isEmpty, isEmpty))); } @override @@ -29776,12 +30712,22 @@ extension $LibraryUpdateInfoExtension on LibraryUpdateInfo { Wrapped? isEmpty, }) { return LibraryUpdateInfo( - foldersAddedTo: (foldersAddedTo != null ? foldersAddedTo.value : this.foldersAddedTo), - foldersRemovedFrom: (foldersRemovedFrom != null ? foldersRemovedFrom.value : this.foldersRemovedFrom), + foldersAddedTo: (foldersAddedTo != null + ? foldersAddedTo.value + : this.foldersAddedTo), + foldersRemovedFrom: (foldersRemovedFrom != null + ? foldersRemovedFrom.value + : this.foldersRemovedFrom), itemsAdded: (itemsAdded != null ? itemsAdded.value : this.itemsAdded), - itemsRemoved: (itemsRemoved != null ? itemsRemoved.value : this.itemsRemoved), - itemsUpdated: (itemsUpdated != null ? itemsUpdated.value : this.itemsUpdated), - collectionFolders: (collectionFolders != null ? collectionFolders.value : this.collectionFolders), + itemsRemoved: (itemsRemoved != null + ? itemsRemoved.value + : this.itemsRemoved), + itemsUpdated: (itemsUpdated != null + ? itemsUpdated.value + : this.itemsUpdated), + collectionFolders: (collectionFolders != null + ? collectionFolders.value + : this.collectionFolders), isEmpty: (isEmpty != null ? isEmpty.value : this.isEmpty), ); } @@ -29810,7 +30756,8 @@ class ListingsProviderInfo { this.userAgent, }); - factory ListingsProviderInfo.fromJson(Map json) => _$ListingsProviderInfoFromJson(json); + factory ListingsProviderInfo.fromJson(Map json) => + _$ListingsProviderInfoFromJson(json); static const toJsonFactory = _$ListingsProviderInfoToJson; Map toJson() => _$ListingsProviderInfoToJson(this); @@ -29881,8 +30828,10 @@ class ListingsProviderInfo { bool operator ==(Object other) { return identical(this, other) || (other is ListingsProviderInfo && - (identical(other.id, id) || const DeepCollectionEquality().equals(other.id, id)) && - (identical(other.type, type) || const DeepCollectionEquality().equals(other.type, type)) && + (identical(other.id, id) || + const DeepCollectionEquality().equals(other.id, id)) && + (identical(other.type, type) || + const DeepCollectionEquality().equals(other.type, type)) && (identical(other.username, username) || const DeepCollectionEquality().equals( other.username, @@ -29908,7 +30857,8 @@ class ListingsProviderInfo { other.country, country, )) && - (identical(other.path, path) || const DeepCollectionEquality().equals(other.path, path)) && + (identical(other.path, path) || + const DeepCollectionEquality().equals(other.path, path)) && (identical(other.enabledTuners, enabledTuners) || const DeepCollectionEquality().equals( other.enabledTuners, @@ -30059,15 +31009,31 @@ extension $ListingsProviderInfoExtension on ListingsProviderInfo { zipCode: (zipCode != null ? zipCode.value : this.zipCode), country: (country != null ? country.value : this.country), path: (path != null ? path.value : this.path), - enabledTuners: (enabledTuners != null ? enabledTuners.value : this.enabledTuners), - enableAllTuners: (enableAllTuners != null ? enableAllTuners.value : this.enableAllTuners), - newsCategories: (newsCategories != null ? newsCategories.value : this.newsCategories), - sportsCategories: (sportsCategories != null ? sportsCategories.value : this.sportsCategories), - kidsCategories: (kidsCategories != null ? kidsCategories.value : this.kidsCategories), - movieCategories: (movieCategories != null ? movieCategories.value : this.movieCategories), - channelMappings: (channelMappings != null ? channelMappings.value : this.channelMappings), + enabledTuners: (enabledTuners != null + ? enabledTuners.value + : this.enabledTuners), + enableAllTuners: (enableAllTuners != null + ? enableAllTuners.value + : this.enableAllTuners), + newsCategories: (newsCategories != null + ? newsCategories.value + : this.newsCategories), + sportsCategories: (sportsCategories != null + ? sportsCategories.value + : this.sportsCategories), + kidsCategories: (kidsCategories != null + ? kidsCategories.value + : this.kidsCategories), + movieCategories: (movieCategories != null + ? movieCategories.value + : this.movieCategories), + channelMappings: (channelMappings != null + ? channelMappings.value + : this.channelMappings), moviePrefix: (moviePrefix != null ? moviePrefix.value : this.moviePrefix), - preferredLanguage: (preferredLanguage != null ? preferredLanguage.value : this.preferredLanguage), + preferredLanguage: (preferredLanguage != null + ? preferredLanguage.value + : this.preferredLanguage), userAgent: (userAgent != null ? userAgent.value : this.userAgent), ); } @@ -30077,7 +31043,8 @@ extension $ListingsProviderInfoExtension on ListingsProviderInfo { class LiveStreamResponse { const LiveStreamResponse({this.mediaSource}); - factory LiveStreamResponse.fromJson(Map json) => _$LiveStreamResponseFromJson(json); + factory LiveStreamResponse.fromJson(Map json) => + _$LiveStreamResponseFromJson(json); static const toJsonFactory = _$LiveStreamResponseToJson; Map toJson() => _$LiveStreamResponseToJson(this); @@ -30101,7 +31068,8 @@ class LiveStreamResponse { String toString() => jsonEncode(this); @override - int get hashCode => const DeepCollectionEquality().hash(mediaSource) ^ runtimeType.hashCode; + int get hashCode => + const DeepCollectionEquality().hash(mediaSource) ^ runtimeType.hashCode; } extension $LiveStreamResponseExtension on LiveStreamResponse { @@ -30120,7 +31088,8 @@ extension $LiveStreamResponseExtension on LiveStreamResponse { class LiveTvInfo { const LiveTvInfo({this.services, this.isEnabled, this.enabledUsers}); - factory LiveTvInfo.fromJson(Map json) => _$LiveTvInfoFromJson(json); + factory LiveTvInfo.fromJson(Map json) => + _$LiveTvInfoFromJson(json); static const toJsonFactory = _$LiveTvInfoToJson; Map toJson() => _$LiveTvInfoToJson(this); @@ -30190,7 +31159,9 @@ extension $LiveTvInfoExtension on LiveTvInfo { return LiveTvInfo( services: (services != null ? services.value : this.services), isEnabled: (isEnabled != null ? isEnabled.value : this.isEnabled), - enabledUsers: (enabledUsers != null ? enabledUsers.value : this.enabledUsers), + enabledUsers: (enabledUsers != null + ? enabledUsers.value + : this.enabledUsers), ); } } @@ -30215,7 +31186,8 @@ class LiveTvOptions { this.saveRecordingImages, }); - factory LiveTvOptions.fromJson(Map json) => _$LiveTvOptionsFromJson(json); + factory LiveTvOptions.fromJson(Map json) => + _$LiveTvOptionsFromJson(json); static const toJsonFactory = _$LiveTvOptionsToJson; Map toJson() => _$LiveTvOptionsToJson(this); @@ -30405,16 +31377,22 @@ extension $LiveTvOptionsExtension on LiveTvOptions { recordingPath: recordingPath ?? this.recordingPath, movieRecordingPath: movieRecordingPath ?? this.movieRecordingPath, seriesRecordingPath: seriesRecordingPath ?? this.seriesRecordingPath, - enableRecordingSubfolders: enableRecordingSubfolders ?? this.enableRecordingSubfolders, + enableRecordingSubfolders: + enableRecordingSubfolders ?? this.enableRecordingSubfolders, enableOriginalAudioWithEncodedRecordings: - enableOriginalAudioWithEncodedRecordings ?? this.enableOriginalAudioWithEncodedRecordings, + enableOriginalAudioWithEncodedRecordings ?? + this.enableOriginalAudioWithEncodedRecordings, tunerHosts: tunerHosts ?? this.tunerHosts, listingProviders: listingProviders ?? this.listingProviders, prePaddingSeconds: prePaddingSeconds ?? this.prePaddingSeconds, postPaddingSeconds: postPaddingSeconds ?? this.postPaddingSeconds, - mediaLocationsCreated: mediaLocationsCreated ?? this.mediaLocationsCreated, - recordingPostProcessor: recordingPostProcessor ?? this.recordingPostProcessor, - recordingPostProcessorArguments: recordingPostProcessorArguments ?? this.recordingPostProcessorArguments, + mediaLocationsCreated: + mediaLocationsCreated ?? this.mediaLocationsCreated, + recordingPostProcessor: + recordingPostProcessor ?? this.recordingPostProcessor, + recordingPostProcessorArguments: + recordingPostProcessorArguments ?? + this.recordingPostProcessorArguments, saveRecordingNFO: saveRecordingNFO ?? this.saveRecordingNFO, saveRecordingImages: saveRecordingImages ?? this.saveRecordingImages, ); @@ -30439,26 +31417,47 @@ extension $LiveTvOptionsExtension on LiveTvOptions { }) { return LiveTvOptions( guideDays: (guideDays != null ? guideDays.value : this.guideDays), - recordingPath: (recordingPath != null ? recordingPath.value : this.recordingPath), - movieRecordingPath: (movieRecordingPath != null ? movieRecordingPath.value : this.movieRecordingPath), - seriesRecordingPath: (seriesRecordingPath != null ? seriesRecordingPath.value : this.seriesRecordingPath), - enableRecordingSubfolders: - (enableRecordingSubfolders != null ? enableRecordingSubfolders.value : this.enableRecordingSubfolders), - enableOriginalAudioWithEncodedRecordings: (enableOriginalAudioWithEncodedRecordings != null + recordingPath: (recordingPath != null + ? recordingPath.value + : this.recordingPath), + movieRecordingPath: (movieRecordingPath != null + ? movieRecordingPath.value + : this.movieRecordingPath), + seriesRecordingPath: (seriesRecordingPath != null + ? seriesRecordingPath.value + : this.seriesRecordingPath), + enableRecordingSubfolders: (enableRecordingSubfolders != null + ? enableRecordingSubfolders.value + : this.enableRecordingSubfolders), + enableOriginalAudioWithEncodedRecordings: + (enableOriginalAudioWithEncodedRecordings != null ? enableOriginalAudioWithEncodedRecordings.value : this.enableOriginalAudioWithEncodedRecordings), tunerHosts: (tunerHosts != null ? tunerHosts.value : this.tunerHosts), - listingProviders: (listingProviders != null ? listingProviders.value : this.listingProviders), - prePaddingSeconds: (prePaddingSeconds != null ? prePaddingSeconds.value : this.prePaddingSeconds), - postPaddingSeconds: (postPaddingSeconds != null ? postPaddingSeconds.value : this.postPaddingSeconds), - mediaLocationsCreated: (mediaLocationsCreated != null ? mediaLocationsCreated.value : this.mediaLocationsCreated), - recordingPostProcessor: - (recordingPostProcessor != null ? recordingPostProcessor.value : this.recordingPostProcessor), + listingProviders: (listingProviders != null + ? listingProviders.value + : this.listingProviders), + prePaddingSeconds: (prePaddingSeconds != null + ? prePaddingSeconds.value + : this.prePaddingSeconds), + postPaddingSeconds: (postPaddingSeconds != null + ? postPaddingSeconds.value + : this.postPaddingSeconds), + mediaLocationsCreated: (mediaLocationsCreated != null + ? mediaLocationsCreated.value + : this.mediaLocationsCreated), + recordingPostProcessor: (recordingPostProcessor != null + ? recordingPostProcessor.value + : this.recordingPostProcessor), recordingPostProcessorArguments: (recordingPostProcessorArguments != null ? recordingPostProcessorArguments.value : this.recordingPostProcessorArguments), - saveRecordingNFO: (saveRecordingNFO != null ? saveRecordingNFO.value : this.saveRecordingNFO), - saveRecordingImages: (saveRecordingImages != null ? saveRecordingImages.value : this.saveRecordingImages), + saveRecordingNFO: (saveRecordingNFO != null + ? saveRecordingNFO.value + : this.saveRecordingNFO), + saveRecordingImages: (saveRecordingImages != null + ? saveRecordingImages.value + : this.saveRecordingImages), ); } } @@ -30476,7 +31475,8 @@ class LiveTvServiceInfo { this.tuners, }); - factory LiveTvServiceInfo.fromJson(Map json) => _$LiveTvServiceInfoFromJson(json); + factory LiveTvServiceInfo.fromJson(Map json) => + _$LiveTvServiceInfoFromJson(json); static const toJsonFactory = _$LiveTvServiceInfoToJson; Map toJson() => _$LiveTvServiceInfoToJson(this); @@ -30508,13 +31508,15 @@ class LiveTvServiceInfo { bool operator ==(Object other) { return identical(this, other) || (other is LiveTvServiceInfo && - (identical(other.name, name) || const DeepCollectionEquality().equals(other.name, name)) && + (identical(other.name, name) || + const DeepCollectionEquality().equals(other.name, name)) && (identical(other.homePageUrl, homePageUrl) || const DeepCollectionEquality().equals( other.homePageUrl, homePageUrl, )) && - (identical(other.status, status) || const DeepCollectionEquality().equals(other.status, status)) && + (identical(other.status, status) || + const DeepCollectionEquality().equals(other.status, status)) && (identical(other.statusMessage, statusMessage) || const DeepCollectionEquality().equals( other.statusMessage, @@ -30535,7 +31537,8 @@ class LiveTvServiceInfo { other.isVisible, isVisible, )) && - (identical(other.tuners, tuners) || const DeepCollectionEquality().equals(other.tuners, tuners))); + (identical(other.tuners, tuners) || + const DeepCollectionEquality().equals(other.tuners, tuners))); } @override @@ -30591,9 +31594,13 @@ extension $LiveTvServiceInfoExtension on LiveTvServiceInfo { name: (name != null ? name.value : this.name), homePageUrl: (homePageUrl != null ? homePageUrl.value : this.homePageUrl), status: (status != null ? status.value : this.status), - statusMessage: (statusMessage != null ? statusMessage.value : this.statusMessage), + statusMessage: (statusMessage != null + ? statusMessage.value + : this.statusMessage), version: (version != null ? version.value : this.version), - hasUpdateAvailable: (hasUpdateAvailable != null ? hasUpdateAvailable.value : this.hasUpdateAvailable), + hasUpdateAvailable: (hasUpdateAvailable != null + ? hasUpdateAvailable.value + : this.hasUpdateAvailable), isVisible: (isVisible != null ? isVisible.value : this.isVisible), tuners: (tuners != null ? tuners.value : this.tuners), ); @@ -30604,7 +31611,8 @@ extension $LiveTvServiceInfoExtension on LiveTvServiceInfo { class LocalizationOption { const LocalizationOption({this.name, this.$Value}); - factory LocalizationOption.fromJson(Map json) => _$LocalizationOptionFromJson(json); + factory LocalizationOption.fromJson(Map json) => + _$LocalizationOptionFromJson(json); static const toJsonFactory = _$LocalizationOptionToJson; Map toJson() => _$LocalizationOptionToJson(this); @@ -30619,8 +31627,10 @@ class LocalizationOption { bool operator ==(Object other) { return identical(this, other) || (other is LocalizationOption && - (identical(other.name, name) || const DeepCollectionEquality().equals(other.name, name)) && - (identical(other.$Value, $Value) || const DeepCollectionEquality().equals(other.$Value, $Value))); + (identical(other.name, name) || + const DeepCollectionEquality().equals(other.name, name)) && + (identical(other.$Value, $Value) || + const DeepCollectionEquality().equals(other.$Value, $Value))); } @override @@ -30628,7 +31638,9 @@ class LocalizationOption { @override int get hashCode => - const DeepCollectionEquality().hash(name) ^ const DeepCollectionEquality().hash($Value) ^ runtimeType.hashCode; + const DeepCollectionEquality().hash(name) ^ + const DeepCollectionEquality().hash($Value) ^ + runtimeType.hashCode; } extension $LocalizationOptionExtension on LocalizationOption { @@ -30654,7 +31666,8 @@ extension $LocalizationOptionExtension on LocalizationOption { class LogFile { const LogFile({this.dateCreated, this.dateModified, this.size, this.name}); - factory LogFile.fromJson(Map json) => _$LogFileFromJson(json); + factory LogFile.fromJson(Map json) => + _$LogFileFromJson(json); static const toJsonFactory = _$LogFileToJson; Map toJson() => _$LogFileToJson(this); @@ -30683,8 +31696,10 @@ class LogFile { other.dateModified, dateModified, )) && - (identical(other.size, size) || const DeepCollectionEquality().equals(other.size, size)) && - (identical(other.name, name) || const DeepCollectionEquality().equals(other.name, name))); + (identical(other.size, size) || + const DeepCollectionEquality().equals(other.size, size)) && + (identical(other.name, name) || + const DeepCollectionEquality().equals(other.name, name))); } @override @@ -30722,7 +31737,9 @@ extension $LogFileExtension on LogFile { }) { return LogFile( dateCreated: (dateCreated != null ? dateCreated.value : this.dateCreated), - dateModified: (dateModified != null ? dateModified.value : this.dateModified), + dateModified: (dateModified != null + ? dateModified.value + : this.dateModified), size: (size != null ? size.value : this.size), name: (name != null ? name.value : this.name), ); @@ -30733,7 +31750,8 @@ extension $LogFileExtension on LogFile { class LoginInfoInput { const LoginInfoInput({required this.username, required this.password}); - factory LoginInfoInput.fromJson(Map json) => _$LoginInfoInputFromJson(json); + factory LoginInfoInput.fromJson(Map json) => + _$LoginInfoInputFromJson(json); static const toJsonFactory = _$LoginInfoInputToJson; Map toJson() => _$LoginInfoInputToJson(this); @@ -30793,7 +31811,8 @@ extension $LoginInfoInputExtension on LoginInfoInput { class LyricDto { const LyricDto({this.metadata, this.lyrics}); - factory LyricDto.fromJson(Map json) => _$LyricDtoFromJson(json); + factory LyricDto.fromJson(Map json) => + _$LyricDtoFromJson(json); static const toJsonFactory = _$LyricDtoToJson; Map toJson() => _$LyricDtoToJson(this); @@ -30813,7 +31832,8 @@ class LyricDto { other.metadata, metadata, )) && - (identical(other.lyrics, lyrics) || const DeepCollectionEquality().equals(other.lyrics, lyrics))); + (identical(other.lyrics, lyrics) || + const DeepCollectionEquality().equals(other.lyrics, lyrics))); } @override @@ -30849,7 +31869,8 @@ extension $LyricDtoExtension on LyricDto { class LyricLine { const LyricLine({this.text, this.start, this.cues}); - factory LyricLine.fromJson(Map json) => _$LyricLineFromJson(json); + factory LyricLine.fromJson(Map json) => + _$LyricLineFromJson(json); static const toJsonFactory = _$LyricLineToJson; Map toJson() => _$LyricLineToJson(this); @@ -30866,9 +31887,12 @@ class LyricLine { bool operator ==(Object other) { return identical(this, other) || (other is LyricLine && - (identical(other.text, text) || const DeepCollectionEquality().equals(other.text, text)) && - (identical(other.start, start) || const DeepCollectionEquality().equals(other.start, start)) && - (identical(other.cues, cues) || const DeepCollectionEquality().equals(other.cues, cues))); + (identical(other.text, text) || + const DeepCollectionEquality().equals(other.text, text)) && + (identical(other.start, start) || + const DeepCollectionEquality().equals(other.start, start)) && + (identical(other.cues, cues) || + const DeepCollectionEquality().equals(other.cues, cues))); } @override @@ -30908,7 +31932,8 @@ extension $LyricLineExtension on LyricLine { class LyricLineCue { const LyricLineCue({this.position, this.endPosition, this.start, this.end}); - factory LyricLineCue.fromJson(Map json) => _$LyricLineCueFromJson(json); + factory LyricLineCue.fromJson(Map json) => + _$LyricLineCueFromJson(json); static const toJsonFactory = _$LyricLineCueToJson; Map toJson() => _$LyricLineCueToJson(this); @@ -30937,8 +31962,10 @@ class LyricLineCue { other.endPosition, endPosition, )) && - (identical(other.start, start) || const DeepCollectionEquality().equals(other.start, start)) && - (identical(other.end, end) || const DeepCollectionEquality().equals(other.end, end))); + (identical(other.start, start) || + const DeepCollectionEquality().equals(other.start, start)) && + (identical(other.end, end) || + const DeepCollectionEquality().equals(other.end, end))); } @override @@ -30998,7 +32025,8 @@ class LyricMetadata { this.isSynced, }); - factory LyricMetadata.fromJson(Map json) => _$LyricMetadataFromJson(json); + factory LyricMetadata.fromJson(Map json) => + _$LyricMetadataFromJson(json); static const toJsonFactory = _$LyricMetadataToJson; Map toJson() => _$LyricMetadataToJson(this); @@ -31029,13 +32057,20 @@ class LyricMetadata { bool operator ==(Object other) { return identical(this, other) || (other is LyricMetadata && - (identical(other.artist, artist) || const DeepCollectionEquality().equals(other.artist, artist)) && - (identical(other.album, album) || const DeepCollectionEquality().equals(other.album, album)) && - (identical(other.title, title) || const DeepCollectionEquality().equals(other.title, title)) && - (identical(other.author, author) || const DeepCollectionEquality().equals(other.author, author)) && - (identical(other.length, length) || const DeepCollectionEquality().equals(other.length, length)) && - (identical(other.by, by) || const DeepCollectionEquality().equals(other.by, by)) && - (identical(other.offset, offset) || const DeepCollectionEquality().equals(other.offset, offset)) && + (identical(other.artist, artist) || + const DeepCollectionEquality().equals(other.artist, artist)) && + (identical(other.album, album) || + const DeepCollectionEquality().equals(other.album, album)) && + (identical(other.title, title) || + const DeepCollectionEquality().equals(other.title, title)) && + (identical(other.author, author) || + const DeepCollectionEquality().equals(other.author, author)) && + (identical(other.length, length) || + const DeepCollectionEquality().equals(other.length, length)) && + (identical(other.by, by) || + const DeepCollectionEquality().equals(other.by, by)) && + (identical(other.offset, offset) || + const DeepCollectionEquality().equals(other.offset, offset)) && (identical(other.creator, creator) || const DeepCollectionEquality().equals( other.creator, @@ -31137,7 +32172,8 @@ class MediaAttachment { this.deliveryUrl, }); - factory MediaAttachment.fromJson(Map json) => _$MediaAttachmentFromJson(json); + factory MediaAttachment.fromJson(Map json) => + _$MediaAttachmentFromJson(json); static const toJsonFactory = _$MediaAttachmentToJson; Map toJson() => _$MediaAttachmentToJson(this); @@ -31162,7 +32198,8 @@ class MediaAttachment { bool operator ==(Object other) { return identical(this, other) || (other is MediaAttachment && - (identical(other.codec, codec) || const DeepCollectionEquality().equals(other.codec, codec)) && + (identical(other.codec, codec) || + const DeepCollectionEquality().equals(other.codec, codec)) && (identical(other.codecTag, codecTag) || const DeepCollectionEquality().equals( other.codecTag, @@ -31173,7 +32210,8 @@ class MediaAttachment { other.comment, comment, )) && - (identical(other.index, index) || const DeepCollectionEquality().equals(other.index, index)) && + (identical(other.index, index) || + const DeepCollectionEquality().equals(other.index, index)) && (identical(other.fileName, fileName) || const DeepCollectionEquality().equals( other.fileName, @@ -31252,7 +32290,8 @@ extension $MediaAttachmentExtension on MediaAttachment { class MediaPathDto { const MediaPathDto({required this.name, this.path, this.pathInfo}); - factory MediaPathDto.fromJson(Map json) => _$MediaPathDtoFromJson(json); + factory MediaPathDto.fromJson(Map json) => + _$MediaPathDtoFromJson(json); static const toJsonFactory = _$MediaPathDtoToJson; Map toJson() => _$MediaPathDtoToJson(this); @@ -31269,8 +32308,10 @@ class MediaPathDto { bool operator ==(Object other) { return identical(this, other) || (other is MediaPathDto && - (identical(other.name, name) || const DeepCollectionEquality().equals(other.name, name)) && - (identical(other.path, path) || const DeepCollectionEquality().equals(other.path, path)) && + (identical(other.name, name) || + const DeepCollectionEquality().equals(other.name, name)) && + (identical(other.path, path) || + const DeepCollectionEquality().equals(other.path, path)) && (identical(other.pathInfo, pathInfo) || const DeepCollectionEquality().equals( other.pathInfo, @@ -31315,7 +32356,8 @@ extension $MediaPathDtoExtension on MediaPathDto { class MediaPathInfo { const MediaPathInfo({this.path}); - factory MediaPathInfo.fromJson(Map json) => _$MediaPathInfoFromJson(json); + factory MediaPathInfo.fromJson(Map json) => + _$MediaPathInfoFromJson(json); static const toJsonFactory = _$MediaPathInfoToJson; Map toJson() => _$MediaPathInfoToJson(this); @@ -31328,14 +32370,16 @@ class MediaPathInfo { bool operator ==(Object other) { return identical(this, other) || (other is MediaPathInfo && - (identical(other.path, path) || const DeepCollectionEquality().equals(other.path, path))); + (identical(other.path, path) || + const DeepCollectionEquality().equals(other.path, path))); } @override String toString() => jsonEncode(this); @override - int get hashCode => const DeepCollectionEquality().hash(path) ^ runtimeType.hashCode; + int get hashCode => + const DeepCollectionEquality().hash(path) ^ runtimeType.hashCode; } extension $MediaPathInfoExtension on MediaPathInfo { @@ -31358,7 +32402,8 @@ class MediaSegmentDto { this.endTicks, }); - factory MediaSegmentDto.fromJson(Map json) => _$MediaSegmentDtoFromJson(json); + factory MediaSegmentDto.fromJson(Map json) => + _$MediaSegmentDtoFromJson(json); static const toJsonFactory = _$MediaSegmentDtoToJson; Map toJson() => _$MediaSegmentDtoToJson(this); @@ -31376,8 +32421,7 @@ class MediaSegmentDto { final enums.MediaSegmentType? type; static enums.MediaSegmentType? mediaSegmentTypeTypeNullableFromJson( Object? value, - ) => - mediaSegmentTypeNullableFromJson(value, enums.MediaSegmentType.unknown); + ) => mediaSegmentTypeNullableFromJson(value, enums.MediaSegmentType.unknown); @JsonKey(name: 'StartTicks', includeIfNull: false) final int? startTicks; @@ -31389,9 +32433,12 @@ class MediaSegmentDto { bool operator ==(Object other) { return identical(this, other) || (other is MediaSegmentDto && - (identical(other.id, id) || const DeepCollectionEquality().equals(other.id, id)) && - (identical(other.itemId, itemId) || const DeepCollectionEquality().equals(other.itemId, itemId)) && - (identical(other.type, type) || const DeepCollectionEquality().equals(other.type, type)) && + (identical(other.id, id) || + const DeepCollectionEquality().equals(other.id, id)) && + (identical(other.itemId, itemId) || + const DeepCollectionEquality().equals(other.itemId, itemId)) && + (identical(other.type, type) || + const DeepCollectionEquality().equals(other.type, type)) && (identical(other.startTicks, startTicks) || const DeepCollectionEquality().equals( other.startTicks, @@ -31459,7 +32506,8 @@ class MediaSegmentDtoQueryResult { this.startIndex, }); - factory MediaSegmentDtoQueryResult.fromJson(Map json) => _$MediaSegmentDtoQueryResultFromJson(json); + factory MediaSegmentDtoQueryResult.fromJson(Map json) => + _$MediaSegmentDtoQueryResultFromJson(json); static const toJsonFactory = _$MediaSegmentDtoQueryResultToJson; Map toJson() => _$MediaSegmentDtoQueryResultToJson(this); @@ -31480,7 +32528,8 @@ class MediaSegmentDtoQueryResult { bool operator ==(Object other) { return identical(this, other) || (other is MediaSegmentDtoQueryResult && - (identical(other.items, items) || const DeepCollectionEquality().equals(other.items, items)) && + (identical(other.items, items) || + const DeepCollectionEquality().equals(other.items, items)) && (identical(other.totalRecordCount, totalRecordCount) || const DeepCollectionEquality().equals( other.totalRecordCount, @@ -31524,7 +32573,9 @@ extension $MediaSegmentDtoQueryResultExtension on MediaSegmentDtoQueryResult { }) { return MediaSegmentDtoQueryResult( items: (items != null ? items.value : this.items), - totalRecordCount: (totalRecordCount != null ? totalRecordCount.value : this.totalRecordCount), + totalRecordCount: (totalRecordCount != null + ? totalRecordCount.value + : this.totalRecordCount), startIndex: (startIndex != null ? startIndex.value : this.startIndex), ); } @@ -31580,7 +32631,8 @@ class MediaSourceInfo { this.hasSegments, }); - factory MediaSourceInfo.fromJson(Map json) => _$MediaSourceInfoFromJson(json); + factory MediaSourceInfo.fromJson(Map json) => + _$MediaSourceInfoFromJson(json); static const toJsonFactory = _$MediaSourceInfoToJson; Map toJson() => _$MediaSourceInfoToJson(this); @@ -31738,8 +32790,10 @@ class MediaSourceInfo { other.protocol, protocol, )) && - (identical(other.id, id) || const DeepCollectionEquality().equals(other.id, id)) && - (identical(other.path, path) || const DeepCollectionEquality().equals(other.path, path)) && + (identical(other.id, id) || + const DeepCollectionEquality().equals(other.id, id)) && + (identical(other.path, path) || + const DeepCollectionEquality().equals(other.path, path)) && (identical(other.encoderPath, encoderPath) || const DeepCollectionEquality().equals( other.encoderPath, @@ -31750,20 +32804,24 @@ class MediaSourceInfo { other.encoderProtocol, encoderProtocol, )) && - (identical(other.type, type) || const DeepCollectionEquality().equals(other.type, type)) && + (identical(other.type, type) || + const DeepCollectionEquality().equals(other.type, type)) && (identical(other.container, container) || const DeepCollectionEquality().equals( other.container, container, )) && - (identical(other.size, size) || const DeepCollectionEquality().equals(other.size, size)) && - (identical(other.name, name) || const DeepCollectionEquality().equals(other.name, name)) && + (identical(other.size, size) || + const DeepCollectionEquality().equals(other.size, size)) && + (identical(other.name, name) || + const DeepCollectionEquality().equals(other.name, name)) && (identical(other.isRemote, isRemote) || const DeepCollectionEquality().equals( other.isRemote, isRemote, )) && - (identical(other.eTag, eTag) || const DeepCollectionEquality().equals(other.eTag, eTag)) && + (identical(other.eTag, eTag) || + const DeepCollectionEquality().equals(other.eTag, eTag)) && (identical(other.runTimeTicks, runTimeTicks) || const DeepCollectionEquality().equals( other.runTimeTicks, @@ -32062,7 +33120,8 @@ extension $MediaSourceInfoExtension on MediaSourceInfo { isRemote: isRemote ?? this.isRemote, eTag: eTag ?? this.eTag, runTimeTicks: runTimeTicks ?? this.runTimeTicks, - readAtNativeFramerate: readAtNativeFramerate ?? this.readAtNativeFramerate, + readAtNativeFramerate: + readAtNativeFramerate ?? this.readAtNativeFramerate, ignoreDts: ignoreDts ?? this.ignoreDts, ignoreIndex: ignoreIndex ?? this.ignoreIndex, genPtsInput: genPtsInput ?? this.genPtsInput, @@ -32071,7 +33130,8 @@ extension $MediaSourceInfoExtension on MediaSourceInfo { supportsDirectPlay: supportsDirectPlay ?? this.supportsDirectPlay, isInfiniteStream: isInfiniteStream ?? this.isInfiniteStream, useMostCompatibleTranscodingProfile: - useMostCompatibleTranscodingProfile ?? this.useMostCompatibleTranscodingProfile, + useMostCompatibleTranscodingProfile ?? + this.useMostCompatibleTranscodingProfile, requiresOpening: requiresOpening ?? this.requiresOpening, openToken: openToken ?? this.openToken, requiresClosing: requiresClosing ?? this.requiresClosing, @@ -32086,15 +33146,19 @@ extension $MediaSourceInfoExtension on MediaSourceInfo { mediaAttachments: mediaAttachments ?? this.mediaAttachments, formats: formats ?? this.formats, bitrate: bitrate ?? this.bitrate, - fallbackMaxStreamingBitrate: fallbackMaxStreamingBitrate ?? this.fallbackMaxStreamingBitrate, + fallbackMaxStreamingBitrate: + fallbackMaxStreamingBitrate ?? this.fallbackMaxStreamingBitrate, timestamp: timestamp ?? this.timestamp, requiredHttpHeaders: requiredHttpHeaders ?? this.requiredHttpHeaders, transcodingUrl: transcodingUrl ?? this.transcodingUrl, - transcodingSubProtocol: transcodingSubProtocol ?? this.transcodingSubProtocol, + transcodingSubProtocol: + transcodingSubProtocol ?? this.transcodingSubProtocol, transcodingContainer: transcodingContainer ?? this.transcodingContainer, analyzeDurationMs: analyzeDurationMs ?? this.analyzeDurationMs, - defaultAudioStreamIndex: defaultAudioStreamIndex ?? this.defaultAudioStreamIndex, - defaultSubtitleStreamIndex: defaultSubtitleStreamIndex ?? this.defaultSubtitleStreamIndex, + defaultAudioStreamIndex: + defaultAudioStreamIndex ?? this.defaultAudioStreamIndex, + defaultSubtitleStreamIndex: + defaultSubtitleStreamIndex ?? this.defaultSubtitleStreamIndex, hasSegments: hasSegments ?? this.hasSegments, ); } @@ -32151,52 +33215,95 @@ extension $MediaSourceInfoExtension on MediaSourceInfo { id: (id != null ? id.value : this.id), path: (path != null ? path.value : this.path), encoderPath: (encoderPath != null ? encoderPath.value : this.encoderPath), - encoderProtocol: (encoderProtocol != null ? encoderProtocol.value : this.encoderProtocol), + encoderProtocol: (encoderProtocol != null + ? encoderProtocol.value + : this.encoderProtocol), type: (type != null ? type.value : this.type), container: (container != null ? container.value : this.container), size: (size != null ? size.value : this.size), name: (name != null ? name.value : this.name), isRemote: (isRemote != null ? isRemote.value : this.isRemote), eTag: (eTag != null ? eTag.value : this.eTag), - runTimeTicks: (runTimeTicks != null ? runTimeTicks.value : this.runTimeTicks), - readAtNativeFramerate: (readAtNativeFramerate != null ? readAtNativeFramerate.value : this.readAtNativeFramerate), + runTimeTicks: (runTimeTicks != null + ? runTimeTicks.value + : this.runTimeTicks), + readAtNativeFramerate: (readAtNativeFramerate != null + ? readAtNativeFramerate.value + : this.readAtNativeFramerate), ignoreDts: (ignoreDts != null ? ignoreDts.value : this.ignoreDts), ignoreIndex: (ignoreIndex != null ? ignoreIndex.value : this.ignoreIndex), genPtsInput: (genPtsInput != null ? genPtsInput.value : this.genPtsInput), - supportsTranscoding: (supportsTranscoding != null ? supportsTranscoding.value : this.supportsTranscoding), - supportsDirectStream: (supportsDirectStream != null ? supportsDirectStream.value : this.supportsDirectStream), - supportsDirectPlay: (supportsDirectPlay != null ? supportsDirectPlay.value : this.supportsDirectPlay), - isInfiniteStream: (isInfiniteStream != null ? isInfiniteStream.value : this.isInfiniteStream), - useMostCompatibleTranscodingProfile: (useMostCompatibleTranscodingProfile != null + supportsTranscoding: (supportsTranscoding != null + ? supportsTranscoding.value + : this.supportsTranscoding), + supportsDirectStream: (supportsDirectStream != null + ? supportsDirectStream.value + : this.supportsDirectStream), + supportsDirectPlay: (supportsDirectPlay != null + ? supportsDirectPlay.value + : this.supportsDirectPlay), + isInfiniteStream: (isInfiniteStream != null + ? isInfiniteStream.value + : this.isInfiniteStream), + useMostCompatibleTranscodingProfile: + (useMostCompatibleTranscodingProfile != null ? useMostCompatibleTranscodingProfile.value : this.useMostCompatibleTranscodingProfile), - requiresOpening: (requiresOpening != null ? requiresOpening.value : this.requiresOpening), + requiresOpening: (requiresOpening != null + ? requiresOpening.value + : this.requiresOpening), openToken: (openToken != null ? openToken.value : this.openToken), - requiresClosing: (requiresClosing != null ? requiresClosing.value : this.requiresClosing), - liveStreamId: (liveStreamId != null ? liveStreamId.value : this.liveStreamId), + requiresClosing: (requiresClosing != null + ? requiresClosing.value + : this.requiresClosing), + liveStreamId: (liveStreamId != null + ? liveStreamId.value + : this.liveStreamId), bufferMs: (bufferMs != null ? bufferMs.value : this.bufferMs), - requiresLooping: (requiresLooping != null ? requiresLooping.value : this.requiresLooping), - supportsProbing: (supportsProbing != null ? supportsProbing.value : this.supportsProbing), + requiresLooping: (requiresLooping != null + ? requiresLooping.value + : this.requiresLooping), + supportsProbing: (supportsProbing != null + ? supportsProbing.value + : this.supportsProbing), videoType: (videoType != null ? videoType.value : this.videoType), isoType: (isoType != null ? isoType.value : this.isoType), - video3DFormat: (video3DFormat != null ? video3DFormat.value : this.video3DFormat), - mediaStreams: (mediaStreams != null ? mediaStreams.value : this.mediaStreams), - mediaAttachments: (mediaAttachments != null ? mediaAttachments.value : this.mediaAttachments), + video3DFormat: (video3DFormat != null + ? video3DFormat.value + : this.video3DFormat), + mediaStreams: (mediaStreams != null + ? mediaStreams.value + : this.mediaStreams), + mediaAttachments: (mediaAttachments != null + ? mediaAttachments.value + : this.mediaAttachments), formats: (formats != null ? formats.value : this.formats), bitrate: (bitrate != null ? bitrate.value : this.bitrate), - fallbackMaxStreamingBitrate: - (fallbackMaxStreamingBitrate != null ? fallbackMaxStreamingBitrate.value : this.fallbackMaxStreamingBitrate), + fallbackMaxStreamingBitrate: (fallbackMaxStreamingBitrate != null + ? fallbackMaxStreamingBitrate.value + : this.fallbackMaxStreamingBitrate), timestamp: (timestamp != null ? timestamp.value : this.timestamp), - requiredHttpHeaders: (requiredHttpHeaders != null ? requiredHttpHeaders.value : this.requiredHttpHeaders), - transcodingUrl: (transcodingUrl != null ? transcodingUrl.value : this.transcodingUrl), - transcodingSubProtocol: - (transcodingSubProtocol != null ? transcodingSubProtocol.value : this.transcodingSubProtocol), - transcodingContainer: (transcodingContainer != null ? transcodingContainer.value : this.transcodingContainer), - analyzeDurationMs: (analyzeDurationMs != null ? analyzeDurationMs.value : this.analyzeDurationMs), - defaultAudioStreamIndex: - (defaultAudioStreamIndex != null ? defaultAudioStreamIndex.value : this.defaultAudioStreamIndex), - defaultSubtitleStreamIndex: - (defaultSubtitleStreamIndex != null ? defaultSubtitleStreamIndex.value : this.defaultSubtitleStreamIndex), + requiredHttpHeaders: (requiredHttpHeaders != null + ? requiredHttpHeaders.value + : this.requiredHttpHeaders), + transcodingUrl: (transcodingUrl != null + ? transcodingUrl.value + : this.transcodingUrl), + transcodingSubProtocol: (transcodingSubProtocol != null + ? transcodingSubProtocol.value + : this.transcodingSubProtocol), + transcodingContainer: (transcodingContainer != null + ? transcodingContainer.value + : this.transcodingContainer), + analyzeDurationMs: (analyzeDurationMs != null + ? analyzeDurationMs.value + : this.analyzeDurationMs), + defaultAudioStreamIndex: (defaultAudioStreamIndex != null + ? defaultAudioStreamIndex.value + : this.defaultAudioStreamIndex), + defaultSubtitleStreamIndex: (defaultSubtitleStreamIndex != null + ? defaultSubtitleStreamIndex.value + : this.defaultSubtitleStreamIndex), hasSegments: (hasSegments != null ? hasSegments.value : this.hasSegments), ); } @@ -32271,7 +33378,8 @@ class MediaStream { this.isAnamorphic, }); - factory MediaStream.fromJson(Map json) => _$MediaStreamFromJson(json); + factory MediaStream.fromJson(Map json) => + _$MediaStreamFromJson(json); static const toJsonFactory = _$MediaStreamToJson; Map toJson() => _$MediaStreamToJson(this); @@ -32327,8 +33435,7 @@ class MediaStream { final enums.VideoRange? videoRange; static enums.VideoRange? videoRangeVideoRangeNullableFromJson( Object? value, - ) => - videoRangeNullableFromJson(value, enums.VideoRange.unknown); + ) => videoRangeNullableFromJson(value, enums.VideoRange.unknown); @JsonKey( name: 'VideoRangeType', @@ -32339,8 +33446,7 @@ class MediaStream { final enums.VideoRangeType? videoRangeType; static enums.VideoRangeType? videoRangeTypeVideoRangeTypeNullableFromJson( Object? value, - ) => - videoRangeTypeNullableFromJson(value, enums.VideoRangeType.unknown); + ) => videoRangeTypeNullableFromJson(value, enums.VideoRangeType.unknown); @JsonKey(name: 'VideoDoViTitle', includeIfNull: false) final String? videoDoViTitle; @@ -32351,7 +33457,8 @@ class MediaStream { fromJson: audioSpatialFormatAudioSpatialFormatNullableFromJson, ) final enums.AudioSpatialFormat? audioSpatialFormat; - static enums.AudioSpatialFormat? audioSpatialFormatAudioSpatialFormatNullableFromJson(Object? value) => + static enums.AudioSpatialFormat? + audioSpatialFormatAudioSpatialFormatNullableFromJson(Object? value) => audioSpatialFormatNullableFromJson(value, enums.AudioSpatialFormat.none); @JsonKey(name: 'LocalizedUndefined', includeIfNull: false) @@ -32448,7 +33555,8 @@ class MediaStream { bool operator ==(Object other) { return identical(this, other) || (other is MediaStream && - (identical(other.codec, codec) || const DeepCollectionEquality().equals(other.codec, codec)) && + (identical(other.codec, codec) || + const DeepCollectionEquality().equals(other.codec, codec)) && (identical(other.codecTag, codecTag) || const DeepCollectionEquality().equals( other.codecTag, @@ -32542,7 +33650,8 @@ class MediaStream { other.codecTimeBase, codecTimeBase, )) && - (identical(other.title, title) || const DeepCollectionEquality().equals(other.title, title)) && + (identical(other.title, title) || + const DeepCollectionEquality().equals(other.title, title)) && (identical(other.hdr10PlusPresentFlag, hdr10PlusPresentFlag) || const DeepCollectionEquality().equals( other.hdr10PlusPresentFlag, @@ -32611,7 +33720,8 @@ class MediaStream { other.isInterlaced, isInterlaced, )) && - (identical(other.isAVC, isAVC) || const DeepCollectionEquality().equals(other.isAVC, isAVC)) && + (identical(other.isAVC, isAVC) || + const DeepCollectionEquality().equals(other.isAVC, isAVC)) && (identical(other.channelLayout, channelLayout) || const DeepCollectionEquality().equals( other.channelLayout, @@ -32662,8 +33772,10 @@ class MediaStream { other.isHearingImpaired, isHearingImpaired, )) && - (identical(other.height, height) || const DeepCollectionEquality().equals(other.height, height)) && - (identical(other.width, width) || const DeepCollectionEquality().equals(other.width, width)) && + (identical(other.height, height) || + const DeepCollectionEquality().equals(other.height, height)) && + (identical(other.width, width) || + const DeepCollectionEquality().equals(other.width, width)) && (identical(other.averageFrameRate, averageFrameRate) || const DeepCollectionEquality().equals( other.averageFrameRate, @@ -32684,14 +33796,17 @@ class MediaStream { other.profile, profile, )) && - (identical(other.type, type) || const DeepCollectionEquality().equals(other.type, type)) && + (identical(other.type, type) || + const DeepCollectionEquality().equals(other.type, type)) && (identical(other.aspectRatio, aspectRatio) || const DeepCollectionEquality().equals( other.aspectRatio, aspectRatio, )) && - (identical(other.index, index) || const DeepCollectionEquality().equals(other.index, index)) && - (identical(other.score, score) || const DeepCollectionEquality().equals(other.score, score)) && + (identical(other.index, index) || + const DeepCollectionEquality().equals(other.index, index)) && + (identical(other.score, score) || + const DeepCollectionEquality().equals(other.score, score)) && (identical(other.isExternal, isExternal) || const DeepCollectionEquality().equals( other.isExternal, @@ -32722,13 +33837,15 @@ class MediaStream { other.supportsExternalStream, supportsExternalStream, )) && - (identical(other.path, path) || const DeepCollectionEquality().equals(other.path, path)) && + (identical(other.path, path) || + const DeepCollectionEquality().equals(other.path, path)) && (identical(other.pixelFormat, pixelFormat) || const DeepCollectionEquality().equals( other.pixelFormat, pixelFormat, )) && - (identical(other.level, level) || const DeepCollectionEquality().equals(other.level, level)) && + (identical(other.level, level) || + const DeepCollectionEquality().equals(other.level, level)) && (identical(other.isAnamorphic, isAnamorphic) || const DeepCollectionEquality().equals( other.isAnamorphic, @@ -32890,7 +34007,8 @@ extension $MediaStreamExtension on MediaStream { rpuPresentFlag: rpuPresentFlag ?? this.rpuPresentFlag, elPresentFlag: elPresentFlag ?? this.elPresentFlag, blPresentFlag: blPresentFlag ?? this.blPresentFlag, - dvBlSignalCompatibilityId: dvBlSignalCompatibilityId ?? this.dvBlSignalCompatibilityId, + dvBlSignalCompatibilityId: + dvBlSignalCompatibilityId ?? this.dvBlSignalCompatibilityId, rotation: rotation ?? this.rotation, comment: comment ?? this.comment, timeBase: timeBase ?? this.timeBase, @@ -32905,7 +34023,8 @@ extension $MediaStreamExtension on MediaStream { localizedDefault: localizedDefault ?? this.localizedDefault, localizedForced: localizedForced ?? this.localizedForced, localizedExternal: localizedExternal ?? this.localizedExternal, - localizedHearingImpaired: localizedHearingImpaired ?? this.localizedHearingImpaired, + localizedHearingImpaired: + localizedHearingImpaired ?? this.localizedHearingImpaired, displayTitle: displayTitle ?? this.displayTitle, nalLengthSize: nalLengthSize ?? this.nalLengthSize, isInterlaced: isInterlaced ?? this.isInterlaced, @@ -32935,7 +34054,8 @@ extension $MediaStreamExtension on MediaStream { deliveryUrl: deliveryUrl ?? this.deliveryUrl, isExternalUrl: isExternalUrl ?? this.isExternalUrl, isTextSubtitleStream: isTextSubtitleStream ?? this.isTextSubtitleStream, - supportsExternalStream: supportsExternalStream ?? this.supportsExternalStream, + supportsExternalStream: + supportsExternalStream ?? this.supportsExternalStream, path: path ?? this.path, pixelFormat: pixelFormat ?? this.pixelFormat, level: level ?? this.level, @@ -33015,68 +34135,129 @@ extension $MediaStreamExtension on MediaStream { language: (language != null ? language.value : this.language), colorRange: (colorRange != null ? colorRange.value : this.colorRange), colorSpace: (colorSpace != null ? colorSpace.value : this.colorSpace), - colorTransfer: (colorTransfer != null ? colorTransfer.value : this.colorTransfer), - colorPrimaries: (colorPrimaries != null ? colorPrimaries.value : this.colorPrimaries), - dvVersionMajor: (dvVersionMajor != null ? dvVersionMajor.value : this.dvVersionMajor), - dvVersionMinor: (dvVersionMinor != null ? dvVersionMinor.value : this.dvVersionMinor), + colorTransfer: (colorTransfer != null + ? colorTransfer.value + : this.colorTransfer), + colorPrimaries: (colorPrimaries != null + ? colorPrimaries.value + : this.colorPrimaries), + dvVersionMajor: (dvVersionMajor != null + ? dvVersionMajor.value + : this.dvVersionMajor), + dvVersionMinor: (dvVersionMinor != null + ? dvVersionMinor.value + : this.dvVersionMinor), dvProfile: (dvProfile != null ? dvProfile.value : this.dvProfile), dvLevel: (dvLevel != null ? dvLevel.value : this.dvLevel), - rpuPresentFlag: (rpuPresentFlag != null ? rpuPresentFlag.value : this.rpuPresentFlag), - elPresentFlag: (elPresentFlag != null ? elPresentFlag.value : this.elPresentFlag), - blPresentFlag: (blPresentFlag != null ? blPresentFlag.value : this.blPresentFlag), - dvBlSignalCompatibilityId: - (dvBlSignalCompatibilityId != null ? dvBlSignalCompatibilityId.value : this.dvBlSignalCompatibilityId), + rpuPresentFlag: (rpuPresentFlag != null + ? rpuPresentFlag.value + : this.rpuPresentFlag), + elPresentFlag: (elPresentFlag != null + ? elPresentFlag.value + : this.elPresentFlag), + blPresentFlag: (blPresentFlag != null + ? blPresentFlag.value + : this.blPresentFlag), + dvBlSignalCompatibilityId: (dvBlSignalCompatibilityId != null + ? dvBlSignalCompatibilityId.value + : this.dvBlSignalCompatibilityId), rotation: (rotation != null ? rotation.value : this.rotation), comment: (comment != null ? comment.value : this.comment), timeBase: (timeBase != null ? timeBase.value : this.timeBase), - codecTimeBase: (codecTimeBase != null ? codecTimeBase.value : this.codecTimeBase), + codecTimeBase: (codecTimeBase != null + ? codecTimeBase.value + : this.codecTimeBase), title: (title != null ? title.value : this.title), - hdr10PlusPresentFlag: (hdr10PlusPresentFlag != null ? hdr10PlusPresentFlag.value : this.hdr10PlusPresentFlag), + hdr10PlusPresentFlag: (hdr10PlusPresentFlag != null + ? hdr10PlusPresentFlag.value + : this.hdr10PlusPresentFlag), videoRange: (videoRange != null ? videoRange.value : this.videoRange), - videoRangeType: (videoRangeType != null ? videoRangeType.value : this.videoRangeType), - videoDoViTitle: (videoDoViTitle != null ? videoDoViTitle.value : this.videoDoViTitle), - audioSpatialFormat: (audioSpatialFormat != null ? audioSpatialFormat.value : this.audioSpatialFormat), - localizedUndefined: (localizedUndefined != null ? localizedUndefined.value : this.localizedUndefined), - localizedDefault: (localizedDefault != null ? localizedDefault.value : this.localizedDefault), - localizedForced: (localizedForced != null ? localizedForced.value : this.localizedForced), - localizedExternal: (localizedExternal != null ? localizedExternal.value : this.localizedExternal), - localizedHearingImpaired: - (localizedHearingImpaired != null ? localizedHearingImpaired.value : this.localizedHearingImpaired), - displayTitle: (displayTitle != null ? displayTitle.value : this.displayTitle), - nalLengthSize: (nalLengthSize != null ? nalLengthSize.value : this.nalLengthSize), - isInterlaced: (isInterlaced != null ? isInterlaced.value : this.isInterlaced), + videoRangeType: (videoRangeType != null + ? videoRangeType.value + : this.videoRangeType), + videoDoViTitle: (videoDoViTitle != null + ? videoDoViTitle.value + : this.videoDoViTitle), + audioSpatialFormat: (audioSpatialFormat != null + ? audioSpatialFormat.value + : this.audioSpatialFormat), + localizedUndefined: (localizedUndefined != null + ? localizedUndefined.value + : this.localizedUndefined), + localizedDefault: (localizedDefault != null + ? localizedDefault.value + : this.localizedDefault), + localizedForced: (localizedForced != null + ? localizedForced.value + : this.localizedForced), + localizedExternal: (localizedExternal != null + ? localizedExternal.value + : this.localizedExternal), + localizedHearingImpaired: (localizedHearingImpaired != null + ? localizedHearingImpaired.value + : this.localizedHearingImpaired), + displayTitle: (displayTitle != null + ? displayTitle.value + : this.displayTitle), + nalLengthSize: (nalLengthSize != null + ? nalLengthSize.value + : this.nalLengthSize), + isInterlaced: (isInterlaced != null + ? isInterlaced.value + : this.isInterlaced), isAVC: (isAVC != null ? isAVC.value : this.isAVC), - channelLayout: (channelLayout != null ? channelLayout.value : this.channelLayout), + channelLayout: (channelLayout != null + ? channelLayout.value + : this.channelLayout), bitRate: (bitRate != null ? bitRate.value : this.bitRate), bitDepth: (bitDepth != null ? bitDepth.value : this.bitDepth), refFrames: (refFrames != null ? refFrames.value : this.refFrames), - packetLength: (packetLength != null ? packetLength.value : this.packetLength), + packetLength: (packetLength != null + ? packetLength.value + : this.packetLength), channels: (channels != null ? channels.value : this.channels), sampleRate: (sampleRate != null ? sampleRate.value : this.sampleRate), isDefault: (isDefault != null ? isDefault.value : this.isDefault), isForced: (isForced != null ? isForced.value : this.isForced), - isHearingImpaired: (isHearingImpaired != null ? isHearingImpaired.value : this.isHearingImpaired), + isHearingImpaired: (isHearingImpaired != null + ? isHearingImpaired.value + : this.isHearingImpaired), height: (height != null ? height.value : this.height), width: (width != null ? width.value : this.width), - averageFrameRate: (averageFrameRate != null ? averageFrameRate.value : this.averageFrameRate), - realFrameRate: (realFrameRate != null ? realFrameRate.value : this.realFrameRate), - referenceFrameRate: (referenceFrameRate != null ? referenceFrameRate.value : this.referenceFrameRate), + averageFrameRate: (averageFrameRate != null + ? averageFrameRate.value + : this.averageFrameRate), + realFrameRate: (realFrameRate != null + ? realFrameRate.value + : this.realFrameRate), + referenceFrameRate: (referenceFrameRate != null + ? referenceFrameRate.value + : this.referenceFrameRate), profile: (profile != null ? profile.value : this.profile), type: (type != null ? type.value : this.type), aspectRatio: (aspectRatio != null ? aspectRatio.value : this.aspectRatio), index: (index != null ? index.value : this.index), score: (score != null ? score.value : this.score), isExternal: (isExternal != null ? isExternal.value : this.isExternal), - deliveryMethod: (deliveryMethod != null ? deliveryMethod.value : this.deliveryMethod), + deliveryMethod: (deliveryMethod != null + ? deliveryMethod.value + : this.deliveryMethod), deliveryUrl: (deliveryUrl != null ? deliveryUrl.value : this.deliveryUrl), - isExternalUrl: (isExternalUrl != null ? isExternalUrl.value : this.isExternalUrl), - isTextSubtitleStream: (isTextSubtitleStream != null ? isTextSubtitleStream.value : this.isTextSubtitleStream), - supportsExternalStream: - (supportsExternalStream != null ? supportsExternalStream.value : this.supportsExternalStream), + isExternalUrl: (isExternalUrl != null + ? isExternalUrl.value + : this.isExternalUrl), + isTextSubtitleStream: (isTextSubtitleStream != null + ? isTextSubtitleStream.value + : this.isTextSubtitleStream), + supportsExternalStream: (supportsExternalStream != null + ? supportsExternalStream.value + : this.supportsExternalStream), path: (path != null ? path.value : this.path), pixelFormat: (pixelFormat != null ? pixelFormat.value : this.pixelFormat), level: (level != null ? level.value : this.level), - isAnamorphic: (isAnamorphic != null ? isAnamorphic.value : this.isAnamorphic), + isAnamorphic: (isAnamorphic != null + ? isAnamorphic.value + : this.isAnamorphic), ); } } @@ -33085,7 +34266,8 @@ extension $MediaStreamExtension on MediaStream { class MediaUpdateInfoDto { const MediaUpdateInfoDto({this.updates}); - factory MediaUpdateInfoDto.fromJson(Map json) => _$MediaUpdateInfoDtoFromJson(json); + factory MediaUpdateInfoDto.fromJson(Map json) => + _$MediaUpdateInfoDtoFromJson(json); static const toJsonFactory = _$MediaUpdateInfoDtoToJson; Map toJson() => _$MediaUpdateInfoDtoToJson(this); @@ -33102,14 +34284,16 @@ class MediaUpdateInfoDto { bool operator ==(Object other) { return identical(this, other) || (other is MediaUpdateInfoDto && - (identical(other.updates, updates) || const DeepCollectionEquality().equals(other.updates, updates))); + (identical(other.updates, updates) || + const DeepCollectionEquality().equals(other.updates, updates))); } @override String toString() => jsonEncode(this); @override - int get hashCode => const DeepCollectionEquality().hash(updates) ^ runtimeType.hashCode; + int get hashCode => + const DeepCollectionEquality().hash(updates) ^ runtimeType.hashCode; } extension $MediaUpdateInfoDtoExtension on MediaUpdateInfoDto { @@ -33130,7 +34314,8 @@ extension $MediaUpdateInfoDtoExtension on MediaUpdateInfoDto { class MediaUpdateInfoPathDto { const MediaUpdateInfoPathDto({this.path, this.updateType}); - factory MediaUpdateInfoPathDto.fromJson(Map json) => _$MediaUpdateInfoPathDtoFromJson(json); + factory MediaUpdateInfoPathDto.fromJson(Map json) => + _$MediaUpdateInfoPathDtoFromJson(json); static const toJsonFactory = _$MediaUpdateInfoPathDtoToJson; Map toJson() => _$MediaUpdateInfoPathDtoToJson(this); @@ -33145,7 +34330,8 @@ class MediaUpdateInfoPathDto { bool operator ==(Object other) { return identical(this, other) || (other is MediaUpdateInfoPathDto && - (identical(other.path, path) || const DeepCollectionEquality().equals(other.path, path)) && + (identical(other.path, path) || + const DeepCollectionEquality().equals(other.path, path)) && (identical(other.updateType, updateType) || const DeepCollectionEquality().equals( other.updateType, @@ -33186,7 +34372,8 @@ extension $MediaUpdateInfoPathDtoExtension on MediaUpdateInfoPathDto { class MediaUrl { const MediaUrl({this.url, this.name}); - factory MediaUrl.fromJson(Map json) => _$MediaUrlFromJson(json); + factory MediaUrl.fromJson(Map json) => + _$MediaUrlFromJson(json); static const toJsonFactory = _$MediaUrlToJson; Map toJson() => _$MediaUrlToJson(this); @@ -33201,8 +34388,10 @@ class MediaUrl { bool operator ==(Object other) { return identical(this, other) || (other is MediaUrl && - (identical(other.url, url) || const DeepCollectionEquality().equals(other.url, url)) && - (identical(other.name, name) || const DeepCollectionEquality().equals(other.name, name))); + (identical(other.url, url) || + const DeepCollectionEquality().equals(other.url, url)) && + (identical(other.name, name) || + const DeepCollectionEquality().equals(other.name, name))); } @override @@ -33210,7 +34399,9 @@ class MediaUrl { @override int get hashCode => - const DeepCollectionEquality().hash(url) ^ const DeepCollectionEquality().hash(name) ^ runtimeType.hashCode; + const DeepCollectionEquality().hash(url) ^ + const DeepCollectionEquality().hash(name) ^ + runtimeType.hashCode; } extension $MediaUrlExtension on MediaUrl { @@ -33230,7 +34421,8 @@ extension $MediaUrlExtension on MediaUrl { class MessageCommand { const MessageCommand({this.header, required this.text, this.timeoutMs}); - factory MessageCommand.fromJson(Map json) => _$MessageCommandFromJson(json); + factory MessageCommand.fromJson(Map json) => + _$MessageCommandFromJson(json); static const toJsonFactory = _$MessageCommandToJson; Map toJson() => _$MessageCommandToJson(this); @@ -33247,8 +34439,10 @@ class MessageCommand { bool operator ==(Object other) { return identical(this, other) || (other is MessageCommand && - (identical(other.header, header) || const DeepCollectionEquality().equals(other.header, header)) && - (identical(other.text, text) || const DeepCollectionEquality().equals(other.text, text)) && + (identical(other.header, header) || + const DeepCollectionEquality().equals(other.header, header)) && + (identical(other.text, text) || + const DeepCollectionEquality().equals(other.text, text)) && (identical(other.timeoutMs, timeoutMs) || const DeepCollectionEquality().equals( other.timeoutMs, @@ -33293,7 +34487,8 @@ extension $MessageCommandExtension on MessageCommand { class MetadataConfiguration { const MetadataConfiguration({this.useFileCreationTimeForDateAdded}); - factory MetadataConfiguration.fromJson(Map json) => _$MetadataConfigurationFromJson(json); + factory MetadataConfiguration.fromJson(Map json) => + _$MetadataConfigurationFromJson(json); static const toJsonFactory = _$MetadataConfigurationToJson; Map toJson() => _$MetadataConfigurationToJson(this); @@ -33320,13 +34515,17 @@ class MetadataConfiguration { String toString() => jsonEncode(this); @override - int get hashCode => const DeepCollectionEquality().hash(useFileCreationTimeForDateAdded) ^ runtimeType.hashCode; + int get hashCode => + const DeepCollectionEquality().hash(useFileCreationTimeForDateAdded) ^ + runtimeType.hashCode; } extension $MetadataConfigurationExtension on MetadataConfiguration { MetadataConfiguration copyWith({bool? useFileCreationTimeForDateAdded}) { return MetadataConfiguration( - useFileCreationTimeForDateAdded: useFileCreationTimeForDateAdded ?? this.useFileCreationTimeForDateAdded, + useFileCreationTimeForDateAdded: + useFileCreationTimeForDateAdded ?? + this.useFileCreationTimeForDateAdded, ); } @@ -33352,7 +34551,8 @@ class MetadataEditorInfo { this.contentTypeOptions, }); - factory MetadataEditorInfo.fromJson(Map json) => _$MetadataEditorInfoFromJson(json); + factory MetadataEditorInfo.fromJson(Map json) => + _$MetadataEditorInfoFromJson(json); static const toJsonFactory = _$MetadataEditorInfoToJson; Map toJson() => _$MetadataEditorInfoToJson(this); @@ -33452,7 +34652,8 @@ extension $MetadataEditorInfoExtension on MetadataEditorInfo { List? contentTypeOptions, }) { return MetadataEditorInfo( - parentalRatingOptions: parentalRatingOptions ?? this.parentalRatingOptions, + parentalRatingOptions: + parentalRatingOptions ?? this.parentalRatingOptions, countries: countries ?? this.countries, cultures: cultures ?? this.cultures, externalIdInfos: externalIdInfos ?? this.externalIdInfos, @@ -33470,12 +34671,18 @@ extension $MetadataEditorInfoExtension on MetadataEditorInfo { Wrapped?>? contentTypeOptions, }) { return MetadataEditorInfo( - parentalRatingOptions: (parentalRatingOptions != null ? parentalRatingOptions.value : this.parentalRatingOptions), + parentalRatingOptions: (parentalRatingOptions != null + ? parentalRatingOptions.value + : this.parentalRatingOptions), countries: (countries != null ? countries.value : this.countries), cultures: (cultures != null ? cultures.value : this.cultures), - externalIdInfos: (externalIdInfos != null ? externalIdInfos.value : this.externalIdInfos), + externalIdInfos: (externalIdInfos != null + ? externalIdInfos.value + : this.externalIdInfos), contentType: (contentType != null ? contentType.value : this.contentType), - contentTypeOptions: (contentTypeOptions != null ? contentTypeOptions.value : this.contentTypeOptions), + contentTypeOptions: (contentTypeOptions != null + ? contentTypeOptions.value + : this.contentTypeOptions), ); } } @@ -33492,7 +34699,8 @@ class MetadataOptions { this.imageFetcherOrder, }); - factory MetadataOptions.fromJson(Map json) => _$MetadataOptionsFromJson(json); + factory MetadataOptions.fromJson(Map json) => + _$MetadataOptionsFromJson(json); static const toJsonFactory = _$MetadataOptionsToJson; Map toJson() => _$MetadataOptionsToJson(this); @@ -33611,11 +34819,15 @@ extension $MetadataOptionsExtension on MetadataOptions { }) { return MetadataOptions( itemType: itemType ?? this.itemType, - disabledMetadataSavers: disabledMetadataSavers ?? this.disabledMetadataSavers, - localMetadataReaderOrder: localMetadataReaderOrder ?? this.localMetadataReaderOrder, - disabledMetadataFetchers: disabledMetadataFetchers ?? this.disabledMetadataFetchers, + disabledMetadataSavers: + disabledMetadataSavers ?? this.disabledMetadataSavers, + localMetadataReaderOrder: + localMetadataReaderOrder ?? this.localMetadataReaderOrder, + disabledMetadataFetchers: + disabledMetadataFetchers ?? this.disabledMetadataFetchers, metadataFetcherOrder: metadataFetcherOrder ?? this.metadataFetcherOrder, - disabledImageFetchers: disabledImageFetchers ?? this.disabledImageFetchers, + disabledImageFetchers: + disabledImageFetchers ?? this.disabledImageFetchers, imageFetcherOrder: imageFetcherOrder ?? this.imageFetcherOrder, ); } @@ -33631,15 +34843,24 @@ extension $MetadataOptionsExtension on MetadataOptions { }) { return MetadataOptions( itemType: (itemType != null ? itemType.value : this.itemType), - disabledMetadataSavers: - (disabledMetadataSavers != null ? disabledMetadataSavers.value : this.disabledMetadataSavers), - localMetadataReaderOrder: - (localMetadataReaderOrder != null ? localMetadataReaderOrder.value : this.localMetadataReaderOrder), - disabledMetadataFetchers: - (disabledMetadataFetchers != null ? disabledMetadataFetchers.value : this.disabledMetadataFetchers), - metadataFetcherOrder: (metadataFetcherOrder != null ? metadataFetcherOrder.value : this.metadataFetcherOrder), - disabledImageFetchers: (disabledImageFetchers != null ? disabledImageFetchers.value : this.disabledImageFetchers), - imageFetcherOrder: (imageFetcherOrder != null ? imageFetcherOrder.value : this.imageFetcherOrder), + disabledMetadataSavers: (disabledMetadataSavers != null + ? disabledMetadataSavers.value + : this.disabledMetadataSavers), + localMetadataReaderOrder: (localMetadataReaderOrder != null + ? localMetadataReaderOrder.value + : this.localMetadataReaderOrder), + disabledMetadataFetchers: (disabledMetadataFetchers != null + ? disabledMetadataFetchers.value + : this.disabledMetadataFetchers), + metadataFetcherOrder: (metadataFetcherOrder != null + ? metadataFetcherOrder.value + : this.metadataFetcherOrder), + disabledImageFetchers: (disabledImageFetchers != null + ? disabledImageFetchers.value + : this.disabledImageFetchers), + imageFetcherOrder: (imageFetcherOrder != null + ? imageFetcherOrder.value + : this.imageFetcherOrder), ); } } @@ -33648,7 +34869,8 @@ extension $MetadataOptionsExtension on MetadataOptions { class MovePlaylistItemRequestDto { const MovePlaylistItemRequestDto({this.playlistItemId, this.newIndex}); - factory MovePlaylistItemRequestDto.fromJson(Map json) => _$MovePlaylistItemRequestDtoFromJson(json); + factory MovePlaylistItemRequestDto.fromJson(Map json) => + _$MovePlaylistItemRequestDtoFromJson(json); static const toJsonFactory = _$MovePlaylistItemRequestDtoToJson; Map toJson() => _$MovePlaylistItemRequestDtoToJson(this); @@ -33698,7 +34920,9 @@ extension $MovePlaylistItemRequestDtoExtension on MovePlaylistItemRequestDto { Wrapped? newIndex, }) { return MovePlaylistItemRequestDto( - playlistItemId: (playlistItemId != null ? playlistItemId.value : this.playlistItemId), + playlistItemId: (playlistItemId != null + ? playlistItemId.value + : this.playlistItemId), newIndex: (newIndex != null ? newIndex.value : this.newIndex), ); } @@ -33720,7 +34944,8 @@ class MovieInfo { this.isAutomated, }); - factory MovieInfo.fromJson(Map json) => _$MovieInfoFromJson(json); + factory MovieInfo.fromJson(Map json) => + _$MovieInfoFromJson(json); static const toJsonFactory = _$MovieInfoToJson; Map toJson() => _$MovieInfoToJson(this); @@ -33753,13 +34978,15 @@ class MovieInfo { bool operator ==(Object other) { return identical(this, other) || (other is MovieInfo && - (identical(other.name, name) || const DeepCollectionEquality().equals(other.name, name)) && + (identical(other.name, name) || + const DeepCollectionEquality().equals(other.name, name)) && (identical(other.originalTitle, originalTitle) || const DeepCollectionEquality().equals( other.originalTitle, originalTitle, )) && - (identical(other.path, path) || const DeepCollectionEquality().equals(other.path, path)) && + (identical(other.path, path) || + const DeepCollectionEquality().equals(other.path, path)) && (identical(other.metadataLanguage, metadataLanguage) || const DeepCollectionEquality().equals( other.metadataLanguage, @@ -33775,7 +35002,8 @@ class MovieInfo { other.providerIds, providerIds, )) && - (identical(other.year, year) || const DeepCollectionEquality().equals(other.year, year)) && + (identical(other.year, year) || + const DeepCollectionEquality().equals(other.year, year)) && (identical(other.indexNumber, indexNumber) || const DeepCollectionEquality().equals( other.indexNumber, @@ -33861,15 +35089,25 @@ extension $MovieInfoExtension on MovieInfo { }) { return MovieInfo( name: (name != null ? name.value : this.name), - originalTitle: (originalTitle != null ? originalTitle.value : this.originalTitle), + originalTitle: (originalTitle != null + ? originalTitle.value + : this.originalTitle), path: (path != null ? path.value : this.path), - metadataLanguage: (metadataLanguage != null ? metadataLanguage.value : this.metadataLanguage), - metadataCountryCode: (metadataCountryCode != null ? metadataCountryCode.value : this.metadataCountryCode), + metadataLanguage: (metadataLanguage != null + ? metadataLanguage.value + : this.metadataLanguage), + metadataCountryCode: (metadataCountryCode != null + ? metadataCountryCode.value + : this.metadataCountryCode), providerIds: (providerIds != null ? providerIds.value : this.providerIds), year: (year != null ? year.value : this.year), indexNumber: (indexNumber != null ? indexNumber.value : this.indexNumber), - parentIndexNumber: (parentIndexNumber != null ? parentIndexNumber.value : this.parentIndexNumber), - premiereDate: (premiereDate != null ? premiereDate.value : this.premiereDate), + parentIndexNumber: (parentIndexNumber != null + ? parentIndexNumber.value + : this.parentIndexNumber), + premiereDate: (premiereDate != null + ? premiereDate.value + : this.premiereDate), isAutomated: (isAutomated != null ? isAutomated.value : this.isAutomated), ); } @@ -33884,7 +35122,8 @@ class MovieInfoRemoteSearchQuery { this.includeDisabledProviders, }); - factory MovieInfoRemoteSearchQuery.fromJson(Map json) => _$MovieInfoRemoteSearchQueryFromJson(json); + factory MovieInfoRemoteSearchQuery.fromJson(Map json) => + _$MovieInfoRemoteSearchQueryFromJson(json); static const toJsonFactory = _$MovieInfoRemoteSearchQueryToJson; Map toJson() => _$MovieInfoRemoteSearchQueryToJson(this); @@ -33908,7 +35147,8 @@ class MovieInfoRemoteSearchQuery { other.searchInfo, searchInfo, )) && - (identical(other.itemId, itemId) || const DeepCollectionEquality().equals(other.itemId, itemId)) && + (identical(other.itemId, itemId) || + const DeepCollectionEquality().equals(other.itemId, itemId)) && (identical(other.searchProviderName, searchProviderName) || const DeepCollectionEquality().equals( other.searchProviderName, @@ -33947,7 +35187,8 @@ extension $MovieInfoRemoteSearchQueryExtension on MovieInfoRemoteSearchQuery { searchInfo: searchInfo ?? this.searchInfo, itemId: itemId ?? this.itemId, searchProviderName: searchProviderName ?? this.searchProviderName, - includeDisabledProviders: includeDisabledProviders ?? this.includeDisabledProviders, + includeDisabledProviders: + includeDisabledProviders ?? this.includeDisabledProviders, ); } @@ -33960,9 +35201,12 @@ extension $MovieInfoRemoteSearchQueryExtension on MovieInfoRemoteSearchQuery { return MovieInfoRemoteSearchQuery( searchInfo: (searchInfo != null ? searchInfo.value : this.searchInfo), itemId: (itemId != null ? itemId.value : this.itemId), - searchProviderName: (searchProviderName != null ? searchProviderName.value : this.searchProviderName), - includeDisabledProviders: - (includeDisabledProviders != null ? includeDisabledProviders.value : this.includeDisabledProviders), + searchProviderName: (searchProviderName != null + ? searchProviderName.value + : this.searchProviderName), + includeDisabledProviders: (includeDisabledProviders != null + ? includeDisabledProviders.value + : this.includeDisabledProviders), ); } } @@ -33984,7 +35228,8 @@ class MusicVideoInfo { this.artists, }); - factory MusicVideoInfo.fromJson(Map json) => _$MusicVideoInfoFromJson(json); + factory MusicVideoInfo.fromJson(Map json) => + _$MusicVideoInfoFromJson(json); static const toJsonFactory = _$MusicVideoInfoToJson; Map toJson() => _$MusicVideoInfoToJson(this); @@ -34019,13 +35264,15 @@ class MusicVideoInfo { bool operator ==(Object other) { return identical(this, other) || (other is MusicVideoInfo && - (identical(other.name, name) || const DeepCollectionEquality().equals(other.name, name)) && + (identical(other.name, name) || + const DeepCollectionEquality().equals(other.name, name)) && (identical(other.originalTitle, originalTitle) || const DeepCollectionEquality().equals( other.originalTitle, originalTitle, )) && - (identical(other.path, path) || const DeepCollectionEquality().equals(other.path, path)) && + (identical(other.path, path) || + const DeepCollectionEquality().equals(other.path, path)) && (identical(other.metadataLanguage, metadataLanguage) || const DeepCollectionEquality().equals( other.metadataLanguage, @@ -34041,7 +35288,8 @@ class MusicVideoInfo { other.providerIds, providerIds, )) && - (identical(other.year, year) || const DeepCollectionEquality().equals(other.year, year)) && + (identical(other.year, year) || + const DeepCollectionEquality().equals(other.year, year)) && (identical(other.indexNumber, indexNumber) || const DeepCollectionEquality().equals( other.indexNumber, @@ -34062,7 +35310,8 @@ class MusicVideoInfo { other.isAutomated, isAutomated, )) && - (identical(other.artists, artists) || const DeepCollectionEquality().equals(other.artists, artists))); + (identical(other.artists, artists) || + const DeepCollectionEquality().equals(other.artists, artists))); } @override @@ -34132,15 +35381,25 @@ extension $MusicVideoInfoExtension on MusicVideoInfo { }) { return MusicVideoInfo( name: (name != null ? name.value : this.name), - originalTitle: (originalTitle != null ? originalTitle.value : this.originalTitle), + originalTitle: (originalTitle != null + ? originalTitle.value + : this.originalTitle), path: (path != null ? path.value : this.path), - metadataLanguage: (metadataLanguage != null ? metadataLanguage.value : this.metadataLanguage), - metadataCountryCode: (metadataCountryCode != null ? metadataCountryCode.value : this.metadataCountryCode), + metadataLanguage: (metadataLanguage != null + ? metadataLanguage.value + : this.metadataLanguage), + metadataCountryCode: (metadataCountryCode != null + ? metadataCountryCode.value + : this.metadataCountryCode), providerIds: (providerIds != null ? providerIds.value : this.providerIds), year: (year != null ? year.value : this.year), indexNumber: (indexNumber != null ? indexNumber.value : this.indexNumber), - parentIndexNumber: (parentIndexNumber != null ? parentIndexNumber.value : this.parentIndexNumber), - premiereDate: (premiereDate != null ? premiereDate.value : this.premiereDate), + parentIndexNumber: (parentIndexNumber != null + ? parentIndexNumber.value + : this.parentIndexNumber), + premiereDate: (premiereDate != null + ? premiereDate.value + : this.premiereDate), isAutomated: (isAutomated != null ? isAutomated.value : this.isAutomated), artists: (artists != null ? artists.value : this.artists), ); @@ -34160,7 +35419,8 @@ class MusicVideoInfoRemoteSearchQuery { _$MusicVideoInfoRemoteSearchQueryFromJson(json); static const toJsonFactory = _$MusicVideoInfoRemoteSearchQueryToJson; - Map toJson() => _$MusicVideoInfoRemoteSearchQueryToJson(this); + Map toJson() => + _$MusicVideoInfoRemoteSearchQueryToJson(this); @JsonKey(name: 'SearchInfo', includeIfNull: false) final MusicVideoInfo? searchInfo; @@ -34181,7 +35441,8 @@ class MusicVideoInfoRemoteSearchQuery { other.searchInfo, searchInfo, )) && - (identical(other.itemId, itemId) || const DeepCollectionEquality().equals(other.itemId, itemId)) && + (identical(other.itemId, itemId) || + const DeepCollectionEquality().equals(other.itemId, itemId)) && (identical(other.searchProviderName, searchProviderName) || const DeepCollectionEquality().equals( other.searchProviderName, @@ -34209,7 +35470,8 @@ class MusicVideoInfoRemoteSearchQuery { runtimeType.hashCode; } -extension $MusicVideoInfoRemoteSearchQueryExtension on MusicVideoInfoRemoteSearchQuery { +extension $MusicVideoInfoRemoteSearchQueryExtension + on MusicVideoInfoRemoteSearchQuery { MusicVideoInfoRemoteSearchQuery copyWith({ MusicVideoInfo? searchInfo, String? itemId, @@ -34220,7 +35482,8 @@ extension $MusicVideoInfoRemoteSearchQueryExtension on MusicVideoInfoRemoteSearc searchInfo: searchInfo ?? this.searchInfo, itemId: itemId ?? this.itemId, searchProviderName: searchProviderName ?? this.searchProviderName, - includeDisabledProviders: includeDisabledProviders ?? this.includeDisabledProviders, + includeDisabledProviders: + includeDisabledProviders ?? this.includeDisabledProviders, ); } @@ -34233,9 +35496,12 @@ extension $MusicVideoInfoRemoteSearchQueryExtension on MusicVideoInfoRemoteSearc return MusicVideoInfoRemoteSearchQuery( searchInfo: (searchInfo != null ? searchInfo.value : this.searchInfo), itemId: (itemId != null ? itemId.value : this.itemId), - searchProviderName: (searchProviderName != null ? searchProviderName.value : this.searchProviderName), - includeDisabledProviders: - (includeDisabledProviders != null ? includeDisabledProviders.value : this.includeDisabledProviders), + searchProviderName: (searchProviderName != null + ? searchProviderName.value + : this.searchProviderName), + includeDisabledProviders: (includeDisabledProviders != null + ? includeDisabledProviders.value + : this.includeDisabledProviders), ); } } @@ -34244,7 +35510,8 @@ extension $MusicVideoInfoRemoteSearchQueryExtension on MusicVideoInfoRemoteSearc class NameGuidPair { const NameGuidPair({this.name, this.id}); - factory NameGuidPair.fromJson(Map json) => _$NameGuidPairFromJson(json); + factory NameGuidPair.fromJson(Map json) => + _$NameGuidPairFromJson(json); static const toJsonFactory = _$NameGuidPairToJson; Map toJson() => _$NameGuidPairToJson(this); @@ -34259,8 +35526,10 @@ class NameGuidPair { bool operator ==(Object other) { return identical(this, other) || (other is NameGuidPair && - (identical(other.name, name) || const DeepCollectionEquality().equals(other.name, name)) && - (identical(other.id, id) || const DeepCollectionEquality().equals(other.id, id))); + (identical(other.name, name) || + const DeepCollectionEquality().equals(other.name, name)) && + (identical(other.id, id) || + const DeepCollectionEquality().equals(other.id, id))); } @override @@ -34268,7 +35537,9 @@ class NameGuidPair { @override int get hashCode => - const DeepCollectionEquality().hash(name) ^ const DeepCollectionEquality().hash(id) ^ runtimeType.hashCode; + const DeepCollectionEquality().hash(name) ^ + const DeepCollectionEquality().hash(id) ^ + runtimeType.hashCode; } extension $NameGuidPairExtension on NameGuidPair { @@ -34288,7 +35559,8 @@ extension $NameGuidPairExtension on NameGuidPair { class NameIdPair { const NameIdPair({this.name, this.id}); - factory NameIdPair.fromJson(Map json) => _$NameIdPairFromJson(json); + factory NameIdPair.fromJson(Map json) => + _$NameIdPairFromJson(json); static const toJsonFactory = _$NameIdPairToJson; Map toJson() => _$NameIdPairToJson(this); @@ -34303,8 +35575,10 @@ class NameIdPair { bool operator ==(Object other) { return identical(this, other) || (other is NameIdPair && - (identical(other.name, name) || const DeepCollectionEquality().equals(other.name, name)) && - (identical(other.id, id) || const DeepCollectionEquality().equals(other.id, id))); + (identical(other.name, name) || + const DeepCollectionEquality().equals(other.name, name)) && + (identical(other.id, id) || + const DeepCollectionEquality().equals(other.id, id))); } @override @@ -34312,7 +35586,9 @@ class NameIdPair { @override int get hashCode => - const DeepCollectionEquality().hash(name) ^ const DeepCollectionEquality().hash(id) ^ runtimeType.hashCode; + const DeepCollectionEquality().hash(name) ^ + const DeepCollectionEquality().hash(id) ^ + runtimeType.hashCode; } extension $NameIdPairExtension on NameIdPair { @@ -34332,7 +35608,8 @@ extension $NameIdPairExtension on NameIdPair { class NameValuePair { const NameValuePair({this.name, this.$Value}); - factory NameValuePair.fromJson(Map json) => _$NameValuePairFromJson(json); + factory NameValuePair.fromJson(Map json) => + _$NameValuePairFromJson(json); static const toJsonFactory = _$NameValuePairToJson; Map toJson() => _$NameValuePairToJson(this); @@ -34347,8 +35624,10 @@ class NameValuePair { bool operator ==(Object other) { return identical(this, other) || (other is NameValuePair && - (identical(other.name, name) || const DeepCollectionEquality().equals(other.name, name)) && - (identical(other.$Value, $Value) || const DeepCollectionEquality().equals(other.$Value, $Value))); + (identical(other.name, name) || + const DeepCollectionEquality().equals(other.name, name)) && + (identical(other.$Value, $Value) || + const DeepCollectionEquality().equals(other.$Value, $Value))); } @override @@ -34356,7 +35635,9 @@ class NameValuePair { @override int get hashCode => - const DeepCollectionEquality().hash(name) ^ const DeepCollectionEquality().hash($Value) ^ runtimeType.hashCode; + const DeepCollectionEquality().hash(name) ^ + const DeepCollectionEquality().hash($Value) ^ + runtimeType.hashCode; } extension $NameValuePairExtension on NameValuePair { @@ -34406,7 +35687,8 @@ class NetworkConfiguration { this.isRemoteIPFilterBlacklist, }); - factory NetworkConfiguration.fromJson(Map json) => _$NetworkConfigurationFromJson(json); + factory NetworkConfiguration.fromJson(Map json) => + _$NetworkConfigurationFromJson(json); static const toJsonFactory = _$NetworkConfigurationToJson; Map toJson() => _$NetworkConfigurationToJson(this); @@ -34686,14 +35968,21 @@ extension $NetworkConfigurationExtension on NetworkConfiguration { enableIPv6: enableIPv6 ?? this.enableIPv6, enableRemoteAccess: enableRemoteAccess ?? this.enableRemoteAccess, localNetworkSubnets: localNetworkSubnets ?? this.localNetworkSubnets, - localNetworkAddresses: localNetworkAddresses ?? this.localNetworkAddresses, + localNetworkAddresses: + localNetworkAddresses ?? this.localNetworkAddresses, knownProxies: knownProxies ?? this.knownProxies, - ignoreVirtualInterfaces: ignoreVirtualInterfaces ?? this.ignoreVirtualInterfaces, - virtualInterfaceNames: virtualInterfaceNames ?? this.virtualInterfaceNames, - enablePublishedServerUriByRequest: enablePublishedServerUriByRequest ?? this.enablePublishedServerUriByRequest, - publishedServerUriBySubnet: publishedServerUriBySubnet ?? this.publishedServerUriBySubnet, + ignoreVirtualInterfaces: + ignoreVirtualInterfaces ?? this.ignoreVirtualInterfaces, + virtualInterfaceNames: + virtualInterfaceNames ?? this.virtualInterfaceNames, + enablePublishedServerUriByRequest: + enablePublishedServerUriByRequest ?? + this.enablePublishedServerUriByRequest, + publishedServerUriBySubnet: + publishedServerUriBySubnet ?? this.publishedServerUriBySubnet, remoteIPFilter: remoteIPFilter ?? this.remoteIPFilter, - isRemoteIPFilterBlacklist: isRemoteIPFilterBlacklist ?? this.isRemoteIPFilterBlacklist, + isRemoteIPFilterBlacklist: + isRemoteIPFilterBlacklist ?? this.isRemoteIPFilterBlacklist, ); } @@ -34725,32 +36014,64 @@ extension $NetworkConfigurationExtension on NetworkConfiguration { return NetworkConfiguration( baseUrl: (baseUrl != null ? baseUrl.value : this.baseUrl), enableHttps: (enableHttps != null ? enableHttps.value : this.enableHttps), - requireHttps: (requireHttps != null ? requireHttps.value : this.requireHttps), - certificatePath: (certificatePath != null ? certificatePath.value : this.certificatePath), - certificatePassword: (certificatePassword != null ? certificatePassword.value : this.certificatePassword), - internalHttpPort: (internalHttpPort != null ? internalHttpPort.value : this.internalHttpPort), - internalHttpsPort: (internalHttpsPort != null ? internalHttpsPort.value : this.internalHttpsPort), - publicHttpPort: (publicHttpPort != null ? publicHttpPort.value : this.publicHttpPort), - publicHttpsPort: (publicHttpsPort != null ? publicHttpsPort.value : this.publicHttpsPort), - autoDiscovery: (autoDiscovery != null ? autoDiscovery.value : this.autoDiscovery), + requireHttps: (requireHttps != null + ? requireHttps.value + : this.requireHttps), + certificatePath: (certificatePath != null + ? certificatePath.value + : this.certificatePath), + certificatePassword: (certificatePassword != null + ? certificatePassword.value + : this.certificatePassword), + internalHttpPort: (internalHttpPort != null + ? internalHttpPort.value + : this.internalHttpPort), + internalHttpsPort: (internalHttpsPort != null + ? internalHttpsPort.value + : this.internalHttpsPort), + publicHttpPort: (publicHttpPort != null + ? publicHttpPort.value + : this.publicHttpPort), + publicHttpsPort: (publicHttpsPort != null + ? publicHttpsPort.value + : this.publicHttpsPort), + autoDiscovery: (autoDiscovery != null + ? autoDiscovery.value + : this.autoDiscovery), enableUPnP: (enableUPnP != null ? enableUPnP.value : this.enableUPnP), enableIPv4: (enableIPv4 != null ? enableIPv4.value : this.enableIPv4), enableIPv6: (enableIPv6 != null ? enableIPv6.value : this.enableIPv6), - enableRemoteAccess: (enableRemoteAccess != null ? enableRemoteAccess.value : this.enableRemoteAccess), - localNetworkSubnets: (localNetworkSubnets != null ? localNetworkSubnets.value : this.localNetworkSubnets), - localNetworkAddresses: (localNetworkAddresses != null ? localNetworkAddresses.value : this.localNetworkAddresses), - knownProxies: (knownProxies != null ? knownProxies.value : this.knownProxies), - ignoreVirtualInterfaces: - (ignoreVirtualInterfaces != null ? ignoreVirtualInterfaces.value : this.ignoreVirtualInterfaces), - virtualInterfaceNames: (virtualInterfaceNames != null ? virtualInterfaceNames.value : this.virtualInterfaceNames), - enablePublishedServerUriByRequest: (enablePublishedServerUriByRequest != null + enableRemoteAccess: (enableRemoteAccess != null + ? enableRemoteAccess.value + : this.enableRemoteAccess), + localNetworkSubnets: (localNetworkSubnets != null + ? localNetworkSubnets.value + : this.localNetworkSubnets), + localNetworkAddresses: (localNetworkAddresses != null + ? localNetworkAddresses.value + : this.localNetworkAddresses), + knownProxies: (knownProxies != null + ? knownProxies.value + : this.knownProxies), + ignoreVirtualInterfaces: (ignoreVirtualInterfaces != null + ? ignoreVirtualInterfaces.value + : this.ignoreVirtualInterfaces), + virtualInterfaceNames: (virtualInterfaceNames != null + ? virtualInterfaceNames.value + : this.virtualInterfaceNames), + enablePublishedServerUriByRequest: + (enablePublishedServerUriByRequest != null ? enablePublishedServerUriByRequest.value : this.enablePublishedServerUriByRequest), - publishedServerUriBySubnet: - (publishedServerUriBySubnet != null ? publishedServerUriBySubnet.value : this.publishedServerUriBySubnet), - remoteIPFilter: (remoteIPFilter != null ? remoteIPFilter.value : this.remoteIPFilter), - isRemoteIPFilterBlacklist: - (isRemoteIPFilterBlacklist != null ? isRemoteIPFilterBlacklist.value : this.isRemoteIPFilterBlacklist), + publishedServerUriBySubnet: (publishedServerUriBySubnet != null + ? publishedServerUriBySubnet.value + : this.publishedServerUriBySubnet), + remoteIPFilter: (remoteIPFilter != null + ? remoteIPFilter.value + : this.remoteIPFilter), + isRemoteIPFilterBlacklist: (isRemoteIPFilterBlacklist != null + ? isRemoteIPFilterBlacklist.value + : this.isRemoteIPFilterBlacklist), ); } } @@ -34759,7 +36080,8 @@ extension $NetworkConfigurationExtension on NetworkConfiguration { class NewGroupRequestDto { const NewGroupRequestDto({this.groupName}); - factory NewGroupRequestDto.fromJson(Map json) => _$NewGroupRequestDtoFromJson(json); + factory NewGroupRequestDto.fromJson(Map json) => + _$NewGroupRequestDtoFromJson(json); static const toJsonFactory = _$NewGroupRequestDtoToJson; Map toJson() => _$NewGroupRequestDtoToJson(this); @@ -34783,7 +36105,8 @@ class NewGroupRequestDto { String toString() => jsonEncode(this); @override - int get hashCode => const DeepCollectionEquality().hash(groupName) ^ runtimeType.hashCode; + int get hashCode => + const DeepCollectionEquality().hash(groupName) ^ runtimeType.hashCode; } extension $NewGroupRequestDtoExtension on NewGroupRequestDto { @@ -34802,7 +36125,8 @@ extension $NewGroupRequestDtoExtension on NewGroupRequestDto { class NextItemRequestDto { const NextItemRequestDto({this.playlistItemId}); - factory NextItemRequestDto.fromJson(Map json) => _$NextItemRequestDtoFromJson(json); + factory NextItemRequestDto.fromJson(Map json) => + _$NextItemRequestDtoFromJson(json); static const toJsonFactory = _$NextItemRequestDtoToJson; Map toJson() => _$NextItemRequestDtoToJson(this); @@ -34826,7 +36150,9 @@ class NextItemRequestDto { String toString() => jsonEncode(this); @override - int get hashCode => const DeepCollectionEquality().hash(playlistItemId) ^ runtimeType.hashCode; + int get hashCode => + const DeepCollectionEquality().hash(playlistItemId) ^ + runtimeType.hashCode; } extension $NextItemRequestDtoExtension on NextItemRequestDto { @@ -34838,7 +36164,9 @@ extension $NextItemRequestDtoExtension on NextItemRequestDto { NextItemRequestDto copyWithWrapped({Wrapped? playlistItemId}) { return NextItemRequestDto( - playlistItemId: (playlistItemId != null ? playlistItemId.value : this.playlistItemId), + playlistItemId: (playlistItemId != null + ? playlistItemId.value + : this.playlistItemId), ); } } @@ -34862,7 +36190,8 @@ class OpenLiveStreamDto { this.directPlayProtocols, }); - factory OpenLiveStreamDto.fromJson(Map json) => _$OpenLiveStreamDtoFromJson(json); + factory OpenLiveStreamDto.fromJson(Map json) => + _$OpenLiveStreamDtoFromJson(json); static const toJsonFactory = _$OpenLiveStreamDtoToJson; Map toJson() => _$OpenLiveStreamDtoToJson(this); @@ -34911,7 +36240,8 @@ class OpenLiveStreamDto { other.openToken, openToken, )) && - (identical(other.userId, userId) || const DeepCollectionEquality().equals(other.userId, userId)) && + (identical(other.userId, userId) || + const DeepCollectionEquality().equals(other.userId, userId)) && (identical(other.playSessionId, playSessionId) || const DeepCollectionEquality().equals( other.playSessionId, @@ -34942,7 +36272,8 @@ class OpenLiveStreamDto { other.maxAudioChannels, maxAudioChannels, )) && - (identical(other.itemId, itemId) || const DeepCollectionEquality().equals(other.itemId, itemId)) && + (identical(other.itemId, itemId) || + const DeepCollectionEquality().equals(other.itemId, itemId)) && (identical(other.enableDirectPlay, enableDirectPlay) || const DeepCollectionEquality().equals( other.enableDirectPlay, @@ -35025,7 +36356,8 @@ extension $OpenLiveStreamDtoExtension on OpenLiveStreamDto { enableDirectPlay: enableDirectPlay ?? this.enableDirectPlay, enableDirectStream: enableDirectStream ?? this.enableDirectStream, alwaysBurnInSubtitleWhenTranscoding: - alwaysBurnInSubtitleWhenTranscoding ?? this.alwaysBurnInSubtitleWhenTranscoding, + alwaysBurnInSubtitleWhenTranscoding ?? + this.alwaysBurnInSubtitleWhenTranscoding, deviceProfile: deviceProfile ?? this.deviceProfile, directPlayProtocols: directPlayProtocols ?? this.directPlayProtocols, ); @@ -35050,20 +36382,41 @@ extension $OpenLiveStreamDtoExtension on OpenLiveStreamDto { return OpenLiveStreamDto( openToken: (openToken != null ? openToken.value : this.openToken), userId: (userId != null ? userId.value : this.userId), - playSessionId: (playSessionId != null ? playSessionId.value : this.playSessionId), - maxStreamingBitrate: (maxStreamingBitrate != null ? maxStreamingBitrate.value : this.maxStreamingBitrate), - startTimeTicks: (startTimeTicks != null ? startTimeTicks.value : this.startTimeTicks), - audioStreamIndex: (audioStreamIndex != null ? audioStreamIndex.value : this.audioStreamIndex), - subtitleStreamIndex: (subtitleStreamIndex != null ? subtitleStreamIndex.value : this.subtitleStreamIndex), - maxAudioChannels: (maxAudioChannels != null ? maxAudioChannels.value : this.maxAudioChannels), + playSessionId: (playSessionId != null + ? playSessionId.value + : this.playSessionId), + maxStreamingBitrate: (maxStreamingBitrate != null + ? maxStreamingBitrate.value + : this.maxStreamingBitrate), + startTimeTicks: (startTimeTicks != null + ? startTimeTicks.value + : this.startTimeTicks), + audioStreamIndex: (audioStreamIndex != null + ? audioStreamIndex.value + : this.audioStreamIndex), + subtitleStreamIndex: (subtitleStreamIndex != null + ? subtitleStreamIndex.value + : this.subtitleStreamIndex), + maxAudioChannels: (maxAudioChannels != null + ? maxAudioChannels.value + : this.maxAudioChannels), itemId: (itemId != null ? itemId.value : this.itemId), - enableDirectPlay: (enableDirectPlay != null ? enableDirectPlay.value : this.enableDirectPlay), - enableDirectStream: (enableDirectStream != null ? enableDirectStream.value : this.enableDirectStream), - alwaysBurnInSubtitleWhenTranscoding: (alwaysBurnInSubtitleWhenTranscoding != null + enableDirectPlay: (enableDirectPlay != null + ? enableDirectPlay.value + : this.enableDirectPlay), + enableDirectStream: (enableDirectStream != null + ? enableDirectStream.value + : this.enableDirectStream), + alwaysBurnInSubtitleWhenTranscoding: + (alwaysBurnInSubtitleWhenTranscoding != null ? alwaysBurnInSubtitleWhenTranscoding.value : this.alwaysBurnInSubtitleWhenTranscoding), - deviceProfile: (deviceProfile != null ? deviceProfile.value : this.deviceProfile), - directPlayProtocols: (directPlayProtocols != null ? directPlayProtocols.value : this.directPlayProtocols), + deviceProfile: (deviceProfile != null + ? deviceProfile.value + : this.deviceProfile), + directPlayProtocols: (directPlayProtocols != null + ? directPlayProtocols.value + : this.directPlayProtocols), ); } } @@ -35072,7 +36425,8 @@ extension $OpenLiveStreamDtoExtension on OpenLiveStreamDto { class OutboundKeepAliveMessage { const OutboundKeepAliveMessage({this.messageId, this.messageType}); - factory OutboundKeepAliveMessage.fromJson(Map json) => _$OutboundKeepAliveMessageFromJson(json); + factory OutboundKeepAliveMessage.fromJson(Map json) => + _$OutboundKeepAliveMessageFromJson(json); static const toJsonFactory = _$OutboundKeepAliveMessageToJson; Map toJson() => _$OutboundKeepAliveMessageToJson(this); @@ -35086,7 +36440,8 @@ class OutboundKeepAliveMessage { fromJson: sessionMessageTypeMessageTypeNullableFromJson, ) final enums.SessionMessageType? messageType; - static enums.SessionMessageType? sessionMessageTypeMessageTypeNullableFromJson(Object? value) => + static enums.SessionMessageType? + sessionMessageTypeMessageTypeNullableFromJson(Object? value) => sessionMessageTypeNullableFromJson( value, enums.SessionMessageType.keepalive, @@ -35146,7 +36501,8 @@ extension $OutboundKeepAliveMessageExtension on OutboundKeepAliveMessage { class OutboundWebSocketMessage { const OutboundWebSocketMessage(); - factory OutboundWebSocketMessage.fromJson(Map json) => _$OutboundWebSocketMessageFromJson(json); + factory OutboundWebSocketMessage.fromJson(Map json) => + _$OutboundWebSocketMessageFromJson(json); static const toJsonFactory = _$OutboundWebSocketMessageToJson; Map toJson() => _$OutboundWebSocketMessageToJson(this); @@ -35173,7 +36529,8 @@ class PackageInfo { this.imageUrl, }); - factory PackageInfo.fromJson(Map json) => _$PackageInfoFromJson(json); + factory PackageInfo.fromJson(Map json) => + _$PackageInfoFromJson(json); static const toJsonFactory = _$PackageInfoToJson; Map toJson() => _$PackageInfoToJson(this); @@ -35204,7 +36561,8 @@ class PackageInfo { bool operator ==(Object other) { return identical(this, other) || (other is PackageInfo && - (identical(other.name, name) || const DeepCollectionEquality().equals(other.name, name)) && + (identical(other.name, name) || + const DeepCollectionEquality().equals(other.name, name)) && (identical(other.description, description) || const DeepCollectionEquality().equals( other.description, @@ -35215,13 +36573,15 @@ class PackageInfo { other.overview, overview, )) && - (identical(other.owner, owner) || const DeepCollectionEquality().equals(other.owner, owner)) && + (identical(other.owner, owner) || + const DeepCollectionEquality().equals(other.owner, owner)) && (identical(other.category, category) || const DeepCollectionEquality().equals( other.category, category, )) && - (identical(other.guid, guid) || const DeepCollectionEquality().equals(other.guid, guid)) && + (identical(other.guid, guid) || + const DeepCollectionEquality().equals(other.guid, guid)) && (identical(other.versions, versions) || const DeepCollectionEquality().equals( other.versions, @@ -35300,7 +36660,8 @@ extension $PackageInfoExtension on PackageInfo { class ParentalRating { const ParentalRating({this.name, this.$Value, this.ratingScore}); - factory ParentalRating.fromJson(Map json) => _$ParentalRatingFromJson(json); + factory ParentalRating.fromJson(Map json) => + _$ParentalRatingFromJson(json); static const toJsonFactory = _$ParentalRatingToJson; Map toJson() => _$ParentalRatingToJson(this); @@ -35317,8 +36678,10 @@ class ParentalRating { bool operator ==(Object other) { return identical(this, other) || (other is ParentalRating && - (identical(other.name, name) || const DeepCollectionEquality().equals(other.name, name)) && - (identical(other.$Value, $Value) || const DeepCollectionEquality().equals(other.$Value, $Value)) && + (identical(other.name, name) || + const DeepCollectionEquality().equals(other.name, name)) && + (identical(other.$Value, $Value) || + const DeepCollectionEquality().equals(other.$Value, $Value)) && (identical(other.ratingScore, ratingScore) || const DeepCollectionEquality().equals( other.ratingScore, @@ -35367,7 +36730,8 @@ extension $ParentalRatingExtension on ParentalRating { class ParentalRatingScore { const ParentalRatingScore({this.score, this.subScore}); - factory ParentalRatingScore.fromJson(Map json) => _$ParentalRatingScoreFromJson(json); + factory ParentalRatingScore.fromJson(Map json) => + _$ParentalRatingScoreFromJson(json); static const toJsonFactory = _$ParentalRatingScoreToJson; Map toJson() => _$ParentalRatingScoreToJson(this); @@ -35382,7 +36746,8 @@ class ParentalRatingScore { bool operator ==(Object other) { return identical(this, other) || (other is ParentalRatingScore && - (identical(other.score, score) || const DeepCollectionEquality().equals(other.score, score)) && + (identical(other.score, score) || + const DeepCollectionEquality().equals(other.score, score)) && (identical(other.subScore, subScore) || const DeepCollectionEquality().equals( other.subScore, @@ -35395,7 +36760,9 @@ class ParentalRatingScore { @override int get hashCode => - const DeepCollectionEquality().hash(score) ^ const DeepCollectionEquality().hash(subScore) ^ runtimeType.hashCode; + const DeepCollectionEquality().hash(score) ^ + const DeepCollectionEquality().hash(subScore) ^ + runtimeType.hashCode; } extension $ParentalRatingScoreExtension on ParentalRatingScore { @@ -35421,7 +36788,8 @@ extension $ParentalRatingScoreExtension on ParentalRatingScore { class PathSubstitution { const PathSubstitution({this.from, this.to}); - factory PathSubstitution.fromJson(Map json) => _$PathSubstitutionFromJson(json); + factory PathSubstitution.fromJson(Map json) => + _$PathSubstitutionFromJson(json); static const toJsonFactory = _$PathSubstitutionToJson; Map toJson() => _$PathSubstitutionToJson(this); @@ -35436,8 +36804,10 @@ class PathSubstitution { bool operator ==(Object other) { return identical(this, other) || (other is PathSubstitution && - (identical(other.from, from) || const DeepCollectionEquality().equals(other.from, from)) && - (identical(other.to, to) || const DeepCollectionEquality().equals(other.to, to))); + (identical(other.from, from) || + const DeepCollectionEquality().equals(other.from, from)) && + (identical(other.to, to) || + const DeepCollectionEquality().equals(other.to, to))); } @override @@ -35445,7 +36815,9 @@ class PathSubstitution { @override int get hashCode => - const DeepCollectionEquality().hash(from) ^ const DeepCollectionEquality().hash(to) ^ runtimeType.hashCode; + const DeepCollectionEquality().hash(from) ^ + const DeepCollectionEquality().hash(to) ^ + runtimeType.hashCode; } extension $PathSubstitutionExtension on PathSubstitution { @@ -35480,7 +36852,8 @@ class PersonLookupInfo { this.isAutomated, }); - factory PersonLookupInfo.fromJson(Map json) => _$PersonLookupInfoFromJson(json); + factory PersonLookupInfo.fromJson(Map json) => + _$PersonLookupInfoFromJson(json); static const toJsonFactory = _$PersonLookupInfoToJson; Map toJson() => _$PersonLookupInfoToJson(this); @@ -35513,13 +36886,15 @@ class PersonLookupInfo { bool operator ==(Object other) { return identical(this, other) || (other is PersonLookupInfo && - (identical(other.name, name) || const DeepCollectionEquality().equals(other.name, name)) && + (identical(other.name, name) || + const DeepCollectionEquality().equals(other.name, name)) && (identical(other.originalTitle, originalTitle) || const DeepCollectionEquality().equals( other.originalTitle, originalTitle, )) && - (identical(other.path, path) || const DeepCollectionEquality().equals(other.path, path)) && + (identical(other.path, path) || + const DeepCollectionEquality().equals(other.path, path)) && (identical(other.metadataLanguage, metadataLanguage) || const DeepCollectionEquality().equals( other.metadataLanguage, @@ -35535,7 +36910,8 @@ class PersonLookupInfo { other.providerIds, providerIds, )) && - (identical(other.year, year) || const DeepCollectionEquality().equals(other.year, year)) && + (identical(other.year, year) || + const DeepCollectionEquality().equals(other.year, year)) && (identical(other.indexNumber, indexNumber) || const DeepCollectionEquality().equals( other.indexNumber, @@ -35621,15 +36997,25 @@ extension $PersonLookupInfoExtension on PersonLookupInfo { }) { return PersonLookupInfo( name: (name != null ? name.value : this.name), - originalTitle: (originalTitle != null ? originalTitle.value : this.originalTitle), + originalTitle: (originalTitle != null + ? originalTitle.value + : this.originalTitle), path: (path != null ? path.value : this.path), - metadataLanguage: (metadataLanguage != null ? metadataLanguage.value : this.metadataLanguage), - metadataCountryCode: (metadataCountryCode != null ? metadataCountryCode.value : this.metadataCountryCode), + metadataLanguage: (metadataLanguage != null + ? metadataLanguage.value + : this.metadataLanguage), + metadataCountryCode: (metadataCountryCode != null + ? metadataCountryCode.value + : this.metadataCountryCode), providerIds: (providerIds != null ? providerIds.value : this.providerIds), year: (year != null ? year.value : this.year), indexNumber: (indexNumber != null ? indexNumber.value : this.indexNumber), - parentIndexNumber: (parentIndexNumber != null ? parentIndexNumber.value : this.parentIndexNumber), - premiereDate: (premiereDate != null ? premiereDate.value : this.premiereDate), + parentIndexNumber: (parentIndexNumber != null + ? parentIndexNumber.value + : this.parentIndexNumber), + premiereDate: (premiereDate != null + ? premiereDate.value + : this.premiereDate), isAutomated: (isAutomated != null ? isAutomated.value : this.isAutomated), ); } @@ -35646,11 +37032,11 @@ class PersonLookupInfoRemoteSearchQuery { factory PersonLookupInfoRemoteSearchQuery.fromJson( Map json, - ) => - _$PersonLookupInfoRemoteSearchQueryFromJson(json); + ) => _$PersonLookupInfoRemoteSearchQueryFromJson(json); static const toJsonFactory = _$PersonLookupInfoRemoteSearchQueryToJson; - Map toJson() => _$PersonLookupInfoRemoteSearchQueryToJson(this); + Map toJson() => + _$PersonLookupInfoRemoteSearchQueryToJson(this); @JsonKey(name: 'SearchInfo', includeIfNull: false) final PersonLookupInfo? searchInfo; @@ -35671,7 +37057,8 @@ class PersonLookupInfoRemoteSearchQuery { other.searchInfo, searchInfo, )) && - (identical(other.itemId, itemId) || const DeepCollectionEquality().equals(other.itemId, itemId)) && + (identical(other.itemId, itemId) || + const DeepCollectionEquality().equals(other.itemId, itemId)) && (identical(other.searchProviderName, searchProviderName) || const DeepCollectionEquality().equals( other.searchProviderName, @@ -35699,7 +37086,8 @@ class PersonLookupInfoRemoteSearchQuery { runtimeType.hashCode; } -extension $PersonLookupInfoRemoteSearchQueryExtension on PersonLookupInfoRemoteSearchQuery { +extension $PersonLookupInfoRemoteSearchQueryExtension + on PersonLookupInfoRemoteSearchQuery { PersonLookupInfoRemoteSearchQuery copyWith({ PersonLookupInfo? searchInfo, String? itemId, @@ -35710,7 +37098,8 @@ extension $PersonLookupInfoRemoteSearchQueryExtension on PersonLookupInfoRemoteS searchInfo: searchInfo ?? this.searchInfo, itemId: itemId ?? this.itemId, searchProviderName: searchProviderName ?? this.searchProviderName, - includeDisabledProviders: includeDisabledProviders ?? this.includeDisabledProviders, + includeDisabledProviders: + includeDisabledProviders ?? this.includeDisabledProviders, ); } @@ -35723,9 +37112,12 @@ extension $PersonLookupInfoRemoteSearchQueryExtension on PersonLookupInfoRemoteS return PersonLookupInfoRemoteSearchQuery( searchInfo: (searchInfo != null ? searchInfo.value : this.searchInfo), itemId: (itemId != null ? itemId.value : this.itemId), - searchProviderName: (searchProviderName != null ? searchProviderName.value : this.searchProviderName), - includeDisabledProviders: - (includeDisabledProviders != null ? includeDisabledProviders.value : this.includeDisabledProviders), + searchProviderName: (searchProviderName != null + ? searchProviderName.value + : this.searchProviderName), + includeDisabledProviders: (includeDisabledProviders != null + ? includeDisabledProviders.value + : this.includeDisabledProviders), ); } } @@ -35734,7 +37126,8 @@ extension $PersonLookupInfoRemoteSearchQueryExtension on PersonLookupInfoRemoteS class PingRequestDto { const PingRequestDto({this.ping}); - factory PingRequestDto.fromJson(Map json) => _$PingRequestDtoFromJson(json); + factory PingRequestDto.fromJson(Map json) => + _$PingRequestDtoFromJson(json); static const toJsonFactory = _$PingRequestDtoToJson; Map toJson() => _$PingRequestDtoToJson(this); @@ -35747,14 +37140,16 @@ class PingRequestDto { bool operator ==(Object other) { return identical(this, other) || (other is PingRequestDto && - (identical(other.ping, ping) || const DeepCollectionEquality().equals(other.ping, ping))); + (identical(other.ping, ping) || + const DeepCollectionEquality().equals(other.ping, ping))); } @override String toString() => jsonEncode(this); @override - int get hashCode => const DeepCollectionEquality().hash(ping) ^ runtimeType.hashCode; + int get hashCode => + const DeepCollectionEquality().hash(ping) ^ runtimeType.hashCode; } extension $PingRequestDtoExtension on PingRequestDto { @@ -35771,7 +37166,8 @@ extension $PingRequestDtoExtension on PingRequestDto { class PinRedeemResult { const PinRedeemResult({this.success, this.usersReset}); - factory PinRedeemResult.fromJson(Map json) => _$PinRedeemResultFromJson(json); + factory PinRedeemResult.fromJson(Map json) => + _$PinRedeemResultFromJson(json); static const toJsonFactory = _$PinRedeemResultToJson; Map toJson() => _$PinRedeemResultToJson(this); @@ -35848,7 +37244,8 @@ class PlaybackInfoDto { this.alwaysBurnInSubtitleWhenTranscoding, }); - factory PlaybackInfoDto.fromJson(Map json) => _$PlaybackInfoDtoFromJson(json); + factory PlaybackInfoDto.fromJson(Map json) => + _$PlaybackInfoDtoFromJson(json); static const toJsonFactory = _$PlaybackInfoDtoToJson; Map toJson() => _$PlaybackInfoDtoToJson(this); @@ -35891,7 +37288,8 @@ class PlaybackInfoDto { bool operator ==(Object other) { return identical(this, other) || (other is PlaybackInfoDto && - (identical(other.userId, userId) || const DeepCollectionEquality().equals(other.userId, userId)) && + (identical(other.userId, userId) || + const DeepCollectionEquality().equals(other.userId, userId)) && (identical(other.maxStreamingBitrate, maxStreamingBitrate) || const DeepCollectionEquality().equals( other.maxStreamingBitrate, @@ -36032,7 +37430,8 @@ extension $PlaybackInfoDtoExtension on PlaybackInfoDto { allowAudioStreamCopy: allowAudioStreamCopy ?? this.allowAudioStreamCopy, autoOpenLiveStream: autoOpenLiveStream ?? this.autoOpenLiveStream, alwaysBurnInSubtitleWhenTranscoding: - alwaysBurnInSubtitleWhenTranscoding ?? this.alwaysBurnInSubtitleWhenTranscoding, + alwaysBurnInSubtitleWhenTranscoding ?? + this.alwaysBurnInSubtitleWhenTranscoding, ); } @@ -36056,21 +37455,50 @@ extension $PlaybackInfoDtoExtension on PlaybackInfoDto { }) { return PlaybackInfoDto( userId: (userId != null ? userId.value : this.userId), - maxStreamingBitrate: (maxStreamingBitrate != null ? maxStreamingBitrate.value : this.maxStreamingBitrate), - startTimeTicks: (startTimeTicks != null ? startTimeTicks.value : this.startTimeTicks), - audioStreamIndex: (audioStreamIndex != null ? audioStreamIndex.value : this.audioStreamIndex), - subtitleStreamIndex: (subtitleStreamIndex != null ? subtitleStreamIndex.value : this.subtitleStreamIndex), - maxAudioChannels: (maxAudioChannels != null ? maxAudioChannels.value : this.maxAudioChannels), - mediaSourceId: (mediaSourceId != null ? mediaSourceId.value : this.mediaSourceId), - liveStreamId: (liveStreamId != null ? liveStreamId.value : this.liveStreamId), - deviceProfile: (deviceProfile != null ? deviceProfile.value : this.deviceProfile), - enableDirectPlay: (enableDirectPlay != null ? enableDirectPlay.value : this.enableDirectPlay), - enableDirectStream: (enableDirectStream != null ? enableDirectStream.value : this.enableDirectStream), - enableTranscoding: (enableTranscoding != null ? enableTranscoding.value : this.enableTranscoding), - allowVideoStreamCopy: (allowVideoStreamCopy != null ? allowVideoStreamCopy.value : this.allowVideoStreamCopy), - allowAudioStreamCopy: (allowAudioStreamCopy != null ? allowAudioStreamCopy.value : this.allowAudioStreamCopy), - autoOpenLiveStream: (autoOpenLiveStream != null ? autoOpenLiveStream.value : this.autoOpenLiveStream), - alwaysBurnInSubtitleWhenTranscoding: (alwaysBurnInSubtitleWhenTranscoding != null + maxStreamingBitrate: (maxStreamingBitrate != null + ? maxStreamingBitrate.value + : this.maxStreamingBitrate), + startTimeTicks: (startTimeTicks != null + ? startTimeTicks.value + : this.startTimeTicks), + audioStreamIndex: (audioStreamIndex != null + ? audioStreamIndex.value + : this.audioStreamIndex), + subtitleStreamIndex: (subtitleStreamIndex != null + ? subtitleStreamIndex.value + : this.subtitleStreamIndex), + maxAudioChannels: (maxAudioChannels != null + ? maxAudioChannels.value + : this.maxAudioChannels), + mediaSourceId: (mediaSourceId != null + ? mediaSourceId.value + : this.mediaSourceId), + liveStreamId: (liveStreamId != null + ? liveStreamId.value + : this.liveStreamId), + deviceProfile: (deviceProfile != null + ? deviceProfile.value + : this.deviceProfile), + enableDirectPlay: (enableDirectPlay != null + ? enableDirectPlay.value + : this.enableDirectPlay), + enableDirectStream: (enableDirectStream != null + ? enableDirectStream.value + : this.enableDirectStream), + enableTranscoding: (enableTranscoding != null + ? enableTranscoding.value + : this.enableTranscoding), + allowVideoStreamCopy: (allowVideoStreamCopy != null + ? allowVideoStreamCopy.value + : this.allowVideoStreamCopy), + allowAudioStreamCopy: (allowAudioStreamCopy != null + ? allowAudioStreamCopy.value + : this.allowAudioStreamCopy), + autoOpenLiveStream: (autoOpenLiveStream != null + ? autoOpenLiveStream.value + : this.autoOpenLiveStream), + alwaysBurnInSubtitleWhenTranscoding: + (alwaysBurnInSubtitleWhenTranscoding != null ? alwaysBurnInSubtitleWhenTranscoding.value : this.alwaysBurnInSubtitleWhenTranscoding), ); @@ -36085,7 +37513,8 @@ class PlaybackInfoResponse { this.errorCode, }); - factory PlaybackInfoResponse.fromJson(Map json) => _$PlaybackInfoResponseFromJson(json); + factory PlaybackInfoResponse.fromJson(Map json) => + _$PlaybackInfoResponseFromJson(json); static const toJsonFactory = _$PlaybackInfoResponseToJson; Map toJson() => _$PlaybackInfoResponseToJson(this); @@ -36158,8 +37587,12 @@ extension $PlaybackInfoResponseExtension on PlaybackInfoResponse { Wrapped? errorCode, }) { return PlaybackInfoResponse( - mediaSources: (mediaSources != null ? mediaSources.value : this.mediaSources), - playSessionId: (playSessionId != null ? playSessionId.value : this.playSessionId), + mediaSources: (mediaSources != null + ? mediaSources.value + : this.mediaSources), + playSessionId: (playSessionId != null + ? playSessionId.value + : this.playSessionId), errorCode: (errorCode != null ? errorCode.value : this.errorCode), ); } @@ -36191,7 +37624,8 @@ class PlaybackProgressInfo { this.playlistItemId, }); - factory PlaybackProgressInfo.fromJson(Map json) => _$PlaybackProgressInfoFromJson(json); + factory PlaybackProgressInfo.fromJson(Map json) => + _$PlaybackProgressInfoFromJson(json); static const toJsonFactory = _$PlaybackProgressInfoToJson; Map toJson() => _$PlaybackProgressInfoToJson(this); @@ -36268,8 +37702,10 @@ class PlaybackProgressInfo { other.canSeek, canSeek, )) && - (identical(other.item, item) || const DeepCollectionEquality().equals(other.item, item)) && - (identical(other.itemId, itemId) || const DeepCollectionEquality().equals(other.itemId, itemId)) && + (identical(other.item, item) || + const DeepCollectionEquality().equals(other.item, item)) && + (identical(other.itemId, itemId) || + const DeepCollectionEquality().equals(other.itemId, itemId)) && (identical(other.sessionId, sessionId) || const DeepCollectionEquality().equals( other.sessionId, @@ -36426,7 +37862,8 @@ extension $PlaybackProgressInfoExtension on PlaybackProgressInfo { isPaused: isPaused ?? this.isPaused, isMuted: isMuted ?? this.isMuted, positionTicks: positionTicks ?? this.positionTicks, - playbackStartTimeTicks: playbackStartTimeTicks ?? this.playbackStartTimeTicks, + playbackStartTimeTicks: + playbackStartTimeTicks ?? this.playbackStartTimeTicks, volumeLevel: volumeLevel ?? this.volumeLevel, brightness: brightness ?? this.brightness, aspectRatio: aspectRatio ?? this.aspectRatio, @@ -36468,24 +37905,43 @@ extension $PlaybackProgressInfoExtension on PlaybackProgressInfo { item: (item != null ? item.value : this.item), itemId: (itemId != null ? itemId.value : this.itemId), sessionId: (sessionId != null ? sessionId.value : this.sessionId), - mediaSourceId: (mediaSourceId != null ? mediaSourceId.value : this.mediaSourceId), - audioStreamIndex: (audioStreamIndex != null ? audioStreamIndex.value : this.audioStreamIndex), - subtitleStreamIndex: (subtitleStreamIndex != null ? subtitleStreamIndex.value : this.subtitleStreamIndex), + mediaSourceId: (mediaSourceId != null + ? mediaSourceId.value + : this.mediaSourceId), + audioStreamIndex: (audioStreamIndex != null + ? audioStreamIndex.value + : this.audioStreamIndex), + subtitleStreamIndex: (subtitleStreamIndex != null + ? subtitleStreamIndex.value + : this.subtitleStreamIndex), isPaused: (isPaused != null ? isPaused.value : this.isPaused), isMuted: (isMuted != null ? isMuted.value : this.isMuted), - positionTicks: (positionTicks != null ? positionTicks.value : this.positionTicks), - playbackStartTimeTicks: - (playbackStartTimeTicks != null ? playbackStartTimeTicks.value : this.playbackStartTimeTicks), + positionTicks: (positionTicks != null + ? positionTicks.value + : this.positionTicks), + playbackStartTimeTicks: (playbackStartTimeTicks != null + ? playbackStartTimeTicks.value + : this.playbackStartTimeTicks), volumeLevel: (volumeLevel != null ? volumeLevel.value : this.volumeLevel), brightness: (brightness != null ? brightness.value : this.brightness), aspectRatio: (aspectRatio != null ? aspectRatio.value : this.aspectRatio), playMethod: (playMethod != null ? playMethod.value : this.playMethod), - liveStreamId: (liveStreamId != null ? liveStreamId.value : this.liveStreamId), - playSessionId: (playSessionId != null ? playSessionId.value : this.playSessionId), + liveStreamId: (liveStreamId != null + ? liveStreamId.value + : this.liveStreamId), + playSessionId: (playSessionId != null + ? playSessionId.value + : this.playSessionId), repeatMode: (repeatMode != null ? repeatMode.value : this.repeatMode), - playbackOrder: (playbackOrder != null ? playbackOrder.value : this.playbackOrder), - nowPlayingQueue: (nowPlayingQueue != null ? nowPlayingQueue.value : this.nowPlayingQueue), - playlistItemId: (playlistItemId != null ? playlistItemId.value : this.playlistItemId), + playbackOrder: (playbackOrder != null + ? playbackOrder.value + : this.playbackOrder), + nowPlayingQueue: (nowPlayingQueue != null + ? nowPlayingQueue.value + : this.nowPlayingQueue), + playlistItemId: (playlistItemId != null + ? playlistItemId.value + : this.playlistItemId), ); } } @@ -36516,7 +37972,8 @@ class PlaybackStartInfo { this.playlistItemId, }); - factory PlaybackStartInfo.fromJson(Map json) => _$PlaybackStartInfoFromJson(json); + factory PlaybackStartInfo.fromJson(Map json) => + _$PlaybackStartInfoFromJson(json); static const toJsonFactory = _$PlaybackStartInfoToJson; Map toJson() => _$PlaybackStartInfoToJson(this); @@ -36593,8 +38050,10 @@ class PlaybackStartInfo { other.canSeek, canSeek, )) && - (identical(other.item, item) || const DeepCollectionEquality().equals(other.item, item)) && - (identical(other.itemId, itemId) || const DeepCollectionEquality().equals(other.itemId, itemId)) && + (identical(other.item, item) || + const DeepCollectionEquality().equals(other.item, item)) && + (identical(other.itemId, itemId) || + const DeepCollectionEquality().equals(other.itemId, itemId)) && (identical(other.sessionId, sessionId) || const DeepCollectionEquality().equals( other.sessionId, @@ -36751,7 +38210,8 @@ extension $PlaybackStartInfoExtension on PlaybackStartInfo { isPaused: isPaused ?? this.isPaused, isMuted: isMuted ?? this.isMuted, positionTicks: positionTicks ?? this.positionTicks, - playbackStartTimeTicks: playbackStartTimeTicks ?? this.playbackStartTimeTicks, + playbackStartTimeTicks: + playbackStartTimeTicks ?? this.playbackStartTimeTicks, volumeLevel: volumeLevel ?? this.volumeLevel, brightness: brightness ?? this.brightness, aspectRatio: aspectRatio ?? this.aspectRatio, @@ -36793,24 +38253,43 @@ extension $PlaybackStartInfoExtension on PlaybackStartInfo { item: (item != null ? item.value : this.item), itemId: (itemId != null ? itemId.value : this.itemId), sessionId: (sessionId != null ? sessionId.value : this.sessionId), - mediaSourceId: (mediaSourceId != null ? mediaSourceId.value : this.mediaSourceId), - audioStreamIndex: (audioStreamIndex != null ? audioStreamIndex.value : this.audioStreamIndex), - subtitleStreamIndex: (subtitleStreamIndex != null ? subtitleStreamIndex.value : this.subtitleStreamIndex), + mediaSourceId: (mediaSourceId != null + ? mediaSourceId.value + : this.mediaSourceId), + audioStreamIndex: (audioStreamIndex != null + ? audioStreamIndex.value + : this.audioStreamIndex), + subtitleStreamIndex: (subtitleStreamIndex != null + ? subtitleStreamIndex.value + : this.subtitleStreamIndex), isPaused: (isPaused != null ? isPaused.value : this.isPaused), isMuted: (isMuted != null ? isMuted.value : this.isMuted), - positionTicks: (positionTicks != null ? positionTicks.value : this.positionTicks), - playbackStartTimeTicks: - (playbackStartTimeTicks != null ? playbackStartTimeTicks.value : this.playbackStartTimeTicks), + positionTicks: (positionTicks != null + ? positionTicks.value + : this.positionTicks), + playbackStartTimeTicks: (playbackStartTimeTicks != null + ? playbackStartTimeTicks.value + : this.playbackStartTimeTicks), volumeLevel: (volumeLevel != null ? volumeLevel.value : this.volumeLevel), brightness: (brightness != null ? brightness.value : this.brightness), aspectRatio: (aspectRatio != null ? aspectRatio.value : this.aspectRatio), playMethod: (playMethod != null ? playMethod.value : this.playMethod), - liveStreamId: (liveStreamId != null ? liveStreamId.value : this.liveStreamId), - playSessionId: (playSessionId != null ? playSessionId.value : this.playSessionId), + liveStreamId: (liveStreamId != null + ? liveStreamId.value + : this.liveStreamId), + playSessionId: (playSessionId != null + ? playSessionId.value + : this.playSessionId), repeatMode: (repeatMode != null ? repeatMode.value : this.repeatMode), - playbackOrder: (playbackOrder != null ? playbackOrder.value : this.playbackOrder), - nowPlayingQueue: (nowPlayingQueue != null ? nowPlayingQueue.value : this.nowPlayingQueue), - playlistItemId: (playlistItemId != null ? playlistItemId.value : this.playlistItemId), + playbackOrder: (playbackOrder != null + ? playbackOrder.value + : this.playbackOrder), + nowPlayingQueue: (nowPlayingQueue != null + ? nowPlayingQueue.value + : this.nowPlayingQueue), + playlistItemId: (playlistItemId != null + ? playlistItemId.value + : this.playlistItemId), ); } } @@ -36831,7 +38310,8 @@ class PlaybackStopInfo { this.nowPlayingQueue, }); - factory PlaybackStopInfo.fromJson(Map json) => _$PlaybackStopInfoFromJson(json); + factory PlaybackStopInfo.fromJson(Map json) => + _$PlaybackStopInfoFromJson(json); static const toJsonFactory = _$PlaybackStopInfoToJson; Map toJson() => _$PlaybackStopInfoToJson(this); @@ -36868,8 +38348,10 @@ class PlaybackStopInfo { bool operator ==(Object other) { return identical(this, other) || (other is PlaybackStopInfo && - (identical(other.item, item) || const DeepCollectionEquality().equals(other.item, item)) && - (identical(other.itemId, itemId) || const DeepCollectionEquality().equals(other.itemId, itemId)) && + (identical(other.item, item) || + const DeepCollectionEquality().equals(other.item, item)) && + (identical(other.itemId, itemId) || + const DeepCollectionEquality().equals(other.itemId, itemId)) && (identical(other.sessionId, sessionId) || const DeepCollectionEquality().equals( other.sessionId, @@ -36895,7 +38377,8 @@ class PlaybackStopInfo { other.playSessionId, playSessionId, )) && - (identical(other.failed, failed) || const DeepCollectionEquality().equals(other.failed, failed)) && + (identical(other.failed, failed) || + const DeepCollectionEquality().equals(other.failed, failed)) && (identical(other.nextMediaType, nextMediaType) || const DeepCollectionEquality().equals( other.nextMediaType, @@ -36978,14 +38461,28 @@ extension $PlaybackStopInfoExtension on PlaybackStopInfo { item: (item != null ? item.value : this.item), itemId: (itemId != null ? itemId.value : this.itemId), sessionId: (sessionId != null ? sessionId.value : this.sessionId), - mediaSourceId: (mediaSourceId != null ? mediaSourceId.value : this.mediaSourceId), - positionTicks: (positionTicks != null ? positionTicks.value : this.positionTicks), - liveStreamId: (liveStreamId != null ? liveStreamId.value : this.liveStreamId), - playSessionId: (playSessionId != null ? playSessionId.value : this.playSessionId), + mediaSourceId: (mediaSourceId != null + ? mediaSourceId.value + : this.mediaSourceId), + positionTicks: (positionTicks != null + ? positionTicks.value + : this.positionTicks), + liveStreamId: (liveStreamId != null + ? liveStreamId.value + : this.liveStreamId), + playSessionId: (playSessionId != null + ? playSessionId.value + : this.playSessionId), failed: (failed != null ? failed.value : this.failed), - nextMediaType: (nextMediaType != null ? nextMediaType.value : this.nextMediaType), - playlistItemId: (playlistItemId != null ? playlistItemId.value : this.playlistItemId), - nowPlayingQueue: (nowPlayingQueue != null ? nowPlayingQueue.value : this.nowPlayingQueue), + nextMediaType: (nextMediaType != null + ? nextMediaType.value + : this.nextMediaType), + playlistItemId: (playlistItemId != null + ? playlistItemId.value + : this.playlistItemId), + nowPlayingQueue: (nowPlayingQueue != null + ? nowPlayingQueue.value + : this.nowPlayingQueue), ); } } @@ -37007,7 +38504,8 @@ class PlayerStateInfo { this.liveStreamId, }); - factory PlayerStateInfo.fromJson(Map json) => _$PlayerStateInfoFromJson(json); + factory PlayerStateInfo.fromJson(Map json) => + _$PlayerStateInfoFromJson(json); static const toJsonFactory = _$PlayerStateInfoToJson; Map toJson() => _$PlayerStateInfoToJson(this); @@ -37185,18 +38683,30 @@ extension $PlayerStateInfoExtension on PlayerStateInfo { Wrapped? liveStreamId, }) { return PlayerStateInfo( - positionTicks: (positionTicks != null ? positionTicks.value : this.positionTicks), + positionTicks: (positionTicks != null + ? positionTicks.value + : this.positionTicks), canSeek: (canSeek != null ? canSeek.value : this.canSeek), isPaused: (isPaused != null ? isPaused.value : this.isPaused), isMuted: (isMuted != null ? isMuted.value : this.isMuted), volumeLevel: (volumeLevel != null ? volumeLevel.value : this.volumeLevel), - audioStreamIndex: (audioStreamIndex != null ? audioStreamIndex.value : this.audioStreamIndex), - subtitleStreamIndex: (subtitleStreamIndex != null ? subtitleStreamIndex.value : this.subtitleStreamIndex), - mediaSourceId: (mediaSourceId != null ? mediaSourceId.value : this.mediaSourceId), + audioStreamIndex: (audioStreamIndex != null + ? audioStreamIndex.value + : this.audioStreamIndex), + subtitleStreamIndex: (subtitleStreamIndex != null + ? subtitleStreamIndex.value + : this.subtitleStreamIndex), + mediaSourceId: (mediaSourceId != null + ? mediaSourceId.value + : this.mediaSourceId), playMethod: (playMethod != null ? playMethod.value : this.playMethod), repeatMode: (repeatMode != null ? repeatMode.value : this.repeatMode), - playbackOrder: (playbackOrder != null ? playbackOrder.value : this.playbackOrder), - liveStreamId: (liveStreamId != null ? liveStreamId.value : this.liveStreamId), + playbackOrder: (playbackOrder != null + ? playbackOrder.value + : this.playbackOrder), + liveStreamId: (liveStreamId != null + ? liveStreamId.value + : this.liveStreamId), ); } } @@ -37205,7 +38715,8 @@ extension $PlayerStateInfoExtension on PlayerStateInfo { class PlaylistCreationResult { const PlaylistCreationResult({this.id}); - factory PlaylistCreationResult.fromJson(Map json) => _$PlaylistCreationResultFromJson(json); + factory PlaylistCreationResult.fromJson(Map json) => + _$PlaylistCreationResultFromJson(json); static const toJsonFactory = _$PlaylistCreationResultToJson; Map toJson() => _$PlaylistCreationResultToJson(this); @@ -37218,14 +38729,16 @@ class PlaylistCreationResult { bool operator ==(Object other) { return identical(this, other) || (other is PlaylistCreationResult && - (identical(other.id, id) || const DeepCollectionEquality().equals(other.id, id))); + (identical(other.id, id) || + const DeepCollectionEquality().equals(other.id, id))); } @override String toString() => jsonEncode(this); @override - int get hashCode => const DeepCollectionEquality().hash(id) ^ runtimeType.hashCode; + int get hashCode => + const DeepCollectionEquality().hash(id) ^ runtimeType.hashCode; } extension $PlaylistCreationResultExtension on PlaylistCreationResult { @@ -37242,7 +38755,8 @@ extension $PlaylistCreationResultExtension on PlaylistCreationResult { class PlaylistDto { const PlaylistDto({this.openAccess, this.shares, this.itemIds}); - factory PlaylistDto.fromJson(Map json) => _$PlaylistDtoFromJson(json); + factory PlaylistDto.fromJson(Map json) => + _$PlaylistDtoFromJson(json); static const toJsonFactory = _$PlaylistDtoToJson; Map toJson() => _$PlaylistDtoToJson(this); @@ -37268,8 +38782,10 @@ class PlaylistDto { other.openAccess, openAccess, )) && - (identical(other.shares, shares) || const DeepCollectionEquality().equals(other.shares, shares)) && - (identical(other.itemIds, itemIds) || const DeepCollectionEquality().equals(other.itemIds, itemIds))); + (identical(other.shares, shares) || + const DeepCollectionEquality().equals(other.shares, shares)) && + (identical(other.itemIds, itemIds) || + const DeepCollectionEquality().equals(other.itemIds, itemIds))); } @override @@ -37313,7 +38829,8 @@ extension $PlaylistDtoExtension on PlaylistDto { class PlaylistUserPermissions { const PlaylistUserPermissions({this.userId, this.canEdit}); - factory PlaylistUserPermissions.fromJson(Map json) => _$PlaylistUserPermissionsFromJson(json); + factory PlaylistUserPermissions.fromJson(Map json) => + _$PlaylistUserPermissionsFromJson(json); static const toJsonFactory = _$PlaylistUserPermissionsToJson; Map toJson() => _$PlaylistUserPermissionsToJson(this); @@ -37328,8 +38845,10 @@ class PlaylistUserPermissions { bool operator ==(Object other) { return identical(this, other) || (other is PlaylistUserPermissions && - (identical(other.userId, userId) || const DeepCollectionEquality().equals(other.userId, userId)) && - (identical(other.canEdit, canEdit) || const DeepCollectionEquality().equals(other.canEdit, canEdit))); + (identical(other.userId, userId) || + const DeepCollectionEquality().equals(other.userId, userId)) && + (identical(other.canEdit, canEdit) || + const DeepCollectionEquality().equals(other.canEdit, canEdit))); } @override @@ -37337,7 +38856,9 @@ class PlaylistUserPermissions { @override int get hashCode => - const DeepCollectionEquality().hash(userId) ^ const DeepCollectionEquality().hash(canEdit) ^ runtimeType.hashCode; + const DeepCollectionEquality().hash(userId) ^ + const DeepCollectionEquality().hash(canEdit) ^ + runtimeType.hashCode; } extension $PlaylistUserPermissionsExtension on PlaylistUserPermissions { @@ -37363,7 +38884,8 @@ extension $PlaylistUserPermissionsExtension on PlaylistUserPermissions { class PlayMessage { const PlayMessage({this.data, this.messageId, this.messageType}); - factory PlayMessage.fromJson(Map json) => _$PlayMessageFromJson(json); + factory PlayMessage.fromJson(Map json) => + _$PlayMessageFromJson(json); static const toJsonFactory = _$PlayMessageToJson; Map toJson() => _$PlayMessageToJson(this); @@ -37379,7 +38901,8 @@ class PlayMessage { fromJson: sessionMessageTypeMessageTypeNullableFromJson, ) final enums.SessionMessageType? messageType; - static enums.SessionMessageType? sessionMessageTypeMessageTypeNullableFromJson(Object? value) => + static enums.SessionMessageType? + sessionMessageTypeMessageTypeNullableFromJson(Object? value) => sessionMessageTypeNullableFromJson(value, enums.SessionMessageType.play); static const fromJsonFactory = _$PlayMessageFromJson; @@ -37388,7 +38911,8 @@ class PlayMessage { bool operator ==(Object other) { return identical(this, other) || (other is PlayMessage && - (identical(other.data, data) || const DeepCollectionEquality().equals(other.data, data)) && + (identical(other.data, data) || + const DeepCollectionEquality().equals(other.data, data)) && (identical(other.messageId, messageId) || const DeepCollectionEquality().equals( other.messageId, @@ -37451,7 +38975,8 @@ class PlayQueueUpdate { this.repeatMode, }); - factory PlayQueueUpdate.fromJson(Map json) => _$PlayQueueUpdateFromJson(json); + factory PlayQueueUpdate.fromJson(Map json) => + _$PlayQueueUpdateFromJson(json); static const toJsonFactory = _$PlayQueueUpdateToJson; Map toJson() => _$PlayQueueUpdateToJson(this); @@ -37497,7 +39022,8 @@ class PlayQueueUpdate { bool operator ==(Object other) { return identical(this, other) || (other is PlayQueueUpdate && - (identical(other.reason, reason) || const DeepCollectionEquality().equals(other.reason, reason)) && + (identical(other.reason, reason) || + const DeepCollectionEquality().equals(other.reason, reason)) && (identical(other.lastUpdate, lastUpdate) || const DeepCollectionEquality().equals( other.lastUpdate, @@ -37588,8 +39114,12 @@ extension $PlayQueueUpdateExtension on PlayQueueUpdate { reason: (reason != null ? reason.value : this.reason), lastUpdate: (lastUpdate != null ? lastUpdate.value : this.lastUpdate), playlist: (playlist != null ? playlist.value : this.playlist), - playingItemIndex: (playingItemIndex != null ? playingItemIndex.value : this.playingItemIndex), - startPositionTicks: (startPositionTicks != null ? startPositionTicks.value : this.startPositionTicks), + playingItemIndex: (playingItemIndex != null + ? playingItemIndex.value + : this.playingItemIndex), + startPositionTicks: (startPositionTicks != null + ? startPositionTicks.value + : this.startPositionTicks), isPlaying: (isPlaying != null ? isPlaying.value : this.isPlaying), shuffleMode: (shuffleMode != null ? shuffleMode.value : this.shuffleMode), repeatMode: (repeatMode != null ? repeatMode.value : this.repeatMode), @@ -37610,7 +39140,8 @@ class PlayRequest { this.startIndex, }); - factory PlayRequest.fromJson(Map json) => _$PlayRequestFromJson(json); + factory PlayRequest.fromJson(Map json) => + _$PlayRequestFromJson(json); static const toJsonFactory = _$PlayRequestToJson; Map toJson() => _$PlayRequestToJson(this); @@ -37735,12 +39266,22 @@ extension $PlayRequestExtension on PlayRequest { }) { return PlayRequest( itemIds: (itemIds != null ? itemIds.value : this.itemIds), - startPositionTicks: (startPositionTicks != null ? startPositionTicks.value : this.startPositionTicks), + startPositionTicks: (startPositionTicks != null + ? startPositionTicks.value + : this.startPositionTicks), playCommand: (playCommand != null ? playCommand.value : this.playCommand), - controllingUserId: (controllingUserId != null ? controllingUserId.value : this.controllingUserId), - subtitleStreamIndex: (subtitleStreamIndex != null ? subtitleStreamIndex.value : this.subtitleStreamIndex), - audioStreamIndex: (audioStreamIndex != null ? audioStreamIndex.value : this.audioStreamIndex), - mediaSourceId: (mediaSourceId != null ? mediaSourceId.value : this.mediaSourceId), + controllingUserId: (controllingUserId != null + ? controllingUserId.value + : this.controllingUserId), + subtitleStreamIndex: (subtitleStreamIndex != null + ? subtitleStreamIndex.value + : this.subtitleStreamIndex), + audioStreamIndex: (audioStreamIndex != null + ? audioStreamIndex.value + : this.audioStreamIndex), + mediaSourceId: (mediaSourceId != null + ? mediaSourceId.value + : this.mediaSourceId), startIndex: (startIndex != null ? startIndex.value : this.startIndex), ); } @@ -37754,7 +39295,8 @@ class PlayRequestDto { this.startPositionTicks, }); - factory PlayRequestDto.fromJson(Map json) => _$PlayRequestDtoFromJson(json); + factory PlayRequestDto.fromJson(Map json) => + _$PlayRequestDtoFromJson(json); static const toJsonFactory = _$PlayRequestDtoToJson; Map toJson() => _$PlayRequestDtoToJson(this); @@ -37818,9 +39360,15 @@ extension $PlayRequestDtoExtension on PlayRequestDto { Wrapped? startPositionTicks, }) { return PlayRequestDto( - playingQueue: (playingQueue != null ? playingQueue.value : this.playingQueue), - playingItemPosition: (playingItemPosition != null ? playingItemPosition.value : this.playingItemPosition), - startPositionTicks: (startPositionTicks != null ? startPositionTicks.value : this.startPositionTicks), + playingQueue: (playingQueue != null + ? playingQueue.value + : this.playingQueue), + playingItemPosition: (playingItemPosition != null + ? playingItemPosition.value + : this.playingItemPosition), + startPositionTicks: (startPositionTicks != null + ? startPositionTicks.value + : this.startPositionTicks), ); } } @@ -37829,7 +39377,8 @@ extension $PlayRequestDtoExtension on PlayRequestDto { class PlaystateMessage { const PlaystateMessage({this.data, this.messageId, this.messageType}); - factory PlaystateMessage.fromJson(Map json) => _$PlaystateMessageFromJson(json); + factory PlaystateMessage.fromJson(Map json) => + _$PlaystateMessageFromJson(json); static const toJsonFactory = _$PlaystateMessageToJson; Map toJson() => _$PlaystateMessageToJson(this); @@ -37845,7 +39394,8 @@ class PlaystateMessage { fromJson: sessionMessageTypeMessageTypeNullableFromJson, ) final enums.SessionMessageType? messageType; - static enums.SessionMessageType? sessionMessageTypeMessageTypeNullableFromJson(Object? value) => + static enums.SessionMessageType? + sessionMessageTypeMessageTypeNullableFromJson(Object? value) => sessionMessageTypeNullableFromJson( value, enums.SessionMessageType.playstate, @@ -37857,7 +39407,8 @@ class PlaystateMessage { bool operator ==(Object other) { return identical(this, other) || (other is PlaystateMessage && - (identical(other.data, data) || const DeepCollectionEquality().equals(other.data, data)) && + (identical(other.data, data) || + const DeepCollectionEquality().equals(other.data, data)) && (identical(other.messageId, messageId) || const DeepCollectionEquality().equals( other.messageId, @@ -37915,7 +39466,8 @@ class PlaystateRequest { this.controllingUserId, }); - factory PlaystateRequest.fromJson(Map json) => _$PlaystateRequestFromJson(json); + factory PlaystateRequest.fromJson(Map json) => + _$PlaystateRequestFromJson(json); static const toJsonFactory = _$PlaystateRequestToJson; Map toJson() => _$PlaystateRequestToJson(this); @@ -37985,8 +39537,12 @@ extension $PlaystateRequestExtension on PlaystateRequest { }) { return PlaystateRequest( command: (command != null ? command.value : this.command), - seekPositionTicks: (seekPositionTicks != null ? seekPositionTicks.value : this.seekPositionTicks), - controllingUserId: (controllingUserId != null ? controllingUserId.value : this.controllingUserId), + seekPositionTicks: (seekPositionTicks != null + ? seekPositionTicks.value + : this.seekPositionTicks), + controllingUserId: (controllingUserId != null + ? controllingUserId.value + : this.controllingUserId), ); } } @@ -38004,7 +39560,8 @@ class PluginInfo { this.status, }); - factory PluginInfo.fromJson(Map json) => _$PluginInfoFromJson(json); + factory PluginInfo.fromJson(Map json) => + _$PluginInfoFromJson(json); static const toJsonFactory = _$PluginInfoToJson; Map toJson() => _$PluginInfoToJson(this); @@ -38036,7 +39593,8 @@ class PluginInfo { bool operator ==(Object other) { return identical(this, other) || (other is PluginInfo && - (identical(other.name, name) || const DeepCollectionEquality().equals(other.name, name)) && + (identical(other.name, name) || + const DeepCollectionEquality().equals(other.name, name)) && (identical(other.version, version) || const DeepCollectionEquality().equals( other.version, @@ -38052,7 +39610,8 @@ class PluginInfo { other.description, description, )) && - (identical(other.id, id) || const DeepCollectionEquality().equals(other.id, id)) && + (identical(other.id, id) || + const DeepCollectionEquality().equals(other.id, id)) && (identical(other.canUninstall, canUninstall) || const DeepCollectionEquality().equals( other.canUninstall, @@ -38063,7 +39622,8 @@ class PluginInfo { other.hasImage, hasImage, )) && - (identical(other.status, status) || const DeepCollectionEquality().equals(other.status, status))); + (identical(other.status, status) || + const DeepCollectionEquality().equals(other.status, status))); } @override @@ -38096,7 +39656,8 @@ extension $PluginInfoExtension on PluginInfo { return PluginInfo( name: name ?? this.name, version: version ?? this.version, - configurationFileName: configurationFileName ?? this.configurationFileName, + configurationFileName: + configurationFileName ?? this.configurationFileName, description: description ?? this.description, id: id ?? this.id, canUninstall: canUninstall ?? this.canUninstall, @@ -38118,10 +39679,14 @@ extension $PluginInfoExtension on PluginInfo { return PluginInfo( name: (name != null ? name.value : this.name), version: (version != null ? version.value : this.version), - configurationFileName: (configurationFileName != null ? configurationFileName.value : this.configurationFileName), + configurationFileName: (configurationFileName != null + ? configurationFileName.value + : this.configurationFileName), description: (description != null ? description.value : this.description), id: (id != null ? id.value : this.id), - canUninstall: (canUninstall != null ? canUninstall.value : this.canUninstall), + canUninstall: (canUninstall != null + ? canUninstall.value + : this.canUninstall), hasImage: (hasImage != null ? hasImage.value : this.hasImage), status: (status != null ? status.value : this.status), ); @@ -38138,11 +39703,11 @@ class PluginInstallationCancelledMessage { factory PluginInstallationCancelledMessage.fromJson( Map json, - ) => - _$PluginInstallationCancelledMessageFromJson(json); + ) => _$PluginInstallationCancelledMessageFromJson(json); static const toJsonFactory = _$PluginInstallationCancelledMessageToJson; - Map toJson() => _$PluginInstallationCancelledMessageToJson(this); + Map toJson() => + _$PluginInstallationCancelledMessageToJson(this); @JsonKey(name: 'Data', includeIfNull: false) final InstallationInfo? data; @@ -38155,7 +39720,8 @@ class PluginInstallationCancelledMessage { fromJson: sessionMessageTypeMessageTypeNullableFromJson, ) final enums.SessionMessageType? messageType; - static enums.SessionMessageType? sessionMessageTypeMessageTypeNullableFromJson(Object? value) => + static enums.SessionMessageType? + sessionMessageTypeMessageTypeNullableFromJson(Object? value) => sessionMessageTypeNullableFromJson( value, enums.SessionMessageType.packageinstallationcancelled, @@ -38167,7 +39733,8 @@ class PluginInstallationCancelledMessage { bool operator ==(Object other) { return identical(this, other) || (other is PluginInstallationCancelledMessage && - (identical(other.data, data) || const DeepCollectionEquality().equals(other.data, data)) && + (identical(other.data, data) || + const DeepCollectionEquality().equals(other.data, data)) && (identical(other.messageId, messageId) || const DeepCollectionEquality().equals( other.messageId, @@ -38191,7 +39758,8 @@ class PluginInstallationCancelledMessage { runtimeType.hashCode; } -extension $PluginInstallationCancelledMessageExtension on PluginInstallationCancelledMessage { +extension $PluginInstallationCancelledMessageExtension + on PluginInstallationCancelledMessage { PluginInstallationCancelledMessage copyWith({ InstallationInfo? data, String? messageId, @@ -38227,11 +39795,11 @@ class PluginInstallationCompletedMessage { factory PluginInstallationCompletedMessage.fromJson( Map json, - ) => - _$PluginInstallationCompletedMessageFromJson(json); + ) => _$PluginInstallationCompletedMessageFromJson(json); static const toJsonFactory = _$PluginInstallationCompletedMessageToJson; - Map toJson() => _$PluginInstallationCompletedMessageToJson(this); + Map toJson() => + _$PluginInstallationCompletedMessageToJson(this); @JsonKey(name: 'Data', includeIfNull: false) final InstallationInfo? data; @@ -38244,7 +39812,8 @@ class PluginInstallationCompletedMessage { fromJson: sessionMessageTypeMessageTypeNullableFromJson, ) final enums.SessionMessageType? messageType; - static enums.SessionMessageType? sessionMessageTypeMessageTypeNullableFromJson(Object? value) => + static enums.SessionMessageType? + sessionMessageTypeMessageTypeNullableFromJson(Object? value) => sessionMessageTypeNullableFromJson( value, enums.SessionMessageType.packageinstallationcompleted, @@ -38256,7 +39825,8 @@ class PluginInstallationCompletedMessage { bool operator ==(Object other) { return identical(this, other) || (other is PluginInstallationCompletedMessage && - (identical(other.data, data) || const DeepCollectionEquality().equals(other.data, data)) && + (identical(other.data, data) || + const DeepCollectionEquality().equals(other.data, data)) && (identical(other.messageId, messageId) || const DeepCollectionEquality().equals( other.messageId, @@ -38280,7 +39850,8 @@ class PluginInstallationCompletedMessage { runtimeType.hashCode; } -extension $PluginInstallationCompletedMessageExtension on PluginInstallationCompletedMessage { +extension $PluginInstallationCompletedMessageExtension + on PluginInstallationCompletedMessage { PluginInstallationCompletedMessage copyWith({ InstallationInfo? data, String? messageId, @@ -38318,7 +39889,8 @@ class PluginInstallationFailedMessage { _$PluginInstallationFailedMessageFromJson(json); static const toJsonFactory = _$PluginInstallationFailedMessageToJson; - Map toJson() => _$PluginInstallationFailedMessageToJson(this); + Map toJson() => + _$PluginInstallationFailedMessageToJson(this); @JsonKey(name: 'Data', includeIfNull: false) final InstallationInfo? data; @@ -38331,7 +39903,8 @@ class PluginInstallationFailedMessage { fromJson: sessionMessageTypeMessageTypeNullableFromJson, ) final enums.SessionMessageType? messageType; - static enums.SessionMessageType? sessionMessageTypeMessageTypeNullableFromJson(Object? value) => + static enums.SessionMessageType? + sessionMessageTypeMessageTypeNullableFromJson(Object? value) => sessionMessageTypeNullableFromJson( value, enums.SessionMessageType.packageinstallationfailed, @@ -38343,7 +39916,8 @@ class PluginInstallationFailedMessage { bool operator ==(Object other) { return identical(this, other) || (other is PluginInstallationFailedMessage && - (identical(other.data, data) || const DeepCollectionEquality().equals(other.data, data)) && + (identical(other.data, data) || + const DeepCollectionEquality().equals(other.data, data)) && (identical(other.messageId, messageId) || const DeepCollectionEquality().equals( other.messageId, @@ -38367,7 +39941,8 @@ class PluginInstallationFailedMessage { runtimeType.hashCode; } -extension $PluginInstallationFailedMessageExtension on PluginInstallationFailedMessage { +extension $PluginInstallationFailedMessageExtension + on PluginInstallationFailedMessage { PluginInstallationFailedMessage copyWith({ InstallationInfo? data, String? messageId, @@ -38397,7 +39972,8 @@ extension $PluginInstallationFailedMessageExtension on PluginInstallationFailedM class PluginInstallingMessage { const PluginInstallingMessage({this.data, this.messageId, this.messageType}); - factory PluginInstallingMessage.fromJson(Map json) => _$PluginInstallingMessageFromJson(json); + factory PluginInstallingMessage.fromJson(Map json) => + _$PluginInstallingMessageFromJson(json); static const toJsonFactory = _$PluginInstallingMessageToJson; Map toJson() => _$PluginInstallingMessageToJson(this); @@ -38413,7 +39989,8 @@ class PluginInstallingMessage { fromJson: sessionMessageTypeMessageTypeNullableFromJson, ) final enums.SessionMessageType? messageType; - static enums.SessionMessageType? sessionMessageTypeMessageTypeNullableFromJson(Object? value) => + static enums.SessionMessageType? + sessionMessageTypeMessageTypeNullableFromJson(Object? value) => sessionMessageTypeNullableFromJson( value, enums.SessionMessageType.packageinstalling, @@ -38425,7 +40002,8 @@ class PluginInstallingMessage { bool operator ==(Object other) { return identical(this, other) || (other is PluginInstallingMessage && - (identical(other.data, data) || const DeepCollectionEquality().equals(other.data, data)) && + (identical(other.data, data) || + const DeepCollectionEquality().equals(other.data, data)) && (identical(other.messageId, messageId) || const DeepCollectionEquality().equals( other.messageId, @@ -38479,7 +40057,8 @@ extension $PluginInstallingMessageExtension on PluginInstallingMessage { class PluginUninstalledMessage { const PluginUninstalledMessage({this.data, this.messageId, this.messageType}); - factory PluginUninstalledMessage.fromJson(Map json) => _$PluginUninstalledMessageFromJson(json); + factory PluginUninstalledMessage.fromJson(Map json) => + _$PluginUninstalledMessageFromJson(json); static const toJsonFactory = _$PluginUninstalledMessageToJson; Map toJson() => _$PluginUninstalledMessageToJson(this); @@ -38495,7 +40074,8 @@ class PluginUninstalledMessage { fromJson: sessionMessageTypeMessageTypeNullableFromJson, ) final enums.SessionMessageType? messageType; - static enums.SessionMessageType? sessionMessageTypeMessageTypeNullableFromJson(Object? value) => + static enums.SessionMessageType? + sessionMessageTypeMessageTypeNullableFromJson(Object? value) => sessionMessageTypeNullableFromJson( value, enums.SessionMessageType.packageuninstalled, @@ -38507,7 +40087,8 @@ class PluginUninstalledMessage { bool operator ==(Object other) { return identical(this, other) || (other is PluginUninstalledMessage && - (identical(other.data, data) || const DeepCollectionEquality().equals(other.data, data)) && + (identical(other.data, data) || + const DeepCollectionEquality().equals(other.data, data)) && (identical(other.messageId, messageId) || const DeepCollectionEquality().equals( other.messageId, @@ -38561,7 +40142,8 @@ extension $PluginUninstalledMessageExtension on PluginUninstalledMessage { class PreviousItemRequestDto { const PreviousItemRequestDto({this.playlistItemId}); - factory PreviousItemRequestDto.fromJson(Map json) => _$PreviousItemRequestDtoFromJson(json); + factory PreviousItemRequestDto.fromJson(Map json) => + _$PreviousItemRequestDtoFromJson(json); static const toJsonFactory = _$PreviousItemRequestDtoToJson; Map toJson() => _$PreviousItemRequestDtoToJson(this); @@ -38585,7 +40167,9 @@ class PreviousItemRequestDto { String toString() => jsonEncode(this); @override - int get hashCode => const DeepCollectionEquality().hash(playlistItemId) ^ runtimeType.hashCode; + int get hashCode => + const DeepCollectionEquality().hash(playlistItemId) ^ + runtimeType.hashCode; } extension $PreviousItemRequestDtoExtension on PreviousItemRequestDto { @@ -38597,7 +40181,9 @@ extension $PreviousItemRequestDtoExtension on PreviousItemRequestDto { PreviousItemRequestDto copyWithWrapped({Wrapped? playlistItemId}) { return PreviousItemRequestDto( - playlistItemId: (playlistItemId != null ? playlistItemId.value : this.playlistItemId), + playlistItemId: (playlistItemId != null + ? playlistItemId.value + : this.playlistItemId), ); } } @@ -38612,7 +40198,8 @@ class ProblemDetails { this.instance, }); - factory ProblemDetails.fromJson(Map json) => _$ProblemDetailsFromJson(json); + factory ProblemDetails.fromJson(Map json) => + _$ProblemDetailsFromJson(json); static const toJsonFactory = _$ProblemDetailsToJson; Map toJson() => _$ProblemDetailsToJson(this); @@ -38633,10 +40220,14 @@ class ProblemDetails { bool operator ==(Object other) { return identical(this, other) || (other is ProblemDetails && - (identical(other.type, type) || const DeepCollectionEquality().equals(other.type, type)) && - (identical(other.title, title) || const DeepCollectionEquality().equals(other.title, title)) && - (identical(other.status, status) || const DeepCollectionEquality().equals(other.status, status)) && - (identical(other.detail, detail) || const DeepCollectionEquality().equals(other.detail, detail)) && + (identical(other.type, type) || + const DeepCollectionEquality().equals(other.type, type)) && + (identical(other.title, title) || + const DeepCollectionEquality().equals(other.title, title)) && + (identical(other.status, status) || + const DeepCollectionEquality().equals(other.status, status)) && + (identical(other.detail, detail) || + const DeepCollectionEquality().equals(other.detail, detail)) && (identical(other.instance, instance) || const DeepCollectionEquality().equals( other.instance, @@ -38700,7 +40291,8 @@ class ProfileCondition { this.isRequired, }); - factory ProfileCondition.fromJson(Map json) => _$ProfileConditionFromJson(json); + factory ProfileCondition.fromJson(Map json) => + _$ProfileConditionFromJson(json); static const toJsonFactory = _$ProfileConditionToJson; Map toJson() => _$ProfileConditionToJson(this); @@ -38739,7 +40331,8 @@ class ProfileCondition { other.property, property, )) && - (identical(other.$Value, $Value) || const DeepCollectionEquality().equals(other.$Value, $Value)) && + (identical(other.$Value, $Value) || + const DeepCollectionEquality().equals(other.$Value, $Value)) && (identical(other.isRequired, isRequired) || const DeepCollectionEquality().equals( other.isRequired, @@ -38801,7 +40394,8 @@ class PublicSystemInfo { this.startupWizardCompleted, }); - factory PublicSystemInfo.fromJson(Map json) => _$PublicSystemInfoFromJson(json); + factory PublicSystemInfo.fromJson(Map json) => + _$PublicSystemInfoFromJson(json); static const toJsonFactory = _$PublicSystemInfoToJson; Map toJson() => _$PublicSystemInfoToJson(this); @@ -38852,7 +40446,8 @@ class PublicSystemInfo { other.operatingSystem, operatingSystem, )) && - (identical(other.id, id) || const DeepCollectionEquality().equals(other.id, id)) && + (identical(other.id, id) || + const DeepCollectionEquality().equals(other.id, id)) && (identical(other.startupWizardCompleted, startupWizardCompleted) || const DeepCollectionEquality().equals( other.startupWizardCompleted, @@ -38892,7 +40487,8 @@ extension $PublicSystemInfoExtension on PublicSystemInfo { productName: productName ?? this.productName, operatingSystem: operatingSystem ?? this.operatingSystem, id: id ?? this.id, - startupWizardCompleted: startupWizardCompleted ?? this.startupWizardCompleted, + startupWizardCompleted: + startupWizardCompleted ?? this.startupWizardCompleted, ); } @@ -38906,14 +40502,19 @@ extension $PublicSystemInfoExtension on PublicSystemInfo { Wrapped? startupWizardCompleted, }) { return PublicSystemInfo( - localAddress: (localAddress != null ? localAddress.value : this.localAddress), + localAddress: (localAddress != null + ? localAddress.value + : this.localAddress), serverName: (serverName != null ? serverName.value : this.serverName), version: (version != null ? version.value : this.version), productName: (productName != null ? productName.value : this.productName), - operatingSystem: (operatingSystem != null ? operatingSystem.value : this.operatingSystem), + operatingSystem: (operatingSystem != null + ? operatingSystem.value + : this.operatingSystem), id: (id != null ? id.value : this.id), - startupWizardCompleted: - (startupWizardCompleted != null ? startupWizardCompleted.value : this.startupWizardCompleted), + startupWizardCompleted: (startupWizardCompleted != null + ? startupWizardCompleted.value + : this.startupWizardCompleted), ); } } @@ -38922,7 +40523,8 @@ extension $PublicSystemInfoExtension on PublicSystemInfo { class QueryFilters { const QueryFilters({this.genres, this.tags}); - factory QueryFilters.fromJson(Map json) => _$QueryFiltersFromJson(json); + factory QueryFilters.fromJson(Map json) => + _$QueryFiltersFromJson(json); static const toJsonFactory = _$QueryFiltersToJson; Map toJson() => _$QueryFiltersToJson(this); @@ -38937,8 +40539,10 @@ class QueryFilters { bool operator ==(Object other) { return identical(this, other) || (other is QueryFilters && - (identical(other.genres, genres) || const DeepCollectionEquality().equals(other.genres, genres)) && - (identical(other.tags, tags) || const DeepCollectionEquality().equals(other.tags, tags))); + (identical(other.genres, genres) || + const DeepCollectionEquality().equals(other.genres, genres)) && + (identical(other.tags, tags) || + const DeepCollectionEquality().equals(other.tags, tags))); } @override @@ -38946,7 +40550,9 @@ class QueryFilters { @override int get hashCode => - const DeepCollectionEquality().hash(genres) ^ const DeepCollectionEquality().hash(tags) ^ runtimeType.hashCode; + const DeepCollectionEquality().hash(genres) ^ + const DeepCollectionEquality().hash(tags) ^ + runtimeType.hashCode; } extension $QueryFiltersExtension on QueryFilters { @@ -38974,7 +40580,8 @@ class QueryFiltersLegacy { this.years, }); - factory QueryFiltersLegacy.fromJson(Map json) => _$QueryFiltersLegacyFromJson(json); + factory QueryFiltersLegacy.fromJson(Map json) => + _$QueryFiltersLegacyFromJson(json); static const toJsonFactory = _$QueryFiltersLegacyToJson; Map toJson() => _$QueryFiltersLegacyToJson(this); @@ -38997,14 +40604,17 @@ class QueryFiltersLegacy { bool operator ==(Object other) { return identical(this, other) || (other is QueryFiltersLegacy && - (identical(other.genres, genres) || const DeepCollectionEquality().equals(other.genres, genres)) && - (identical(other.tags, tags) || const DeepCollectionEquality().equals(other.tags, tags)) && + (identical(other.genres, genres) || + const DeepCollectionEquality().equals(other.genres, genres)) && + (identical(other.tags, tags) || + const DeepCollectionEquality().equals(other.tags, tags)) && (identical(other.officialRatings, officialRatings) || const DeepCollectionEquality().equals( other.officialRatings, officialRatings, )) && - (identical(other.years, years) || const DeepCollectionEquality().equals(other.years, years))); + (identical(other.years, years) || + const DeepCollectionEquality().equals(other.years, years))); } @override @@ -39043,7 +40653,9 @@ extension $QueryFiltersLegacyExtension on QueryFiltersLegacy { return QueryFiltersLegacy( genres: (genres != null ? genres.value : this.genres), tags: (tags != null ? tags.value : this.tags), - officialRatings: (officialRatings != null ? officialRatings.value : this.officialRatings), + officialRatings: (officialRatings != null + ? officialRatings.value + : this.officialRatings), years: (years != null ? years.value : this.years), ); } @@ -39053,7 +40665,8 @@ extension $QueryFiltersLegacyExtension on QueryFiltersLegacy { class QueueItem { const QueueItem({this.id, this.playlistItemId}); - factory QueueItem.fromJson(Map json) => _$QueueItemFromJson(json); + factory QueueItem.fromJson(Map json) => + _$QueueItemFromJson(json); static const toJsonFactory = _$QueueItemToJson; Map toJson() => _$QueueItemToJson(this); @@ -39068,7 +40681,8 @@ class QueueItem { bool operator ==(Object other) { return identical(this, other) || (other is QueueItem && - (identical(other.id, id) || const DeepCollectionEquality().equals(other.id, id)) && + (identical(other.id, id) || + const DeepCollectionEquality().equals(other.id, id)) && (identical(other.playlistItemId, playlistItemId) || const DeepCollectionEquality().equals( other.playlistItemId, @@ -39100,7 +40714,9 @@ extension $QueueItemExtension on QueueItem { }) { return QueueItem( id: (id != null ? id.value : this.id), - playlistItemId: (playlistItemId != null ? playlistItemId.value : this.playlistItemId), + playlistItemId: (playlistItemId != null + ? playlistItemId.value + : this.playlistItemId), ); } } @@ -39109,7 +40725,8 @@ extension $QueueItemExtension on QueueItem { class QueueRequestDto { const QueueRequestDto({this.itemIds, this.mode}); - factory QueueRequestDto.fromJson(Map json) => _$QueueRequestDtoFromJson(json); + factory QueueRequestDto.fromJson(Map json) => + _$QueueRequestDtoFromJson(json); static const toJsonFactory = _$QueueRequestDtoToJson; Map toJson() => _$QueueRequestDtoToJson(this); @@ -39134,7 +40751,8 @@ class QueueRequestDto { other.itemIds, itemIds, )) && - (identical(other.mode, mode) || const DeepCollectionEquality().equals(other.mode, mode))); + (identical(other.mode, mode) || + const DeepCollectionEquality().equals(other.mode, mode))); } @override @@ -39142,7 +40760,9 @@ class QueueRequestDto { @override int get hashCode => - const DeepCollectionEquality().hash(itemIds) ^ const DeepCollectionEquality().hash(mode) ^ runtimeType.hashCode; + const DeepCollectionEquality().hash(itemIds) ^ + const DeepCollectionEquality().hash(mode) ^ + runtimeType.hashCode; } extension $QueueRequestDtoExtension on QueueRequestDto { @@ -39171,7 +40791,8 @@ extension $QueueRequestDtoExtension on QueueRequestDto { class QuickConnectDto { const QuickConnectDto({required this.secret}); - factory QuickConnectDto.fromJson(Map json) => _$QuickConnectDtoFromJson(json); + factory QuickConnectDto.fromJson(Map json) => + _$QuickConnectDtoFromJson(json); static const toJsonFactory = _$QuickConnectDtoToJson; Map toJson() => _$QuickConnectDtoToJson(this); @@ -39184,14 +40805,16 @@ class QuickConnectDto { bool operator ==(Object other) { return identical(this, other) || (other is QuickConnectDto && - (identical(other.secret, secret) || const DeepCollectionEquality().equals(other.secret, secret))); + (identical(other.secret, secret) || + const DeepCollectionEquality().equals(other.secret, secret))); } @override String toString() => jsonEncode(this); @override - int get hashCode => const DeepCollectionEquality().hash(secret) ^ runtimeType.hashCode; + int get hashCode => + const DeepCollectionEquality().hash(secret) ^ runtimeType.hashCode; } extension $QuickConnectDtoExtension on QuickConnectDto { @@ -39219,7 +40842,8 @@ class QuickConnectResult { this.dateAdded, }); - factory QuickConnectResult.fromJson(Map json) => _$QuickConnectResultFromJson(json); + factory QuickConnectResult.fromJson(Map json) => + _$QuickConnectResultFromJson(json); static const toJsonFactory = _$QuickConnectResultToJson; Map toJson() => _$QuickConnectResultToJson(this); @@ -39251,8 +40875,10 @@ class QuickConnectResult { other.authenticated, authenticated, )) && - (identical(other.secret, secret) || const DeepCollectionEquality().equals(other.secret, secret)) && - (identical(other.code, code) || const DeepCollectionEquality().equals(other.code, code)) && + (identical(other.secret, secret) || + const DeepCollectionEquality().equals(other.secret, secret)) && + (identical(other.code, code) || + const DeepCollectionEquality().equals(other.code, code)) && (identical(other.deviceId, deviceId) || const DeepCollectionEquality().equals( other.deviceId, @@ -39330,7 +40956,9 @@ extension $QuickConnectResultExtension on QuickConnectResult { Wrapped? dateAdded, }) { return QuickConnectResult( - authenticated: (authenticated != null ? authenticated.value : this.authenticated), + authenticated: (authenticated != null + ? authenticated.value + : this.authenticated), secret: (secret != null ? secret.value : this.secret), code: (code != null ? code.value : this.code), deviceId: (deviceId != null ? deviceId.value : this.deviceId), @@ -39351,7 +40979,8 @@ class ReadyRequestDto { this.playlistItemId, }); - factory ReadyRequestDto.fromJson(Map json) => _$ReadyRequestDtoFromJson(json); + factory ReadyRequestDto.fromJson(Map json) => + _$ReadyRequestDtoFromJson(json); static const toJsonFactory = _$ReadyRequestDtoToJson; Map toJson() => _$ReadyRequestDtoToJson(this); @@ -39370,7 +40999,8 @@ class ReadyRequestDto { bool operator ==(Object other) { return identical(this, other) || (other is ReadyRequestDto && - (identical(other.when, when) || const DeepCollectionEquality().equals(other.when, when)) && + (identical(other.when, when) || + const DeepCollectionEquality().equals(other.when, when)) && (identical(other.positionTicks, positionTicks) || const DeepCollectionEquality().equals( other.positionTicks, @@ -39423,9 +41053,13 @@ extension $ReadyRequestDtoExtension on ReadyRequestDto { }) { return ReadyRequestDto( when: (when != null ? when.value : this.when), - positionTicks: (positionTicks != null ? positionTicks.value : this.positionTicks), + positionTicks: (positionTicks != null + ? positionTicks.value + : this.positionTicks), isPlaying: (isPlaying != null ? isPlaying.value : this.isPlaying), - playlistItemId: (playlistItemId != null ? playlistItemId.value : this.playlistItemId), + playlistItemId: (playlistItemId != null + ? playlistItemId.value + : this.playlistItemId), ); } } @@ -39439,7 +41073,8 @@ class RecommendationDto { this.categoryId, }); - factory RecommendationDto.fromJson(Map json) => _$RecommendationDtoFromJson(json); + factory RecommendationDto.fromJson(Map json) => + _$RecommendationDtoFromJson(json); static const toJsonFactory = _$RecommendationDtoToJson; Map toJson() => _$RecommendationDtoToJson(this); @@ -39463,7 +41098,8 @@ class RecommendationDto { bool operator ==(Object other) { return identical(this, other) || (other is RecommendationDto && - (identical(other.items, items) || const DeepCollectionEquality().equals(other.items, items)) && + (identical(other.items, items) || + const DeepCollectionEquality().equals(other.items, items)) && (identical(other.recommendationType, recommendationType) || const DeepCollectionEquality().equals( other.recommendationType, @@ -39516,8 +41152,12 @@ extension $RecommendationDtoExtension on RecommendationDto { }) { return RecommendationDto( items: (items != null ? items.value : this.items), - recommendationType: (recommendationType != null ? recommendationType.value : this.recommendationType), - baselineItemName: (baselineItemName != null ? baselineItemName.value : this.baselineItemName), + recommendationType: (recommendationType != null + ? recommendationType.value + : this.recommendationType), + baselineItemName: (baselineItemName != null + ? baselineItemName.value + : this.baselineItemName), categoryId: (categoryId != null ? categoryId.value : this.categoryId), ); } @@ -39527,7 +41167,8 @@ extension $RecommendationDtoExtension on RecommendationDto { class RefreshProgressMessage { const RefreshProgressMessage({this.data, this.messageId, this.messageType}); - factory RefreshProgressMessage.fromJson(Map json) => _$RefreshProgressMessageFromJson(json); + factory RefreshProgressMessage.fromJson(Map json) => + _$RefreshProgressMessageFromJson(json); static const toJsonFactory = _$RefreshProgressMessageToJson; Map toJson() => _$RefreshProgressMessageToJson(this); @@ -39543,7 +41184,8 @@ class RefreshProgressMessage { fromJson: sessionMessageTypeMessageTypeNullableFromJson, ) final enums.SessionMessageType? messageType; - static enums.SessionMessageType? sessionMessageTypeMessageTypeNullableFromJson(Object? value) => + static enums.SessionMessageType? + sessionMessageTypeMessageTypeNullableFromJson(Object? value) => sessionMessageTypeNullableFromJson( value, enums.SessionMessageType.refreshprogress, @@ -39555,7 +41197,8 @@ class RefreshProgressMessage { bool operator ==(Object other) { return identical(this, other) || (other is RefreshProgressMessage && - (identical(other.data, data) || const DeepCollectionEquality().equals(other.data, data)) && + (identical(other.data, data) || + const DeepCollectionEquality().equals(other.data, data)) && (identical(other.messageId, messageId) || const DeepCollectionEquality().equals( other.messageId, @@ -39620,7 +41263,8 @@ class RemoteImageInfo { this.ratingType, }); - factory RemoteImageInfo.fromJson(Map json) => _$RemoteImageInfoFromJson(json); + factory RemoteImageInfo.fromJson(Map json) => + _$RemoteImageInfoFromJson(json); static const toJsonFactory = _$RemoteImageInfoToJson; Map toJson() => _$RemoteImageInfoToJson(this); @@ -39666,14 +41310,17 @@ class RemoteImageInfo { other.providerName, providerName, )) && - (identical(other.url, url) || const DeepCollectionEquality().equals(other.url, url)) && + (identical(other.url, url) || + const DeepCollectionEquality().equals(other.url, url)) && (identical(other.thumbnailUrl, thumbnailUrl) || const DeepCollectionEquality().equals( other.thumbnailUrl, thumbnailUrl, )) && - (identical(other.height, height) || const DeepCollectionEquality().equals(other.height, height)) && - (identical(other.width, width) || const DeepCollectionEquality().equals(other.width, width)) && + (identical(other.height, height) || + const DeepCollectionEquality().equals(other.height, height)) && + (identical(other.width, width) || + const DeepCollectionEquality().equals(other.width, width)) && (identical(other.communityRating, communityRating) || const DeepCollectionEquality().equals( other.communityRating, @@ -39689,7 +41336,8 @@ class RemoteImageInfo { other.language, language, )) && - (identical(other.type, type) || const DeepCollectionEquality().equals(other.type, type)) && + (identical(other.type, type) || + const DeepCollectionEquality().equals(other.type, type)) && (identical(other.ratingType, ratingType) || const DeepCollectionEquality().equals( other.ratingType, @@ -39755,12 +41403,18 @@ extension $RemoteImageInfoExtension on RemoteImageInfo { Wrapped? ratingType, }) { return RemoteImageInfo( - providerName: (providerName != null ? providerName.value : this.providerName), + providerName: (providerName != null + ? providerName.value + : this.providerName), url: (url != null ? url.value : this.url), - thumbnailUrl: (thumbnailUrl != null ? thumbnailUrl.value : this.thumbnailUrl), + thumbnailUrl: (thumbnailUrl != null + ? thumbnailUrl.value + : this.thumbnailUrl), height: (height != null ? height.value : this.height), width: (width != null ? width.value : this.width), - communityRating: (communityRating != null ? communityRating.value : this.communityRating), + communityRating: (communityRating != null + ? communityRating.value + : this.communityRating), voteCount: (voteCount != null ? voteCount.value : this.voteCount), language: (language != null ? language.value : this.language), type: (type != null ? type.value : this.type), @@ -39773,7 +41427,8 @@ extension $RemoteImageInfoExtension on RemoteImageInfo { class RemoteImageResult { const RemoteImageResult({this.images, this.totalRecordCount, this.providers}); - factory RemoteImageResult.fromJson(Map json) => _$RemoteImageResultFromJson(json); + factory RemoteImageResult.fromJson(Map json) => + _$RemoteImageResultFromJson(json); static const toJsonFactory = _$RemoteImageResultToJson; Map toJson() => _$RemoteImageResultToJson(this); @@ -39794,7 +41449,8 @@ class RemoteImageResult { bool operator ==(Object other) { return identical(this, other) || (other is RemoteImageResult && - (identical(other.images, images) || const DeepCollectionEquality().equals(other.images, images)) && + (identical(other.images, images) || + const DeepCollectionEquality().equals(other.images, images)) && (identical(other.totalRecordCount, totalRecordCount) || const DeepCollectionEquality().equals( other.totalRecordCount, @@ -39838,7 +41494,9 @@ extension $RemoteImageResultExtension on RemoteImageResult { }) { return RemoteImageResult( images: (images != null ? images.value : this.images), - totalRecordCount: (totalRecordCount != null ? totalRecordCount.value : this.totalRecordCount), + totalRecordCount: (totalRecordCount != null + ? totalRecordCount.value + : this.totalRecordCount), providers: (providers != null ? providers.value : this.providers), ); } @@ -39848,7 +41506,8 @@ extension $RemoteImageResultExtension on RemoteImageResult { class RemoteLyricInfoDto { const RemoteLyricInfoDto({this.id, this.providerName, this.lyrics}); - factory RemoteLyricInfoDto.fromJson(Map json) => _$RemoteLyricInfoDtoFromJson(json); + factory RemoteLyricInfoDto.fromJson(Map json) => + _$RemoteLyricInfoDtoFromJson(json); static const toJsonFactory = _$RemoteLyricInfoDtoToJson; Map toJson() => _$RemoteLyricInfoDtoToJson(this); @@ -39865,13 +41524,15 @@ class RemoteLyricInfoDto { bool operator ==(Object other) { return identical(this, other) || (other is RemoteLyricInfoDto && - (identical(other.id, id) || const DeepCollectionEquality().equals(other.id, id)) && + (identical(other.id, id) || + const DeepCollectionEquality().equals(other.id, id)) && (identical(other.providerName, providerName) || const DeepCollectionEquality().equals( other.providerName, providerName, )) && - (identical(other.lyrics, lyrics) || const DeepCollectionEquality().equals(other.lyrics, lyrics))); + (identical(other.lyrics, lyrics) || + const DeepCollectionEquality().equals(other.lyrics, lyrics))); } @override @@ -39905,7 +41566,9 @@ extension $RemoteLyricInfoDtoExtension on RemoteLyricInfoDto { }) { return RemoteLyricInfoDto( id: (id != null ? id.value : this.id), - providerName: (providerName != null ? providerName.value : this.providerName), + providerName: (providerName != null + ? providerName.value + : this.providerName), lyrics: (lyrics != null ? lyrics.value : this.lyrics), ); } @@ -39928,7 +41591,8 @@ class RemoteSearchResult { this.artists, }); - factory RemoteSearchResult.fromJson(Map json) => _$RemoteSearchResultFromJson(json); + factory RemoteSearchResult.fromJson(Map json) => + _$RemoteSearchResultFromJson(json); static const toJsonFactory = _$RemoteSearchResultToJson; Map toJson() => _$RemoteSearchResultToJson(this); @@ -39967,7 +41631,8 @@ class RemoteSearchResult { bool operator ==(Object other) { return identical(this, other) || (other is RemoteSearchResult && - (identical(other.name, name) || const DeepCollectionEquality().equals(other.name, name)) && + (identical(other.name, name) || + const DeepCollectionEquality().equals(other.name, name)) && (identical(other.providerIds, providerIds) || const DeepCollectionEquality().equals( other.providerIds, @@ -40018,7 +41683,8 @@ class RemoteSearchResult { other.albumArtist, albumArtist, )) && - (identical(other.artists, artists) || const DeepCollectionEquality().equals(other.artists, artists))); + (identical(other.artists, artists) || + const DeepCollectionEquality().equals(other.artists, artists))); } @override @@ -40089,13 +41755,23 @@ extension $RemoteSearchResultExtension on RemoteSearchResult { return RemoteSearchResult( name: (name != null ? name.value : this.name), providerIds: (providerIds != null ? providerIds.value : this.providerIds), - productionYear: (productionYear != null ? productionYear.value : this.productionYear), + productionYear: (productionYear != null + ? productionYear.value + : this.productionYear), indexNumber: (indexNumber != null ? indexNumber.value : this.indexNumber), - indexNumberEnd: (indexNumberEnd != null ? indexNumberEnd.value : this.indexNumberEnd), - parentIndexNumber: (parentIndexNumber != null ? parentIndexNumber.value : this.parentIndexNumber), - premiereDate: (premiereDate != null ? premiereDate.value : this.premiereDate), + indexNumberEnd: (indexNumberEnd != null + ? indexNumberEnd.value + : this.indexNumberEnd), + parentIndexNumber: (parentIndexNumber != null + ? parentIndexNumber.value + : this.parentIndexNumber), + premiereDate: (premiereDate != null + ? premiereDate.value + : this.premiereDate), imageUrl: (imageUrl != null ? imageUrl.value : this.imageUrl), - searchProviderName: (searchProviderName != null ? searchProviderName.value : this.searchProviderName), + searchProviderName: (searchProviderName != null + ? searchProviderName.value + : this.searchProviderName), overview: (overview != null ? overview.value : this.overview), albumArtist: (albumArtist != null ? albumArtist.value : this.albumArtist), artists: (artists != null ? artists.value : this.artists), @@ -40124,7 +41800,8 @@ class RemoteSubtitleInfo { this.hearingImpaired, }); - factory RemoteSubtitleInfo.fromJson(Map json) => _$RemoteSubtitleInfoFromJson(json); + factory RemoteSubtitleInfo.fromJson(Map json) => + _$RemoteSubtitleInfoFromJson(json); static const toJsonFactory = _$RemoteSubtitleInfoToJson; Map toJson() => _$RemoteSubtitleInfoToJson(this); @@ -40175,15 +41852,19 @@ class RemoteSubtitleInfo { other.threeLetterISOLanguageName, threeLetterISOLanguageName, )) && - (identical(other.id, id) || const DeepCollectionEquality().equals(other.id, id)) && + (identical(other.id, id) || + const DeepCollectionEquality().equals(other.id, id)) && (identical(other.providerName, providerName) || const DeepCollectionEquality().equals( other.providerName, providerName, )) && - (identical(other.name, name) || const DeepCollectionEquality().equals(other.name, name)) && - (identical(other.format, format) || const DeepCollectionEquality().equals(other.format, format)) && - (identical(other.author, author) || const DeepCollectionEquality().equals(other.author, author)) && + (identical(other.name, name) || + const DeepCollectionEquality().equals(other.name, name)) && + (identical(other.format, format) || + const DeepCollectionEquality().equals(other.format, format)) && + (identical(other.author, author) || + const DeepCollectionEquality().equals(other.author, author)) && (identical(other.comment, comment) || const DeepCollectionEquality().equals( other.comment, @@ -40224,7 +41905,8 @@ class RemoteSubtitleInfo { other.machineTranslated, machineTranslated, )) && - (identical(other.forced, forced) || const DeepCollectionEquality().equals(other.forced, forced)) && + (identical(other.forced, forced) || + const DeepCollectionEquality().equals(other.forced, forced)) && (identical(other.hearingImpaired, hearingImpaired) || const DeepCollectionEquality().equals( other.hearingImpaired, @@ -40276,7 +41958,8 @@ extension $RemoteSubtitleInfoExtension on RemoteSubtitleInfo { bool? hearingImpaired, }) { return RemoteSubtitleInfo( - threeLetterISOLanguageName: threeLetterISOLanguageName ?? this.threeLetterISOLanguageName, + threeLetterISOLanguageName: + threeLetterISOLanguageName ?? this.threeLetterISOLanguageName, id: id ?? this.id, providerName: providerName ?? this.providerName, name: name ?? this.name, @@ -40314,23 +41997,36 @@ extension $RemoteSubtitleInfoExtension on RemoteSubtitleInfo { Wrapped? hearingImpaired, }) { return RemoteSubtitleInfo( - threeLetterISOLanguageName: - (threeLetterISOLanguageName != null ? threeLetterISOLanguageName.value : this.threeLetterISOLanguageName), + threeLetterISOLanguageName: (threeLetterISOLanguageName != null + ? threeLetterISOLanguageName.value + : this.threeLetterISOLanguageName), id: (id != null ? id.value : this.id), - providerName: (providerName != null ? providerName.value : this.providerName), + providerName: (providerName != null + ? providerName.value + : this.providerName), name: (name != null ? name.value : this.name), format: (format != null ? format.value : this.format), author: (author != null ? author.value : this.author), comment: (comment != null ? comment.value : this.comment), dateCreated: (dateCreated != null ? dateCreated.value : this.dateCreated), - communityRating: (communityRating != null ? communityRating.value : this.communityRating), + communityRating: (communityRating != null + ? communityRating.value + : this.communityRating), frameRate: (frameRate != null ? frameRate.value : this.frameRate), - downloadCount: (downloadCount != null ? downloadCount.value : this.downloadCount), + downloadCount: (downloadCount != null + ? downloadCount.value + : this.downloadCount), isHashMatch: (isHashMatch != null ? isHashMatch.value : this.isHashMatch), - aiTranslated: (aiTranslated != null ? aiTranslated.value : this.aiTranslated), - machineTranslated: (machineTranslated != null ? machineTranslated.value : this.machineTranslated), + aiTranslated: (aiTranslated != null + ? aiTranslated.value + : this.aiTranslated), + machineTranslated: (machineTranslated != null + ? machineTranslated.value + : this.machineTranslated), forced: (forced != null ? forced.value : this.forced), - hearingImpaired: (hearingImpaired != null ? hearingImpaired.value : this.hearingImpaired), + hearingImpaired: (hearingImpaired != null + ? hearingImpaired.value + : this.hearingImpaired), ); } } @@ -40393,7 +42089,8 @@ class RemoveFromPlaylistRequestDto { runtimeType.hashCode; } -extension $RemoveFromPlaylistRequestDtoExtension on RemoveFromPlaylistRequestDto { +extension $RemoveFromPlaylistRequestDtoExtension + on RemoveFromPlaylistRequestDto { RemoveFromPlaylistRequestDto copyWith({ List? playlistItemIds, bool? clearPlaylist, @@ -40412,9 +42109,15 @@ extension $RemoveFromPlaylistRequestDtoExtension on RemoveFromPlaylistRequestDto 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), ); } } @@ -40427,7 +42130,8 @@ class ReportPlaybackOptions { this.maxBackupFiles, }); - factory ReportPlaybackOptions.fromJson(Map json) => _$ReportPlaybackOptionsFromJson(json); + factory ReportPlaybackOptions.fromJson(Map json) => + _$ReportPlaybackOptionsFromJson(json); static const toJsonFactory = _$ReportPlaybackOptionsToJson; Map toJson() => _$ReportPlaybackOptionsToJson(this); @@ -40493,7 +42197,9 @@ extension $ReportPlaybackOptionsExtension on ReportPlaybackOptions { return ReportPlaybackOptions( maxDataAge: (maxDataAge != null ? maxDataAge.value : this.maxDataAge), backupPath: (backupPath != null ? backupPath.value : this.backupPath), - maxBackupFiles: (maxBackupFiles != null ? maxBackupFiles.value : this.maxBackupFiles), + maxBackupFiles: (maxBackupFiles != null + ? maxBackupFiles.value + : this.maxBackupFiles), ); } } @@ -40502,7 +42208,8 @@ extension $ReportPlaybackOptionsExtension on ReportPlaybackOptions { class RepositoryInfo { const RepositoryInfo({this.name, this.url, this.enabled}); - factory RepositoryInfo.fromJson(Map json) => _$RepositoryInfoFromJson(json); + factory RepositoryInfo.fromJson(Map json) => + _$RepositoryInfoFromJson(json); static const toJsonFactory = _$RepositoryInfoToJson; Map toJson() => _$RepositoryInfoToJson(this); @@ -40519,9 +42226,12 @@ class RepositoryInfo { bool operator ==(Object other) { return identical(this, other) || (other is RepositoryInfo && - (identical(other.name, name) || const DeepCollectionEquality().equals(other.name, name)) && - (identical(other.url, url) || const DeepCollectionEquality().equals(other.url, url)) && - (identical(other.enabled, enabled) || const DeepCollectionEquality().equals(other.enabled, enabled))); + (identical(other.name, name) || + const DeepCollectionEquality().equals(other.name, name)) && + (identical(other.url, url) || + const DeepCollectionEquality().equals(other.url, url)) && + (identical(other.enabled, enabled) || + const DeepCollectionEquality().equals(other.enabled, enabled))); } @override @@ -40561,7 +42271,8 @@ extension $RepositoryInfoExtension on RepositoryInfo { class RestartRequiredMessage { const RestartRequiredMessage({this.messageId, this.messageType}); - factory RestartRequiredMessage.fromJson(Map json) => _$RestartRequiredMessageFromJson(json); + factory RestartRequiredMessage.fromJson(Map json) => + _$RestartRequiredMessageFromJson(json); static const toJsonFactory = _$RestartRequiredMessageToJson; Map toJson() => _$RestartRequiredMessageToJson(this); @@ -40575,7 +42286,8 @@ class RestartRequiredMessage { fromJson: sessionMessageTypeMessageTypeNullableFromJson, ) final enums.SessionMessageType? messageType; - static enums.SessionMessageType? sessionMessageTypeMessageTypeNullableFromJson(Object? value) => + static enums.SessionMessageType? + sessionMessageTypeMessageTypeNullableFromJson(Object? value) => sessionMessageTypeNullableFromJson( value, enums.SessionMessageType.restartrequired, @@ -40639,7 +42351,8 @@ class ScheduledTaskEndedMessage { this.messageType, }); - factory ScheduledTaskEndedMessage.fromJson(Map json) => _$ScheduledTaskEndedMessageFromJson(json); + factory ScheduledTaskEndedMessage.fromJson(Map json) => + _$ScheduledTaskEndedMessageFromJson(json); static const toJsonFactory = _$ScheduledTaskEndedMessageToJson; Map toJson() => _$ScheduledTaskEndedMessageToJson(this); @@ -40655,7 +42368,8 @@ class ScheduledTaskEndedMessage { fromJson: sessionMessageTypeMessageTypeNullableFromJson, ) final enums.SessionMessageType? messageType; - static enums.SessionMessageType? sessionMessageTypeMessageTypeNullableFromJson(Object? value) => + static enums.SessionMessageType? + sessionMessageTypeMessageTypeNullableFromJson(Object? value) => sessionMessageTypeNullableFromJson( value, enums.SessionMessageType.scheduledtaskended, @@ -40667,7 +42381,8 @@ class ScheduledTaskEndedMessage { bool operator ==(Object other) { return identical(this, other) || (other is ScheduledTaskEndedMessage && - (identical(other.data, data) || const DeepCollectionEquality().equals(other.data, data)) && + (identical(other.data, data) || + const DeepCollectionEquality().equals(other.data, data)) && (identical(other.messageId, messageId) || const DeepCollectionEquality().equals( other.messageId, @@ -40725,7 +42440,8 @@ class ScheduledTasksInfoMessage { this.messageType, }); - factory ScheduledTasksInfoMessage.fromJson(Map json) => _$ScheduledTasksInfoMessageFromJson(json); + factory ScheduledTasksInfoMessage.fromJson(Map json) => + _$ScheduledTasksInfoMessageFromJson(json); static const toJsonFactory = _$ScheduledTasksInfoMessageToJson; Map toJson() => _$ScheduledTasksInfoMessageToJson(this); @@ -40741,7 +42457,8 @@ class ScheduledTasksInfoMessage { fromJson: sessionMessageTypeMessageTypeNullableFromJson, ) final enums.SessionMessageType? messageType; - static enums.SessionMessageType? sessionMessageTypeMessageTypeNullableFromJson(Object? value) => + static enums.SessionMessageType? + sessionMessageTypeMessageTypeNullableFromJson(Object? value) => sessionMessageTypeNullableFromJson( value, enums.SessionMessageType.scheduledtasksinfo, @@ -40753,7 +42470,8 @@ class ScheduledTasksInfoMessage { bool operator ==(Object other) { return identical(this, other) || (other is ScheduledTasksInfoMessage && - (identical(other.data, data) || const DeepCollectionEquality().equals(other.data, data)) && + (identical(other.data, data) || + const DeepCollectionEquality().equals(other.data, data)) && (identical(other.messageId, messageId) || const DeepCollectionEquality().equals( other.messageId, @@ -40822,7 +42540,8 @@ class ScheduledTasksInfoStartMessage { fromJson: sessionMessageTypeMessageTypeNullableFromJson, ) final enums.SessionMessageType? messageType; - static enums.SessionMessageType? sessionMessageTypeMessageTypeNullableFromJson(Object? value) => + static enums.SessionMessageType? + sessionMessageTypeMessageTypeNullableFromJson(Object? value) => sessionMessageTypeNullableFromJson( value, enums.SessionMessageType.scheduledtasksinfostart, @@ -40834,7 +42553,8 @@ class ScheduledTasksInfoStartMessage { bool operator ==(Object other) { return identical(this, other) || (other is ScheduledTasksInfoStartMessage && - (identical(other.data, data) || const DeepCollectionEquality().equals(other.data, data)) && + (identical(other.data, data) || + const DeepCollectionEquality().equals(other.data, data)) && (identical(other.messageType, messageType) || const DeepCollectionEquality().equals( other.messageType, @@ -40852,7 +42572,8 @@ class ScheduledTasksInfoStartMessage { runtimeType.hashCode; } -extension $ScheduledTasksInfoStartMessageExtension on ScheduledTasksInfoStartMessage { +extension $ScheduledTasksInfoStartMessageExtension + on ScheduledTasksInfoStartMessage { ScheduledTasksInfoStartMessage copyWith({ String? data, enums.SessionMessageType? messageType, @@ -40891,7 +42612,8 @@ class ScheduledTasksInfoStopMessage { fromJson: sessionMessageTypeMessageTypeNullableFromJson, ) final enums.SessionMessageType? messageType; - static enums.SessionMessageType? sessionMessageTypeMessageTypeNullableFromJson(Object? value) => + static enums.SessionMessageType? + sessionMessageTypeMessageTypeNullableFromJson(Object? value) => sessionMessageTypeNullableFromJson( value, enums.SessionMessageType.scheduledtasksinfostop, @@ -40914,10 +42636,12 @@ class ScheduledTasksInfoStopMessage { String toString() => jsonEncode(this); @override - int get hashCode => const DeepCollectionEquality().hash(messageType) ^ runtimeType.hashCode; + int get hashCode => + const DeepCollectionEquality().hash(messageType) ^ runtimeType.hashCode; } -extension $ScheduledTasksInfoStopMessageExtension on ScheduledTasksInfoStopMessage { +extension $ScheduledTasksInfoStopMessageExtension + on ScheduledTasksInfoStopMessage { ScheduledTasksInfoStopMessage copyWith({ enums.SessionMessageType? messageType, }) { @@ -40969,7 +42693,8 @@ class SearchHint { this.primaryImageAspectRatio, }); - factory SearchHint.fromJson(Map json) => _$SearchHintFromJson(json); + factory SearchHint.fromJson(Map json) => + _$SearchHintFromJson(json); static const toJsonFactory = _$SearchHintToJson; Map toJson() => _$SearchHintToJson(this); @@ -41052,9 +42777,12 @@ class SearchHint { bool operator ==(Object other) { return identical(this, other) || (other is SearchHint && - (identical(other.itemId, itemId) || const DeepCollectionEquality().equals(other.itemId, itemId)) && - (identical(other.id, id) || const DeepCollectionEquality().equals(other.id, id)) && - (identical(other.name, name) || const DeepCollectionEquality().equals(other.name, name)) && + (identical(other.itemId, itemId) || + const DeepCollectionEquality().equals(other.itemId, itemId)) && + (identical(other.id, id) || + const DeepCollectionEquality().equals(other.id, id)) && + (identical(other.name, name) || + const DeepCollectionEquality().equals(other.name, name)) && (identical(other.matchedTerm, matchedTerm) || const DeepCollectionEquality().equals( other.matchedTerm, @@ -41100,7 +42828,8 @@ class SearchHint { other.backdropImageItemId, backdropImageItemId, )) && - (identical(other.type, type) || const DeepCollectionEquality().equals(other.type, type)) && + (identical(other.type, type) || + const DeepCollectionEquality().equals(other.type, type)) && (identical(other.isFolder, isFolder) || const DeepCollectionEquality().equals( other.isFolder, @@ -41126,9 +42855,12 @@ class SearchHint { other.endDate, endDate, )) && - (identical(other.series, series) || const DeepCollectionEquality().equals(other.series, series)) && - (identical(other.status, status) || const DeepCollectionEquality().equals(other.status, status)) && - (identical(other.album, album) || const DeepCollectionEquality().equals(other.album, album)) && + (identical(other.series, series) || + const DeepCollectionEquality().equals(other.series, series)) && + (identical(other.status, status) || + const DeepCollectionEquality().equals(other.status, status)) && + (identical(other.album, album) || + const DeepCollectionEquality().equals(other.album, album)) && (identical(other.albumId, albumId) || const DeepCollectionEquality().equals( other.albumId, @@ -41272,7 +43004,8 @@ extension $SearchHintExtension on SearchHint { episodeCount: episodeCount ?? this.episodeCount, channelId: channelId ?? this.channelId, channelName: channelName ?? this.channelName, - primaryImageAspectRatio: primaryImageAspectRatio ?? this.primaryImageAspectRatio, + primaryImageAspectRatio: + primaryImageAspectRatio ?? this.primaryImageAspectRatio, ); } @@ -41313,16 +43046,32 @@ extension $SearchHintExtension on SearchHint { name: (name != null ? name.value : this.name), matchedTerm: (matchedTerm != null ? matchedTerm.value : this.matchedTerm), indexNumber: (indexNumber != null ? indexNumber.value : this.indexNumber), - productionYear: (productionYear != null ? productionYear.value : this.productionYear), - parentIndexNumber: (parentIndexNumber != null ? parentIndexNumber.value : this.parentIndexNumber), - primaryImageTag: (primaryImageTag != null ? primaryImageTag.value : this.primaryImageTag), - thumbImageTag: (thumbImageTag != null ? thumbImageTag.value : this.thumbImageTag), - thumbImageItemId: (thumbImageItemId != null ? thumbImageItemId.value : this.thumbImageItemId), - backdropImageTag: (backdropImageTag != null ? backdropImageTag.value : this.backdropImageTag), - backdropImageItemId: (backdropImageItemId != null ? backdropImageItemId.value : this.backdropImageItemId), + productionYear: (productionYear != null + ? productionYear.value + : this.productionYear), + parentIndexNumber: (parentIndexNumber != null + ? parentIndexNumber.value + : this.parentIndexNumber), + primaryImageTag: (primaryImageTag != null + ? primaryImageTag.value + : this.primaryImageTag), + thumbImageTag: (thumbImageTag != null + ? thumbImageTag.value + : this.thumbImageTag), + thumbImageItemId: (thumbImageItemId != null + ? thumbImageItemId.value + : this.thumbImageItemId), + backdropImageTag: (backdropImageTag != null + ? backdropImageTag.value + : this.backdropImageTag), + backdropImageItemId: (backdropImageItemId != null + ? backdropImageItemId.value + : this.backdropImageItemId), type: (type != null ? type.value : this.type), isFolder: (isFolder != null ? isFolder.value : this.isFolder), - runTimeTicks: (runTimeTicks != null ? runTimeTicks.value : this.runTimeTicks), + runTimeTicks: (runTimeTicks != null + ? runTimeTicks.value + : this.runTimeTicks), mediaType: (mediaType != null ? mediaType.value : this.mediaType), startDate: (startDate != null ? startDate.value : this.startDate), endDate: (endDate != null ? endDate.value : this.endDate), @@ -41333,11 +43082,14 @@ extension $SearchHintExtension on SearchHint { albumArtist: (albumArtist != null ? albumArtist.value : this.albumArtist), artists: (artists != null ? artists.value : this.artists), songCount: (songCount != null ? songCount.value : this.songCount), - episodeCount: (episodeCount != null ? episodeCount.value : this.episodeCount), + episodeCount: (episodeCount != null + ? episodeCount.value + : this.episodeCount), channelId: (channelId != null ? channelId.value : this.channelId), channelName: (channelName != null ? channelName.value : this.channelName), - primaryImageAspectRatio: - (primaryImageAspectRatio != null ? primaryImageAspectRatio.value : this.primaryImageAspectRatio), + primaryImageAspectRatio: (primaryImageAspectRatio != null + ? primaryImageAspectRatio.value + : this.primaryImageAspectRatio), ); } } @@ -41346,7 +43098,8 @@ extension $SearchHintExtension on SearchHint { class SearchHintResult { const SearchHintResult({this.searchHints, this.totalRecordCount}); - factory SearchHintResult.fromJson(Map json) => _$SearchHintResultFromJson(json); + factory SearchHintResult.fromJson(Map json) => + _$SearchHintResultFromJson(json); static const toJsonFactory = _$SearchHintResultToJson; Map toJson() => _$SearchHintResultToJson(this); @@ -41404,7 +43157,9 @@ extension $SearchHintResultExtension on SearchHintResult { }) { return SearchHintResult( searchHints: (searchHints != null ? searchHints.value : this.searchHints), - totalRecordCount: (totalRecordCount != null ? totalRecordCount.value : this.totalRecordCount), + totalRecordCount: (totalRecordCount != null + ? totalRecordCount.value + : this.totalRecordCount), ); } } @@ -41413,7 +43168,8 @@ extension $SearchHintResultExtension on SearchHintResult { class SeekRequestDto { const SeekRequestDto({this.positionTicks}); - factory SeekRequestDto.fromJson(Map json) => _$SeekRequestDtoFromJson(json); + factory SeekRequestDto.fromJson(Map json) => + _$SeekRequestDtoFromJson(json); static const toJsonFactory = _$SeekRequestDtoToJson; Map toJson() => _$SeekRequestDtoToJson(this); @@ -41437,7 +43193,8 @@ class SeekRequestDto { String toString() => jsonEncode(this); @override - int get hashCode => const DeepCollectionEquality().hash(positionTicks) ^ runtimeType.hashCode; + int get hashCode => + const DeepCollectionEquality().hash(positionTicks) ^ runtimeType.hashCode; } extension $SeekRequestDtoExtension on SeekRequestDto { @@ -41447,7 +43204,9 @@ extension $SeekRequestDtoExtension on SeekRequestDto { SeekRequestDto copyWithWrapped({Wrapped? positionTicks}) { return SeekRequestDto( - positionTicks: (positionTicks != null ? positionTicks.value : this.positionTicks), + positionTicks: (positionTicks != null + ? positionTicks.value + : this.positionTicks), ); } } @@ -41463,7 +43222,8 @@ class SendCommand { this.emittedAt, }); - factory SendCommand.fromJson(Map json) => _$SendCommandFromJson(json); + factory SendCommand.fromJson(Map json) => + _$SendCommandFromJson(json); static const toJsonFactory = _$SendCommandToJson; Map toJson() => _$SendCommandToJson(this); @@ -41501,7 +43261,8 @@ class SendCommand { other.playlistItemId, playlistItemId, )) && - (identical(other.when, when) || const DeepCollectionEquality().equals(other.when, when)) && + (identical(other.when, when) || + const DeepCollectionEquality().equals(other.when, when)) && (identical(other.positionTicks, positionTicks) || const DeepCollectionEquality().equals( other.positionTicks, @@ -41562,9 +43323,13 @@ extension $SendCommandExtension on SendCommand { }) { return SendCommand( groupId: (groupId != null ? groupId.value : this.groupId), - playlistItemId: (playlistItemId != null ? playlistItemId.value : this.playlistItemId), + playlistItemId: (playlistItemId != null + ? playlistItemId.value + : this.playlistItemId), when: (when != null ? when.value : this.when), - positionTicks: (positionTicks != null ? positionTicks.value : this.positionTicks), + positionTicks: (positionTicks != null + ? positionTicks.value + : this.positionTicks), command: (command != null ? command.value : this.command), emittedAt: (emittedAt != null ? emittedAt.value : this.emittedAt), ); @@ -41587,7 +43352,8 @@ class SeriesInfo { this.isAutomated, }); - factory SeriesInfo.fromJson(Map json) => _$SeriesInfoFromJson(json); + factory SeriesInfo.fromJson(Map json) => + _$SeriesInfoFromJson(json); static const toJsonFactory = _$SeriesInfoToJson; Map toJson() => _$SeriesInfoToJson(this); @@ -41620,13 +43386,15 @@ class SeriesInfo { bool operator ==(Object other) { return identical(this, other) || (other is SeriesInfo && - (identical(other.name, name) || const DeepCollectionEquality().equals(other.name, name)) && + (identical(other.name, name) || + const DeepCollectionEquality().equals(other.name, name)) && (identical(other.originalTitle, originalTitle) || const DeepCollectionEquality().equals( other.originalTitle, originalTitle, )) && - (identical(other.path, path) || const DeepCollectionEquality().equals(other.path, path)) && + (identical(other.path, path) || + const DeepCollectionEquality().equals(other.path, path)) && (identical(other.metadataLanguage, metadataLanguage) || const DeepCollectionEquality().equals( other.metadataLanguage, @@ -41642,7 +43410,8 @@ class SeriesInfo { other.providerIds, providerIds, )) && - (identical(other.year, year) || const DeepCollectionEquality().equals(other.year, year)) && + (identical(other.year, year) || + const DeepCollectionEquality().equals(other.year, year)) && (identical(other.indexNumber, indexNumber) || const DeepCollectionEquality().equals( other.indexNumber, @@ -41728,15 +43497,25 @@ extension $SeriesInfoExtension on SeriesInfo { }) { return SeriesInfo( name: (name != null ? name.value : this.name), - originalTitle: (originalTitle != null ? originalTitle.value : this.originalTitle), + originalTitle: (originalTitle != null + ? originalTitle.value + : this.originalTitle), path: (path != null ? path.value : this.path), - metadataLanguage: (metadataLanguage != null ? metadataLanguage.value : this.metadataLanguage), - metadataCountryCode: (metadataCountryCode != null ? metadataCountryCode.value : this.metadataCountryCode), + metadataLanguage: (metadataLanguage != null + ? metadataLanguage.value + : this.metadataLanguage), + metadataCountryCode: (metadataCountryCode != null + ? metadataCountryCode.value + : this.metadataCountryCode), providerIds: (providerIds != null ? providerIds.value : this.providerIds), year: (year != null ? year.value : this.year), indexNumber: (indexNumber != null ? indexNumber.value : this.indexNumber), - parentIndexNumber: (parentIndexNumber != null ? parentIndexNumber.value : this.parentIndexNumber), - premiereDate: (premiereDate != null ? premiereDate.value : this.premiereDate), + parentIndexNumber: (parentIndexNumber != null + ? parentIndexNumber.value + : this.parentIndexNumber), + premiereDate: (premiereDate != null + ? premiereDate.value + : this.premiereDate), isAutomated: (isAutomated != null ? isAutomated.value : this.isAutomated), ); } @@ -41776,7 +43555,8 @@ class SeriesInfoRemoteSearchQuery { other.searchInfo, searchInfo, )) && - (identical(other.itemId, itemId) || const DeepCollectionEquality().equals(other.itemId, itemId)) && + (identical(other.itemId, itemId) || + const DeepCollectionEquality().equals(other.itemId, itemId)) && (identical(other.searchProviderName, searchProviderName) || const DeepCollectionEquality().equals( other.searchProviderName, @@ -41815,7 +43595,8 @@ extension $SeriesInfoRemoteSearchQueryExtension on SeriesInfoRemoteSearchQuery { searchInfo: searchInfo ?? this.searchInfo, itemId: itemId ?? this.itemId, searchProviderName: searchProviderName ?? this.searchProviderName, - includeDisabledProviders: includeDisabledProviders ?? this.includeDisabledProviders, + includeDisabledProviders: + includeDisabledProviders ?? this.includeDisabledProviders, ); } @@ -41828,9 +43609,12 @@ extension $SeriesInfoRemoteSearchQueryExtension on SeriesInfoRemoteSearchQuery { return SeriesInfoRemoteSearchQuery( searchInfo: (searchInfo != null ? searchInfo.value : this.searchInfo), itemId: (itemId != null ? itemId.value : this.itemId), - searchProviderName: (searchProviderName != null ? searchProviderName.value : this.searchProviderName), - includeDisabledProviders: - (includeDisabledProviders != null ? includeDisabledProviders.value : this.includeDisabledProviders), + searchProviderName: (searchProviderName != null + ? searchProviderName.value + : this.searchProviderName), + includeDisabledProviders: (includeDisabledProviders != null + ? includeDisabledProviders.value + : this.includeDisabledProviders), ); } } @@ -41860,7 +43644,8 @@ class SeriesTimerCancelledMessage { fromJson: sessionMessageTypeMessageTypeNullableFromJson, ) final enums.SessionMessageType? messageType; - static enums.SessionMessageType? sessionMessageTypeMessageTypeNullableFromJson(Object? value) => + static enums.SessionMessageType? + sessionMessageTypeMessageTypeNullableFromJson(Object? value) => sessionMessageTypeNullableFromJson( value, enums.SessionMessageType.seriestimercancelled, @@ -41872,7 +43657,8 @@ class SeriesTimerCancelledMessage { bool operator ==(Object other) { return identical(this, other) || (other is SeriesTimerCancelledMessage && - (identical(other.data, data) || const DeepCollectionEquality().equals(other.data, data)) && + (identical(other.data, data) || + const DeepCollectionEquality().equals(other.data, data)) && (identical(other.messageId, messageId) || const DeepCollectionEquality().equals( other.messageId, @@ -41930,7 +43716,8 @@ class SeriesTimerCreatedMessage { this.messageType, }); - factory SeriesTimerCreatedMessage.fromJson(Map json) => _$SeriesTimerCreatedMessageFromJson(json); + factory SeriesTimerCreatedMessage.fromJson(Map json) => + _$SeriesTimerCreatedMessageFromJson(json); static const toJsonFactory = _$SeriesTimerCreatedMessageToJson; Map toJson() => _$SeriesTimerCreatedMessageToJson(this); @@ -41946,7 +43733,8 @@ class SeriesTimerCreatedMessage { fromJson: sessionMessageTypeMessageTypeNullableFromJson, ) final enums.SessionMessageType? messageType; - static enums.SessionMessageType? sessionMessageTypeMessageTypeNullableFromJson(Object? value) => + static enums.SessionMessageType? + sessionMessageTypeMessageTypeNullableFromJson(Object? value) => sessionMessageTypeNullableFromJson( value, enums.SessionMessageType.seriestimercreated, @@ -41958,7 +43746,8 @@ class SeriesTimerCreatedMessage { bool operator ==(Object other) { return identical(this, other) || (other is SeriesTimerCreatedMessage && - (identical(other.data, data) || const DeepCollectionEquality().equals(other.data, data)) && + (identical(other.data, data) || + const DeepCollectionEquality().equals(other.data, data)) && (identical(other.messageId, messageId) || const DeepCollectionEquality().equals( other.messageId, @@ -42048,7 +43837,8 @@ class SeriesTimerInfoDto { this.parentPrimaryImageTag, }); - factory SeriesTimerInfoDto.fromJson(Map json) => _$SeriesTimerInfoDtoFromJson(json); + factory SeriesTimerInfoDto.fromJson(Map json) => + _$SeriesTimerInfoDtoFromJson(json); static const toJsonFactory = _$SeriesTimerInfoDtoToJson; Map toJson() => _$SeriesTimerInfoDtoToJson(this); @@ -42148,8 +43938,10 @@ class SeriesTimerInfoDto { bool operator ==(Object other) { return identical(this, other) || (other is SeriesTimerInfoDto && - (identical(other.id, id) || const DeepCollectionEquality().equals(other.id, id)) && - (identical(other.type, type) || const DeepCollectionEquality().equals(other.type, type)) && + (identical(other.id, id) || + const DeepCollectionEquality().equals(other.id, id)) && + (identical(other.type, type) || + const DeepCollectionEquality().equals(other.type, type)) && (identical(other.serverId, serverId) || const DeepCollectionEquality().equals( other.serverId, @@ -42190,7 +43982,8 @@ class SeriesTimerInfoDto { other.externalProgramId, externalProgramId, )) && - (identical(other.name, name) || const DeepCollectionEquality().equals(other.name, name)) && + (identical(other.name, name) || + const DeepCollectionEquality().equals(other.name, name)) && (identical(other.overview, overview) || const DeepCollectionEquality().equals( other.overview, @@ -42279,7 +44072,8 @@ class SeriesTimerInfoDto { other.recordNewOnly, recordNewOnly, )) && - (identical(other.days, days) || const DeepCollectionEquality().equals(other.days, days)) && + (identical(other.days, days) || + const DeepCollectionEquality().equals(other.days, days)) && (identical(other.dayPattern, dayPattern) || const DeepCollectionEquality().equals( other.dayPattern, @@ -42404,7 +44198,8 @@ extension $SeriesTimerInfoDtoExtension on SeriesTimerInfoDto { channelId: channelId ?? this.channelId, externalChannelId: externalChannelId ?? this.externalChannelId, channelName: channelName ?? this.channelName, - channelPrimaryImageTag: channelPrimaryImageTag ?? this.channelPrimaryImageTag, + channelPrimaryImageTag: + channelPrimaryImageTag ?? this.channelPrimaryImageTag, programId: programId ?? this.programId, externalProgramId: externalProgramId ?? this.externalProgramId, name: name ?? this.name, @@ -42417,11 +44212,14 @@ extension $SeriesTimerInfoDtoExtension on SeriesTimerInfoDto { postPaddingSeconds: postPaddingSeconds ?? this.postPaddingSeconds, isPrePaddingRequired: isPrePaddingRequired ?? this.isPrePaddingRequired, parentBackdropItemId: parentBackdropItemId ?? this.parentBackdropItemId, - parentBackdropImageTags: parentBackdropImageTags ?? this.parentBackdropImageTags, - isPostPaddingRequired: isPostPaddingRequired ?? this.isPostPaddingRequired, + parentBackdropImageTags: + parentBackdropImageTags ?? this.parentBackdropImageTags, + isPostPaddingRequired: + isPostPaddingRequired ?? this.isPostPaddingRequired, keepUntil: keepUntil ?? this.keepUntil, recordAnyTime: recordAnyTime ?? this.recordAnyTime, - skipEpisodesInLibrary: skipEpisodesInLibrary ?? this.skipEpisodesInLibrary, + skipEpisodesInLibrary: + skipEpisodesInLibrary ?? this.skipEpisodesInLibrary, recordAnyChannel: recordAnyChannel ?? this.recordAnyChannel, keepUpTo: keepUpTo ?? this.keepUpTo, recordNewOnly: recordNewOnly ?? this.recordNewOnly, @@ -42430,8 +44228,10 @@ extension $SeriesTimerInfoDtoExtension on SeriesTimerInfoDto { imageTags: imageTags ?? this.imageTags, parentThumbItemId: parentThumbItemId ?? this.parentThumbItemId, parentThumbImageTag: parentThumbImageTag ?? this.parentThumbImageTag, - parentPrimaryImageItemId: parentPrimaryImageItemId ?? this.parentPrimaryImageItemId, - parentPrimaryImageTag: parentPrimaryImageTag ?? this.parentPrimaryImageTag, + parentPrimaryImageItemId: + parentPrimaryImageItemId ?? this.parentPrimaryImageItemId, + parentPrimaryImageTag: + parentPrimaryImageTag ?? this.parentPrimaryImageTag, ); } @@ -42478,39 +44278,70 @@ extension $SeriesTimerInfoDtoExtension on SeriesTimerInfoDto { serverId: (serverId != null ? serverId.value : this.serverId), externalId: (externalId != null ? externalId.value : this.externalId), channelId: (channelId != null ? channelId.value : this.channelId), - externalChannelId: (externalChannelId != null ? externalChannelId.value : this.externalChannelId), + externalChannelId: (externalChannelId != null + ? externalChannelId.value + : this.externalChannelId), channelName: (channelName != null ? channelName.value : this.channelName), - channelPrimaryImageTag: - (channelPrimaryImageTag != null ? channelPrimaryImageTag.value : this.channelPrimaryImageTag), + channelPrimaryImageTag: (channelPrimaryImageTag != null + ? channelPrimaryImageTag.value + : this.channelPrimaryImageTag), programId: (programId != null ? programId.value : this.programId), - externalProgramId: (externalProgramId != null ? externalProgramId.value : this.externalProgramId), + externalProgramId: (externalProgramId != null + ? externalProgramId.value + : this.externalProgramId), name: (name != null ? name.value : this.name), overview: (overview != null ? overview.value : this.overview), startDate: (startDate != null ? startDate.value : this.startDate), endDate: (endDate != null ? endDate.value : this.endDate), serviceName: (serviceName != null ? serviceName.value : this.serviceName), priority: (priority != null ? priority.value : this.priority), - prePaddingSeconds: (prePaddingSeconds != null ? prePaddingSeconds.value : this.prePaddingSeconds), - postPaddingSeconds: (postPaddingSeconds != null ? postPaddingSeconds.value : this.postPaddingSeconds), - isPrePaddingRequired: (isPrePaddingRequired != null ? isPrePaddingRequired.value : this.isPrePaddingRequired), - parentBackdropItemId: (parentBackdropItemId != null ? parentBackdropItemId.value : this.parentBackdropItemId), - parentBackdropImageTags: - (parentBackdropImageTags != null ? parentBackdropImageTags.value : this.parentBackdropImageTags), - isPostPaddingRequired: (isPostPaddingRequired != null ? isPostPaddingRequired.value : this.isPostPaddingRequired), + prePaddingSeconds: (prePaddingSeconds != null + ? prePaddingSeconds.value + : this.prePaddingSeconds), + postPaddingSeconds: (postPaddingSeconds != null + ? postPaddingSeconds.value + : this.postPaddingSeconds), + isPrePaddingRequired: (isPrePaddingRequired != null + ? isPrePaddingRequired.value + : this.isPrePaddingRequired), + parentBackdropItemId: (parentBackdropItemId != null + ? parentBackdropItemId.value + : this.parentBackdropItemId), + parentBackdropImageTags: (parentBackdropImageTags != null + ? parentBackdropImageTags.value + : this.parentBackdropImageTags), + isPostPaddingRequired: (isPostPaddingRequired != null + ? isPostPaddingRequired.value + : this.isPostPaddingRequired), keepUntil: (keepUntil != null ? keepUntil.value : this.keepUntil), - recordAnyTime: (recordAnyTime != null ? recordAnyTime.value : this.recordAnyTime), - skipEpisodesInLibrary: (skipEpisodesInLibrary != null ? skipEpisodesInLibrary.value : this.skipEpisodesInLibrary), - recordAnyChannel: (recordAnyChannel != null ? recordAnyChannel.value : this.recordAnyChannel), + recordAnyTime: (recordAnyTime != null + ? recordAnyTime.value + : this.recordAnyTime), + skipEpisodesInLibrary: (skipEpisodesInLibrary != null + ? skipEpisodesInLibrary.value + : this.skipEpisodesInLibrary), + recordAnyChannel: (recordAnyChannel != null + ? recordAnyChannel.value + : this.recordAnyChannel), keepUpTo: (keepUpTo != null ? keepUpTo.value : this.keepUpTo), - recordNewOnly: (recordNewOnly != null ? recordNewOnly.value : this.recordNewOnly), + recordNewOnly: (recordNewOnly != null + ? recordNewOnly.value + : this.recordNewOnly), days: (days != null ? days.value : this.days), dayPattern: (dayPattern != null ? dayPattern.value : this.dayPattern), imageTags: (imageTags != null ? imageTags.value : this.imageTags), - parentThumbItemId: (parentThumbItemId != null ? parentThumbItemId.value : this.parentThumbItemId), - parentThumbImageTag: (parentThumbImageTag != null ? parentThumbImageTag.value : this.parentThumbImageTag), - parentPrimaryImageItemId: - (parentPrimaryImageItemId != null ? parentPrimaryImageItemId.value : this.parentPrimaryImageItemId), - parentPrimaryImageTag: (parentPrimaryImageTag != null ? parentPrimaryImageTag.value : this.parentPrimaryImageTag), + parentThumbItemId: (parentThumbItemId != null + ? parentThumbItemId.value + : this.parentThumbItemId), + parentThumbImageTag: (parentThumbImageTag != null + ? parentThumbImageTag.value + : this.parentThumbImageTag), + parentPrimaryImageItemId: (parentPrimaryImageItemId != null + ? parentPrimaryImageItemId.value + : this.parentPrimaryImageItemId), + parentPrimaryImageTag: (parentPrimaryImageTag != null + ? parentPrimaryImageTag.value + : this.parentPrimaryImageTag), ); } } @@ -42545,7 +44376,8 @@ class SeriesTimerInfoDtoQueryResult { bool operator ==(Object other) { return identical(this, other) || (other is SeriesTimerInfoDtoQueryResult && - (identical(other.items, items) || const DeepCollectionEquality().equals(other.items, items)) && + (identical(other.items, items) || + const DeepCollectionEquality().equals(other.items, items)) && (identical(other.totalRecordCount, totalRecordCount) || const DeepCollectionEquality().equals( other.totalRecordCount, @@ -42569,7 +44401,8 @@ class SeriesTimerInfoDtoQueryResult { runtimeType.hashCode; } -extension $SeriesTimerInfoDtoQueryResultExtension on SeriesTimerInfoDtoQueryResult { +extension $SeriesTimerInfoDtoQueryResultExtension + on SeriesTimerInfoDtoQueryResult { SeriesTimerInfoDtoQueryResult copyWith({ List? items, int? totalRecordCount, @@ -42589,7 +44422,9 @@ extension $SeriesTimerInfoDtoQueryResultExtension on SeriesTimerInfoDtoQueryResu }) { return SeriesTimerInfoDtoQueryResult( items: (items != null ? items.value : this.items), - totalRecordCount: (totalRecordCount != null ? totalRecordCount.value : this.totalRecordCount), + totalRecordCount: (totalRecordCount != null + ? totalRecordCount.value + : this.totalRecordCount), startIndex: (startIndex != null ? startIndex.value : this.startIndex), ); } @@ -42656,7 +44491,8 @@ class ServerConfiguration { this.enableLegacyAuthorization, }); - factory ServerConfiguration.fromJson(Map json) => _$ServerConfigurationFromJson(json); + factory ServerConfiguration.fromJson(Map json) => + _$ServerConfigurationFromJson(json); static const toJsonFactory = _$ServerConfigurationToJson; Map toJson() => _$ServerConfigurationToJson(this); @@ -43294,62 +45130,94 @@ extension $ServerConfigurationExtension on ServerConfiguration { }) { return ServerConfiguration( logFileRetentionDays: logFileRetentionDays ?? this.logFileRetentionDays, - isStartupWizardCompleted: isStartupWizardCompleted ?? this.isStartupWizardCompleted, + isStartupWizardCompleted: + isStartupWizardCompleted ?? this.isStartupWizardCompleted, cachePath: cachePath ?? this.cachePath, previousVersion: previousVersion ?? this.previousVersion, previousVersionStr: previousVersionStr ?? this.previousVersionStr, enableMetrics: enableMetrics ?? this.enableMetrics, - enableNormalizedItemByNameIds: enableNormalizedItemByNameIds ?? this.enableNormalizedItemByNameIds, + enableNormalizedItemByNameIds: + enableNormalizedItemByNameIds ?? this.enableNormalizedItemByNameIds, isPortAuthorized: isPortAuthorized ?? this.isPortAuthorized, - quickConnectAvailable: quickConnectAvailable ?? this.quickConnectAvailable, - enableCaseSensitiveItemIds: enableCaseSensitiveItemIds ?? this.enableCaseSensitiveItemIds, - disableLiveTvChannelUserDataName: disableLiveTvChannelUserDataName ?? this.disableLiveTvChannelUserDataName, + quickConnectAvailable: + quickConnectAvailable ?? this.quickConnectAvailable, + enableCaseSensitiveItemIds: + enableCaseSensitiveItemIds ?? this.enableCaseSensitiveItemIds, + disableLiveTvChannelUserDataName: + disableLiveTvChannelUserDataName ?? + this.disableLiveTvChannelUserDataName, metadataPath: metadataPath ?? this.metadataPath, - preferredMetadataLanguage: preferredMetadataLanguage ?? this.preferredMetadataLanguage, + preferredMetadataLanguage: + preferredMetadataLanguage ?? this.preferredMetadataLanguage, metadataCountryCode: metadataCountryCode ?? this.metadataCountryCode, - sortReplaceCharacters: sortReplaceCharacters ?? this.sortReplaceCharacters, + sortReplaceCharacters: + sortReplaceCharacters ?? this.sortReplaceCharacters, sortRemoveCharacters: sortRemoveCharacters ?? this.sortRemoveCharacters, sortRemoveWords: sortRemoveWords ?? this.sortRemoveWords, minResumePct: minResumePct ?? this.minResumePct, maxResumePct: maxResumePct ?? this.maxResumePct, - minResumeDurationSeconds: minResumeDurationSeconds ?? this.minResumeDurationSeconds, + minResumeDurationSeconds: + minResumeDurationSeconds ?? this.minResumeDurationSeconds, minAudiobookResume: minAudiobookResume ?? this.minAudiobookResume, maxAudiobookResume: maxAudiobookResume ?? this.maxAudiobookResume, - inactiveSessionThreshold: inactiveSessionThreshold ?? this.inactiveSessionThreshold, + inactiveSessionThreshold: + inactiveSessionThreshold ?? this.inactiveSessionThreshold, libraryMonitorDelay: libraryMonitorDelay ?? this.libraryMonitorDelay, - libraryUpdateDuration: libraryUpdateDuration ?? this.libraryUpdateDuration, + libraryUpdateDuration: + libraryUpdateDuration ?? this.libraryUpdateDuration, cacheSize: cacheSize ?? this.cacheSize, - imageSavingConvention: imageSavingConvention ?? this.imageSavingConvention, + imageSavingConvention: + imageSavingConvention ?? this.imageSavingConvention, metadataOptions: metadataOptions ?? this.metadataOptions, - skipDeserializationForBasicTypes: skipDeserializationForBasicTypes ?? this.skipDeserializationForBasicTypes, + skipDeserializationForBasicTypes: + skipDeserializationForBasicTypes ?? + this.skipDeserializationForBasicTypes, serverName: serverName ?? this.serverName, uICulture: uICulture ?? this.uICulture, saveMetadataHidden: saveMetadataHidden ?? this.saveMetadataHidden, contentTypes: contentTypes ?? this.contentTypes, - remoteClientBitrateLimit: remoteClientBitrateLimit ?? this.remoteClientBitrateLimit, + remoteClientBitrateLimit: + remoteClientBitrateLimit ?? this.remoteClientBitrateLimit, enableFolderView: enableFolderView ?? this.enableFolderView, enableGroupingMoviesIntoCollections: - enableGroupingMoviesIntoCollections ?? this.enableGroupingMoviesIntoCollections, - enableGroupingShowsIntoCollections: enableGroupingShowsIntoCollections ?? this.enableGroupingShowsIntoCollections, - displaySpecialsWithinSeasons: displaySpecialsWithinSeasons ?? this.displaySpecialsWithinSeasons, + enableGroupingMoviesIntoCollections ?? + this.enableGroupingMoviesIntoCollections, + enableGroupingShowsIntoCollections: + enableGroupingShowsIntoCollections ?? + this.enableGroupingShowsIntoCollections, + displaySpecialsWithinSeasons: + displaySpecialsWithinSeasons ?? this.displaySpecialsWithinSeasons, codecsUsed: codecsUsed ?? this.codecsUsed, pluginRepositories: pluginRepositories ?? this.pluginRepositories, - enableExternalContentInSuggestions: enableExternalContentInSuggestions ?? this.enableExternalContentInSuggestions, - imageExtractionTimeoutMs: imageExtractionTimeoutMs ?? this.imageExtractionTimeoutMs, + enableExternalContentInSuggestions: + enableExternalContentInSuggestions ?? + this.enableExternalContentInSuggestions, + imageExtractionTimeoutMs: + imageExtractionTimeoutMs ?? this.imageExtractionTimeoutMs, pathSubstitutions: pathSubstitutions ?? this.pathSubstitutions, - enableSlowResponseWarning: enableSlowResponseWarning ?? this.enableSlowResponseWarning, - slowResponseThresholdMs: slowResponseThresholdMs ?? this.slowResponseThresholdMs, + enableSlowResponseWarning: + enableSlowResponseWarning ?? this.enableSlowResponseWarning, + slowResponseThresholdMs: + slowResponseThresholdMs ?? this.slowResponseThresholdMs, corsHosts: corsHosts ?? this.corsHosts, - activityLogRetentionDays: activityLogRetentionDays ?? this.activityLogRetentionDays, - libraryScanFanoutConcurrency: libraryScanFanoutConcurrency ?? this.libraryScanFanoutConcurrency, - libraryMetadataRefreshConcurrency: libraryMetadataRefreshConcurrency ?? this.libraryMetadataRefreshConcurrency, + activityLogRetentionDays: + activityLogRetentionDays ?? this.activityLogRetentionDays, + libraryScanFanoutConcurrency: + libraryScanFanoutConcurrency ?? this.libraryScanFanoutConcurrency, + libraryMetadataRefreshConcurrency: + libraryMetadataRefreshConcurrency ?? + this.libraryMetadataRefreshConcurrency, allowClientLogUpload: allowClientLogUpload ?? this.allowClientLogUpload, dummyChapterDuration: dummyChapterDuration ?? this.dummyChapterDuration, - chapterImageResolution: chapterImageResolution ?? this.chapterImageResolution, - parallelImageEncodingLimit: parallelImageEncodingLimit ?? this.parallelImageEncodingLimit, - castReceiverApplications: castReceiverApplications ?? this.castReceiverApplications, + chapterImageResolution: + chapterImageResolution ?? this.chapterImageResolution, + parallelImageEncodingLimit: + parallelImageEncodingLimit ?? this.parallelImageEncodingLimit, + castReceiverApplications: + castReceiverApplications ?? this.castReceiverApplications, trickplayOptions: trickplayOptions ?? this.trickplayOptions, - enableLegacyAuthorization: enableLegacyAuthorization ?? this.enableLegacyAuthorization, + enableLegacyAuthorization: + enableLegacyAuthorization ?? this.enableLegacyAuthorization, ); } @@ -43412,94 +45280,168 @@ extension $ServerConfigurationExtension on ServerConfiguration { Wrapped? enableLegacyAuthorization, }) { return ServerConfiguration( - logFileRetentionDays: (logFileRetentionDays != null ? logFileRetentionDays.value : this.logFileRetentionDays), - isStartupWizardCompleted: - (isStartupWizardCompleted != null ? isStartupWizardCompleted.value : this.isStartupWizardCompleted), + logFileRetentionDays: (logFileRetentionDays != null + ? logFileRetentionDays.value + : this.logFileRetentionDays), + isStartupWizardCompleted: (isStartupWizardCompleted != null + ? isStartupWizardCompleted.value + : this.isStartupWizardCompleted), cachePath: (cachePath != null ? cachePath.value : this.cachePath), - previousVersion: (previousVersion != null ? previousVersion.value : this.previousVersion), - previousVersionStr: (previousVersionStr != null ? previousVersionStr.value : this.previousVersionStr), - enableMetrics: (enableMetrics != null ? enableMetrics.value : this.enableMetrics), + previousVersion: (previousVersion != null + ? previousVersion.value + : this.previousVersion), + previousVersionStr: (previousVersionStr != null + ? previousVersionStr.value + : this.previousVersionStr), + enableMetrics: (enableMetrics != null + ? enableMetrics.value + : this.enableMetrics), enableNormalizedItemByNameIds: (enableNormalizedItemByNameIds != null ? enableNormalizedItemByNameIds.value : this.enableNormalizedItemByNameIds), - isPortAuthorized: (isPortAuthorized != null ? isPortAuthorized.value : this.isPortAuthorized), - quickConnectAvailable: (quickConnectAvailable != null ? quickConnectAvailable.value : this.quickConnectAvailable), - enableCaseSensitiveItemIds: - (enableCaseSensitiveItemIds != null ? enableCaseSensitiveItemIds.value : this.enableCaseSensitiveItemIds), - disableLiveTvChannelUserDataName: (disableLiveTvChannelUserDataName != null + isPortAuthorized: (isPortAuthorized != null + ? isPortAuthorized.value + : this.isPortAuthorized), + quickConnectAvailable: (quickConnectAvailable != null + ? quickConnectAvailable.value + : this.quickConnectAvailable), + enableCaseSensitiveItemIds: (enableCaseSensitiveItemIds != null + ? enableCaseSensitiveItemIds.value + : this.enableCaseSensitiveItemIds), + disableLiveTvChannelUserDataName: + (disableLiveTvChannelUserDataName != null ? disableLiveTvChannelUserDataName.value : this.disableLiveTvChannelUserDataName), - metadataPath: (metadataPath != null ? metadataPath.value : this.metadataPath), - preferredMetadataLanguage: - (preferredMetadataLanguage != null ? preferredMetadataLanguage.value : this.preferredMetadataLanguage), - metadataCountryCode: (metadataCountryCode != null ? metadataCountryCode.value : this.metadataCountryCode), - sortReplaceCharacters: (sortReplaceCharacters != null ? sortReplaceCharacters.value : this.sortReplaceCharacters), - sortRemoveCharacters: (sortRemoveCharacters != null ? sortRemoveCharacters.value : this.sortRemoveCharacters), - sortRemoveWords: (sortRemoveWords != null ? sortRemoveWords.value : this.sortRemoveWords), - minResumePct: (minResumePct != null ? minResumePct.value : this.minResumePct), - maxResumePct: (maxResumePct != null ? maxResumePct.value : this.maxResumePct), - minResumeDurationSeconds: - (minResumeDurationSeconds != null ? minResumeDurationSeconds.value : this.minResumeDurationSeconds), - minAudiobookResume: (minAudiobookResume != null ? minAudiobookResume.value : this.minAudiobookResume), - maxAudiobookResume: (maxAudiobookResume != null ? maxAudiobookResume.value : this.maxAudiobookResume), - inactiveSessionThreshold: - (inactiveSessionThreshold != null ? inactiveSessionThreshold.value : this.inactiveSessionThreshold), - libraryMonitorDelay: (libraryMonitorDelay != null ? libraryMonitorDelay.value : this.libraryMonitorDelay), - libraryUpdateDuration: (libraryUpdateDuration != null ? libraryUpdateDuration.value : this.libraryUpdateDuration), + metadataPath: (metadataPath != null + ? metadataPath.value + : this.metadataPath), + preferredMetadataLanguage: (preferredMetadataLanguage != null + ? preferredMetadataLanguage.value + : this.preferredMetadataLanguage), + metadataCountryCode: (metadataCountryCode != null + ? metadataCountryCode.value + : this.metadataCountryCode), + sortReplaceCharacters: (sortReplaceCharacters != null + ? sortReplaceCharacters.value + : this.sortReplaceCharacters), + sortRemoveCharacters: (sortRemoveCharacters != null + ? sortRemoveCharacters.value + : this.sortRemoveCharacters), + sortRemoveWords: (sortRemoveWords != null + ? sortRemoveWords.value + : this.sortRemoveWords), + minResumePct: (minResumePct != null + ? minResumePct.value + : this.minResumePct), + maxResumePct: (maxResumePct != null + ? maxResumePct.value + : this.maxResumePct), + minResumeDurationSeconds: (minResumeDurationSeconds != null + ? minResumeDurationSeconds.value + : this.minResumeDurationSeconds), + minAudiobookResume: (minAudiobookResume != null + ? minAudiobookResume.value + : this.minAudiobookResume), + maxAudiobookResume: (maxAudiobookResume != null + ? maxAudiobookResume.value + : this.maxAudiobookResume), + inactiveSessionThreshold: (inactiveSessionThreshold != null + ? inactiveSessionThreshold.value + : this.inactiveSessionThreshold), + libraryMonitorDelay: (libraryMonitorDelay != null + ? libraryMonitorDelay.value + : this.libraryMonitorDelay), + libraryUpdateDuration: (libraryUpdateDuration != null + ? libraryUpdateDuration.value + : this.libraryUpdateDuration), cacheSize: (cacheSize != null ? cacheSize.value : this.cacheSize), - imageSavingConvention: (imageSavingConvention != null ? imageSavingConvention.value : this.imageSavingConvention), - metadataOptions: (metadataOptions != null ? metadataOptions.value : this.metadataOptions), - skipDeserializationForBasicTypes: (skipDeserializationForBasicTypes != null + imageSavingConvention: (imageSavingConvention != null + ? imageSavingConvention.value + : this.imageSavingConvention), + metadataOptions: (metadataOptions != null + ? metadataOptions.value + : this.metadataOptions), + skipDeserializationForBasicTypes: + (skipDeserializationForBasicTypes != null ? skipDeserializationForBasicTypes.value : this.skipDeserializationForBasicTypes), serverName: (serverName != null ? serverName.value : this.serverName), uICulture: (uICulture != null ? uICulture.value : this.uICulture), - saveMetadataHidden: (saveMetadataHidden != null ? saveMetadataHidden.value : this.saveMetadataHidden), - contentTypes: (contentTypes != null ? contentTypes.value : this.contentTypes), - remoteClientBitrateLimit: - (remoteClientBitrateLimit != null ? remoteClientBitrateLimit.value : this.remoteClientBitrateLimit), - enableFolderView: (enableFolderView != null ? enableFolderView.value : this.enableFolderView), - enableGroupingMoviesIntoCollections: (enableGroupingMoviesIntoCollections != null + saveMetadataHidden: (saveMetadataHidden != null + ? saveMetadataHidden.value + : this.saveMetadataHidden), + contentTypes: (contentTypes != null + ? contentTypes.value + : this.contentTypes), + remoteClientBitrateLimit: (remoteClientBitrateLimit != null + ? remoteClientBitrateLimit.value + : this.remoteClientBitrateLimit), + enableFolderView: (enableFolderView != null + ? enableFolderView.value + : this.enableFolderView), + enableGroupingMoviesIntoCollections: + (enableGroupingMoviesIntoCollections != null ? enableGroupingMoviesIntoCollections.value : this.enableGroupingMoviesIntoCollections), - enableGroupingShowsIntoCollections: (enableGroupingShowsIntoCollections != null + enableGroupingShowsIntoCollections: + (enableGroupingShowsIntoCollections != null ? enableGroupingShowsIntoCollections.value : this.enableGroupingShowsIntoCollections), displaySpecialsWithinSeasons: (displaySpecialsWithinSeasons != null ? displaySpecialsWithinSeasons.value : this.displaySpecialsWithinSeasons), codecsUsed: (codecsUsed != null ? codecsUsed.value : this.codecsUsed), - pluginRepositories: (pluginRepositories != null ? pluginRepositories.value : this.pluginRepositories), - enableExternalContentInSuggestions: (enableExternalContentInSuggestions != null + pluginRepositories: (pluginRepositories != null + ? pluginRepositories.value + : this.pluginRepositories), + enableExternalContentInSuggestions: + (enableExternalContentInSuggestions != null ? enableExternalContentInSuggestions.value : this.enableExternalContentInSuggestions), - imageExtractionTimeoutMs: - (imageExtractionTimeoutMs != null ? imageExtractionTimeoutMs.value : this.imageExtractionTimeoutMs), - pathSubstitutions: (pathSubstitutions != null ? pathSubstitutions.value : this.pathSubstitutions), - enableSlowResponseWarning: - (enableSlowResponseWarning != null ? enableSlowResponseWarning.value : this.enableSlowResponseWarning), - slowResponseThresholdMs: - (slowResponseThresholdMs != null ? slowResponseThresholdMs.value : this.slowResponseThresholdMs), + imageExtractionTimeoutMs: (imageExtractionTimeoutMs != null + ? imageExtractionTimeoutMs.value + : this.imageExtractionTimeoutMs), + pathSubstitutions: (pathSubstitutions != null + ? pathSubstitutions.value + : this.pathSubstitutions), + enableSlowResponseWarning: (enableSlowResponseWarning != null + ? enableSlowResponseWarning.value + : this.enableSlowResponseWarning), + slowResponseThresholdMs: (slowResponseThresholdMs != null + ? slowResponseThresholdMs.value + : this.slowResponseThresholdMs), corsHosts: (corsHosts != null ? corsHosts.value : this.corsHosts), - activityLogRetentionDays: - (activityLogRetentionDays != null ? activityLogRetentionDays.value : this.activityLogRetentionDays), + activityLogRetentionDays: (activityLogRetentionDays != null + ? activityLogRetentionDays.value + : this.activityLogRetentionDays), libraryScanFanoutConcurrency: (libraryScanFanoutConcurrency != null ? libraryScanFanoutConcurrency.value : this.libraryScanFanoutConcurrency), - libraryMetadataRefreshConcurrency: (libraryMetadataRefreshConcurrency != null + libraryMetadataRefreshConcurrency: + (libraryMetadataRefreshConcurrency != null ? libraryMetadataRefreshConcurrency.value : this.libraryMetadataRefreshConcurrency), - allowClientLogUpload: (allowClientLogUpload != null ? allowClientLogUpload.value : this.allowClientLogUpload), - dummyChapterDuration: (dummyChapterDuration != null ? dummyChapterDuration.value : this.dummyChapterDuration), - chapterImageResolution: - (chapterImageResolution != null ? chapterImageResolution.value : this.chapterImageResolution), - parallelImageEncodingLimit: - (parallelImageEncodingLimit != null ? parallelImageEncodingLimit.value : this.parallelImageEncodingLimit), - castReceiverApplications: - (castReceiverApplications != null ? castReceiverApplications.value : this.castReceiverApplications), - trickplayOptions: (trickplayOptions != null ? trickplayOptions.value : this.trickplayOptions), - enableLegacyAuthorization: - (enableLegacyAuthorization != null ? enableLegacyAuthorization.value : this.enableLegacyAuthorization), + allowClientLogUpload: (allowClientLogUpload != null + ? allowClientLogUpload.value + : this.allowClientLogUpload), + dummyChapterDuration: (dummyChapterDuration != null + ? dummyChapterDuration.value + : this.dummyChapterDuration), + chapterImageResolution: (chapterImageResolution != null + ? chapterImageResolution.value + : this.chapterImageResolution), + parallelImageEncodingLimit: (parallelImageEncodingLimit != null + ? parallelImageEncodingLimit.value + : this.parallelImageEncodingLimit), + castReceiverApplications: (castReceiverApplications != null + ? castReceiverApplications.value + : this.castReceiverApplications), + trickplayOptions: (trickplayOptions != null + ? trickplayOptions.value + : this.trickplayOptions), + enableLegacyAuthorization: (enableLegacyAuthorization != null + ? enableLegacyAuthorization.value + : this.enableLegacyAuthorization), ); } } @@ -43513,7 +45455,8 @@ class ServerDiscoveryInfo { this.endpointAddress, }); - factory ServerDiscoveryInfo.fromJson(Map json) => _$ServerDiscoveryInfoFromJson(json); + factory ServerDiscoveryInfo.fromJson(Map json) => + _$ServerDiscoveryInfoFromJson(json); static const toJsonFactory = _$ServerDiscoveryInfoToJson; Map toJson() => _$ServerDiscoveryInfoToJson(this); @@ -43537,8 +45480,10 @@ class ServerDiscoveryInfo { other.address, address, )) && - (identical(other.id, id) || const DeepCollectionEquality().equals(other.id, id)) && - (identical(other.name, name) || const DeepCollectionEquality().equals(other.name, name)) && + (identical(other.id, id) || + const DeepCollectionEquality().equals(other.id, id)) && + (identical(other.name, name) || + const DeepCollectionEquality().equals(other.name, name)) && (identical(other.endpointAddress, endpointAddress) || const DeepCollectionEquality().equals( other.endpointAddress, @@ -43583,7 +45528,9 @@ extension $ServerDiscoveryInfoExtension on ServerDiscoveryInfo { address: (address != null ? address.value : this.address), id: (id != null ? id.value : this.id), name: (name != null ? name.value : this.name), - endpointAddress: (endpointAddress != null ? endpointAddress.value : this.endpointAddress), + endpointAddress: (endpointAddress != null + ? endpointAddress.value + : this.endpointAddress), ); } } @@ -43592,7 +45539,8 @@ extension $ServerDiscoveryInfoExtension on ServerDiscoveryInfo { class ServerRestartingMessage { const ServerRestartingMessage({this.messageId, this.messageType}); - factory ServerRestartingMessage.fromJson(Map json) => _$ServerRestartingMessageFromJson(json); + factory ServerRestartingMessage.fromJson(Map json) => + _$ServerRestartingMessageFromJson(json); static const toJsonFactory = _$ServerRestartingMessageToJson; Map toJson() => _$ServerRestartingMessageToJson(this); @@ -43606,7 +45554,8 @@ class ServerRestartingMessage { fromJson: sessionMessageTypeMessageTypeNullableFromJson, ) final enums.SessionMessageType? messageType; - static enums.SessionMessageType? sessionMessageTypeMessageTypeNullableFromJson(Object? value) => + static enums.SessionMessageType? + sessionMessageTypeMessageTypeNullableFromJson(Object? value) => sessionMessageTypeNullableFromJson( value, enums.SessionMessageType.serverrestarting, @@ -43666,7 +45615,8 @@ extension $ServerRestartingMessageExtension on ServerRestartingMessage { class ServerShuttingDownMessage { const ServerShuttingDownMessage({this.messageId, this.messageType}); - factory ServerShuttingDownMessage.fromJson(Map json) => _$ServerShuttingDownMessageFromJson(json); + factory ServerShuttingDownMessage.fromJson(Map json) => + _$ServerShuttingDownMessageFromJson(json); static const toJsonFactory = _$ServerShuttingDownMessageToJson; Map toJson() => _$ServerShuttingDownMessageToJson(this); @@ -43680,7 +45630,8 @@ class ServerShuttingDownMessage { fromJson: sessionMessageTypeMessageTypeNullableFromJson, ) final enums.SessionMessageType? messageType; - static enums.SessionMessageType? sessionMessageTypeMessageTypeNullableFromJson(Object? value) => + static enums.SessionMessageType? + sessionMessageTypeMessageTypeNullableFromJson(Object? value) => sessionMessageTypeNullableFromJson( value, enums.SessionMessageType.servershuttingdown, @@ -43770,7 +45721,8 @@ class SessionInfoDto { this.supportedCommands, }); - factory SessionInfoDto.fromJson(Map json) => _$SessionInfoDtoFromJson(json); + factory SessionInfoDto.fromJson(Map json) => + _$SessionInfoDtoFromJson(json); static const toJsonFactory = _$SessionInfoDtoToJson; Map toJson() => _$SessionInfoDtoToJson(this); @@ -43886,8 +45838,10 @@ class SessionInfoDto { other.playableMediaTypes, playableMediaTypes, )) && - (identical(other.id, id) || const DeepCollectionEquality().equals(other.id, id)) && - (identical(other.userId, userId) || const DeepCollectionEquality().equals(other.userId, userId)) && + (identical(other.id, id) || + const DeepCollectionEquality().equals(other.id, id)) && + (identical(other.userId, userId) || + const DeepCollectionEquality().equals(other.userId, userId)) && (identical(other.userName, userName) || const DeepCollectionEquality().equals( other.userName, @@ -44094,9 +46048,11 @@ extension $SessionInfoDtoExtension on SessionInfoDto { transcodingInfo: transcodingInfo ?? this.transcodingInfo, isActive: isActive ?? this.isActive, supportsMediaControl: supportsMediaControl ?? this.supportsMediaControl, - supportsRemoteControl: supportsRemoteControl ?? this.supportsRemoteControl, + supportsRemoteControl: + supportsRemoteControl ?? this.supportsRemoteControl, nowPlayingQueue: nowPlayingQueue ?? this.nowPlayingQueue, - nowPlayingQueueFullItems: nowPlayingQueueFullItems ?? this.nowPlayingQueueFullItems, + nowPlayingQueueFullItems: + nowPlayingQueueFullItems ?? this.nowPlayingQueueFullItems, hasCustomDeviceName: hasCustomDeviceName ?? this.hasCustomDeviceName, playlistItemId: playlistItemId ?? this.playlistItemId, serverId: serverId ?? this.serverId, @@ -44138,35 +46094,72 @@ extension $SessionInfoDtoExtension on SessionInfoDto { }) { return SessionInfoDto( playState: (playState != null ? playState.value : this.playState), - additionalUsers: (additionalUsers != null ? additionalUsers.value : this.additionalUsers), - capabilities: (capabilities != null ? capabilities.value : this.capabilities), - remoteEndPoint: (remoteEndPoint != null ? remoteEndPoint.value : this.remoteEndPoint), - playableMediaTypes: (playableMediaTypes != null ? playableMediaTypes.value : this.playableMediaTypes), + additionalUsers: (additionalUsers != null + ? additionalUsers.value + : this.additionalUsers), + capabilities: (capabilities != null + ? capabilities.value + : this.capabilities), + remoteEndPoint: (remoteEndPoint != null + ? remoteEndPoint.value + : this.remoteEndPoint), + playableMediaTypes: (playableMediaTypes != null + ? playableMediaTypes.value + : this.playableMediaTypes), id: (id != null ? id.value : this.id), userId: (userId != null ? userId.value : this.userId), userName: (userName != null ? userName.value : this.userName), $Client: ($Client != null ? $Client.value : this.$Client), - lastActivityDate: (lastActivityDate != null ? lastActivityDate.value : this.lastActivityDate), - lastPlaybackCheckIn: (lastPlaybackCheckIn != null ? lastPlaybackCheckIn.value : this.lastPlaybackCheckIn), - lastPausedDate: (lastPausedDate != null ? lastPausedDate.value : this.lastPausedDate), + lastActivityDate: (lastActivityDate != null + ? lastActivityDate.value + : this.lastActivityDate), + lastPlaybackCheckIn: (lastPlaybackCheckIn != null + ? lastPlaybackCheckIn.value + : this.lastPlaybackCheckIn), + lastPausedDate: (lastPausedDate != null + ? lastPausedDate.value + : this.lastPausedDate), deviceName: (deviceName != null ? deviceName.value : this.deviceName), deviceType: (deviceType != null ? deviceType.value : this.deviceType), - nowPlayingItem: (nowPlayingItem != null ? nowPlayingItem.value : this.nowPlayingItem), - nowViewingItem: (nowViewingItem != null ? nowViewingItem.value : this.nowViewingItem), + nowPlayingItem: (nowPlayingItem != null + ? nowPlayingItem.value + : this.nowPlayingItem), + nowViewingItem: (nowViewingItem != null + ? nowViewingItem.value + : this.nowViewingItem), deviceId: (deviceId != null ? deviceId.value : this.deviceId), - applicationVersion: (applicationVersion != null ? applicationVersion.value : this.applicationVersion), - transcodingInfo: (transcodingInfo != null ? transcodingInfo.value : this.transcodingInfo), + applicationVersion: (applicationVersion != null + ? applicationVersion.value + : this.applicationVersion), + transcodingInfo: (transcodingInfo != null + ? transcodingInfo.value + : this.transcodingInfo), isActive: (isActive != null ? isActive.value : this.isActive), - supportsMediaControl: (supportsMediaControl != null ? supportsMediaControl.value : this.supportsMediaControl), - supportsRemoteControl: (supportsRemoteControl != null ? supportsRemoteControl.value : this.supportsRemoteControl), - nowPlayingQueue: (nowPlayingQueue != null ? nowPlayingQueue.value : this.nowPlayingQueue), - nowPlayingQueueFullItems: - (nowPlayingQueueFullItems != null ? nowPlayingQueueFullItems.value : this.nowPlayingQueueFullItems), - hasCustomDeviceName: (hasCustomDeviceName != null ? hasCustomDeviceName.value : this.hasCustomDeviceName), - playlistItemId: (playlistItemId != null ? playlistItemId.value : this.playlistItemId), + supportsMediaControl: (supportsMediaControl != null + ? supportsMediaControl.value + : this.supportsMediaControl), + supportsRemoteControl: (supportsRemoteControl != null + ? supportsRemoteControl.value + : this.supportsRemoteControl), + nowPlayingQueue: (nowPlayingQueue != null + ? nowPlayingQueue.value + : this.nowPlayingQueue), + nowPlayingQueueFullItems: (nowPlayingQueueFullItems != null + ? nowPlayingQueueFullItems.value + : this.nowPlayingQueueFullItems), + hasCustomDeviceName: (hasCustomDeviceName != null + ? hasCustomDeviceName.value + : this.hasCustomDeviceName), + playlistItemId: (playlistItemId != null + ? playlistItemId.value + : this.playlistItemId), serverId: (serverId != null ? serverId.value : this.serverId), - userPrimaryImageTag: (userPrimaryImageTag != null ? userPrimaryImageTag.value : this.userPrimaryImageTag), - supportedCommands: (supportedCommands != null ? supportedCommands.value : this.supportedCommands), + userPrimaryImageTag: (userPrimaryImageTag != null + ? userPrimaryImageTag.value + : this.userPrimaryImageTag), + supportedCommands: (supportedCommands != null + ? supportedCommands.value + : this.supportedCommands), ); } } @@ -44175,7 +46168,8 @@ extension $SessionInfoDtoExtension on SessionInfoDto { class SessionsMessage { const SessionsMessage({this.data, this.messageId, this.messageType}); - factory SessionsMessage.fromJson(Map json) => _$SessionsMessageFromJson(json); + factory SessionsMessage.fromJson(Map json) => + _$SessionsMessageFromJson(json); static const toJsonFactory = _$SessionsMessageToJson; Map toJson() => _$SessionsMessageToJson(this); @@ -44191,7 +46185,8 @@ class SessionsMessage { fromJson: sessionMessageTypeMessageTypeNullableFromJson, ) final enums.SessionMessageType? messageType; - static enums.SessionMessageType? sessionMessageTypeMessageTypeNullableFromJson(Object? value) => + static enums.SessionMessageType? + sessionMessageTypeMessageTypeNullableFromJson(Object? value) => sessionMessageTypeNullableFromJson( value, enums.SessionMessageType.sessions, @@ -44203,7 +46198,8 @@ class SessionsMessage { bool operator ==(Object other) { return identical(this, other) || (other is SessionsMessage && - (identical(other.data, data) || const DeepCollectionEquality().equals(other.data, data)) && + (identical(other.data, data) || + const DeepCollectionEquality().equals(other.data, data)) && (identical(other.messageId, messageId) || const DeepCollectionEquality().equals( other.messageId, @@ -44257,7 +46253,8 @@ extension $SessionsMessageExtension on SessionsMessage { class SessionsStartMessage { const SessionsStartMessage({this.data, this.messageType}); - factory SessionsStartMessage.fromJson(Map json) => _$SessionsStartMessageFromJson(json); + factory SessionsStartMessage.fromJson(Map json) => + _$SessionsStartMessageFromJson(json); static const toJsonFactory = _$SessionsStartMessageToJson; Map toJson() => _$SessionsStartMessageToJson(this); @@ -44271,7 +46268,8 @@ class SessionsStartMessage { fromJson: sessionMessageTypeMessageTypeNullableFromJson, ) final enums.SessionMessageType? messageType; - static enums.SessionMessageType? sessionMessageTypeMessageTypeNullableFromJson(Object? value) => + static enums.SessionMessageType? + sessionMessageTypeMessageTypeNullableFromJson(Object? value) => sessionMessageTypeNullableFromJson( value, enums.SessionMessageType.sessionsstart, @@ -44283,7 +46281,8 @@ class SessionsStartMessage { bool operator ==(Object other) { return identical(this, other) || (other is SessionsStartMessage && - (identical(other.data, data) || const DeepCollectionEquality().equals(other.data, data)) && + (identical(other.data, data) || + const DeepCollectionEquality().equals(other.data, data)) && (identical(other.messageType, messageType) || const DeepCollectionEquality().equals( other.messageType, @@ -44327,7 +46326,8 @@ extension $SessionsStartMessageExtension on SessionsStartMessage { class SessionsStopMessage { const SessionsStopMessage({this.messageType}); - factory SessionsStopMessage.fromJson(Map json) => _$SessionsStopMessageFromJson(json); + factory SessionsStopMessage.fromJson(Map json) => + _$SessionsStopMessageFromJson(json); static const toJsonFactory = _$SessionsStopMessageToJson; Map toJson() => _$SessionsStopMessageToJson(this); @@ -44339,7 +46339,8 @@ class SessionsStopMessage { fromJson: sessionMessageTypeMessageTypeNullableFromJson, ) final enums.SessionMessageType? messageType; - static enums.SessionMessageType? sessionMessageTypeMessageTypeNullableFromJson(Object? value) => + static enums.SessionMessageType? + sessionMessageTypeMessageTypeNullableFromJson(Object? value) => sessionMessageTypeNullableFromJson( value, enums.SessionMessageType.sessionsstop, @@ -44362,7 +46363,8 @@ class SessionsStopMessage { String toString() => jsonEncode(this); @override - int get hashCode => const DeepCollectionEquality().hash(messageType) ^ runtimeType.hashCode; + int get hashCode => + const DeepCollectionEquality().hash(messageType) ^ runtimeType.hashCode; } extension $SessionsStopMessageExtension on SessionsStopMessage { @@ -44383,7 +46385,8 @@ extension $SessionsStopMessageExtension on SessionsStopMessage { class SessionUserInfo { const SessionUserInfo({this.userId, this.userName}); - factory SessionUserInfo.fromJson(Map json) => _$SessionUserInfoFromJson(json); + factory SessionUserInfo.fromJson(Map json) => + _$SessionUserInfoFromJson(json); static const toJsonFactory = _$SessionUserInfoToJson; Map toJson() => _$SessionUserInfoToJson(this); @@ -44398,7 +46401,8 @@ class SessionUserInfo { bool operator ==(Object other) { return identical(this, other) || (other is SessionUserInfo && - (identical(other.userId, userId) || const DeepCollectionEquality().equals(other.userId, userId)) && + (identical(other.userId, userId) || + const DeepCollectionEquality().equals(other.userId, userId)) && (identical(other.userName, userName) || const DeepCollectionEquality().equals( other.userName, @@ -44443,7 +46447,8 @@ class SetChannelMappingDto { required this.providerChannelId, }); - factory SetChannelMappingDto.fromJson(Map json) => _$SetChannelMappingDtoFromJson(json); + factory SetChannelMappingDto.fromJson(Map json) => + _$SetChannelMappingDtoFromJson(json); static const toJsonFactory = _$SetChannelMappingDtoToJson; Map toJson() => _$SetChannelMappingDtoToJson(this); @@ -44508,8 +46513,12 @@ extension $SetChannelMappingDtoExtension on SetChannelMappingDto { }) { return SetChannelMappingDto( providerId: (providerId != null ? providerId.value : this.providerId), - tunerChannelId: (tunerChannelId != null ? tunerChannelId.value : this.tunerChannelId), - providerChannelId: (providerChannelId != null ? providerChannelId.value : this.providerChannelId), + tunerChannelId: (tunerChannelId != null + ? tunerChannelId.value + : this.tunerChannelId), + providerChannelId: (providerChannelId != null + ? providerChannelId.value + : this.providerChannelId), ); } } @@ -44518,7 +46527,8 @@ extension $SetChannelMappingDtoExtension on SetChannelMappingDto { class SetPlaylistItemRequestDto { const SetPlaylistItemRequestDto({this.playlistItemId}); - factory SetPlaylistItemRequestDto.fromJson(Map json) => _$SetPlaylistItemRequestDtoFromJson(json); + factory SetPlaylistItemRequestDto.fromJson(Map json) => + _$SetPlaylistItemRequestDtoFromJson(json); static const toJsonFactory = _$SetPlaylistItemRequestDtoToJson; Map toJson() => _$SetPlaylistItemRequestDtoToJson(this); @@ -44542,7 +46552,9 @@ class SetPlaylistItemRequestDto { String toString() => jsonEncode(this); @override - int get hashCode => const DeepCollectionEquality().hash(playlistItemId) ^ runtimeType.hashCode; + int get hashCode => + const DeepCollectionEquality().hash(playlistItemId) ^ + runtimeType.hashCode; } extension $SetPlaylistItemRequestDtoExtension on SetPlaylistItemRequestDto { @@ -44556,7 +46568,9 @@ extension $SetPlaylistItemRequestDtoExtension on SetPlaylistItemRequestDto { Wrapped? playlistItemId, }) { return SetPlaylistItemRequestDto( - playlistItemId: (playlistItemId != null ? playlistItemId.value : this.playlistItemId), + playlistItemId: (playlistItemId != null + ? playlistItemId.value + : this.playlistItemId), ); } } @@ -44565,7 +46579,8 @@ extension $SetPlaylistItemRequestDtoExtension on SetPlaylistItemRequestDto { class SetRepeatModeRequestDto { const SetRepeatModeRequestDto({this.mode}); - factory SetRepeatModeRequestDto.fromJson(Map json) => _$SetRepeatModeRequestDtoFromJson(json); + factory SetRepeatModeRequestDto.fromJson(Map json) => + _$SetRepeatModeRequestDtoFromJson(json); static const toJsonFactory = _$SetRepeatModeRequestDtoToJson; Map toJson() => _$SetRepeatModeRequestDtoToJson(this); @@ -44583,14 +46598,16 @@ class SetRepeatModeRequestDto { bool operator ==(Object other) { return identical(this, other) || (other is SetRepeatModeRequestDto && - (identical(other.mode, mode) || const DeepCollectionEquality().equals(other.mode, mode))); + (identical(other.mode, mode) || + const DeepCollectionEquality().equals(other.mode, mode))); } @override String toString() => jsonEncode(this); @override - int get hashCode => const DeepCollectionEquality().hash(mode) ^ runtimeType.hashCode; + int get hashCode => + const DeepCollectionEquality().hash(mode) ^ runtimeType.hashCode; } extension $SetRepeatModeRequestDtoExtension on SetRepeatModeRequestDto { @@ -44611,7 +46628,8 @@ extension $SetRepeatModeRequestDtoExtension on SetRepeatModeRequestDto { class SetShuffleModeRequestDto { const SetShuffleModeRequestDto({this.mode}); - factory SetShuffleModeRequestDto.fromJson(Map json) => _$SetShuffleModeRequestDtoFromJson(json); + factory SetShuffleModeRequestDto.fromJson(Map json) => + _$SetShuffleModeRequestDtoFromJson(json); static const toJsonFactory = _$SetShuffleModeRequestDtoToJson; Map toJson() => _$SetShuffleModeRequestDtoToJson(this); @@ -44629,14 +46647,16 @@ class SetShuffleModeRequestDto { bool operator ==(Object other) { return identical(this, other) || (other is SetShuffleModeRequestDto && - (identical(other.mode, mode) || const DeepCollectionEquality().equals(other.mode, mode))); + (identical(other.mode, mode) || + const DeepCollectionEquality().equals(other.mode, mode))); } @override String toString() => jsonEncode(this); @override - int get hashCode => const DeepCollectionEquality().hash(mode) ^ runtimeType.hashCode; + int get hashCode => + const DeepCollectionEquality().hash(mode) ^ runtimeType.hashCode; } extension $SetShuffleModeRequestDtoExtension on SetShuffleModeRequestDto { @@ -44672,7 +46692,8 @@ class SongInfo { this.artists, }); - factory SongInfo.fromJson(Map json) => _$SongInfoFromJson(json); + factory SongInfo.fromJson(Map json) => + _$SongInfoFromJson(json); static const toJsonFactory = _$SongInfoToJson; Map toJson() => _$SongInfoToJson(this); @@ -44711,13 +46732,15 @@ class SongInfo { bool operator ==(Object other) { return identical(this, other) || (other is SongInfo && - (identical(other.name, name) || const DeepCollectionEquality().equals(other.name, name)) && + (identical(other.name, name) || + const DeepCollectionEquality().equals(other.name, name)) && (identical(other.originalTitle, originalTitle) || const DeepCollectionEquality().equals( other.originalTitle, originalTitle, )) && - (identical(other.path, path) || const DeepCollectionEquality().equals(other.path, path)) && + (identical(other.path, path) || + const DeepCollectionEquality().equals(other.path, path)) && (identical(other.metadataLanguage, metadataLanguage) || const DeepCollectionEquality().equals( other.metadataLanguage, @@ -44733,7 +46756,8 @@ class SongInfo { other.providerIds, providerIds, )) && - (identical(other.year, year) || const DeepCollectionEquality().equals(other.year, year)) && + (identical(other.year, year) || + const DeepCollectionEquality().equals(other.year, year)) && (identical(other.indexNumber, indexNumber) || const DeepCollectionEquality().equals( other.indexNumber, @@ -44759,8 +46783,10 @@ class SongInfo { other.albumArtists, albumArtists, )) && - (identical(other.album, album) || const DeepCollectionEquality().equals(other.album, album)) && - (identical(other.artists, artists) || const DeepCollectionEquality().equals(other.artists, artists))); + (identical(other.album, album) || + const DeepCollectionEquality().equals(other.album, album)) && + (identical(other.artists, artists) || + const DeepCollectionEquality().equals(other.artists, artists))); } @override @@ -44838,17 +46864,29 @@ extension $SongInfoExtension on SongInfo { }) { return SongInfo( name: (name != null ? name.value : this.name), - originalTitle: (originalTitle != null ? originalTitle.value : this.originalTitle), + originalTitle: (originalTitle != null + ? originalTitle.value + : this.originalTitle), path: (path != null ? path.value : this.path), - metadataLanguage: (metadataLanguage != null ? metadataLanguage.value : this.metadataLanguage), - metadataCountryCode: (metadataCountryCode != null ? metadataCountryCode.value : this.metadataCountryCode), + metadataLanguage: (metadataLanguage != null + ? metadataLanguage.value + : this.metadataLanguage), + metadataCountryCode: (metadataCountryCode != null + ? metadataCountryCode.value + : this.metadataCountryCode), providerIds: (providerIds != null ? providerIds.value : this.providerIds), year: (year != null ? year.value : this.year), indexNumber: (indexNumber != null ? indexNumber.value : this.indexNumber), - parentIndexNumber: (parentIndexNumber != null ? parentIndexNumber.value : this.parentIndexNumber), - premiereDate: (premiereDate != null ? premiereDate.value : this.premiereDate), + parentIndexNumber: (parentIndexNumber != null + ? parentIndexNumber.value + : this.parentIndexNumber), + premiereDate: (premiereDate != null + ? premiereDate.value + : this.premiereDate), isAutomated: (isAutomated != null ? isAutomated.value : this.isAutomated), - albumArtists: (albumArtists != null ? albumArtists.value : this.albumArtists), + albumArtists: (albumArtists != null + ? albumArtists.value + : this.albumArtists), album: (album != null ? album.value : this.album), artists: (artists != null ? artists.value : this.artists), ); @@ -44859,7 +46897,8 @@ extension $SongInfoExtension on SongInfo { class SpecialViewOptionDto { const SpecialViewOptionDto({this.name, this.id}); - factory SpecialViewOptionDto.fromJson(Map json) => _$SpecialViewOptionDtoFromJson(json); + factory SpecialViewOptionDto.fromJson(Map json) => + _$SpecialViewOptionDtoFromJson(json); static const toJsonFactory = _$SpecialViewOptionDtoToJson; Map toJson() => _$SpecialViewOptionDtoToJson(this); @@ -44874,8 +46913,10 @@ class SpecialViewOptionDto { bool operator ==(Object other) { return identical(this, other) || (other is SpecialViewOptionDto && - (identical(other.name, name) || const DeepCollectionEquality().equals(other.name, name)) && - (identical(other.id, id) || const DeepCollectionEquality().equals(other.id, id))); + (identical(other.name, name) || + const DeepCollectionEquality().equals(other.name, name)) && + (identical(other.id, id) || + const DeepCollectionEquality().equals(other.id, id))); } @override @@ -44883,7 +46924,9 @@ class SpecialViewOptionDto { @override int get hashCode => - const DeepCollectionEquality().hash(name) ^ const DeepCollectionEquality().hash(id) ^ runtimeType.hashCode; + const DeepCollectionEquality().hash(name) ^ + const DeepCollectionEquality().hash(id) ^ + runtimeType.hashCode; } extension $SpecialViewOptionDtoExtension on SpecialViewOptionDto { @@ -44911,7 +46954,8 @@ class StartupConfigurationDto { this.preferredMetadataLanguage, }); - factory StartupConfigurationDto.fromJson(Map json) => _$StartupConfigurationDtoFromJson(json); + factory StartupConfigurationDto.fromJson(Map json) => + _$StartupConfigurationDtoFromJson(json); static const toJsonFactory = _$StartupConfigurationDtoToJson; Map toJson() => _$StartupConfigurationDtoToJson(this); @@ -44978,7 +47022,8 @@ extension $StartupConfigurationDtoExtension on StartupConfigurationDto { serverName: serverName ?? this.serverName, uICulture: uICulture ?? this.uICulture, metadataCountryCode: metadataCountryCode ?? this.metadataCountryCode, - preferredMetadataLanguage: preferredMetadataLanguage ?? this.preferredMetadataLanguage, + preferredMetadataLanguage: + preferredMetadataLanguage ?? this.preferredMetadataLanguage, ); } @@ -44991,9 +47036,12 @@ extension $StartupConfigurationDtoExtension on StartupConfigurationDto { return StartupConfigurationDto( serverName: (serverName != null ? serverName.value : this.serverName), uICulture: (uICulture != null ? uICulture.value : this.uICulture), - metadataCountryCode: (metadataCountryCode != null ? metadataCountryCode.value : this.metadataCountryCode), - preferredMetadataLanguage: - (preferredMetadataLanguage != null ? preferredMetadataLanguage.value : this.preferredMetadataLanguage), + metadataCountryCode: (metadataCountryCode != null + ? metadataCountryCode.value + : this.metadataCountryCode), + preferredMetadataLanguage: (preferredMetadataLanguage != null + ? preferredMetadataLanguage.value + : this.preferredMetadataLanguage), ); } } @@ -45005,7 +47053,8 @@ class StartupRemoteAccessDto { required this.enableAutomaticPortMapping, }); - factory StartupRemoteAccessDto.fromJson(Map json) => _$StartupRemoteAccessDtoFromJson(json); + factory StartupRemoteAccessDto.fromJson(Map json) => + _$StartupRemoteAccessDtoFromJson(json); static const toJsonFactory = _$StartupRemoteAccessDtoToJson; Map toJson() => _$StartupRemoteAccessDtoToJson(this); @@ -45053,7 +47102,8 @@ extension $StartupRemoteAccessDtoExtension on StartupRemoteAccessDto { }) { return StartupRemoteAccessDto( enableRemoteAccess: enableRemoteAccess ?? this.enableRemoteAccess, - enableAutomaticPortMapping: enableAutomaticPortMapping ?? this.enableAutomaticPortMapping, + enableAutomaticPortMapping: + enableAutomaticPortMapping ?? this.enableAutomaticPortMapping, ); } @@ -45062,9 +47112,12 @@ extension $StartupRemoteAccessDtoExtension on StartupRemoteAccessDto { Wrapped? enableAutomaticPortMapping, }) { return StartupRemoteAccessDto( - enableRemoteAccess: (enableRemoteAccess != null ? enableRemoteAccess.value : this.enableRemoteAccess), - enableAutomaticPortMapping: - (enableAutomaticPortMapping != null ? enableAutomaticPortMapping.value : this.enableAutomaticPortMapping), + enableRemoteAccess: (enableRemoteAccess != null + ? enableRemoteAccess.value + : this.enableRemoteAccess), + enableAutomaticPortMapping: (enableAutomaticPortMapping != null + ? enableAutomaticPortMapping.value + : this.enableAutomaticPortMapping), ); } } @@ -45073,7 +47126,8 @@ extension $StartupRemoteAccessDtoExtension on StartupRemoteAccessDto { class StartupUserDto { const StartupUserDto({this.name, this.password}); - factory StartupUserDto.fromJson(Map json) => _$StartupUserDtoFromJson(json); + factory StartupUserDto.fromJson(Map json) => + _$StartupUserDtoFromJson(json); static const toJsonFactory = _$StartupUserDtoToJson; Map toJson() => _$StartupUserDtoToJson(this); @@ -45088,7 +47142,8 @@ class StartupUserDto { bool operator ==(Object other) { return identical(this, other) || (other is StartupUserDto && - (identical(other.name, name) || const DeepCollectionEquality().equals(other.name, name)) && + (identical(other.name, name) || + const DeepCollectionEquality().equals(other.name, name)) && (identical(other.password, password) || const DeepCollectionEquality().equals( other.password, @@ -45101,7 +47156,9 @@ class StartupUserDto { @override int get hashCode => - const DeepCollectionEquality().hash(name) ^ const DeepCollectionEquality().hash(password) ^ runtimeType.hashCode; + const DeepCollectionEquality().hash(name) ^ + const DeepCollectionEquality().hash(password) ^ + runtimeType.hashCode; } extension $StartupUserDtoExtension on StartupUserDto { @@ -45137,7 +47194,8 @@ class SubtitleOptions { this.requirePerfectMatch, }); - factory SubtitleOptions.fromJson(Map json) => _$SubtitleOptionsFromJson(json); + factory SubtitleOptions.fromJson(Map json) => + _$SubtitleOptionsFromJson(json); static const toJsonFactory = _$SubtitleOptionsToJson; Map toJson() => _$SubtitleOptionsToJson(this); @@ -45262,14 +47320,21 @@ extension $SubtitleOptionsExtension on SubtitleOptions { bool? requirePerfectMatch, }) { return SubtitleOptions( - skipIfEmbeddedSubtitlesPresent: skipIfEmbeddedSubtitlesPresent ?? this.skipIfEmbeddedSubtitlesPresent, - skipIfAudioTrackMatches: skipIfAudioTrackMatches ?? this.skipIfAudioTrackMatches, + skipIfEmbeddedSubtitlesPresent: + skipIfEmbeddedSubtitlesPresent ?? this.skipIfEmbeddedSubtitlesPresent, + skipIfAudioTrackMatches: + skipIfAudioTrackMatches ?? this.skipIfAudioTrackMatches, downloadLanguages: downloadLanguages ?? this.downloadLanguages, - downloadMovieSubtitles: downloadMovieSubtitles ?? this.downloadMovieSubtitles, - downloadEpisodeSubtitles: downloadEpisodeSubtitles ?? this.downloadEpisodeSubtitles, - openSubtitlesUsername: openSubtitlesUsername ?? this.openSubtitlesUsername, - openSubtitlesPasswordHash: openSubtitlesPasswordHash ?? this.openSubtitlesPasswordHash, - isOpenSubtitleVipAccount: isOpenSubtitleVipAccount ?? this.isOpenSubtitleVipAccount, + downloadMovieSubtitles: + downloadMovieSubtitles ?? this.downloadMovieSubtitles, + downloadEpisodeSubtitles: + downloadEpisodeSubtitles ?? this.downloadEpisodeSubtitles, + openSubtitlesUsername: + openSubtitlesUsername ?? this.openSubtitlesUsername, + openSubtitlesPasswordHash: + openSubtitlesPasswordHash ?? this.openSubtitlesPasswordHash, + isOpenSubtitleVipAccount: + isOpenSubtitleVipAccount ?? this.isOpenSubtitleVipAccount, requirePerfectMatch: requirePerfectMatch ?? this.requirePerfectMatch, ); } @@ -45289,19 +47354,30 @@ extension $SubtitleOptionsExtension on SubtitleOptions { skipIfEmbeddedSubtitlesPresent: (skipIfEmbeddedSubtitlesPresent != null ? skipIfEmbeddedSubtitlesPresent.value : this.skipIfEmbeddedSubtitlesPresent), - skipIfAudioTrackMatches: - (skipIfAudioTrackMatches != null ? skipIfAudioTrackMatches.value : this.skipIfAudioTrackMatches), - downloadLanguages: (downloadLanguages != null ? downloadLanguages.value : this.downloadLanguages), - downloadMovieSubtitles: - (downloadMovieSubtitles != null ? downloadMovieSubtitles.value : this.downloadMovieSubtitles), - downloadEpisodeSubtitles: - (downloadEpisodeSubtitles != null ? downloadEpisodeSubtitles.value : this.downloadEpisodeSubtitles), - openSubtitlesUsername: (openSubtitlesUsername != null ? openSubtitlesUsername.value : this.openSubtitlesUsername), - openSubtitlesPasswordHash: - (openSubtitlesPasswordHash != null ? openSubtitlesPasswordHash.value : this.openSubtitlesPasswordHash), - isOpenSubtitleVipAccount: - (isOpenSubtitleVipAccount != null ? isOpenSubtitleVipAccount.value : this.isOpenSubtitleVipAccount), - requirePerfectMatch: (requirePerfectMatch != null ? requirePerfectMatch.value : this.requirePerfectMatch), + skipIfAudioTrackMatches: (skipIfAudioTrackMatches != null + ? skipIfAudioTrackMatches.value + : this.skipIfAudioTrackMatches), + downloadLanguages: (downloadLanguages != null + ? downloadLanguages.value + : this.downloadLanguages), + downloadMovieSubtitles: (downloadMovieSubtitles != null + ? downloadMovieSubtitles.value + : this.downloadMovieSubtitles), + downloadEpisodeSubtitles: (downloadEpisodeSubtitles != null + ? downloadEpisodeSubtitles.value + : this.downloadEpisodeSubtitles), + openSubtitlesUsername: (openSubtitlesUsername != null + ? openSubtitlesUsername.value + : this.openSubtitlesUsername), + openSubtitlesPasswordHash: (openSubtitlesPasswordHash != null + ? openSubtitlesPasswordHash.value + : this.openSubtitlesPasswordHash), + isOpenSubtitleVipAccount: (isOpenSubtitleVipAccount != null + ? isOpenSubtitleVipAccount.value + : this.isOpenSubtitleVipAccount), + requirePerfectMatch: (requirePerfectMatch != null + ? requirePerfectMatch.value + : this.requirePerfectMatch), ); } } @@ -45316,7 +47392,8 @@ class SubtitleProfile { this.container, }); - factory SubtitleProfile.fromJson(Map json) => _$SubtitleProfileFromJson(json); + factory SubtitleProfile.fromJson(Map json) => + _$SubtitleProfileFromJson(json); static const toJsonFactory = _$SubtitleProfileToJson; Map toJson() => _$SubtitleProfileToJson(this); @@ -45342,8 +47419,10 @@ class SubtitleProfile { bool operator ==(Object other) { return identical(this, other) || (other is SubtitleProfile && - (identical(other.format, format) || const DeepCollectionEquality().equals(other.format, format)) && - (identical(other.method, method) || const DeepCollectionEquality().equals(other.method, method)) && + (identical(other.format, format) || + const DeepCollectionEquality().equals(other.format, format)) && + (identical(other.method, method) || + const DeepCollectionEquality().equals(other.method, method)) && (identical(other.didlMode, didlMode) || const DeepCollectionEquality().equals( other.didlMode, @@ -45412,7 +47491,8 @@ extension $SubtitleProfileExtension on SubtitleProfile { class SyncPlayCommandMessage { const SyncPlayCommandMessage({this.data, this.messageId, this.messageType}); - factory SyncPlayCommandMessage.fromJson(Map json) => _$SyncPlayCommandMessageFromJson(json); + factory SyncPlayCommandMessage.fromJson(Map json) => + _$SyncPlayCommandMessageFromJson(json); static const toJsonFactory = _$SyncPlayCommandMessageToJson; Map toJson() => _$SyncPlayCommandMessageToJson(this); @@ -45428,7 +47508,8 @@ class SyncPlayCommandMessage { fromJson: sessionMessageTypeMessageTypeNullableFromJson, ) final enums.SessionMessageType? messageType; - static enums.SessionMessageType? sessionMessageTypeMessageTypeNullableFromJson(Object? value) => + static enums.SessionMessageType? + sessionMessageTypeMessageTypeNullableFromJson(Object? value) => sessionMessageTypeNullableFromJson( value, enums.SessionMessageType.syncplaycommand, @@ -45440,7 +47521,8 @@ class SyncPlayCommandMessage { bool operator ==(Object other) { return identical(this, other) || (other is SyncPlayCommandMessage && - (identical(other.data, data) || const DeepCollectionEquality().equals(other.data, data)) && + (identical(other.data, data) || + const DeepCollectionEquality().equals(other.data, data)) && (identical(other.messageId, messageId) || const DeepCollectionEquality().equals( other.messageId, @@ -45498,7 +47580,8 @@ class SyncPlayGroupDoesNotExistUpdate { _$SyncPlayGroupDoesNotExistUpdateFromJson(json); static const toJsonFactory = _$SyncPlayGroupDoesNotExistUpdateToJson; - Map toJson() => _$SyncPlayGroupDoesNotExistUpdateToJson(this); + Map toJson() => + _$SyncPlayGroupDoesNotExistUpdateToJson(this); @JsonKey(name: 'GroupId', includeIfNull: false) final String? groupId; @@ -45513,11 +47596,10 @@ class SyncPlayGroupDoesNotExistUpdate { final enums.GroupUpdateType? type; static enums.GroupUpdateType? groupUpdateTypeTypeNullableFromJson( Object? value, - ) => - groupUpdateTypeNullableFromJson( - value, - enums.GroupUpdateType.groupdoesnotexist, - ); + ) => groupUpdateTypeNullableFromJson( + value, + enums.GroupUpdateType.groupdoesnotexist, + ); static const fromJsonFactory = _$SyncPlayGroupDoesNotExistUpdateFromJson; @@ -45530,8 +47612,10 @@ class SyncPlayGroupDoesNotExistUpdate { other.groupId, groupId, )) && - (identical(other.data, data) || const DeepCollectionEquality().equals(other.data, data)) && - (identical(other.type, type) || const DeepCollectionEquality().equals(other.type, type))); + (identical(other.data, data) || + const DeepCollectionEquality().equals(other.data, data)) && + (identical(other.type, type) || + const DeepCollectionEquality().equals(other.type, type))); } @override @@ -45545,7 +47629,8 @@ class SyncPlayGroupDoesNotExistUpdate { runtimeType.hashCode; } -extension $SyncPlayGroupDoesNotExistUpdateExtension on SyncPlayGroupDoesNotExistUpdate { +extension $SyncPlayGroupDoesNotExistUpdateExtension + on SyncPlayGroupDoesNotExistUpdate { SyncPlayGroupDoesNotExistUpdate copyWith({ String? groupId, String? data, @@ -45575,7 +47660,8 @@ extension $SyncPlayGroupDoesNotExistUpdateExtension on SyncPlayGroupDoesNotExist class SyncPlayGroupJoinedUpdate { const SyncPlayGroupJoinedUpdate({this.groupId, this.data, this.type}); - factory SyncPlayGroupJoinedUpdate.fromJson(Map json) => _$SyncPlayGroupJoinedUpdateFromJson(json); + factory SyncPlayGroupJoinedUpdate.fromJson(Map json) => + _$SyncPlayGroupJoinedUpdateFromJson(json); static const toJsonFactory = _$SyncPlayGroupJoinedUpdateToJson; Map toJson() => _$SyncPlayGroupJoinedUpdateToJson(this); @@ -45607,8 +47693,10 @@ class SyncPlayGroupJoinedUpdate { other.groupId, groupId, )) && - (identical(other.data, data) || const DeepCollectionEquality().equals(other.data, data)) && - (identical(other.type, type) || const DeepCollectionEquality().equals(other.type, type))); + (identical(other.data, data) || + const DeepCollectionEquality().equals(other.data, data)) && + (identical(other.type, type) || + const DeepCollectionEquality().equals(other.type, type))); } @override @@ -45652,7 +47740,8 @@ extension $SyncPlayGroupJoinedUpdateExtension on SyncPlayGroupJoinedUpdate { class SyncPlayGroupLeftUpdate { const SyncPlayGroupLeftUpdate({this.groupId, this.data, this.type}); - factory SyncPlayGroupLeftUpdate.fromJson(Map json) => _$SyncPlayGroupLeftUpdateFromJson(json); + factory SyncPlayGroupLeftUpdate.fromJson(Map json) => + _$SyncPlayGroupLeftUpdateFromJson(json); static const toJsonFactory = _$SyncPlayGroupLeftUpdateToJson; Map toJson() => _$SyncPlayGroupLeftUpdateToJson(this); @@ -45670,8 +47759,7 @@ class SyncPlayGroupLeftUpdate { final enums.GroupUpdateType? type; static enums.GroupUpdateType? groupUpdateTypeTypeNullableFromJson( Object? value, - ) => - groupUpdateTypeNullableFromJson(value, enums.GroupUpdateType.groupleft); + ) => groupUpdateTypeNullableFromJson(value, enums.GroupUpdateType.groupleft); static const fromJsonFactory = _$SyncPlayGroupLeftUpdateFromJson; @@ -45684,8 +47772,10 @@ class SyncPlayGroupLeftUpdate { other.groupId, groupId, )) && - (identical(other.data, data) || const DeepCollectionEquality().equals(other.data, data)) && - (identical(other.type, type) || const DeepCollectionEquality().equals(other.type, type))); + (identical(other.data, data) || + const DeepCollectionEquality().equals(other.data, data)) && + (identical(other.type, type) || + const DeepCollectionEquality().equals(other.type, type))); } @override @@ -45733,7 +47823,8 @@ class SyncPlayGroupUpdateMessage { this.messageType, }); - factory SyncPlayGroupUpdateMessage.fromJson(Map json) => _$SyncPlayGroupUpdateMessageFromJson(json); + factory SyncPlayGroupUpdateMessage.fromJson(Map json) => + _$SyncPlayGroupUpdateMessageFromJson(json); static const toJsonFactory = _$SyncPlayGroupUpdateMessageToJson; Map toJson() => _$SyncPlayGroupUpdateMessageToJson(this); @@ -45749,7 +47840,8 @@ class SyncPlayGroupUpdateMessage { fromJson: sessionMessageTypeMessageTypeNullableFromJson, ) final enums.SessionMessageType? messageType; - static enums.SessionMessageType? sessionMessageTypeMessageTypeNullableFromJson(Object? value) => + static enums.SessionMessageType? + sessionMessageTypeMessageTypeNullableFromJson(Object? value) => sessionMessageTypeNullableFromJson( value, enums.SessionMessageType.syncplaygroupupdate, @@ -45761,7 +47853,8 @@ class SyncPlayGroupUpdateMessage { bool operator ==(Object other) { return identical(this, other) || (other is SyncPlayGroupUpdateMessage && - (identical(other.data, data) || const DeepCollectionEquality().equals(other.data, data)) && + (identical(other.data, data) || + const DeepCollectionEquality().equals(other.data, data)) && (identical(other.messageId, messageId) || const DeepCollectionEquality().equals( other.messageId, @@ -45817,11 +47910,11 @@ class SyncPlayLibraryAccessDeniedUpdate { factory SyncPlayLibraryAccessDeniedUpdate.fromJson( Map json, - ) => - _$SyncPlayLibraryAccessDeniedUpdateFromJson(json); + ) => _$SyncPlayLibraryAccessDeniedUpdateFromJson(json); static const toJsonFactory = _$SyncPlayLibraryAccessDeniedUpdateToJson; - Map toJson() => _$SyncPlayLibraryAccessDeniedUpdateToJson(this); + Map toJson() => + _$SyncPlayLibraryAccessDeniedUpdateToJson(this); @JsonKey(name: 'GroupId', includeIfNull: false) final String? groupId; @@ -45836,11 +47929,10 @@ class SyncPlayLibraryAccessDeniedUpdate { final enums.GroupUpdateType? type; static enums.GroupUpdateType? groupUpdateTypeTypeNullableFromJson( Object? value, - ) => - groupUpdateTypeNullableFromJson( - value, - enums.GroupUpdateType.libraryaccessdenied, - ); + ) => groupUpdateTypeNullableFromJson( + value, + enums.GroupUpdateType.libraryaccessdenied, + ); static const fromJsonFactory = _$SyncPlayLibraryAccessDeniedUpdateFromJson; @@ -45853,8 +47945,10 @@ class SyncPlayLibraryAccessDeniedUpdate { other.groupId, groupId, )) && - (identical(other.data, data) || const DeepCollectionEquality().equals(other.data, data)) && - (identical(other.type, type) || const DeepCollectionEquality().equals(other.type, type))); + (identical(other.data, data) || + const DeepCollectionEquality().equals(other.data, data)) && + (identical(other.type, type) || + const DeepCollectionEquality().equals(other.type, type))); } @override @@ -45868,7 +47962,8 @@ class SyncPlayLibraryAccessDeniedUpdate { runtimeType.hashCode; } -extension $SyncPlayLibraryAccessDeniedUpdateExtension on SyncPlayLibraryAccessDeniedUpdate { +extension $SyncPlayLibraryAccessDeniedUpdateExtension + on SyncPlayLibraryAccessDeniedUpdate { SyncPlayLibraryAccessDeniedUpdate copyWith({ String? groupId, String? data, @@ -45898,7 +47993,8 @@ extension $SyncPlayLibraryAccessDeniedUpdateExtension on SyncPlayLibraryAccessDe class SyncPlayNotInGroupUpdate { const SyncPlayNotInGroupUpdate({this.groupId, this.data, this.type}); - factory SyncPlayNotInGroupUpdate.fromJson(Map json) => _$SyncPlayNotInGroupUpdateFromJson(json); + factory SyncPlayNotInGroupUpdate.fromJson(Map json) => + _$SyncPlayNotInGroupUpdateFromJson(json); static const toJsonFactory = _$SyncPlayNotInGroupUpdateToJson; Map toJson() => _$SyncPlayNotInGroupUpdateToJson(this); @@ -45916,8 +48012,7 @@ class SyncPlayNotInGroupUpdate { final enums.GroupUpdateType? type; static enums.GroupUpdateType? groupUpdateTypeTypeNullableFromJson( Object? value, - ) => - groupUpdateTypeNullableFromJson(value, enums.GroupUpdateType.notingroup); + ) => groupUpdateTypeNullableFromJson(value, enums.GroupUpdateType.notingroup); static const fromJsonFactory = _$SyncPlayNotInGroupUpdateFromJson; @@ -45930,8 +48025,10 @@ class SyncPlayNotInGroupUpdate { other.groupId, groupId, )) && - (identical(other.data, data) || const DeepCollectionEquality().equals(other.data, data)) && - (identical(other.type, type) || const DeepCollectionEquality().equals(other.type, type))); + (identical(other.data, data) || + const DeepCollectionEquality().equals(other.data, data)) && + (identical(other.type, type) || + const DeepCollectionEquality().equals(other.type, type))); } @override @@ -45975,7 +48072,8 @@ extension $SyncPlayNotInGroupUpdateExtension on SyncPlayNotInGroupUpdate { class SyncPlayPlayQueueUpdate { const SyncPlayPlayQueueUpdate({this.groupId, this.data, this.type}); - factory SyncPlayPlayQueueUpdate.fromJson(Map json) => _$SyncPlayPlayQueueUpdateFromJson(json); + factory SyncPlayPlayQueueUpdate.fromJson(Map json) => + _$SyncPlayPlayQueueUpdateFromJson(json); static const toJsonFactory = _$SyncPlayPlayQueueUpdateToJson; Map toJson() => _$SyncPlayPlayQueueUpdateToJson(this); @@ -45993,8 +48091,7 @@ class SyncPlayPlayQueueUpdate { final enums.GroupUpdateType? type; static enums.GroupUpdateType? groupUpdateTypeTypeNullableFromJson( Object? value, - ) => - groupUpdateTypeNullableFromJson(value, enums.GroupUpdateType.playqueue); + ) => groupUpdateTypeNullableFromJson(value, enums.GroupUpdateType.playqueue); static const fromJsonFactory = _$SyncPlayPlayQueueUpdateFromJson; @@ -46007,8 +48104,10 @@ class SyncPlayPlayQueueUpdate { other.groupId, groupId, )) && - (identical(other.data, data) || const DeepCollectionEquality().equals(other.data, data)) && - (identical(other.type, type) || const DeepCollectionEquality().equals(other.type, type))); + (identical(other.data, data) || + const DeepCollectionEquality().equals(other.data, data)) && + (identical(other.type, type) || + const DeepCollectionEquality().equals(other.type, type))); } @override @@ -46052,7 +48151,8 @@ extension $SyncPlayPlayQueueUpdateExtension on SyncPlayPlayQueueUpdate { class SyncPlayQueueItem { const SyncPlayQueueItem({this.itemId, this.playlistItemId}); - factory SyncPlayQueueItem.fromJson(Map json) => _$SyncPlayQueueItemFromJson(json); + factory SyncPlayQueueItem.fromJson(Map json) => + _$SyncPlayQueueItemFromJson(json); static const toJsonFactory = _$SyncPlayQueueItemToJson; Map toJson() => _$SyncPlayQueueItemToJson(this); @@ -46067,7 +48167,8 @@ class SyncPlayQueueItem { bool operator ==(Object other) { return identical(this, other) || (other is SyncPlayQueueItem && - (identical(other.itemId, itemId) || const DeepCollectionEquality().equals(other.itemId, itemId)) && + (identical(other.itemId, itemId) || + const DeepCollectionEquality().equals(other.itemId, itemId)) && (identical(other.playlistItemId, playlistItemId) || const DeepCollectionEquality().equals( other.playlistItemId, @@ -46099,7 +48200,9 @@ extension $SyncPlayQueueItemExtension on SyncPlayQueueItem { }) { return SyncPlayQueueItem( itemId: (itemId != null ? itemId.value : this.itemId), - playlistItemId: (playlistItemId != null ? playlistItemId.value : this.playlistItemId), + playlistItemId: (playlistItemId != null + ? playlistItemId.value + : this.playlistItemId), ); } } @@ -46108,7 +48211,8 @@ extension $SyncPlayQueueItemExtension on SyncPlayQueueItem { class SyncPlayStateUpdate { const SyncPlayStateUpdate({this.groupId, this.data, this.type}); - factory SyncPlayStateUpdate.fromJson(Map json) => _$SyncPlayStateUpdateFromJson(json); + factory SyncPlayStateUpdate.fromJson(Map json) => + _$SyncPlayStateUpdateFromJson(json); static const toJsonFactory = _$SyncPlayStateUpdateToJson; Map toJson() => _$SyncPlayStateUpdateToJson(this); @@ -46140,8 +48244,10 @@ class SyncPlayStateUpdate { other.groupId, groupId, )) && - (identical(other.data, data) || const DeepCollectionEquality().equals(other.data, data)) && - (identical(other.type, type) || const DeepCollectionEquality().equals(other.type, type))); + (identical(other.data, data) || + const DeepCollectionEquality().equals(other.data, data)) && + (identical(other.type, type) || + const DeepCollectionEquality().equals(other.type, type))); } @override @@ -46185,7 +48291,8 @@ extension $SyncPlayStateUpdateExtension on SyncPlayStateUpdate { class SyncPlayUserJoinedUpdate { const SyncPlayUserJoinedUpdate({this.groupId, this.data, this.type}); - factory SyncPlayUserJoinedUpdate.fromJson(Map json) => _$SyncPlayUserJoinedUpdateFromJson(json); + factory SyncPlayUserJoinedUpdate.fromJson(Map json) => + _$SyncPlayUserJoinedUpdateFromJson(json); static const toJsonFactory = _$SyncPlayUserJoinedUpdateToJson; Map toJson() => _$SyncPlayUserJoinedUpdateToJson(this); @@ -46203,8 +48310,7 @@ class SyncPlayUserJoinedUpdate { final enums.GroupUpdateType? type; static enums.GroupUpdateType? groupUpdateTypeTypeNullableFromJson( Object? value, - ) => - groupUpdateTypeNullableFromJson(value, enums.GroupUpdateType.userjoined); + ) => groupUpdateTypeNullableFromJson(value, enums.GroupUpdateType.userjoined); static const fromJsonFactory = _$SyncPlayUserJoinedUpdateFromJson; @@ -46217,8 +48323,10 @@ class SyncPlayUserJoinedUpdate { other.groupId, groupId, )) && - (identical(other.data, data) || const DeepCollectionEquality().equals(other.data, data)) && - (identical(other.type, type) || const DeepCollectionEquality().equals(other.type, type))); + (identical(other.data, data) || + const DeepCollectionEquality().equals(other.data, data)) && + (identical(other.type, type) || + const DeepCollectionEquality().equals(other.type, type))); } @override @@ -46262,7 +48370,8 @@ extension $SyncPlayUserJoinedUpdateExtension on SyncPlayUserJoinedUpdate { class SyncPlayUserLeftUpdate { const SyncPlayUserLeftUpdate({this.groupId, this.data, this.type}); - factory SyncPlayUserLeftUpdate.fromJson(Map json) => _$SyncPlayUserLeftUpdateFromJson(json); + factory SyncPlayUserLeftUpdate.fromJson(Map json) => + _$SyncPlayUserLeftUpdateFromJson(json); static const toJsonFactory = _$SyncPlayUserLeftUpdateToJson; Map toJson() => _$SyncPlayUserLeftUpdateToJson(this); @@ -46280,8 +48389,7 @@ class SyncPlayUserLeftUpdate { final enums.GroupUpdateType? type; static enums.GroupUpdateType? groupUpdateTypeTypeNullableFromJson( Object? value, - ) => - groupUpdateTypeNullableFromJson(value, enums.GroupUpdateType.userleft); + ) => groupUpdateTypeNullableFromJson(value, enums.GroupUpdateType.userleft); static const fromJsonFactory = _$SyncPlayUserLeftUpdateFromJson; @@ -46294,8 +48402,10 @@ class SyncPlayUserLeftUpdate { other.groupId, groupId, )) && - (identical(other.data, data) || const DeepCollectionEquality().equals(other.data, data)) && - (identical(other.type, type) || const DeepCollectionEquality().equals(other.type, type))); + (identical(other.data, data) || + const DeepCollectionEquality().equals(other.data, data)) && + (identical(other.type, type) || + const DeepCollectionEquality().equals(other.type, type))); } @override @@ -46367,7 +48477,8 @@ class SystemInfo { this.systemArchitecture, }); - factory SystemInfo.fromJson(Map json) => _$SystemInfoFromJson(json); + factory SystemInfo.fromJson(Map json) => + _$SystemInfoFromJson(json); static const toJsonFactory = _$SystemInfoToJson; Map toJson() => _$SystemInfoToJson(this); @@ -46487,7 +48598,8 @@ class SystemInfo { other.operatingSystem, operatingSystem, )) && - (identical(other.id, id) || const DeepCollectionEquality().equals(other.id, id)) && + (identical(other.id, id) || + const DeepCollectionEquality().equals(other.id, id)) && (identical(other.startupWizardCompleted, startupWizardCompleted) || const DeepCollectionEquality().equals( other.startupWizardCompleted, @@ -46673,14 +48785,18 @@ extension $SystemInfoExtension on SystemInfo { productName: productName ?? this.productName, operatingSystem: operatingSystem ?? this.operatingSystem, id: id ?? this.id, - startupWizardCompleted: startupWizardCompleted ?? this.startupWizardCompleted, - operatingSystemDisplayName: operatingSystemDisplayName ?? this.operatingSystemDisplayName, + startupWizardCompleted: + startupWizardCompleted ?? this.startupWizardCompleted, + operatingSystemDisplayName: + operatingSystemDisplayName ?? this.operatingSystemDisplayName, packageName: packageName ?? this.packageName, hasPendingRestart: hasPendingRestart ?? this.hasPendingRestart, isShuttingDown: isShuttingDown ?? this.isShuttingDown, - supportsLibraryMonitor: supportsLibraryMonitor ?? this.supportsLibraryMonitor, + supportsLibraryMonitor: + supportsLibraryMonitor ?? this.supportsLibraryMonitor, webSocketPortNumber: webSocketPortNumber ?? this.webSocketPortNumber, - completedInstallations: completedInstallations ?? this.completedInstallations, + completedInstallations: + completedInstallations ?? this.completedInstallations, canSelfRestart: canSelfRestart ?? this.canSelfRestart, canLaunchWebBrowser: canLaunchWebBrowser ?? this.canLaunchWebBrowser, programDataPath: programDataPath ?? this.programDataPath, @@ -46690,7 +48806,8 @@ extension $SystemInfoExtension on SystemInfo { logPath: logPath ?? this.logPath, internalMetadataPath: internalMetadataPath ?? this.internalMetadataPath, transcodingTempPath: transcodingTempPath ?? this.transcodingTempPath, - castReceiverApplications: castReceiverApplications ?? this.castReceiverApplications, + castReceiverApplications: + castReceiverApplications ?? this.castReceiverApplications, hasUpdateAvailable: hasUpdateAvailable ?? this.hasUpdateAvailable, encoderLocation: encoderLocation ?? this.encoderLocation, systemArchitecture: systemArchitecture ?? this.systemArchitecture, @@ -46727,38 +48844,71 @@ extension $SystemInfoExtension on SystemInfo { Wrapped? systemArchitecture, }) { return SystemInfo( - localAddress: (localAddress != null ? localAddress.value : this.localAddress), + localAddress: (localAddress != null + ? localAddress.value + : this.localAddress), serverName: (serverName != null ? serverName.value : this.serverName), version: (version != null ? version.value : this.version), productName: (productName != null ? productName.value : this.productName), - operatingSystem: (operatingSystem != null ? operatingSystem.value : this.operatingSystem), + operatingSystem: (operatingSystem != null + ? operatingSystem.value + : this.operatingSystem), id: (id != null ? id.value : this.id), - startupWizardCompleted: - (startupWizardCompleted != null ? startupWizardCompleted.value : this.startupWizardCompleted), - operatingSystemDisplayName: - (operatingSystemDisplayName != null ? operatingSystemDisplayName.value : this.operatingSystemDisplayName), + startupWizardCompleted: (startupWizardCompleted != null + ? startupWizardCompleted.value + : this.startupWizardCompleted), + operatingSystemDisplayName: (operatingSystemDisplayName != null + ? operatingSystemDisplayName.value + : this.operatingSystemDisplayName), packageName: (packageName != null ? packageName.value : this.packageName), - hasPendingRestart: (hasPendingRestart != null ? hasPendingRestart.value : this.hasPendingRestart), - isShuttingDown: (isShuttingDown != null ? isShuttingDown.value : this.isShuttingDown), - supportsLibraryMonitor: - (supportsLibraryMonitor != null ? supportsLibraryMonitor.value : this.supportsLibraryMonitor), - webSocketPortNumber: (webSocketPortNumber != null ? webSocketPortNumber.value : this.webSocketPortNumber), - completedInstallations: - (completedInstallations != null ? completedInstallations.value : this.completedInstallations), - canSelfRestart: (canSelfRestart != null ? canSelfRestart.value : this.canSelfRestart), - canLaunchWebBrowser: (canLaunchWebBrowser != null ? canLaunchWebBrowser.value : this.canLaunchWebBrowser), - programDataPath: (programDataPath != null ? programDataPath.value : this.programDataPath), + hasPendingRestart: (hasPendingRestart != null + ? hasPendingRestart.value + : this.hasPendingRestart), + isShuttingDown: (isShuttingDown != null + ? isShuttingDown.value + : this.isShuttingDown), + supportsLibraryMonitor: (supportsLibraryMonitor != null + ? supportsLibraryMonitor.value + : this.supportsLibraryMonitor), + webSocketPortNumber: (webSocketPortNumber != null + ? webSocketPortNumber.value + : this.webSocketPortNumber), + completedInstallations: (completedInstallations != null + ? completedInstallations.value + : this.completedInstallations), + canSelfRestart: (canSelfRestart != null + ? canSelfRestart.value + : this.canSelfRestart), + canLaunchWebBrowser: (canLaunchWebBrowser != null + ? canLaunchWebBrowser.value + : this.canLaunchWebBrowser), + programDataPath: (programDataPath != null + ? programDataPath.value + : this.programDataPath), webPath: (webPath != null ? webPath.value : this.webPath), - itemsByNamePath: (itemsByNamePath != null ? itemsByNamePath.value : this.itemsByNamePath), + itemsByNamePath: (itemsByNamePath != null + ? itemsByNamePath.value + : this.itemsByNamePath), cachePath: (cachePath != null ? cachePath.value : this.cachePath), logPath: (logPath != null ? logPath.value : this.logPath), - internalMetadataPath: (internalMetadataPath != null ? internalMetadataPath.value : this.internalMetadataPath), - transcodingTempPath: (transcodingTempPath != null ? transcodingTempPath.value : this.transcodingTempPath), - castReceiverApplications: - (castReceiverApplications != null ? castReceiverApplications.value : this.castReceiverApplications), - hasUpdateAvailable: (hasUpdateAvailable != null ? hasUpdateAvailable.value : this.hasUpdateAvailable), - encoderLocation: (encoderLocation != null ? encoderLocation.value : this.encoderLocation), - systemArchitecture: (systemArchitecture != null ? systemArchitecture.value : this.systemArchitecture), + internalMetadataPath: (internalMetadataPath != null + ? internalMetadataPath.value + : this.internalMetadataPath), + transcodingTempPath: (transcodingTempPath != null + ? transcodingTempPath.value + : this.transcodingTempPath), + castReceiverApplications: (castReceiverApplications != null + ? castReceiverApplications.value + : this.castReceiverApplications), + hasUpdateAvailable: (hasUpdateAvailable != null + ? hasUpdateAvailable.value + : this.hasUpdateAvailable), + encoderLocation: (encoderLocation != null + ? encoderLocation.value + : this.encoderLocation), + systemArchitecture: (systemArchitecture != null + ? systemArchitecture.value + : this.systemArchitecture), ); } } @@ -46776,7 +48926,8 @@ class SystemStorageDto { this.libraries, }); - factory SystemStorageDto.fromJson(Map json) => _$SystemStorageDtoFromJson(json); + factory SystemStorageDto.fromJson(Map json) => + _$SystemStorageDtoFromJson(json); static const toJsonFactory = _$SystemStorageDtoToJson; Map toJson() => _$SystemStorageDtoToJson(this); @@ -46882,8 +49033,10 @@ extension $SystemStorageDtoExtension on SystemStorageDto { imageCacheFolder: imageCacheFolder ?? this.imageCacheFolder, cacheFolder: cacheFolder ?? this.cacheFolder, logFolder: logFolder ?? this.logFolder, - internalMetadataFolder: internalMetadataFolder ?? this.internalMetadataFolder, - transcodingTempFolder: transcodingTempFolder ?? this.transcodingTempFolder, + internalMetadataFolder: + internalMetadataFolder ?? this.internalMetadataFolder, + transcodingTempFolder: + transcodingTempFolder ?? this.transcodingTempFolder, libraries: libraries ?? this.libraries, ); } @@ -46899,14 +49052,21 @@ extension $SystemStorageDtoExtension on SystemStorageDto { Wrapped?>? libraries, }) { return SystemStorageDto( - programDataFolder: (programDataFolder != null ? programDataFolder.value : this.programDataFolder), + programDataFolder: (programDataFolder != null + ? programDataFolder.value + : this.programDataFolder), webFolder: (webFolder != null ? webFolder.value : this.webFolder), - imageCacheFolder: (imageCacheFolder != null ? imageCacheFolder.value : this.imageCacheFolder), + imageCacheFolder: (imageCacheFolder != null + ? imageCacheFolder.value + : this.imageCacheFolder), cacheFolder: (cacheFolder != null ? cacheFolder.value : this.cacheFolder), logFolder: (logFolder != null ? logFolder.value : this.logFolder), - internalMetadataFolder: - (internalMetadataFolder != null ? internalMetadataFolder.value : this.internalMetadataFolder), - transcodingTempFolder: (transcodingTempFolder != null ? transcodingTempFolder.value : this.transcodingTempFolder), + internalMetadataFolder: (internalMetadataFolder != null + ? internalMetadataFolder.value + : this.internalMetadataFolder), + transcodingTempFolder: (transcodingTempFolder != null + ? transcodingTempFolder.value + : this.transcodingTempFolder), libraries: (libraries != null ? libraries.value : this.libraries), ); } @@ -46927,7 +49087,8 @@ class TaskInfo { this.key, }); - factory TaskInfo.fromJson(Map json) => _$TaskInfoFromJson(json); + factory TaskInfo.fromJson(Map json) => + _$TaskInfoFromJson(json); static const toJsonFactory = _$TaskInfoToJson; Map toJson() => _$TaskInfoToJson(this); @@ -46967,8 +49128,10 @@ class TaskInfo { bool operator ==(Object other) { return identical(this, other) || (other is TaskInfo && - (identical(other.name, name) || const DeepCollectionEquality().equals(other.name, name)) && - (identical(other.state, state) || const DeepCollectionEquality().equals(other.state, state)) && + (identical(other.name, name) || + const DeepCollectionEquality().equals(other.name, name)) && + (identical(other.state, state) || + const DeepCollectionEquality().equals(other.state, state)) && (identical( other.currentProgressPercentage, currentProgressPercentage, @@ -46977,7 +49140,8 @@ class TaskInfo { other.currentProgressPercentage, currentProgressPercentage, )) && - (identical(other.id, id) || const DeepCollectionEquality().equals(other.id, id)) && + (identical(other.id, id) || + const DeepCollectionEquality().equals(other.id, id)) && (identical(other.lastExecutionResult, lastExecutionResult) || const DeepCollectionEquality().equals( other.lastExecutionResult, @@ -47003,7 +49167,8 @@ class TaskInfo { other.isHidden, isHidden, )) && - (identical(other.key, key) || const DeepCollectionEquality().equals(other.key, key))); + (identical(other.key, key) || + const DeepCollectionEquality().equals(other.key, key))); } @override @@ -47040,7 +49205,8 @@ extension $TaskInfoExtension on TaskInfo { return TaskInfo( name: name ?? this.name, state: state ?? this.state, - currentProgressPercentage: currentProgressPercentage ?? this.currentProgressPercentage, + currentProgressPercentage: + currentProgressPercentage ?? this.currentProgressPercentage, id: id ?? this.id, lastExecutionResult: lastExecutionResult ?? this.lastExecutionResult, triggers: triggers ?? this.triggers, @@ -47066,10 +49232,13 @@ extension $TaskInfoExtension on TaskInfo { return TaskInfo( name: (name != null ? name.value : this.name), state: (state != null ? state.value : this.state), - currentProgressPercentage: - (currentProgressPercentage != null ? currentProgressPercentage.value : this.currentProgressPercentage), + currentProgressPercentage: (currentProgressPercentage != null + ? currentProgressPercentage.value + : this.currentProgressPercentage), id: (id != null ? id.value : this.id), - lastExecutionResult: (lastExecutionResult != null ? lastExecutionResult.value : this.lastExecutionResult), + lastExecutionResult: (lastExecutionResult != null + ? lastExecutionResult.value + : this.lastExecutionResult), triggers: (triggers != null ? triggers.value : this.triggers), description: (description != null ? description.value : this.description), category: (category != null ? category.value : this.category), @@ -47092,7 +49261,8 @@ class TaskResult { this.longErrorMessage, }); - factory TaskResult.fromJson(Map json) => _$TaskResultFromJson(json); + factory TaskResult.fromJson(Map json) => + _$TaskResultFromJson(json); static const toJsonFactory = _$TaskResultToJson; Map toJson() => _$TaskResultToJson(this); @@ -47134,10 +49304,14 @@ class TaskResult { other.endTimeUtc, endTimeUtc, )) && - (identical(other.status, status) || const DeepCollectionEquality().equals(other.status, status)) && - (identical(other.name, name) || const DeepCollectionEquality().equals(other.name, name)) && - (identical(other.key, key) || const DeepCollectionEquality().equals(other.key, key)) && - (identical(other.id, id) || const DeepCollectionEquality().equals(other.id, id)) && + (identical(other.status, status) || + const DeepCollectionEquality().equals(other.status, status)) && + (identical(other.name, name) || + const DeepCollectionEquality().equals(other.name, name)) && + (identical(other.key, key) || + const DeepCollectionEquality().equals(other.key, key)) && + (identical(other.id, id) || + const DeepCollectionEquality().equals(other.id, id)) && (identical(other.errorMessage, errorMessage) || const DeepCollectionEquality().equals( other.errorMessage, @@ -47200,14 +49374,20 @@ extension $TaskResultExtension on TaskResult { Wrapped? longErrorMessage, }) { return TaskResult( - startTimeUtc: (startTimeUtc != null ? startTimeUtc.value : this.startTimeUtc), + startTimeUtc: (startTimeUtc != null + ? startTimeUtc.value + : this.startTimeUtc), endTimeUtc: (endTimeUtc != null ? endTimeUtc.value : this.endTimeUtc), status: (status != null ? status.value : this.status), name: (name != null ? name.value : this.name), key: (key != null ? key.value : this.key), id: (id != null ? id.value : this.id), - errorMessage: (errorMessage != null ? errorMessage.value : this.errorMessage), - longErrorMessage: (longErrorMessage != null ? longErrorMessage.value : this.longErrorMessage), + errorMessage: (errorMessage != null + ? errorMessage.value + : this.errorMessage), + longErrorMessage: (longErrorMessage != null + ? longErrorMessage.value + : this.longErrorMessage), ); } } @@ -47222,7 +49402,8 @@ class TaskTriggerInfo { this.maxRuntimeTicks, }); - factory TaskTriggerInfo.fromJson(Map json) => _$TaskTriggerInfoFromJson(json); + factory TaskTriggerInfo.fromJson(Map json) => + _$TaskTriggerInfoFromJson(json); static const toJsonFactory = _$TaskTriggerInfoToJson; Map toJson() => _$TaskTriggerInfoToJson(this); @@ -47253,7 +49434,8 @@ class TaskTriggerInfo { bool operator ==(Object other) { return identical(this, other) || (other is TaskTriggerInfo && - (identical(other.type, type) || const DeepCollectionEquality().equals(other.type, type)) && + (identical(other.type, type) || + const DeepCollectionEquality().equals(other.type, type)) && (identical(other.timeOfDayTicks, timeOfDayTicks) || const DeepCollectionEquality().equals( other.timeOfDayTicks, @@ -47315,10 +49497,16 @@ extension $TaskTriggerInfoExtension on TaskTriggerInfo { }) { return TaskTriggerInfo( type: (type != null ? type.value : this.type), - timeOfDayTicks: (timeOfDayTicks != null ? timeOfDayTicks.value : this.timeOfDayTicks), - intervalTicks: (intervalTicks != null ? intervalTicks.value : this.intervalTicks), + timeOfDayTicks: (timeOfDayTicks != null + ? timeOfDayTicks.value + : this.timeOfDayTicks), + intervalTicks: (intervalTicks != null + ? intervalTicks.value + : this.intervalTicks), dayOfWeek: (dayOfWeek != null ? dayOfWeek.value : this.dayOfWeek), - maxRuntimeTicks: (maxRuntimeTicks != null ? maxRuntimeTicks.value : this.maxRuntimeTicks), + maxRuntimeTicks: (maxRuntimeTicks != null + ? maxRuntimeTicks.value + : this.maxRuntimeTicks), ); } } @@ -47332,7 +49520,8 @@ class ThemeMediaResult { this.ownerId, }); - factory ThemeMediaResult.fromJson(Map json) => _$ThemeMediaResultFromJson(json); + factory ThemeMediaResult.fromJson(Map json) => + _$ThemeMediaResultFromJson(json); static const toJsonFactory = _$ThemeMediaResultToJson; Map toJson() => _$ThemeMediaResultToJson(this); @@ -47351,7 +49540,8 @@ class ThemeMediaResult { bool operator ==(Object other) { return identical(this, other) || (other is ThemeMediaResult && - (identical(other.items, items) || const DeepCollectionEquality().equals(other.items, items)) && + (identical(other.items, items) || + const DeepCollectionEquality().equals(other.items, items)) && (identical(other.totalRecordCount, totalRecordCount) || const DeepCollectionEquality().equals( other.totalRecordCount, @@ -47362,7 +49552,8 @@ class ThemeMediaResult { other.startIndex, startIndex, )) && - (identical(other.ownerId, ownerId) || const DeepCollectionEquality().equals(other.ownerId, ownerId))); + (identical(other.ownerId, ownerId) || + const DeepCollectionEquality().equals(other.ownerId, ownerId))); } @override @@ -47400,7 +49591,9 @@ extension $ThemeMediaResultExtension on ThemeMediaResult { }) { return ThemeMediaResult( items: (items != null ? items.value : this.items), - totalRecordCount: (totalRecordCount != null ? totalRecordCount.value : this.totalRecordCount), + totalRecordCount: (totalRecordCount != null + ? totalRecordCount.value + : this.totalRecordCount), startIndex: (startIndex != null ? startIndex.value : this.startIndex), ownerId: (ownerId != null ? ownerId.value : this.ownerId), ); @@ -47411,7 +49604,8 @@ extension $ThemeMediaResultExtension on ThemeMediaResult { class TimerCancelledMessage { const TimerCancelledMessage({this.data, this.messageId, this.messageType}); - factory TimerCancelledMessage.fromJson(Map json) => _$TimerCancelledMessageFromJson(json); + factory TimerCancelledMessage.fromJson(Map json) => + _$TimerCancelledMessageFromJson(json); static const toJsonFactory = _$TimerCancelledMessageToJson; Map toJson() => _$TimerCancelledMessageToJson(this); @@ -47427,7 +49621,8 @@ class TimerCancelledMessage { fromJson: sessionMessageTypeMessageTypeNullableFromJson, ) final enums.SessionMessageType? messageType; - static enums.SessionMessageType? sessionMessageTypeMessageTypeNullableFromJson(Object? value) => + static enums.SessionMessageType? + sessionMessageTypeMessageTypeNullableFromJson(Object? value) => sessionMessageTypeNullableFromJson( value, enums.SessionMessageType.timercancelled, @@ -47439,7 +49634,8 @@ class TimerCancelledMessage { bool operator ==(Object other) { return identical(this, other) || (other is TimerCancelledMessage && - (identical(other.data, data) || const DeepCollectionEquality().equals(other.data, data)) && + (identical(other.data, data) || + const DeepCollectionEquality().equals(other.data, data)) && (identical(other.messageId, messageId) || const DeepCollectionEquality().equals( other.messageId, @@ -47493,7 +49689,8 @@ extension $TimerCancelledMessageExtension on TimerCancelledMessage { class TimerCreatedMessage { const TimerCreatedMessage({this.data, this.messageId, this.messageType}); - factory TimerCreatedMessage.fromJson(Map json) => _$TimerCreatedMessageFromJson(json); + factory TimerCreatedMessage.fromJson(Map json) => + _$TimerCreatedMessageFromJson(json); static const toJsonFactory = _$TimerCreatedMessageToJson; Map toJson() => _$TimerCreatedMessageToJson(this); @@ -47509,7 +49706,8 @@ class TimerCreatedMessage { fromJson: sessionMessageTypeMessageTypeNullableFromJson, ) final enums.SessionMessageType? messageType; - static enums.SessionMessageType? sessionMessageTypeMessageTypeNullableFromJson(Object? value) => + static enums.SessionMessageType? + sessionMessageTypeMessageTypeNullableFromJson(Object? value) => sessionMessageTypeNullableFromJson( value, enums.SessionMessageType.timercreated, @@ -47521,7 +49719,8 @@ class TimerCreatedMessage { bool operator ==(Object other) { return identical(this, other) || (other is TimerCreatedMessage && - (identical(other.data, data) || const DeepCollectionEquality().equals(other.data, data)) && + (identical(other.data, data) || + const DeepCollectionEquality().equals(other.data, data)) && (identical(other.messageId, messageId) || const DeepCollectionEquality().equals( other.messageId, @@ -47575,7 +49774,8 @@ extension $TimerCreatedMessageExtension on TimerCreatedMessage { class TimerEventInfo { const TimerEventInfo({this.id, this.programId}); - factory TimerEventInfo.fromJson(Map json) => _$TimerEventInfoFromJson(json); + factory TimerEventInfo.fromJson(Map json) => + _$TimerEventInfoFromJson(json); static const toJsonFactory = _$TimerEventInfoToJson; Map toJson() => _$TimerEventInfoToJson(this); @@ -47590,7 +49790,8 @@ class TimerEventInfo { bool operator ==(Object other) { return identical(this, other) || (other is TimerEventInfo && - (identical(other.id, id) || const DeepCollectionEquality().equals(other.id, id)) && + (identical(other.id, id) || + const DeepCollectionEquality().equals(other.id, id)) && (identical(other.programId, programId) || const DeepCollectionEquality().equals( other.programId, @@ -47603,7 +49804,9 @@ class TimerEventInfo { @override int get hashCode => - const DeepCollectionEquality().hash(id) ^ const DeepCollectionEquality().hash(programId) ^ runtimeType.hashCode; + const DeepCollectionEquality().hash(id) ^ + const DeepCollectionEquality().hash(programId) ^ + runtimeType.hashCode; } extension $TimerEventInfoExtension on TimerEventInfo { @@ -47658,7 +49861,8 @@ class TimerInfoDto { this.programInfo, }); - factory TimerInfoDto.fromJson(Map json) => _$TimerInfoDtoFromJson(json); + factory TimerInfoDto.fromJson(Map json) => + _$TimerInfoDtoFromJson(json); static const toJsonFactory = _$TimerInfoDtoToJson; Map toJson() => _$TimerInfoDtoToJson(this); @@ -47739,8 +49943,10 @@ class TimerInfoDto { bool operator ==(Object other) { return identical(this, other) || (other is TimerInfoDto && - (identical(other.id, id) || const DeepCollectionEquality().equals(other.id, id)) && - (identical(other.type, type) || const DeepCollectionEquality().equals(other.type, type)) && + (identical(other.id, id) || + const DeepCollectionEquality().equals(other.id, id)) && + (identical(other.type, type) || + const DeepCollectionEquality().equals(other.type, type)) && (identical(other.serverId, serverId) || const DeepCollectionEquality().equals( other.serverId, @@ -47781,7 +49987,8 @@ class TimerInfoDto { other.externalProgramId, externalProgramId, )) && - (identical(other.name, name) || const DeepCollectionEquality().equals(other.name, name)) && + (identical(other.name, name) || + const DeepCollectionEquality().equals(other.name, name)) && (identical(other.overview, overview) || const DeepCollectionEquality().equals( other.overview, @@ -47845,7 +50052,8 @@ class TimerInfoDto { other.keepUntil, keepUntil, )) && - (identical(other.status, status) || const DeepCollectionEquality().equals(other.status, status)) && + (identical(other.status, status) || + const DeepCollectionEquality().equals(other.status, status)) && (identical(other.seriesTimerId, seriesTimerId) || const DeepCollectionEquality().equals( other.seriesTimerId, @@ -47943,7 +50151,8 @@ extension $TimerInfoDtoExtension on TimerInfoDto { channelId: channelId ?? this.channelId, externalChannelId: externalChannelId ?? this.externalChannelId, channelName: channelName ?? this.channelName, - channelPrimaryImageTag: channelPrimaryImageTag ?? this.channelPrimaryImageTag, + channelPrimaryImageTag: + channelPrimaryImageTag ?? this.channelPrimaryImageTag, programId: programId ?? this.programId, externalProgramId: externalProgramId ?? this.externalProgramId, name: name ?? this.name, @@ -47956,12 +50165,15 @@ extension $TimerInfoDtoExtension on TimerInfoDto { postPaddingSeconds: postPaddingSeconds ?? this.postPaddingSeconds, isPrePaddingRequired: isPrePaddingRequired ?? this.isPrePaddingRequired, parentBackdropItemId: parentBackdropItemId ?? this.parentBackdropItemId, - parentBackdropImageTags: parentBackdropImageTags ?? this.parentBackdropImageTags, - isPostPaddingRequired: isPostPaddingRequired ?? this.isPostPaddingRequired, + parentBackdropImageTags: + parentBackdropImageTags ?? this.parentBackdropImageTags, + isPostPaddingRequired: + isPostPaddingRequired ?? this.isPostPaddingRequired, keepUntil: keepUntil ?? this.keepUntil, status: status ?? this.status, seriesTimerId: seriesTimerId ?? this.seriesTimerId, - externalSeriesTimerId: externalSeriesTimerId ?? this.externalSeriesTimerId, + externalSeriesTimerId: + externalSeriesTimerId ?? this.externalSeriesTimerId, runTimeTicks: runTimeTicks ?? this.runTimeTicks, programInfo: programInfo ?? this.programInfo, ); @@ -48003,30 +50215,52 @@ extension $TimerInfoDtoExtension on TimerInfoDto { serverId: (serverId != null ? serverId.value : this.serverId), externalId: (externalId != null ? externalId.value : this.externalId), channelId: (channelId != null ? channelId.value : this.channelId), - externalChannelId: (externalChannelId != null ? externalChannelId.value : this.externalChannelId), + externalChannelId: (externalChannelId != null + ? externalChannelId.value + : this.externalChannelId), channelName: (channelName != null ? channelName.value : this.channelName), - channelPrimaryImageTag: - (channelPrimaryImageTag != null ? channelPrimaryImageTag.value : this.channelPrimaryImageTag), + channelPrimaryImageTag: (channelPrimaryImageTag != null + ? channelPrimaryImageTag.value + : this.channelPrimaryImageTag), programId: (programId != null ? programId.value : this.programId), - externalProgramId: (externalProgramId != null ? externalProgramId.value : this.externalProgramId), + externalProgramId: (externalProgramId != null + ? externalProgramId.value + : this.externalProgramId), name: (name != null ? name.value : this.name), overview: (overview != null ? overview.value : this.overview), startDate: (startDate != null ? startDate.value : this.startDate), endDate: (endDate != null ? endDate.value : this.endDate), serviceName: (serviceName != null ? serviceName.value : this.serviceName), priority: (priority != null ? priority.value : this.priority), - prePaddingSeconds: (prePaddingSeconds != null ? prePaddingSeconds.value : this.prePaddingSeconds), - postPaddingSeconds: (postPaddingSeconds != null ? postPaddingSeconds.value : this.postPaddingSeconds), - isPrePaddingRequired: (isPrePaddingRequired != null ? isPrePaddingRequired.value : this.isPrePaddingRequired), - parentBackdropItemId: (parentBackdropItemId != null ? parentBackdropItemId.value : this.parentBackdropItemId), - parentBackdropImageTags: - (parentBackdropImageTags != null ? parentBackdropImageTags.value : this.parentBackdropImageTags), - isPostPaddingRequired: (isPostPaddingRequired != null ? isPostPaddingRequired.value : this.isPostPaddingRequired), + prePaddingSeconds: (prePaddingSeconds != null + ? prePaddingSeconds.value + : this.prePaddingSeconds), + postPaddingSeconds: (postPaddingSeconds != null + ? postPaddingSeconds.value + : this.postPaddingSeconds), + isPrePaddingRequired: (isPrePaddingRequired != null + ? isPrePaddingRequired.value + : this.isPrePaddingRequired), + parentBackdropItemId: (parentBackdropItemId != null + ? parentBackdropItemId.value + : this.parentBackdropItemId), + parentBackdropImageTags: (parentBackdropImageTags != null + ? parentBackdropImageTags.value + : this.parentBackdropImageTags), + isPostPaddingRequired: (isPostPaddingRequired != null + ? isPostPaddingRequired.value + : this.isPostPaddingRequired), keepUntil: (keepUntil != null ? keepUntil.value : this.keepUntil), status: (status != null ? status.value : this.status), - seriesTimerId: (seriesTimerId != null ? seriesTimerId.value : this.seriesTimerId), - externalSeriesTimerId: (externalSeriesTimerId != null ? externalSeriesTimerId.value : this.externalSeriesTimerId), - runTimeTicks: (runTimeTicks != null ? runTimeTicks.value : this.runTimeTicks), + seriesTimerId: (seriesTimerId != null + ? seriesTimerId.value + : this.seriesTimerId), + externalSeriesTimerId: (externalSeriesTimerId != null + ? externalSeriesTimerId.value + : this.externalSeriesTimerId), + runTimeTicks: (runTimeTicks != null + ? runTimeTicks.value + : this.runTimeTicks), programInfo: (programInfo != null ? programInfo.value : this.programInfo), ); } @@ -48040,7 +50274,8 @@ class TimerInfoDtoQueryResult { this.startIndex, }); - factory TimerInfoDtoQueryResult.fromJson(Map json) => _$TimerInfoDtoQueryResultFromJson(json); + factory TimerInfoDtoQueryResult.fromJson(Map json) => + _$TimerInfoDtoQueryResultFromJson(json); static const toJsonFactory = _$TimerInfoDtoQueryResultToJson; Map toJson() => _$TimerInfoDtoQueryResultToJson(this); @@ -48057,7 +50292,8 @@ class TimerInfoDtoQueryResult { bool operator ==(Object other) { return identical(this, other) || (other is TimerInfoDtoQueryResult && - (identical(other.items, items) || const DeepCollectionEquality().equals(other.items, items)) && + (identical(other.items, items) || + const DeepCollectionEquality().equals(other.items, items)) && (identical(other.totalRecordCount, totalRecordCount) || const DeepCollectionEquality().equals( other.totalRecordCount, @@ -48101,7 +50337,9 @@ extension $TimerInfoDtoQueryResultExtension on TimerInfoDtoQueryResult { }) { return TimerInfoDtoQueryResult( items: (items != null ? items.value : this.items), - totalRecordCount: (totalRecordCount != null ? totalRecordCount.value : this.totalRecordCount), + totalRecordCount: (totalRecordCount != null + ? totalRecordCount.value + : this.totalRecordCount), startIndex: (startIndex != null ? startIndex.value : this.startIndex), ); } @@ -48123,7 +50361,8 @@ class TrailerInfo { this.isAutomated, }); - factory TrailerInfo.fromJson(Map json) => _$TrailerInfoFromJson(json); + factory TrailerInfo.fromJson(Map json) => + _$TrailerInfoFromJson(json); static const toJsonFactory = _$TrailerInfoToJson; Map toJson() => _$TrailerInfoToJson(this); @@ -48156,13 +50395,15 @@ class TrailerInfo { bool operator ==(Object other) { return identical(this, other) || (other is TrailerInfo && - (identical(other.name, name) || const DeepCollectionEquality().equals(other.name, name)) && + (identical(other.name, name) || + const DeepCollectionEquality().equals(other.name, name)) && (identical(other.originalTitle, originalTitle) || const DeepCollectionEquality().equals( other.originalTitle, originalTitle, )) && - (identical(other.path, path) || const DeepCollectionEquality().equals(other.path, path)) && + (identical(other.path, path) || + const DeepCollectionEquality().equals(other.path, path)) && (identical(other.metadataLanguage, metadataLanguage) || const DeepCollectionEquality().equals( other.metadataLanguage, @@ -48178,7 +50419,8 @@ class TrailerInfo { other.providerIds, providerIds, )) && - (identical(other.year, year) || const DeepCollectionEquality().equals(other.year, year)) && + (identical(other.year, year) || + const DeepCollectionEquality().equals(other.year, year)) && (identical(other.indexNumber, indexNumber) || const DeepCollectionEquality().equals( other.indexNumber, @@ -48264,15 +50506,25 @@ extension $TrailerInfoExtension on TrailerInfo { }) { return TrailerInfo( name: (name != null ? name.value : this.name), - originalTitle: (originalTitle != null ? originalTitle.value : this.originalTitle), + originalTitle: (originalTitle != null + ? originalTitle.value + : this.originalTitle), path: (path != null ? path.value : this.path), - metadataLanguage: (metadataLanguage != null ? metadataLanguage.value : this.metadataLanguage), - metadataCountryCode: (metadataCountryCode != null ? metadataCountryCode.value : this.metadataCountryCode), + metadataLanguage: (metadataLanguage != null + ? metadataLanguage.value + : this.metadataLanguage), + metadataCountryCode: (metadataCountryCode != null + ? metadataCountryCode.value + : this.metadataCountryCode), providerIds: (providerIds != null ? providerIds.value : this.providerIds), year: (year != null ? year.value : this.year), indexNumber: (indexNumber != null ? indexNumber.value : this.indexNumber), - parentIndexNumber: (parentIndexNumber != null ? parentIndexNumber.value : this.parentIndexNumber), - premiereDate: (premiereDate != null ? premiereDate.value : this.premiereDate), + parentIndexNumber: (parentIndexNumber != null + ? parentIndexNumber.value + : this.parentIndexNumber), + premiereDate: (premiereDate != null + ? premiereDate.value + : this.premiereDate), isAutomated: (isAutomated != null ? isAutomated.value : this.isAutomated), ); } @@ -48312,7 +50564,8 @@ class TrailerInfoRemoteSearchQuery { other.searchInfo, searchInfo, )) && - (identical(other.itemId, itemId) || const DeepCollectionEquality().equals(other.itemId, itemId)) && + (identical(other.itemId, itemId) || + const DeepCollectionEquality().equals(other.itemId, itemId)) && (identical(other.searchProviderName, searchProviderName) || const DeepCollectionEquality().equals( other.searchProviderName, @@ -48340,7 +50593,8 @@ class TrailerInfoRemoteSearchQuery { runtimeType.hashCode; } -extension $TrailerInfoRemoteSearchQueryExtension on TrailerInfoRemoteSearchQuery { +extension $TrailerInfoRemoteSearchQueryExtension + on TrailerInfoRemoteSearchQuery { TrailerInfoRemoteSearchQuery copyWith({ TrailerInfo? searchInfo, String? itemId, @@ -48351,7 +50605,8 @@ extension $TrailerInfoRemoteSearchQueryExtension on TrailerInfoRemoteSearchQuery searchInfo: searchInfo ?? this.searchInfo, itemId: itemId ?? this.itemId, searchProviderName: searchProviderName ?? this.searchProviderName, - includeDisabledProviders: includeDisabledProviders ?? this.includeDisabledProviders, + includeDisabledProviders: + includeDisabledProviders ?? this.includeDisabledProviders, ); } @@ -48364,9 +50619,12 @@ extension $TrailerInfoRemoteSearchQueryExtension on TrailerInfoRemoteSearchQuery return TrailerInfoRemoteSearchQuery( searchInfo: (searchInfo != null ? searchInfo.value : this.searchInfo), itemId: (itemId != null ? itemId.value : this.itemId), - searchProviderName: (searchProviderName != null ? searchProviderName.value : this.searchProviderName), - includeDisabledProviders: - (includeDisabledProviders != null ? includeDisabledProviders.value : this.includeDisabledProviders), + searchProviderName: (searchProviderName != null + ? searchProviderName.value + : this.searchProviderName), + includeDisabledProviders: (includeDisabledProviders != null + ? includeDisabledProviders.value + : this.includeDisabledProviders), ); } } @@ -48389,7 +50647,8 @@ class TranscodingInfo { this.transcodeReasons, }); - factory TranscodingInfo.fromJson(Map json) => _$TranscodingInfoFromJson(json); + factory TranscodingInfo.fromJson(Map json) => + _$TranscodingInfoFromJson(json); static const toJsonFactory = _$TranscodingInfoToJson; Map toJson() => _$TranscodingInfoToJson(this); @@ -48476,8 +50735,10 @@ class TranscodingInfo { other.completionPercentage, completionPercentage, )) && - (identical(other.width, width) || const DeepCollectionEquality().equals(other.width, width)) && - (identical(other.height, height) || const DeepCollectionEquality().equals(other.height, height)) && + (identical(other.width, width) || + const DeepCollectionEquality().equals(other.width, width)) && + (identical(other.height, height) || + const DeepCollectionEquality().equals(other.height, height)) && (identical(other.audioChannels, audioChannels) || const DeepCollectionEquality().equals( other.audioChannels, @@ -48547,7 +50808,8 @@ extension $TranscodingInfoExtension on TranscodingInfo { width: width ?? this.width, height: height ?? this.height, audioChannels: audioChannels ?? this.audioChannels, - hardwareAccelerationType: hardwareAccelerationType ?? this.hardwareAccelerationType, + hardwareAccelerationType: + hardwareAccelerationType ?? this.hardwareAccelerationType, transcodeReasons: transcodeReasons ?? this.transcodeReasons, ); } @@ -48571,17 +50833,28 @@ extension $TranscodingInfoExtension on TranscodingInfo { audioCodec: (audioCodec != null ? audioCodec.value : this.audioCodec), videoCodec: (videoCodec != null ? videoCodec.value : this.videoCodec), container: (container != null ? container.value : this.container), - isVideoDirect: (isVideoDirect != null ? isVideoDirect.value : this.isVideoDirect), - isAudioDirect: (isAudioDirect != null ? isAudioDirect.value : this.isAudioDirect), + isVideoDirect: (isVideoDirect != null + ? isVideoDirect.value + : this.isVideoDirect), + isAudioDirect: (isAudioDirect != null + ? isAudioDirect.value + : this.isAudioDirect), bitrate: (bitrate != null ? bitrate.value : this.bitrate), framerate: (framerate != null ? framerate.value : this.framerate), - completionPercentage: (completionPercentage != null ? completionPercentage.value : this.completionPercentage), + completionPercentage: (completionPercentage != null + ? completionPercentage.value + : this.completionPercentage), width: (width != null ? width.value : this.width), height: (height != null ? height.value : this.height), - audioChannels: (audioChannels != null ? audioChannels.value : this.audioChannels), - hardwareAccelerationType: - (hardwareAccelerationType != null ? hardwareAccelerationType.value : this.hardwareAccelerationType), - transcodeReasons: (transcodeReasons != null ? transcodeReasons.value : this.transcodeReasons), + audioChannels: (audioChannels != null + ? audioChannels.value + : this.audioChannels), + hardwareAccelerationType: (hardwareAccelerationType != null + ? hardwareAccelerationType.value + : this.hardwareAccelerationType), + transcodeReasons: (transcodeReasons != null + ? transcodeReasons.value + : this.transcodeReasons), ); } } @@ -48608,7 +50881,8 @@ class TranscodingProfile { this.enableAudioVbrEncoding, }); - factory TranscodingProfile.fromJson(Map json) => _$TranscodingProfileFromJson(json); + factory TranscodingProfile.fromJson(Map json) => + _$TranscodingProfileFromJson(json); static const toJsonFactory = _$TranscodingProfileToJson; Map toJson() => _$TranscodingProfileToJson(this); @@ -48652,7 +50926,8 @@ class TranscodingProfile { fromJson: transcodeSeekInfoTranscodeSeekInfoNullableFromJson, ) final enums.TranscodeSeekInfo? transcodeSeekInfo; - static enums.TranscodeSeekInfo? transcodeSeekInfoTranscodeSeekInfoNullableFromJson(Object? value) => + static enums.TranscodeSeekInfo? + transcodeSeekInfoTranscodeSeekInfoNullableFromJson(Object? value) => transcodeSeekInfoNullableFromJson(value, enums.TranscodeSeekInfo.auto); @JsonKey(name: 'CopyTimestamps', includeIfNull: false, defaultValue: false) @@ -48666,8 +50941,7 @@ class TranscodingProfile { final enums.EncodingContext? context; static enums.EncodingContext? encodingContextContextNullableFromJson( Object? value, - ) => - encodingContextNullableFromJson(value, enums.EncodingContext.streaming); + ) => encodingContextNullableFromJson(value, enums.EncodingContext.streaming); @JsonKey( name: 'EnableSubtitlesInManifest', @@ -48710,7 +50984,8 @@ class TranscodingProfile { other.container, container, )) && - (identical(other.type, type) || const DeepCollectionEquality().equals(other.type, type)) && + (identical(other.type, type) || + const DeepCollectionEquality().equals(other.type, type)) && (identical(other.videoCodec, videoCodec) || const DeepCollectionEquality().equals( other.videoCodec, @@ -48842,18 +51117,21 @@ extension $TranscodingProfileExtension on TranscodingProfile { videoCodec: videoCodec ?? this.videoCodec, audioCodec: audioCodec ?? this.audioCodec, protocol: protocol ?? this.protocol, - estimateContentLength: estimateContentLength ?? this.estimateContentLength, + estimateContentLength: + estimateContentLength ?? this.estimateContentLength, enableMpegtsM2TsMode: enableMpegtsM2TsMode ?? this.enableMpegtsM2TsMode, transcodeSeekInfo: transcodeSeekInfo ?? this.transcodeSeekInfo, copyTimestamps: copyTimestamps ?? this.copyTimestamps, context: context ?? this.context, - enableSubtitlesInManifest: enableSubtitlesInManifest ?? this.enableSubtitlesInManifest, + enableSubtitlesInManifest: + enableSubtitlesInManifest ?? this.enableSubtitlesInManifest, maxAudioChannels: maxAudioChannels ?? this.maxAudioChannels, minSegments: minSegments ?? this.minSegments, segmentLength: segmentLength ?? this.segmentLength, breakOnNonKeyFrames: breakOnNonKeyFrames ?? this.breakOnNonKeyFrames, conditions: conditions ?? this.conditions, - enableAudioVbrEncoding: enableAudioVbrEncoding ?? this.enableAudioVbrEncoding, + enableAudioVbrEncoding: + enableAudioVbrEncoding ?? this.enableAudioVbrEncoding, ); } @@ -48882,20 +51160,36 @@ extension $TranscodingProfileExtension on TranscodingProfile { videoCodec: (videoCodec != null ? videoCodec.value : this.videoCodec), audioCodec: (audioCodec != null ? audioCodec.value : this.audioCodec), protocol: (protocol != null ? protocol.value : this.protocol), - estimateContentLength: (estimateContentLength != null ? estimateContentLength.value : this.estimateContentLength), - enableMpegtsM2TsMode: (enableMpegtsM2TsMode != null ? enableMpegtsM2TsMode.value : this.enableMpegtsM2TsMode), - transcodeSeekInfo: (transcodeSeekInfo != null ? transcodeSeekInfo.value : this.transcodeSeekInfo), - copyTimestamps: (copyTimestamps != null ? copyTimestamps.value : this.copyTimestamps), + estimateContentLength: (estimateContentLength != null + ? estimateContentLength.value + : this.estimateContentLength), + enableMpegtsM2TsMode: (enableMpegtsM2TsMode != null + ? enableMpegtsM2TsMode.value + : this.enableMpegtsM2TsMode), + transcodeSeekInfo: (transcodeSeekInfo != null + ? transcodeSeekInfo.value + : this.transcodeSeekInfo), + copyTimestamps: (copyTimestamps != null + ? copyTimestamps.value + : this.copyTimestamps), context: (context != null ? context.value : this.context), - enableSubtitlesInManifest: - (enableSubtitlesInManifest != null ? enableSubtitlesInManifest.value : this.enableSubtitlesInManifest), - maxAudioChannels: (maxAudioChannels != null ? maxAudioChannels.value : this.maxAudioChannels), + enableSubtitlesInManifest: (enableSubtitlesInManifest != null + ? enableSubtitlesInManifest.value + : this.enableSubtitlesInManifest), + maxAudioChannels: (maxAudioChannels != null + ? maxAudioChannels.value + : this.maxAudioChannels), minSegments: (minSegments != null ? minSegments.value : this.minSegments), - segmentLength: (segmentLength != null ? segmentLength.value : this.segmentLength), - breakOnNonKeyFrames: (breakOnNonKeyFrames != null ? breakOnNonKeyFrames.value : this.breakOnNonKeyFrames), + segmentLength: (segmentLength != null + ? segmentLength.value + : this.segmentLength), + breakOnNonKeyFrames: (breakOnNonKeyFrames != null + ? breakOnNonKeyFrames.value + : this.breakOnNonKeyFrames), conditions: (conditions != null ? conditions.value : this.conditions), - enableAudioVbrEncoding: - (enableAudioVbrEncoding != null ? enableAudioVbrEncoding.value : this.enableAudioVbrEncoding), + enableAudioVbrEncoding: (enableAudioVbrEncoding != null + ? enableAudioVbrEncoding.value + : this.enableAudioVbrEncoding), ); } } @@ -48912,7 +51206,8 @@ class TrickplayInfoDto { this.bandwidth, }); - factory TrickplayInfoDto.fromJson(Map json) => _$TrickplayInfoDtoFromJson(json); + factory TrickplayInfoDto.fromJson(Map json) => + _$TrickplayInfoDtoFromJson(json); static const toJsonFactory = _$TrickplayInfoDtoToJson; Map toJson() => _$TrickplayInfoDtoToJson(this); @@ -48937,8 +51232,10 @@ class TrickplayInfoDto { bool operator ==(Object other) { return identical(this, other) || (other is TrickplayInfoDto && - (identical(other.width, width) || const DeepCollectionEquality().equals(other.width, width)) && - (identical(other.height, height) || const DeepCollectionEquality().equals(other.height, height)) && + (identical(other.width, width) || + const DeepCollectionEquality().equals(other.width, width)) && + (identical(other.height, height) || + const DeepCollectionEquality().equals(other.height, height)) && (identical(other.tileWidth, tileWidth) || const DeepCollectionEquality().equals( other.tileWidth, @@ -49016,7 +51313,9 @@ extension $TrickplayInfoDtoExtension on TrickplayInfoDto { height: (height != null ? height.value : this.height), tileWidth: (tileWidth != null ? tileWidth.value : this.tileWidth), tileHeight: (tileHeight != null ? tileHeight.value : this.tileHeight), - thumbnailCount: (thumbnailCount != null ? thumbnailCount.value : this.thumbnailCount), + thumbnailCount: (thumbnailCount != null + ? thumbnailCount.value + : this.thumbnailCount), interval: (interval != null ? interval.value : this.interval), bandwidth: (bandwidth != null ? bandwidth.value : this.bandwidth), ); @@ -49040,7 +51339,8 @@ class TrickplayOptions { this.processThreads, }); - factory TrickplayOptions.fromJson(Map json) => _$TrickplayOptionsFromJson(json); + factory TrickplayOptions.fromJson(Map json) => + _$TrickplayOptionsFromJson(json); static const toJsonFactory = _$TrickplayOptionsToJson; Map toJson() => _$TrickplayOptionsToJson(this); @@ -49137,7 +51437,8 @@ class TrickplayOptions { other.tileHeight, tileHeight, )) && - (identical(other.qscale, qscale) || const DeepCollectionEquality().equals(other.qscale, qscale)) && + (identical(other.qscale, qscale) || + const DeepCollectionEquality().equals(other.qscale, qscale)) && (identical(other.jpegQuality, jpegQuality) || const DeepCollectionEquality().equals( other.jpegQuality, @@ -49188,7 +51489,8 @@ extension $TrickplayOptionsExtension on TrickplayOptions { return TrickplayOptions( enableHwAcceleration: enableHwAcceleration ?? this.enableHwAcceleration, enableHwEncoding: enableHwEncoding ?? this.enableHwEncoding, - enableKeyFrameOnlyExtraction: enableKeyFrameOnlyExtraction ?? this.enableKeyFrameOnlyExtraction, + enableKeyFrameOnlyExtraction: + enableKeyFrameOnlyExtraction ?? this.enableKeyFrameOnlyExtraction, scanBehavior: scanBehavior ?? this.scanBehavior, processPriority: processPriority ?? this.processPriority, interval: interval ?? this.interval, @@ -49216,20 +51518,32 @@ extension $TrickplayOptionsExtension on TrickplayOptions { Wrapped? processThreads, }) { return TrickplayOptions( - enableHwAcceleration: (enableHwAcceleration != null ? enableHwAcceleration.value : this.enableHwAcceleration), - enableHwEncoding: (enableHwEncoding != null ? enableHwEncoding.value : this.enableHwEncoding), + enableHwAcceleration: (enableHwAcceleration != null + ? enableHwAcceleration.value + : this.enableHwAcceleration), + enableHwEncoding: (enableHwEncoding != null + ? enableHwEncoding.value + : this.enableHwEncoding), enableKeyFrameOnlyExtraction: (enableKeyFrameOnlyExtraction != null ? enableKeyFrameOnlyExtraction.value : this.enableKeyFrameOnlyExtraction), - scanBehavior: (scanBehavior != null ? scanBehavior.value : this.scanBehavior), - processPriority: (processPriority != null ? processPriority.value : this.processPriority), + scanBehavior: (scanBehavior != null + ? scanBehavior.value + : this.scanBehavior), + processPriority: (processPriority != null + ? processPriority.value + : this.processPriority), interval: (interval != null ? interval.value : this.interval), - widthResolutions: (widthResolutions != null ? widthResolutions.value : this.widthResolutions), + widthResolutions: (widthResolutions != null + ? widthResolutions.value + : this.widthResolutions), tileWidth: (tileWidth != null ? tileWidth.value : this.tileWidth), tileHeight: (tileHeight != null ? tileHeight.value : this.tileHeight), qscale: (qscale != null ? qscale.value : this.qscale), jpegQuality: (jpegQuality != null ? jpegQuality.value : this.jpegQuality), - processThreads: (processThreads != null ? processThreads.value : this.processThreads), + processThreads: (processThreads != null + ? processThreads.value + : this.processThreads), ); } } @@ -49243,7 +51557,8 @@ class TunerChannelMapping { this.id, }); - factory TunerChannelMapping.fromJson(Map json) => _$TunerChannelMappingFromJson(json); + factory TunerChannelMapping.fromJson(Map json) => + _$TunerChannelMappingFromJson(json); static const toJsonFactory = _$TunerChannelMappingToJson; Map toJson() => _$TunerChannelMappingToJson(this); @@ -49262,7 +51577,8 @@ class TunerChannelMapping { bool operator ==(Object other) { return identical(this, other) || (other is TunerChannelMapping && - (identical(other.name, name) || const DeepCollectionEquality().equals(other.name, name)) && + (identical(other.name, name) || + const DeepCollectionEquality().equals(other.name, name)) && (identical(other.providerChannelName, providerChannelName) || const DeepCollectionEquality().equals( other.providerChannelName, @@ -49273,7 +51589,8 @@ class TunerChannelMapping { other.providerChannelId, providerChannelId, )) && - (identical(other.id, id) || const DeepCollectionEquality().equals(other.id, id))); + (identical(other.id, id) || + const DeepCollectionEquality().equals(other.id, id))); } @override @@ -49311,8 +51628,12 @@ extension $TunerChannelMappingExtension on TunerChannelMapping { }) { return TunerChannelMapping( name: (name != null ? name.value : this.name), - providerChannelName: (providerChannelName != null ? providerChannelName.value : this.providerChannelName), - providerChannelId: (providerChannelId != null ? providerChannelId.value : this.providerChannelId), + providerChannelName: (providerChannelName != null + ? providerChannelName.value + : this.providerChannelName), + providerChannelId: (providerChannelId != null + ? providerChannelId.value + : this.providerChannelId), id: (id != null ? id.value : this.id), ); } @@ -49339,7 +51660,8 @@ class TunerHostInfo { this.readAtNativeFramerate, }); - factory TunerHostInfo.fromJson(Map json) => _$TunerHostInfoFromJson(json); + factory TunerHostInfo.fromJson(Map json) => + _$TunerHostInfoFromJson(json); static const toJsonFactory = _$TunerHostInfoToJson; Map toJson() => _$TunerHostInfoToJson(this); @@ -49382,9 +51704,12 @@ class TunerHostInfo { bool operator ==(Object other) { return identical(this, other) || (other is TunerHostInfo && - (identical(other.id, id) || const DeepCollectionEquality().equals(other.id, id)) && - (identical(other.url, url) || const DeepCollectionEquality().equals(other.url, url)) && - (identical(other.type, type) || const DeepCollectionEquality().equals(other.type, type)) && + (identical(other.id, id) || + const DeepCollectionEquality().equals(other.id, id)) && + (identical(other.url, url) || + const DeepCollectionEquality().equals(other.url, url)) && + (identical(other.type, type) || + const DeepCollectionEquality().equals(other.type, type)) && (identical(other.deviceId, deviceId) || const DeepCollectionEquality().equals( other.deviceId, @@ -49431,7 +51756,8 @@ class TunerHostInfo { other.enableStreamLooping, enableStreamLooping, )) && - (identical(other.source, source) || const DeepCollectionEquality().equals(other.source, source)) && + (identical(other.source, source) || + const DeepCollectionEquality().equals(other.source, source)) && (identical(other.tunerCount, tunerCount) || const DeepCollectionEquality().equals( other.tunerCount, @@ -49505,15 +51831,18 @@ extension $TunerHostInfoExtension on TunerHostInfo { friendlyName: friendlyName ?? this.friendlyName, importFavoritesOnly: importFavoritesOnly ?? this.importFavoritesOnly, allowHWTranscoding: allowHWTranscoding ?? this.allowHWTranscoding, - allowFmp4TranscodingContainer: allowFmp4TranscodingContainer ?? this.allowFmp4TranscodingContainer, + allowFmp4TranscodingContainer: + allowFmp4TranscodingContainer ?? this.allowFmp4TranscodingContainer, allowStreamSharing: allowStreamSharing ?? this.allowStreamSharing, - fallbackMaxStreamingBitrate: fallbackMaxStreamingBitrate ?? this.fallbackMaxStreamingBitrate, + fallbackMaxStreamingBitrate: + fallbackMaxStreamingBitrate ?? this.fallbackMaxStreamingBitrate, enableStreamLooping: enableStreamLooping ?? this.enableStreamLooping, source: source ?? this.source, tunerCount: tunerCount ?? this.tunerCount, userAgent: userAgent ?? this.userAgent, ignoreDts: ignoreDts ?? this.ignoreDts, - readAtNativeFramerate: readAtNativeFramerate ?? this.readAtNativeFramerate, + readAtNativeFramerate: + readAtNativeFramerate ?? this.readAtNativeFramerate, ); } @@ -49540,21 +51869,34 @@ extension $TunerHostInfoExtension on TunerHostInfo { url: (url != null ? url.value : this.url), type: (type != null ? type.value : this.type), deviceId: (deviceId != null ? deviceId.value : this.deviceId), - friendlyName: (friendlyName != null ? friendlyName.value : this.friendlyName), - importFavoritesOnly: (importFavoritesOnly != null ? importFavoritesOnly.value : this.importFavoritesOnly), - allowHWTranscoding: (allowHWTranscoding != null ? allowHWTranscoding.value : this.allowHWTranscoding), + friendlyName: (friendlyName != null + ? friendlyName.value + : this.friendlyName), + importFavoritesOnly: (importFavoritesOnly != null + ? importFavoritesOnly.value + : this.importFavoritesOnly), + allowHWTranscoding: (allowHWTranscoding != null + ? allowHWTranscoding.value + : this.allowHWTranscoding), allowFmp4TranscodingContainer: (allowFmp4TranscodingContainer != null ? allowFmp4TranscodingContainer.value : this.allowFmp4TranscodingContainer), - allowStreamSharing: (allowStreamSharing != null ? allowStreamSharing.value : this.allowStreamSharing), - fallbackMaxStreamingBitrate: - (fallbackMaxStreamingBitrate != null ? fallbackMaxStreamingBitrate.value : this.fallbackMaxStreamingBitrate), - enableStreamLooping: (enableStreamLooping != null ? enableStreamLooping.value : this.enableStreamLooping), + allowStreamSharing: (allowStreamSharing != null + ? allowStreamSharing.value + : this.allowStreamSharing), + fallbackMaxStreamingBitrate: (fallbackMaxStreamingBitrate != null + ? fallbackMaxStreamingBitrate.value + : this.fallbackMaxStreamingBitrate), + enableStreamLooping: (enableStreamLooping != null + ? enableStreamLooping.value + : this.enableStreamLooping), source: (source != null ? source.value : this.source), tunerCount: (tunerCount != null ? tunerCount.value : this.tunerCount), userAgent: (userAgent != null ? userAgent.value : this.userAgent), ignoreDts: (ignoreDts != null ? ignoreDts.value : this.ignoreDts), - readAtNativeFramerate: (readAtNativeFramerate != null ? readAtNativeFramerate.value : this.readAtNativeFramerate), + readAtNativeFramerate: (readAtNativeFramerate != null + ? readAtNativeFramerate.value + : this.readAtNativeFramerate), ); } } @@ -49570,7 +51912,8 @@ class TypeOptions { this.imageOptions, }); - factory TypeOptions.fromJson(Map json) => _$TypeOptionsFromJson(json); + factory TypeOptions.fromJson(Map json) => + _$TypeOptionsFromJson(json); static const toJsonFactory = _$TypeOptionsToJson; Map toJson() => _$TypeOptionsToJson(this); @@ -49613,7 +51956,8 @@ class TypeOptions { bool operator ==(Object other) { return identical(this, other) || (other is TypeOptions && - (identical(other.type, type) || const DeepCollectionEquality().equals(other.type, type)) && + (identical(other.type, type) || + const DeepCollectionEquality().equals(other.type, type)) && (identical(other.metadataFetchers, metadataFetchers) || const DeepCollectionEquality().equals( other.metadataFetchers, @@ -49684,11 +52028,21 @@ extension $TypeOptionsExtension on TypeOptions { }) { return TypeOptions( type: (type != null ? type.value : this.type), - metadataFetchers: (metadataFetchers != null ? metadataFetchers.value : this.metadataFetchers), - metadataFetcherOrder: (metadataFetcherOrder != null ? metadataFetcherOrder.value : this.metadataFetcherOrder), - imageFetchers: (imageFetchers != null ? imageFetchers.value : this.imageFetchers), - imageFetcherOrder: (imageFetcherOrder != null ? imageFetcherOrder.value : this.imageFetcherOrder), - imageOptions: (imageOptions != null ? imageOptions.value : this.imageOptions), + metadataFetchers: (metadataFetchers != null + ? metadataFetchers.value + : this.metadataFetchers), + metadataFetcherOrder: (metadataFetcherOrder != null + ? metadataFetcherOrder.value + : this.metadataFetcherOrder), + imageFetchers: (imageFetchers != null + ? imageFetchers.value + : this.imageFetchers), + imageFetcherOrder: (imageFetcherOrder != null + ? imageFetcherOrder.value + : this.imageFetcherOrder), + imageOptions: (imageOptions != null + ? imageOptions.value + : this.imageOptions), ); } } @@ -49697,7 +52051,8 @@ extension $TypeOptionsExtension on TypeOptions { class UpdateLibraryOptionsDto { const UpdateLibraryOptionsDto({this.id, this.libraryOptions}); - factory UpdateLibraryOptionsDto.fromJson(Map json) => _$UpdateLibraryOptionsDtoFromJson(json); + factory UpdateLibraryOptionsDto.fromJson(Map json) => + _$UpdateLibraryOptionsDtoFromJson(json); static const toJsonFactory = _$UpdateLibraryOptionsDtoToJson; Map toJson() => _$UpdateLibraryOptionsDtoToJson(this); @@ -49712,7 +52067,8 @@ class UpdateLibraryOptionsDto { bool operator ==(Object other) { return identical(this, other) || (other is UpdateLibraryOptionsDto && - (identical(other.id, id) || const DeepCollectionEquality().equals(other.id, id)) && + (identical(other.id, id) || + const DeepCollectionEquality().equals(other.id, id)) && (identical(other.libraryOptions, libraryOptions) || const DeepCollectionEquality().equals( other.libraryOptions, @@ -49747,7 +52103,9 @@ extension $UpdateLibraryOptionsDtoExtension on UpdateLibraryOptionsDto { }) { return UpdateLibraryOptionsDto( id: (id != null ? id.value : this.id), - libraryOptions: (libraryOptions != null ? libraryOptions.value : this.libraryOptions), + libraryOptions: (libraryOptions != null + ? libraryOptions.value + : this.libraryOptions), ); } } @@ -49756,7 +52114,8 @@ extension $UpdateLibraryOptionsDtoExtension on UpdateLibraryOptionsDto { class UpdateMediaPathRequestDto { const UpdateMediaPathRequestDto({required this.name, required this.pathInfo}); - factory UpdateMediaPathRequestDto.fromJson(Map json) => _$UpdateMediaPathRequestDtoFromJson(json); + factory UpdateMediaPathRequestDto.fromJson(Map json) => + _$UpdateMediaPathRequestDtoFromJson(json); static const toJsonFactory = _$UpdateMediaPathRequestDtoToJson; Map toJson() => _$UpdateMediaPathRequestDtoToJson(this); @@ -49771,7 +52130,8 @@ class UpdateMediaPathRequestDto { bool operator ==(Object other) { return identical(this, other) || (other is UpdateMediaPathRequestDto && - (identical(other.name, name) || const DeepCollectionEquality().equals(other.name, name)) && + (identical(other.name, name) || + const DeepCollectionEquality().equals(other.name, name)) && (identical(other.pathInfo, pathInfo) || const DeepCollectionEquality().equals( other.pathInfo, @@ -49784,7 +52144,9 @@ class UpdateMediaPathRequestDto { @override int get hashCode => - const DeepCollectionEquality().hash(name) ^ const DeepCollectionEquality().hash(pathInfo) ^ runtimeType.hashCode; + const DeepCollectionEquality().hash(name) ^ + const DeepCollectionEquality().hash(pathInfo) ^ + runtimeType.hashCode; } extension $UpdateMediaPathRequestDtoExtension on UpdateMediaPathRequestDto { @@ -49810,7 +52172,8 @@ extension $UpdateMediaPathRequestDtoExtension on UpdateMediaPathRequestDto { class UpdatePlaylistDto { const UpdatePlaylistDto({this.name, this.ids, this.users, this.isPublic}); - factory UpdatePlaylistDto.fromJson(Map json) => _$UpdatePlaylistDtoFromJson(json); + factory UpdatePlaylistDto.fromJson(Map json) => + _$UpdatePlaylistDtoFromJson(json); static const toJsonFactory = _$UpdatePlaylistDtoToJson; Map toJson() => _$UpdatePlaylistDtoToJson(this); @@ -49833,9 +52196,12 @@ class UpdatePlaylistDto { bool operator ==(Object other) { return identical(this, other) || (other is UpdatePlaylistDto && - (identical(other.name, name) || const DeepCollectionEquality().equals(other.name, name)) && - (identical(other.ids, ids) || const DeepCollectionEquality().equals(other.ids, ids)) && - (identical(other.users, users) || const DeepCollectionEquality().equals(other.users, users)) && + (identical(other.name, name) || + const DeepCollectionEquality().equals(other.name, name)) && + (identical(other.ids, ids) || + const DeepCollectionEquality().equals(other.ids, ids)) && + (identical(other.users, users) || + const DeepCollectionEquality().equals(other.users, users)) && (identical(other.isPublic, isPublic) || const DeepCollectionEquality().equals( other.isPublic, @@ -49889,7 +52255,8 @@ extension $UpdatePlaylistDtoExtension on UpdatePlaylistDto { class UpdatePlaylistUserDto { const UpdatePlaylistUserDto({this.canEdit}); - factory UpdatePlaylistUserDto.fromJson(Map json) => _$UpdatePlaylistUserDtoFromJson(json); + factory UpdatePlaylistUserDto.fromJson(Map json) => + _$UpdatePlaylistUserDtoFromJson(json); static const toJsonFactory = _$UpdatePlaylistUserDtoToJson; Map toJson() => _$UpdatePlaylistUserDtoToJson(this); @@ -49902,14 +52269,16 @@ class UpdatePlaylistUserDto { bool operator ==(Object other) { return identical(this, other) || (other is UpdatePlaylistUserDto && - (identical(other.canEdit, canEdit) || const DeepCollectionEquality().equals(other.canEdit, canEdit))); + (identical(other.canEdit, canEdit) || + const DeepCollectionEquality().equals(other.canEdit, canEdit))); } @override String toString() => jsonEncode(this); @override - int get hashCode => const DeepCollectionEquality().hash(canEdit) ^ runtimeType.hashCode; + int get hashCode => + const DeepCollectionEquality().hash(canEdit) ^ runtimeType.hashCode; } extension $UpdatePlaylistUserDtoExtension on UpdatePlaylistUserDto { @@ -49940,7 +52309,8 @@ class UpdateUserItemDataDto { this.itemId, }); - factory UpdateUserItemDataDto.fromJson(Map json) => _$UpdateUserItemDataDtoFromJson(json); + factory UpdateUserItemDataDto.fromJson(Map json) => + _$UpdateUserItemDataDtoFromJson(json); static const toJsonFactory = _$UpdateUserItemDataDtoToJson; Map toJson() => _$UpdateUserItemDataDtoToJson(this); @@ -49973,7 +52343,8 @@ class UpdateUserItemDataDto { bool operator ==(Object other) { return identical(this, other) || (other is UpdateUserItemDataDto && - (identical(other.rating, rating) || const DeepCollectionEquality().equals(other.rating, rating)) && + (identical(other.rating, rating) || + const DeepCollectionEquality().equals(other.rating, rating)) && (identical(other.playedPercentage, playedPercentage) || const DeepCollectionEquality().equals( other.playedPercentage, @@ -49999,15 +52370,19 @@ class UpdateUserItemDataDto { other.isFavorite, isFavorite, )) && - (identical(other.likes, likes) || const DeepCollectionEquality().equals(other.likes, likes)) && + (identical(other.likes, likes) || + const DeepCollectionEquality().equals(other.likes, likes)) && (identical(other.lastPlayedDate, lastPlayedDate) || const DeepCollectionEquality().equals( other.lastPlayedDate, lastPlayedDate, )) && - (identical(other.played, played) || const DeepCollectionEquality().equals(other.played, played)) && - (identical(other.key, key) || const DeepCollectionEquality().equals(other.key, key)) && - (identical(other.itemId, itemId) || const DeepCollectionEquality().equals(other.itemId, itemId))); + (identical(other.played, played) || + const DeepCollectionEquality().equals(other.played, played)) && + (identical(other.key, key) || + const DeepCollectionEquality().equals(other.key, key)) && + (identical(other.itemId, itemId) || + const DeepCollectionEquality().equals(other.itemId, itemId))); } @override @@ -50047,7 +52422,8 @@ extension $UpdateUserItemDataDtoExtension on UpdateUserItemDataDto { rating: rating ?? this.rating, playedPercentage: playedPercentage ?? this.playedPercentage, unplayedItemCount: unplayedItemCount ?? this.unplayedItemCount, - playbackPositionTicks: playbackPositionTicks ?? this.playbackPositionTicks, + playbackPositionTicks: + playbackPositionTicks ?? this.playbackPositionTicks, playCount: playCount ?? this.playCount, isFavorite: isFavorite ?? this.isFavorite, likes: likes ?? this.likes, @@ -50073,13 +52449,21 @@ extension $UpdateUserItemDataDtoExtension on UpdateUserItemDataDto { }) { return UpdateUserItemDataDto( rating: (rating != null ? rating.value : this.rating), - playedPercentage: (playedPercentage != null ? playedPercentage.value : this.playedPercentage), - unplayedItemCount: (unplayedItemCount != null ? unplayedItemCount.value : this.unplayedItemCount), - playbackPositionTicks: (playbackPositionTicks != null ? playbackPositionTicks.value : this.playbackPositionTicks), + playedPercentage: (playedPercentage != null + ? playedPercentage.value + : this.playedPercentage), + unplayedItemCount: (unplayedItemCount != null + ? unplayedItemCount.value + : this.unplayedItemCount), + playbackPositionTicks: (playbackPositionTicks != null + ? playbackPositionTicks.value + : this.playbackPositionTicks), playCount: (playCount != null ? playCount.value : this.playCount), isFavorite: (isFavorite != null ? isFavorite.value : this.isFavorite), likes: (likes != null ? likes.value : this.likes), - lastPlayedDate: (lastPlayedDate != null ? lastPlayedDate.value : this.lastPlayedDate), + lastPlayedDate: (lastPlayedDate != null + ? lastPlayedDate.value + : this.lastPlayedDate), played: (played != null ? played.value : this.played), key: (key != null ? key.value : this.key), itemId: (itemId != null ? itemId.value : this.itemId), @@ -50096,7 +52480,8 @@ class UpdateUserPassword { this.resetPassword, }); - factory UpdateUserPassword.fromJson(Map json) => _$UpdateUserPasswordFromJson(json); + factory UpdateUserPassword.fromJson(Map json) => + _$UpdateUserPasswordFromJson(json); static const toJsonFactory = _$UpdateUserPasswordToJson; Map toJson() => _$UpdateUserPasswordToJson(this); @@ -50125,7 +52510,8 @@ class UpdateUserPassword { other.currentPw, currentPw, )) && - (identical(other.newPw, newPw) || const DeepCollectionEquality().equals(other.newPw, newPw)) && + (identical(other.newPw, newPw) || + const DeepCollectionEquality().equals(other.newPw, newPw)) && (identical(other.resetPassword, resetPassword) || const DeepCollectionEquality().equals( other.resetPassword, @@ -50167,10 +52553,14 @@ extension $UpdateUserPasswordExtension on UpdateUserPassword { Wrapped? resetPassword, }) { return UpdateUserPassword( - currentPassword: (currentPassword != null ? currentPassword.value : this.currentPassword), + currentPassword: (currentPassword != null + ? currentPassword.value + : this.currentPassword), currentPw: (currentPw != null ? currentPw.value : this.currentPw), newPw: (newPw != null ? newPw.value : this.newPw), - resetPassword: (resetPassword != null ? resetPassword.value : this.resetPassword), + resetPassword: (resetPassword != null + ? resetPassword.value + : this.resetPassword), ); } } @@ -50185,7 +52575,8 @@ class UploadSubtitleDto { required this.data, }); - factory UploadSubtitleDto.fromJson(Map json) => _$UploadSubtitleDtoFromJson(json); + factory UploadSubtitleDto.fromJson(Map json) => + _$UploadSubtitleDtoFromJson(json); static const toJsonFactory = _$UploadSubtitleDtoToJson; Map toJson() => _$UploadSubtitleDtoToJson(this); @@ -50211,7 +52602,8 @@ class UploadSubtitleDto { other.language, language, )) && - (identical(other.format, format) || const DeepCollectionEquality().equals(other.format, format)) && + (identical(other.format, format) || + const DeepCollectionEquality().equals(other.format, format)) && (identical(other.isForced, isForced) || const DeepCollectionEquality().equals( other.isForced, @@ -50222,7 +52614,8 @@ class UploadSubtitleDto { other.isHearingImpaired, isHearingImpaired, )) && - (identical(other.data, data) || const DeepCollectionEquality().equals(other.data, data))); + (identical(other.data, data) || + const DeepCollectionEquality().equals(other.data, data))); } @override @@ -50266,7 +52659,9 @@ extension $UploadSubtitleDtoExtension on UploadSubtitleDto { language: (language != null ? language.value : this.language), format: (format != null ? format.value : this.format), isForced: (isForced != null ? isForced.value : this.isForced), - isHearingImpaired: (isHearingImpaired != null ? isHearingImpaired.value : this.isHearingImpaired), + isHearingImpaired: (isHearingImpaired != null + ? isHearingImpaired.value + : this.isHearingImpaired), data: (data != null ? data.value : this.data), ); } @@ -50293,7 +52688,8 @@ class UserConfiguration { this.castReceiverId, }); - factory UserConfiguration.fromJson(Map json) => _$UserConfigurationFromJson(json); + factory UserConfiguration.fromJson(Map json) => + _$UserConfigurationFromJson(json); static const toJsonFactory = _$UserConfigurationToJson; Map toJson() => _$UserConfigurationToJson(this); @@ -50494,21 +52890,29 @@ extension $UserConfigurationExtension on UserConfiguration { String? castReceiverId, }) { return UserConfiguration( - audioLanguagePreference: audioLanguagePreference ?? this.audioLanguagePreference, - playDefaultAudioTrack: playDefaultAudioTrack ?? this.playDefaultAudioTrack, - subtitleLanguagePreference: subtitleLanguagePreference ?? this.subtitleLanguagePreference, - displayMissingEpisodes: displayMissingEpisodes ?? this.displayMissingEpisodes, + audioLanguagePreference: + audioLanguagePreference ?? this.audioLanguagePreference, + playDefaultAudioTrack: + playDefaultAudioTrack ?? this.playDefaultAudioTrack, + subtitleLanguagePreference: + subtitleLanguagePreference ?? this.subtitleLanguagePreference, + displayMissingEpisodes: + displayMissingEpisodes ?? this.displayMissingEpisodes, groupedFolders: groupedFolders ?? this.groupedFolders, subtitleMode: subtitleMode ?? this.subtitleMode, - displayCollectionsView: displayCollectionsView ?? this.displayCollectionsView, + displayCollectionsView: + displayCollectionsView ?? this.displayCollectionsView, enableLocalPassword: enableLocalPassword ?? this.enableLocalPassword, orderedViews: orderedViews ?? this.orderedViews, latestItemsExcludes: latestItemsExcludes ?? this.latestItemsExcludes, myMediaExcludes: myMediaExcludes ?? this.myMediaExcludes, hidePlayedInLatest: hidePlayedInLatest ?? this.hidePlayedInLatest, - rememberAudioSelections: rememberAudioSelections ?? this.rememberAudioSelections, - rememberSubtitleSelections: rememberSubtitleSelections ?? this.rememberSubtitleSelections, - enableNextEpisodeAutoPlay: enableNextEpisodeAutoPlay ?? this.enableNextEpisodeAutoPlay, + rememberAudioSelections: + rememberAudioSelections ?? this.rememberAudioSelections, + rememberSubtitleSelections: + rememberSubtitleSelections ?? this.rememberSubtitleSelections, + enableNextEpisodeAutoPlay: + enableNextEpisodeAutoPlay ?? this.enableNextEpisodeAutoPlay, castReceiverId: castReceiverId ?? this.castReceiverId, ); } @@ -50532,29 +52936,54 @@ extension $UserConfigurationExtension on UserConfiguration { Wrapped? castReceiverId, }) { return UserConfiguration( - audioLanguagePreference: - (audioLanguagePreference != null ? audioLanguagePreference.value : this.audioLanguagePreference), - playDefaultAudioTrack: (playDefaultAudioTrack != null ? playDefaultAudioTrack.value : this.playDefaultAudioTrack), - subtitleLanguagePreference: - (subtitleLanguagePreference != null ? subtitleLanguagePreference.value : this.subtitleLanguagePreference), - displayMissingEpisodes: - (displayMissingEpisodes != null ? displayMissingEpisodes.value : this.displayMissingEpisodes), - groupedFolders: (groupedFolders != null ? groupedFolders.value : this.groupedFolders), - subtitleMode: (subtitleMode != null ? subtitleMode.value : this.subtitleMode), - displayCollectionsView: - (displayCollectionsView != null ? displayCollectionsView.value : this.displayCollectionsView), - enableLocalPassword: (enableLocalPassword != null ? enableLocalPassword.value : this.enableLocalPassword), - orderedViews: (orderedViews != null ? orderedViews.value : this.orderedViews), - latestItemsExcludes: (latestItemsExcludes != null ? latestItemsExcludes.value : this.latestItemsExcludes), - myMediaExcludes: (myMediaExcludes != null ? myMediaExcludes.value : this.myMediaExcludes), - hidePlayedInLatest: (hidePlayedInLatest != null ? hidePlayedInLatest.value : this.hidePlayedInLatest), - rememberAudioSelections: - (rememberAudioSelections != null ? rememberAudioSelections.value : this.rememberAudioSelections), - rememberSubtitleSelections: - (rememberSubtitleSelections != null ? rememberSubtitleSelections.value : this.rememberSubtitleSelections), - enableNextEpisodeAutoPlay: - (enableNextEpisodeAutoPlay != null ? enableNextEpisodeAutoPlay.value : this.enableNextEpisodeAutoPlay), - castReceiverId: (castReceiverId != null ? castReceiverId.value : this.castReceiverId), + audioLanguagePreference: (audioLanguagePreference != null + ? audioLanguagePreference.value + : this.audioLanguagePreference), + playDefaultAudioTrack: (playDefaultAudioTrack != null + ? playDefaultAudioTrack.value + : this.playDefaultAudioTrack), + subtitleLanguagePreference: (subtitleLanguagePreference != null + ? subtitleLanguagePreference.value + : this.subtitleLanguagePreference), + displayMissingEpisodes: (displayMissingEpisodes != null + ? displayMissingEpisodes.value + : this.displayMissingEpisodes), + groupedFolders: (groupedFolders != null + ? groupedFolders.value + : this.groupedFolders), + subtitleMode: (subtitleMode != null + ? subtitleMode.value + : this.subtitleMode), + displayCollectionsView: (displayCollectionsView != null + ? displayCollectionsView.value + : this.displayCollectionsView), + enableLocalPassword: (enableLocalPassword != null + ? enableLocalPassword.value + : this.enableLocalPassword), + orderedViews: (orderedViews != null + ? orderedViews.value + : this.orderedViews), + latestItemsExcludes: (latestItemsExcludes != null + ? latestItemsExcludes.value + : this.latestItemsExcludes), + myMediaExcludes: (myMediaExcludes != null + ? myMediaExcludes.value + : this.myMediaExcludes), + hidePlayedInLatest: (hidePlayedInLatest != null + ? hidePlayedInLatest.value + : this.hidePlayedInLatest), + rememberAudioSelections: (rememberAudioSelections != null + ? rememberAudioSelections.value + : this.rememberAudioSelections), + rememberSubtitleSelections: (rememberSubtitleSelections != null + ? rememberSubtitleSelections.value + : this.rememberSubtitleSelections), + enableNextEpisodeAutoPlay: (enableNextEpisodeAutoPlay != null + ? enableNextEpisodeAutoPlay.value + : this.enableNextEpisodeAutoPlay), + castReceiverId: (castReceiverId != null + ? castReceiverId.value + : this.castReceiverId), ); } } @@ -50563,7 +52992,8 @@ extension $UserConfigurationExtension on UserConfiguration { class UserDataChangedMessage { const UserDataChangedMessage({this.data, this.messageId, this.messageType}); - factory UserDataChangedMessage.fromJson(Map json) => _$UserDataChangedMessageFromJson(json); + factory UserDataChangedMessage.fromJson(Map json) => + _$UserDataChangedMessageFromJson(json); static const toJsonFactory = _$UserDataChangedMessageToJson; Map toJson() => _$UserDataChangedMessageToJson(this); @@ -50579,7 +53009,8 @@ class UserDataChangedMessage { fromJson: sessionMessageTypeMessageTypeNullableFromJson, ) final enums.SessionMessageType? messageType; - static enums.SessionMessageType? sessionMessageTypeMessageTypeNullableFromJson(Object? value) => + static enums.SessionMessageType? + sessionMessageTypeMessageTypeNullableFromJson(Object? value) => sessionMessageTypeNullableFromJson( value, enums.SessionMessageType.userdatachanged, @@ -50591,7 +53022,8 @@ class UserDataChangedMessage { bool operator ==(Object other) { return identical(this, other) || (other is UserDataChangedMessage && - (identical(other.data, data) || const DeepCollectionEquality().equals(other.data, data)) && + (identical(other.data, data) || + const DeepCollectionEquality().equals(other.data, data)) && (identical(other.messageId, messageId) || const DeepCollectionEquality().equals( other.messageId, @@ -50645,7 +53077,8 @@ extension $UserDataChangedMessageExtension on UserDataChangedMessage { class UserDataChangeInfo { const UserDataChangeInfo({this.userId, this.userDataList}); - factory UserDataChangeInfo.fromJson(Map json) => _$UserDataChangeInfoFromJson(json); + factory UserDataChangeInfo.fromJson(Map json) => + _$UserDataChangeInfoFromJson(json); static const toJsonFactory = _$UserDataChangeInfoToJson; Map toJson() => _$UserDataChangeInfoToJson(this); @@ -50664,7 +53097,8 @@ class UserDataChangeInfo { bool operator ==(Object other) { return identical(this, other) || (other is UserDataChangeInfo && - (identical(other.userId, userId) || const DeepCollectionEquality().equals(other.userId, userId)) && + (identical(other.userId, userId) || + const DeepCollectionEquality().equals(other.userId, userId)) && (identical(other.userDataList, userDataList) || const DeepCollectionEquality().equals( other.userDataList, @@ -50699,7 +53133,9 @@ extension $UserDataChangeInfoExtension on UserDataChangeInfo { }) { return UserDataChangeInfo( userId: (userId != null ? userId.value : this.userId), - userDataList: (userDataList != null ? userDataList.value : this.userDataList), + userDataList: (userDataList != null + ? userDataList.value + : this.userDataList), ); } } @@ -50708,7 +53144,8 @@ extension $UserDataChangeInfoExtension on UserDataChangeInfo { class UserDeletedMessage { const UserDeletedMessage({this.data, this.messageId, this.messageType}); - factory UserDeletedMessage.fromJson(Map json) => _$UserDeletedMessageFromJson(json); + factory UserDeletedMessage.fromJson(Map json) => + _$UserDeletedMessageFromJson(json); static const toJsonFactory = _$UserDeletedMessageToJson; Map toJson() => _$UserDeletedMessageToJson(this); @@ -50724,7 +53161,8 @@ class UserDeletedMessage { fromJson: sessionMessageTypeMessageTypeNullableFromJson, ) final enums.SessionMessageType? messageType; - static enums.SessionMessageType? sessionMessageTypeMessageTypeNullableFromJson(Object? value) => + static enums.SessionMessageType? + sessionMessageTypeMessageTypeNullableFromJson(Object? value) => sessionMessageTypeNullableFromJson( value, enums.SessionMessageType.userdeleted, @@ -50736,7 +53174,8 @@ class UserDeletedMessage { bool operator ==(Object other) { return identical(this, other) || (other is UserDeletedMessage && - (identical(other.data, data) || const DeepCollectionEquality().equals(other.data, data)) && + (identical(other.data, data) || + const DeepCollectionEquality().equals(other.data, data)) && (identical(other.messageId, messageId) || const DeepCollectionEquality().equals( other.messageId, @@ -50805,7 +53244,8 @@ class UserDto { this.primaryImageAspectRatio, }); - factory UserDto.fromJson(Map json) => _$UserDtoFromJson(json); + factory UserDto.fromJson(Map json) => + _$UserDtoFromJson(json); static const toJsonFactory = _$UserDtoToJson; Map toJson() => _$UserDtoToJson(this); @@ -50845,7 +53285,8 @@ class UserDto { bool operator ==(Object other) { return identical(this, other) || (other is UserDto && - (identical(other.name, name) || const DeepCollectionEquality().equals(other.name, name)) && + (identical(other.name, name) || + const DeepCollectionEquality().equals(other.name, name)) && (identical(other.serverId, serverId) || const DeepCollectionEquality().equals( other.serverId, @@ -50856,7 +53297,8 @@ class UserDto { other.serverName, serverName, )) && - (identical(other.id, id) || const DeepCollectionEquality().equals(other.id, id)) && + (identical(other.id, id) || + const DeepCollectionEquality().equals(other.id, id)) && (identical(other.primaryImageTag, primaryImageTag) || const DeepCollectionEquality().equals( other.primaryImageTag, @@ -50900,7 +53342,8 @@ class UserDto { other.configuration, configuration, )) && - (identical(other.policy, policy) || const DeepCollectionEquality().equals(other.policy, policy)) && + (identical(other.policy, policy) || + const DeepCollectionEquality().equals(other.policy, policy)) && (identical( other.primaryImageAspectRatio, primaryImageAspectRatio, @@ -50957,14 +53400,17 @@ extension $UserDtoExtension on UserDto { id: id ?? this.id, primaryImageTag: primaryImageTag ?? this.primaryImageTag, hasPassword: hasPassword ?? this.hasPassword, - hasConfiguredPassword: hasConfiguredPassword ?? this.hasConfiguredPassword, - hasConfiguredEasyPassword: hasConfiguredEasyPassword ?? this.hasConfiguredEasyPassword, + hasConfiguredPassword: + hasConfiguredPassword ?? this.hasConfiguredPassword, + hasConfiguredEasyPassword: + hasConfiguredEasyPassword ?? this.hasConfiguredEasyPassword, enableAutoLogin: enableAutoLogin ?? this.enableAutoLogin, lastLoginDate: lastLoginDate ?? this.lastLoginDate, lastActivityDate: lastActivityDate ?? this.lastActivityDate, configuration: configuration ?? this.configuration, policy: policy ?? this.policy, - primaryImageAspectRatio: primaryImageAspectRatio ?? this.primaryImageAspectRatio, + primaryImageAspectRatio: + primaryImageAspectRatio ?? this.primaryImageAspectRatio, ); } @@ -50989,18 +53435,32 @@ extension $UserDtoExtension on UserDto { serverId: (serverId != null ? serverId.value : this.serverId), serverName: (serverName != null ? serverName.value : this.serverName), id: (id != null ? id.value : this.id), - primaryImageTag: (primaryImageTag != null ? primaryImageTag.value : this.primaryImageTag), + primaryImageTag: (primaryImageTag != null + ? primaryImageTag.value + : this.primaryImageTag), hasPassword: (hasPassword != null ? hasPassword.value : this.hasPassword), - hasConfiguredPassword: (hasConfiguredPassword != null ? hasConfiguredPassword.value : this.hasConfiguredPassword), - hasConfiguredEasyPassword: - (hasConfiguredEasyPassword != null ? hasConfiguredEasyPassword.value : this.hasConfiguredEasyPassword), - enableAutoLogin: (enableAutoLogin != null ? enableAutoLogin.value : this.enableAutoLogin), - lastLoginDate: (lastLoginDate != null ? lastLoginDate.value : this.lastLoginDate), - lastActivityDate: (lastActivityDate != null ? lastActivityDate.value : this.lastActivityDate), - configuration: (configuration != null ? configuration.value : this.configuration), + hasConfiguredPassword: (hasConfiguredPassword != null + ? hasConfiguredPassword.value + : this.hasConfiguredPassword), + hasConfiguredEasyPassword: (hasConfiguredEasyPassword != null + ? hasConfiguredEasyPassword.value + : this.hasConfiguredEasyPassword), + enableAutoLogin: (enableAutoLogin != null + ? enableAutoLogin.value + : this.enableAutoLogin), + lastLoginDate: (lastLoginDate != null + ? lastLoginDate.value + : this.lastLoginDate), + lastActivityDate: (lastActivityDate != null + ? lastActivityDate.value + : this.lastActivityDate), + configuration: (configuration != null + ? configuration.value + : this.configuration), policy: (policy != null ? policy.value : this.policy), - primaryImageAspectRatio: - (primaryImageAspectRatio != null ? primaryImageAspectRatio.value : this.primaryImageAspectRatio), + primaryImageAspectRatio: (primaryImageAspectRatio != null + ? primaryImageAspectRatio.value + : this.primaryImageAspectRatio), ); } } @@ -51021,7 +53481,8 @@ class UserItemDataDto { this.itemId, }); - factory UserItemDataDto.fromJson(Map json) => _$UserItemDataDtoFromJson(json); + factory UserItemDataDto.fromJson(Map json) => + _$UserItemDataDtoFromJson(json); static const toJsonFactory = _$UserItemDataDtoToJson; Map toJson() => _$UserItemDataDtoToJson(this); @@ -51054,7 +53515,8 @@ class UserItemDataDto { bool operator ==(Object other) { return identical(this, other) || (other is UserItemDataDto && - (identical(other.rating, rating) || const DeepCollectionEquality().equals(other.rating, rating)) && + (identical(other.rating, rating) || + const DeepCollectionEquality().equals(other.rating, rating)) && (identical(other.playedPercentage, playedPercentage) || const DeepCollectionEquality().equals( other.playedPercentage, @@ -51080,15 +53542,19 @@ class UserItemDataDto { other.isFavorite, isFavorite, )) && - (identical(other.likes, likes) || const DeepCollectionEquality().equals(other.likes, likes)) && + (identical(other.likes, likes) || + const DeepCollectionEquality().equals(other.likes, likes)) && (identical(other.lastPlayedDate, lastPlayedDate) || const DeepCollectionEquality().equals( other.lastPlayedDate, lastPlayedDate, )) && - (identical(other.played, played) || const DeepCollectionEquality().equals(other.played, played)) && - (identical(other.key, key) || const DeepCollectionEquality().equals(other.key, key)) && - (identical(other.itemId, itemId) || const DeepCollectionEquality().equals(other.itemId, itemId))); + (identical(other.played, played) || + const DeepCollectionEquality().equals(other.played, played)) && + (identical(other.key, key) || + const DeepCollectionEquality().equals(other.key, key)) && + (identical(other.itemId, itemId) || + const DeepCollectionEquality().equals(other.itemId, itemId))); } @override @@ -51128,7 +53594,8 @@ extension $UserItemDataDtoExtension on UserItemDataDto { rating: rating ?? this.rating, playedPercentage: playedPercentage ?? this.playedPercentage, unplayedItemCount: unplayedItemCount ?? this.unplayedItemCount, - playbackPositionTicks: playbackPositionTicks ?? this.playbackPositionTicks, + playbackPositionTicks: + playbackPositionTicks ?? this.playbackPositionTicks, playCount: playCount ?? this.playCount, isFavorite: isFavorite ?? this.isFavorite, likes: likes ?? this.likes, @@ -51154,13 +53621,21 @@ extension $UserItemDataDtoExtension on UserItemDataDto { }) { return UserItemDataDto( rating: (rating != null ? rating.value : this.rating), - playedPercentage: (playedPercentage != null ? playedPercentage.value : this.playedPercentage), - unplayedItemCount: (unplayedItemCount != null ? unplayedItemCount.value : this.unplayedItemCount), - playbackPositionTicks: (playbackPositionTicks != null ? playbackPositionTicks.value : this.playbackPositionTicks), + playedPercentage: (playedPercentage != null + ? playedPercentage.value + : this.playedPercentage), + unplayedItemCount: (unplayedItemCount != null + ? unplayedItemCount.value + : this.unplayedItemCount), + playbackPositionTicks: (playbackPositionTicks != null + ? playbackPositionTicks.value + : this.playbackPositionTicks), playCount: (playCount != null ? playCount.value : this.playCount), isFavorite: (isFavorite != null ? isFavorite.value : this.isFavorite), likes: (likes != null ? likes.value : this.likes), - lastPlayedDate: (lastPlayedDate != null ? lastPlayedDate.value : this.lastPlayedDate), + lastPlayedDate: (lastPlayedDate != null + ? lastPlayedDate.value + : this.lastPlayedDate), played: (played != null ? played.value : this.played), key: (key != null ? key.value : this.key), itemId: (itemId != null ? itemId.value : this.itemId), @@ -51217,7 +53692,8 @@ class UserPolicy { this.syncPlayAccess, }); - factory UserPolicy.fromJson(Map json) => _$UserPolicyFromJson(json); + factory UserPolicy.fromJson(Map json) => + _$UserPolicyFromJson(json); static const toJsonFactory = _$UserPolicyToJson; Map toJson() => _$UserPolicyToJson(this); @@ -51735,47 +54211,70 @@ extension $UserPolicyExtension on UserPolicy { return UserPolicy( isAdministrator: isAdministrator ?? this.isAdministrator, isHidden: isHidden ?? this.isHidden, - enableCollectionManagement: enableCollectionManagement ?? this.enableCollectionManagement, - enableSubtitleManagement: enableSubtitleManagement ?? this.enableSubtitleManagement, - enableLyricManagement: enableLyricManagement ?? this.enableLyricManagement, + enableCollectionManagement: + enableCollectionManagement ?? this.enableCollectionManagement, + enableSubtitleManagement: + enableSubtitleManagement ?? this.enableSubtitleManagement, + enableLyricManagement: + enableLyricManagement ?? this.enableLyricManagement, isDisabled: isDisabled ?? this.isDisabled, maxParentalRating: maxParentalRating ?? this.maxParentalRating, maxParentalSubRating: maxParentalSubRating ?? this.maxParentalSubRating, blockedTags: blockedTags ?? this.blockedTags, allowedTags: allowedTags ?? this.allowedTags, - enableUserPreferenceAccess: enableUserPreferenceAccess ?? this.enableUserPreferenceAccess, + enableUserPreferenceAccess: + enableUserPreferenceAccess ?? this.enableUserPreferenceAccess, accessSchedules: accessSchedules ?? this.accessSchedules, blockUnratedItems: blockUnratedItems ?? this.blockUnratedItems, - enableRemoteControlOfOtherUsers: enableRemoteControlOfOtherUsers ?? this.enableRemoteControlOfOtherUsers, - enableSharedDeviceControl: enableSharedDeviceControl ?? this.enableSharedDeviceControl, + enableRemoteControlOfOtherUsers: + enableRemoteControlOfOtherUsers ?? + this.enableRemoteControlOfOtherUsers, + enableSharedDeviceControl: + enableSharedDeviceControl ?? this.enableSharedDeviceControl, enableRemoteAccess: enableRemoteAccess ?? this.enableRemoteAccess, - enableLiveTvManagement: enableLiveTvManagement ?? this.enableLiveTvManagement, + enableLiveTvManagement: + enableLiveTvManagement ?? this.enableLiveTvManagement, enableLiveTvAccess: enableLiveTvAccess ?? this.enableLiveTvAccess, enableMediaPlayback: enableMediaPlayback ?? this.enableMediaPlayback, - enableAudioPlaybackTranscoding: enableAudioPlaybackTranscoding ?? this.enableAudioPlaybackTranscoding, - enableVideoPlaybackTranscoding: enableVideoPlaybackTranscoding ?? this.enableVideoPlaybackTranscoding, - enablePlaybackRemuxing: enablePlaybackRemuxing ?? this.enablePlaybackRemuxing, - forceRemoteSourceTranscoding: forceRemoteSourceTranscoding ?? this.forceRemoteSourceTranscoding, - enableContentDeletion: enableContentDeletion ?? this.enableContentDeletion, - enableContentDeletionFromFolders: enableContentDeletionFromFolders ?? this.enableContentDeletionFromFolders, - enableContentDownloading: enableContentDownloading ?? this.enableContentDownloading, - enableSyncTranscoding: enableSyncTranscoding ?? this.enableSyncTranscoding, - enableMediaConversion: enableMediaConversion ?? this.enableMediaConversion, + enableAudioPlaybackTranscoding: + enableAudioPlaybackTranscoding ?? this.enableAudioPlaybackTranscoding, + enableVideoPlaybackTranscoding: + enableVideoPlaybackTranscoding ?? this.enableVideoPlaybackTranscoding, + enablePlaybackRemuxing: + enablePlaybackRemuxing ?? this.enablePlaybackRemuxing, + forceRemoteSourceTranscoding: + forceRemoteSourceTranscoding ?? this.forceRemoteSourceTranscoding, + enableContentDeletion: + enableContentDeletion ?? this.enableContentDeletion, + enableContentDeletionFromFolders: + enableContentDeletionFromFolders ?? + this.enableContentDeletionFromFolders, + enableContentDownloading: + enableContentDownloading ?? this.enableContentDownloading, + enableSyncTranscoding: + enableSyncTranscoding ?? this.enableSyncTranscoding, + enableMediaConversion: + enableMediaConversion ?? this.enableMediaConversion, enabledDevices: enabledDevices ?? this.enabledDevices, enableAllDevices: enableAllDevices ?? this.enableAllDevices, enabledChannels: enabledChannels ?? this.enabledChannels, enableAllChannels: enableAllChannels ?? this.enableAllChannels, enabledFolders: enabledFolders ?? this.enabledFolders, enableAllFolders: enableAllFolders ?? this.enableAllFolders, - invalidLoginAttemptCount: invalidLoginAttemptCount ?? this.invalidLoginAttemptCount, - loginAttemptsBeforeLockout: loginAttemptsBeforeLockout ?? this.loginAttemptsBeforeLockout, + invalidLoginAttemptCount: + invalidLoginAttemptCount ?? this.invalidLoginAttemptCount, + loginAttemptsBeforeLockout: + loginAttemptsBeforeLockout ?? this.loginAttemptsBeforeLockout, maxActiveSessions: maxActiveSessions ?? this.maxActiveSessions, enablePublicSharing: enablePublicSharing ?? this.enablePublicSharing, blockedMediaFolders: blockedMediaFolders ?? this.blockedMediaFolders, blockedChannels: blockedChannels ?? this.blockedChannels, - remoteClientBitrateLimit: remoteClientBitrateLimit ?? this.remoteClientBitrateLimit, - authenticationProviderId: authenticationProviderId ?? this.authenticationProviderId, - passwordResetProviderId: passwordResetProviderId ?? this.passwordResetProviderId, + remoteClientBitrateLimit: + remoteClientBitrateLimit ?? this.remoteClientBitrateLimit, + authenticationProviderId: + authenticationProviderId ?? this.authenticationProviderId, + passwordResetProviderId: + passwordResetProviderId ?? this.passwordResetProviderId, syncPlayAccess: syncPlayAccess ?? this.syncPlayAccess, ); } @@ -51827,72 +54326,131 @@ extension $UserPolicyExtension on UserPolicy { Wrapped? syncPlayAccess, }) { return UserPolicy( - isAdministrator: (isAdministrator != null ? isAdministrator.value : this.isAdministrator), + isAdministrator: (isAdministrator != null + ? isAdministrator.value + : this.isAdministrator), isHidden: (isHidden != null ? isHidden.value : this.isHidden), - enableCollectionManagement: - (enableCollectionManagement != null ? enableCollectionManagement.value : this.enableCollectionManagement), - enableSubtitleManagement: - (enableSubtitleManagement != null ? enableSubtitleManagement.value : this.enableSubtitleManagement), - enableLyricManagement: (enableLyricManagement != null ? enableLyricManagement.value : this.enableLyricManagement), + enableCollectionManagement: (enableCollectionManagement != null + ? enableCollectionManagement.value + : this.enableCollectionManagement), + enableSubtitleManagement: (enableSubtitleManagement != null + ? enableSubtitleManagement.value + : this.enableSubtitleManagement), + enableLyricManagement: (enableLyricManagement != null + ? enableLyricManagement.value + : this.enableLyricManagement), isDisabled: (isDisabled != null ? isDisabled.value : this.isDisabled), - maxParentalRating: (maxParentalRating != null ? maxParentalRating.value : this.maxParentalRating), - maxParentalSubRating: (maxParentalSubRating != null ? maxParentalSubRating.value : this.maxParentalSubRating), + maxParentalRating: (maxParentalRating != null + ? maxParentalRating.value + : this.maxParentalRating), + maxParentalSubRating: (maxParentalSubRating != null + ? maxParentalSubRating.value + : this.maxParentalSubRating), blockedTags: (blockedTags != null ? blockedTags.value : this.blockedTags), allowedTags: (allowedTags != null ? allowedTags.value : this.allowedTags), - enableUserPreferenceAccess: - (enableUserPreferenceAccess != null ? enableUserPreferenceAccess.value : this.enableUserPreferenceAccess), - accessSchedules: (accessSchedules != null ? accessSchedules.value : this.accessSchedules), - blockUnratedItems: (blockUnratedItems != null ? blockUnratedItems.value : this.blockUnratedItems), + enableUserPreferenceAccess: (enableUserPreferenceAccess != null + ? enableUserPreferenceAccess.value + : this.enableUserPreferenceAccess), + accessSchedules: (accessSchedules != null + ? accessSchedules.value + : this.accessSchedules), + blockUnratedItems: (blockUnratedItems != null + ? blockUnratedItems.value + : this.blockUnratedItems), enableRemoteControlOfOtherUsers: (enableRemoteControlOfOtherUsers != null ? enableRemoteControlOfOtherUsers.value : this.enableRemoteControlOfOtherUsers), - enableSharedDeviceControl: - (enableSharedDeviceControl != null ? enableSharedDeviceControl.value : this.enableSharedDeviceControl), - enableRemoteAccess: (enableRemoteAccess != null ? enableRemoteAccess.value : this.enableRemoteAccess), - enableLiveTvManagement: - (enableLiveTvManagement != null ? enableLiveTvManagement.value : this.enableLiveTvManagement), - enableLiveTvAccess: (enableLiveTvAccess != null ? enableLiveTvAccess.value : this.enableLiveTvAccess), - enableMediaPlayback: (enableMediaPlayback != null ? enableMediaPlayback.value : this.enableMediaPlayback), + enableSharedDeviceControl: (enableSharedDeviceControl != null + ? enableSharedDeviceControl.value + : this.enableSharedDeviceControl), + enableRemoteAccess: (enableRemoteAccess != null + ? enableRemoteAccess.value + : this.enableRemoteAccess), + enableLiveTvManagement: (enableLiveTvManagement != null + ? enableLiveTvManagement.value + : this.enableLiveTvManagement), + enableLiveTvAccess: (enableLiveTvAccess != null + ? enableLiveTvAccess.value + : this.enableLiveTvAccess), + enableMediaPlayback: (enableMediaPlayback != null + ? enableMediaPlayback.value + : this.enableMediaPlayback), enableAudioPlaybackTranscoding: (enableAudioPlaybackTranscoding != null ? enableAudioPlaybackTranscoding.value : this.enableAudioPlaybackTranscoding), enableVideoPlaybackTranscoding: (enableVideoPlaybackTranscoding != null ? enableVideoPlaybackTranscoding.value : this.enableVideoPlaybackTranscoding), - enablePlaybackRemuxing: - (enablePlaybackRemuxing != null ? enablePlaybackRemuxing.value : this.enablePlaybackRemuxing), + enablePlaybackRemuxing: (enablePlaybackRemuxing != null + ? enablePlaybackRemuxing.value + : this.enablePlaybackRemuxing), forceRemoteSourceTranscoding: (forceRemoteSourceTranscoding != null ? forceRemoteSourceTranscoding.value : this.forceRemoteSourceTranscoding), - enableContentDeletion: (enableContentDeletion != null ? enableContentDeletion.value : this.enableContentDeletion), - enableContentDeletionFromFolders: (enableContentDeletionFromFolders != null + enableContentDeletion: (enableContentDeletion != null + ? enableContentDeletion.value + : this.enableContentDeletion), + enableContentDeletionFromFolders: + (enableContentDeletionFromFolders != null ? enableContentDeletionFromFolders.value : this.enableContentDeletionFromFolders), - enableContentDownloading: - (enableContentDownloading != null ? enableContentDownloading.value : this.enableContentDownloading), - enableSyncTranscoding: (enableSyncTranscoding != null ? enableSyncTranscoding.value : this.enableSyncTranscoding), - enableMediaConversion: (enableMediaConversion != null ? enableMediaConversion.value : this.enableMediaConversion), - enabledDevices: (enabledDevices != null ? enabledDevices.value : this.enabledDevices), - enableAllDevices: (enableAllDevices != null ? enableAllDevices.value : this.enableAllDevices), - enabledChannels: (enabledChannels != null ? enabledChannels.value : this.enabledChannels), - enableAllChannels: (enableAllChannels != null ? enableAllChannels.value : this.enableAllChannels), - enabledFolders: (enabledFolders != null ? enabledFolders.value : this.enabledFolders), - enableAllFolders: (enableAllFolders != null ? enableAllFolders.value : this.enableAllFolders), - invalidLoginAttemptCount: - (invalidLoginAttemptCount != null ? invalidLoginAttemptCount.value : this.invalidLoginAttemptCount), - loginAttemptsBeforeLockout: - (loginAttemptsBeforeLockout != null ? loginAttemptsBeforeLockout.value : this.loginAttemptsBeforeLockout), - maxActiveSessions: (maxActiveSessions != null ? maxActiveSessions.value : this.maxActiveSessions), - enablePublicSharing: (enablePublicSharing != null ? enablePublicSharing.value : this.enablePublicSharing), - blockedMediaFolders: (blockedMediaFolders != null ? blockedMediaFolders.value : this.blockedMediaFolders), - blockedChannels: (blockedChannels != null ? blockedChannels.value : this.blockedChannels), - remoteClientBitrateLimit: - (remoteClientBitrateLimit != null ? remoteClientBitrateLimit.value : this.remoteClientBitrateLimit), - authenticationProviderId: - (authenticationProviderId != null ? authenticationProviderId.value : this.authenticationProviderId), - passwordResetProviderId: - (passwordResetProviderId != null ? passwordResetProviderId.value : this.passwordResetProviderId), - syncPlayAccess: (syncPlayAccess != null ? syncPlayAccess.value : this.syncPlayAccess), + enableContentDownloading: (enableContentDownloading != null + ? enableContentDownloading.value + : this.enableContentDownloading), + enableSyncTranscoding: (enableSyncTranscoding != null + ? enableSyncTranscoding.value + : this.enableSyncTranscoding), + enableMediaConversion: (enableMediaConversion != null + ? enableMediaConversion.value + : this.enableMediaConversion), + enabledDevices: (enabledDevices != null + ? enabledDevices.value + : this.enabledDevices), + enableAllDevices: (enableAllDevices != null + ? enableAllDevices.value + : this.enableAllDevices), + enabledChannels: (enabledChannels != null + ? enabledChannels.value + : this.enabledChannels), + enableAllChannels: (enableAllChannels != null + ? enableAllChannels.value + : this.enableAllChannels), + enabledFolders: (enabledFolders != null + ? enabledFolders.value + : this.enabledFolders), + enableAllFolders: (enableAllFolders != null + ? enableAllFolders.value + : this.enableAllFolders), + invalidLoginAttemptCount: (invalidLoginAttemptCount != null + ? invalidLoginAttemptCount.value + : this.invalidLoginAttemptCount), + loginAttemptsBeforeLockout: (loginAttemptsBeforeLockout != null + ? loginAttemptsBeforeLockout.value + : this.loginAttemptsBeforeLockout), + maxActiveSessions: (maxActiveSessions != null + ? maxActiveSessions.value + : this.maxActiveSessions), + enablePublicSharing: (enablePublicSharing != null + ? enablePublicSharing.value + : this.enablePublicSharing), + blockedMediaFolders: (blockedMediaFolders != null + ? blockedMediaFolders.value + : this.blockedMediaFolders), + blockedChannels: (blockedChannels != null + ? blockedChannels.value + : this.blockedChannels), + remoteClientBitrateLimit: (remoteClientBitrateLimit != null + ? remoteClientBitrateLimit.value + : this.remoteClientBitrateLimit), + authenticationProviderId: (authenticationProviderId != null + ? authenticationProviderId.value + : this.authenticationProviderId), + passwordResetProviderId: (passwordResetProviderId != null + ? passwordResetProviderId.value + : this.passwordResetProviderId), + syncPlayAccess: (syncPlayAccess != null + ? syncPlayAccess.value + : this.syncPlayAccess), ); } } @@ -51901,7 +54459,8 @@ extension $UserPolicyExtension on UserPolicy { class UserUpdatedMessage { const UserUpdatedMessage({this.data, this.messageId, this.messageType}); - factory UserUpdatedMessage.fromJson(Map json) => _$UserUpdatedMessageFromJson(json); + factory UserUpdatedMessage.fromJson(Map json) => + _$UserUpdatedMessageFromJson(json); static const toJsonFactory = _$UserUpdatedMessageToJson; Map toJson() => _$UserUpdatedMessageToJson(this); @@ -51917,7 +54476,8 @@ class UserUpdatedMessage { fromJson: sessionMessageTypeMessageTypeNullableFromJson, ) final enums.SessionMessageType? messageType; - static enums.SessionMessageType? sessionMessageTypeMessageTypeNullableFromJson(Object? value) => + static enums.SessionMessageType? + sessionMessageTypeMessageTypeNullableFromJson(Object? value) => sessionMessageTypeNullableFromJson( value, enums.SessionMessageType.userupdated, @@ -51929,7 +54489,8 @@ class UserUpdatedMessage { bool operator ==(Object other) { return identical(this, other) || (other is UserUpdatedMessage && - (identical(other.data, data) || const DeepCollectionEquality().equals(other.data, data)) && + (identical(other.data, data) || + const DeepCollectionEquality().equals(other.data, data)) && (identical(other.messageId, messageId) || const DeepCollectionEquality().equals( other.messageId, @@ -51986,7 +54547,8 @@ class UtcTimeResponse { this.responseTransmissionTime, }); - factory UtcTimeResponse.fromJson(Map json) => _$UtcTimeResponseFromJson(json); + factory UtcTimeResponse.fromJson(Map json) => + _$UtcTimeResponseFromJson(json); static const toJsonFactory = _$UtcTimeResponseToJson; Map toJson() => _$UtcTimeResponseToJson(this); @@ -52033,7 +54595,8 @@ extension $UtcTimeResponseExtension on UtcTimeResponse { }) { return UtcTimeResponse( requestReceptionTime: requestReceptionTime ?? this.requestReceptionTime, - responseTransmissionTime: responseTransmissionTime ?? this.responseTransmissionTime, + responseTransmissionTime: + responseTransmissionTime ?? this.responseTransmissionTime, ); } @@ -52042,9 +54605,12 @@ extension $UtcTimeResponseExtension on UtcTimeResponse { Wrapped? responseTransmissionTime, }) { return UtcTimeResponse( - requestReceptionTime: (requestReceptionTime != null ? requestReceptionTime.value : this.requestReceptionTime), - responseTransmissionTime: - (responseTransmissionTime != null ? responseTransmissionTime.value : this.responseTransmissionTime), + requestReceptionTime: (requestReceptionTime != null + ? requestReceptionTime.value + : this.requestReceptionTime), + responseTransmissionTime: (responseTransmissionTime != null + ? responseTransmissionTime.value + : this.responseTransmissionTime), ); } } @@ -52053,7 +54619,8 @@ extension $UtcTimeResponseExtension on UtcTimeResponse { class ValidatePathDto { const ValidatePathDto({this.validateWritable, this.path, this.isFile}); - factory ValidatePathDto.fromJson(Map json) => _$ValidatePathDtoFromJson(json); + factory ValidatePathDto.fromJson(Map json) => + _$ValidatePathDtoFromJson(json); static const toJsonFactory = _$ValidatePathDtoToJson; Map toJson() => _$ValidatePathDtoToJson(this); @@ -52075,8 +54642,10 @@ class ValidatePathDto { other.validateWritable, validateWritable, )) && - (identical(other.path, path) || const DeepCollectionEquality().equals(other.path, path)) && - (identical(other.isFile, isFile) || const DeepCollectionEquality().equals(other.isFile, isFile))); + (identical(other.path, path) || + const DeepCollectionEquality().equals(other.path, path)) && + (identical(other.isFile, isFile) || + const DeepCollectionEquality().equals(other.isFile, isFile))); } @override @@ -52109,7 +54678,9 @@ extension $ValidatePathDtoExtension on ValidatePathDto { Wrapped? isFile, }) { return ValidatePathDto( - validateWritable: (validateWritable != null ? validateWritable.value : this.validateWritable), + validateWritable: (validateWritable != null + ? validateWritable.value + : this.validateWritable), path: (path != null ? path.value : this.path), isFile: (isFile != null ? isFile.value : this.isFile), ); @@ -52130,7 +54701,8 @@ class VersionInfo { this.repositoryUrl, }); - factory VersionInfo.fromJson(Map json) => _$VersionInfoFromJson(json); + factory VersionInfo.fromJson(Map json) => + _$VersionInfoFromJson(json); static const toJsonFactory = _$VersionInfoToJson; Map toJson() => _$VersionInfoToJson(this); @@ -52261,14 +54833,20 @@ extension $VersionInfoExtension on VersionInfo { }) { return VersionInfo( version: (version != null ? version.value : this.version), - versionNumber: (versionNumber != null ? versionNumber.value : this.versionNumber), + versionNumber: (versionNumber != null + ? versionNumber.value + : this.versionNumber), changelog: (changelog != null ? changelog.value : this.changelog), targetAbi: (targetAbi != null ? targetAbi.value : this.targetAbi), sourceUrl: (sourceUrl != null ? sourceUrl.value : this.sourceUrl), checksum: (checksum != null ? checksum.value : this.checksum), timestamp: (timestamp != null ? timestamp.value : this.timestamp), - repositoryName: (repositoryName != null ? repositoryName.value : this.repositoryName), - repositoryUrl: (repositoryUrl != null ? repositoryUrl.value : this.repositoryUrl), + repositoryName: (repositoryName != null + ? repositoryName.value + : this.repositoryName), + repositoryUrl: (repositoryUrl != null + ? repositoryUrl.value + : this.repositoryUrl), ); } } @@ -52286,7 +54864,8 @@ class VirtualFolderInfo { this.refreshStatus, }); - factory VirtualFolderInfo.fromJson(Map json) => _$VirtualFolderInfoFromJson(json); + factory VirtualFolderInfo.fromJson(Map json) => + _$VirtualFolderInfoFromJson(json); static const toJsonFactory = _$VirtualFolderInfoToJson; Map toJson() => _$VirtualFolderInfoToJson(this); @@ -52318,7 +54897,8 @@ class VirtualFolderInfo { bool operator ==(Object other) { return identical(this, other) || (other is VirtualFolderInfo && - (identical(other.name, name) || const DeepCollectionEquality().equals(other.name, name)) && + (identical(other.name, name) || + const DeepCollectionEquality().equals(other.name, name)) && (identical(other.locations, locations) || const DeepCollectionEquality().equals( other.locations, @@ -52334,7 +54914,8 @@ class VirtualFolderInfo { other.libraryOptions, libraryOptions, )) && - (identical(other.itemId, itemId) || const DeepCollectionEquality().equals(other.itemId, itemId)) && + (identical(other.itemId, itemId) || + const DeepCollectionEquality().equals(other.itemId, itemId)) && (identical(other.primaryImageItemId, primaryImageItemId) || const DeepCollectionEquality().equals( other.primaryImageItemId, @@ -52404,12 +54985,22 @@ extension $VirtualFolderInfoExtension on VirtualFolderInfo { return VirtualFolderInfo( name: (name != null ? name.value : this.name), locations: (locations != null ? locations.value : this.locations), - collectionType: (collectionType != null ? collectionType.value : this.collectionType), - libraryOptions: (libraryOptions != null ? libraryOptions.value : this.libraryOptions), + collectionType: (collectionType != null + ? collectionType.value + : this.collectionType), + libraryOptions: (libraryOptions != null + ? libraryOptions.value + : this.libraryOptions), itemId: (itemId != null ? itemId.value : this.itemId), - primaryImageItemId: (primaryImageItemId != null ? primaryImageItemId.value : this.primaryImageItemId), - refreshProgress: (refreshProgress != null ? refreshProgress.value : this.refreshProgress), - refreshStatus: (refreshStatus != null ? refreshStatus.value : this.refreshStatus), + primaryImageItemId: (primaryImageItemId != null + ? primaryImageItemId.value + : this.primaryImageItemId), + refreshProgress: (refreshProgress != null + ? refreshProgress.value + : this.refreshProgress), + refreshStatus: (refreshStatus != null + ? refreshStatus.value + : this.refreshStatus), ); } } @@ -52418,7 +55009,8 @@ extension $VirtualFolderInfoExtension on VirtualFolderInfo { class WebSocketMessage { const WebSocketMessage(); - factory WebSocketMessage.fromJson(Map json) => _$WebSocketMessageFromJson(json); + factory WebSocketMessage.fromJson(Map json) => + _$WebSocketMessageFromJson(json); static const toJsonFactory = _$WebSocketMessageToJson; Map toJson() => _$WebSocketMessageToJson(this); @@ -52442,7 +55034,8 @@ class XbmcMetadataOptions { this.enableExtraThumbsDuplication, }); - factory XbmcMetadataOptions.fromJson(Map json) => _$XbmcMetadataOptionsFromJson(json); + factory XbmcMetadataOptions.fromJson(Map json) => + _$XbmcMetadataOptionsFromJson(json); static const toJsonFactory = _$XbmcMetadataOptionsToJson; Map toJson() => _$XbmcMetadataOptionsToJson(this); @@ -52463,7 +55056,8 @@ class XbmcMetadataOptions { bool operator ==(Object other) { return identical(this, other) || (other is XbmcMetadataOptions && - (identical(other.userId, userId) || const DeepCollectionEquality().equals(other.userId, userId)) && + (identical(other.userId, userId) || + const DeepCollectionEquality().equals(other.userId, userId)) && (identical(other.releaseDateFormat, releaseDateFormat) || const DeepCollectionEquality().equals( other.releaseDateFormat, @@ -52514,8 +55108,10 @@ extension $XbmcMetadataOptionsExtension on XbmcMetadataOptions { userId: userId ?? this.userId, releaseDateFormat: releaseDateFormat ?? this.releaseDateFormat, saveImagePathsInNfo: saveImagePathsInNfo ?? this.saveImagePathsInNfo, - enablePathSubstitution: enablePathSubstitution ?? this.enablePathSubstitution, - enableExtraThumbsDuplication: enableExtraThumbsDuplication ?? this.enableExtraThumbsDuplication, + enablePathSubstitution: + enablePathSubstitution ?? this.enablePathSubstitution, + enableExtraThumbsDuplication: + enableExtraThumbsDuplication ?? this.enableExtraThumbsDuplication, ); } @@ -52528,10 +55124,15 @@ extension $XbmcMetadataOptionsExtension on XbmcMetadataOptions { }) { return XbmcMetadataOptions( userId: (userId != null ? userId.value : this.userId), - releaseDateFormat: (releaseDateFormat != null ? releaseDateFormat.value : this.releaseDateFormat), - saveImagePathsInNfo: (saveImagePathsInNfo != null ? saveImagePathsInNfo.value : this.saveImagePathsInNfo), - enablePathSubstitution: - (enablePathSubstitution != null ? enablePathSubstitution.value : this.enablePathSubstitution), + releaseDateFormat: (releaseDateFormat != null + ? releaseDateFormat.value + : this.releaseDateFormat), + saveImagePathsInNfo: (saveImagePathsInNfo != null + ? saveImagePathsInNfo.value + : this.saveImagePathsInNfo), + enablePathSubstitution: (enablePathSubstitution != null + ? enablePathSubstitution.value + : this.enablePathSubstitution), enableExtraThumbsDuplication: (enableExtraThumbsDuplication != null ? enableExtraThumbsDuplication.value : this.enableExtraThumbsDuplication), @@ -52600,23 +55201,30 @@ class BaseItemDto$ImageBlurHashes { other.primary, primary, )) && - (identical(other.art, art) || const DeepCollectionEquality().equals(other.art, art)) && + (identical(other.art, art) || + const DeepCollectionEquality().equals(other.art, art)) && (identical(other.backdrop, backdrop) || const DeepCollectionEquality().equals( other.backdrop, backdrop, )) && - (identical(other.banner, banner) || const DeepCollectionEquality().equals(other.banner, banner)) && - (identical(other.logo, logo) || const DeepCollectionEquality().equals(other.logo, logo)) && - (identical(other.thumb, thumb) || const DeepCollectionEquality().equals(other.thumb, thumb)) && - (identical(other.disc, disc) || const DeepCollectionEquality().equals(other.disc, disc)) && - (identical(other.box, box) || const DeepCollectionEquality().equals(other.box, box)) && + (identical(other.banner, banner) || + const DeepCollectionEquality().equals(other.banner, banner)) && + (identical(other.logo, logo) || + const DeepCollectionEquality().equals(other.logo, logo)) && + (identical(other.thumb, thumb) || + const DeepCollectionEquality().equals(other.thumb, thumb)) && + (identical(other.disc, disc) || + const DeepCollectionEquality().equals(other.disc, disc)) && + (identical(other.box, box) || + const DeepCollectionEquality().equals(other.box, box)) && (identical(other.screenshot, screenshot) || const DeepCollectionEquality().equals( other.screenshot, screenshot, )) && - (identical(other.menu, menu) || const DeepCollectionEquality().equals(other.menu, menu)) && + (identical(other.menu, menu) || + const DeepCollectionEquality().equals(other.menu, menu)) && (identical(other.chapter, chapter) || const DeepCollectionEquality().equals( other.chapter, @@ -52627,7 +55235,8 @@ class BaseItemDto$ImageBlurHashes { other.boxRear, boxRear, )) && - (identical(other.profile, profile) || const DeepCollectionEquality().equals(other.profile, profile))); + (identical(other.profile, profile) || + const DeepCollectionEquality().equals(other.profile, profile))); } @override @@ -52778,23 +55387,30 @@ class BaseItemPerson$ImageBlurHashes { other.primary, primary, )) && - (identical(other.art, art) || const DeepCollectionEquality().equals(other.art, art)) && + (identical(other.art, art) || + const DeepCollectionEquality().equals(other.art, art)) && (identical(other.backdrop, backdrop) || const DeepCollectionEquality().equals( other.backdrop, backdrop, )) && - (identical(other.banner, banner) || const DeepCollectionEquality().equals(other.banner, banner)) && - (identical(other.logo, logo) || const DeepCollectionEquality().equals(other.logo, logo)) && - (identical(other.thumb, thumb) || const DeepCollectionEquality().equals(other.thumb, thumb)) && - (identical(other.disc, disc) || const DeepCollectionEquality().equals(other.disc, disc)) && - (identical(other.box, box) || const DeepCollectionEquality().equals(other.box, box)) && + (identical(other.banner, banner) || + const DeepCollectionEquality().equals(other.banner, banner)) && + (identical(other.logo, logo) || + const DeepCollectionEquality().equals(other.logo, logo)) && + (identical(other.thumb, thumb) || + const DeepCollectionEquality().equals(other.thumb, thumb)) && + (identical(other.disc, disc) || + const DeepCollectionEquality().equals(other.disc, disc)) && + (identical(other.box, box) || + const DeepCollectionEquality().equals(other.box, box)) && (identical(other.screenshot, screenshot) || const DeepCollectionEquality().equals( other.screenshot, screenshot, )) && - (identical(other.menu, menu) || const DeepCollectionEquality().equals(other.menu, menu)) && + (identical(other.menu, menu) || + const DeepCollectionEquality().equals(other.menu, menu)) && (identical(other.chapter, chapter) || const DeepCollectionEquality().equals( other.chapter, @@ -52805,7 +55421,8 @@ class BaseItemPerson$ImageBlurHashes { other.boxRear, boxRear, )) && - (identical(other.profile, profile) || const DeepCollectionEquality().equals(other.profile, profile))); + (identical(other.profile, profile) || + const DeepCollectionEquality().equals(other.profile, profile))); } @override @@ -52829,7 +55446,8 @@ class BaseItemPerson$ImageBlurHashes { runtimeType.hashCode; } -extension $BaseItemPerson$ImageBlurHashesExtension on BaseItemPerson$ImageBlurHashes { +extension $BaseItemPerson$ImageBlurHashesExtension + on BaseItemPerson$ImageBlurHashes { BaseItemPerson$ImageBlurHashes copyWith({ Map? primary, Map? art, @@ -52953,7 +55571,9 @@ List audioSpatialFormatListFromJson( return defaultValue ?? []; } - return audioSpatialFormat.map((e) => audioSpatialFormatFromJson(e.toString())).toList(); + return audioSpatialFormat + .map((e) => audioSpatialFormatFromJson(e.toString())) + .toList(); } List? audioSpatialFormatNullableListFromJson( @@ -52964,7 +55584,9 @@ List? audioSpatialFormatNullableListFromJson( return defaultValue; } - return audioSpatialFormat.map((e) => audioSpatialFormatFromJson(e.toString())).toList(); + return audioSpatialFormat + .map((e) => audioSpatialFormatFromJson(e.toString())) + .toList(); } String? baseItemKindNullableToJson(enums.BaseItemKind? baseItemKind) { @@ -53093,7 +55715,9 @@ List channelItemSortFieldListFromJson( return defaultValue ?? []; } - return channelItemSortField.map((e) => channelItemSortFieldFromJson(e.toString())).toList(); + return channelItemSortField + .map((e) => channelItemSortFieldFromJson(e.toString())) + .toList(); } List? channelItemSortFieldNullableListFromJson( @@ -53104,7 +55728,9 @@ List? channelItemSortFieldNullableListFromJson( return defaultValue; } - return channelItemSortField.map((e) => channelItemSortFieldFromJson(e.toString())).toList(); + return channelItemSortField + .map((e) => channelItemSortFieldFromJson(e.toString())) + .toList(); } String? channelMediaContentTypeNullableToJson( @@ -53167,10 +55793,13 @@ List channelMediaContentTypeListFromJson( return defaultValue ?? []; } - return channelMediaContentType.map((e) => channelMediaContentTypeFromJson(e.toString())).toList(); + return channelMediaContentType + .map((e) => channelMediaContentTypeFromJson(e.toString())) + .toList(); } -List? channelMediaContentTypeNullableListFromJson( +List? +channelMediaContentTypeNullableListFromJson( List? channelMediaContentType, [ List? defaultValue, ]) { @@ -53178,7 +55807,9 @@ List? channelMediaContentTypeNullableListFromJson return defaultValue; } - return channelMediaContentType.map((e) => channelMediaContentTypeFromJson(e.toString())).toList(); + return channelMediaContentType + .map((e) => channelMediaContentTypeFromJson(e.toString())) + .toList(); } String? channelMediaTypeNullableToJson( @@ -53239,7 +55870,9 @@ List channelMediaTypeListFromJson( return defaultValue ?? []; } - return channelMediaType.map((e) => channelMediaTypeFromJson(e.toString())).toList(); + return channelMediaType + .map((e) => channelMediaTypeFromJson(e.toString())) + .toList(); } List? channelMediaTypeNullableListFromJson( @@ -53250,7 +55883,9 @@ List? channelMediaTypeNullableListFromJson( return defaultValue; } - return channelMediaType.map((e) => channelMediaTypeFromJson(e.toString())).toList(); + return channelMediaType + .map((e) => channelMediaTypeFromJson(e.toString())) + .toList(); } String? channelTypeNullableToJson(enums.ChannelType? channelType) { @@ -53343,7 +55978,8 @@ enums.CodecType? codecTypeNullableFromJson( if (codecType == null) { return null; } - return enums.CodecType.values.firstWhereOrNull((e) => e.value == codecType) ?? defaultValue; + return enums.CodecType.values.firstWhereOrNull((e) => e.value == codecType) ?? + defaultValue; } String codecTypeExplodedListToJson(List? codecType) { @@ -53436,7 +56072,9 @@ List collectionTypeListFromJson( return defaultValue ?? []; } - return collectionType.map((e) => collectionTypeFromJson(e.toString())).toList(); + return collectionType + .map((e) => collectionTypeFromJson(e.toString())) + .toList(); } List? collectionTypeNullableListFromJson( @@ -53447,7 +56085,9 @@ List? collectionTypeNullableListFromJson( return defaultValue; } - return collectionType.map((e) => collectionTypeFromJson(e.toString())).toList(); + return collectionType + .map((e) => collectionTypeFromJson(e.toString())) + .toList(); } String? collectionTypeOptionsNullableToJson( @@ -53510,7 +56150,9 @@ List collectionTypeOptionsListFromJson( return defaultValue ?? []; } - return collectionTypeOptions.map((e) => collectionTypeOptionsFromJson(e.toString())).toList(); + return collectionTypeOptions + .map((e) => collectionTypeOptionsFromJson(e.toString())) + .toList(); } List? collectionTypeOptionsNullableListFromJson( @@ -53521,7 +56163,9 @@ List? collectionTypeOptionsNullableListFromJson( return defaultValue; } - return collectionTypeOptions.map((e) => collectionTypeOptionsFromJson(e.toString())).toList(); + return collectionTypeOptions + .map((e) => collectionTypeOptionsFromJson(e.toString())) + .toList(); } String? databaseLockingBehaviorTypesNullableToJson( @@ -53547,7 +56191,8 @@ enums.DatabaseLockingBehaviorTypes databaseLockingBehaviorTypesFromJson( enums.DatabaseLockingBehaviorTypes.swaggerGeneratedUnknown; } -enums.DatabaseLockingBehaviorTypes? databaseLockingBehaviorTypesNullableFromJson( +enums.DatabaseLockingBehaviorTypes? +databaseLockingBehaviorTypesNullableFromJson( Object? databaseLockingBehaviorTypes, [ enums.DatabaseLockingBehaviorTypes? defaultValue, ]) { @@ -53576,7 +56221,8 @@ List databaseLockingBehaviorTypesListToJson( return databaseLockingBehaviorTypes.map((e) => e.value!).toList(); } -List databaseLockingBehaviorTypesListFromJson( +List +databaseLockingBehaviorTypesListFromJson( List? databaseLockingBehaviorTypes, [ List? defaultValue, ]) { @@ -53584,10 +56230,13 @@ List databaseLockingBehaviorTypesListFromJso return defaultValue ?? []; } - return databaseLockingBehaviorTypes.map((e) => databaseLockingBehaviorTypesFromJson(e.toString())).toList(); + return databaseLockingBehaviorTypes + .map((e) => databaseLockingBehaviorTypesFromJson(e.toString())) + .toList(); } -List? databaseLockingBehaviorTypesNullableListFromJson( +List? +databaseLockingBehaviorTypesNullableListFromJson( List? databaseLockingBehaviorTypes, [ List? defaultValue, ]) { @@ -53595,7 +56244,9 @@ List? databaseLockingBehaviorTypesNullableLi return defaultValue; } - return databaseLockingBehaviorTypes.map((e) => databaseLockingBehaviorTypesFromJson(e.toString())).toList(); + return databaseLockingBehaviorTypes + .map((e) => databaseLockingBehaviorTypesFromJson(e.toString())) + .toList(); } String? dayOfWeekNullableToJson(enums.DayOfWeek? dayOfWeek) { @@ -53622,7 +56273,8 @@ enums.DayOfWeek? dayOfWeekNullableFromJson( if (dayOfWeek == null) { return null; } - return enums.DayOfWeek.values.firstWhereOrNull((e) => e.value == dayOfWeek) ?? defaultValue; + return enums.DayOfWeek.values.firstWhereOrNull((e) => e.value == dayOfWeek) ?? + defaultValue; } String dayOfWeekExplodedListToJson(List? dayOfWeek) { @@ -53783,7 +56435,9 @@ List deinterlaceMethodListFromJson( return defaultValue ?? []; } - return deinterlaceMethod.map((e) => deinterlaceMethodFromJson(e.toString())).toList(); + return deinterlaceMethod + .map((e) => deinterlaceMethodFromJson(e.toString())) + .toList(); } List? deinterlaceMethodNullableListFromJson( @@ -53794,7 +56448,9 @@ List? deinterlaceMethodNullableListFromJson( return defaultValue; } - return deinterlaceMethod.map((e) => deinterlaceMethodFromJson(e.toString())).toList(); + return deinterlaceMethod + .map((e) => deinterlaceMethodFromJson(e.toString())) + .toList(); } String? dlnaProfileTypeNullableToJson(enums.DlnaProfileType? dlnaProfileType) { @@ -53853,7 +56509,9 @@ List dlnaProfileTypeListFromJson( return defaultValue ?? []; } - return dlnaProfileType.map((e) => dlnaProfileTypeFromJson(e.toString())).toList(); + return dlnaProfileType + .map((e) => dlnaProfileTypeFromJson(e.toString())) + .toList(); } List? dlnaProfileTypeNullableListFromJson( @@ -53864,7 +56522,9 @@ List? dlnaProfileTypeNullableListFromJson( return defaultValue; } - return dlnaProfileType.map((e) => dlnaProfileTypeFromJson(e.toString())).toList(); + return dlnaProfileType + .map((e) => dlnaProfileTypeFromJson(e.toString())) + .toList(); } String? downMixStereoAlgorithmsNullableToJson( @@ -53927,10 +56587,13 @@ List downMixStereoAlgorithmsListFromJson( return defaultValue ?? []; } - return downMixStereoAlgorithms.map((e) => downMixStereoAlgorithmsFromJson(e.toString())).toList(); + return downMixStereoAlgorithms + .map((e) => downMixStereoAlgorithmsFromJson(e.toString())) + .toList(); } -List? downMixStereoAlgorithmsNullableListFromJson( +List? +downMixStereoAlgorithmsNullableListFromJson( List? downMixStereoAlgorithms, [ List? defaultValue, ]) { @@ -53938,7 +56601,9 @@ List? downMixStereoAlgorithmsNullableListFromJson return defaultValue; } - return downMixStereoAlgorithms.map((e) => downMixStereoAlgorithmsFromJson(e.toString())).toList(); + return downMixStereoAlgorithms + .map((e) => downMixStereoAlgorithmsFromJson(e.toString())) + .toList(); } String? dynamicDayOfWeekNullableToJson( @@ -53999,7 +56664,9 @@ List dynamicDayOfWeekListFromJson( return defaultValue ?? []; } - return dynamicDayOfWeek.map((e) => dynamicDayOfWeekFromJson(e.toString())).toList(); + return dynamicDayOfWeek + .map((e) => dynamicDayOfWeekFromJson(e.toString())) + .toList(); } List? dynamicDayOfWeekNullableListFromJson( @@ -54010,7 +56677,9 @@ List? dynamicDayOfWeekNullableListFromJson( return defaultValue; } - return dynamicDayOfWeek.map((e) => dynamicDayOfWeekFromJson(e.toString())).toList(); + return dynamicDayOfWeek + .map((e) => dynamicDayOfWeekFromJson(e.toString())) + .toList(); } String? embeddedSubtitleOptionsNullableToJson( @@ -54073,10 +56742,13 @@ List embeddedSubtitleOptionsListFromJson( return defaultValue ?? []; } - return embeddedSubtitleOptions.map((e) => embeddedSubtitleOptionsFromJson(e.toString())).toList(); + return embeddedSubtitleOptions + .map((e) => embeddedSubtitleOptionsFromJson(e.toString())) + .toList(); } -List? embeddedSubtitleOptionsNullableListFromJson( +List? +embeddedSubtitleOptionsNullableListFromJson( List? embeddedSubtitleOptions, [ List? defaultValue, ]) { @@ -54084,7 +56756,9 @@ List? embeddedSubtitleOptionsNullableListFromJson return defaultValue; } - return embeddedSubtitleOptions.map((e) => embeddedSubtitleOptionsFromJson(e.toString())).toList(); + return embeddedSubtitleOptions + .map((e) => embeddedSubtitleOptionsFromJson(e.toString())) + .toList(); } String? encoderPresetNullableToJson(enums.EncoderPreset? encoderPreset) { @@ -54211,7 +56885,9 @@ List encodingContextListFromJson( return defaultValue ?? []; } - return encodingContext.map((e) => encodingContextFromJson(e.toString())).toList(); + return encodingContext + .map((e) => encodingContextFromJson(e.toString())) + .toList(); } List? encodingContextNullableListFromJson( @@ -54222,7 +56898,9 @@ List? encodingContextNullableListFromJson( return defaultValue; } - return encodingContext.map((e) => encodingContextFromJson(e.toString())).toList(); + return encodingContext + .map((e) => encodingContextFromJson(e.toString())) + .toList(); } String? externalIdMediaTypeNullableToJson( @@ -54285,7 +56963,9 @@ List externalIdMediaTypeListFromJson( return defaultValue ?? []; } - return externalIdMediaType.map((e) => externalIdMediaTypeFromJson(e.toString())).toList(); + return externalIdMediaType + .map((e) => externalIdMediaTypeFromJson(e.toString())) + .toList(); } List? externalIdMediaTypeNullableListFromJson( @@ -54296,7 +56976,9 @@ List? externalIdMediaTypeNullableListFromJson( return defaultValue; } - return externalIdMediaType.map((e) => externalIdMediaTypeFromJson(e.toString())).toList(); + return externalIdMediaType + .map((e) => externalIdMediaTypeFromJson(e.toString())) + .toList(); } String? extraTypeNullableToJson(enums.ExtraType? extraType) { @@ -54323,7 +57005,8 @@ enums.ExtraType? extraTypeNullableFromJson( if (extraType == null) { return null; } - return enums.ExtraType.values.firstWhereOrNull((e) => e.value == extraType) ?? defaultValue; + return enums.ExtraType.values.firstWhereOrNull((e) => e.value == extraType) ?? + defaultValue; } String extraTypeExplodedListToJson(List? extraType) { @@ -54420,7 +57103,9 @@ List fileSystemEntryTypeListFromJson( return defaultValue ?? []; } - return fileSystemEntryType.map((e) => fileSystemEntryTypeFromJson(e.toString())).toList(); + return fileSystemEntryType + .map((e) => fileSystemEntryTypeFromJson(e.toString())) + .toList(); } List? fileSystemEntryTypeNullableListFromJson( @@ -54431,7 +57116,9 @@ List? fileSystemEntryTypeNullableListFromJson( return defaultValue; } - return fileSystemEntryType.map((e) => fileSystemEntryTypeFromJson(e.toString())).toList(); + return fileSystemEntryType + .map((e) => fileSystemEntryTypeFromJson(e.toString())) + .toList(); } String? forgotPasswordActionNullableToJson( @@ -54494,7 +57181,9 @@ List forgotPasswordActionListFromJson( return defaultValue ?? []; } - return forgotPasswordAction.map((e) => forgotPasswordActionFromJson(e.toString())).toList(); + return forgotPasswordAction + .map((e) => forgotPasswordActionFromJson(e.toString())) + .toList(); } List? forgotPasswordActionNullableListFromJson( @@ -54505,7 +57194,9 @@ List? forgotPasswordActionNullableListFromJson( return defaultValue; } - return forgotPasswordAction.map((e) => forgotPasswordActionFromJson(e.toString())).toList(); + return forgotPasswordAction + .map((e) => forgotPasswordActionFromJson(e.toString())) + .toList(); } String? generalCommandTypeNullableToJson( @@ -54566,7 +57257,9 @@ List generalCommandTypeListFromJson( return defaultValue ?? []; } - return generalCommandType.map((e) => generalCommandTypeFromJson(e.toString())).toList(); + return generalCommandType + .map((e) => generalCommandTypeFromJson(e.toString())) + .toList(); } List? generalCommandTypeNullableListFromJson( @@ -54577,7 +57270,9 @@ List? generalCommandTypeNullableListFromJson( return defaultValue; } - return generalCommandType.map((e) => generalCommandTypeFromJson(e.toString())).toList(); + return generalCommandType + .map((e) => generalCommandTypeFromJson(e.toString())) + .toList(); } String? groupQueueModeNullableToJson(enums.GroupQueueMode? groupQueueMode) { @@ -54636,7 +57331,9 @@ List groupQueueModeListFromJson( return defaultValue ?? []; } - return groupQueueMode.map((e) => groupQueueModeFromJson(e.toString())).toList(); + return groupQueueMode + .map((e) => groupQueueModeFromJson(e.toString())) + .toList(); } List? groupQueueModeNullableListFromJson( @@ -54647,7 +57344,9 @@ List? groupQueueModeNullableListFromJson( return defaultValue; } - return groupQueueMode.map((e) => groupQueueModeFromJson(e.toString())).toList(); + return groupQueueMode + .map((e) => groupQueueModeFromJson(e.toString())) + .toList(); } String? groupRepeatModeNullableToJson(enums.GroupRepeatMode? groupRepeatMode) { @@ -54706,7 +57405,9 @@ List groupRepeatModeListFromJson( return defaultValue ?? []; } - return groupRepeatMode.map((e) => groupRepeatModeFromJson(e.toString())).toList(); + return groupRepeatMode + .map((e) => groupRepeatModeFromJson(e.toString())) + .toList(); } List? groupRepeatModeNullableListFromJson( @@ -54717,7 +57418,9 @@ List? groupRepeatModeNullableListFromJson( return defaultValue; } - return groupRepeatMode.map((e) => groupRepeatModeFromJson(e.toString())).toList(); + return groupRepeatMode + .map((e) => groupRepeatModeFromJson(e.toString())) + .toList(); } String? groupShuffleModeNullableToJson( @@ -54778,7 +57481,9 @@ List groupShuffleModeListFromJson( return defaultValue ?? []; } - return groupShuffleMode.map((e) => groupShuffleModeFromJson(e.toString())).toList(); + return groupShuffleMode + .map((e) => groupShuffleModeFromJson(e.toString())) + .toList(); } List? groupShuffleModeNullableListFromJson( @@ -54789,7 +57494,9 @@ List? groupShuffleModeNullableListFromJson( return defaultValue; } - return groupShuffleMode.map((e) => groupShuffleModeFromJson(e.toString())).toList(); + return groupShuffleMode + .map((e) => groupShuffleModeFromJson(e.toString())) + .toList(); } String? groupStateTypeNullableToJson(enums.GroupStateType? groupStateType) { @@ -54848,7 +57555,9 @@ List groupStateTypeListFromJson( return defaultValue ?? []; } - return groupStateType.map((e) => groupStateTypeFromJson(e.toString())).toList(); + return groupStateType + .map((e) => groupStateTypeFromJson(e.toString())) + .toList(); } List? groupStateTypeNullableListFromJson( @@ -54859,7 +57568,9 @@ List? groupStateTypeNullableListFromJson( return defaultValue; } - return groupStateType.map((e) => groupStateTypeFromJson(e.toString())).toList(); + return groupStateType + .map((e) => groupStateTypeFromJson(e.toString())) + .toList(); } String? groupUpdateTypeNullableToJson(enums.GroupUpdateType? groupUpdateType) { @@ -54918,7 +57629,9 @@ List groupUpdateTypeListFromJson( return defaultValue ?? []; } - return groupUpdateType.map((e) => groupUpdateTypeFromJson(e.toString())).toList(); + return groupUpdateType + .map((e) => groupUpdateTypeFromJson(e.toString())) + .toList(); } List? groupUpdateTypeNullableListFromJson( @@ -54929,7 +57642,9 @@ List? groupUpdateTypeNullableListFromJson( return defaultValue; } - return groupUpdateType.map((e) => groupUpdateTypeFromJson(e.toString())).toList(); + return groupUpdateType + .map((e) => groupUpdateTypeFromJson(e.toString())) + .toList(); } String? hardwareAccelerationTypeNullableToJson( @@ -54992,10 +57707,13 @@ List hardwareAccelerationTypeListFromJson( return defaultValue ?? []; } - return hardwareAccelerationType.map((e) => hardwareAccelerationTypeFromJson(e.toString())).toList(); + return hardwareAccelerationType + .map((e) => hardwareAccelerationTypeFromJson(e.toString())) + .toList(); } -List? hardwareAccelerationTypeNullableListFromJson( +List? +hardwareAccelerationTypeNullableListFromJson( List? hardwareAccelerationType, [ List? defaultValue, ]) { @@ -55003,7 +57721,9 @@ List? hardwareAccelerationTypeNullableListFromJs return defaultValue; } - return hardwareAccelerationType.map((e) => hardwareAccelerationTypeFromJson(e.toString())).toList(); + return hardwareAccelerationType + .map((e) => hardwareAccelerationTypeFromJson(e.toString())) + .toList(); } String? imageFormatNullableToJson(enums.ImageFormat? imageFormat) { @@ -55130,7 +57850,9 @@ List imageOrientationListFromJson( return defaultValue ?? []; } - return imageOrientation.map((e) => imageOrientationFromJson(e.toString())).toList(); + return imageOrientation + .map((e) => imageOrientationFromJson(e.toString())) + .toList(); } List? imageOrientationNullableListFromJson( @@ -55141,7 +57863,9 @@ List? imageOrientationNullableListFromJson( return defaultValue; } - return imageOrientation.map((e) => imageOrientationFromJson(e.toString())).toList(); + return imageOrientation + .map((e) => imageOrientationFromJson(e.toString())) + .toList(); } String? imageResolutionNullableToJson(enums.ImageResolution? imageResolution) { @@ -55200,7 +57924,9 @@ List imageResolutionListFromJson( return defaultValue ?? []; } - return imageResolution.map((e) => imageResolutionFromJson(e.toString())).toList(); + return imageResolution + .map((e) => imageResolutionFromJson(e.toString())) + .toList(); } List? imageResolutionNullableListFromJson( @@ -55211,7 +57937,9 @@ List? imageResolutionNullableListFromJson( return defaultValue; } - return imageResolution.map((e) => imageResolutionFromJson(e.toString())).toList(); + return imageResolution + .map((e) => imageResolutionFromJson(e.toString())) + .toList(); } String? imageSavingConventionNullableToJson( @@ -55274,7 +58002,9 @@ List imageSavingConventionListFromJson( return defaultValue ?? []; } - return imageSavingConvention.map((e) => imageSavingConventionFromJson(e.toString())).toList(); + return imageSavingConvention + .map((e) => imageSavingConventionFromJson(e.toString())) + .toList(); } List? imageSavingConventionNullableListFromJson( @@ -55285,7 +58015,9 @@ List? imageSavingConventionNullableListFromJson( return defaultValue; } - return imageSavingConvention.map((e) => imageSavingConventionFromJson(e.toString())).toList(); + return imageSavingConvention + .map((e) => imageSavingConventionFromJson(e.toString())) + .toList(); } String? imageTypeNullableToJson(enums.ImageType? imageType) { @@ -55312,7 +58044,8 @@ enums.ImageType? imageTypeNullableFromJson( if (imageType == null) { return null; } - return enums.ImageType.values.firstWhereOrNull((e) => e.value == imageType) ?? defaultValue; + return enums.ImageType.values.firstWhereOrNull((e) => e.value == imageType) ?? + defaultValue; } String imageTypeExplodedListToJson(List? imageType) { @@ -55370,7 +58103,8 @@ enums.IsoType? isoTypeNullableFromJson( if (isoType == null) { return null; } - return enums.IsoType.values.firstWhereOrNull((e) => e.value == isoType) ?? defaultValue; + return enums.IsoType.values.firstWhereOrNull((e) => e.value == isoType) ?? + defaultValue; } String isoTypeExplodedListToJson(List? isoType) { @@ -55629,7 +58363,8 @@ enums.KeepUntil? keepUntilNullableFromJson( if (keepUntil == null) { return null; } - return enums.KeepUntil.values.firstWhereOrNull((e) => e.value == keepUntil) ?? defaultValue; + return enums.KeepUntil.values.firstWhereOrNull((e) => e.value == keepUntil) ?? + defaultValue; } String keepUntilExplodedListToJson(List? keepUntil) { @@ -55726,7 +58461,9 @@ List liveTvServiceStatusListFromJson( return defaultValue ?? []; } - return liveTvServiceStatus.map((e) => liveTvServiceStatusFromJson(e.toString())).toList(); + return liveTvServiceStatus + .map((e) => liveTvServiceStatusFromJson(e.toString())) + .toList(); } List? liveTvServiceStatusNullableListFromJson( @@ -55737,7 +58474,9 @@ List? liveTvServiceStatusNullableListFromJson( return defaultValue; } - return liveTvServiceStatus.map((e) => liveTvServiceStatusFromJson(e.toString())).toList(); + return liveTvServiceStatus + .map((e) => liveTvServiceStatusFromJson(e.toString())) + .toList(); } String? locationTypeNullableToJson(enums.LocationType? locationType) { @@ -55830,7 +58569,8 @@ enums.LogLevel? logLevelNullableFromJson( if (logLevel == null) { return null; } - return enums.LogLevel.values.firstWhereOrNull((e) => e.value == logLevel) ?? defaultValue; + return enums.LogLevel.values.firstWhereOrNull((e) => e.value == logLevel) ?? + defaultValue; } String logLevelExplodedListToJson(List? logLevel) { @@ -55993,7 +58733,9 @@ List mediaSegmentTypeListFromJson( return defaultValue ?? []; } - return mediaSegmentType.map((e) => mediaSegmentTypeFromJson(e.toString())).toList(); + return mediaSegmentType + .map((e) => mediaSegmentTypeFromJson(e.toString())) + .toList(); } List? mediaSegmentTypeNullableListFromJson( @@ -56004,7 +58746,9 @@ List? mediaSegmentTypeNullableListFromJson( return defaultValue; } - return mediaSegmentType.map((e) => mediaSegmentTypeFromJson(e.toString())).toList(); + return mediaSegmentType + .map((e) => mediaSegmentTypeFromJson(e.toString())) + .toList(); } String? mediaSourceTypeNullableToJson(enums.MediaSourceType? mediaSourceType) { @@ -56063,7 +58807,9 @@ List mediaSourceTypeListFromJson( return defaultValue ?? []; } - return mediaSourceType.map((e) => mediaSourceTypeFromJson(e.toString())).toList(); + return mediaSourceType + .map((e) => mediaSourceTypeFromJson(e.toString())) + .toList(); } List? mediaSourceTypeNullableListFromJson( @@ -56074,7 +58820,9 @@ List? mediaSourceTypeNullableListFromJson( return defaultValue; } - return mediaSourceType.map((e) => mediaSourceTypeFromJson(e.toString())).toList(); + return mediaSourceType + .map((e) => mediaSourceTypeFromJson(e.toString())) + .toList(); } String? mediaStreamProtocolNullableToJson( @@ -56137,7 +58885,9 @@ List mediaStreamProtocolListFromJson( return defaultValue ?? []; } - return mediaStreamProtocol.map((e) => mediaStreamProtocolFromJson(e.toString())).toList(); + return mediaStreamProtocol + .map((e) => mediaStreamProtocolFromJson(e.toString())) + .toList(); } List? mediaStreamProtocolNullableListFromJson( @@ -56148,7 +58898,9 @@ List? mediaStreamProtocolNullableListFromJson( return defaultValue; } - return mediaStreamProtocol.map((e) => mediaStreamProtocolFromJson(e.toString())).toList(); + return mediaStreamProtocol + .map((e) => mediaStreamProtocolFromJson(e.toString())) + .toList(); } String? mediaStreamTypeNullableToJson(enums.MediaStreamType? mediaStreamType) { @@ -56207,7 +58959,9 @@ List mediaStreamTypeListFromJson( return defaultValue ?? []; } - return mediaStreamType.map((e) => mediaStreamTypeFromJson(e.toString())).toList(); + return mediaStreamType + .map((e) => mediaStreamTypeFromJson(e.toString())) + .toList(); } List? mediaStreamTypeNullableListFromJson( @@ -56218,7 +58972,9 @@ List? mediaStreamTypeNullableListFromJson( return defaultValue; } - return mediaStreamType.map((e) => mediaStreamTypeFromJson(e.toString())).toList(); + return mediaStreamType + .map((e) => mediaStreamTypeFromJson(e.toString())) + .toList(); } String? mediaTypeNullableToJson(enums.MediaType? mediaType) { @@ -56245,7 +59001,8 @@ enums.MediaType? mediaTypeNullableFromJson( if (mediaType == null) { return null; } - return enums.MediaType.values.firstWhereOrNull((e) => e.value == mediaType) ?? defaultValue; + return enums.MediaType.values.firstWhereOrNull((e) => e.value == mediaType) ?? + defaultValue; } String mediaTypeExplodedListToJson(List? mediaType) { @@ -56410,7 +59167,9 @@ List metadataRefreshModeListFromJson( return defaultValue ?? []; } - return metadataRefreshMode.map((e) => metadataRefreshModeFromJson(e.toString())).toList(); + return metadataRefreshMode + .map((e) => metadataRefreshModeFromJson(e.toString())) + .toList(); } List? metadataRefreshModeNullableListFromJson( @@ -56421,7 +59180,9 @@ List? metadataRefreshModeNullableListFromJson( return defaultValue; } - return metadataRefreshMode.map((e) => metadataRefreshModeFromJson(e.toString())).toList(); + return metadataRefreshMode + .map((e) => metadataRefreshModeFromJson(e.toString())) + .toList(); } String? personKindNullableToJson(enums.PersonKind? personKind) { @@ -56614,7 +59375,9 @@ List playbackErrorCodeListFromJson( return defaultValue ?? []; } - return playbackErrorCode.map((e) => playbackErrorCodeFromJson(e.toString())).toList(); + return playbackErrorCode + .map((e) => playbackErrorCodeFromJson(e.toString())) + .toList(); } List? playbackErrorCodeNullableListFromJson( @@ -56625,7 +59388,9 @@ List? playbackErrorCodeNullableListFromJson( return defaultValue; } - return playbackErrorCode.map((e) => playbackErrorCodeFromJson(e.toString())).toList(); + return playbackErrorCode + .map((e) => playbackErrorCodeFromJson(e.toString())) + .toList(); } String? playbackOrderNullableToJson(enums.PlaybackOrder? playbackOrder) { @@ -56756,7 +59521,9 @@ List playbackRequestTypeListFromJson( return defaultValue ?? []; } - return playbackRequestType.map((e) => playbackRequestTypeFromJson(e.toString())).toList(); + return playbackRequestType + .map((e) => playbackRequestTypeFromJson(e.toString())) + .toList(); } List? playbackRequestTypeNullableListFromJson( @@ -56767,7 +59534,9 @@ List? playbackRequestTypeNullableListFromJson( return defaultValue; } - return playbackRequestType.map((e) => playbackRequestTypeFromJson(e.toString())).toList(); + return playbackRequestType + .map((e) => playbackRequestTypeFromJson(e.toString())) + .toList(); } String? playCommandNullableToJson(enums.PlayCommand? playCommand) { @@ -56962,7 +59731,9 @@ List playQueueUpdateReasonListFromJson( return defaultValue ?? []; } - return playQueueUpdateReason.map((e) => playQueueUpdateReasonFromJson(e.toString())).toList(); + return playQueueUpdateReason + .map((e) => playQueueUpdateReasonFromJson(e.toString())) + .toList(); } List? playQueueUpdateReasonNullableListFromJson( @@ -56973,7 +59744,9 @@ List? playQueueUpdateReasonNullableListFromJson( return defaultValue; } - return playQueueUpdateReason.map((e) => playQueueUpdateReasonFromJson(e.toString())).toList(); + return playQueueUpdateReason + .map((e) => playQueueUpdateReasonFromJson(e.toString())) + .toList(); } String? playstateCommandNullableToJson( @@ -57034,7 +59807,9 @@ List playstateCommandListFromJson( return defaultValue ?? []; } - return playstateCommand.map((e) => playstateCommandFromJson(e.toString())).toList(); + return playstateCommand + .map((e) => playstateCommandFromJson(e.toString())) + .toList(); } List? playstateCommandNullableListFromJson( @@ -57045,7 +59820,9 @@ List? playstateCommandNullableListFromJson( return defaultValue; } - return playstateCommand.map((e) => playstateCommandFromJson(e.toString())).toList(); + return playstateCommand + .map((e) => playstateCommandFromJson(e.toString())) + .toList(); } String? pluginStatusNullableToJson(enums.PluginStatus? pluginStatus) { @@ -57174,7 +59951,9 @@ List processPriorityClassListFromJson( return defaultValue ?? []; } - return processPriorityClass.map((e) => processPriorityClassFromJson(e.toString())).toList(); + return processPriorityClass + .map((e) => processPriorityClassFromJson(e.toString())) + .toList(); } List? processPriorityClassNullableListFromJson( @@ -57185,7 +59964,9 @@ List? processPriorityClassNullableListFromJson( return defaultValue; } - return processPriorityClass.map((e) => processPriorityClassFromJson(e.toString())).toList(); + return processPriorityClass + .map((e) => processPriorityClassFromJson(e.toString())) + .toList(); } String? profileConditionTypeNullableToJson( @@ -57248,7 +60029,9 @@ List profileConditionTypeListFromJson( return defaultValue ?? []; } - return profileConditionType.map((e) => profileConditionTypeFromJson(e.toString())).toList(); + return profileConditionType + .map((e) => profileConditionTypeFromJson(e.toString())) + .toList(); } List? profileConditionTypeNullableListFromJson( @@ -57259,7 +60042,9 @@ List? profileConditionTypeNullableListFromJson( return defaultValue; } - return profileConditionType.map((e) => profileConditionTypeFromJson(e.toString())).toList(); + return profileConditionType + .map((e) => profileConditionTypeFromJson(e.toString())) + .toList(); } String? profileConditionValueNullableToJson( @@ -57322,7 +60107,9 @@ List profileConditionValueListFromJson( return defaultValue ?? []; } - return profileConditionValue.map((e) => profileConditionValueFromJson(e.toString())).toList(); + return profileConditionValue + .map((e) => profileConditionValueFromJson(e.toString())) + .toList(); } List? profileConditionValueNullableListFromJson( @@ -57333,7 +60120,9 @@ List? profileConditionValueNullableListFromJson( return defaultValue; } - return profileConditionValue.map((e) => profileConditionValueFromJson(e.toString())).toList(); + return profileConditionValue + .map((e) => profileConditionValueFromJson(e.toString())) + .toList(); } String? programAudioNullableToJson(enums.ProgramAudio? programAudio) { @@ -57526,7 +60315,9 @@ List recommendationTypeListFromJson( return defaultValue ?? []; } - return recommendationType.map((e) => recommendationTypeFromJson(e.toString())).toList(); + return recommendationType + .map((e) => recommendationTypeFromJson(e.toString())) + .toList(); } List? recommendationTypeNullableListFromJson( @@ -57537,7 +60328,9 @@ List? recommendationTypeNullableListFromJson( return defaultValue; } - return recommendationType.map((e) => recommendationTypeFromJson(e.toString())).toList(); + return recommendationType + .map((e) => recommendationTypeFromJson(e.toString())) + .toList(); } String? recordingStatusNullableToJson(enums.RecordingStatus? recordingStatus) { @@ -57596,7 +60389,9 @@ List recordingStatusListFromJson( return defaultValue ?? []; } - return recordingStatus.map((e) => recordingStatusFromJson(e.toString())).toList(); + return recordingStatus + .map((e) => recordingStatusFromJson(e.toString())) + .toList(); } List? recordingStatusNullableListFromJson( @@ -57607,7 +60402,9 @@ List? recordingStatusNullableListFromJson( return defaultValue; } - return recordingStatus.map((e) => recordingStatusFromJson(e.toString())).toList(); + return recordingStatus + .map((e) => recordingStatusFromJson(e.toString())) + .toList(); } String? repeatModeNullableToJson(enums.RepeatMode? repeatMode) { @@ -57732,7 +60529,9 @@ List scrollDirectionListFromJson( return defaultValue ?? []; } - return scrollDirection.map((e) => scrollDirectionFromJson(e.toString())).toList(); + return scrollDirection + .map((e) => scrollDirectionFromJson(e.toString())) + .toList(); } List? scrollDirectionNullableListFromJson( @@ -57743,7 +60542,9 @@ List? scrollDirectionNullableListFromJson( return defaultValue; } - return scrollDirection.map((e) => scrollDirectionFromJson(e.toString())).toList(); + return scrollDirection + .map((e) => scrollDirectionFromJson(e.toString())) + .toList(); } String? sendCommandTypeNullableToJson(enums.SendCommandType? sendCommandType) { @@ -57802,7 +60603,9 @@ List sendCommandTypeListFromJson( return defaultValue ?? []; } - return sendCommandType.map((e) => sendCommandTypeFromJson(e.toString())).toList(); + return sendCommandType + .map((e) => sendCommandTypeFromJson(e.toString())) + .toList(); } List? sendCommandTypeNullableListFromJson( @@ -57813,7 +60616,9 @@ List? sendCommandTypeNullableListFromJson( return defaultValue; } - return sendCommandType.map((e) => sendCommandTypeFromJson(e.toString())).toList(); + return sendCommandType + .map((e) => sendCommandTypeFromJson(e.toString())) + .toList(); } String? seriesStatusNullableToJson(enums.SeriesStatus? seriesStatus) { @@ -57940,7 +60745,9 @@ List sessionMessageTypeListFromJson( return defaultValue ?? []; } - return sessionMessageType.map((e) => sessionMessageTypeFromJson(e.toString())).toList(); + return sessionMessageType + .map((e) => sessionMessageTypeFromJson(e.toString())) + .toList(); } List? sessionMessageTypeNullableListFromJson( @@ -57951,7 +60758,9 @@ List? sessionMessageTypeNullableListFromJson( return defaultValue; } - return sessionMessageType.map((e) => sessionMessageTypeFromJson(e.toString())).toList(); + return sessionMessageType + .map((e) => sessionMessageTypeFromJson(e.toString())) + .toList(); } String? sortOrderNullableToJson(enums.SortOrder? sortOrder) { @@ -57978,7 +60787,8 @@ enums.SortOrder? sortOrderNullableFromJson( if (sortOrder == null) { return null; } - return enums.SortOrder.values.firstWhereOrNull((e) => e.value == sortOrder) ?? defaultValue; + return enums.SortOrder.values.firstWhereOrNull((e) => e.value == sortOrder) ?? + defaultValue; } String sortOrderExplodedListToJson(List? sortOrder) { @@ -58075,7 +60885,9 @@ List subtitleDeliveryMethodListFromJson( return defaultValue ?? []; } - return subtitleDeliveryMethod.map((e) => subtitleDeliveryMethodFromJson(e.toString())).toList(); + return subtitleDeliveryMethod + .map((e) => subtitleDeliveryMethodFromJson(e.toString())) + .toList(); } List? subtitleDeliveryMethodNullableListFromJson( @@ -58086,7 +60898,9 @@ List? subtitleDeliveryMethodNullableListFromJson( return defaultValue; } - return subtitleDeliveryMethod.map((e) => subtitleDeliveryMethodFromJson(e.toString())).toList(); + return subtitleDeliveryMethod + .map((e) => subtitleDeliveryMethodFromJson(e.toString())) + .toList(); } String? subtitlePlaybackModeNullableToJson( @@ -58149,7 +60963,9 @@ List subtitlePlaybackModeListFromJson( return defaultValue ?? []; } - return subtitlePlaybackMode.map((e) => subtitlePlaybackModeFromJson(e.toString())).toList(); + return subtitlePlaybackMode + .map((e) => subtitlePlaybackModeFromJson(e.toString())) + .toList(); } List? subtitlePlaybackModeNullableListFromJson( @@ -58160,7 +60976,9 @@ List? subtitlePlaybackModeNullableListFromJson( return defaultValue; } - return subtitlePlaybackMode.map((e) => subtitlePlaybackModeFromJson(e.toString())).toList(); + return subtitlePlaybackMode + .map((e) => subtitlePlaybackModeFromJson(e.toString())) + .toList(); } String? syncPlayUserAccessTypeNullableToJson( @@ -58223,7 +61041,9 @@ List syncPlayUserAccessTypeListFromJson( return defaultValue ?? []; } - return syncPlayUserAccessType.map((e) => syncPlayUserAccessTypeFromJson(e.toString())).toList(); + return syncPlayUserAccessType + .map((e) => syncPlayUserAccessTypeFromJson(e.toString())) + .toList(); } List? syncPlayUserAccessTypeNullableListFromJson( @@ -58234,7 +61054,9 @@ List? syncPlayUserAccessTypeNullableListFromJson( return defaultValue; } - return syncPlayUserAccessType.map((e) => syncPlayUserAccessTypeFromJson(e.toString())).toList(); + return syncPlayUserAccessType + .map((e) => syncPlayUserAccessTypeFromJson(e.toString())) + .toList(); } String? taskCompletionStatusNullableToJson( @@ -58297,7 +61119,9 @@ List taskCompletionStatusListFromJson( return defaultValue ?? []; } - return taskCompletionStatus.map((e) => taskCompletionStatusFromJson(e.toString())).toList(); + return taskCompletionStatus + .map((e) => taskCompletionStatusFromJson(e.toString())) + .toList(); } List? taskCompletionStatusNullableListFromJson( @@ -58308,7 +61132,9 @@ List? taskCompletionStatusNullableListFromJson( return defaultValue; } - return taskCompletionStatus.map((e) => taskCompletionStatusFromJson(e.toString())).toList(); + return taskCompletionStatus + .map((e) => taskCompletionStatusFromJson(e.toString())) + .toList(); } String? taskStateNullableToJson(enums.TaskState? taskState) { @@ -58335,7 +61161,8 @@ enums.TaskState? taskStateNullableFromJson( if (taskState == null) { return null; } - return enums.TaskState.values.firstWhereOrNull((e) => e.value == taskState) ?? defaultValue; + return enums.TaskState.values.firstWhereOrNull((e) => e.value == taskState) ?? + defaultValue; } String taskStateExplodedListToJson(List? taskState) { @@ -58432,7 +61259,9 @@ List taskTriggerInfoTypeListFromJson( return defaultValue ?? []; } - return taskTriggerInfoType.map((e) => taskTriggerInfoTypeFromJson(e.toString())).toList(); + return taskTriggerInfoType + .map((e) => taskTriggerInfoTypeFromJson(e.toString())) + .toList(); } List? taskTriggerInfoTypeNullableListFromJson( @@ -58443,7 +61272,9 @@ List? taskTriggerInfoTypeNullableListFromJson( return defaultValue; } - return taskTriggerInfoType.map((e) => taskTriggerInfoTypeFromJson(e.toString())).toList(); + return taskTriggerInfoType + .map((e) => taskTriggerInfoTypeFromJson(e.toString())) + .toList(); } String? tonemappingAlgorithmNullableToJson( @@ -58506,7 +61337,9 @@ List tonemappingAlgorithmListFromJson( return defaultValue ?? []; } - return tonemappingAlgorithm.map((e) => tonemappingAlgorithmFromJson(e.toString())).toList(); + return tonemappingAlgorithm + .map((e) => tonemappingAlgorithmFromJson(e.toString())) + .toList(); } List? tonemappingAlgorithmNullableListFromJson( @@ -58517,7 +61350,9 @@ List? tonemappingAlgorithmNullableListFromJson( return defaultValue; } - return tonemappingAlgorithm.map((e) => tonemappingAlgorithmFromJson(e.toString())).toList(); + return tonemappingAlgorithm + .map((e) => tonemappingAlgorithmFromJson(e.toString())) + .toList(); } String? tonemappingModeNullableToJson(enums.TonemappingMode? tonemappingMode) { @@ -58576,7 +61411,9 @@ List tonemappingModeListFromJson( return defaultValue ?? []; } - return tonemappingMode.map((e) => tonemappingModeFromJson(e.toString())).toList(); + return tonemappingMode + .map((e) => tonemappingModeFromJson(e.toString())) + .toList(); } List? tonemappingModeNullableListFromJson( @@ -58587,7 +61424,9 @@ List? tonemappingModeNullableListFromJson( return defaultValue; } - return tonemappingMode.map((e) => tonemappingModeFromJson(e.toString())).toList(); + return tonemappingMode + .map((e) => tonemappingModeFromJson(e.toString())) + .toList(); } String? tonemappingRangeNullableToJson( @@ -58648,7 +61487,9 @@ List tonemappingRangeListFromJson( return defaultValue ?? []; } - return tonemappingRange.map((e) => tonemappingRangeFromJson(e.toString())).toList(); + return tonemappingRange + .map((e) => tonemappingRangeFromJson(e.toString())) + .toList(); } List? tonemappingRangeNullableListFromJson( @@ -58659,7 +61500,9 @@ List? tonemappingRangeNullableListFromJson( return defaultValue; } - return tonemappingRange.map((e) => tonemappingRangeFromJson(e.toString())).toList(); + return tonemappingRange + .map((e) => tonemappingRangeFromJson(e.toString())) + .toList(); } String? transcodeReasonNullableToJson(enums.TranscodeReason? transcodeReason) { @@ -58718,7 +61561,9 @@ List transcodeReasonListFromJson( return defaultValue ?? []; } - return transcodeReason.map((e) => transcodeReasonFromJson(e.toString())).toList(); + return transcodeReason + .map((e) => transcodeReasonFromJson(e.toString())) + .toList(); } List? transcodeReasonNullableListFromJson( @@ -58729,7 +61574,9 @@ List? transcodeReasonNullableListFromJson( return defaultValue; } - return transcodeReason.map((e) => transcodeReasonFromJson(e.toString())).toList(); + return transcodeReason + .map((e) => transcodeReasonFromJson(e.toString())) + .toList(); } String? transcodeSeekInfoNullableToJson( @@ -58790,7 +61637,9 @@ List transcodeSeekInfoListFromJson( return defaultValue ?? []; } - return transcodeSeekInfo.map((e) => transcodeSeekInfoFromJson(e.toString())).toList(); + return transcodeSeekInfo + .map((e) => transcodeSeekInfoFromJson(e.toString())) + .toList(); } List? transcodeSeekInfoNullableListFromJson( @@ -58801,7 +61650,9 @@ List? transcodeSeekInfoNullableListFromJson( return defaultValue; } - return transcodeSeekInfo.map((e) => transcodeSeekInfoFromJson(e.toString())).toList(); + return transcodeSeekInfo + .map((e) => transcodeSeekInfoFromJson(e.toString())) + .toList(); } String? transcodingInfoTranscodeReasonsNullableToJson( @@ -58827,7 +61678,8 @@ enums.TranscodingInfoTranscodeReasons transcodingInfoTranscodeReasonsFromJson( enums.TranscodingInfoTranscodeReasons.swaggerGeneratedUnknown; } -enums.TranscodingInfoTranscodeReasons? transcodingInfoTranscodeReasonsNullableFromJson( +enums.TranscodingInfoTranscodeReasons? +transcodingInfoTranscodeReasonsNullableFromJson( Object? transcodingInfoTranscodeReasons, [ enums.TranscodingInfoTranscodeReasons? defaultValue, ]) { @@ -58856,7 +61708,8 @@ List transcodingInfoTranscodeReasonsListToJson( return transcodingInfoTranscodeReasons.map((e) => e.value!).toList(); } -List transcodingInfoTranscodeReasonsListFromJson( +List +transcodingInfoTranscodeReasonsListFromJson( List? transcodingInfoTranscodeReasons, [ List? defaultValue, ]) { @@ -58864,10 +61717,13 @@ List transcodingInfoTranscodeReasonsListF return defaultValue ?? []; } - return transcodingInfoTranscodeReasons.map((e) => transcodingInfoTranscodeReasonsFromJson(e.toString())).toList(); + return transcodingInfoTranscodeReasons + .map((e) => transcodingInfoTranscodeReasonsFromJson(e.toString())) + .toList(); } -List? transcodingInfoTranscodeReasonsNullableListFromJson( +List? +transcodingInfoTranscodeReasonsNullableListFromJson( List? transcodingInfoTranscodeReasons, [ List? defaultValue, ]) { @@ -58875,7 +61731,9 @@ List? transcodingInfoTranscodeReasonsNull return defaultValue; } - return transcodingInfoTranscodeReasons.map((e) => transcodingInfoTranscodeReasonsFromJson(e.toString())).toList(); + return transcodingInfoTranscodeReasons + .map((e) => transcodingInfoTranscodeReasonsFromJson(e.toString())) + .toList(); } String? transportStreamTimestampNullableToJson( @@ -58938,10 +61796,13 @@ List transportStreamTimestampListFromJson( return defaultValue ?? []; } - return transportStreamTimestamp.map((e) => transportStreamTimestampFromJson(e.toString())).toList(); + return transportStreamTimestamp + .map((e) => transportStreamTimestampFromJson(e.toString())) + .toList(); } -List? transportStreamTimestampNullableListFromJson( +List? +transportStreamTimestampNullableListFromJson( List? transportStreamTimestamp, [ List? defaultValue, ]) { @@ -58949,7 +61810,9 @@ List? transportStreamTimestampNullableListFromJs return defaultValue; } - return transportStreamTimestamp.map((e) => transportStreamTimestampFromJson(e.toString())).toList(); + return transportStreamTimestamp + .map((e) => transportStreamTimestampFromJson(e.toString())) + .toList(); } String? trickplayScanBehaviorNullableToJson( @@ -59012,7 +61875,9 @@ List trickplayScanBehaviorListFromJson( return defaultValue ?? []; } - return trickplayScanBehavior.map((e) => trickplayScanBehaviorFromJson(e.toString())).toList(); + return trickplayScanBehavior + .map((e) => trickplayScanBehaviorFromJson(e.toString())) + .toList(); } List? trickplayScanBehaviorNullableListFromJson( @@ -59023,7 +61888,9 @@ List? trickplayScanBehaviorNullableListFromJson( return defaultValue; } - return trickplayScanBehavior.map((e) => trickplayScanBehaviorFromJson(e.toString())).toList(); + return trickplayScanBehavior + .map((e) => trickplayScanBehaviorFromJson(e.toString())) + .toList(); } String? unratedItemNullableToJson(enums.UnratedItem? unratedItem) { @@ -59282,7 +62149,9 @@ List videoRangeTypeListFromJson( return defaultValue ?? []; } - return videoRangeType.map((e) => videoRangeTypeFromJson(e.toString())).toList(); + return videoRangeType + .map((e) => videoRangeTypeFromJson(e.toString())) + .toList(); } List? videoRangeTypeNullableListFromJson( @@ -59293,7 +62162,9 @@ List? videoRangeTypeNullableListFromJson( return defaultValue; } - return videoRangeType.map((e) => videoRangeTypeFromJson(e.toString())).toList(); + return videoRangeType + .map((e) => videoRangeTypeFromJson(e.toString())) + .toList(); } String? videoTypeNullableToJson(enums.VideoType? videoType) { @@ -59320,7 +62191,8 @@ enums.VideoType? videoTypeNullableFromJson( if (videoType == null) { return null; } - return enums.VideoType.values.firstWhereOrNull((e) => e.value == videoType) ?? defaultValue; + return enums.VideoType.values.firstWhereOrNull((e) => e.value == videoType) ?? + defaultValue; } String videoTypeExplodedListToJson(List? videoType) { @@ -59369,7 +62241,8 @@ String? audioItemIdStreamGetSubtitleMethodToJson( return audioItemIdStreamGetSubtitleMethod.value; } -enums.AudioItemIdStreamGetSubtitleMethod audioItemIdStreamGetSubtitleMethodFromJson( +enums.AudioItemIdStreamGetSubtitleMethod +audioItemIdStreamGetSubtitleMethodFromJson( Object? audioItemIdStreamGetSubtitleMethod, [ enums.AudioItemIdStreamGetSubtitleMethod? defaultValue, ]) { @@ -59380,7 +62253,8 @@ enums.AudioItemIdStreamGetSubtitleMethod audioItemIdStreamGetSubtitleMethodFromJ enums.AudioItemIdStreamGetSubtitleMethod.swaggerGeneratedUnknown; } -enums.AudioItemIdStreamGetSubtitleMethod? audioItemIdStreamGetSubtitleMethodNullableFromJson( +enums.AudioItemIdStreamGetSubtitleMethod? +audioItemIdStreamGetSubtitleMethodNullableFromJson( Object? audioItemIdStreamGetSubtitleMethod, [ enums.AudioItemIdStreamGetSubtitleMethod? defaultValue, ]) { @@ -59394,13 +62268,16 @@ enums.AudioItemIdStreamGetSubtitleMethod? audioItemIdStreamGetSubtitleMethodNull } String audioItemIdStreamGetSubtitleMethodExplodedListToJson( - List? audioItemIdStreamGetSubtitleMethod, + List? + audioItemIdStreamGetSubtitleMethod, ) { - return audioItemIdStreamGetSubtitleMethod?.map((e) => e.value!).join(',') ?? ''; + return audioItemIdStreamGetSubtitleMethod?.map((e) => e.value!).join(',') ?? + ''; } List audioItemIdStreamGetSubtitleMethodListToJson( - List? audioItemIdStreamGetSubtitleMethod, + List? + audioItemIdStreamGetSubtitleMethod, ) { if (audioItemIdStreamGetSubtitleMethod == null) { return []; @@ -59409,7 +62286,8 @@ List audioItemIdStreamGetSubtitleMethodListToJson( return audioItemIdStreamGetSubtitleMethod.map((e) => e.value!).toList(); } -List audioItemIdStreamGetSubtitleMethodListFromJson( +List +audioItemIdStreamGetSubtitleMethodListFromJson( List? audioItemIdStreamGetSubtitleMethod, [ List? defaultValue, ]) { @@ -59422,7 +62300,8 @@ List audioItemIdStreamGetSubtitleMetho .toList(); } -List? audioItemIdStreamGetSubtitleMethodNullableListFromJson( +List? +audioItemIdStreamGetSubtitleMethodNullableListFromJson( List? audioItemIdStreamGetSubtitleMethod, [ List? defaultValue, ]) { @@ -59495,10 +62374,13 @@ List audioItemIdStreamGetContextListFromJson( return defaultValue ?? []; } - return audioItemIdStreamGetContext.map((e) => audioItemIdStreamGetContextFromJson(e.toString())).toList(); + return audioItemIdStreamGetContext + .map((e) => audioItemIdStreamGetContextFromJson(e.toString())) + .toList(); } -List? audioItemIdStreamGetContextNullableListFromJson( +List? +audioItemIdStreamGetContextNullableListFromJson( List? audioItemIdStreamGetContext, [ List? defaultValue, ]) { @@ -59506,11 +62388,14 @@ List? audioItemIdStreamGetContextNullableList return defaultValue; } - return audioItemIdStreamGetContext.map((e) => audioItemIdStreamGetContextFromJson(e.toString())).toList(); + return audioItemIdStreamGetContext + .map((e) => audioItemIdStreamGetContextFromJson(e.toString())) + .toList(); } String? audioItemIdStreamHeadSubtitleMethodNullableToJson( - enums.AudioItemIdStreamHeadSubtitleMethod? audioItemIdStreamHeadSubtitleMethod, + enums.AudioItemIdStreamHeadSubtitleMethod? + audioItemIdStreamHeadSubtitleMethod, ) { return audioItemIdStreamHeadSubtitleMethod?.value; } @@ -59521,7 +62406,8 @@ String? audioItemIdStreamHeadSubtitleMethodToJson( return audioItemIdStreamHeadSubtitleMethod.value; } -enums.AudioItemIdStreamHeadSubtitleMethod audioItemIdStreamHeadSubtitleMethodFromJson( +enums.AudioItemIdStreamHeadSubtitleMethod +audioItemIdStreamHeadSubtitleMethodFromJson( Object? audioItemIdStreamHeadSubtitleMethod, [ enums.AudioItemIdStreamHeadSubtitleMethod? defaultValue, ]) { @@ -59532,7 +62418,8 @@ enums.AudioItemIdStreamHeadSubtitleMethod audioItemIdStreamHeadSubtitleMethodFro enums.AudioItemIdStreamHeadSubtitleMethod.swaggerGeneratedUnknown; } -enums.AudioItemIdStreamHeadSubtitleMethod? audioItemIdStreamHeadSubtitleMethodNullableFromJson( +enums.AudioItemIdStreamHeadSubtitleMethod? +audioItemIdStreamHeadSubtitleMethodNullableFromJson( Object? audioItemIdStreamHeadSubtitleMethod, [ enums.AudioItemIdStreamHeadSubtitleMethod? defaultValue, ]) { @@ -59546,13 +62433,16 @@ enums.AudioItemIdStreamHeadSubtitleMethod? audioItemIdStreamHeadSubtitleMethodNu } String audioItemIdStreamHeadSubtitleMethodExplodedListToJson( - List? audioItemIdStreamHeadSubtitleMethod, + List? + audioItemIdStreamHeadSubtitleMethod, ) { - return audioItemIdStreamHeadSubtitleMethod?.map((e) => e.value!).join(',') ?? ''; + return audioItemIdStreamHeadSubtitleMethod?.map((e) => e.value!).join(',') ?? + ''; } List audioItemIdStreamHeadSubtitleMethodListToJson( - List? audioItemIdStreamHeadSubtitleMethod, + List? + audioItemIdStreamHeadSubtitleMethod, ) { if (audioItemIdStreamHeadSubtitleMethod == null) { return []; @@ -59561,7 +62451,8 @@ List audioItemIdStreamHeadSubtitleMethodListToJson( return audioItemIdStreamHeadSubtitleMethod.map((e) => e.value!).toList(); } -List audioItemIdStreamHeadSubtitleMethodListFromJson( +List +audioItemIdStreamHeadSubtitleMethodListFromJson( List? audioItemIdStreamHeadSubtitleMethod, [ List? defaultValue, ]) { @@ -59574,7 +62465,8 @@ List audioItemIdStreamHeadSubtitleMet .toList(); } -List? audioItemIdStreamHeadSubtitleMethodNullableListFromJson( +List? +audioItemIdStreamHeadSubtitleMethodNullableListFromJson( List? audioItemIdStreamHeadSubtitleMethod, [ List? defaultValue, ]) { @@ -59610,7 +62502,8 @@ enums.AudioItemIdStreamHeadContext audioItemIdStreamHeadContextFromJson( enums.AudioItemIdStreamHeadContext.swaggerGeneratedUnknown; } -enums.AudioItemIdStreamHeadContext? audioItemIdStreamHeadContextNullableFromJson( +enums.AudioItemIdStreamHeadContext? +audioItemIdStreamHeadContextNullableFromJson( Object? audioItemIdStreamHeadContext, [ enums.AudioItemIdStreamHeadContext? defaultValue, ]) { @@ -59639,7 +62532,8 @@ List audioItemIdStreamHeadContextListToJson( return audioItemIdStreamHeadContext.map((e) => e.value!).toList(); } -List audioItemIdStreamHeadContextListFromJson( +List +audioItemIdStreamHeadContextListFromJson( List? audioItemIdStreamHeadContext, [ List? defaultValue, ]) { @@ -59647,10 +62541,13 @@ List audioItemIdStreamHeadContextListFromJso return defaultValue ?? []; } - return audioItemIdStreamHeadContext.map((e) => audioItemIdStreamHeadContextFromJson(e.toString())).toList(); + return audioItemIdStreamHeadContext + .map((e) => audioItemIdStreamHeadContextFromJson(e.toString())) + .toList(); } -List? audioItemIdStreamHeadContextNullableListFromJson( +List? +audioItemIdStreamHeadContextNullableListFromJson( List? audioItemIdStreamHeadContext, [ List? defaultValue, ]) { @@ -59658,62 +62555,78 @@ List? audioItemIdStreamHeadContextNullableLi return defaultValue; } - return audioItemIdStreamHeadContext.map((e) => audioItemIdStreamHeadContextFromJson(e.toString())).toList(); + return audioItemIdStreamHeadContext + .map((e) => audioItemIdStreamHeadContextFromJson(e.toString())) + .toList(); } String? audioItemIdStreamContainerGetSubtitleMethodNullableToJson( - enums.AudioItemIdStreamContainerGetSubtitleMethod? audioItemIdStreamContainerGetSubtitleMethod, + enums.AudioItemIdStreamContainerGetSubtitleMethod? + audioItemIdStreamContainerGetSubtitleMethod, ) { return audioItemIdStreamContainerGetSubtitleMethod?.value; } String? audioItemIdStreamContainerGetSubtitleMethodToJson( - enums.AudioItemIdStreamContainerGetSubtitleMethod audioItemIdStreamContainerGetSubtitleMethod, + enums.AudioItemIdStreamContainerGetSubtitleMethod + audioItemIdStreamContainerGetSubtitleMethod, ) { return audioItemIdStreamContainerGetSubtitleMethod.value; } -enums.AudioItemIdStreamContainerGetSubtitleMethod audioItemIdStreamContainerGetSubtitleMethodFromJson( +enums.AudioItemIdStreamContainerGetSubtitleMethod +audioItemIdStreamContainerGetSubtitleMethodFromJson( Object? audioItemIdStreamContainerGetSubtitleMethod, [ enums.AudioItemIdStreamContainerGetSubtitleMethod? defaultValue, ]) { - return enums.AudioItemIdStreamContainerGetSubtitleMethod.values.firstWhereOrNull( - (e) => e.value == audioItemIdStreamContainerGetSubtitleMethod, - ) ?? + return enums.AudioItemIdStreamContainerGetSubtitleMethod.values + .firstWhereOrNull( + (e) => e.value == audioItemIdStreamContainerGetSubtitleMethod, + ) ?? defaultValue ?? enums.AudioItemIdStreamContainerGetSubtitleMethod.swaggerGeneratedUnknown; } -enums.AudioItemIdStreamContainerGetSubtitleMethod? audioItemIdStreamContainerGetSubtitleMethodNullableFromJson( +enums.AudioItemIdStreamContainerGetSubtitleMethod? +audioItemIdStreamContainerGetSubtitleMethodNullableFromJson( Object? audioItemIdStreamContainerGetSubtitleMethod, [ enums.AudioItemIdStreamContainerGetSubtitleMethod? defaultValue, ]) { if (audioItemIdStreamContainerGetSubtitleMethod == null) { return null; } - return enums.AudioItemIdStreamContainerGetSubtitleMethod.values.firstWhereOrNull( - (e) => e.value == audioItemIdStreamContainerGetSubtitleMethod, - ) ?? + return enums.AudioItemIdStreamContainerGetSubtitleMethod.values + .firstWhereOrNull( + (e) => e.value == audioItemIdStreamContainerGetSubtitleMethod, + ) ?? defaultValue; } String audioItemIdStreamContainerGetSubtitleMethodExplodedListToJson( - List? audioItemIdStreamContainerGetSubtitleMethod, + List? + audioItemIdStreamContainerGetSubtitleMethod, ) { - return audioItemIdStreamContainerGetSubtitleMethod?.map((e) => e.value!).join(',') ?? ''; + return audioItemIdStreamContainerGetSubtitleMethod + ?.map((e) => e.value!) + .join(',') ?? + ''; } List audioItemIdStreamContainerGetSubtitleMethodListToJson( - List? audioItemIdStreamContainerGetSubtitleMethod, + List? + audioItemIdStreamContainerGetSubtitleMethod, ) { if (audioItemIdStreamContainerGetSubtitleMethod == null) { return []; } - return audioItemIdStreamContainerGetSubtitleMethod.map((e) => e.value!).toList(); + return audioItemIdStreamContainerGetSubtitleMethod + .map((e) => e.value!) + .toList(); } -List audioItemIdStreamContainerGetSubtitleMethodListFromJson( +List +audioItemIdStreamContainerGetSubtitleMethodListFromJson( List? audioItemIdStreamContainerGetSubtitleMethod, [ List? defaultValue, ]) { @@ -59723,13 +62636,14 @@ List audioItemIdStreamContain return audioItemIdStreamContainerGetSubtitleMethod .map( - (e) => audioItemIdStreamContainerGetSubtitleMethodFromJson(e.toString()), + (e) => + audioItemIdStreamContainerGetSubtitleMethodFromJson(e.toString()), ) .toList(); } List? - audioItemIdStreamContainerGetSubtitleMethodNullableListFromJson( +audioItemIdStreamContainerGetSubtitleMethodNullableListFromJson( List? audioItemIdStreamContainerGetSubtitleMethod, [ List? defaultValue, ]) { @@ -59739,24 +62653,28 @@ List? return audioItemIdStreamContainerGetSubtitleMethod .map( - (e) => audioItemIdStreamContainerGetSubtitleMethodFromJson(e.toString()), + (e) => + audioItemIdStreamContainerGetSubtitleMethodFromJson(e.toString()), ) .toList(); } String? audioItemIdStreamContainerGetContextNullableToJson( - enums.AudioItemIdStreamContainerGetContext? audioItemIdStreamContainerGetContext, + enums.AudioItemIdStreamContainerGetContext? + audioItemIdStreamContainerGetContext, ) { return audioItemIdStreamContainerGetContext?.value; } String? audioItemIdStreamContainerGetContextToJson( - enums.AudioItemIdStreamContainerGetContext audioItemIdStreamContainerGetContext, + enums.AudioItemIdStreamContainerGetContext + audioItemIdStreamContainerGetContext, ) { return audioItemIdStreamContainerGetContext.value; } -enums.AudioItemIdStreamContainerGetContext audioItemIdStreamContainerGetContextFromJson( +enums.AudioItemIdStreamContainerGetContext +audioItemIdStreamContainerGetContextFromJson( Object? audioItemIdStreamContainerGetContext, [ enums.AudioItemIdStreamContainerGetContext? defaultValue, ]) { @@ -59767,7 +62685,8 @@ enums.AudioItemIdStreamContainerGetContext audioItemIdStreamContainerGetContextF enums.AudioItemIdStreamContainerGetContext.swaggerGeneratedUnknown; } -enums.AudioItemIdStreamContainerGetContext? audioItemIdStreamContainerGetContextNullableFromJson( +enums.AudioItemIdStreamContainerGetContext? +audioItemIdStreamContainerGetContextNullableFromJson( Object? audioItemIdStreamContainerGetContext, [ enums.AudioItemIdStreamContainerGetContext? defaultValue, ]) { @@ -59781,13 +62700,16 @@ enums.AudioItemIdStreamContainerGetContext? audioItemIdStreamContainerGetContext } String audioItemIdStreamContainerGetContextExplodedListToJson( - List? audioItemIdStreamContainerGetContext, + List? + audioItemIdStreamContainerGetContext, ) { - return audioItemIdStreamContainerGetContext?.map((e) => e.value!).join(',') ?? ''; + return audioItemIdStreamContainerGetContext?.map((e) => e.value!).join(',') ?? + ''; } List audioItemIdStreamContainerGetContextListToJson( - List? audioItemIdStreamContainerGetContext, + List? + audioItemIdStreamContainerGetContext, ) { if (audioItemIdStreamContainerGetContext == null) { return []; @@ -59796,7 +62718,8 @@ List audioItemIdStreamContainerGetContextListToJson( return audioItemIdStreamContainerGetContext.map((e) => e.value!).toList(); } -List audioItemIdStreamContainerGetContextListFromJson( +List +audioItemIdStreamContainerGetContextListFromJson( List? audioItemIdStreamContainerGetContext, [ List? defaultValue, ]) { @@ -59809,7 +62732,8 @@ List audioItemIdStreamContainerGetCo .toList(); } -List? audioItemIdStreamContainerGetContextNullableListFromJson( +List? +audioItemIdStreamContainerGetContextNullableListFromJson( List? audioItemIdStreamContainerGetContext, [ List? defaultValue, ]) { @@ -59823,58 +62747,74 @@ List? audioItemIdStreamContainerGetC } String? audioItemIdStreamContainerHeadSubtitleMethodNullableToJson( - enums.AudioItemIdStreamContainerHeadSubtitleMethod? audioItemIdStreamContainerHeadSubtitleMethod, + enums.AudioItemIdStreamContainerHeadSubtitleMethod? + audioItemIdStreamContainerHeadSubtitleMethod, ) { return audioItemIdStreamContainerHeadSubtitleMethod?.value; } String? audioItemIdStreamContainerHeadSubtitleMethodToJson( - enums.AudioItemIdStreamContainerHeadSubtitleMethod audioItemIdStreamContainerHeadSubtitleMethod, + enums.AudioItemIdStreamContainerHeadSubtitleMethod + audioItemIdStreamContainerHeadSubtitleMethod, ) { return audioItemIdStreamContainerHeadSubtitleMethod.value; } -enums.AudioItemIdStreamContainerHeadSubtitleMethod audioItemIdStreamContainerHeadSubtitleMethodFromJson( +enums.AudioItemIdStreamContainerHeadSubtitleMethod +audioItemIdStreamContainerHeadSubtitleMethodFromJson( Object? audioItemIdStreamContainerHeadSubtitleMethod, [ enums.AudioItemIdStreamContainerHeadSubtitleMethod? defaultValue, ]) { - return enums.AudioItemIdStreamContainerHeadSubtitleMethod.values.firstWhereOrNull( - (e) => e.value == audioItemIdStreamContainerHeadSubtitleMethod, - ) ?? + return enums.AudioItemIdStreamContainerHeadSubtitleMethod.values + .firstWhereOrNull( + (e) => e.value == audioItemIdStreamContainerHeadSubtitleMethod, + ) ?? defaultValue ?? - enums.AudioItemIdStreamContainerHeadSubtitleMethod.swaggerGeneratedUnknown; + enums + .AudioItemIdStreamContainerHeadSubtitleMethod + .swaggerGeneratedUnknown; } -enums.AudioItemIdStreamContainerHeadSubtitleMethod? audioItemIdStreamContainerHeadSubtitleMethodNullableFromJson( +enums.AudioItemIdStreamContainerHeadSubtitleMethod? +audioItemIdStreamContainerHeadSubtitleMethodNullableFromJson( Object? audioItemIdStreamContainerHeadSubtitleMethod, [ enums.AudioItemIdStreamContainerHeadSubtitleMethod? defaultValue, ]) { if (audioItemIdStreamContainerHeadSubtitleMethod == null) { return null; } - return enums.AudioItemIdStreamContainerHeadSubtitleMethod.values.firstWhereOrNull( - (e) => e.value == audioItemIdStreamContainerHeadSubtitleMethod, - ) ?? + return enums.AudioItemIdStreamContainerHeadSubtitleMethod.values + .firstWhereOrNull( + (e) => e.value == audioItemIdStreamContainerHeadSubtitleMethod, + ) ?? defaultValue; } String audioItemIdStreamContainerHeadSubtitleMethodExplodedListToJson( - List? audioItemIdStreamContainerHeadSubtitleMethod, + List? + audioItemIdStreamContainerHeadSubtitleMethod, ) { - return audioItemIdStreamContainerHeadSubtitleMethod?.map((e) => e.value!).join(',') ?? ''; + return audioItemIdStreamContainerHeadSubtitleMethod + ?.map((e) => e.value!) + .join(',') ?? + ''; } List audioItemIdStreamContainerHeadSubtitleMethodListToJson( - List? audioItemIdStreamContainerHeadSubtitleMethod, + List? + audioItemIdStreamContainerHeadSubtitleMethod, ) { if (audioItemIdStreamContainerHeadSubtitleMethod == null) { return []; } - return audioItemIdStreamContainerHeadSubtitleMethod.map((e) => e.value!).toList(); + return audioItemIdStreamContainerHeadSubtitleMethod + .map((e) => e.value!) + .toList(); } -List audioItemIdStreamContainerHeadSubtitleMethodListFromJson( +List +audioItemIdStreamContainerHeadSubtitleMethodListFromJson( List? audioItemIdStreamContainerHeadSubtitleMethod, [ List? defaultValue, ]) { @@ -59884,13 +62824,14 @@ List audioItemIdStreamContai return audioItemIdStreamContainerHeadSubtitleMethod .map( - (e) => audioItemIdStreamContainerHeadSubtitleMethodFromJson(e.toString()), + (e) => + audioItemIdStreamContainerHeadSubtitleMethodFromJson(e.toString()), ) .toList(); } List? - audioItemIdStreamContainerHeadSubtitleMethodNullableListFromJson( +audioItemIdStreamContainerHeadSubtitleMethodNullableListFromJson( List? audioItemIdStreamContainerHeadSubtitleMethod, [ List? defaultValue, ]) { @@ -59900,24 +62841,28 @@ List? return audioItemIdStreamContainerHeadSubtitleMethod .map( - (e) => audioItemIdStreamContainerHeadSubtitleMethodFromJson(e.toString()), + (e) => + audioItemIdStreamContainerHeadSubtitleMethodFromJson(e.toString()), ) .toList(); } String? audioItemIdStreamContainerHeadContextNullableToJson( - enums.AudioItemIdStreamContainerHeadContext? audioItemIdStreamContainerHeadContext, + enums.AudioItemIdStreamContainerHeadContext? + audioItemIdStreamContainerHeadContext, ) { return audioItemIdStreamContainerHeadContext?.value; } String? audioItemIdStreamContainerHeadContextToJson( - enums.AudioItemIdStreamContainerHeadContext audioItemIdStreamContainerHeadContext, + enums.AudioItemIdStreamContainerHeadContext + audioItemIdStreamContainerHeadContext, ) { return audioItemIdStreamContainerHeadContext.value; } -enums.AudioItemIdStreamContainerHeadContext audioItemIdStreamContainerHeadContextFromJson( +enums.AudioItemIdStreamContainerHeadContext +audioItemIdStreamContainerHeadContextFromJson( Object? audioItemIdStreamContainerHeadContext, [ enums.AudioItemIdStreamContainerHeadContext? defaultValue, ]) { @@ -59928,7 +62873,8 @@ enums.AudioItemIdStreamContainerHeadContext audioItemIdStreamContainerHeadContex enums.AudioItemIdStreamContainerHeadContext.swaggerGeneratedUnknown; } -enums.AudioItemIdStreamContainerHeadContext? audioItemIdStreamContainerHeadContextNullableFromJson( +enums.AudioItemIdStreamContainerHeadContext? +audioItemIdStreamContainerHeadContextNullableFromJson( Object? audioItemIdStreamContainerHeadContext, [ enums.AudioItemIdStreamContainerHeadContext? defaultValue, ]) { @@ -59942,13 +62888,18 @@ enums.AudioItemIdStreamContainerHeadContext? audioItemIdStreamContainerHeadConte } String audioItemIdStreamContainerHeadContextExplodedListToJson( - List? audioItemIdStreamContainerHeadContext, + List? + audioItemIdStreamContainerHeadContext, ) { - return audioItemIdStreamContainerHeadContext?.map((e) => e.value!).join(',') ?? ''; + return audioItemIdStreamContainerHeadContext + ?.map((e) => e.value!) + .join(',') ?? + ''; } List audioItemIdStreamContainerHeadContextListToJson( - List? audioItemIdStreamContainerHeadContext, + List? + audioItemIdStreamContainerHeadContext, ) { if (audioItemIdStreamContainerHeadContext == null) { return []; @@ -59957,7 +62908,8 @@ List audioItemIdStreamContainerHeadContextListToJson( return audioItemIdStreamContainerHeadContext.map((e) => e.value!).toList(); } -List audioItemIdStreamContainerHeadContextListFromJson( +List +audioItemIdStreamContainerHeadContextListFromJson( List? audioItemIdStreamContainerHeadContext, [ List? defaultValue, ]) { @@ -59970,7 +62922,8 @@ List audioItemIdStreamContainerHead .toList(); } -List? audioItemIdStreamContainerHeadContextNullableListFromJson( +List? +audioItemIdStreamContainerHeadContextNullableListFromJson( List? audioItemIdStreamContainerHeadContext, [ List? defaultValue, ]) { @@ -59983,68 +62936,91 @@ List? audioItemIdStreamContainerHea .toList(); } -String? audioItemIdHls1PlaylistIdSegmentIdContainerGetSubtitleMethodNullableToJson( +String? +audioItemIdHls1PlaylistIdSegmentIdContainerGetSubtitleMethodNullableToJson( enums.AudioItemIdHls1PlaylistIdSegmentIdContainerGetSubtitleMethod? - audioItemIdHls1PlaylistIdSegmentIdContainerGetSubtitleMethod, + audioItemIdHls1PlaylistIdSegmentIdContainerGetSubtitleMethod, ) { return audioItemIdHls1PlaylistIdSegmentIdContainerGetSubtitleMethod?.value; } String? audioItemIdHls1PlaylistIdSegmentIdContainerGetSubtitleMethodToJson( enums.AudioItemIdHls1PlaylistIdSegmentIdContainerGetSubtitleMethod - audioItemIdHls1PlaylistIdSegmentIdContainerGetSubtitleMethod, + audioItemIdHls1PlaylistIdSegmentIdContainerGetSubtitleMethod, ) { return audioItemIdHls1PlaylistIdSegmentIdContainerGetSubtitleMethod.value; } enums.AudioItemIdHls1PlaylistIdSegmentIdContainerGetSubtitleMethod - audioItemIdHls1PlaylistIdSegmentIdContainerGetSubtitleMethodFromJson( +audioItemIdHls1PlaylistIdSegmentIdContainerGetSubtitleMethodFromJson( Object? audioItemIdHls1PlaylistIdSegmentIdContainerGetSubtitleMethod, [ - enums.AudioItemIdHls1PlaylistIdSegmentIdContainerGetSubtitleMethod? defaultValue, + enums.AudioItemIdHls1PlaylistIdSegmentIdContainerGetSubtitleMethod? + defaultValue, ]) { - return enums.AudioItemIdHls1PlaylistIdSegmentIdContainerGetSubtitleMethod.values.firstWhereOrNull( - (e) => e.value == audioItemIdHls1PlaylistIdSegmentIdContainerGetSubtitleMethod, - ) ?? + return enums + .AudioItemIdHls1PlaylistIdSegmentIdContainerGetSubtitleMethod + .values + .firstWhereOrNull( + (e) => + e.value == + audioItemIdHls1PlaylistIdSegmentIdContainerGetSubtitleMethod, + ) ?? defaultValue ?? - enums.AudioItemIdHls1PlaylistIdSegmentIdContainerGetSubtitleMethod.swaggerGeneratedUnknown; + enums + .AudioItemIdHls1PlaylistIdSegmentIdContainerGetSubtitleMethod + .swaggerGeneratedUnknown; } enums.AudioItemIdHls1PlaylistIdSegmentIdContainerGetSubtitleMethod? - audioItemIdHls1PlaylistIdSegmentIdContainerGetSubtitleMethodNullableFromJson( +audioItemIdHls1PlaylistIdSegmentIdContainerGetSubtitleMethodNullableFromJson( Object? audioItemIdHls1PlaylistIdSegmentIdContainerGetSubtitleMethod, [ - enums.AudioItemIdHls1PlaylistIdSegmentIdContainerGetSubtitleMethod? defaultValue, + enums.AudioItemIdHls1PlaylistIdSegmentIdContainerGetSubtitleMethod? + defaultValue, ]) { if (audioItemIdHls1PlaylistIdSegmentIdContainerGetSubtitleMethod == null) { return null; } - return enums.AudioItemIdHls1PlaylistIdSegmentIdContainerGetSubtitleMethod.values.firstWhereOrNull( - (e) => e.value == audioItemIdHls1PlaylistIdSegmentIdContainerGetSubtitleMethod, - ) ?? + return enums + .AudioItemIdHls1PlaylistIdSegmentIdContainerGetSubtitleMethod + .values + .firstWhereOrNull( + (e) => + e.value == + audioItemIdHls1PlaylistIdSegmentIdContainerGetSubtitleMethod, + ) ?? defaultValue; } -String audioItemIdHls1PlaylistIdSegmentIdContainerGetSubtitleMethodExplodedListToJson( +String +audioItemIdHls1PlaylistIdSegmentIdContainerGetSubtitleMethodExplodedListToJson( List? - audioItemIdHls1PlaylistIdSegmentIdContainerGetSubtitleMethod, + audioItemIdHls1PlaylistIdSegmentIdContainerGetSubtitleMethod, ) { - return audioItemIdHls1PlaylistIdSegmentIdContainerGetSubtitleMethod?.map((e) => e.value!).join(',') ?? ''; + return audioItemIdHls1PlaylistIdSegmentIdContainerGetSubtitleMethod + ?.map((e) => e.value!) + .join(',') ?? + ''; } -List audioItemIdHls1PlaylistIdSegmentIdContainerGetSubtitleMethodListToJson( +List +audioItemIdHls1PlaylistIdSegmentIdContainerGetSubtitleMethodListToJson( List? - audioItemIdHls1PlaylistIdSegmentIdContainerGetSubtitleMethod, + audioItemIdHls1PlaylistIdSegmentIdContainerGetSubtitleMethod, ) { if (audioItemIdHls1PlaylistIdSegmentIdContainerGetSubtitleMethod == null) { return []; } - return audioItemIdHls1PlaylistIdSegmentIdContainerGetSubtitleMethod.map((e) => e.value!).toList(); + return audioItemIdHls1PlaylistIdSegmentIdContainerGetSubtitleMethod + .map((e) => e.value!) + .toList(); } List - audioItemIdHls1PlaylistIdSegmentIdContainerGetSubtitleMethodListFromJson( +audioItemIdHls1PlaylistIdSegmentIdContainerGetSubtitleMethodListFromJson( List? audioItemIdHls1PlaylistIdSegmentIdContainerGetSubtitleMethod, [ - List? defaultValue, + List? + defaultValue, ]) { if (audioItemIdHls1PlaylistIdSegmentIdContainerGetSubtitleMethod == null) { return defaultValue ?? []; @@ -60052,17 +63028,19 @@ List return audioItemIdHls1PlaylistIdSegmentIdContainerGetSubtitleMethod .map( - (e) => audioItemIdHls1PlaylistIdSegmentIdContainerGetSubtitleMethodFromJson( - e.toString(), - ), + (e) => + audioItemIdHls1PlaylistIdSegmentIdContainerGetSubtitleMethodFromJson( + e.toString(), + ), ) .toList(); } List? - audioItemIdHls1PlaylistIdSegmentIdContainerGetSubtitleMethodNullableListFromJson( +audioItemIdHls1PlaylistIdSegmentIdContainerGetSubtitleMethodNullableListFromJson( List? audioItemIdHls1PlaylistIdSegmentIdContainerGetSubtitleMethod, [ - List? defaultValue, + List? + defaultValue, ]) { if (audioItemIdHls1PlaylistIdSegmentIdContainerGetSubtitleMethod == null) { return defaultValue; @@ -60070,73 +63048,90 @@ List? return audioItemIdHls1PlaylistIdSegmentIdContainerGetSubtitleMethod .map( - (e) => audioItemIdHls1PlaylistIdSegmentIdContainerGetSubtitleMethodFromJson( - e.toString(), - ), + (e) => + audioItemIdHls1PlaylistIdSegmentIdContainerGetSubtitleMethodFromJson( + e.toString(), + ), ) .toList(); } String? audioItemIdHls1PlaylistIdSegmentIdContainerGetContextNullableToJson( - enums.AudioItemIdHls1PlaylistIdSegmentIdContainerGetContext? audioItemIdHls1PlaylistIdSegmentIdContainerGetContext, + enums.AudioItemIdHls1PlaylistIdSegmentIdContainerGetContext? + audioItemIdHls1PlaylistIdSegmentIdContainerGetContext, ) { return audioItemIdHls1PlaylistIdSegmentIdContainerGetContext?.value; } String? audioItemIdHls1PlaylistIdSegmentIdContainerGetContextToJson( - enums.AudioItemIdHls1PlaylistIdSegmentIdContainerGetContext audioItemIdHls1PlaylistIdSegmentIdContainerGetContext, + enums.AudioItemIdHls1PlaylistIdSegmentIdContainerGetContext + audioItemIdHls1PlaylistIdSegmentIdContainerGetContext, ) { return audioItemIdHls1PlaylistIdSegmentIdContainerGetContext.value; } enums.AudioItemIdHls1PlaylistIdSegmentIdContainerGetContext - audioItemIdHls1PlaylistIdSegmentIdContainerGetContextFromJson( +audioItemIdHls1PlaylistIdSegmentIdContainerGetContextFromJson( Object? audioItemIdHls1PlaylistIdSegmentIdContainerGetContext, [ enums.AudioItemIdHls1PlaylistIdSegmentIdContainerGetContext? defaultValue, ]) { - return enums.AudioItemIdHls1PlaylistIdSegmentIdContainerGetContext.values.firstWhereOrNull( - (e) => e.value == audioItemIdHls1PlaylistIdSegmentIdContainerGetContext, - ) ?? + return enums.AudioItemIdHls1PlaylistIdSegmentIdContainerGetContext.values + .firstWhereOrNull( + (e) => + e.value == + audioItemIdHls1PlaylistIdSegmentIdContainerGetContext, + ) ?? defaultValue ?? - enums.AudioItemIdHls1PlaylistIdSegmentIdContainerGetContext.swaggerGeneratedUnknown; + enums + .AudioItemIdHls1PlaylistIdSegmentIdContainerGetContext + .swaggerGeneratedUnknown; } enums.AudioItemIdHls1PlaylistIdSegmentIdContainerGetContext? - audioItemIdHls1PlaylistIdSegmentIdContainerGetContextNullableFromJson( +audioItemIdHls1PlaylistIdSegmentIdContainerGetContextNullableFromJson( Object? audioItemIdHls1PlaylistIdSegmentIdContainerGetContext, [ enums.AudioItemIdHls1PlaylistIdSegmentIdContainerGetContext? defaultValue, ]) { if (audioItemIdHls1PlaylistIdSegmentIdContainerGetContext == null) { return null; } - return enums.AudioItemIdHls1PlaylistIdSegmentIdContainerGetContext.values.firstWhereOrNull( - (e) => e.value == audioItemIdHls1PlaylistIdSegmentIdContainerGetContext, - ) ?? + return enums.AudioItemIdHls1PlaylistIdSegmentIdContainerGetContext.values + .firstWhereOrNull( + (e) => + e.value == + audioItemIdHls1PlaylistIdSegmentIdContainerGetContext, + ) ?? defaultValue; } String audioItemIdHls1PlaylistIdSegmentIdContainerGetContextExplodedListToJson( List? - audioItemIdHls1PlaylistIdSegmentIdContainerGetContext, + audioItemIdHls1PlaylistIdSegmentIdContainerGetContext, ) { - return audioItemIdHls1PlaylistIdSegmentIdContainerGetContext?.map((e) => e.value!).join(',') ?? ''; + return audioItemIdHls1PlaylistIdSegmentIdContainerGetContext + ?.map((e) => e.value!) + .join(',') ?? + ''; } List audioItemIdHls1PlaylistIdSegmentIdContainerGetContextListToJson( List? - audioItemIdHls1PlaylistIdSegmentIdContainerGetContext, + audioItemIdHls1PlaylistIdSegmentIdContainerGetContext, ) { if (audioItemIdHls1PlaylistIdSegmentIdContainerGetContext == null) { return []; } - return audioItemIdHls1PlaylistIdSegmentIdContainerGetContext.map((e) => e.value!).toList(); + return audioItemIdHls1PlaylistIdSegmentIdContainerGetContext + .map((e) => e.value!) + .toList(); } List - audioItemIdHls1PlaylistIdSegmentIdContainerGetContextListFromJson( +audioItemIdHls1PlaylistIdSegmentIdContainerGetContextListFromJson( List? audioItemIdHls1PlaylistIdSegmentIdContainerGetContext, [ - List? defaultValue, + List? + defaultValue, ]) { if (audioItemIdHls1PlaylistIdSegmentIdContainerGetContext == null) { return defaultValue ?? []; @@ -60152,9 +63147,10 @@ List } List? - audioItemIdHls1PlaylistIdSegmentIdContainerGetContextNullableListFromJson( +audioItemIdHls1PlaylistIdSegmentIdContainerGetContextNullableListFromJson( List? audioItemIdHls1PlaylistIdSegmentIdContainerGetContext, [ - List? defaultValue, + List? + defaultValue, ]) { if (audioItemIdHls1PlaylistIdSegmentIdContainerGetContext == null) { return defaultValue; @@ -60170,18 +63166,21 @@ List? } String? audioItemIdMainM3u8GetSubtitleMethodNullableToJson( - enums.AudioItemIdMainM3u8GetSubtitleMethod? audioItemIdMainM3u8GetSubtitleMethod, + enums.AudioItemIdMainM3u8GetSubtitleMethod? + audioItemIdMainM3u8GetSubtitleMethod, ) { return audioItemIdMainM3u8GetSubtitleMethod?.value; } String? audioItemIdMainM3u8GetSubtitleMethodToJson( - enums.AudioItemIdMainM3u8GetSubtitleMethod audioItemIdMainM3u8GetSubtitleMethod, + enums.AudioItemIdMainM3u8GetSubtitleMethod + audioItemIdMainM3u8GetSubtitleMethod, ) { return audioItemIdMainM3u8GetSubtitleMethod.value; } -enums.AudioItemIdMainM3u8GetSubtitleMethod audioItemIdMainM3u8GetSubtitleMethodFromJson( +enums.AudioItemIdMainM3u8GetSubtitleMethod +audioItemIdMainM3u8GetSubtitleMethodFromJson( Object? audioItemIdMainM3u8GetSubtitleMethod, [ enums.AudioItemIdMainM3u8GetSubtitleMethod? defaultValue, ]) { @@ -60192,7 +63191,8 @@ enums.AudioItemIdMainM3u8GetSubtitleMethod audioItemIdMainM3u8GetSubtitleMethodF enums.AudioItemIdMainM3u8GetSubtitleMethod.swaggerGeneratedUnknown; } -enums.AudioItemIdMainM3u8GetSubtitleMethod? audioItemIdMainM3u8GetSubtitleMethodNullableFromJson( +enums.AudioItemIdMainM3u8GetSubtitleMethod? +audioItemIdMainM3u8GetSubtitleMethodNullableFromJson( Object? audioItemIdMainM3u8GetSubtitleMethod, [ enums.AudioItemIdMainM3u8GetSubtitleMethod? defaultValue, ]) { @@ -60206,13 +63206,16 @@ enums.AudioItemIdMainM3u8GetSubtitleMethod? audioItemIdMainM3u8GetSubtitleMethod } String audioItemIdMainM3u8GetSubtitleMethodExplodedListToJson( - List? audioItemIdMainM3u8GetSubtitleMethod, + List? + audioItemIdMainM3u8GetSubtitleMethod, ) { - return audioItemIdMainM3u8GetSubtitleMethod?.map((e) => e.value!).join(',') ?? ''; + return audioItemIdMainM3u8GetSubtitleMethod?.map((e) => e.value!).join(',') ?? + ''; } List audioItemIdMainM3u8GetSubtitleMethodListToJson( - List? audioItemIdMainM3u8GetSubtitleMethod, + List? + audioItemIdMainM3u8GetSubtitleMethod, ) { if (audioItemIdMainM3u8GetSubtitleMethod == null) { return []; @@ -60221,7 +63224,8 @@ List audioItemIdMainM3u8GetSubtitleMethodListToJson( return audioItemIdMainM3u8GetSubtitleMethod.map((e) => e.value!).toList(); } -List audioItemIdMainM3u8GetSubtitleMethodListFromJson( +List +audioItemIdMainM3u8GetSubtitleMethodListFromJson( List? audioItemIdMainM3u8GetSubtitleMethod, [ List? defaultValue, ]) { @@ -60234,7 +63238,8 @@ List audioItemIdMainM3u8GetSubtitleM .toList(); } -List? audioItemIdMainM3u8GetSubtitleMethodNullableListFromJson( +List? +audioItemIdMainM3u8GetSubtitleMethodNullableListFromJson( List? audioItemIdMainM3u8GetSubtitleMethod, [ List? defaultValue, ]) { @@ -60270,7 +63275,8 @@ enums.AudioItemIdMainM3u8GetContext audioItemIdMainM3u8GetContextFromJson( enums.AudioItemIdMainM3u8GetContext.swaggerGeneratedUnknown; } -enums.AudioItemIdMainM3u8GetContext? audioItemIdMainM3u8GetContextNullableFromJson( +enums.AudioItemIdMainM3u8GetContext? +audioItemIdMainM3u8GetContextNullableFromJson( Object? audioItemIdMainM3u8GetContext, [ enums.AudioItemIdMainM3u8GetContext? defaultValue, ]) { @@ -60299,7 +63305,8 @@ List audioItemIdMainM3u8GetContextListToJson( return audioItemIdMainM3u8GetContext.map((e) => e.value!).toList(); } -List audioItemIdMainM3u8GetContextListFromJson( +List +audioItemIdMainM3u8GetContextListFromJson( List? audioItemIdMainM3u8GetContext, [ List? defaultValue, ]) { @@ -60307,10 +63314,13 @@ List audioItemIdMainM3u8GetContextListFromJ return defaultValue ?? []; } - return audioItemIdMainM3u8GetContext.map((e) => audioItemIdMainM3u8GetContextFromJson(e.toString())).toList(); + return audioItemIdMainM3u8GetContext + .map((e) => audioItemIdMainM3u8GetContextFromJson(e.toString())) + .toList(); } -List? audioItemIdMainM3u8GetContextNullableListFromJson( +List? +audioItemIdMainM3u8GetContextNullableListFromJson( List? audioItemIdMainM3u8GetContext, [ List? defaultValue, ]) { @@ -60318,22 +63328,27 @@ List? audioItemIdMainM3u8GetContextNullable return defaultValue; } - return audioItemIdMainM3u8GetContext.map((e) => audioItemIdMainM3u8GetContextFromJson(e.toString())).toList(); + return audioItemIdMainM3u8GetContext + .map((e) => audioItemIdMainM3u8GetContextFromJson(e.toString())) + .toList(); } String? audioItemIdMasterM3u8GetSubtitleMethodNullableToJson( - enums.AudioItemIdMasterM3u8GetSubtitleMethod? audioItemIdMasterM3u8GetSubtitleMethod, + enums.AudioItemIdMasterM3u8GetSubtitleMethod? + audioItemIdMasterM3u8GetSubtitleMethod, ) { return audioItemIdMasterM3u8GetSubtitleMethod?.value; } String? audioItemIdMasterM3u8GetSubtitleMethodToJson( - enums.AudioItemIdMasterM3u8GetSubtitleMethod audioItemIdMasterM3u8GetSubtitleMethod, + enums.AudioItemIdMasterM3u8GetSubtitleMethod + audioItemIdMasterM3u8GetSubtitleMethod, ) { return audioItemIdMasterM3u8GetSubtitleMethod.value; } -enums.AudioItemIdMasterM3u8GetSubtitleMethod audioItemIdMasterM3u8GetSubtitleMethodFromJson( +enums.AudioItemIdMasterM3u8GetSubtitleMethod +audioItemIdMasterM3u8GetSubtitleMethodFromJson( Object? audioItemIdMasterM3u8GetSubtitleMethod, [ enums.AudioItemIdMasterM3u8GetSubtitleMethod? defaultValue, ]) { @@ -60344,7 +63359,8 @@ enums.AudioItemIdMasterM3u8GetSubtitleMethod audioItemIdMasterM3u8GetSubtitleMet enums.AudioItemIdMasterM3u8GetSubtitleMethod.swaggerGeneratedUnknown; } -enums.AudioItemIdMasterM3u8GetSubtitleMethod? audioItemIdMasterM3u8GetSubtitleMethodNullableFromJson( +enums.AudioItemIdMasterM3u8GetSubtitleMethod? +audioItemIdMasterM3u8GetSubtitleMethodNullableFromJson( Object? audioItemIdMasterM3u8GetSubtitleMethod, [ enums.AudioItemIdMasterM3u8GetSubtitleMethod? defaultValue, ]) { @@ -60358,13 +63374,18 @@ enums.AudioItemIdMasterM3u8GetSubtitleMethod? audioItemIdMasterM3u8GetSubtitleMe } String audioItemIdMasterM3u8GetSubtitleMethodExplodedListToJson( - List? audioItemIdMasterM3u8GetSubtitleMethod, + List? + audioItemIdMasterM3u8GetSubtitleMethod, ) { - return audioItemIdMasterM3u8GetSubtitleMethod?.map((e) => e.value!).join(',') ?? ''; + return audioItemIdMasterM3u8GetSubtitleMethod + ?.map((e) => e.value!) + .join(',') ?? + ''; } List audioItemIdMasterM3u8GetSubtitleMethodListToJson( - List? audioItemIdMasterM3u8GetSubtitleMethod, + List? + audioItemIdMasterM3u8GetSubtitleMethod, ) { if (audioItemIdMasterM3u8GetSubtitleMethod == null) { return []; @@ -60373,7 +63394,8 @@ List audioItemIdMasterM3u8GetSubtitleMethodListToJson( return audioItemIdMasterM3u8GetSubtitleMethod.map((e) => e.value!).toList(); } -List audioItemIdMasterM3u8GetSubtitleMethodListFromJson( +List +audioItemIdMasterM3u8GetSubtitleMethodListFromJson( List? audioItemIdMasterM3u8GetSubtitleMethod, [ List? defaultValue, ]) { @@ -60386,7 +63408,8 @@ List audioItemIdMasterM3u8GetSubti .toList(); } -List? audioItemIdMasterM3u8GetSubtitleMethodNullableListFromJson( +List? +audioItemIdMasterM3u8GetSubtitleMethodNullableListFromJson( List? audioItemIdMasterM3u8GetSubtitleMethod, [ List? defaultValue, ]) { @@ -60422,7 +63445,8 @@ enums.AudioItemIdMasterM3u8GetContext audioItemIdMasterM3u8GetContextFromJson( enums.AudioItemIdMasterM3u8GetContext.swaggerGeneratedUnknown; } -enums.AudioItemIdMasterM3u8GetContext? audioItemIdMasterM3u8GetContextNullableFromJson( +enums.AudioItemIdMasterM3u8GetContext? +audioItemIdMasterM3u8GetContextNullableFromJson( Object? audioItemIdMasterM3u8GetContext, [ enums.AudioItemIdMasterM3u8GetContext? defaultValue, ]) { @@ -60451,7 +63475,8 @@ List audioItemIdMasterM3u8GetContextListToJson( return audioItemIdMasterM3u8GetContext.map((e) => e.value!).toList(); } -List audioItemIdMasterM3u8GetContextListFromJson( +List +audioItemIdMasterM3u8GetContextListFromJson( List? audioItemIdMasterM3u8GetContext, [ List? defaultValue, ]) { @@ -60459,10 +63484,13 @@ List audioItemIdMasterM3u8GetContextListF return defaultValue ?? []; } - return audioItemIdMasterM3u8GetContext.map((e) => audioItemIdMasterM3u8GetContextFromJson(e.toString())).toList(); + return audioItemIdMasterM3u8GetContext + .map((e) => audioItemIdMasterM3u8GetContextFromJson(e.toString())) + .toList(); } -List? audioItemIdMasterM3u8GetContextNullableListFromJson( +List? +audioItemIdMasterM3u8GetContextNullableListFromJson( List? audioItemIdMasterM3u8GetContext, [ List? defaultValue, ]) { @@ -60470,22 +63498,27 @@ List? audioItemIdMasterM3u8GetContextNull return defaultValue; } - return audioItemIdMasterM3u8GetContext.map((e) => audioItemIdMasterM3u8GetContextFromJson(e.toString())).toList(); + return audioItemIdMasterM3u8GetContext + .map((e) => audioItemIdMasterM3u8GetContextFromJson(e.toString())) + .toList(); } String? audioItemIdMasterM3u8HeadSubtitleMethodNullableToJson( - enums.AudioItemIdMasterM3u8HeadSubtitleMethod? audioItemIdMasterM3u8HeadSubtitleMethod, + enums.AudioItemIdMasterM3u8HeadSubtitleMethod? + audioItemIdMasterM3u8HeadSubtitleMethod, ) { return audioItemIdMasterM3u8HeadSubtitleMethod?.value; } String? audioItemIdMasterM3u8HeadSubtitleMethodToJson( - enums.AudioItemIdMasterM3u8HeadSubtitleMethod audioItemIdMasterM3u8HeadSubtitleMethod, + enums.AudioItemIdMasterM3u8HeadSubtitleMethod + audioItemIdMasterM3u8HeadSubtitleMethod, ) { return audioItemIdMasterM3u8HeadSubtitleMethod.value; } -enums.AudioItemIdMasterM3u8HeadSubtitleMethod audioItemIdMasterM3u8HeadSubtitleMethodFromJson( +enums.AudioItemIdMasterM3u8HeadSubtitleMethod +audioItemIdMasterM3u8HeadSubtitleMethodFromJson( Object? audioItemIdMasterM3u8HeadSubtitleMethod, [ enums.AudioItemIdMasterM3u8HeadSubtitleMethod? defaultValue, ]) { @@ -60496,7 +63529,8 @@ enums.AudioItemIdMasterM3u8HeadSubtitleMethod audioItemIdMasterM3u8HeadSubtitleM enums.AudioItemIdMasterM3u8HeadSubtitleMethod.swaggerGeneratedUnknown; } -enums.AudioItemIdMasterM3u8HeadSubtitleMethod? audioItemIdMasterM3u8HeadSubtitleMethodNullableFromJson( +enums.AudioItemIdMasterM3u8HeadSubtitleMethod? +audioItemIdMasterM3u8HeadSubtitleMethodNullableFromJson( Object? audioItemIdMasterM3u8HeadSubtitleMethod, [ enums.AudioItemIdMasterM3u8HeadSubtitleMethod? defaultValue, ]) { @@ -60510,13 +63544,18 @@ enums.AudioItemIdMasterM3u8HeadSubtitleMethod? audioItemIdMasterM3u8HeadSubtitle } String audioItemIdMasterM3u8HeadSubtitleMethodExplodedListToJson( - List? audioItemIdMasterM3u8HeadSubtitleMethod, + List? + audioItemIdMasterM3u8HeadSubtitleMethod, ) { - return audioItemIdMasterM3u8HeadSubtitleMethod?.map((e) => e.value!).join(',') ?? ''; + return audioItemIdMasterM3u8HeadSubtitleMethod + ?.map((e) => e.value!) + .join(',') ?? + ''; } List audioItemIdMasterM3u8HeadSubtitleMethodListToJson( - List? audioItemIdMasterM3u8HeadSubtitleMethod, + List? + audioItemIdMasterM3u8HeadSubtitleMethod, ) { if (audioItemIdMasterM3u8HeadSubtitleMethod == null) { return []; @@ -60525,7 +63564,8 @@ List audioItemIdMasterM3u8HeadSubtitleMethodListToJson( return audioItemIdMasterM3u8HeadSubtitleMethod.map((e) => e.value!).toList(); } -List audioItemIdMasterM3u8HeadSubtitleMethodListFromJson( +List +audioItemIdMasterM3u8HeadSubtitleMethodListFromJson( List? audioItemIdMasterM3u8HeadSubtitleMethod, [ List? defaultValue, ]) { @@ -60538,7 +63578,8 @@ List audioItemIdMasterM3u8HeadSub .toList(); } -List? audioItemIdMasterM3u8HeadSubtitleMethodNullableListFromJson( +List? +audioItemIdMasterM3u8HeadSubtitleMethodNullableListFromJson( List? audioItemIdMasterM3u8HeadSubtitleMethod, [ List? defaultValue, ]) { @@ -60574,7 +63615,8 @@ enums.AudioItemIdMasterM3u8HeadContext audioItemIdMasterM3u8HeadContextFromJson( enums.AudioItemIdMasterM3u8HeadContext.swaggerGeneratedUnknown; } -enums.AudioItemIdMasterM3u8HeadContext? audioItemIdMasterM3u8HeadContextNullableFromJson( +enums.AudioItemIdMasterM3u8HeadContext? +audioItemIdMasterM3u8HeadContextNullableFromJson( Object? audioItemIdMasterM3u8HeadContext, [ enums.AudioItemIdMasterM3u8HeadContext? defaultValue, ]) { @@ -60588,13 +63630,15 @@ enums.AudioItemIdMasterM3u8HeadContext? audioItemIdMasterM3u8HeadContextNullable } String audioItemIdMasterM3u8HeadContextExplodedListToJson( - List? audioItemIdMasterM3u8HeadContext, + List? + audioItemIdMasterM3u8HeadContext, ) { return audioItemIdMasterM3u8HeadContext?.map((e) => e.value!).join(',') ?? ''; } List audioItemIdMasterM3u8HeadContextListToJson( - List? audioItemIdMasterM3u8HeadContext, + List? + audioItemIdMasterM3u8HeadContext, ) { if (audioItemIdMasterM3u8HeadContext == null) { return []; @@ -60603,7 +63647,8 @@ List audioItemIdMasterM3u8HeadContextListToJson( return audioItemIdMasterM3u8HeadContext.map((e) => e.value!).toList(); } -List audioItemIdMasterM3u8HeadContextListFromJson( +List +audioItemIdMasterM3u8HeadContextListFromJson( List? audioItemIdMasterM3u8HeadContext, [ List? defaultValue, ]) { @@ -60611,10 +63656,13 @@ List audioItemIdMasterM3u8HeadContextLis return defaultValue ?? []; } - return audioItemIdMasterM3u8HeadContext.map((e) => audioItemIdMasterM3u8HeadContextFromJson(e.toString())).toList(); + return audioItemIdMasterM3u8HeadContext + .map((e) => audioItemIdMasterM3u8HeadContextFromJson(e.toString())) + .toList(); } -List? audioItemIdMasterM3u8HeadContextNullableListFromJson( +List? +audioItemIdMasterM3u8HeadContextNullableListFromJson( List? audioItemIdMasterM3u8HeadContext, [ List? defaultValue, ]) { @@ -60622,71 +63670,96 @@ List? audioItemIdMasterM3u8HeadContextNu return defaultValue; } - return audioItemIdMasterM3u8HeadContext.map((e) => audioItemIdMasterM3u8HeadContextFromJson(e.toString())).toList(); + return audioItemIdMasterM3u8HeadContext + .map((e) => audioItemIdMasterM3u8HeadContextFromJson(e.toString())) + .toList(); } -String? videosItemIdHls1PlaylistIdSegmentIdContainerGetSubtitleMethodNullableToJson( +String? +videosItemIdHls1PlaylistIdSegmentIdContainerGetSubtitleMethodNullableToJson( enums.VideosItemIdHls1PlaylistIdSegmentIdContainerGetSubtitleMethod? - videosItemIdHls1PlaylistIdSegmentIdContainerGetSubtitleMethod, + videosItemIdHls1PlaylistIdSegmentIdContainerGetSubtitleMethod, ) { return videosItemIdHls1PlaylistIdSegmentIdContainerGetSubtitleMethod?.value; } String? videosItemIdHls1PlaylistIdSegmentIdContainerGetSubtitleMethodToJson( enums.VideosItemIdHls1PlaylistIdSegmentIdContainerGetSubtitleMethod - videosItemIdHls1PlaylistIdSegmentIdContainerGetSubtitleMethod, + videosItemIdHls1PlaylistIdSegmentIdContainerGetSubtitleMethod, ) { return videosItemIdHls1PlaylistIdSegmentIdContainerGetSubtitleMethod.value; } enums.VideosItemIdHls1PlaylistIdSegmentIdContainerGetSubtitleMethod - videosItemIdHls1PlaylistIdSegmentIdContainerGetSubtitleMethodFromJson( +videosItemIdHls1PlaylistIdSegmentIdContainerGetSubtitleMethodFromJson( Object? videosItemIdHls1PlaylistIdSegmentIdContainerGetSubtitleMethod, [ - enums.VideosItemIdHls1PlaylistIdSegmentIdContainerGetSubtitleMethod? defaultValue, + enums.VideosItemIdHls1PlaylistIdSegmentIdContainerGetSubtitleMethod? + defaultValue, ]) { - return enums.VideosItemIdHls1PlaylistIdSegmentIdContainerGetSubtitleMethod.values.firstWhereOrNull( - (e) => e.value == videosItemIdHls1PlaylistIdSegmentIdContainerGetSubtitleMethod, - ) ?? + return enums + .VideosItemIdHls1PlaylistIdSegmentIdContainerGetSubtitleMethod + .values + .firstWhereOrNull( + (e) => + e.value == + videosItemIdHls1PlaylistIdSegmentIdContainerGetSubtitleMethod, + ) ?? defaultValue ?? - enums.VideosItemIdHls1PlaylistIdSegmentIdContainerGetSubtitleMethod.swaggerGeneratedUnknown; + enums + .VideosItemIdHls1PlaylistIdSegmentIdContainerGetSubtitleMethod + .swaggerGeneratedUnknown; } enums.VideosItemIdHls1PlaylistIdSegmentIdContainerGetSubtitleMethod? - videosItemIdHls1PlaylistIdSegmentIdContainerGetSubtitleMethodNullableFromJson( +videosItemIdHls1PlaylistIdSegmentIdContainerGetSubtitleMethodNullableFromJson( Object? videosItemIdHls1PlaylistIdSegmentIdContainerGetSubtitleMethod, [ - enums.VideosItemIdHls1PlaylistIdSegmentIdContainerGetSubtitleMethod? defaultValue, + enums.VideosItemIdHls1PlaylistIdSegmentIdContainerGetSubtitleMethod? + defaultValue, ]) { if (videosItemIdHls1PlaylistIdSegmentIdContainerGetSubtitleMethod == null) { return null; } - return enums.VideosItemIdHls1PlaylistIdSegmentIdContainerGetSubtitleMethod.values.firstWhereOrNull( - (e) => e.value == videosItemIdHls1PlaylistIdSegmentIdContainerGetSubtitleMethod, - ) ?? + return enums + .VideosItemIdHls1PlaylistIdSegmentIdContainerGetSubtitleMethod + .values + .firstWhereOrNull( + (e) => + e.value == + videosItemIdHls1PlaylistIdSegmentIdContainerGetSubtitleMethod, + ) ?? defaultValue; } -String videosItemIdHls1PlaylistIdSegmentIdContainerGetSubtitleMethodExplodedListToJson( +String +videosItemIdHls1PlaylistIdSegmentIdContainerGetSubtitleMethodExplodedListToJson( List? - videosItemIdHls1PlaylistIdSegmentIdContainerGetSubtitleMethod, + videosItemIdHls1PlaylistIdSegmentIdContainerGetSubtitleMethod, ) { - return videosItemIdHls1PlaylistIdSegmentIdContainerGetSubtitleMethod?.map((e) => e.value!).join(',') ?? ''; + return videosItemIdHls1PlaylistIdSegmentIdContainerGetSubtitleMethod + ?.map((e) => e.value!) + .join(',') ?? + ''; } -List videosItemIdHls1PlaylistIdSegmentIdContainerGetSubtitleMethodListToJson( +List +videosItemIdHls1PlaylistIdSegmentIdContainerGetSubtitleMethodListToJson( List? - videosItemIdHls1PlaylistIdSegmentIdContainerGetSubtitleMethod, + videosItemIdHls1PlaylistIdSegmentIdContainerGetSubtitleMethod, ) { if (videosItemIdHls1PlaylistIdSegmentIdContainerGetSubtitleMethod == null) { return []; } - return videosItemIdHls1PlaylistIdSegmentIdContainerGetSubtitleMethod.map((e) => e.value!).toList(); + return videosItemIdHls1PlaylistIdSegmentIdContainerGetSubtitleMethod + .map((e) => e.value!) + .toList(); } List - videosItemIdHls1PlaylistIdSegmentIdContainerGetSubtitleMethodListFromJson( +videosItemIdHls1PlaylistIdSegmentIdContainerGetSubtitleMethodListFromJson( List? videosItemIdHls1PlaylistIdSegmentIdContainerGetSubtitleMethod, [ - List? defaultValue, + List? + defaultValue, ]) { if (videosItemIdHls1PlaylistIdSegmentIdContainerGetSubtitleMethod == null) { return defaultValue ?? []; @@ -60694,17 +63767,19 @@ List return videosItemIdHls1PlaylistIdSegmentIdContainerGetSubtitleMethod .map( - (e) => videosItemIdHls1PlaylistIdSegmentIdContainerGetSubtitleMethodFromJson( - e.toString(), - ), + (e) => + videosItemIdHls1PlaylistIdSegmentIdContainerGetSubtitleMethodFromJson( + e.toString(), + ), ) .toList(); } List? - videosItemIdHls1PlaylistIdSegmentIdContainerGetSubtitleMethodNullableListFromJson( +videosItemIdHls1PlaylistIdSegmentIdContainerGetSubtitleMethodNullableListFromJson( List? videosItemIdHls1PlaylistIdSegmentIdContainerGetSubtitleMethod, [ - List? defaultValue, + List? + defaultValue, ]) { if (videosItemIdHls1PlaylistIdSegmentIdContainerGetSubtitleMethod == null) { return defaultValue; @@ -60712,73 +63787,90 @@ List? return videosItemIdHls1PlaylistIdSegmentIdContainerGetSubtitleMethod .map( - (e) => videosItemIdHls1PlaylistIdSegmentIdContainerGetSubtitleMethodFromJson( - e.toString(), - ), + (e) => + videosItemIdHls1PlaylistIdSegmentIdContainerGetSubtitleMethodFromJson( + e.toString(), + ), ) .toList(); } String? videosItemIdHls1PlaylistIdSegmentIdContainerGetContextNullableToJson( - enums.VideosItemIdHls1PlaylistIdSegmentIdContainerGetContext? videosItemIdHls1PlaylistIdSegmentIdContainerGetContext, + enums.VideosItemIdHls1PlaylistIdSegmentIdContainerGetContext? + videosItemIdHls1PlaylistIdSegmentIdContainerGetContext, ) { return videosItemIdHls1PlaylistIdSegmentIdContainerGetContext?.value; } String? videosItemIdHls1PlaylistIdSegmentIdContainerGetContextToJson( - enums.VideosItemIdHls1PlaylistIdSegmentIdContainerGetContext videosItemIdHls1PlaylistIdSegmentIdContainerGetContext, + enums.VideosItemIdHls1PlaylistIdSegmentIdContainerGetContext + videosItemIdHls1PlaylistIdSegmentIdContainerGetContext, ) { return videosItemIdHls1PlaylistIdSegmentIdContainerGetContext.value; } enums.VideosItemIdHls1PlaylistIdSegmentIdContainerGetContext - videosItemIdHls1PlaylistIdSegmentIdContainerGetContextFromJson( +videosItemIdHls1PlaylistIdSegmentIdContainerGetContextFromJson( Object? videosItemIdHls1PlaylistIdSegmentIdContainerGetContext, [ enums.VideosItemIdHls1PlaylistIdSegmentIdContainerGetContext? defaultValue, ]) { - return enums.VideosItemIdHls1PlaylistIdSegmentIdContainerGetContext.values.firstWhereOrNull( - (e) => e.value == videosItemIdHls1PlaylistIdSegmentIdContainerGetContext, - ) ?? + return enums.VideosItemIdHls1PlaylistIdSegmentIdContainerGetContext.values + .firstWhereOrNull( + (e) => + e.value == + videosItemIdHls1PlaylistIdSegmentIdContainerGetContext, + ) ?? defaultValue ?? - enums.VideosItemIdHls1PlaylistIdSegmentIdContainerGetContext.swaggerGeneratedUnknown; + enums + .VideosItemIdHls1PlaylistIdSegmentIdContainerGetContext + .swaggerGeneratedUnknown; } enums.VideosItemIdHls1PlaylistIdSegmentIdContainerGetContext? - videosItemIdHls1PlaylistIdSegmentIdContainerGetContextNullableFromJson( +videosItemIdHls1PlaylistIdSegmentIdContainerGetContextNullableFromJson( Object? videosItemIdHls1PlaylistIdSegmentIdContainerGetContext, [ enums.VideosItemIdHls1PlaylistIdSegmentIdContainerGetContext? defaultValue, ]) { if (videosItemIdHls1PlaylistIdSegmentIdContainerGetContext == null) { return null; } - return enums.VideosItemIdHls1PlaylistIdSegmentIdContainerGetContext.values.firstWhereOrNull( - (e) => e.value == videosItemIdHls1PlaylistIdSegmentIdContainerGetContext, - ) ?? + return enums.VideosItemIdHls1PlaylistIdSegmentIdContainerGetContext.values + .firstWhereOrNull( + (e) => + e.value == + videosItemIdHls1PlaylistIdSegmentIdContainerGetContext, + ) ?? defaultValue; } String videosItemIdHls1PlaylistIdSegmentIdContainerGetContextExplodedListToJson( List? - videosItemIdHls1PlaylistIdSegmentIdContainerGetContext, + videosItemIdHls1PlaylistIdSegmentIdContainerGetContext, ) { - return videosItemIdHls1PlaylistIdSegmentIdContainerGetContext?.map((e) => e.value!).join(',') ?? ''; + return videosItemIdHls1PlaylistIdSegmentIdContainerGetContext + ?.map((e) => e.value!) + .join(',') ?? + ''; } List videosItemIdHls1PlaylistIdSegmentIdContainerGetContextListToJson( List? - videosItemIdHls1PlaylistIdSegmentIdContainerGetContext, + videosItemIdHls1PlaylistIdSegmentIdContainerGetContext, ) { if (videosItemIdHls1PlaylistIdSegmentIdContainerGetContext == null) { return []; } - return videosItemIdHls1PlaylistIdSegmentIdContainerGetContext.map((e) => e.value!).toList(); + return videosItemIdHls1PlaylistIdSegmentIdContainerGetContext + .map((e) => e.value!) + .toList(); } List - videosItemIdHls1PlaylistIdSegmentIdContainerGetContextListFromJson( +videosItemIdHls1PlaylistIdSegmentIdContainerGetContextListFromJson( List? videosItemIdHls1PlaylistIdSegmentIdContainerGetContext, [ - List? defaultValue, + List? + defaultValue, ]) { if (videosItemIdHls1PlaylistIdSegmentIdContainerGetContext == null) { return defaultValue ?? []; @@ -60794,9 +63886,10 @@ List } List? - videosItemIdHls1PlaylistIdSegmentIdContainerGetContextNullableListFromJson( +videosItemIdHls1PlaylistIdSegmentIdContainerGetContextNullableListFromJson( List? videosItemIdHls1PlaylistIdSegmentIdContainerGetContext, [ - List? defaultValue, + List? + defaultValue, ]) { if (videosItemIdHls1PlaylistIdSegmentIdContainerGetContext == null) { return defaultValue; @@ -60812,18 +63905,21 @@ List? } String? videosItemIdLiveM3u8GetSubtitleMethodNullableToJson( - enums.VideosItemIdLiveM3u8GetSubtitleMethod? videosItemIdLiveM3u8GetSubtitleMethod, + enums.VideosItemIdLiveM3u8GetSubtitleMethod? + videosItemIdLiveM3u8GetSubtitleMethod, ) { return videosItemIdLiveM3u8GetSubtitleMethod?.value; } String? videosItemIdLiveM3u8GetSubtitleMethodToJson( - enums.VideosItemIdLiveM3u8GetSubtitleMethod videosItemIdLiveM3u8GetSubtitleMethod, + enums.VideosItemIdLiveM3u8GetSubtitleMethod + videosItemIdLiveM3u8GetSubtitleMethod, ) { return videosItemIdLiveM3u8GetSubtitleMethod.value; } -enums.VideosItemIdLiveM3u8GetSubtitleMethod videosItemIdLiveM3u8GetSubtitleMethodFromJson( +enums.VideosItemIdLiveM3u8GetSubtitleMethod +videosItemIdLiveM3u8GetSubtitleMethodFromJson( Object? videosItemIdLiveM3u8GetSubtitleMethod, [ enums.VideosItemIdLiveM3u8GetSubtitleMethod? defaultValue, ]) { @@ -60834,7 +63930,8 @@ enums.VideosItemIdLiveM3u8GetSubtitleMethod videosItemIdLiveM3u8GetSubtitleMetho enums.VideosItemIdLiveM3u8GetSubtitleMethod.swaggerGeneratedUnknown; } -enums.VideosItemIdLiveM3u8GetSubtitleMethod? videosItemIdLiveM3u8GetSubtitleMethodNullableFromJson( +enums.VideosItemIdLiveM3u8GetSubtitleMethod? +videosItemIdLiveM3u8GetSubtitleMethodNullableFromJson( Object? videosItemIdLiveM3u8GetSubtitleMethod, [ enums.VideosItemIdLiveM3u8GetSubtitleMethod? defaultValue, ]) { @@ -60848,13 +63945,18 @@ enums.VideosItemIdLiveM3u8GetSubtitleMethod? videosItemIdLiveM3u8GetSubtitleMeth } String videosItemIdLiveM3u8GetSubtitleMethodExplodedListToJson( - List? videosItemIdLiveM3u8GetSubtitleMethod, + List? + videosItemIdLiveM3u8GetSubtitleMethod, ) { - return videosItemIdLiveM3u8GetSubtitleMethod?.map((e) => e.value!).join(',') ?? ''; + return videosItemIdLiveM3u8GetSubtitleMethod + ?.map((e) => e.value!) + .join(',') ?? + ''; } List videosItemIdLiveM3u8GetSubtitleMethodListToJson( - List? videosItemIdLiveM3u8GetSubtitleMethod, + List? + videosItemIdLiveM3u8GetSubtitleMethod, ) { if (videosItemIdLiveM3u8GetSubtitleMethod == null) { return []; @@ -60863,7 +63965,8 @@ List videosItemIdLiveM3u8GetSubtitleMethodListToJson( return videosItemIdLiveM3u8GetSubtitleMethod.map((e) => e.value!).toList(); } -List videosItemIdLiveM3u8GetSubtitleMethodListFromJson( +List +videosItemIdLiveM3u8GetSubtitleMethodListFromJson( List? videosItemIdLiveM3u8GetSubtitleMethod, [ List? defaultValue, ]) { @@ -60876,7 +63979,8 @@ List videosItemIdLiveM3u8GetSubtitl .toList(); } -List? videosItemIdLiveM3u8GetSubtitleMethodNullableListFromJson( +List? +videosItemIdLiveM3u8GetSubtitleMethodNullableListFromJson( List? videosItemIdLiveM3u8GetSubtitleMethod, [ List? defaultValue, ]) { @@ -60912,7 +64016,8 @@ enums.VideosItemIdLiveM3u8GetContext videosItemIdLiveM3u8GetContextFromJson( enums.VideosItemIdLiveM3u8GetContext.swaggerGeneratedUnknown; } -enums.VideosItemIdLiveM3u8GetContext? videosItemIdLiveM3u8GetContextNullableFromJson( +enums.VideosItemIdLiveM3u8GetContext? +videosItemIdLiveM3u8GetContextNullableFromJson( Object? videosItemIdLiveM3u8GetContext, [ enums.VideosItemIdLiveM3u8GetContext? defaultValue, ]) { @@ -60941,7 +64046,8 @@ List videosItemIdLiveM3u8GetContextListToJson( return videosItemIdLiveM3u8GetContext.map((e) => e.value!).toList(); } -List videosItemIdLiveM3u8GetContextListFromJson( +List +videosItemIdLiveM3u8GetContextListFromJson( List? videosItemIdLiveM3u8GetContext, [ List? defaultValue, ]) { @@ -60949,10 +64055,13 @@ List videosItemIdLiveM3u8GetContextListFro return defaultValue ?? []; } - return videosItemIdLiveM3u8GetContext.map((e) => videosItemIdLiveM3u8GetContextFromJson(e.toString())).toList(); + return videosItemIdLiveM3u8GetContext + .map((e) => videosItemIdLiveM3u8GetContextFromJson(e.toString())) + .toList(); } -List? videosItemIdLiveM3u8GetContextNullableListFromJson( +List? +videosItemIdLiveM3u8GetContextNullableListFromJson( List? videosItemIdLiveM3u8GetContext, [ List? defaultValue, ]) { @@ -60960,22 +64069,27 @@ List? videosItemIdLiveM3u8GetContextNullab return defaultValue; } - return videosItemIdLiveM3u8GetContext.map((e) => videosItemIdLiveM3u8GetContextFromJson(e.toString())).toList(); + return videosItemIdLiveM3u8GetContext + .map((e) => videosItemIdLiveM3u8GetContextFromJson(e.toString())) + .toList(); } String? videosItemIdMainM3u8GetSubtitleMethodNullableToJson( - enums.VideosItemIdMainM3u8GetSubtitleMethod? videosItemIdMainM3u8GetSubtitleMethod, + enums.VideosItemIdMainM3u8GetSubtitleMethod? + videosItemIdMainM3u8GetSubtitleMethod, ) { return videosItemIdMainM3u8GetSubtitleMethod?.value; } String? videosItemIdMainM3u8GetSubtitleMethodToJson( - enums.VideosItemIdMainM3u8GetSubtitleMethod videosItemIdMainM3u8GetSubtitleMethod, + enums.VideosItemIdMainM3u8GetSubtitleMethod + videosItemIdMainM3u8GetSubtitleMethod, ) { return videosItemIdMainM3u8GetSubtitleMethod.value; } -enums.VideosItemIdMainM3u8GetSubtitleMethod videosItemIdMainM3u8GetSubtitleMethodFromJson( +enums.VideosItemIdMainM3u8GetSubtitleMethod +videosItemIdMainM3u8GetSubtitleMethodFromJson( Object? videosItemIdMainM3u8GetSubtitleMethod, [ enums.VideosItemIdMainM3u8GetSubtitleMethod? defaultValue, ]) { @@ -60986,7 +64100,8 @@ enums.VideosItemIdMainM3u8GetSubtitleMethod videosItemIdMainM3u8GetSubtitleMetho enums.VideosItemIdMainM3u8GetSubtitleMethod.swaggerGeneratedUnknown; } -enums.VideosItemIdMainM3u8GetSubtitleMethod? videosItemIdMainM3u8GetSubtitleMethodNullableFromJson( +enums.VideosItemIdMainM3u8GetSubtitleMethod? +videosItemIdMainM3u8GetSubtitleMethodNullableFromJson( Object? videosItemIdMainM3u8GetSubtitleMethod, [ enums.VideosItemIdMainM3u8GetSubtitleMethod? defaultValue, ]) { @@ -61000,13 +64115,18 @@ enums.VideosItemIdMainM3u8GetSubtitleMethod? videosItemIdMainM3u8GetSubtitleMeth } String videosItemIdMainM3u8GetSubtitleMethodExplodedListToJson( - List? videosItemIdMainM3u8GetSubtitleMethod, + List? + videosItemIdMainM3u8GetSubtitleMethod, ) { - return videosItemIdMainM3u8GetSubtitleMethod?.map((e) => e.value!).join(',') ?? ''; + return videosItemIdMainM3u8GetSubtitleMethod + ?.map((e) => e.value!) + .join(',') ?? + ''; } List videosItemIdMainM3u8GetSubtitleMethodListToJson( - List? videosItemIdMainM3u8GetSubtitleMethod, + List? + videosItemIdMainM3u8GetSubtitleMethod, ) { if (videosItemIdMainM3u8GetSubtitleMethod == null) { return []; @@ -61015,7 +64135,8 @@ List videosItemIdMainM3u8GetSubtitleMethodListToJson( return videosItemIdMainM3u8GetSubtitleMethod.map((e) => e.value!).toList(); } -List videosItemIdMainM3u8GetSubtitleMethodListFromJson( +List +videosItemIdMainM3u8GetSubtitleMethodListFromJson( List? videosItemIdMainM3u8GetSubtitleMethod, [ List? defaultValue, ]) { @@ -61028,7 +64149,8 @@ List videosItemIdMainM3u8GetSubtitl .toList(); } -List? videosItemIdMainM3u8GetSubtitleMethodNullableListFromJson( +List? +videosItemIdMainM3u8GetSubtitleMethodNullableListFromJson( List? videosItemIdMainM3u8GetSubtitleMethod, [ List? defaultValue, ]) { @@ -61064,7 +64186,8 @@ enums.VideosItemIdMainM3u8GetContext videosItemIdMainM3u8GetContextFromJson( enums.VideosItemIdMainM3u8GetContext.swaggerGeneratedUnknown; } -enums.VideosItemIdMainM3u8GetContext? videosItemIdMainM3u8GetContextNullableFromJson( +enums.VideosItemIdMainM3u8GetContext? +videosItemIdMainM3u8GetContextNullableFromJson( Object? videosItemIdMainM3u8GetContext, [ enums.VideosItemIdMainM3u8GetContext? defaultValue, ]) { @@ -61093,7 +64216,8 @@ List videosItemIdMainM3u8GetContextListToJson( return videosItemIdMainM3u8GetContext.map((e) => e.value!).toList(); } -List videosItemIdMainM3u8GetContextListFromJson( +List +videosItemIdMainM3u8GetContextListFromJson( List? videosItemIdMainM3u8GetContext, [ List? defaultValue, ]) { @@ -61101,10 +64225,13 @@ List videosItemIdMainM3u8GetContextListFro return defaultValue ?? []; } - return videosItemIdMainM3u8GetContext.map((e) => videosItemIdMainM3u8GetContextFromJson(e.toString())).toList(); + return videosItemIdMainM3u8GetContext + .map((e) => videosItemIdMainM3u8GetContextFromJson(e.toString())) + .toList(); } -List? videosItemIdMainM3u8GetContextNullableListFromJson( +List? +videosItemIdMainM3u8GetContextNullableListFromJson( List? videosItemIdMainM3u8GetContext, [ List? defaultValue, ]) { @@ -61112,22 +64239,27 @@ List? videosItemIdMainM3u8GetContextNullab return defaultValue; } - return videosItemIdMainM3u8GetContext.map((e) => videosItemIdMainM3u8GetContextFromJson(e.toString())).toList(); + return videosItemIdMainM3u8GetContext + .map((e) => videosItemIdMainM3u8GetContextFromJson(e.toString())) + .toList(); } String? videosItemIdMasterM3u8GetSubtitleMethodNullableToJson( - enums.VideosItemIdMasterM3u8GetSubtitleMethod? videosItemIdMasterM3u8GetSubtitleMethod, + enums.VideosItemIdMasterM3u8GetSubtitleMethod? + videosItemIdMasterM3u8GetSubtitleMethod, ) { return videosItemIdMasterM3u8GetSubtitleMethod?.value; } String? videosItemIdMasterM3u8GetSubtitleMethodToJson( - enums.VideosItemIdMasterM3u8GetSubtitleMethod videosItemIdMasterM3u8GetSubtitleMethod, + enums.VideosItemIdMasterM3u8GetSubtitleMethod + videosItemIdMasterM3u8GetSubtitleMethod, ) { return videosItemIdMasterM3u8GetSubtitleMethod.value; } -enums.VideosItemIdMasterM3u8GetSubtitleMethod videosItemIdMasterM3u8GetSubtitleMethodFromJson( +enums.VideosItemIdMasterM3u8GetSubtitleMethod +videosItemIdMasterM3u8GetSubtitleMethodFromJson( Object? videosItemIdMasterM3u8GetSubtitleMethod, [ enums.VideosItemIdMasterM3u8GetSubtitleMethod? defaultValue, ]) { @@ -61138,7 +64270,8 @@ enums.VideosItemIdMasterM3u8GetSubtitleMethod videosItemIdMasterM3u8GetSubtitleM enums.VideosItemIdMasterM3u8GetSubtitleMethod.swaggerGeneratedUnknown; } -enums.VideosItemIdMasterM3u8GetSubtitleMethod? videosItemIdMasterM3u8GetSubtitleMethodNullableFromJson( +enums.VideosItemIdMasterM3u8GetSubtitleMethod? +videosItemIdMasterM3u8GetSubtitleMethodNullableFromJson( Object? videosItemIdMasterM3u8GetSubtitleMethod, [ enums.VideosItemIdMasterM3u8GetSubtitleMethod? defaultValue, ]) { @@ -61152,13 +64285,18 @@ enums.VideosItemIdMasterM3u8GetSubtitleMethod? videosItemIdMasterM3u8GetSubtitle } String videosItemIdMasterM3u8GetSubtitleMethodExplodedListToJson( - List? videosItemIdMasterM3u8GetSubtitleMethod, + List? + videosItemIdMasterM3u8GetSubtitleMethod, ) { - return videosItemIdMasterM3u8GetSubtitleMethod?.map((e) => e.value!).join(',') ?? ''; + return videosItemIdMasterM3u8GetSubtitleMethod + ?.map((e) => e.value!) + .join(',') ?? + ''; } List videosItemIdMasterM3u8GetSubtitleMethodListToJson( - List? videosItemIdMasterM3u8GetSubtitleMethod, + List? + videosItemIdMasterM3u8GetSubtitleMethod, ) { if (videosItemIdMasterM3u8GetSubtitleMethod == null) { return []; @@ -61167,7 +64305,8 @@ List videosItemIdMasterM3u8GetSubtitleMethodListToJson( return videosItemIdMasterM3u8GetSubtitleMethod.map((e) => e.value!).toList(); } -List videosItemIdMasterM3u8GetSubtitleMethodListFromJson( +List +videosItemIdMasterM3u8GetSubtitleMethodListFromJson( List? videosItemIdMasterM3u8GetSubtitleMethod, [ List? defaultValue, ]) { @@ -61180,7 +64319,8 @@ List videosItemIdMasterM3u8GetSub .toList(); } -List? videosItemIdMasterM3u8GetSubtitleMethodNullableListFromJson( +List? +videosItemIdMasterM3u8GetSubtitleMethodNullableListFromJson( List? videosItemIdMasterM3u8GetSubtitleMethod, [ List? defaultValue, ]) { @@ -61216,7 +64356,8 @@ enums.VideosItemIdMasterM3u8GetContext videosItemIdMasterM3u8GetContextFromJson( enums.VideosItemIdMasterM3u8GetContext.swaggerGeneratedUnknown; } -enums.VideosItemIdMasterM3u8GetContext? videosItemIdMasterM3u8GetContextNullableFromJson( +enums.VideosItemIdMasterM3u8GetContext? +videosItemIdMasterM3u8GetContextNullableFromJson( Object? videosItemIdMasterM3u8GetContext, [ enums.VideosItemIdMasterM3u8GetContext? defaultValue, ]) { @@ -61230,13 +64371,15 @@ enums.VideosItemIdMasterM3u8GetContext? videosItemIdMasterM3u8GetContextNullable } String videosItemIdMasterM3u8GetContextExplodedListToJson( - List? videosItemIdMasterM3u8GetContext, + List? + videosItemIdMasterM3u8GetContext, ) { return videosItemIdMasterM3u8GetContext?.map((e) => e.value!).join(',') ?? ''; } List videosItemIdMasterM3u8GetContextListToJson( - List? videosItemIdMasterM3u8GetContext, + List? + videosItemIdMasterM3u8GetContext, ) { if (videosItemIdMasterM3u8GetContext == null) { return []; @@ -61245,7 +64388,8 @@ List videosItemIdMasterM3u8GetContextListToJson( return videosItemIdMasterM3u8GetContext.map((e) => e.value!).toList(); } -List videosItemIdMasterM3u8GetContextListFromJson( +List +videosItemIdMasterM3u8GetContextListFromJson( List? videosItemIdMasterM3u8GetContext, [ List? defaultValue, ]) { @@ -61253,10 +64397,13 @@ List videosItemIdMasterM3u8GetContextLis return defaultValue ?? []; } - return videosItemIdMasterM3u8GetContext.map((e) => videosItemIdMasterM3u8GetContextFromJson(e.toString())).toList(); + return videosItemIdMasterM3u8GetContext + .map((e) => videosItemIdMasterM3u8GetContextFromJson(e.toString())) + .toList(); } -List? videosItemIdMasterM3u8GetContextNullableListFromJson( +List? +videosItemIdMasterM3u8GetContextNullableListFromJson( List? videosItemIdMasterM3u8GetContext, [ List? defaultValue, ]) { @@ -61264,22 +64411,27 @@ List? videosItemIdMasterM3u8GetContextNu return defaultValue; } - return videosItemIdMasterM3u8GetContext.map((e) => videosItemIdMasterM3u8GetContextFromJson(e.toString())).toList(); + return videosItemIdMasterM3u8GetContext + .map((e) => videosItemIdMasterM3u8GetContextFromJson(e.toString())) + .toList(); } String? videosItemIdMasterM3u8HeadSubtitleMethodNullableToJson( - enums.VideosItemIdMasterM3u8HeadSubtitleMethod? videosItemIdMasterM3u8HeadSubtitleMethod, + enums.VideosItemIdMasterM3u8HeadSubtitleMethod? + videosItemIdMasterM3u8HeadSubtitleMethod, ) { return videosItemIdMasterM3u8HeadSubtitleMethod?.value; } String? videosItemIdMasterM3u8HeadSubtitleMethodToJson( - enums.VideosItemIdMasterM3u8HeadSubtitleMethod videosItemIdMasterM3u8HeadSubtitleMethod, + enums.VideosItemIdMasterM3u8HeadSubtitleMethod + videosItemIdMasterM3u8HeadSubtitleMethod, ) { return videosItemIdMasterM3u8HeadSubtitleMethod.value; } -enums.VideosItemIdMasterM3u8HeadSubtitleMethod videosItemIdMasterM3u8HeadSubtitleMethodFromJson( +enums.VideosItemIdMasterM3u8HeadSubtitleMethod +videosItemIdMasterM3u8HeadSubtitleMethodFromJson( Object? videosItemIdMasterM3u8HeadSubtitleMethod, [ enums.VideosItemIdMasterM3u8HeadSubtitleMethod? defaultValue, ]) { @@ -61290,7 +64442,8 @@ enums.VideosItemIdMasterM3u8HeadSubtitleMethod videosItemIdMasterM3u8HeadSubtitl enums.VideosItemIdMasterM3u8HeadSubtitleMethod.swaggerGeneratedUnknown; } -enums.VideosItemIdMasterM3u8HeadSubtitleMethod? videosItemIdMasterM3u8HeadSubtitleMethodNullableFromJson( +enums.VideosItemIdMasterM3u8HeadSubtitleMethod? +videosItemIdMasterM3u8HeadSubtitleMethodNullableFromJson( Object? videosItemIdMasterM3u8HeadSubtitleMethod, [ enums.VideosItemIdMasterM3u8HeadSubtitleMethod? defaultValue, ]) { @@ -61304,13 +64457,18 @@ enums.VideosItemIdMasterM3u8HeadSubtitleMethod? videosItemIdMasterM3u8HeadSubtit } String videosItemIdMasterM3u8HeadSubtitleMethodExplodedListToJson( - List? videosItemIdMasterM3u8HeadSubtitleMethod, + List? + videosItemIdMasterM3u8HeadSubtitleMethod, ) { - return videosItemIdMasterM3u8HeadSubtitleMethod?.map((e) => e.value!).join(',') ?? ''; + return videosItemIdMasterM3u8HeadSubtitleMethod + ?.map((e) => e.value!) + .join(',') ?? + ''; } List videosItemIdMasterM3u8HeadSubtitleMethodListToJson( - List? videosItemIdMasterM3u8HeadSubtitleMethod, + List? + videosItemIdMasterM3u8HeadSubtitleMethod, ) { if (videosItemIdMasterM3u8HeadSubtitleMethod == null) { return []; @@ -61319,7 +64477,8 @@ List videosItemIdMasterM3u8HeadSubtitleMethodListToJson( return videosItemIdMasterM3u8HeadSubtitleMethod.map((e) => e.value!).toList(); } -List videosItemIdMasterM3u8HeadSubtitleMethodListFromJson( +List +videosItemIdMasterM3u8HeadSubtitleMethodListFromJson( List? videosItemIdMasterM3u8HeadSubtitleMethod, [ List? defaultValue, ]) { @@ -61334,7 +64493,8 @@ List videosItemIdMasterM3u8HeadS .toList(); } -List? videosItemIdMasterM3u8HeadSubtitleMethodNullableListFromJson( +List? +videosItemIdMasterM3u8HeadSubtitleMethodNullableListFromJson( List? videosItemIdMasterM3u8HeadSubtitleMethod, [ List? defaultValue, ]) { @@ -61361,7 +64521,8 @@ String? videosItemIdMasterM3u8HeadContextToJson( return videosItemIdMasterM3u8HeadContext.value; } -enums.VideosItemIdMasterM3u8HeadContext videosItemIdMasterM3u8HeadContextFromJson( +enums.VideosItemIdMasterM3u8HeadContext +videosItemIdMasterM3u8HeadContextFromJson( Object? videosItemIdMasterM3u8HeadContext, [ enums.VideosItemIdMasterM3u8HeadContext? defaultValue, ]) { @@ -61372,7 +64533,8 @@ enums.VideosItemIdMasterM3u8HeadContext videosItemIdMasterM3u8HeadContextFromJso enums.VideosItemIdMasterM3u8HeadContext.swaggerGeneratedUnknown; } -enums.VideosItemIdMasterM3u8HeadContext? videosItemIdMasterM3u8HeadContextNullableFromJson( +enums.VideosItemIdMasterM3u8HeadContext? +videosItemIdMasterM3u8HeadContextNullableFromJson( Object? videosItemIdMasterM3u8HeadContext, [ enums.VideosItemIdMasterM3u8HeadContext? defaultValue, ]) { @@ -61386,13 +64548,16 @@ enums.VideosItemIdMasterM3u8HeadContext? videosItemIdMasterM3u8HeadContextNullab } String videosItemIdMasterM3u8HeadContextExplodedListToJson( - List? videosItemIdMasterM3u8HeadContext, + List? + videosItemIdMasterM3u8HeadContext, ) { - return videosItemIdMasterM3u8HeadContext?.map((e) => e.value!).join(',') ?? ''; + return videosItemIdMasterM3u8HeadContext?.map((e) => e.value!).join(',') ?? + ''; } List videosItemIdMasterM3u8HeadContextListToJson( - List? videosItemIdMasterM3u8HeadContext, + List? + videosItemIdMasterM3u8HeadContext, ) { if (videosItemIdMasterM3u8HeadContext == null) { return []; @@ -61401,7 +64566,8 @@ List videosItemIdMasterM3u8HeadContextListToJson( return videosItemIdMasterM3u8HeadContext.map((e) => e.value!).toList(); } -List videosItemIdMasterM3u8HeadContextListFromJson( +List +videosItemIdMasterM3u8HeadContextListFromJson( List? videosItemIdMasterM3u8HeadContext, [ List? defaultValue, ]) { @@ -61409,10 +64575,13 @@ List videosItemIdMasterM3u8HeadContextL return defaultValue ?? []; } - return videosItemIdMasterM3u8HeadContext.map((e) => videosItemIdMasterM3u8HeadContextFromJson(e.toString())).toList(); + return videosItemIdMasterM3u8HeadContext + .map((e) => videosItemIdMasterM3u8HeadContextFromJson(e.toString())) + .toList(); } -List? videosItemIdMasterM3u8HeadContextNullableListFromJson( +List? +videosItemIdMasterM3u8HeadContextNullableListFromJson( List? videosItemIdMasterM3u8HeadContext, [ List? defaultValue, ]) { @@ -61420,64 +64589,80 @@ List? videosItemIdMasterM3u8HeadContext return defaultValue; } - return videosItemIdMasterM3u8HeadContext.map((e) => videosItemIdMasterM3u8HeadContextFromJson(e.toString())).toList(); + return videosItemIdMasterM3u8HeadContext + .map((e) => videosItemIdMasterM3u8HeadContextFromJson(e.toString())) + .toList(); } String? artistsNameImagesImageTypeImageIndexGetImageTypeNullableToJson( - enums.ArtistsNameImagesImageTypeImageIndexGetImageType? artistsNameImagesImageTypeImageIndexGetImageType, + enums.ArtistsNameImagesImageTypeImageIndexGetImageType? + artistsNameImagesImageTypeImageIndexGetImageType, ) { return artistsNameImagesImageTypeImageIndexGetImageType?.value; } String? artistsNameImagesImageTypeImageIndexGetImageTypeToJson( - enums.ArtistsNameImagesImageTypeImageIndexGetImageType artistsNameImagesImageTypeImageIndexGetImageType, + enums.ArtistsNameImagesImageTypeImageIndexGetImageType + artistsNameImagesImageTypeImageIndexGetImageType, ) { return artistsNameImagesImageTypeImageIndexGetImageType.value; } -enums.ArtistsNameImagesImageTypeImageIndexGetImageType artistsNameImagesImageTypeImageIndexGetImageTypeFromJson( +enums.ArtistsNameImagesImageTypeImageIndexGetImageType +artistsNameImagesImageTypeImageIndexGetImageTypeFromJson( Object? artistsNameImagesImageTypeImageIndexGetImageType, [ enums.ArtistsNameImagesImageTypeImageIndexGetImageType? defaultValue, ]) { - return enums.ArtistsNameImagesImageTypeImageIndexGetImageType.values.firstWhereOrNull( - (e) => e.value == artistsNameImagesImageTypeImageIndexGetImageType, - ) ?? + return enums.ArtistsNameImagesImageTypeImageIndexGetImageType.values + .firstWhereOrNull( + (e) => e.value == artistsNameImagesImageTypeImageIndexGetImageType, + ) ?? defaultValue ?? - enums.ArtistsNameImagesImageTypeImageIndexGetImageType.swaggerGeneratedUnknown; + enums + .ArtistsNameImagesImageTypeImageIndexGetImageType + .swaggerGeneratedUnknown; } enums.ArtistsNameImagesImageTypeImageIndexGetImageType? - artistsNameImagesImageTypeImageIndexGetImageTypeNullableFromJson( +artistsNameImagesImageTypeImageIndexGetImageTypeNullableFromJson( Object? artistsNameImagesImageTypeImageIndexGetImageType, [ enums.ArtistsNameImagesImageTypeImageIndexGetImageType? defaultValue, ]) { if (artistsNameImagesImageTypeImageIndexGetImageType == null) { return null; } - return enums.ArtistsNameImagesImageTypeImageIndexGetImageType.values.firstWhereOrNull( - (e) => e.value == artistsNameImagesImageTypeImageIndexGetImageType, - ) ?? + return enums.ArtistsNameImagesImageTypeImageIndexGetImageType.values + .firstWhereOrNull( + (e) => e.value == artistsNameImagesImageTypeImageIndexGetImageType, + ) ?? defaultValue; } String artistsNameImagesImageTypeImageIndexGetImageTypeExplodedListToJson( - List? artistsNameImagesImageTypeImageIndexGetImageType, + List? + artistsNameImagesImageTypeImageIndexGetImageType, ) { - return artistsNameImagesImageTypeImageIndexGetImageType?.map((e) => e.value!).join(',') ?? ''; + return artistsNameImagesImageTypeImageIndexGetImageType + ?.map((e) => e.value!) + .join(',') ?? + ''; } List artistsNameImagesImageTypeImageIndexGetImageTypeListToJson( - List? artistsNameImagesImageTypeImageIndexGetImageType, + List? + artistsNameImagesImageTypeImageIndexGetImageType, ) { if (artistsNameImagesImageTypeImageIndexGetImageType == null) { return []; } - return artistsNameImagesImageTypeImageIndexGetImageType.map((e) => e.value!).toList(); + return artistsNameImagesImageTypeImageIndexGetImageType + .map((e) => e.value!) + .toList(); } List - artistsNameImagesImageTypeImageIndexGetImageTypeListFromJson( +artistsNameImagesImageTypeImageIndexGetImageTypeListFromJson( List? artistsNameImagesImageTypeImageIndexGetImageType, [ List? defaultValue, ]) { @@ -61495,7 +64680,7 @@ List } List? - artistsNameImagesImageTypeImageIndexGetImageTypeNullableListFromJson( +artistsNameImagesImageTypeImageIndexGetImageTypeNullableListFromJson( List? artistsNameImagesImageTypeImageIndexGetImageType, [ List? defaultValue, ]) { @@ -61513,58 +64698,74 @@ List? } String? artistsNameImagesImageTypeImageIndexGetFormatNullableToJson( - enums.ArtistsNameImagesImageTypeImageIndexGetFormat? artistsNameImagesImageTypeImageIndexGetFormat, + enums.ArtistsNameImagesImageTypeImageIndexGetFormat? + artistsNameImagesImageTypeImageIndexGetFormat, ) { return artistsNameImagesImageTypeImageIndexGetFormat?.value; } String? artistsNameImagesImageTypeImageIndexGetFormatToJson( - enums.ArtistsNameImagesImageTypeImageIndexGetFormat artistsNameImagesImageTypeImageIndexGetFormat, + enums.ArtistsNameImagesImageTypeImageIndexGetFormat + artistsNameImagesImageTypeImageIndexGetFormat, ) { return artistsNameImagesImageTypeImageIndexGetFormat.value; } -enums.ArtistsNameImagesImageTypeImageIndexGetFormat artistsNameImagesImageTypeImageIndexGetFormatFromJson( +enums.ArtistsNameImagesImageTypeImageIndexGetFormat +artistsNameImagesImageTypeImageIndexGetFormatFromJson( Object? artistsNameImagesImageTypeImageIndexGetFormat, [ enums.ArtistsNameImagesImageTypeImageIndexGetFormat? defaultValue, ]) { - return enums.ArtistsNameImagesImageTypeImageIndexGetFormat.values.firstWhereOrNull( - (e) => e.value == artistsNameImagesImageTypeImageIndexGetFormat, - ) ?? + return enums.ArtistsNameImagesImageTypeImageIndexGetFormat.values + .firstWhereOrNull( + (e) => e.value == artistsNameImagesImageTypeImageIndexGetFormat, + ) ?? defaultValue ?? - enums.ArtistsNameImagesImageTypeImageIndexGetFormat.swaggerGeneratedUnknown; + enums + .ArtistsNameImagesImageTypeImageIndexGetFormat + .swaggerGeneratedUnknown; } -enums.ArtistsNameImagesImageTypeImageIndexGetFormat? artistsNameImagesImageTypeImageIndexGetFormatNullableFromJson( +enums.ArtistsNameImagesImageTypeImageIndexGetFormat? +artistsNameImagesImageTypeImageIndexGetFormatNullableFromJson( Object? artistsNameImagesImageTypeImageIndexGetFormat, [ enums.ArtistsNameImagesImageTypeImageIndexGetFormat? defaultValue, ]) { if (artistsNameImagesImageTypeImageIndexGetFormat == null) { return null; } - return enums.ArtistsNameImagesImageTypeImageIndexGetFormat.values.firstWhereOrNull( - (e) => e.value == artistsNameImagesImageTypeImageIndexGetFormat, - ) ?? + return enums.ArtistsNameImagesImageTypeImageIndexGetFormat.values + .firstWhereOrNull( + (e) => e.value == artistsNameImagesImageTypeImageIndexGetFormat, + ) ?? defaultValue; } String artistsNameImagesImageTypeImageIndexGetFormatExplodedListToJson( - List? artistsNameImagesImageTypeImageIndexGetFormat, + List? + artistsNameImagesImageTypeImageIndexGetFormat, ) { - return artistsNameImagesImageTypeImageIndexGetFormat?.map((e) => e.value!).join(',') ?? ''; + return artistsNameImagesImageTypeImageIndexGetFormat + ?.map((e) => e.value!) + .join(',') ?? + ''; } List artistsNameImagesImageTypeImageIndexGetFormatListToJson( - List? artistsNameImagesImageTypeImageIndexGetFormat, + List? + artistsNameImagesImageTypeImageIndexGetFormat, ) { if (artistsNameImagesImageTypeImageIndexGetFormat == null) { return []; } - return artistsNameImagesImageTypeImageIndexGetFormat.map((e) => e.value!).toList(); + return artistsNameImagesImageTypeImageIndexGetFormat + .map((e) => e.value!) + .toList(); } -List artistsNameImagesImageTypeImageIndexGetFormatListFromJson( +List +artistsNameImagesImageTypeImageIndexGetFormatListFromJson( List? artistsNameImagesImageTypeImageIndexGetFormat, [ List? defaultValue, ]) { @@ -61574,13 +64775,14 @@ List artistsNameImagesImage return artistsNameImagesImageTypeImageIndexGetFormat .map( - (e) => artistsNameImagesImageTypeImageIndexGetFormatFromJson(e.toString()), + (e) => + artistsNameImagesImageTypeImageIndexGetFormatFromJson(e.toString()), ) .toList(); } List? - artistsNameImagesImageTypeImageIndexGetFormatNullableListFromJson( +artistsNameImagesImageTypeImageIndexGetFormatNullableListFromJson( List? artistsNameImagesImageTypeImageIndexGetFormat, [ List? defaultValue, ]) { @@ -61590,66 +64792,81 @@ List? return artistsNameImagesImageTypeImageIndexGetFormat .map( - (e) => artistsNameImagesImageTypeImageIndexGetFormatFromJson(e.toString()), + (e) => + artistsNameImagesImageTypeImageIndexGetFormatFromJson(e.toString()), ) .toList(); } String? artistsNameImagesImageTypeImageIndexHeadImageTypeNullableToJson( - enums.ArtistsNameImagesImageTypeImageIndexHeadImageType? artistsNameImagesImageTypeImageIndexHeadImageType, + enums.ArtistsNameImagesImageTypeImageIndexHeadImageType? + artistsNameImagesImageTypeImageIndexHeadImageType, ) { return artistsNameImagesImageTypeImageIndexHeadImageType?.value; } String? artistsNameImagesImageTypeImageIndexHeadImageTypeToJson( - enums.ArtistsNameImagesImageTypeImageIndexHeadImageType artistsNameImagesImageTypeImageIndexHeadImageType, + enums.ArtistsNameImagesImageTypeImageIndexHeadImageType + artistsNameImagesImageTypeImageIndexHeadImageType, ) { return artistsNameImagesImageTypeImageIndexHeadImageType.value; } -enums.ArtistsNameImagesImageTypeImageIndexHeadImageType artistsNameImagesImageTypeImageIndexHeadImageTypeFromJson( +enums.ArtistsNameImagesImageTypeImageIndexHeadImageType +artistsNameImagesImageTypeImageIndexHeadImageTypeFromJson( Object? artistsNameImagesImageTypeImageIndexHeadImageType, [ enums.ArtistsNameImagesImageTypeImageIndexHeadImageType? defaultValue, ]) { - return enums.ArtistsNameImagesImageTypeImageIndexHeadImageType.values.firstWhereOrNull( - (e) => e.value == artistsNameImagesImageTypeImageIndexHeadImageType, - ) ?? + return enums.ArtistsNameImagesImageTypeImageIndexHeadImageType.values + .firstWhereOrNull( + (e) => e.value == artistsNameImagesImageTypeImageIndexHeadImageType, + ) ?? defaultValue ?? - enums.ArtistsNameImagesImageTypeImageIndexHeadImageType.swaggerGeneratedUnknown; + enums + .ArtistsNameImagesImageTypeImageIndexHeadImageType + .swaggerGeneratedUnknown; } enums.ArtistsNameImagesImageTypeImageIndexHeadImageType? - artistsNameImagesImageTypeImageIndexHeadImageTypeNullableFromJson( +artistsNameImagesImageTypeImageIndexHeadImageTypeNullableFromJson( Object? artistsNameImagesImageTypeImageIndexHeadImageType, [ enums.ArtistsNameImagesImageTypeImageIndexHeadImageType? defaultValue, ]) { if (artistsNameImagesImageTypeImageIndexHeadImageType == null) { return null; } - return enums.ArtistsNameImagesImageTypeImageIndexHeadImageType.values.firstWhereOrNull( - (e) => e.value == artistsNameImagesImageTypeImageIndexHeadImageType, - ) ?? + return enums.ArtistsNameImagesImageTypeImageIndexHeadImageType.values + .firstWhereOrNull( + (e) => e.value == artistsNameImagesImageTypeImageIndexHeadImageType, + ) ?? defaultValue; } String artistsNameImagesImageTypeImageIndexHeadImageTypeExplodedListToJson( - List? artistsNameImagesImageTypeImageIndexHeadImageType, + List? + artistsNameImagesImageTypeImageIndexHeadImageType, ) { - return artistsNameImagesImageTypeImageIndexHeadImageType?.map((e) => e.value!).join(',') ?? ''; + return artistsNameImagesImageTypeImageIndexHeadImageType + ?.map((e) => e.value!) + .join(',') ?? + ''; } List artistsNameImagesImageTypeImageIndexHeadImageTypeListToJson( - List? artistsNameImagesImageTypeImageIndexHeadImageType, + List? + artistsNameImagesImageTypeImageIndexHeadImageType, ) { if (artistsNameImagesImageTypeImageIndexHeadImageType == null) { return []; } - return artistsNameImagesImageTypeImageIndexHeadImageType.map((e) => e.value!).toList(); + return artistsNameImagesImageTypeImageIndexHeadImageType + .map((e) => e.value!) + .toList(); } List - artistsNameImagesImageTypeImageIndexHeadImageTypeListFromJson( +artistsNameImagesImageTypeImageIndexHeadImageTypeListFromJson( List? artistsNameImagesImageTypeImageIndexHeadImageType, [ List? defaultValue, ]) { @@ -61667,7 +64884,7 @@ List } List? - artistsNameImagesImageTypeImageIndexHeadImageTypeNullableListFromJson( +artistsNameImagesImageTypeImageIndexHeadImageTypeNullableListFromJson( List? artistsNameImagesImageTypeImageIndexHeadImageType, [ List? defaultValue, ]) { @@ -61685,58 +64902,74 @@ List? } String? artistsNameImagesImageTypeImageIndexHeadFormatNullableToJson( - enums.ArtistsNameImagesImageTypeImageIndexHeadFormat? artistsNameImagesImageTypeImageIndexHeadFormat, + enums.ArtistsNameImagesImageTypeImageIndexHeadFormat? + artistsNameImagesImageTypeImageIndexHeadFormat, ) { return artistsNameImagesImageTypeImageIndexHeadFormat?.value; } String? artistsNameImagesImageTypeImageIndexHeadFormatToJson( - enums.ArtistsNameImagesImageTypeImageIndexHeadFormat artistsNameImagesImageTypeImageIndexHeadFormat, + enums.ArtistsNameImagesImageTypeImageIndexHeadFormat + artistsNameImagesImageTypeImageIndexHeadFormat, ) { return artistsNameImagesImageTypeImageIndexHeadFormat.value; } -enums.ArtistsNameImagesImageTypeImageIndexHeadFormat artistsNameImagesImageTypeImageIndexHeadFormatFromJson( +enums.ArtistsNameImagesImageTypeImageIndexHeadFormat +artistsNameImagesImageTypeImageIndexHeadFormatFromJson( Object? artistsNameImagesImageTypeImageIndexHeadFormat, [ enums.ArtistsNameImagesImageTypeImageIndexHeadFormat? defaultValue, ]) { - return enums.ArtistsNameImagesImageTypeImageIndexHeadFormat.values.firstWhereOrNull( - (e) => e.value == artistsNameImagesImageTypeImageIndexHeadFormat, - ) ?? + return enums.ArtistsNameImagesImageTypeImageIndexHeadFormat.values + .firstWhereOrNull( + (e) => e.value == artistsNameImagesImageTypeImageIndexHeadFormat, + ) ?? defaultValue ?? - enums.ArtistsNameImagesImageTypeImageIndexHeadFormat.swaggerGeneratedUnknown; + enums + .ArtistsNameImagesImageTypeImageIndexHeadFormat + .swaggerGeneratedUnknown; } -enums.ArtistsNameImagesImageTypeImageIndexHeadFormat? artistsNameImagesImageTypeImageIndexHeadFormatNullableFromJson( +enums.ArtistsNameImagesImageTypeImageIndexHeadFormat? +artistsNameImagesImageTypeImageIndexHeadFormatNullableFromJson( Object? artistsNameImagesImageTypeImageIndexHeadFormat, [ enums.ArtistsNameImagesImageTypeImageIndexHeadFormat? defaultValue, ]) { if (artistsNameImagesImageTypeImageIndexHeadFormat == null) { return null; } - return enums.ArtistsNameImagesImageTypeImageIndexHeadFormat.values.firstWhereOrNull( - (e) => e.value == artistsNameImagesImageTypeImageIndexHeadFormat, - ) ?? + return enums.ArtistsNameImagesImageTypeImageIndexHeadFormat.values + .firstWhereOrNull( + (e) => e.value == artistsNameImagesImageTypeImageIndexHeadFormat, + ) ?? defaultValue; } String artistsNameImagesImageTypeImageIndexHeadFormatExplodedListToJson( - List? artistsNameImagesImageTypeImageIndexHeadFormat, + List? + artistsNameImagesImageTypeImageIndexHeadFormat, ) { - return artistsNameImagesImageTypeImageIndexHeadFormat?.map((e) => e.value!).join(',') ?? ''; + return artistsNameImagesImageTypeImageIndexHeadFormat + ?.map((e) => e.value!) + .join(',') ?? + ''; } List artistsNameImagesImageTypeImageIndexHeadFormatListToJson( - List? artistsNameImagesImageTypeImageIndexHeadFormat, + List? + artistsNameImagesImageTypeImageIndexHeadFormat, ) { if (artistsNameImagesImageTypeImageIndexHeadFormat == null) { return []; } - return artistsNameImagesImageTypeImageIndexHeadFormat.map((e) => e.value!).toList(); + return artistsNameImagesImageTypeImageIndexHeadFormat + .map((e) => e.value!) + .toList(); } -List artistsNameImagesImageTypeImageIndexHeadFormatListFromJson( +List +artistsNameImagesImageTypeImageIndexHeadFormatListFromJson( List? artistsNameImagesImageTypeImageIndexHeadFormat, [ List? defaultValue, ]) { @@ -61754,7 +64987,7 @@ List artistsNameImagesImag } List? - artistsNameImagesImageTypeImageIndexHeadFormatNullableListFromJson( +artistsNameImagesImageTypeImageIndexHeadFormatNullableListFromJson( List? artistsNameImagesImageTypeImageIndexHeadFormat, [ List? defaultValue, ]) { @@ -61794,7 +65027,8 @@ enums.BrandingSplashscreenGetFormat brandingSplashscreenGetFormatFromJson( enums.BrandingSplashscreenGetFormat.swaggerGeneratedUnknown; } -enums.BrandingSplashscreenGetFormat? brandingSplashscreenGetFormatNullableFromJson( +enums.BrandingSplashscreenGetFormat? +brandingSplashscreenGetFormatNullableFromJson( Object? brandingSplashscreenGetFormat, [ enums.BrandingSplashscreenGetFormat? defaultValue, ]) { @@ -61823,7 +65057,8 @@ List brandingSplashscreenGetFormatListToJson( return brandingSplashscreenGetFormat.map((e) => e.value!).toList(); } -List brandingSplashscreenGetFormatListFromJson( +List +brandingSplashscreenGetFormatListFromJson( List? brandingSplashscreenGetFormat, [ List? defaultValue, ]) { @@ -61831,10 +65066,13 @@ List brandingSplashscreenGetFormatListFromJ return defaultValue ?? []; } - return brandingSplashscreenGetFormat.map((e) => brandingSplashscreenGetFormatFromJson(e.toString())).toList(); + return brandingSplashscreenGetFormat + .map((e) => brandingSplashscreenGetFormatFromJson(e.toString())) + .toList(); } -List? brandingSplashscreenGetFormatNullableListFromJson( +List? +brandingSplashscreenGetFormatNullableListFromJson( List? brandingSplashscreenGetFormat, [ List? defaultValue, ]) { @@ -61842,22 +65080,27 @@ List? brandingSplashscreenGetFormatNullable return defaultValue; } - return brandingSplashscreenGetFormat.map((e) => brandingSplashscreenGetFormatFromJson(e.toString())).toList(); + return brandingSplashscreenGetFormat + .map((e) => brandingSplashscreenGetFormatFromJson(e.toString())) + .toList(); } String? genresNameImagesImageTypeGetImageTypeNullableToJson( - enums.GenresNameImagesImageTypeGetImageType? genresNameImagesImageTypeGetImageType, + enums.GenresNameImagesImageTypeGetImageType? + genresNameImagesImageTypeGetImageType, ) { return genresNameImagesImageTypeGetImageType?.value; } String? genresNameImagesImageTypeGetImageTypeToJson( - enums.GenresNameImagesImageTypeGetImageType genresNameImagesImageTypeGetImageType, + enums.GenresNameImagesImageTypeGetImageType + genresNameImagesImageTypeGetImageType, ) { return genresNameImagesImageTypeGetImageType.value; } -enums.GenresNameImagesImageTypeGetImageType genresNameImagesImageTypeGetImageTypeFromJson( +enums.GenresNameImagesImageTypeGetImageType +genresNameImagesImageTypeGetImageTypeFromJson( Object? genresNameImagesImageTypeGetImageType, [ enums.GenresNameImagesImageTypeGetImageType? defaultValue, ]) { @@ -61868,7 +65111,8 @@ enums.GenresNameImagesImageTypeGetImageType genresNameImagesImageTypeGetImageTyp enums.GenresNameImagesImageTypeGetImageType.swaggerGeneratedUnknown; } -enums.GenresNameImagesImageTypeGetImageType? genresNameImagesImageTypeGetImageTypeNullableFromJson( +enums.GenresNameImagesImageTypeGetImageType? +genresNameImagesImageTypeGetImageTypeNullableFromJson( Object? genresNameImagesImageTypeGetImageType, [ enums.GenresNameImagesImageTypeGetImageType? defaultValue, ]) { @@ -61882,13 +65126,18 @@ enums.GenresNameImagesImageTypeGetImageType? genresNameImagesImageTypeGetImageTy } String genresNameImagesImageTypeGetImageTypeExplodedListToJson( - List? genresNameImagesImageTypeGetImageType, + List? + genresNameImagesImageTypeGetImageType, ) { - return genresNameImagesImageTypeGetImageType?.map((e) => e.value!).join(',') ?? ''; + return genresNameImagesImageTypeGetImageType + ?.map((e) => e.value!) + .join(',') ?? + ''; } List genresNameImagesImageTypeGetImageTypeListToJson( - List? genresNameImagesImageTypeGetImageType, + List? + genresNameImagesImageTypeGetImageType, ) { if (genresNameImagesImageTypeGetImageType == null) { return []; @@ -61897,7 +65146,8 @@ List genresNameImagesImageTypeGetImageTypeListToJson( return genresNameImagesImageTypeGetImageType.map((e) => e.value!).toList(); } -List genresNameImagesImageTypeGetImageTypeListFromJson( +List +genresNameImagesImageTypeGetImageTypeListFromJson( List? genresNameImagesImageTypeGetImageType, [ List? defaultValue, ]) { @@ -61910,7 +65160,8 @@ List genresNameImagesImageTypeGetIm .toList(); } -List? genresNameImagesImageTypeGetImageTypeNullableListFromJson( +List? +genresNameImagesImageTypeGetImageTypeNullableListFromJson( List? genresNameImagesImageTypeGetImageType, [ List? defaultValue, ]) { @@ -61935,7 +65186,8 @@ String? genresNameImagesImageTypeGetFormatToJson( return genresNameImagesImageTypeGetFormat.value; } -enums.GenresNameImagesImageTypeGetFormat genresNameImagesImageTypeGetFormatFromJson( +enums.GenresNameImagesImageTypeGetFormat +genresNameImagesImageTypeGetFormatFromJson( Object? genresNameImagesImageTypeGetFormat, [ enums.GenresNameImagesImageTypeGetFormat? defaultValue, ]) { @@ -61946,7 +65198,8 @@ enums.GenresNameImagesImageTypeGetFormat genresNameImagesImageTypeGetFormatFromJ enums.GenresNameImagesImageTypeGetFormat.swaggerGeneratedUnknown; } -enums.GenresNameImagesImageTypeGetFormat? genresNameImagesImageTypeGetFormatNullableFromJson( +enums.GenresNameImagesImageTypeGetFormat? +genresNameImagesImageTypeGetFormatNullableFromJson( Object? genresNameImagesImageTypeGetFormat, [ enums.GenresNameImagesImageTypeGetFormat? defaultValue, ]) { @@ -61960,13 +65213,16 @@ enums.GenresNameImagesImageTypeGetFormat? genresNameImagesImageTypeGetFormatNull } String genresNameImagesImageTypeGetFormatExplodedListToJson( - List? genresNameImagesImageTypeGetFormat, + List? + genresNameImagesImageTypeGetFormat, ) { - return genresNameImagesImageTypeGetFormat?.map((e) => e.value!).join(',') ?? ''; + return genresNameImagesImageTypeGetFormat?.map((e) => e.value!).join(',') ?? + ''; } List genresNameImagesImageTypeGetFormatListToJson( - List? genresNameImagesImageTypeGetFormat, + List? + genresNameImagesImageTypeGetFormat, ) { if (genresNameImagesImageTypeGetFormat == null) { return []; @@ -61975,7 +65231,8 @@ List genresNameImagesImageTypeGetFormatListToJson( return genresNameImagesImageTypeGetFormat.map((e) => e.value!).toList(); } -List genresNameImagesImageTypeGetFormatListFromJson( +List +genresNameImagesImageTypeGetFormatListFromJson( List? genresNameImagesImageTypeGetFormat, [ List? defaultValue, ]) { @@ -61988,7 +65245,8 @@ List genresNameImagesImageTypeGetForma .toList(); } -List? genresNameImagesImageTypeGetFormatNullableListFromJson( +List? +genresNameImagesImageTypeGetFormatNullableListFromJson( List? genresNameImagesImageTypeGetFormat, [ List? defaultValue, ]) { @@ -62002,18 +65260,21 @@ List? genresNameImagesImageTypeGetForm } String? genresNameImagesImageTypeHeadImageTypeNullableToJson( - enums.GenresNameImagesImageTypeHeadImageType? genresNameImagesImageTypeHeadImageType, + enums.GenresNameImagesImageTypeHeadImageType? + genresNameImagesImageTypeHeadImageType, ) { return genresNameImagesImageTypeHeadImageType?.value; } String? genresNameImagesImageTypeHeadImageTypeToJson( - enums.GenresNameImagesImageTypeHeadImageType genresNameImagesImageTypeHeadImageType, + enums.GenresNameImagesImageTypeHeadImageType + genresNameImagesImageTypeHeadImageType, ) { return genresNameImagesImageTypeHeadImageType.value; } -enums.GenresNameImagesImageTypeHeadImageType genresNameImagesImageTypeHeadImageTypeFromJson( +enums.GenresNameImagesImageTypeHeadImageType +genresNameImagesImageTypeHeadImageTypeFromJson( Object? genresNameImagesImageTypeHeadImageType, [ enums.GenresNameImagesImageTypeHeadImageType? defaultValue, ]) { @@ -62024,7 +65285,8 @@ enums.GenresNameImagesImageTypeHeadImageType genresNameImagesImageTypeHeadImageT enums.GenresNameImagesImageTypeHeadImageType.swaggerGeneratedUnknown; } -enums.GenresNameImagesImageTypeHeadImageType? genresNameImagesImageTypeHeadImageTypeNullableFromJson( +enums.GenresNameImagesImageTypeHeadImageType? +genresNameImagesImageTypeHeadImageTypeNullableFromJson( Object? genresNameImagesImageTypeHeadImageType, [ enums.GenresNameImagesImageTypeHeadImageType? defaultValue, ]) { @@ -62038,13 +65300,18 @@ enums.GenresNameImagesImageTypeHeadImageType? genresNameImagesImageTypeHeadImage } String genresNameImagesImageTypeHeadImageTypeExplodedListToJson( - List? genresNameImagesImageTypeHeadImageType, + List? + genresNameImagesImageTypeHeadImageType, ) { - return genresNameImagesImageTypeHeadImageType?.map((e) => e.value!).join(',') ?? ''; + return genresNameImagesImageTypeHeadImageType + ?.map((e) => e.value!) + .join(',') ?? + ''; } List genresNameImagesImageTypeHeadImageTypeListToJson( - List? genresNameImagesImageTypeHeadImageType, + List? + genresNameImagesImageTypeHeadImageType, ) { if (genresNameImagesImageTypeHeadImageType == null) { return []; @@ -62053,7 +65320,8 @@ List genresNameImagesImageTypeHeadImageTypeListToJson( return genresNameImagesImageTypeHeadImageType.map((e) => e.value!).toList(); } -List genresNameImagesImageTypeHeadImageTypeListFromJson( +List +genresNameImagesImageTypeHeadImageTypeListFromJson( List? genresNameImagesImageTypeHeadImageType, [ List? defaultValue, ]) { @@ -62066,7 +65334,8 @@ List genresNameImagesImageTypeHead .toList(); } -List? genresNameImagesImageTypeHeadImageTypeNullableListFromJson( +List? +genresNameImagesImageTypeHeadImageTypeNullableListFromJson( List? genresNameImagesImageTypeHeadImageType, [ List? defaultValue, ]) { @@ -62080,7 +65349,8 @@ List? genresNameImagesImageTypeHea } String? genresNameImagesImageTypeHeadFormatNullableToJson( - enums.GenresNameImagesImageTypeHeadFormat? genresNameImagesImageTypeHeadFormat, + enums.GenresNameImagesImageTypeHeadFormat? + genresNameImagesImageTypeHeadFormat, ) { return genresNameImagesImageTypeHeadFormat?.value; } @@ -62091,7 +65361,8 @@ String? genresNameImagesImageTypeHeadFormatToJson( return genresNameImagesImageTypeHeadFormat.value; } -enums.GenresNameImagesImageTypeHeadFormat genresNameImagesImageTypeHeadFormatFromJson( +enums.GenresNameImagesImageTypeHeadFormat +genresNameImagesImageTypeHeadFormatFromJson( Object? genresNameImagesImageTypeHeadFormat, [ enums.GenresNameImagesImageTypeHeadFormat? defaultValue, ]) { @@ -62102,7 +65373,8 @@ enums.GenresNameImagesImageTypeHeadFormat genresNameImagesImageTypeHeadFormatFro enums.GenresNameImagesImageTypeHeadFormat.swaggerGeneratedUnknown; } -enums.GenresNameImagesImageTypeHeadFormat? genresNameImagesImageTypeHeadFormatNullableFromJson( +enums.GenresNameImagesImageTypeHeadFormat? +genresNameImagesImageTypeHeadFormatNullableFromJson( Object? genresNameImagesImageTypeHeadFormat, [ enums.GenresNameImagesImageTypeHeadFormat? defaultValue, ]) { @@ -62116,13 +65388,16 @@ enums.GenresNameImagesImageTypeHeadFormat? genresNameImagesImageTypeHeadFormatNu } String genresNameImagesImageTypeHeadFormatExplodedListToJson( - List? genresNameImagesImageTypeHeadFormat, + List? + genresNameImagesImageTypeHeadFormat, ) { - return genresNameImagesImageTypeHeadFormat?.map((e) => e.value!).join(',') ?? ''; + return genresNameImagesImageTypeHeadFormat?.map((e) => e.value!).join(',') ?? + ''; } List genresNameImagesImageTypeHeadFormatListToJson( - List? genresNameImagesImageTypeHeadFormat, + List? + genresNameImagesImageTypeHeadFormat, ) { if (genresNameImagesImageTypeHeadFormat == null) { return []; @@ -62131,7 +65406,8 @@ List genresNameImagesImageTypeHeadFormatListToJson( return genresNameImagesImageTypeHeadFormat.map((e) => e.value!).toList(); } -List genresNameImagesImageTypeHeadFormatListFromJson( +List +genresNameImagesImageTypeHeadFormatListFromJson( List? genresNameImagesImageTypeHeadFormat, [ List? defaultValue, ]) { @@ -62144,7 +65420,8 @@ List genresNameImagesImageTypeHeadFor .toList(); } -List? genresNameImagesImageTypeHeadFormatNullableListFromJson( +List? +genresNameImagesImageTypeHeadFormatNullableListFromJson( List? genresNameImagesImageTypeHeadFormat, [ List? defaultValue, ]) { @@ -62158,58 +65435,74 @@ List? genresNameImagesImageTypeHeadFo } String? genresNameImagesImageTypeImageIndexGetImageTypeNullableToJson( - enums.GenresNameImagesImageTypeImageIndexGetImageType? genresNameImagesImageTypeImageIndexGetImageType, + enums.GenresNameImagesImageTypeImageIndexGetImageType? + genresNameImagesImageTypeImageIndexGetImageType, ) { return genresNameImagesImageTypeImageIndexGetImageType?.value; } String? genresNameImagesImageTypeImageIndexGetImageTypeToJson( - enums.GenresNameImagesImageTypeImageIndexGetImageType genresNameImagesImageTypeImageIndexGetImageType, + enums.GenresNameImagesImageTypeImageIndexGetImageType + genresNameImagesImageTypeImageIndexGetImageType, ) { return genresNameImagesImageTypeImageIndexGetImageType.value; } -enums.GenresNameImagesImageTypeImageIndexGetImageType genresNameImagesImageTypeImageIndexGetImageTypeFromJson( +enums.GenresNameImagesImageTypeImageIndexGetImageType +genresNameImagesImageTypeImageIndexGetImageTypeFromJson( Object? genresNameImagesImageTypeImageIndexGetImageType, [ enums.GenresNameImagesImageTypeImageIndexGetImageType? defaultValue, ]) { - return enums.GenresNameImagesImageTypeImageIndexGetImageType.values.firstWhereOrNull( - (e) => e.value == genresNameImagesImageTypeImageIndexGetImageType, - ) ?? + return enums.GenresNameImagesImageTypeImageIndexGetImageType.values + .firstWhereOrNull( + (e) => e.value == genresNameImagesImageTypeImageIndexGetImageType, + ) ?? defaultValue ?? - enums.GenresNameImagesImageTypeImageIndexGetImageType.swaggerGeneratedUnknown; + enums + .GenresNameImagesImageTypeImageIndexGetImageType + .swaggerGeneratedUnknown; } -enums.GenresNameImagesImageTypeImageIndexGetImageType? genresNameImagesImageTypeImageIndexGetImageTypeNullableFromJson( +enums.GenresNameImagesImageTypeImageIndexGetImageType? +genresNameImagesImageTypeImageIndexGetImageTypeNullableFromJson( Object? genresNameImagesImageTypeImageIndexGetImageType, [ enums.GenresNameImagesImageTypeImageIndexGetImageType? defaultValue, ]) { if (genresNameImagesImageTypeImageIndexGetImageType == null) { return null; } - return enums.GenresNameImagesImageTypeImageIndexGetImageType.values.firstWhereOrNull( - (e) => e.value == genresNameImagesImageTypeImageIndexGetImageType, - ) ?? + return enums.GenresNameImagesImageTypeImageIndexGetImageType.values + .firstWhereOrNull( + (e) => e.value == genresNameImagesImageTypeImageIndexGetImageType, + ) ?? defaultValue; } String genresNameImagesImageTypeImageIndexGetImageTypeExplodedListToJson( - List? genresNameImagesImageTypeImageIndexGetImageType, + List? + genresNameImagesImageTypeImageIndexGetImageType, ) { - return genresNameImagesImageTypeImageIndexGetImageType?.map((e) => e.value!).join(',') ?? ''; + return genresNameImagesImageTypeImageIndexGetImageType + ?.map((e) => e.value!) + .join(',') ?? + ''; } List genresNameImagesImageTypeImageIndexGetImageTypeListToJson( - List? genresNameImagesImageTypeImageIndexGetImageType, + List? + genresNameImagesImageTypeImageIndexGetImageType, ) { if (genresNameImagesImageTypeImageIndexGetImageType == null) { return []; } - return genresNameImagesImageTypeImageIndexGetImageType.map((e) => e.value!).toList(); + return genresNameImagesImageTypeImageIndexGetImageType + .map((e) => e.value!) + .toList(); } -List genresNameImagesImageTypeImageIndexGetImageTypeListFromJson( +List +genresNameImagesImageTypeImageIndexGetImageTypeListFromJson( List? genresNameImagesImageTypeImageIndexGetImageType, [ List? defaultValue, ]) { @@ -62227,7 +65520,7 @@ List genresNameImagesImag } List? - genresNameImagesImageTypeImageIndexGetImageTypeNullableListFromJson( +genresNameImagesImageTypeImageIndexGetImageTypeNullableListFromJson( List? genresNameImagesImageTypeImageIndexGetImageType, [ List? defaultValue, ]) { @@ -62245,58 +65538,74 @@ List? } String? genresNameImagesImageTypeImageIndexGetFormatNullableToJson( - enums.GenresNameImagesImageTypeImageIndexGetFormat? genresNameImagesImageTypeImageIndexGetFormat, + enums.GenresNameImagesImageTypeImageIndexGetFormat? + genresNameImagesImageTypeImageIndexGetFormat, ) { return genresNameImagesImageTypeImageIndexGetFormat?.value; } String? genresNameImagesImageTypeImageIndexGetFormatToJson( - enums.GenresNameImagesImageTypeImageIndexGetFormat genresNameImagesImageTypeImageIndexGetFormat, + enums.GenresNameImagesImageTypeImageIndexGetFormat + genresNameImagesImageTypeImageIndexGetFormat, ) { return genresNameImagesImageTypeImageIndexGetFormat.value; } -enums.GenresNameImagesImageTypeImageIndexGetFormat genresNameImagesImageTypeImageIndexGetFormatFromJson( +enums.GenresNameImagesImageTypeImageIndexGetFormat +genresNameImagesImageTypeImageIndexGetFormatFromJson( Object? genresNameImagesImageTypeImageIndexGetFormat, [ enums.GenresNameImagesImageTypeImageIndexGetFormat? defaultValue, ]) { - return enums.GenresNameImagesImageTypeImageIndexGetFormat.values.firstWhereOrNull( - (e) => e.value == genresNameImagesImageTypeImageIndexGetFormat, - ) ?? + return enums.GenresNameImagesImageTypeImageIndexGetFormat.values + .firstWhereOrNull( + (e) => e.value == genresNameImagesImageTypeImageIndexGetFormat, + ) ?? defaultValue ?? - enums.GenresNameImagesImageTypeImageIndexGetFormat.swaggerGeneratedUnknown; + enums + .GenresNameImagesImageTypeImageIndexGetFormat + .swaggerGeneratedUnknown; } -enums.GenresNameImagesImageTypeImageIndexGetFormat? genresNameImagesImageTypeImageIndexGetFormatNullableFromJson( +enums.GenresNameImagesImageTypeImageIndexGetFormat? +genresNameImagesImageTypeImageIndexGetFormatNullableFromJson( Object? genresNameImagesImageTypeImageIndexGetFormat, [ enums.GenresNameImagesImageTypeImageIndexGetFormat? defaultValue, ]) { if (genresNameImagesImageTypeImageIndexGetFormat == null) { return null; } - return enums.GenresNameImagesImageTypeImageIndexGetFormat.values.firstWhereOrNull( - (e) => e.value == genresNameImagesImageTypeImageIndexGetFormat, - ) ?? + return enums.GenresNameImagesImageTypeImageIndexGetFormat.values + .firstWhereOrNull( + (e) => e.value == genresNameImagesImageTypeImageIndexGetFormat, + ) ?? defaultValue; } String genresNameImagesImageTypeImageIndexGetFormatExplodedListToJson( - List? genresNameImagesImageTypeImageIndexGetFormat, + List? + genresNameImagesImageTypeImageIndexGetFormat, ) { - return genresNameImagesImageTypeImageIndexGetFormat?.map((e) => e.value!).join(',') ?? ''; + return genresNameImagesImageTypeImageIndexGetFormat + ?.map((e) => e.value!) + .join(',') ?? + ''; } List genresNameImagesImageTypeImageIndexGetFormatListToJson( - List? genresNameImagesImageTypeImageIndexGetFormat, + List? + genresNameImagesImageTypeImageIndexGetFormat, ) { if (genresNameImagesImageTypeImageIndexGetFormat == null) { return []; } - return genresNameImagesImageTypeImageIndexGetFormat.map((e) => e.value!).toList(); + return genresNameImagesImageTypeImageIndexGetFormat + .map((e) => e.value!) + .toList(); } -List genresNameImagesImageTypeImageIndexGetFormatListFromJson( +List +genresNameImagesImageTypeImageIndexGetFormatListFromJson( List? genresNameImagesImageTypeImageIndexGetFormat, [ List? defaultValue, ]) { @@ -62306,13 +65615,14 @@ List genresNameImagesImageTy return genresNameImagesImageTypeImageIndexGetFormat .map( - (e) => genresNameImagesImageTypeImageIndexGetFormatFromJson(e.toString()), + (e) => + genresNameImagesImageTypeImageIndexGetFormatFromJson(e.toString()), ) .toList(); } List? - genresNameImagesImageTypeImageIndexGetFormatNullableListFromJson( +genresNameImagesImageTypeImageIndexGetFormatNullableListFromJson( List? genresNameImagesImageTypeImageIndexGetFormat, [ List? defaultValue, ]) { @@ -62322,66 +65632,81 @@ List? return genresNameImagesImageTypeImageIndexGetFormat .map( - (e) => genresNameImagesImageTypeImageIndexGetFormatFromJson(e.toString()), + (e) => + genresNameImagesImageTypeImageIndexGetFormatFromJson(e.toString()), ) .toList(); } String? genresNameImagesImageTypeImageIndexHeadImageTypeNullableToJson( - enums.GenresNameImagesImageTypeImageIndexHeadImageType? genresNameImagesImageTypeImageIndexHeadImageType, + enums.GenresNameImagesImageTypeImageIndexHeadImageType? + genresNameImagesImageTypeImageIndexHeadImageType, ) { return genresNameImagesImageTypeImageIndexHeadImageType?.value; } String? genresNameImagesImageTypeImageIndexHeadImageTypeToJson( - enums.GenresNameImagesImageTypeImageIndexHeadImageType genresNameImagesImageTypeImageIndexHeadImageType, + enums.GenresNameImagesImageTypeImageIndexHeadImageType + genresNameImagesImageTypeImageIndexHeadImageType, ) { return genresNameImagesImageTypeImageIndexHeadImageType.value; } -enums.GenresNameImagesImageTypeImageIndexHeadImageType genresNameImagesImageTypeImageIndexHeadImageTypeFromJson( +enums.GenresNameImagesImageTypeImageIndexHeadImageType +genresNameImagesImageTypeImageIndexHeadImageTypeFromJson( Object? genresNameImagesImageTypeImageIndexHeadImageType, [ enums.GenresNameImagesImageTypeImageIndexHeadImageType? defaultValue, ]) { - return enums.GenresNameImagesImageTypeImageIndexHeadImageType.values.firstWhereOrNull( - (e) => e.value == genresNameImagesImageTypeImageIndexHeadImageType, - ) ?? + return enums.GenresNameImagesImageTypeImageIndexHeadImageType.values + .firstWhereOrNull( + (e) => e.value == genresNameImagesImageTypeImageIndexHeadImageType, + ) ?? defaultValue ?? - enums.GenresNameImagesImageTypeImageIndexHeadImageType.swaggerGeneratedUnknown; + enums + .GenresNameImagesImageTypeImageIndexHeadImageType + .swaggerGeneratedUnknown; } enums.GenresNameImagesImageTypeImageIndexHeadImageType? - genresNameImagesImageTypeImageIndexHeadImageTypeNullableFromJson( +genresNameImagesImageTypeImageIndexHeadImageTypeNullableFromJson( Object? genresNameImagesImageTypeImageIndexHeadImageType, [ enums.GenresNameImagesImageTypeImageIndexHeadImageType? defaultValue, ]) { if (genresNameImagesImageTypeImageIndexHeadImageType == null) { return null; } - return enums.GenresNameImagesImageTypeImageIndexHeadImageType.values.firstWhereOrNull( - (e) => e.value == genresNameImagesImageTypeImageIndexHeadImageType, - ) ?? + return enums.GenresNameImagesImageTypeImageIndexHeadImageType.values + .firstWhereOrNull( + (e) => e.value == genresNameImagesImageTypeImageIndexHeadImageType, + ) ?? defaultValue; } String genresNameImagesImageTypeImageIndexHeadImageTypeExplodedListToJson( - List? genresNameImagesImageTypeImageIndexHeadImageType, + List? + genresNameImagesImageTypeImageIndexHeadImageType, ) { - return genresNameImagesImageTypeImageIndexHeadImageType?.map((e) => e.value!).join(',') ?? ''; + return genresNameImagesImageTypeImageIndexHeadImageType + ?.map((e) => e.value!) + .join(',') ?? + ''; } List genresNameImagesImageTypeImageIndexHeadImageTypeListToJson( - List? genresNameImagesImageTypeImageIndexHeadImageType, + List? + genresNameImagesImageTypeImageIndexHeadImageType, ) { if (genresNameImagesImageTypeImageIndexHeadImageType == null) { return []; } - return genresNameImagesImageTypeImageIndexHeadImageType.map((e) => e.value!).toList(); + return genresNameImagesImageTypeImageIndexHeadImageType + .map((e) => e.value!) + .toList(); } List - genresNameImagesImageTypeImageIndexHeadImageTypeListFromJson( +genresNameImagesImageTypeImageIndexHeadImageTypeListFromJson( List? genresNameImagesImageTypeImageIndexHeadImageType, [ List? defaultValue, ]) { @@ -62399,7 +65724,7 @@ List } List? - genresNameImagesImageTypeImageIndexHeadImageTypeNullableListFromJson( +genresNameImagesImageTypeImageIndexHeadImageTypeNullableListFromJson( List? genresNameImagesImageTypeImageIndexHeadImageType, [ List? defaultValue, ]) { @@ -62417,58 +65742,74 @@ List? } String? genresNameImagesImageTypeImageIndexHeadFormatNullableToJson( - enums.GenresNameImagesImageTypeImageIndexHeadFormat? genresNameImagesImageTypeImageIndexHeadFormat, + enums.GenresNameImagesImageTypeImageIndexHeadFormat? + genresNameImagesImageTypeImageIndexHeadFormat, ) { return genresNameImagesImageTypeImageIndexHeadFormat?.value; } String? genresNameImagesImageTypeImageIndexHeadFormatToJson( - enums.GenresNameImagesImageTypeImageIndexHeadFormat genresNameImagesImageTypeImageIndexHeadFormat, + enums.GenresNameImagesImageTypeImageIndexHeadFormat + genresNameImagesImageTypeImageIndexHeadFormat, ) { return genresNameImagesImageTypeImageIndexHeadFormat.value; } -enums.GenresNameImagesImageTypeImageIndexHeadFormat genresNameImagesImageTypeImageIndexHeadFormatFromJson( +enums.GenresNameImagesImageTypeImageIndexHeadFormat +genresNameImagesImageTypeImageIndexHeadFormatFromJson( Object? genresNameImagesImageTypeImageIndexHeadFormat, [ enums.GenresNameImagesImageTypeImageIndexHeadFormat? defaultValue, ]) { - return enums.GenresNameImagesImageTypeImageIndexHeadFormat.values.firstWhereOrNull( - (e) => e.value == genresNameImagesImageTypeImageIndexHeadFormat, - ) ?? + return enums.GenresNameImagesImageTypeImageIndexHeadFormat.values + .firstWhereOrNull( + (e) => e.value == genresNameImagesImageTypeImageIndexHeadFormat, + ) ?? defaultValue ?? - enums.GenresNameImagesImageTypeImageIndexHeadFormat.swaggerGeneratedUnknown; + enums + .GenresNameImagesImageTypeImageIndexHeadFormat + .swaggerGeneratedUnknown; } -enums.GenresNameImagesImageTypeImageIndexHeadFormat? genresNameImagesImageTypeImageIndexHeadFormatNullableFromJson( +enums.GenresNameImagesImageTypeImageIndexHeadFormat? +genresNameImagesImageTypeImageIndexHeadFormatNullableFromJson( Object? genresNameImagesImageTypeImageIndexHeadFormat, [ enums.GenresNameImagesImageTypeImageIndexHeadFormat? defaultValue, ]) { if (genresNameImagesImageTypeImageIndexHeadFormat == null) { return null; } - return enums.GenresNameImagesImageTypeImageIndexHeadFormat.values.firstWhereOrNull( - (e) => e.value == genresNameImagesImageTypeImageIndexHeadFormat, - ) ?? + return enums.GenresNameImagesImageTypeImageIndexHeadFormat.values + .firstWhereOrNull( + (e) => e.value == genresNameImagesImageTypeImageIndexHeadFormat, + ) ?? defaultValue; } String genresNameImagesImageTypeImageIndexHeadFormatExplodedListToJson( - List? genresNameImagesImageTypeImageIndexHeadFormat, + List? + genresNameImagesImageTypeImageIndexHeadFormat, ) { - return genresNameImagesImageTypeImageIndexHeadFormat?.map((e) => e.value!).join(',') ?? ''; + return genresNameImagesImageTypeImageIndexHeadFormat + ?.map((e) => e.value!) + .join(',') ?? + ''; } List genresNameImagesImageTypeImageIndexHeadFormatListToJson( - List? genresNameImagesImageTypeImageIndexHeadFormat, + List? + genresNameImagesImageTypeImageIndexHeadFormat, ) { if (genresNameImagesImageTypeImageIndexHeadFormat == null) { return []; } - return genresNameImagesImageTypeImageIndexHeadFormat.map((e) => e.value!).toList(); + return genresNameImagesImageTypeImageIndexHeadFormat + .map((e) => e.value!) + .toList(); } -List genresNameImagesImageTypeImageIndexHeadFormatListFromJson( +List +genresNameImagesImageTypeImageIndexHeadFormatListFromJson( List? genresNameImagesImageTypeImageIndexHeadFormat, [ List? defaultValue, ]) { @@ -62478,13 +65819,14 @@ List genresNameImagesImageT return genresNameImagesImageTypeImageIndexHeadFormat .map( - (e) => genresNameImagesImageTypeImageIndexHeadFormatFromJson(e.toString()), + (e) => + genresNameImagesImageTypeImageIndexHeadFormatFromJson(e.toString()), ) .toList(); } List? - genresNameImagesImageTypeImageIndexHeadFormatNullableListFromJson( +genresNameImagesImageTypeImageIndexHeadFormatNullableListFromJson( List? genresNameImagesImageTypeImageIndexHeadFormat, [ List? defaultValue, ]) { @@ -62494,64 +65836,79 @@ List? return genresNameImagesImageTypeImageIndexHeadFormat .map( - (e) => genresNameImagesImageTypeImageIndexHeadFormatFromJson(e.toString()), + (e) => + genresNameImagesImageTypeImageIndexHeadFormatFromJson(e.toString()), ) .toList(); } String? itemsItemIdImagesImageTypeDeleteImageTypeNullableToJson( - enums.ItemsItemIdImagesImageTypeDeleteImageType? itemsItemIdImagesImageTypeDeleteImageType, + enums.ItemsItemIdImagesImageTypeDeleteImageType? + itemsItemIdImagesImageTypeDeleteImageType, ) { return itemsItemIdImagesImageTypeDeleteImageType?.value; } String? itemsItemIdImagesImageTypeDeleteImageTypeToJson( - enums.ItemsItemIdImagesImageTypeDeleteImageType itemsItemIdImagesImageTypeDeleteImageType, + enums.ItemsItemIdImagesImageTypeDeleteImageType + itemsItemIdImagesImageTypeDeleteImageType, ) { return itemsItemIdImagesImageTypeDeleteImageType.value; } -enums.ItemsItemIdImagesImageTypeDeleteImageType itemsItemIdImagesImageTypeDeleteImageTypeFromJson( +enums.ItemsItemIdImagesImageTypeDeleteImageType +itemsItemIdImagesImageTypeDeleteImageTypeFromJson( Object? itemsItemIdImagesImageTypeDeleteImageType, [ enums.ItemsItemIdImagesImageTypeDeleteImageType? defaultValue, ]) { - return enums.ItemsItemIdImagesImageTypeDeleteImageType.values.firstWhereOrNull( - (e) => e.value == itemsItemIdImagesImageTypeDeleteImageType, - ) ?? + return enums.ItemsItemIdImagesImageTypeDeleteImageType.values + .firstWhereOrNull( + (e) => e.value == itemsItemIdImagesImageTypeDeleteImageType, + ) ?? defaultValue ?? enums.ItemsItemIdImagesImageTypeDeleteImageType.swaggerGeneratedUnknown; } -enums.ItemsItemIdImagesImageTypeDeleteImageType? itemsItemIdImagesImageTypeDeleteImageTypeNullableFromJson( +enums.ItemsItemIdImagesImageTypeDeleteImageType? +itemsItemIdImagesImageTypeDeleteImageTypeNullableFromJson( Object? itemsItemIdImagesImageTypeDeleteImageType, [ enums.ItemsItemIdImagesImageTypeDeleteImageType? defaultValue, ]) { if (itemsItemIdImagesImageTypeDeleteImageType == null) { return null; } - return enums.ItemsItemIdImagesImageTypeDeleteImageType.values.firstWhereOrNull( - (e) => e.value == itemsItemIdImagesImageTypeDeleteImageType, - ) ?? + return enums.ItemsItemIdImagesImageTypeDeleteImageType.values + .firstWhereOrNull( + (e) => e.value == itemsItemIdImagesImageTypeDeleteImageType, + ) ?? defaultValue; } String itemsItemIdImagesImageTypeDeleteImageTypeExplodedListToJson( - List? itemsItemIdImagesImageTypeDeleteImageType, + List? + itemsItemIdImagesImageTypeDeleteImageType, ) { - return itemsItemIdImagesImageTypeDeleteImageType?.map((e) => e.value!).join(',') ?? ''; + return itemsItemIdImagesImageTypeDeleteImageType + ?.map((e) => e.value!) + .join(',') ?? + ''; } List itemsItemIdImagesImageTypeDeleteImageTypeListToJson( - List? itemsItemIdImagesImageTypeDeleteImageType, + List? + itemsItemIdImagesImageTypeDeleteImageType, ) { if (itemsItemIdImagesImageTypeDeleteImageType == null) { return []; } - return itemsItemIdImagesImageTypeDeleteImageType.map((e) => e.value!).toList(); + return itemsItemIdImagesImageTypeDeleteImageType + .map((e) => e.value!) + .toList(); } -List itemsItemIdImagesImageTypeDeleteImageTypeListFromJson( +List +itemsItemIdImagesImageTypeDeleteImageTypeListFromJson( List? itemsItemIdImagesImageTypeDeleteImageType, [ List? defaultValue, ]) { @@ -62566,7 +65923,8 @@ List itemsItemIdImagesImageType .toList(); } -List? itemsItemIdImagesImageTypeDeleteImageTypeNullableListFromJson( +List? +itemsItemIdImagesImageTypeDeleteImageTypeNullableListFromJson( List? itemsItemIdImagesImageTypeDeleteImageType, [ List? defaultValue, ]) { @@ -62582,18 +65940,21 @@ List? itemsItemIdImagesImageTyp } String? itemsItemIdImagesImageTypePostImageTypeNullableToJson( - enums.ItemsItemIdImagesImageTypePostImageType? itemsItemIdImagesImageTypePostImageType, + enums.ItemsItemIdImagesImageTypePostImageType? + itemsItemIdImagesImageTypePostImageType, ) { return itemsItemIdImagesImageTypePostImageType?.value; } String? itemsItemIdImagesImageTypePostImageTypeToJson( - enums.ItemsItemIdImagesImageTypePostImageType itemsItemIdImagesImageTypePostImageType, + enums.ItemsItemIdImagesImageTypePostImageType + itemsItemIdImagesImageTypePostImageType, ) { return itemsItemIdImagesImageTypePostImageType.value; } -enums.ItemsItemIdImagesImageTypePostImageType itemsItemIdImagesImageTypePostImageTypeFromJson( +enums.ItemsItemIdImagesImageTypePostImageType +itemsItemIdImagesImageTypePostImageTypeFromJson( Object? itemsItemIdImagesImageTypePostImageType, [ enums.ItemsItemIdImagesImageTypePostImageType? defaultValue, ]) { @@ -62604,7 +65965,8 @@ enums.ItemsItemIdImagesImageTypePostImageType itemsItemIdImagesImageTypePostImag enums.ItemsItemIdImagesImageTypePostImageType.swaggerGeneratedUnknown; } -enums.ItemsItemIdImagesImageTypePostImageType? itemsItemIdImagesImageTypePostImageTypeNullableFromJson( +enums.ItemsItemIdImagesImageTypePostImageType? +itemsItemIdImagesImageTypePostImageTypeNullableFromJson( Object? itemsItemIdImagesImageTypePostImageType, [ enums.ItemsItemIdImagesImageTypePostImageType? defaultValue, ]) { @@ -62618,13 +65980,18 @@ enums.ItemsItemIdImagesImageTypePostImageType? itemsItemIdImagesImageTypePostIma } String itemsItemIdImagesImageTypePostImageTypeExplodedListToJson( - List? itemsItemIdImagesImageTypePostImageType, + List? + itemsItemIdImagesImageTypePostImageType, ) { - return itemsItemIdImagesImageTypePostImageType?.map((e) => e.value!).join(',') ?? ''; + return itemsItemIdImagesImageTypePostImageType + ?.map((e) => e.value!) + .join(',') ?? + ''; } List itemsItemIdImagesImageTypePostImageTypeListToJson( - List? itemsItemIdImagesImageTypePostImageType, + List? + itemsItemIdImagesImageTypePostImageType, ) { if (itemsItemIdImagesImageTypePostImageType == null) { return []; @@ -62633,7 +66000,8 @@ List itemsItemIdImagesImageTypePostImageTypeListToJson( return itemsItemIdImagesImageTypePostImageType.map((e) => e.value!).toList(); } -List itemsItemIdImagesImageTypePostImageTypeListFromJson( +List +itemsItemIdImagesImageTypePostImageTypeListFromJson( List? itemsItemIdImagesImageTypePostImageType, [ List? defaultValue, ]) { @@ -62646,7 +66014,8 @@ List itemsItemIdImagesImageTypePo .toList(); } -List? itemsItemIdImagesImageTypePostImageTypeNullableListFromJson( +List? +itemsItemIdImagesImageTypePostImageTypeNullableListFromJson( List? itemsItemIdImagesImageTypePostImageType, [ List? defaultValue, ]) { @@ -62660,18 +66029,21 @@ List? itemsItemIdImagesImageTypeP } String? itemsItemIdImagesImageTypeGetImageTypeNullableToJson( - enums.ItemsItemIdImagesImageTypeGetImageType? itemsItemIdImagesImageTypeGetImageType, + enums.ItemsItemIdImagesImageTypeGetImageType? + itemsItemIdImagesImageTypeGetImageType, ) { return itemsItemIdImagesImageTypeGetImageType?.value; } String? itemsItemIdImagesImageTypeGetImageTypeToJson( - enums.ItemsItemIdImagesImageTypeGetImageType itemsItemIdImagesImageTypeGetImageType, + enums.ItemsItemIdImagesImageTypeGetImageType + itemsItemIdImagesImageTypeGetImageType, ) { return itemsItemIdImagesImageTypeGetImageType.value; } -enums.ItemsItemIdImagesImageTypeGetImageType itemsItemIdImagesImageTypeGetImageTypeFromJson( +enums.ItemsItemIdImagesImageTypeGetImageType +itemsItemIdImagesImageTypeGetImageTypeFromJson( Object? itemsItemIdImagesImageTypeGetImageType, [ enums.ItemsItemIdImagesImageTypeGetImageType? defaultValue, ]) { @@ -62682,7 +66054,8 @@ enums.ItemsItemIdImagesImageTypeGetImageType itemsItemIdImagesImageTypeGetImageT enums.ItemsItemIdImagesImageTypeGetImageType.swaggerGeneratedUnknown; } -enums.ItemsItemIdImagesImageTypeGetImageType? itemsItemIdImagesImageTypeGetImageTypeNullableFromJson( +enums.ItemsItemIdImagesImageTypeGetImageType? +itemsItemIdImagesImageTypeGetImageTypeNullableFromJson( Object? itemsItemIdImagesImageTypeGetImageType, [ enums.ItemsItemIdImagesImageTypeGetImageType? defaultValue, ]) { @@ -62696,13 +66069,18 @@ enums.ItemsItemIdImagesImageTypeGetImageType? itemsItemIdImagesImageTypeGetImage } String itemsItemIdImagesImageTypeGetImageTypeExplodedListToJson( - List? itemsItemIdImagesImageTypeGetImageType, + List? + itemsItemIdImagesImageTypeGetImageType, ) { - return itemsItemIdImagesImageTypeGetImageType?.map((e) => e.value!).join(',') ?? ''; + return itemsItemIdImagesImageTypeGetImageType + ?.map((e) => e.value!) + .join(',') ?? + ''; } List itemsItemIdImagesImageTypeGetImageTypeListToJson( - List? itemsItemIdImagesImageTypeGetImageType, + List? + itemsItemIdImagesImageTypeGetImageType, ) { if (itemsItemIdImagesImageTypeGetImageType == null) { return []; @@ -62711,7 +66089,8 @@ List itemsItemIdImagesImageTypeGetImageTypeListToJson( return itemsItemIdImagesImageTypeGetImageType.map((e) => e.value!).toList(); } -List itemsItemIdImagesImageTypeGetImageTypeListFromJson( +List +itemsItemIdImagesImageTypeGetImageTypeListFromJson( List? itemsItemIdImagesImageTypeGetImageType, [ List? defaultValue, ]) { @@ -62724,7 +66103,8 @@ List itemsItemIdImagesImageTypeGet .toList(); } -List? itemsItemIdImagesImageTypeGetImageTypeNullableListFromJson( +List? +itemsItemIdImagesImageTypeGetImageTypeNullableListFromJson( List? itemsItemIdImagesImageTypeGetImageType, [ List? defaultValue, ]) { @@ -62738,7 +66118,8 @@ List? itemsItemIdImagesImageTypeGe } String? itemsItemIdImagesImageTypeGetFormatNullableToJson( - enums.ItemsItemIdImagesImageTypeGetFormat? itemsItemIdImagesImageTypeGetFormat, + enums.ItemsItemIdImagesImageTypeGetFormat? + itemsItemIdImagesImageTypeGetFormat, ) { return itemsItemIdImagesImageTypeGetFormat?.value; } @@ -62749,7 +66130,8 @@ String? itemsItemIdImagesImageTypeGetFormatToJson( return itemsItemIdImagesImageTypeGetFormat.value; } -enums.ItemsItemIdImagesImageTypeGetFormat itemsItemIdImagesImageTypeGetFormatFromJson( +enums.ItemsItemIdImagesImageTypeGetFormat +itemsItemIdImagesImageTypeGetFormatFromJson( Object? itemsItemIdImagesImageTypeGetFormat, [ enums.ItemsItemIdImagesImageTypeGetFormat? defaultValue, ]) { @@ -62760,7 +66142,8 @@ enums.ItemsItemIdImagesImageTypeGetFormat itemsItemIdImagesImageTypeGetFormatFro enums.ItemsItemIdImagesImageTypeGetFormat.swaggerGeneratedUnknown; } -enums.ItemsItemIdImagesImageTypeGetFormat? itemsItemIdImagesImageTypeGetFormatNullableFromJson( +enums.ItemsItemIdImagesImageTypeGetFormat? +itemsItemIdImagesImageTypeGetFormatNullableFromJson( Object? itemsItemIdImagesImageTypeGetFormat, [ enums.ItemsItemIdImagesImageTypeGetFormat? defaultValue, ]) { @@ -62774,13 +66157,16 @@ enums.ItemsItemIdImagesImageTypeGetFormat? itemsItemIdImagesImageTypeGetFormatNu } String itemsItemIdImagesImageTypeGetFormatExplodedListToJson( - List? itemsItemIdImagesImageTypeGetFormat, + List? + itemsItemIdImagesImageTypeGetFormat, ) { - return itemsItemIdImagesImageTypeGetFormat?.map((e) => e.value!).join(',') ?? ''; + return itemsItemIdImagesImageTypeGetFormat?.map((e) => e.value!).join(',') ?? + ''; } List itemsItemIdImagesImageTypeGetFormatListToJson( - List? itemsItemIdImagesImageTypeGetFormat, + List? + itemsItemIdImagesImageTypeGetFormat, ) { if (itemsItemIdImagesImageTypeGetFormat == null) { return []; @@ -62789,7 +66175,8 @@ List itemsItemIdImagesImageTypeGetFormatListToJson( return itemsItemIdImagesImageTypeGetFormat.map((e) => e.value!).toList(); } -List itemsItemIdImagesImageTypeGetFormatListFromJson( +List +itemsItemIdImagesImageTypeGetFormatListFromJson( List? itemsItemIdImagesImageTypeGetFormat, [ List? defaultValue, ]) { @@ -62802,7 +66189,8 @@ List itemsItemIdImagesImageTypeGetFor .toList(); } -List? itemsItemIdImagesImageTypeGetFormatNullableListFromJson( +List? +itemsItemIdImagesImageTypeGetFormatNullableListFromJson( List? itemsItemIdImagesImageTypeGetFormat, [ List? defaultValue, ]) { @@ -62816,18 +66204,21 @@ List? itemsItemIdImagesImageTypeGetFo } String? itemsItemIdImagesImageTypeHeadImageTypeNullableToJson( - enums.ItemsItemIdImagesImageTypeHeadImageType? itemsItemIdImagesImageTypeHeadImageType, + enums.ItemsItemIdImagesImageTypeHeadImageType? + itemsItemIdImagesImageTypeHeadImageType, ) { return itemsItemIdImagesImageTypeHeadImageType?.value; } String? itemsItemIdImagesImageTypeHeadImageTypeToJson( - enums.ItemsItemIdImagesImageTypeHeadImageType itemsItemIdImagesImageTypeHeadImageType, + enums.ItemsItemIdImagesImageTypeHeadImageType + itemsItemIdImagesImageTypeHeadImageType, ) { return itemsItemIdImagesImageTypeHeadImageType.value; } -enums.ItemsItemIdImagesImageTypeHeadImageType itemsItemIdImagesImageTypeHeadImageTypeFromJson( +enums.ItemsItemIdImagesImageTypeHeadImageType +itemsItemIdImagesImageTypeHeadImageTypeFromJson( Object? itemsItemIdImagesImageTypeHeadImageType, [ enums.ItemsItemIdImagesImageTypeHeadImageType? defaultValue, ]) { @@ -62838,7 +66229,8 @@ enums.ItemsItemIdImagesImageTypeHeadImageType itemsItemIdImagesImageTypeHeadImag enums.ItemsItemIdImagesImageTypeHeadImageType.swaggerGeneratedUnknown; } -enums.ItemsItemIdImagesImageTypeHeadImageType? itemsItemIdImagesImageTypeHeadImageTypeNullableFromJson( +enums.ItemsItemIdImagesImageTypeHeadImageType? +itemsItemIdImagesImageTypeHeadImageTypeNullableFromJson( Object? itemsItemIdImagesImageTypeHeadImageType, [ enums.ItemsItemIdImagesImageTypeHeadImageType? defaultValue, ]) { @@ -62852,13 +66244,18 @@ enums.ItemsItemIdImagesImageTypeHeadImageType? itemsItemIdImagesImageTypeHeadIma } String itemsItemIdImagesImageTypeHeadImageTypeExplodedListToJson( - List? itemsItemIdImagesImageTypeHeadImageType, + List? + itemsItemIdImagesImageTypeHeadImageType, ) { - return itemsItemIdImagesImageTypeHeadImageType?.map((e) => e.value!).join(',') ?? ''; + return itemsItemIdImagesImageTypeHeadImageType + ?.map((e) => e.value!) + .join(',') ?? + ''; } List itemsItemIdImagesImageTypeHeadImageTypeListToJson( - List? itemsItemIdImagesImageTypeHeadImageType, + List? + itemsItemIdImagesImageTypeHeadImageType, ) { if (itemsItemIdImagesImageTypeHeadImageType == null) { return []; @@ -62867,7 +66264,8 @@ List itemsItemIdImagesImageTypeHeadImageTypeListToJson( return itemsItemIdImagesImageTypeHeadImageType.map((e) => e.value!).toList(); } -List itemsItemIdImagesImageTypeHeadImageTypeListFromJson( +List +itemsItemIdImagesImageTypeHeadImageTypeListFromJson( List? itemsItemIdImagesImageTypeHeadImageType, [ List? defaultValue, ]) { @@ -62880,7 +66278,8 @@ List itemsItemIdImagesImageTypeHe .toList(); } -List? itemsItemIdImagesImageTypeHeadImageTypeNullableListFromJson( +List? +itemsItemIdImagesImageTypeHeadImageTypeNullableListFromJson( List? itemsItemIdImagesImageTypeHeadImageType, [ List? defaultValue, ]) { @@ -62894,18 +66293,21 @@ List? itemsItemIdImagesImageTypeH } String? itemsItemIdImagesImageTypeHeadFormatNullableToJson( - enums.ItemsItemIdImagesImageTypeHeadFormat? itemsItemIdImagesImageTypeHeadFormat, + enums.ItemsItemIdImagesImageTypeHeadFormat? + itemsItemIdImagesImageTypeHeadFormat, ) { return itemsItemIdImagesImageTypeHeadFormat?.value; } String? itemsItemIdImagesImageTypeHeadFormatToJson( - enums.ItemsItemIdImagesImageTypeHeadFormat itemsItemIdImagesImageTypeHeadFormat, + enums.ItemsItemIdImagesImageTypeHeadFormat + itemsItemIdImagesImageTypeHeadFormat, ) { return itemsItemIdImagesImageTypeHeadFormat.value; } -enums.ItemsItemIdImagesImageTypeHeadFormat itemsItemIdImagesImageTypeHeadFormatFromJson( +enums.ItemsItemIdImagesImageTypeHeadFormat +itemsItemIdImagesImageTypeHeadFormatFromJson( Object? itemsItemIdImagesImageTypeHeadFormat, [ enums.ItemsItemIdImagesImageTypeHeadFormat? defaultValue, ]) { @@ -62916,7 +66318,8 @@ enums.ItemsItemIdImagesImageTypeHeadFormat itemsItemIdImagesImageTypeHeadFormatF enums.ItemsItemIdImagesImageTypeHeadFormat.swaggerGeneratedUnknown; } -enums.ItemsItemIdImagesImageTypeHeadFormat? itemsItemIdImagesImageTypeHeadFormatNullableFromJson( +enums.ItemsItemIdImagesImageTypeHeadFormat? +itemsItemIdImagesImageTypeHeadFormatNullableFromJson( Object? itemsItemIdImagesImageTypeHeadFormat, [ enums.ItemsItemIdImagesImageTypeHeadFormat? defaultValue, ]) { @@ -62930,13 +66333,16 @@ enums.ItemsItemIdImagesImageTypeHeadFormat? itemsItemIdImagesImageTypeHeadFormat } String itemsItemIdImagesImageTypeHeadFormatExplodedListToJson( - List? itemsItemIdImagesImageTypeHeadFormat, + List? + itemsItemIdImagesImageTypeHeadFormat, ) { - return itemsItemIdImagesImageTypeHeadFormat?.map((e) => e.value!).join(',') ?? ''; + return itemsItemIdImagesImageTypeHeadFormat?.map((e) => e.value!).join(',') ?? + ''; } List itemsItemIdImagesImageTypeHeadFormatListToJson( - List? itemsItemIdImagesImageTypeHeadFormat, + List? + itemsItemIdImagesImageTypeHeadFormat, ) { if (itemsItemIdImagesImageTypeHeadFormat == null) { return []; @@ -62945,7 +66351,8 @@ List itemsItemIdImagesImageTypeHeadFormatListToJson( return itemsItemIdImagesImageTypeHeadFormat.map((e) => e.value!).toList(); } -List itemsItemIdImagesImageTypeHeadFormatListFromJson( +List +itemsItemIdImagesImageTypeHeadFormatListFromJson( List? itemsItemIdImagesImageTypeHeadFormat, [ List? defaultValue, ]) { @@ -62958,7 +66365,8 @@ List itemsItemIdImagesImageTypeHeadF .toList(); } -List? itemsItemIdImagesImageTypeHeadFormatNullableListFromJson( +List? +itemsItemIdImagesImageTypeHeadFormatNullableListFromJson( List? itemsItemIdImagesImageTypeHeadFormat, [ List? defaultValue, ]) { @@ -62972,60 +66380,76 @@ List? itemsItemIdImagesImageTypeHead } String? itemsItemIdImagesImageTypeImageIndexDeleteImageTypeNullableToJson( - enums.ItemsItemIdImagesImageTypeImageIndexDeleteImageType? itemsItemIdImagesImageTypeImageIndexDeleteImageType, + enums.ItemsItemIdImagesImageTypeImageIndexDeleteImageType? + itemsItemIdImagesImageTypeImageIndexDeleteImageType, ) { return itemsItemIdImagesImageTypeImageIndexDeleteImageType?.value; } String? itemsItemIdImagesImageTypeImageIndexDeleteImageTypeToJson( - enums.ItemsItemIdImagesImageTypeImageIndexDeleteImageType itemsItemIdImagesImageTypeImageIndexDeleteImageType, + enums.ItemsItemIdImagesImageTypeImageIndexDeleteImageType + itemsItemIdImagesImageTypeImageIndexDeleteImageType, ) { return itemsItemIdImagesImageTypeImageIndexDeleteImageType.value; } -enums.ItemsItemIdImagesImageTypeImageIndexDeleteImageType itemsItemIdImagesImageTypeImageIndexDeleteImageTypeFromJson( +enums.ItemsItemIdImagesImageTypeImageIndexDeleteImageType +itemsItemIdImagesImageTypeImageIndexDeleteImageTypeFromJson( Object? itemsItemIdImagesImageTypeImageIndexDeleteImageType, [ enums.ItemsItemIdImagesImageTypeImageIndexDeleteImageType? defaultValue, ]) { - return enums.ItemsItemIdImagesImageTypeImageIndexDeleteImageType.values.firstWhereOrNull( - (e) => e.value == itemsItemIdImagesImageTypeImageIndexDeleteImageType, - ) ?? + return enums.ItemsItemIdImagesImageTypeImageIndexDeleteImageType.values + .firstWhereOrNull( + (e) => + e.value == itemsItemIdImagesImageTypeImageIndexDeleteImageType, + ) ?? defaultValue ?? - enums.ItemsItemIdImagesImageTypeImageIndexDeleteImageType.swaggerGeneratedUnknown; + enums + .ItemsItemIdImagesImageTypeImageIndexDeleteImageType + .swaggerGeneratedUnknown; } enums.ItemsItemIdImagesImageTypeImageIndexDeleteImageType? - itemsItemIdImagesImageTypeImageIndexDeleteImageTypeNullableFromJson( +itemsItemIdImagesImageTypeImageIndexDeleteImageTypeNullableFromJson( Object? itemsItemIdImagesImageTypeImageIndexDeleteImageType, [ enums.ItemsItemIdImagesImageTypeImageIndexDeleteImageType? defaultValue, ]) { if (itemsItemIdImagesImageTypeImageIndexDeleteImageType == null) { return null; } - return enums.ItemsItemIdImagesImageTypeImageIndexDeleteImageType.values.firstWhereOrNull( - (e) => e.value == itemsItemIdImagesImageTypeImageIndexDeleteImageType, - ) ?? + return enums.ItemsItemIdImagesImageTypeImageIndexDeleteImageType.values + .firstWhereOrNull( + (e) => + e.value == itemsItemIdImagesImageTypeImageIndexDeleteImageType, + ) ?? defaultValue; } String itemsItemIdImagesImageTypeImageIndexDeleteImageTypeExplodedListToJson( - List? itemsItemIdImagesImageTypeImageIndexDeleteImageType, + List? + itemsItemIdImagesImageTypeImageIndexDeleteImageType, ) { - return itemsItemIdImagesImageTypeImageIndexDeleteImageType?.map((e) => e.value!).join(',') ?? ''; + return itemsItemIdImagesImageTypeImageIndexDeleteImageType + ?.map((e) => e.value!) + .join(',') ?? + ''; } List itemsItemIdImagesImageTypeImageIndexDeleteImageTypeListToJson( - List? itemsItemIdImagesImageTypeImageIndexDeleteImageType, + List? + itemsItemIdImagesImageTypeImageIndexDeleteImageType, ) { if (itemsItemIdImagesImageTypeImageIndexDeleteImageType == null) { return []; } - return itemsItemIdImagesImageTypeImageIndexDeleteImageType.map((e) => e.value!).toList(); + return itemsItemIdImagesImageTypeImageIndexDeleteImageType + .map((e) => e.value!) + .toList(); } List - itemsItemIdImagesImageTypeImageIndexDeleteImageTypeListFromJson( +itemsItemIdImagesImageTypeImageIndexDeleteImageTypeListFromJson( List? itemsItemIdImagesImageTypeImageIndexDeleteImageType, [ List? defaultValue, ]) { @@ -63043,7 +66467,7 @@ List } List? - itemsItemIdImagesImageTypeImageIndexDeleteImageTypeNullableListFromJson( +itemsItemIdImagesImageTypeImageIndexDeleteImageTypeNullableListFromJson( List? itemsItemIdImagesImageTypeImageIndexDeleteImageType, [ List? defaultValue, ]) { @@ -63061,60 +66485,74 @@ List? } String? itemsItemIdImagesImageTypeImageIndexPostImageTypeNullableToJson( - enums.ItemsItemIdImagesImageTypeImageIndexPostImageType? itemsItemIdImagesImageTypeImageIndexPostImageType, + enums.ItemsItemIdImagesImageTypeImageIndexPostImageType? + itemsItemIdImagesImageTypeImageIndexPostImageType, ) { return itemsItemIdImagesImageTypeImageIndexPostImageType?.value; } String? itemsItemIdImagesImageTypeImageIndexPostImageTypeToJson( - enums.ItemsItemIdImagesImageTypeImageIndexPostImageType itemsItemIdImagesImageTypeImageIndexPostImageType, + enums.ItemsItemIdImagesImageTypeImageIndexPostImageType + itemsItemIdImagesImageTypeImageIndexPostImageType, ) { return itemsItemIdImagesImageTypeImageIndexPostImageType.value; } -enums.ItemsItemIdImagesImageTypeImageIndexPostImageType itemsItemIdImagesImageTypeImageIndexPostImageTypeFromJson( +enums.ItemsItemIdImagesImageTypeImageIndexPostImageType +itemsItemIdImagesImageTypeImageIndexPostImageTypeFromJson( Object? itemsItemIdImagesImageTypeImageIndexPostImageType, [ enums.ItemsItemIdImagesImageTypeImageIndexPostImageType? defaultValue, ]) { - return enums.ItemsItemIdImagesImageTypeImageIndexPostImageType.values.firstWhereOrNull( - (e) => e.value == itemsItemIdImagesImageTypeImageIndexPostImageType, - ) ?? + return enums.ItemsItemIdImagesImageTypeImageIndexPostImageType.values + .firstWhereOrNull( + (e) => e.value == itemsItemIdImagesImageTypeImageIndexPostImageType, + ) ?? defaultValue ?? - enums.ItemsItemIdImagesImageTypeImageIndexPostImageType.swaggerGeneratedUnknown; + enums + .ItemsItemIdImagesImageTypeImageIndexPostImageType + .swaggerGeneratedUnknown; } enums.ItemsItemIdImagesImageTypeImageIndexPostImageType? - itemsItemIdImagesImageTypeImageIndexPostImageTypeNullableFromJson( +itemsItemIdImagesImageTypeImageIndexPostImageTypeNullableFromJson( Object? itemsItemIdImagesImageTypeImageIndexPostImageType, [ enums.ItemsItemIdImagesImageTypeImageIndexPostImageType? defaultValue, ]) { if (itemsItemIdImagesImageTypeImageIndexPostImageType == null) { return null; } - return enums.ItemsItemIdImagesImageTypeImageIndexPostImageType.values.firstWhereOrNull( - (e) => e.value == itemsItemIdImagesImageTypeImageIndexPostImageType, - ) ?? + return enums.ItemsItemIdImagesImageTypeImageIndexPostImageType.values + .firstWhereOrNull( + (e) => e.value == itemsItemIdImagesImageTypeImageIndexPostImageType, + ) ?? defaultValue; } String itemsItemIdImagesImageTypeImageIndexPostImageTypeExplodedListToJson( - List? itemsItemIdImagesImageTypeImageIndexPostImageType, + List? + itemsItemIdImagesImageTypeImageIndexPostImageType, ) { - return itemsItemIdImagesImageTypeImageIndexPostImageType?.map((e) => e.value!).join(',') ?? ''; + return itemsItemIdImagesImageTypeImageIndexPostImageType + ?.map((e) => e.value!) + .join(',') ?? + ''; } List itemsItemIdImagesImageTypeImageIndexPostImageTypeListToJson( - List? itemsItemIdImagesImageTypeImageIndexPostImageType, + List? + itemsItemIdImagesImageTypeImageIndexPostImageType, ) { if (itemsItemIdImagesImageTypeImageIndexPostImageType == null) { return []; } - return itemsItemIdImagesImageTypeImageIndexPostImageType.map((e) => e.value!).toList(); + return itemsItemIdImagesImageTypeImageIndexPostImageType + .map((e) => e.value!) + .toList(); } List - itemsItemIdImagesImageTypeImageIndexPostImageTypeListFromJson( +itemsItemIdImagesImageTypeImageIndexPostImageTypeListFromJson( List? itemsItemIdImagesImageTypeImageIndexPostImageType, [ List? defaultValue, ]) { @@ -63132,7 +66570,7 @@ List } List? - itemsItemIdImagesImageTypeImageIndexPostImageTypeNullableListFromJson( +itemsItemIdImagesImageTypeImageIndexPostImageTypeNullableListFromJson( List? itemsItemIdImagesImageTypeImageIndexPostImageType, [ List? defaultValue, ]) { @@ -63150,60 +66588,74 @@ List? } String? itemsItemIdImagesImageTypeImageIndexGetImageTypeNullableToJson( - enums.ItemsItemIdImagesImageTypeImageIndexGetImageType? itemsItemIdImagesImageTypeImageIndexGetImageType, + enums.ItemsItemIdImagesImageTypeImageIndexGetImageType? + itemsItemIdImagesImageTypeImageIndexGetImageType, ) { return itemsItemIdImagesImageTypeImageIndexGetImageType?.value; } String? itemsItemIdImagesImageTypeImageIndexGetImageTypeToJson( - enums.ItemsItemIdImagesImageTypeImageIndexGetImageType itemsItemIdImagesImageTypeImageIndexGetImageType, + enums.ItemsItemIdImagesImageTypeImageIndexGetImageType + itemsItemIdImagesImageTypeImageIndexGetImageType, ) { return itemsItemIdImagesImageTypeImageIndexGetImageType.value; } -enums.ItemsItemIdImagesImageTypeImageIndexGetImageType itemsItemIdImagesImageTypeImageIndexGetImageTypeFromJson( +enums.ItemsItemIdImagesImageTypeImageIndexGetImageType +itemsItemIdImagesImageTypeImageIndexGetImageTypeFromJson( Object? itemsItemIdImagesImageTypeImageIndexGetImageType, [ enums.ItemsItemIdImagesImageTypeImageIndexGetImageType? defaultValue, ]) { - return enums.ItemsItemIdImagesImageTypeImageIndexGetImageType.values.firstWhereOrNull( - (e) => e.value == itemsItemIdImagesImageTypeImageIndexGetImageType, - ) ?? + return enums.ItemsItemIdImagesImageTypeImageIndexGetImageType.values + .firstWhereOrNull( + (e) => e.value == itemsItemIdImagesImageTypeImageIndexGetImageType, + ) ?? defaultValue ?? - enums.ItemsItemIdImagesImageTypeImageIndexGetImageType.swaggerGeneratedUnknown; + enums + .ItemsItemIdImagesImageTypeImageIndexGetImageType + .swaggerGeneratedUnknown; } enums.ItemsItemIdImagesImageTypeImageIndexGetImageType? - itemsItemIdImagesImageTypeImageIndexGetImageTypeNullableFromJson( +itemsItemIdImagesImageTypeImageIndexGetImageTypeNullableFromJson( Object? itemsItemIdImagesImageTypeImageIndexGetImageType, [ enums.ItemsItemIdImagesImageTypeImageIndexGetImageType? defaultValue, ]) { if (itemsItemIdImagesImageTypeImageIndexGetImageType == null) { return null; } - return enums.ItemsItemIdImagesImageTypeImageIndexGetImageType.values.firstWhereOrNull( - (e) => e.value == itemsItemIdImagesImageTypeImageIndexGetImageType, - ) ?? + return enums.ItemsItemIdImagesImageTypeImageIndexGetImageType.values + .firstWhereOrNull( + (e) => e.value == itemsItemIdImagesImageTypeImageIndexGetImageType, + ) ?? defaultValue; } String itemsItemIdImagesImageTypeImageIndexGetImageTypeExplodedListToJson( - List? itemsItemIdImagesImageTypeImageIndexGetImageType, + List? + itemsItemIdImagesImageTypeImageIndexGetImageType, ) { - return itemsItemIdImagesImageTypeImageIndexGetImageType?.map((e) => e.value!).join(',') ?? ''; + return itemsItemIdImagesImageTypeImageIndexGetImageType + ?.map((e) => e.value!) + .join(',') ?? + ''; } List itemsItemIdImagesImageTypeImageIndexGetImageTypeListToJson( - List? itemsItemIdImagesImageTypeImageIndexGetImageType, + List? + itemsItemIdImagesImageTypeImageIndexGetImageType, ) { if (itemsItemIdImagesImageTypeImageIndexGetImageType == null) { return []; } - return itemsItemIdImagesImageTypeImageIndexGetImageType.map((e) => e.value!).toList(); + return itemsItemIdImagesImageTypeImageIndexGetImageType + .map((e) => e.value!) + .toList(); } List - itemsItemIdImagesImageTypeImageIndexGetImageTypeListFromJson( +itemsItemIdImagesImageTypeImageIndexGetImageTypeListFromJson( List? itemsItemIdImagesImageTypeImageIndexGetImageType, [ List? defaultValue, ]) { @@ -63221,7 +66673,7 @@ List } List? - itemsItemIdImagesImageTypeImageIndexGetImageTypeNullableListFromJson( +itemsItemIdImagesImageTypeImageIndexGetImageTypeNullableListFromJson( List? itemsItemIdImagesImageTypeImageIndexGetImageType, [ List? defaultValue, ]) { @@ -63239,58 +66691,74 @@ List? } String? itemsItemIdImagesImageTypeImageIndexGetFormatNullableToJson( - enums.ItemsItemIdImagesImageTypeImageIndexGetFormat? itemsItemIdImagesImageTypeImageIndexGetFormat, + enums.ItemsItemIdImagesImageTypeImageIndexGetFormat? + itemsItemIdImagesImageTypeImageIndexGetFormat, ) { return itemsItemIdImagesImageTypeImageIndexGetFormat?.value; } String? itemsItemIdImagesImageTypeImageIndexGetFormatToJson( - enums.ItemsItemIdImagesImageTypeImageIndexGetFormat itemsItemIdImagesImageTypeImageIndexGetFormat, + enums.ItemsItemIdImagesImageTypeImageIndexGetFormat + itemsItemIdImagesImageTypeImageIndexGetFormat, ) { return itemsItemIdImagesImageTypeImageIndexGetFormat.value; } -enums.ItemsItemIdImagesImageTypeImageIndexGetFormat itemsItemIdImagesImageTypeImageIndexGetFormatFromJson( +enums.ItemsItemIdImagesImageTypeImageIndexGetFormat +itemsItemIdImagesImageTypeImageIndexGetFormatFromJson( Object? itemsItemIdImagesImageTypeImageIndexGetFormat, [ enums.ItemsItemIdImagesImageTypeImageIndexGetFormat? defaultValue, ]) { - return enums.ItemsItemIdImagesImageTypeImageIndexGetFormat.values.firstWhereOrNull( - (e) => e.value == itemsItemIdImagesImageTypeImageIndexGetFormat, - ) ?? + return enums.ItemsItemIdImagesImageTypeImageIndexGetFormat.values + .firstWhereOrNull( + (e) => e.value == itemsItemIdImagesImageTypeImageIndexGetFormat, + ) ?? defaultValue ?? - enums.ItemsItemIdImagesImageTypeImageIndexGetFormat.swaggerGeneratedUnknown; + enums + .ItemsItemIdImagesImageTypeImageIndexGetFormat + .swaggerGeneratedUnknown; } -enums.ItemsItemIdImagesImageTypeImageIndexGetFormat? itemsItemIdImagesImageTypeImageIndexGetFormatNullableFromJson( +enums.ItemsItemIdImagesImageTypeImageIndexGetFormat? +itemsItemIdImagesImageTypeImageIndexGetFormatNullableFromJson( Object? itemsItemIdImagesImageTypeImageIndexGetFormat, [ enums.ItemsItemIdImagesImageTypeImageIndexGetFormat? defaultValue, ]) { if (itemsItemIdImagesImageTypeImageIndexGetFormat == null) { return null; } - return enums.ItemsItemIdImagesImageTypeImageIndexGetFormat.values.firstWhereOrNull( - (e) => e.value == itemsItemIdImagesImageTypeImageIndexGetFormat, - ) ?? + return enums.ItemsItemIdImagesImageTypeImageIndexGetFormat.values + .firstWhereOrNull( + (e) => e.value == itemsItemIdImagesImageTypeImageIndexGetFormat, + ) ?? defaultValue; } String itemsItemIdImagesImageTypeImageIndexGetFormatExplodedListToJson( - List? itemsItemIdImagesImageTypeImageIndexGetFormat, + List? + itemsItemIdImagesImageTypeImageIndexGetFormat, ) { - return itemsItemIdImagesImageTypeImageIndexGetFormat?.map((e) => e.value!).join(',') ?? ''; + return itemsItemIdImagesImageTypeImageIndexGetFormat + ?.map((e) => e.value!) + .join(',') ?? + ''; } List itemsItemIdImagesImageTypeImageIndexGetFormatListToJson( - List? itemsItemIdImagesImageTypeImageIndexGetFormat, + List? + itemsItemIdImagesImageTypeImageIndexGetFormat, ) { if (itemsItemIdImagesImageTypeImageIndexGetFormat == null) { return []; } - return itemsItemIdImagesImageTypeImageIndexGetFormat.map((e) => e.value!).toList(); + return itemsItemIdImagesImageTypeImageIndexGetFormat + .map((e) => e.value!) + .toList(); } -List itemsItemIdImagesImageTypeImageIndexGetFormatListFromJson( +List +itemsItemIdImagesImageTypeImageIndexGetFormatListFromJson( List? itemsItemIdImagesImageTypeImageIndexGetFormat, [ List? defaultValue, ]) { @@ -63300,13 +66768,14 @@ List itemsItemIdImagesImage return itemsItemIdImagesImageTypeImageIndexGetFormat .map( - (e) => itemsItemIdImagesImageTypeImageIndexGetFormatFromJson(e.toString()), + (e) => + itemsItemIdImagesImageTypeImageIndexGetFormatFromJson(e.toString()), ) .toList(); } List? - itemsItemIdImagesImageTypeImageIndexGetFormatNullableListFromJson( +itemsItemIdImagesImageTypeImageIndexGetFormatNullableListFromJson( List? itemsItemIdImagesImageTypeImageIndexGetFormat, [ List? defaultValue, ]) { @@ -63316,66 +66785,81 @@ List? return itemsItemIdImagesImageTypeImageIndexGetFormat .map( - (e) => itemsItemIdImagesImageTypeImageIndexGetFormatFromJson(e.toString()), + (e) => + itemsItemIdImagesImageTypeImageIndexGetFormatFromJson(e.toString()), ) .toList(); } String? itemsItemIdImagesImageTypeImageIndexHeadImageTypeNullableToJson( - enums.ItemsItemIdImagesImageTypeImageIndexHeadImageType? itemsItemIdImagesImageTypeImageIndexHeadImageType, + enums.ItemsItemIdImagesImageTypeImageIndexHeadImageType? + itemsItemIdImagesImageTypeImageIndexHeadImageType, ) { return itemsItemIdImagesImageTypeImageIndexHeadImageType?.value; } String? itemsItemIdImagesImageTypeImageIndexHeadImageTypeToJson( - enums.ItemsItemIdImagesImageTypeImageIndexHeadImageType itemsItemIdImagesImageTypeImageIndexHeadImageType, + enums.ItemsItemIdImagesImageTypeImageIndexHeadImageType + itemsItemIdImagesImageTypeImageIndexHeadImageType, ) { return itemsItemIdImagesImageTypeImageIndexHeadImageType.value; } -enums.ItemsItemIdImagesImageTypeImageIndexHeadImageType itemsItemIdImagesImageTypeImageIndexHeadImageTypeFromJson( +enums.ItemsItemIdImagesImageTypeImageIndexHeadImageType +itemsItemIdImagesImageTypeImageIndexHeadImageTypeFromJson( Object? itemsItemIdImagesImageTypeImageIndexHeadImageType, [ enums.ItemsItemIdImagesImageTypeImageIndexHeadImageType? defaultValue, ]) { - return enums.ItemsItemIdImagesImageTypeImageIndexHeadImageType.values.firstWhereOrNull( - (e) => e.value == itemsItemIdImagesImageTypeImageIndexHeadImageType, - ) ?? + return enums.ItemsItemIdImagesImageTypeImageIndexHeadImageType.values + .firstWhereOrNull( + (e) => e.value == itemsItemIdImagesImageTypeImageIndexHeadImageType, + ) ?? defaultValue ?? - enums.ItemsItemIdImagesImageTypeImageIndexHeadImageType.swaggerGeneratedUnknown; + enums + .ItemsItemIdImagesImageTypeImageIndexHeadImageType + .swaggerGeneratedUnknown; } enums.ItemsItemIdImagesImageTypeImageIndexHeadImageType? - itemsItemIdImagesImageTypeImageIndexHeadImageTypeNullableFromJson( +itemsItemIdImagesImageTypeImageIndexHeadImageTypeNullableFromJson( Object? itemsItemIdImagesImageTypeImageIndexHeadImageType, [ enums.ItemsItemIdImagesImageTypeImageIndexHeadImageType? defaultValue, ]) { if (itemsItemIdImagesImageTypeImageIndexHeadImageType == null) { return null; } - return enums.ItemsItemIdImagesImageTypeImageIndexHeadImageType.values.firstWhereOrNull( - (e) => e.value == itemsItemIdImagesImageTypeImageIndexHeadImageType, - ) ?? + return enums.ItemsItemIdImagesImageTypeImageIndexHeadImageType.values + .firstWhereOrNull( + (e) => e.value == itemsItemIdImagesImageTypeImageIndexHeadImageType, + ) ?? defaultValue; } String itemsItemIdImagesImageTypeImageIndexHeadImageTypeExplodedListToJson( - List? itemsItemIdImagesImageTypeImageIndexHeadImageType, + List? + itemsItemIdImagesImageTypeImageIndexHeadImageType, ) { - return itemsItemIdImagesImageTypeImageIndexHeadImageType?.map((e) => e.value!).join(',') ?? ''; + return itemsItemIdImagesImageTypeImageIndexHeadImageType + ?.map((e) => e.value!) + .join(',') ?? + ''; } List itemsItemIdImagesImageTypeImageIndexHeadImageTypeListToJson( - List? itemsItemIdImagesImageTypeImageIndexHeadImageType, + List? + itemsItemIdImagesImageTypeImageIndexHeadImageType, ) { if (itemsItemIdImagesImageTypeImageIndexHeadImageType == null) { return []; } - return itemsItemIdImagesImageTypeImageIndexHeadImageType.map((e) => e.value!).toList(); + return itemsItemIdImagesImageTypeImageIndexHeadImageType + .map((e) => e.value!) + .toList(); } List - itemsItemIdImagesImageTypeImageIndexHeadImageTypeListFromJson( +itemsItemIdImagesImageTypeImageIndexHeadImageTypeListFromJson( List? itemsItemIdImagesImageTypeImageIndexHeadImageType, [ List? defaultValue, ]) { @@ -63393,7 +66877,7 @@ List } List? - itemsItemIdImagesImageTypeImageIndexHeadImageTypeNullableListFromJson( +itemsItemIdImagesImageTypeImageIndexHeadImageTypeNullableListFromJson( List? itemsItemIdImagesImageTypeImageIndexHeadImageType, [ List? defaultValue, ]) { @@ -63411,58 +66895,74 @@ List? } String? itemsItemIdImagesImageTypeImageIndexHeadFormatNullableToJson( - enums.ItemsItemIdImagesImageTypeImageIndexHeadFormat? itemsItemIdImagesImageTypeImageIndexHeadFormat, + enums.ItemsItemIdImagesImageTypeImageIndexHeadFormat? + itemsItemIdImagesImageTypeImageIndexHeadFormat, ) { return itemsItemIdImagesImageTypeImageIndexHeadFormat?.value; } String? itemsItemIdImagesImageTypeImageIndexHeadFormatToJson( - enums.ItemsItemIdImagesImageTypeImageIndexHeadFormat itemsItemIdImagesImageTypeImageIndexHeadFormat, + enums.ItemsItemIdImagesImageTypeImageIndexHeadFormat + itemsItemIdImagesImageTypeImageIndexHeadFormat, ) { return itemsItemIdImagesImageTypeImageIndexHeadFormat.value; } -enums.ItemsItemIdImagesImageTypeImageIndexHeadFormat itemsItemIdImagesImageTypeImageIndexHeadFormatFromJson( +enums.ItemsItemIdImagesImageTypeImageIndexHeadFormat +itemsItemIdImagesImageTypeImageIndexHeadFormatFromJson( Object? itemsItemIdImagesImageTypeImageIndexHeadFormat, [ enums.ItemsItemIdImagesImageTypeImageIndexHeadFormat? defaultValue, ]) { - return enums.ItemsItemIdImagesImageTypeImageIndexHeadFormat.values.firstWhereOrNull( - (e) => e.value == itemsItemIdImagesImageTypeImageIndexHeadFormat, - ) ?? + return enums.ItemsItemIdImagesImageTypeImageIndexHeadFormat.values + .firstWhereOrNull( + (e) => e.value == itemsItemIdImagesImageTypeImageIndexHeadFormat, + ) ?? defaultValue ?? - enums.ItemsItemIdImagesImageTypeImageIndexHeadFormat.swaggerGeneratedUnknown; + enums + .ItemsItemIdImagesImageTypeImageIndexHeadFormat + .swaggerGeneratedUnknown; } -enums.ItemsItemIdImagesImageTypeImageIndexHeadFormat? itemsItemIdImagesImageTypeImageIndexHeadFormatNullableFromJson( +enums.ItemsItemIdImagesImageTypeImageIndexHeadFormat? +itemsItemIdImagesImageTypeImageIndexHeadFormatNullableFromJson( Object? itemsItemIdImagesImageTypeImageIndexHeadFormat, [ enums.ItemsItemIdImagesImageTypeImageIndexHeadFormat? defaultValue, ]) { if (itemsItemIdImagesImageTypeImageIndexHeadFormat == null) { return null; } - return enums.ItemsItemIdImagesImageTypeImageIndexHeadFormat.values.firstWhereOrNull( - (e) => e.value == itemsItemIdImagesImageTypeImageIndexHeadFormat, - ) ?? + return enums.ItemsItemIdImagesImageTypeImageIndexHeadFormat.values + .firstWhereOrNull( + (e) => e.value == itemsItemIdImagesImageTypeImageIndexHeadFormat, + ) ?? defaultValue; } String itemsItemIdImagesImageTypeImageIndexHeadFormatExplodedListToJson( - List? itemsItemIdImagesImageTypeImageIndexHeadFormat, + List? + itemsItemIdImagesImageTypeImageIndexHeadFormat, ) { - return itemsItemIdImagesImageTypeImageIndexHeadFormat?.map((e) => e.value!).join(',') ?? ''; + return itemsItemIdImagesImageTypeImageIndexHeadFormat + ?.map((e) => e.value!) + .join(',') ?? + ''; } List itemsItemIdImagesImageTypeImageIndexHeadFormatListToJson( - List? itemsItemIdImagesImageTypeImageIndexHeadFormat, + List? + itemsItemIdImagesImageTypeImageIndexHeadFormat, ) { if (itemsItemIdImagesImageTypeImageIndexHeadFormat == null) { return []; } - return itemsItemIdImagesImageTypeImageIndexHeadFormat.map((e) => e.value!).toList(); + return itemsItemIdImagesImageTypeImageIndexHeadFormat + .map((e) => e.value!) + .toList(); } -List itemsItemIdImagesImageTypeImageIndexHeadFormatListFromJson( +List +itemsItemIdImagesImageTypeImageIndexHeadFormatListFromJson( List? itemsItemIdImagesImageTypeImageIndexHeadFormat, [ List? defaultValue, ]) { @@ -63480,7 +66980,7 @@ List itemsItemIdImagesImag } List? - itemsItemIdImagesImageTypeImageIndexHeadFormatNullableListFromJson( +itemsItemIdImagesImageTypeImageIndexHeadFormatNullableListFromJson( List? itemsItemIdImagesImageTypeImageIndexHeadFormat, [ List? defaultValue, ]) { @@ -63498,61 +66998,72 @@ List? } String? - itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetImageTypeNullableToJson( +itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetImageTypeNullableToJson( enums.ItemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetImageType? - itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetImageType, + itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetImageType, ) { - return itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetImageType?.value; + return itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetImageType + ?.value; } -String? itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetImageTypeToJson( +String? +itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetImageTypeToJson( enums.ItemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetImageType - itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetImageType, + itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetImageType, ) { - return itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetImageType.value; + return itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetImageType + .value; } enums.ItemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetImageType - itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetImageTypeFromJson( - Object? itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetImageType, [ +itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetImageTypeFromJson( + Object? + itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetImageType, [ enums.ItemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetImageType? - defaultValue, + defaultValue, ]) { return enums - .ItemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetImageType.values + .ItemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetImageType + .values .firstWhereOrNull( - (e) => - e.value == - itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetImageType, - ) ?? + (e) => + e.value == + itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetImageType, + ) ?? defaultValue ?? - enums.ItemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetImageType + enums + .ItemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetImageType .swaggerGeneratedUnknown; } enums.ItemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetImageType? - itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetImageTypeNullableFromJson( - Object? itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetImageType, [ +itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetImageTypeNullableFromJson( + Object? + itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetImageType, [ enums.ItemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetImageType? - defaultValue, + defaultValue, ]) { - if (itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetImageType == null) { + if (itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetImageType == + null) { return null; } return enums - .ItemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetImageType.values + .ItemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetImageType + .values .firstWhereOrNull( - (e) => - e.value == - itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetImageType, - ) ?? + (e) => + e.value == + itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetImageType, + ) ?? defaultValue; } String - itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetImageTypeExplodedListToJson( - List? - itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetImageType, +itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetImageTypeExplodedListToJson( + List< + enums.ItemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetImageType + >? + itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetImageType, ) { return itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetImageType ?.map((e) => e.value!) @@ -63561,11 +67072,14 @@ String } List - itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetImageTypeListToJson( - List? - itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetImageType, -) { - if (itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetImageType == null) { +itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetImageTypeListToJson( + List< + enums.ItemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetImageType + >? + itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetImageType, +) { + if (itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetImageType == + null) { return []; } @@ -63574,13 +67088,19 @@ List .toList(); } -List - itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetImageTypeListFromJson( - List? itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetImageType, [ - List? - defaultValue, -]) { - if (itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetImageType == null) { +List< + enums.ItemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetImageType +> +itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetImageTypeListFromJson( + List? + itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetImageType, [ + List< + enums.ItemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetImageType + >? + defaultValue, +]) { + if (itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetImageType == + null) { return defaultValue ?? []; } @@ -63588,19 +67108,25 @@ List itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetImageTypeFromJson( - e.toString(), - ), + e.toString(), + ), ) .toList(); } -List? - itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetImageTypeNullableListFromJson( - List? itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetImageType, [ - List? - defaultValue, -]) { - if (itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetImageType == null) { +List< + enums.ItemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetImageType +>? +itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetImageTypeNullableListFromJson( + List? + itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetImageType, [ + List< + enums.ItemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetImageType + >? + defaultValue, +]) { + if (itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetImageType == + null) { return defaultValue; } @@ -63608,63 +67134,79 @@ List itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetImageTypeFromJson( - e.toString(), - ), + e.toString(), + ), ) .toList(); } -String? itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetFormatNullableToJson( +String? +itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetFormatNullableToJson( enums.ItemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetFormat? - itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetFormat, + itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetFormat, ) { - return itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetFormat?.value; + return itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetFormat + ?.value; } -String? itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetFormatToJson( +String? +itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetFormatToJson( enums.ItemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetFormat - itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetFormat, + itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetFormat, ) { - return itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetFormat.value; + return itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetFormat + .value; } enums.ItemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetFormat - itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetFormatFromJson( - Object? itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetFormat, [ - enums.ItemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetFormat? defaultValue, +itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetFormatFromJson( + Object? + itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetFormat, [ + enums.ItemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetFormat? + defaultValue, ]) { - return enums.ItemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetFormat.values + return enums + .ItemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetFormat + .values .firstWhereOrNull( - (e) => - e.value == - itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetFormat, - ) ?? + (e) => + e.value == + itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetFormat, + ) ?? defaultValue ?? - enums.ItemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetFormat + enums + .ItemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetFormat .swaggerGeneratedUnknown; } enums.ItemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetFormat? - itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetFormatNullableFromJson( - Object? itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetFormat, [ - enums.ItemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetFormat? defaultValue, +itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetFormatNullableFromJson( + Object? + itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetFormat, [ + enums.ItemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetFormat? + defaultValue, ]) { - if (itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetFormat == null) { + if (itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetFormat == + null) { return null; } - return enums.ItemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetFormat.values + return enums + .ItemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetFormat + .values .firstWhereOrNull( - (e) => - e.value == - itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetFormat, - ) ?? + (e) => + e.value == + itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetFormat, + ) ?? defaultValue; } String - itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetFormatExplodedListToJson( - List? - itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetFormat, +itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetFormatExplodedListToJson( + List< + enums.ItemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetFormat + >? + itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetFormat, ) { return itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetFormat ?.map((e) => e.value!) @@ -63673,11 +67215,14 @@ String } List - itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetFormatListToJson( - List? - itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetFormat, -) { - if (itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetFormat == null) { +itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetFormatListToJson( + List< + enums.ItemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetFormat + >? + itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetFormat, +) { + if (itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetFormat == + null) { return []; } @@ -63686,13 +67231,19 @@ List .toList(); } -List - itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetFormatListFromJson( - List? itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetFormat, [ - List? - defaultValue, -]) { - if (itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetFormat == null) { +List< + enums.ItemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetFormat +> +itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetFormatListFromJson( + List? + itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetFormat, [ + List< + enums.ItemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetFormat + >? + defaultValue, +]) { + if (itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetFormat == + null) { return defaultValue ?? []; } @@ -63700,19 +67251,25 @@ List itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetFormatFromJson( - e.toString(), - ), + e.toString(), + ), ) .toList(); } -List? - itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetFormatNullableListFromJson( - List? itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetFormat, [ - List? - defaultValue, -]) { - if (itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetFormat == null) { +List< + enums.ItemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetFormat +>? +itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetFormatNullableListFromJson( + List? + itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetFormat, [ + List< + enums.ItemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetFormat + >? + defaultValue, +]) { + if (itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetFormat == + null) { return defaultValue; } @@ -63720,68 +67277,79 @@ List itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountGetFormatFromJson( - e.toString(), - ), + e.toString(), + ), ) .toList(); } String? - itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadImageTypeNullableToJson( +itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadImageTypeNullableToJson( enums.ItemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadImageType? - itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadImageType, + itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadImageType, ) { - return itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadImageType?.value; + return itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadImageType + ?.value; } -String? itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadImageTypeToJson( +String? +itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadImageTypeToJson( enums.ItemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadImageType - itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadImageType, + itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadImageType, ) { - return itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadImageType.value; + return itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadImageType + .value; } enums.ItemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadImageType - itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadImageTypeFromJson( - Object? itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadImageType, [ +itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadImageTypeFromJson( + Object? + itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadImageType, [ enums.ItemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadImageType? - defaultValue, + defaultValue, ]) { return enums - .ItemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadImageType.values + .ItemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadImageType + .values .firstWhereOrNull( - (e) => - e.value == - itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadImageType, - ) ?? + (e) => + e.value == + itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadImageType, + ) ?? defaultValue ?? - enums.ItemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadImageType + enums + .ItemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadImageType .swaggerGeneratedUnknown; } enums.ItemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadImageType? - itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadImageTypeNullableFromJson( - Object? itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadImageType, [ +itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadImageTypeNullableFromJson( + Object? + itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadImageType, [ enums.ItemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadImageType? - defaultValue, + defaultValue, ]) { - if (itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadImageType == null) { + if (itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadImageType == + null) { return null; } return enums - .ItemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadImageType.values + .ItemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadImageType + .values .firstWhereOrNull( - (e) => - e.value == - itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadImageType, - ) ?? + (e) => + e.value == + itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadImageType, + ) ?? defaultValue; } String - itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadImageTypeExplodedListToJson( - List? - itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadImageType, +itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadImageTypeExplodedListToJson( + List< + enums.ItemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadImageType + >? + itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadImageType, ) { return itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadImageType ?.map((e) => e.value!) @@ -63790,11 +67358,14 @@ String } List - itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadImageTypeListToJson( - List? - itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadImageType, -) { - if (itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadImageType == null) { +itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadImageTypeListToJson( + List< + enums.ItemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadImageType + >? + itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadImageType, +) { + if (itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadImageType == + null) { return []; } @@ -63803,13 +67374,19 @@ List .toList(); } -List - itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadImageTypeListFromJson( - List? itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadImageType, [ - List? - defaultValue, -]) { - if (itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadImageType == null) { +List< + enums.ItemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadImageType +> +itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadImageTypeListFromJson( + List? + itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadImageType, [ + List< + enums.ItemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadImageType + >? + defaultValue, +]) { + if (itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadImageType == + null) { return defaultValue ?? []; } @@ -63817,19 +67394,25 @@ List itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadImageTypeFromJson( - e.toString(), - ), + e.toString(), + ), ) .toList(); } -List? - itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadImageTypeNullableListFromJson( - List? itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadImageType, [ - List? - defaultValue, -]) { - if (itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadImageType == null) { +List< + enums.ItemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadImageType +>? +itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadImageTypeNullableListFromJson( + List? + itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadImageType, [ + List< + enums.ItemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadImageType + >? + defaultValue, +]) { + if (itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadImageType == + null) { return defaultValue; } @@ -63837,66 +67420,79 @@ List itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadImageTypeFromJson( - e.toString(), - ), + e.toString(), + ), ) .toList(); } String? - itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadFormatNullableToJson( +itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadFormatNullableToJson( enums.ItemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadFormat? - itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadFormat, + itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadFormat, ) { - return itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadFormat?.value; + return itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadFormat + ?.value; } -String? itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadFormatToJson( +String? +itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadFormatToJson( enums.ItemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadFormat - itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadFormat, + itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadFormat, ) { - return itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadFormat.value; + return itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadFormat + .value; } enums.ItemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadFormat - itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadFormatFromJson( - Object? itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadFormat, [ +itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadFormatFromJson( + Object? + itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadFormat, [ enums.ItemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadFormat? - defaultValue, + defaultValue, ]) { - return enums.ItemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadFormat.values + return enums + .ItemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadFormat + .values .firstWhereOrNull( - (e) => - e.value == - itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadFormat, - ) ?? + (e) => + e.value == + itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadFormat, + ) ?? defaultValue ?? - enums.ItemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadFormat + enums + .ItemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadFormat .swaggerGeneratedUnknown; } enums.ItemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadFormat? - itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadFormatNullableFromJson( - Object? itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadFormat, [ +itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadFormatNullableFromJson( + Object? + itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadFormat, [ enums.ItemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadFormat? - defaultValue, + defaultValue, ]) { - if (itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadFormat == null) { + if (itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadFormat == + null) { return null; } - return enums.ItemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadFormat.values + return enums + .ItemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadFormat + .values .firstWhereOrNull( - (e) => - e.value == - itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadFormat, - ) ?? + (e) => + e.value == + itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadFormat, + ) ?? defaultValue; } String - itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadFormatExplodedListToJson( - List? - itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadFormat, +itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadFormatExplodedListToJson( + List< + enums.ItemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadFormat + >? + itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadFormat, ) { return itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadFormat ?.map((e) => e.value!) @@ -63905,11 +67501,14 @@ String } List - itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadFormatListToJson( - List? - itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadFormat, -) { - if (itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadFormat == null) { +itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadFormatListToJson( + List< + enums.ItemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadFormat + >? + itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadFormat, +) { + if (itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadFormat == + null) { return []; } @@ -63918,13 +67517,19 @@ List .toList(); } -List - itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadFormatListFromJson( - List? itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadFormat, [ - List? - defaultValue, -]) { - if (itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadFormat == null) { +List< + enums.ItemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadFormat +> +itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadFormatListFromJson( + List? + itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadFormat, [ + List< + enums.ItemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadFormat + >? + defaultValue, +]) { + if (itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadFormat == + null) { return defaultValue ?? []; } @@ -63932,19 +67537,25 @@ List itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadFormatFromJson( - e.toString(), - ), + e.toString(), + ), ) .toList(); } -List? - itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadFormatNullableListFromJson( - List? itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadFormat, [ - List? - defaultValue, -]) { - if (itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadFormat == null) { +List< + enums.ItemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadFormat +>? +itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadFormatNullableListFromJson( + List? + itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadFormat, [ + List< + enums.ItemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadFormat + >? + defaultValue, +]) { + if (itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadFormat == + null) { return defaultValue; } @@ -63952,72 +67563,88 @@ List itemsItemIdImagesImageTypeImageIndexTagFormatMaxWidthMaxHeightPercentPlayedUnplayedCountHeadFormatFromJson( - e.toString(), - ), + e.toString(), + ), ) .toList(); } String? itemsItemIdImagesImageTypeImageIndexIndexPostImageTypeNullableToJson( - enums.ItemsItemIdImagesImageTypeImageIndexIndexPostImageType? itemsItemIdImagesImageTypeImageIndexIndexPostImageType, + enums.ItemsItemIdImagesImageTypeImageIndexIndexPostImageType? + itemsItemIdImagesImageTypeImageIndexIndexPostImageType, ) { return itemsItemIdImagesImageTypeImageIndexIndexPostImageType?.value; } String? itemsItemIdImagesImageTypeImageIndexIndexPostImageTypeToJson( - enums.ItemsItemIdImagesImageTypeImageIndexIndexPostImageType itemsItemIdImagesImageTypeImageIndexIndexPostImageType, + enums.ItemsItemIdImagesImageTypeImageIndexIndexPostImageType + itemsItemIdImagesImageTypeImageIndexIndexPostImageType, ) { return itemsItemIdImagesImageTypeImageIndexIndexPostImageType.value; } enums.ItemsItemIdImagesImageTypeImageIndexIndexPostImageType - itemsItemIdImagesImageTypeImageIndexIndexPostImageTypeFromJson( +itemsItemIdImagesImageTypeImageIndexIndexPostImageTypeFromJson( Object? itemsItemIdImagesImageTypeImageIndexIndexPostImageType, [ enums.ItemsItemIdImagesImageTypeImageIndexIndexPostImageType? defaultValue, ]) { - return enums.ItemsItemIdImagesImageTypeImageIndexIndexPostImageType.values.firstWhereOrNull( - (e) => e.value == itemsItemIdImagesImageTypeImageIndexIndexPostImageType, - ) ?? + return enums.ItemsItemIdImagesImageTypeImageIndexIndexPostImageType.values + .firstWhereOrNull( + (e) => + e.value == + itemsItemIdImagesImageTypeImageIndexIndexPostImageType, + ) ?? defaultValue ?? - enums.ItemsItemIdImagesImageTypeImageIndexIndexPostImageType.swaggerGeneratedUnknown; + enums + .ItemsItemIdImagesImageTypeImageIndexIndexPostImageType + .swaggerGeneratedUnknown; } enums.ItemsItemIdImagesImageTypeImageIndexIndexPostImageType? - itemsItemIdImagesImageTypeImageIndexIndexPostImageTypeNullableFromJson( +itemsItemIdImagesImageTypeImageIndexIndexPostImageTypeNullableFromJson( Object? itemsItemIdImagesImageTypeImageIndexIndexPostImageType, [ enums.ItemsItemIdImagesImageTypeImageIndexIndexPostImageType? defaultValue, ]) { if (itemsItemIdImagesImageTypeImageIndexIndexPostImageType == null) { return null; } - return enums.ItemsItemIdImagesImageTypeImageIndexIndexPostImageType.values.firstWhereOrNull( - (e) => e.value == itemsItemIdImagesImageTypeImageIndexIndexPostImageType, - ) ?? + return enums.ItemsItemIdImagesImageTypeImageIndexIndexPostImageType.values + .firstWhereOrNull( + (e) => + e.value == + itemsItemIdImagesImageTypeImageIndexIndexPostImageType, + ) ?? defaultValue; } String itemsItemIdImagesImageTypeImageIndexIndexPostImageTypeExplodedListToJson( List? - itemsItemIdImagesImageTypeImageIndexIndexPostImageType, + itemsItemIdImagesImageTypeImageIndexIndexPostImageType, ) { - return itemsItemIdImagesImageTypeImageIndexIndexPostImageType?.map((e) => e.value!).join(',') ?? ''; + return itemsItemIdImagesImageTypeImageIndexIndexPostImageType + ?.map((e) => e.value!) + .join(',') ?? + ''; } List itemsItemIdImagesImageTypeImageIndexIndexPostImageTypeListToJson( List? - itemsItemIdImagesImageTypeImageIndexIndexPostImageType, + itemsItemIdImagesImageTypeImageIndexIndexPostImageType, ) { if (itemsItemIdImagesImageTypeImageIndexIndexPostImageType == null) { return []; } - return itemsItemIdImagesImageTypeImageIndexIndexPostImageType.map((e) => e.value!).toList(); + return itemsItemIdImagesImageTypeImageIndexIndexPostImageType + .map((e) => e.value!) + .toList(); } List - itemsItemIdImagesImageTypeImageIndexIndexPostImageTypeListFromJson( +itemsItemIdImagesImageTypeImageIndexIndexPostImageTypeListFromJson( List? itemsItemIdImagesImageTypeImageIndexIndexPostImageType, [ - List? defaultValue, + List? + defaultValue, ]) { if (itemsItemIdImagesImageTypeImageIndexIndexPostImageType == null) { return defaultValue ?? []; @@ -64033,9 +67660,10 @@ List } List? - itemsItemIdImagesImageTypeImageIndexIndexPostImageTypeNullableListFromJson( +itemsItemIdImagesImageTypeImageIndexIndexPostImageTypeNullableListFromJson( List? itemsItemIdImagesImageTypeImageIndexIndexPostImageType, [ - List? defaultValue, + List? + defaultValue, ]) { if (itemsItemIdImagesImageTypeImageIndexIndexPostImageType == null) { return defaultValue; @@ -64051,58 +67679,72 @@ List? } String? musicGenresNameImagesImageTypeGetImageTypeNullableToJson( - enums.MusicGenresNameImagesImageTypeGetImageType? musicGenresNameImagesImageTypeGetImageType, + enums.MusicGenresNameImagesImageTypeGetImageType? + musicGenresNameImagesImageTypeGetImageType, ) { return musicGenresNameImagesImageTypeGetImageType?.value; } String? musicGenresNameImagesImageTypeGetImageTypeToJson( - enums.MusicGenresNameImagesImageTypeGetImageType musicGenresNameImagesImageTypeGetImageType, + enums.MusicGenresNameImagesImageTypeGetImageType + musicGenresNameImagesImageTypeGetImageType, ) { return musicGenresNameImagesImageTypeGetImageType.value; } -enums.MusicGenresNameImagesImageTypeGetImageType musicGenresNameImagesImageTypeGetImageTypeFromJson( +enums.MusicGenresNameImagesImageTypeGetImageType +musicGenresNameImagesImageTypeGetImageTypeFromJson( Object? musicGenresNameImagesImageTypeGetImageType, [ enums.MusicGenresNameImagesImageTypeGetImageType? defaultValue, ]) { - return enums.MusicGenresNameImagesImageTypeGetImageType.values.firstWhereOrNull( - (e) => e.value == musicGenresNameImagesImageTypeGetImageType, - ) ?? + return enums.MusicGenresNameImagesImageTypeGetImageType.values + .firstWhereOrNull( + (e) => e.value == musicGenresNameImagesImageTypeGetImageType, + ) ?? defaultValue ?? enums.MusicGenresNameImagesImageTypeGetImageType.swaggerGeneratedUnknown; } -enums.MusicGenresNameImagesImageTypeGetImageType? musicGenresNameImagesImageTypeGetImageTypeNullableFromJson( +enums.MusicGenresNameImagesImageTypeGetImageType? +musicGenresNameImagesImageTypeGetImageTypeNullableFromJson( Object? musicGenresNameImagesImageTypeGetImageType, [ enums.MusicGenresNameImagesImageTypeGetImageType? defaultValue, ]) { if (musicGenresNameImagesImageTypeGetImageType == null) { return null; } - return enums.MusicGenresNameImagesImageTypeGetImageType.values.firstWhereOrNull( - (e) => e.value == musicGenresNameImagesImageTypeGetImageType, - ) ?? + return enums.MusicGenresNameImagesImageTypeGetImageType.values + .firstWhereOrNull( + (e) => e.value == musicGenresNameImagesImageTypeGetImageType, + ) ?? defaultValue; } String musicGenresNameImagesImageTypeGetImageTypeExplodedListToJson( - List? musicGenresNameImagesImageTypeGetImageType, + List? + musicGenresNameImagesImageTypeGetImageType, ) { - return musicGenresNameImagesImageTypeGetImageType?.map((e) => e.value!).join(',') ?? ''; + return musicGenresNameImagesImageTypeGetImageType + ?.map((e) => e.value!) + .join(',') ?? + ''; } List musicGenresNameImagesImageTypeGetImageTypeListToJson( - List? musicGenresNameImagesImageTypeGetImageType, + List? + musicGenresNameImagesImageTypeGetImageType, ) { if (musicGenresNameImagesImageTypeGetImageType == null) { return []; } - return musicGenresNameImagesImageTypeGetImageType.map((e) => e.value!).toList(); + return musicGenresNameImagesImageTypeGetImageType + .map((e) => e.value!) + .toList(); } -List musicGenresNameImagesImageTypeGetImageTypeListFromJson( +List +musicGenresNameImagesImageTypeGetImageTypeListFromJson( List? musicGenresNameImagesImageTypeGetImageType, [ List? defaultValue, ]) { @@ -64117,7 +67759,8 @@ List musicGenresNameImagesImag .toList(); } -List? musicGenresNameImagesImageTypeGetImageTypeNullableListFromJson( +List? +musicGenresNameImagesImageTypeGetImageTypeNullableListFromJson( List? musicGenresNameImagesImageTypeGetImageType, [ List? defaultValue, ]) { @@ -64133,18 +67776,21 @@ List? musicGenresNameImagesIma } String? musicGenresNameImagesImageTypeGetFormatNullableToJson( - enums.MusicGenresNameImagesImageTypeGetFormat? musicGenresNameImagesImageTypeGetFormat, + enums.MusicGenresNameImagesImageTypeGetFormat? + musicGenresNameImagesImageTypeGetFormat, ) { return musicGenresNameImagesImageTypeGetFormat?.value; } String? musicGenresNameImagesImageTypeGetFormatToJson( - enums.MusicGenresNameImagesImageTypeGetFormat musicGenresNameImagesImageTypeGetFormat, + enums.MusicGenresNameImagesImageTypeGetFormat + musicGenresNameImagesImageTypeGetFormat, ) { return musicGenresNameImagesImageTypeGetFormat.value; } -enums.MusicGenresNameImagesImageTypeGetFormat musicGenresNameImagesImageTypeGetFormatFromJson( +enums.MusicGenresNameImagesImageTypeGetFormat +musicGenresNameImagesImageTypeGetFormatFromJson( Object? musicGenresNameImagesImageTypeGetFormat, [ enums.MusicGenresNameImagesImageTypeGetFormat? defaultValue, ]) { @@ -64155,7 +67801,8 @@ enums.MusicGenresNameImagesImageTypeGetFormat musicGenresNameImagesImageTypeGetF enums.MusicGenresNameImagesImageTypeGetFormat.swaggerGeneratedUnknown; } -enums.MusicGenresNameImagesImageTypeGetFormat? musicGenresNameImagesImageTypeGetFormatNullableFromJson( +enums.MusicGenresNameImagesImageTypeGetFormat? +musicGenresNameImagesImageTypeGetFormatNullableFromJson( Object? musicGenresNameImagesImageTypeGetFormat, [ enums.MusicGenresNameImagesImageTypeGetFormat? defaultValue, ]) { @@ -64169,13 +67816,18 @@ enums.MusicGenresNameImagesImageTypeGetFormat? musicGenresNameImagesImageTypeGet } String musicGenresNameImagesImageTypeGetFormatExplodedListToJson( - List? musicGenresNameImagesImageTypeGetFormat, + List? + musicGenresNameImagesImageTypeGetFormat, ) { - return musicGenresNameImagesImageTypeGetFormat?.map((e) => e.value!).join(',') ?? ''; + return musicGenresNameImagesImageTypeGetFormat + ?.map((e) => e.value!) + .join(',') ?? + ''; } List musicGenresNameImagesImageTypeGetFormatListToJson( - List? musicGenresNameImagesImageTypeGetFormat, + List? + musicGenresNameImagesImageTypeGetFormat, ) { if (musicGenresNameImagesImageTypeGetFormat == null) { return []; @@ -64184,7 +67836,8 @@ List musicGenresNameImagesImageTypeGetFormatListToJson( return musicGenresNameImagesImageTypeGetFormat.map((e) => e.value!).toList(); } -List musicGenresNameImagesImageTypeGetFormatListFromJson( +List +musicGenresNameImagesImageTypeGetFormatListFromJson( List? musicGenresNameImagesImageTypeGetFormat, [ List? defaultValue, ]) { @@ -64197,7 +67850,8 @@ List musicGenresNameImagesImageTy .toList(); } -List? musicGenresNameImagesImageTypeGetFormatNullableListFromJson( +List? +musicGenresNameImagesImageTypeGetFormatNullableListFromJson( List? musicGenresNameImagesImageTypeGetFormat, [ List? defaultValue, ]) { @@ -64211,58 +67865,72 @@ List? musicGenresNameImagesImageT } String? musicGenresNameImagesImageTypeHeadImageTypeNullableToJson( - enums.MusicGenresNameImagesImageTypeHeadImageType? musicGenresNameImagesImageTypeHeadImageType, + enums.MusicGenresNameImagesImageTypeHeadImageType? + musicGenresNameImagesImageTypeHeadImageType, ) { return musicGenresNameImagesImageTypeHeadImageType?.value; } String? musicGenresNameImagesImageTypeHeadImageTypeToJson( - enums.MusicGenresNameImagesImageTypeHeadImageType musicGenresNameImagesImageTypeHeadImageType, + enums.MusicGenresNameImagesImageTypeHeadImageType + musicGenresNameImagesImageTypeHeadImageType, ) { return musicGenresNameImagesImageTypeHeadImageType.value; } -enums.MusicGenresNameImagesImageTypeHeadImageType musicGenresNameImagesImageTypeHeadImageTypeFromJson( +enums.MusicGenresNameImagesImageTypeHeadImageType +musicGenresNameImagesImageTypeHeadImageTypeFromJson( Object? musicGenresNameImagesImageTypeHeadImageType, [ enums.MusicGenresNameImagesImageTypeHeadImageType? defaultValue, ]) { - return enums.MusicGenresNameImagesImageTypeHeadImageType.values.firstWhereOrNull( - (e) => e.value == musicGenresNameImagesImageTypeHeadImageType, - ) ?? + return enums.MusicGenresNameImagesImageTypeHeadImageType.values + .firstWhereOrNull( + (e) => e.value == musicGenresNameImagesImageTypeHeadImageType, + ) ?? defaultValue ?? enums.MusicGenresNameImagesImageTypeHeadImageType.swaggerGeneratedUnknown; } -enums.MusicGenresNameImagesImageTypeHeadImageType? musicGenresNameImagesImageTypeHeadImageTypeNullableFromJson( +enums.MusicGenresNameImagesImageTypeHeadImageType? +musicGenresNameImagesImageTypeHeadImageTypeNullableFromJson( Object? musicGenresNameImagesImageTypeHeadImageType, [ enums.MusicGenresNameImagesImageTypeHeadImageType? defaultValue, ]) { if (musicGenresNameImagesImageTypeHeadImageType == null) { return null; } - return enums.MusicGenresNameImagesImageTypeHeadImageType.values.firstWhereOrNull( - (e) => e.value == musicGenresNameImagesImageTypeHeadImageType, - ) ?? + return enums.MusicGenresNameImagesImageTypeHeadImageType.values + .firstWhereOrNull( + (e) => e.value == musicGenresNameImagesImageTypeHeadImageType, + ) ?? defaultValue; } String musicGenresNameImagesImageTypeHeadImageTypeExplodedListToJson( - List? musicGenresNameImagesImageTypeHeadImageType, + List? + musicGenresNameImagesImageTypeHeadImageType, ) { - return musicGenresNameImagesImageTypeHeadImageType?.map((e) => e.value!).join(',') ?? ''; + return musicGenresNameImagesImageTypeHeadImageType + ?.map((e) => e.value!) + .join(',') ?? + ''; } List musicGenresNameImagesImageTypeHeadImageTypeListToJson( - List? musicGenresNameImagesImageTypeHeadImageType, + List? + musicGenresNameImagesImageTypeHeadImageType, ) { if (musicGenresNameImagesImageTypeHeadImageType == null) { return []; } - return musicGenresNameImagesImageTypeHeadImageType.map((e) => e.value!).toList(); + return musicGenresNameImagesImageTypeHeadImageType + .map((e) => e.value!) + .toList(); } -List musicGenresNameImagesImageTypeHeadImageTypeListFromJson( +List +musicGenresNameImagesImageTypeHeadImageTypeListFromJson( List? musicGenresNameImagesImageTypeHeadImageType, [ List? defaultValue, ]) { @@ -64272,13 +67940,14 @@ List musicGenresNameImagesIma return musicGenresNameImagesImageTypeHeadImageType .map( - (e) => musicGenresNameImagesImageTypeHeadImageTypeFromJson(e.toString()), + (e) => + musicGenresNameImagesImageTypeHeadImageTypeFromJson(e.toString()), ) .toList(); } List? - musicGenresNameImagesImageTypeHeadImageTypeNullableListFromJson( +musicGenresNameImagesImageTypeHeadImageTypeNullableListFromJson( List? musicGenresNameImagesImageTypeHeadImageType, [ List? defaultValue, ]) { @@ -64288,24 +67957,28 @@ List? return musicGenresNameImagesImageTypeHeadImageType .map( - (e) => musicGenresNameImagesImageTypeHeadImageTypeFromJson(e.toString()), + (e) => + musicGenresNameImagesImageTypeHeadImageTypeFromJson(e.toString()), ) .toList(); } String? musicGenresNameImagesImageTypeHeadFormatNullableToJson( - enums.MusicGenresNameImagesImageTypeHeadFormat? musicGenresNameImagesImageTypeHeadFormat, + enums.MusicGenresNameImagesImageTypeHeadFormat? + musicGenresNameImagesImageTypeHeadFormat, ) { return musicGenresNameImagesImageTypeHeadFormat?.value; } String? musicGenresNameImagesImageTypeHeadFormatToJson( - enums.MusicGenresNameImagesImageTypeHeadFormat musicGenresNameImagesImageTypeHeadFormat, + enums.MusicGenresNameImagesImageTypeHeadFormat + musicGenresNameImagesImageTypeHeadFormat, ) { return musicGenresNameImagesImageTypeHeadFormat.value; } -enums.MusicGenresNameImagesImageTypeHeadFormat musicGenresNameImagesImageTypeHeadFormatFromJson( +enums.MusicGenresNameImagesImageTypeHeadFormat +musicGenresNameImagesImageTypeHeadFormatFromJson( Object? musicGenresNameImagesImageTypeHeadFormat, [ enums.MusicGenresNameImagesImageTypeHeadFormat? defaultValue, ]) { @@ -64316,7 +67989,8 @@ enums.MusicGenresNameImagesImageTypeHeadFormat musicGenresNameImagesImageTypeHea enums.MusicGenresNameImagesImageTypeHeadFormat.swaggerGeneratedUnknown; } -enums.MusicGenresNameImagesImageTypeHeadFormat? musicGenresNameImagesImageTypeHeadFormatNullableFromJson( +enums.MusicGenresNameImagesImageTypeHeadFormat? +musicGenresNameImagesImageTypeHeadFormatNullableFromJson( Object? musicGenresNameImagesImageTypeHeadFormat, [ enums.MusicGenresNameImagesImageTypeHeadFormat? defaultValue, ]) { @@ -64330,13 +68004,18 @@ enums.MusicGenresNameImagesImageTypeHeadFormat? musicGenresNameImagesImageTypeHe } String musicGenresNameImagesImageTypeHeadFormatExplodedListToJson( - List? musicGenresNameImagesImageTypeHeadFormat, + List? + musicGenresNameImagesImageTypeHeadFormat, ) { - return musicGenresNameImagesImageTypeHeadFormat?.map((e) => e.value!).join(',') ?? ''; + return musicGenresNameImagesImageTypeHeadFormat + ?.map((e) => e.value!) + .join(',') ?? + ''; } List musicGenresNameImagesImageTypeHeadFormatListToJson( - List? musicGenresNameImagesImageTypeHeadFormat, + List? + musicGenresNameImagesImageTypeHeadFormat, ) { if (musicGenresNameImagesImageTypeHeadFormat == null) { return []; @@ -64345,7 +68024,8 @@ List musicGenresNameImagesImageTypeHeadFormatListToJson( return musicGenresNameImagesImageTypeHeadFormat.map((e) => e.value!).toList(); } -List musicGenresNameImagesImageTypeHeadFormatListFromJson( +List +musicGenresNameImagesImageTypeHeadFormatListFromJson( List? musicGenresNameImagesImageTypeHeadFormat, [ List? defaultValue, ]) { @@ -64360,7 +68040,8 @@ List musicGenresNameImagesImageT .toList(); } -List? musicGenresNameImagesImageTypeHeadFormatNullableListFromJson( +List? +musicGenresNameImagesImageTypeHeadFormatNullableListFromJson( List? musicGenresNameImagesImageTypeHeadFormat, [ List? defaultValue, ]) { @@ -64376,64 +68057,79 @@ List? musicGenresNameImagesImage } String? musicGenresNameImagesImageTypeImageIndexGetImageTypeNullableToJson( - enums.MusicGenresNameImagesImageTypeImageIndexGetImageType? musicGenresNameImagesImageTypeImageIndexGetImageType, + enums.MusicGenresNameImagesImageTypeImageIndexGetImageType? + musicGenresNameImagesImageTypeImageIndexGetImageType, ) { return musicGenresNameImagesImageTypeImageIndexGetImageType?.value; } String? musicGenresNameImagesImageTypeImageIndexGetImageTypeToJson( - enums.MusicGenresNameImagesImageTypeImageIndexGetImageType musicGenresNameImagesImageTypeImageIndexGetImageType, + enums.MusicGenresNameImagesImageTypeImageIndexGetImageType + musicGenresNameImagesImageTypeImageIndexGetImageType, ) { return musicGenresNameImagesImageTypeImageIndexGetImageType.value; } -enums.MusicGenresNameImagesImageTypeImageIndexGetImageType musicGenresNameImagesImageTypeImageIndexGetImageTypeFromJson( +enums.MusicGenresNameImagesImageTypeImageIndexGetImageType +musicGenresNameImagesImageTypeImageIndexGetImageTypeFromJson( Object? musicGenresNameImagesImageTypeImageIndexGetImageType, [ enums.MusicGenresNameImagesImageTypeImageIndexGetImageType? defaultValue, ]) { - return enums.MusicGenresNameImagesImageTypeImageIndexGetImageType.values.firstWhereOrNull( - (e) => e.value == musicGenresNameImagesImageTypeImageIndexGetImageType, - ) ?? + return enums.MusicGenresNameImagesImageTypeImageIndexGetImageType.values + .firstWhereOrNull( + (e) => + e.value == musicGenresNameImagesImageTypeImageIndexGetImageType, + ) ?? defaultValue ?? - enums.MusicGenresNameImagesImageTypeImageIndexGetImageType.swaggerGeneratedUnknown; + enums + .MusicGenresNameImagesImageTypeImageIndexGetImageType + .swaggerGeneratedUnknown; } enums.MusicGenresNameImagesImageTypeImageIndexGetImageType? - musicGenresNameImagesImageTypeImageIndexGetImageTypeNullableFromJson( +musicGenresNameImagesImageTypeImageIndexGetImageTypeNullableFromJson( Object? musicGenresNameImagesImageTypeImageIndexGetImageType, [ enums.MusicGenresNameImagesImageTypeImageIndexGetImageType? defaultValue, ]) { if (musicGenresNameImagesImageTypeImageIndexGetImageType == null) { return null; } - return enums.MusicGenresNameImagesImageTypeImageIndexGetImageType.values.firstWhereOrNull( - (e) => e.value == musicGenresNameImagesImageTypeImageIndexGetImageType, - ) ?? + return enums.MusicGenresNameImagesImageTypeImageIndexGetImageType.values + .firstWhereOrNull( + (e) => + e.value == musicGenresNameImagesImageTypeImageIndexGetImageType, + ) ?? defaultValue; } String musicGenresNameImagesImageTypeImageIndexGetImageTypeExplodedListToJson( List? - musicGenresNameImagesImageTypeImageIndexGetImageType, + musicGenresNameImagesImageTypeImageIndexGetImageType, ) { - return musicGenresNameImagesImageTypeImageIndexGetImageType?.map((e) => e.value!).join(',') ?? ''; + return musicGenresNameImagesImageTypeImageIndexGetImageType + ?.map((e) => e.value!) + .join(',') ?? + ''; } List musicGenresNameImagesImageTypeImageIndexGetImageTypeListToJson( List? - musicGenresNameImagesImageTypeImageIndexGetImageType, + musicGenresNameImagesImageTypeImageIndexGetImageType, ) { if (musicGenresNameImagesImageTypeImageIndexGetImageType == null) { return []; } - return musicGenresNameImagesImageTypeImageIndexGetImageType.map((e) => e.value!).toList(); + return musicGenresNameImagesImageTypeImageIndexGetImageType + .map((e) => e.value!) + .toList(); } List - musicGenresNameImagesImageTypeImageIndexGetImageTypeListFromJson( +musicGenresNameImagesImageTypeImageIndexGetImageTypeListFromJson( List? musicGenresNameImagesImageTypeImageIndexGetImageType, [ - List? defaultValue, + List? + defaultValue, ]) { if (musicGenresNameImagesImageTypeImageIndexGetImageType == null) { return defaultValue ?? []; @@ -64449,9 +68145,10 @@ List } List? - musicGenresNameImagesImageTypeImageIndexGetImageTypeNullableListFromJson( +musicGenresNameImagesImageTypeImageIndexGetImageTypeNullableListFromJson( List? musicGenresNameImagesImageTypeImageIndexGetImageType, [ - List? defaultValue, + List? + defaultValue, ]) { if (musicGenresNameImagesImageTypeImageIndexGetImageType == null) { return defaultValue; @@ -64467,60 +68164,74 @@ List? } String? musicGenresNameImagesImageTypeImageIndexGetFormatNullableToJson( - enums.MusicGenresNameImagesImageTypeImageIndexGetFormat? musicGenresNameImagesImageTypeImageIndexGetFormat, + enums.MusicGenresNameImagesImageTypeImageIndexGetFormat? + musicGenresNameImagesImageTypeImageIndexGetFormat, ) { return musicGenresNameImagesImageTypeImageIndexGetFormat?.value; } String? musicGenresNameImagesImageTypeImageIndexGetFormatToJson( - enums.MusicGenresNameImagesImageTypeImageIndexGetFormat musicGenresNameImagesImageTypeImageIndexGetFormat, + enums.MusicGenresNameImagesImageTypeImageIndexGetFormat + musicGenresNameImagesImageTypeImageIndexGetFormat, ) { return musicGenresNameImagesImageTypeImageIndexGetFormat.value; } -enums.MusicGenresNameImagesImageTypeImageIndexGetFormat musicGenresNameImagesImageTypeImageIndexGetFormatFromJson( +enums.MusicGenresNameImagesImageTypeImageIndexGetFormat +musicGenresNameImagesImageTypeImageIndexGetFormatFromJson( Object? musicGenresNameImagesImageTypeImageIndexGetFormat, [ enums.MusicGenresNameImagesImageTypeImageIndexGetFormat? defaultValue, ]) { - return enums.MusicGenresNameImagesImageTypeImageIndexGetFormat.values.firstWhereOrNull( - (e) => e.value == musicGenresNameImagesImageTypeImageIndexGetFormat, - ) ?? + return enums.MusicGenresNameImagesImageTypeImageIndexGetFormat.values + .firstWhereOrNull( + (e) => e.value == musicGenresNameImagesImageTypeImageIndexGetFormat, + ) ?? defaultValue ?? - enums.MusicGenresNameImagesImageTypeImageIndexGetFormat.swaggerGeneratedUnknown; + enums + .MusicGenresNameImagesImageTypeImageIndexGetFormat + .swaggerGeneratedUnknown; } enums.MusicGenresNameImagesImageTypeImageIndexGetFormat? - musicGenresNameImagesImageTypeImageIndexGetFormatNullableFromJson( +musicGenresNameImagesImageTypeImageIndexGetFormatNullableFromJson( Object? musicGenresNameImagesImageTypeImageIndexGetFormat, [ enums.MusicGenresNameImagesImageTypeImageIndexGetFormat? defaultValue, ]) { if (musicGenresNameImagesImageTypeImageIndexGetFormat == null) { return null; } - return enums.MusicGenresNameImagesImageTypeImageIndexGetFormat.values.firstWhereOrNull( - (e) => e.value == musicGenresNameImagesImageTypeImageIndexGetFormat, - ) ?? + return enums.MusicGenresNameImagesImageTypeImageIndexGetFormat.values + .firstWhereOrNull( + (e) => e.value == musicGenresNameImagesImageTypeImageIndexGetFormat, + ) ?? defaultValue; } String musicGenresNameImagesImageTypeImageIndexGetFormatExplodedListToJson( - List? musicGenresNameImagesImageTypeImageIndexGetFormat, + List? + musicGenresNameImagesImageTypeImageIndexGetFormat, ) { - return musicGenresNameImagesImageTypeImageIndexGetFormat?.map((e) => e.value!).join(',') ?? ''; + return musicGenresNameImagesImageTypeImageIndexGetFormat + ?.map((e) => e.value!) + .join(',') ?? + ''; } List musicGenresNameImagesImageTypeImageIndexGetFormatListToJson( - List? musicGenresNameImagesImageTypeImageIndexGetFormat, + List? + musicGenresNameImagesImageTypeImageIndexGetFormat, ) { if (musicGenresNameImagesImageTypeImageIndexGetFormat == null) { return []; } - return musicGenresNameImagesImageTypeImageIndexGetFormat.map((e) => e.value!).toList(); + return musicGenresNameImagesImageTypeImageIndexGetFormat + .map((e) => e.value!) + .toList(); } List - musicGenresNameImagesImageTypeImageIndexGetFormatListFromJson( +musicGenresNameImagesImageTypeImageIndexGetFormatListFromJson( List? musicGenresNameImagesImageTypeImageIndexGetFormat, [ List? defaultValue, ]) { @@ -64538,7 +68249,7 @@ List } List? - musicGenresNameImagesImageTypeImageIndexGetFormatNullableListFromJson( +musicGenresNameImagesImageTypeImageIndexGetFormatNullableListFromJson( List? musicGenresNameImagesImageTypeImageIndexGetFormat, [ List? defaultValue, ]) { @@ -64556,65 +68267,81 @@ List? } String? musicGenresNameImagesImageTypeImageIndexHeadImageTypeNullableToJson( - enums.MusicGenresNameImagesImageTypeImageIndexHeadImageType? musicGenresNameImagesImageTypeImageIndexHeadImageType, + enums.MusicGenresNameImagesImageTypeImageIndexHeadImageType? + musicGenresNameImagesImageTypeImageIndexHeadImageType, ) { return musicGenresNameImagesImageTypeImageIndexHeadImageType?.value; } String? musicGenresNameImagesImageTypeImageIndexHeadImageTypeToJson( - enums.MusicGenresNameImagesImageTypeImageIndexHeadImageType musicGenresNameImagesImageTypeImageIndexHeadImageType, + enums.MusicGenresNameImagesImageTypeImageIndexHeadImageType + musicGenresNameImagesImageTypeImageIndexHeadImageType, ) { return musicGenresNameImagesImageTypeImageIndexHeadImageType.value; } enums.MusicGenresNameImagesImageTypeImageIndexHeadImageType - musicGenresNameImagesImageTypeImageIndexHeadImageTypeFromJson( +musicGenresNameImagesImageTypeImageIndexHeadImageTypeFromJson( Object? musicGenresNameImagesImageTypeImageIndexHeadImageType, [ enums.MusicGenresNameImagesImageTypeImageIndexHeadImageType? defaultValue, ]) { - return enums.MusicGenresNameImagesImageTypeImageIndexHeadImageType.values.firstWhereOrNull( - (e) => e.value == musicGenresNameImagesImageTypeImageIndexHeadImageType, - ) ?? + return enums.MusicGenresNameImagesImageTypeImageIndexHeadImageType.values + .firstWhereOrNull( + (e) => + e.value == + musicGenresNameImagesImageTypeImageIndexHeadImageType, + ) ?? defaultValue ?? - enums.MusicGenresNameImagesImageTypeImageIndexHeadImageType.swaggerGeneratedUnknown; + enums + .MusicGenresNameImagesImageTypeImageIndexHeadImageType + .swaggerGeneratedUnknown; } enums.MusicGenresNameImagesImageTypeImageIndexHeadImageType? - musicGenresNameImagesImageTypeImageIndexHeadImageTypeNullableFromJson( +musicGenresNameImagesImageTypeImageIndexHeadImageTypeNullableFromJson( Object? musicGenresNameImagesImageTypeImageIndexHeadImageType, [ enums.MusicGenresNameImagesImageTypeImageIndexHeadImageType? defaultValue, ]) { if (musicGenresNameImagesImageTypeImageIndexHeadImageType == null) { return null; } - return enums.MusicGenresNameImagesImageTypeImageIndexHeadImageType.values.firstWhereOrNull( - (e) => e.value == musicGenresNameImagesImageTypeImageIndexHeadImageType, - ) ?? + return enums.MusicGenresNameImagesImageTypeImageIndexHeadImageType.values + .firstWhereOrNull( + (e) => + e.value == + musicGenresNameImagesImageTypeImageIndexHeadImageType, + ) ?? defaultValue; } String musicGenresNameImagesImageTypeImageIndexHeadImageTypeExplodedListToJson( List? - musicGenresNameImagesImageTypeImageIndexHeadImageType, + musicGenresNameImagesImageTypeImageIndexHeadImageType, ) { - return musicGenresNameImagesImageTypeImageIndexHeadImageType?.map((e) => e.value!).join(',') ?? ''; + return musicGenresNameImagesImageTypeImageIndexHeadImageType + ?.map((e) => e.value!) + .join(',') ?? + ''; } List musicGenresNameImagesImageTypeImageIndexHeadImageTypeListToJson( List? - musicGenresNameImagesImageTypeImageIndexHeadImageType, + musicGenresNameImagesImageTypeImageIndexHeadImageType, ) { if (musicGenresNameImagesImageTypeImageIndexHeadImageType == null) { return []; } - return musicGenresNameImagesImageTypeImageIndexHeadImageType.map((e) => e.value!).toList(); + return musicGenresNameImagesImageTypeImageIndexHeadImageType + .map((e) => e.value!) + .toList(); } List - musicGenresNameImagesImageTypeImageIndexHeadImageTypeListFromJson( +musicGenresNameImagesImageTypeImageIndexHeadImageTypeListFromJson( List? musicGenresNameImagesImageTypeImageIndexHeadImageType, [ - List? defaultValue, + List? + defaultValue, ]) { if (musicGenresNameImagesImageTypeImageIndexHeadImageType == null) { return defaultValue ?? []; @@ -64630,9 +68357,10 @@ List } List? - musicGenresNameImagesImageTypeImageIndexHeadImageTypeNullableListFromJson( +musicGenresNameImagesImageTypeImageIndexHeadImageTypeNullableListFromJson( List? musicGenresNameImagesImageTypeImageIndexHeadImageType, [ - List? defaultValue, + List? + defaultValue, ]) { if (musicGenresNameImagesImageTypeImageIndexHeadImageType == null) { return defaultValue; @@ -64648,60 +68376,76 @@ List? } String? musicGenresNameImagesImageTypeImageIndexHeadFormatNullableToJson( - enums.MusicGenresNameImagesImageTypeImageIndexHeadFormat? musicGenresNameImagesImageTypeImageIndexHeadFormat, + enums.MusicGenresNameImagesImageTypeImageIndexHeadFormat? + musicGenresNameImagesImageTypeImageIndexHeadFormat, ) { return musicGenresNameImagesImageTypeImageIndexHeadFormat?.value; } String? musicGenresNameImagesImageTypeImageIndexHeadFormatToJson( - enums.MusicGenresNameImagesImageTypeImageIndexHeadFormat musicGenresNameImagesImageTypeImageIndexHeadFormat, + enums.MusicGenresNameImagesImageTypeImageIndexHeadFormat + musicGenresNameImagesImageTypeImageIndexHeadFormat, ) { return musicGenresNameImagesImageTypeImageIndexHeadFormat.value; } -enums.MusicGenresNameImagesImageTypeImageIndexHeadFormat musicGenresNameImagesImageTypeImageIndexHeadFormatFromJson( +enums.MusicGenresNameImagesImageTypeImageIndexHeadFormat +musicGenresNameImagesImageTypeImageIndexHeadFormatFromJson( Object? musicGenresNameImagesImageTypeImageIndexHeadFormat, [ enums.MusicGenresNameImagesImageTypeImageIndexHeadFormat? defaultValue, ]) { - return enums.MusicGenresNameImagesImageTypeImageIndexHeadFormat.values.firstWhereOrNull( - (e) => e.value == musicGenresNameImagesImageTypeImageIndexHeadFormat, - ) ?? + return enums.MusicGenresNameImagesImageTypeImageIndexHeadFormat.values + .firstWhereOrNull( + (e) => + e.value == musicGenresNameImagesImageTypeImageIndexHeadFormat, + ) ?? defaultValue ?? - enums.MusicGenresNameImagesImageTypeImageIndexHeadFormat.swaggerGeneratedUnknown; + enums + .MusicGenresNameImagesImageTypeImageIndexHeadFormat + .swaggerGeneratedUnknown; } enums.MusicGenresNameImagesImageTypeImageIndexHeadFormat? - musicGenresNameImagesImageTypeImageIndexHeadFormatNullableFromJson( +musicGenresNameImagesImageTypeImageIndexHeadFormatNullableFromJson( Object? musicGenresNameImagesImageTypeImageIndexHeadFormat, [ enums.MusicGenresNameImagesImageTypeImageIndexHeadFormat? defaultValue, ]) { if (musicGenresNameImagesImageTypeImageIndexHeadFormat == null) { return null; } - return enums.MusicGenresNameImagesImageTypeImageIndexHeadFormat.values.firstWhereOrNull( - (e) => e.value == musicGenresNameImagesImageTypeImageIndexHeadFormat, - ) ?? + return enums.MusicGenresNameImagesImageTypeImageIndexHeadFormat.values + .firstWhereOrNull( + (e) => + e.value == musicGenresNameImagesImageTypeImageIndexHeadFormat, + ) ?? defaultValue; } String musicGenresNameImagesImageTypeImageIndexHeadFormatExplodedListToJson( - List? musicGenresNameImagesImageTypeImageIndexHeadFormat, + List? + musicGenresNameImagesImageTypeImageIndexHeadFormat, ) { - return musicGenresNameImagesImageTypeImageIndexHeadFormat?.map((e) => e.value!).join(',') ?? ''; + return musicGenresNameImagesImageTypeImageIndexHeadFormat + ?.map((e) => e.value!) + .join(',') ?? + ''; } List musicGenresNameImagesImageTypeImageIndexHeadFormatListToJson( - List? musicGenresNameImagesImageTypeImageIndexHeadFormat, + List? + musicGenresNameImagesImageTypeImageIndexHeadFormat, ) { if (musicGenresNameImagesImageTypeImageIndexHeadFormat == null) { return []; } - return musicGenresNameImagesImageTypeImageIndexHeadFormat.map((e) => e.value!).toList(); + return musicGenresNameImagesImageTypeImageIndexHeadFormat + .map((e) => e.value!) + .toList(); } List - musicGenresNameImagesImageTypeImageIndexHeadFormatListFromJson( +musicGenresNameImagesImageTypeImageIndexHeadFormatListFromJson( List? musicGenresNameImagesImageTypeImageIndexHeadFormat, [ List? defaultValue, ]) { @@ -64719,7 +68463,7 @@ List } List? - musicGenresNameImagesImageTypeImageIndexHeadFormatNullableListFromJson( +musicGenresNameImagesImageTypeImageIndexHeadFormatNullableListFromJson( List? musicGenresNameImagesImageTypeImageIndexHeadFormat, [ List? defaultValue, ]) { @@ -64737,18 +68481,21 @@ List? } String? personsNameImagesImageTypeGetImageTypeNullableToJson( - enums.PersonsNameImagesImageTypeGetImageType? personsNameImagesImageTypeGetImageType, + enums.PersonsNameImagesImageTypeGetImageType? + personsNameImagesImageTypeGetImageType, ) { return personsNameImagesImageTypeGetImageType?.value; } String? personsNameImagesImageTypeGetImageTypeToJson( - enums.PersonsNameImagesImageTypeGetImageType personsNameImagesImageTypeGetImageType, + enums.PersonsNameImagesImageTypeGetImageType + personsNameImagesImageTypeGetImageType, ) { return personsNameImagesImageTypeGetImageType.value; } -enums.PersonsNameImagesImageTypeGetImageType personsNameImagesImageTypeGetImageTypeFromJson( +enums.PersonsNameImagesImageTypeGetImageType +personsNameImagesImageTypeGetImageTypeFromJson( Object? personsNameImagesImageTypeGetImageType, [ enums.PersonsNameImagesImageTypeGetImageType? defaultValue, ]) { @@ -64759,7 +68506,8 @@ enums.PersonsNameImagesImageTypeGetImageType personsNameImagesImageTypeGetImageT enums.PersonsNameImagesImageTypeGetImageType.swaggerGeneratedUnknown; } -enums.PersonsNameImagesImageTypeGetImageType? personsNameImagesImageTypeGetImageTypeNullableFromJson( +enums.PersonsNameImagesImageTypeGetImageType? +personsNameImagesImageTypeGetImageTypeNullableFromJson( Object? personsNameImagesImageTypeGetImageType, [ enums.PersonsNameImagesImageTypeGetImageType? defaultValue, ]) { @@ -64773,13 +68521,18 @@ enums.PersonsNameImagesImageTypeGetImageType? personsNameImagesImageTypeGetImage } String personsNameImagesImageTypeGetImageTypeExplodedListToJson( - List? personsNameImagesImageTypeGetImageType, + List? + personsNameImagesImageTypeGetImageType, ) { - return personsNameImagesImageTypeGetImageType?.map((e) => e.value!).join(',') ?? ''; + return personsNameImagesImageTypeGetImageType + ?.map((e) => e.value!) + .join(',') ?? + ''; } List personsNameImagesImageTypeGetImageTypeListToJson( - List? personsNameImagesImageTypeGetImageType, + List? + personsNameImagesImageTypeGetImageType, ) { if (personsNameImagesImageTypeGetImageType == null) { return []; @@ -64788,7 +68541,8 @@ List personsNameImagesImageTypeGetImageTypeListToJson( return personsNameImagesImageTypeGetImageType.map((e) => e.value!).toList(); } -List personsNameImagesImageTypeGetImageTypeListFromJson( +List +personsNameImagesImageTypeGetImageTypeListFromJson( List? personsNameImagesImageTypeGetImageType, [ List? defaultValue, ]) { @@ -64801,7 +68555,8 @@ List personsNameImagesImageTypeGet .toList(); } -List? personsNameImagesImageTypeGetImageTypeNullableListFromJson( +List? +personsNameImagesImageTypeGetImageTypeNullableListFromJson( List? personsNameImagesImageTypeGetImageType, [ List? defaultValue, ]) { @@ -64815,7 +68570,8 @@ List? personsNameImagesImageTypeGe } String? personsNameImagesImageTypeGetFormatNullableToJson( - enums.PersonsNameImagesImageTypeGetFormat? personsNameImagesImageTypeGetFormat, + enums.PersonsNameImagesImageTypeGetFormat? + personsNameImagesImageTypeGetFormat, ) { return personsNameImagesImageTypeGetFormat?.value; } @@ -64826,7 +68582,8 @@ String? personsNameImagesImageTypeGetFormatToJson( return personsNameImagesImageTypeGetFormat.value; } -enums.PersonsNameImagesImageTypeGetFormat personsNameImagesImageTypeGetFormatFromJson( +enums.PersonsNameImagesImageTypeGetFormat +personsNameImagesImageTypeGetFormatFromJson( Object? personsNameImagesImageTypeGetFormat, [ enums.PersonsNameImagesImageTypeGetFormat? defaultValue, ]) { @@ -64837,7 +68594,8 @@ enums.PersonsNameImagesImageTypeGetFormat personsNameImagesImageTypeGetFormatFro enums.PersonsNameImagesImageTypeGetFormat.swaggerGeneratedUnknown; } -enums.PersonsNameImagesImageTypeGetFormat? personsNameImagesImageTypeGetFormatNullableFromJson( +enums.PersonsNameImagesImageTypeGetFormat? +personsNameImagesImageTypeGetFormatNullableFromJson( Object? personsNameImagesImageTypeGetFormat, [ enums.PersonsNameImagesImageTypeGetFormat? defaultValue, ]) { @@ -64851,13 +68609,16 @@ enums.PersonsNameImagesImageTypeGetFormat? personsNameImagesImageTypeGetFormatNu } String personsNameImagesImageTypeGetFormatExplodedListToJson( - List? personsNameImagesImageTypeGetFormat, + List? + personsNameImagesImageTypeGetFormat, ) { - return personsNameImagesImageTypeGetFormat?.map((e) => e.value!).join(',') ?? ''; + return personsNameImagesImageTypeGetFormat?.map((e) => e.value!).join(',') ?? + ''; } List personsNameImagesImageTypeGetFormatListToJson( - List? personsNameImagesImageTypeGetFormat, + List? + personsNameImagesImageTypeGetFormat, ) { if (personsNameImagesImageTypeGetFormat == null) { return []; @@ -64866,7 +68627,8 @@ List personsNameImagesImageTypeGetFormatListToJson( return personsNameImagesImageTypeGetFormat.map((e) => e.value!).toList(); } -List personsNameImagesImageTypeGetFormatListFromJson( +List +personsNameImagesImageTypeGetFormatListFromJson( List? personsNameImagesImageTypeGetFormat, [ List? defaultValue, ]) { @@ -64879,7 +68641,8 @@ List personsNameImagesImageTypeGetFor .toList(); } -List? personsNameImagesImageTypeGetFormatNullableListFromJson( +List? +personsNameImagesImageTypeGetFormatNullableListFromJson( List? personsNameImagesImageTypeGetFormat, [ List? defaultValue, ]) { @@ -64893,18 +68656,21 @@ List? personsNameImagesImageTypeGetFo } String? personsNameImagesImageTypeHeadImageTypeNullableToJson( - enums.PersonsNameImagesImageTypeHeadImageType? personsNameImagesImageTypeHeadImageType, + enums.PersonsNameImagesImageTypeHeadImageType? + personsNameImagesImageTypeHeadImageType, ) { return personsNameImagesImageTypeHeadImageType?.value; } String? personsNameImagesImageTypeHeadImageTypeToJson( - enums.PersonsNameImagesImageTypeHeadImageType personsNameImagesImageTypeHeadImageType, + enums.PersonsNameImagesImageTypeHeadImageType + personsNameImagesImageTypeHeadImageType, ) { return personsNameImagesImageTypeHeadImageType.value; } -enums.PersonsNameImagesImageTypeHeadImageType personsNameImagesImageTypeHeadImageTypeFromJson( +enums.PersonsNameImagesImageTypeHeadImageType +personsNameImagesImageTypeHeadImageTypeFromJson( Object? personsNameImagesImageTypeHeadImageType, [ enums.PersonsNameImagesImageTypeHeadImageType? defaultValue, ]) { @@ -64915,7 +68681,8 @@ enums.PersonsNameImagesImageTypeHeadImageType personsNameImagesImageTypeHeadImag enums.PersonsNameImagesImageTypeHeadImageType.swaggerGeneratedUnknown; } -enums.PersonsNameImagesImageTypeHeadImageType? personsNameImagesImageTypeHeadImageTypeNullableFromJson( +enums.PersonsNameImagesImageTypeHeadImageType? +personsNameImagesImageTypeHeadImageTypeNullableFromJson( Object? personsNameImagesImageTypeHeadImageType, [ enums.PersonsNameImagesImageTypeHeadImageType? defaultValue, ]) { @@ -64929,13 +68696,18 @@ enums.PersonsNameImagesImageTypeHeadImageType? personsNameImagesImageTypeHeadIma } String personsNameImagesImageTypeHeadImageTypeExplodedListToJson( - List? personsNameImagesImageTypeHeadImageType, + List? + personsNameImagesImageTypeHeadImageType, ) { - return personsNameImagesImageTypeHeadImageType?.map((e) => e.value!).join(',') ?? ''; + return personsNameImagesImageTypeHeadImageType + ?.map((e) => e.value!) + .join(',') ?? + ''; } List personsNameImagesImageTypeHeadImageTypeListToJson( - List? personsNameImagesImageTypeHeadImageType, + List? + personsNameImagesImageTypeHeadImageType, ) { if (personsNameImagesImageTypeHeadImageType == null) { return []; @@ -64944,7 +68716,8 @@ List personsNameImagesImageTypeHeadImageTypeListToJson( return personsNameImagesImageTypeHeadImageType.map((e) => e.value!).toList(); } -List personsNameImagesImageTypeHeadImageTypeListFromJson( +List +personsNameImagesImageTypeHeadImageTypeListFromJson( List? personsNameImagesImageTypeHeadImageType, [ List? defaultValue, ]) { @@ -64957,7 +68730,8 @@ List personsNameImagesImageTypeHe .toList(); } -List? personsNameImagesImageTypeHeadImageTypeNullableListFromJson( +List? +personsNameImagesImageTypeHeadImageTypeNullableListFromJson( List? personsNameImagesImageTypeHeadImageType, [ List? defaultValue, ]) { @@ -64971,18 +68745,21 @@ List? personsNameImagesImageTypeH } String? personsNameImagesImageTypeHeadFormatNullableToJson( - enums.PersonsNameImagesImageTypeHeadFormat? personsNameImagesImageTypeHeadFormat, + enums.PersonsNameImagesImageTypeHeadFormat? + personsNameImagesImageTypeHeadFormat, ) { return personsNameImagesImageTypeHeadFormat?.value; } String? personsNameImagesImageTypeHeadFormatToJson( - enums.PersonsNameImagesImageTypeHeadFormat personsNameImagesImageTypeHeadFormat, + enums.PersonsNameImagesImageTypeHeadFormat + personsNameImagesImageTypeHeadFormat, ) { return personsNameImagesImageTypeHeadFormat.value; } -enums.PersonsNameImagesImageTypeHeadFormat personsNameImagesImageTypeHeadFormatFromJson( +enums.PersonsNameImagesImageTypeHeadFormat +personsNameImagesImageTypeHeadFormatFromJson( Object? personsNameImagesImageTypeHeadFormat, [ enums.PersonsNameImagesImageTypeHeadFormat? defaultValue, ]) { @@ -64993,7 +68770,8 @@ enums.PersonsNameImagesImageTypeHeadFormat personsNameImagesImageTypeHeadFormatF enums.PersonsNameImagesImageTypeHeadFormat.swaggerGeneratedUnknown; } -enums.PersonsNameImagesImageTypeHeadFormat? personsNameImagesImageTypeHeadFormatNullableFromJson( +enums.PersonsNameImagesImageTypeHeadFormat? +personsNameImagesImageTypeHeadFormatNullableFromJson( Object? personsNameImagesImageTypeHeadFormat, [ enums.PersonsNameImagesImageTypeHeadFormat? defaultValue, ]) { @@ -65007,13 +68785,16 @@ enums.PersonsNameImagesImageTypeHeadFormat? personsNameImagesImageTypeHeadFormat } String personsNameImagesImageTypeHeadFormatExplodedListToJson( - List? personsNameImagesImageTypeHeadFormat, + List? + personsNameImagesImageTypeHeadFormat, ) { - return personsNameImagesImageTypeHeadFormat?.map((e) => e.value!).join(',') ?? ''; + return personsNameImagesImageTypeHeadFormat?.map((e) => e.value!).join(',') ?? + ''; } List personsNameImagesImageTypeHeadFormatListToJson( - List? personsNameImagesImageTypeHeadFormat, + List? + personsNameImagesImageTypeHeadFormat, ) { if (personsNameImagesImageTypeHeadFormat == null) { return []; @@ -65022,7 +68803,8 @@ List personsNameImagesImageTypeHeadFormatListToJson( return personsNameImagesImageTypeHeadFormat.map((e) => e.value!).toList(); } -List personsNameImagesImageTypeHeadFormatListFromJson( +List +personsNameImagesImageTypeHeadFormatListFromJson( List? personsNameImagesImageTypeHeadFormat, [ List? defaultValue, ]) { @@ -65035,7 +68817,8 @@ List personsNameImagesImageTypeHeadF .toList(); } -List? personsNameImagesImageTypeHeadFormatNullableListFromJson( +List? +personsNameImagesImageTypeHeadFormatNullableListFromJson( List? personsNameImagesImageTypeHeadFormat, [ List? defaultValue, ]) { @@ -65049,60 +68832,74 @@ List? personsNameImagesImageTypeHead } String? personsNameImagesImageTypeImageIndexGetImageTypeNullableToJson( - enums.PersonsNameImagesImageTypeImageIndexGetImageType? personsNameImagesImageTypeImageIndexGetImageType, + enums.PersonsNameImagesImageTypeImageIndexGetImageType? + personsNameImagesImageTypeImageIndexGetImageType, ) { return personsNameImagesImageTypeImageIndexGetImageType?.value; } String? personsNameImagesImageTypeImageIndexGetImageTypeToJson( - enums.PersonsNameImagesImageTypeImageIndexGetImageType personsNameImagesImageTypeImageIndexGetImageType, + enums.PersonsNameImagesImageTypeImageIndexGetImageType + personsNameImagesImageTypeImageIndexGetImageType, ) { return personsNameImagesImageTypeImageIndexGetImageType.value; } -enums.PersonsNameImagesImageTypeImageIndexGetImageType personsNameImagesImageTypeImageIndexGetImageTypeFromJson( +enums.PersonsNameImagesImageTypeImageIndexGetImageType +personsNameImagesImageTypeImageIndexGetImageTypeFromJson( Object? personsNameImagesImageTypeImageIndexGetImageType, [ enums.PersonsNameImagesImageTypeImageIndexGetImageType? defaultValue, ]) { - return enums.PersonsNameImagesImageTypeImageIndexGetImageType.values.firstWhereOrNull( - (e) => e.value == personsNameImagesImageTypeImageIndexGetImageType, - ) ?? + return enums.PersonsNameImagesImageTypeImageIndexGetImageType.values + .firstWhereOrNull( + (e) => e.value == personsNameImagesImageTypeImageIndexGetImageType, + ) ?? defaultValue ?? - enums.PersonsNameImagesImageTypeImageIndexGetImageType.swaggerGeneratedUnknown; + enums + .PersonsNameImagesImageTypeImageIndexGetImageType + .swaggerGeneratedUnknown; } enums.PersonsNameImagesImageTypeImageIndexGetImageType? - personsNameImagesImageTypeImageIndexGetImageTypeNullableFromJson( +personsNameImagesImageTypeImageIndexGetImageTypeNullableFromJson( Object? personsNameImagesImageTypeImageIndexGetImageType, [ enums.PersonsNameImagesImageTypeImageIndexGetImageType? defaultValue, ]) { if (personsNameImagesImageTypeImageIndexGetImageType == null) { return null; } - return enums.PersonsNameImagesImageTypeImageIndexGetImageType.values.firstWhereOrNull( - (e) => e.value == personsNameImagesImageTypeImageIndexGetImageType, - ) ?? + return enums.PersonsNameImagesImageTypeImageIndexGetImageType.values + .firstWhereOrNull( + (e) => e.value == personsNameImagesImageTypeImageIndexGetImageType, + ) ?? defaultValue; } String personsNameImagesImageTypeImageIndexGetImageTypeExplodedListToJson( - List? personsNameImagesImageTypeImageIndexGetImageType, + List? + personsNameImagesImageTypeImageIndexGetImageType, ) { - return personsNameImagesImageTypeImageIndexGetImageType?.map((e) => e.value!).join(',') ?? ''; + return personsNameImagesImageTypeImageIndexGetImageType + ?.map((e) => e.value!) + .join(',') ?? + ''; } List personsNameImagesImageTypeImageIndexGetImageTypeListToJson( - List? personsNameImagesImageTypeImageIndexGetImageType, + List? + personsNameImagesImageTypeImageIndexGetImageType, ) { if (personsNameImagesImageTypeImageIndexGetImageType == null) { return []; } - return personsNameImagesImageTypeImageIndexGetImageType.map((e) => e.value!).toList(); + return personsNameImagesImageTypeImageIndexGetImageType + .map((e) => e.value!) + .toList(); } List - personsNameImagesImageTypeImageIndexGetImageTypeListFromJson( +personsNameImagesImageTypeImageIndexGetImageTypeListFromJson( List? personsNameImagesImageTypeImageIndexGetImageType, [ List? defaultValue, ]) { @@ -65120,7 +68917,7 @@ List } List? - personsNameImagesImageTypeImageIndexGetImageTypeNullableListFromJson( +personsNameImagesImageTypeImageIndexGetImageTypeNullableListFromJson( List? personsNameImagesImageTypeImageIndexGetImageType, [ List? defaultValue, ]) { @@ -65138,58 +68935,74 @@ List? } String? personsNameImagesImageTypeImageIndexGetFormatNullableToJson( - enums.PersonsNameImagesImageTypeImageIndexGetFormat? personsNameImagesImageTypeImageIndexGetFormat, + enums.PersonsNameImagesImageTypeImageIndexGetFormat? + personsNameImagesImageTypeImageIndexGetFormat, ) { return personsNameImagesImageTypeImageIndexGetFormat?.value; } String? personsNameImagesImageTypeImageIndexGetFormatToJson( - enums.PersonsNameImagesImageTypeImageIndexGetFormat personsNameImagesImageTypeImageIndexGetFormat, + enums.PersonsNameImagesImageTypeImageIndexGetFormat + personsNameImagesImageTypeImageIndexGetFormat, ) { return personsNameImagesImageTypeImageIndexGetFormat.value; } -enums.PersonsNameImagesImageTypeImageIndexGetFormat personsNameImagesImageTypeImageIndexGetFormatFromJson( +enums.PersonsNameImagesImageTypeImageIndexGetFormat +personsNameImagesImageTypeImageIndexGetFormatFromJson( Object? personsNameImagesImageTypeImageIndexGetFormat, [ enums.PersonsNameImagesImageTypeImageIndexGetFormat? defaultValue, ]) { - return enums.PersonsNameImagesImageTypeImageIndexGetFormat.values.firstWhereOrNull( - (e) => e.value == personsNameImagesImageTypeImageIndexGetFormat, - ) ?? + return enums.PersonsNameImagesImageTypeImageIndexGetFormat.values + .firstWhereOrNull( + (e) => e.value == personsNameImagesImageTypeImageIndexGetFormat, + ) ?? defaultValue ?? - enums.PersonsNameImagesImageTypeImageIndexGetFormat.swaggerGeneratedUnknown; + enums + .PersonsNameImagesImageTypeImageIndexGetFormat + .swaggerGeneratedUnknown; } -enums.PersonsNameImagesImageTypeImageIndexGetFormat? personsNameImagesImageTypeImageIndexGetFormatNullableFromJson( +enums.PersonsNameImagesImageTypeImageIndexGetFormat? +personsNameImagesImageTypeImageIndexGetFormatNullableFromJson( Object? personsNameImagesImageTypeImageIndexGetFormat, [ enums.PersonsNameImagesImageTypeImageIndexGetFormat? defaultValue, ]) { if (personsNameImagesImageTypeImageIndexGetFormat == null) { return null; } - return enums.PersonsNameImagesImageTypeImageIndexGetFormat.values.firstWhereOrNull( - (e) => e.value == personsNameImagesImageTypeImageIndexGetFormat, - ) ?? + return enums.PersonsNameImagesImageTypeImageIndexGetFormat.values + .firstWhereOrNull( + (e) => e.value == personsNameImagesImageTypeImageIndexGetFormat, + ) ?? defaultValue; } String personsNameImagesImageTypeImageIndexGetFormatExplodedListToJson( - List? personsNameImagesImageTypeImageIndexGetFormat, + List? + personsNameImagesImageTypeImageIndexGetFormat, ) { - return personsNameImagesImageTypeImageIndexGetFormat?.map((e) => e.value!).join(',') ?? ''; + return personsNameImagesImageTypeImageIndexGetFormat + ?.map((e) => e.value!) + .join(',') ?? + ''; } List personsNameImagesImageTypeImageIndexGetFormatListToJson( - List? personsNameImagesImageTypeImageIndexGetFormat, + List? + personsNameImagesImageTypeImageIndexGetFormat, ) { if (personsNameImagesImageTypeImageIndexGetFormat == null) { return []; } - return personsNameImagesImageTypeImageIndexGetFormat.map((e) => e.value!).toList(); + return personsNameImagesImageTypeImageIndexGetFormat + .map((e) => e.value!) + .toList(); } -List personsNameImagesImageTypeImageIndexGetFormatListFromJson( +List +personsNameImagesImageTypeImageIndexGetFormatListFromJson( List? personsNameImagesImageTypeImageIndexGetFormat, [ List? defaultValue, ]) { @@ -65199,13 +69012,14 @@ List personsNameImagesImage return personsNameImagesImageTypeImageIndexGetFormat .map( - (e) => personsNameImagesImageTypeImageIndexGetFormatFromJson(e.toString()), + (e) => + personsNameImagesImageTypeImageIndexGetFormatFromJson(e.toString()), ) .toList(); } List? - personsNameImagesImageTypeImageIndexGetFormatNullableListFromJson( +personsNameImagesImageTypeImageIndexGetFormatNullableListFromJson( List? personsNameImagesImageTypeImageIndexGetFormat, [ List? defaultValue, ]) { @@ -65215,66 +69029,81 @@ List? return personsNameImagesImageTypeImageIndexGetFormat .map( - (e) => personsNameImagesImageTypeImageIndexGetFormatFromJson(e.toString()), + (e) => + personsNameImagesImageTypeImageIndexGetFormatFromJson(e.toString()), ) .toList(); } String? personsNameImagesImageTypeImageIndexHeadImageTypeNullableToJson( - enums.PersonsNameImagesImageTypeImageIndexHeadImageType? personsNameImagesImageTypeImageIndexHeadImageType, + enums.PersonsNameImagesImageTypeImageIndexHeadImageType? + personsNameImagesImageTypeImageIndexHeadImageType, ) { return personsNameImagesImageTypeImageIndexHeadImageType?.value; } String? personsNameImagesImageTypeImageIndexHeadImageTypeToJson( - enums.PersonsNameImagesImageTypeImageIndexHeadImageType personsNameImagesImageTypeImageIndexHeadImageType, + enums.PersonsNameImagesImageTypeImageIndexHeadImageType + personsNameImagesImageTypeImageIndexHeadImageType, ) { return personsNameImagesImageTypeImageIndexHeadImageType.value; } -enums.PersonsNameImagesImageTypeImageIndexHeadImageType personsNameImagesImageTypeImageIndexHeadImageTypeFromJson( +enums.PersonsNameImagesImageTypeImageIndexHeadImageType +personsNameImagesImageTypeImageIndexHeadImageTypeFromJson( Object? personsNameImagesImageTypeImageIndexHeadImageType, [ enums.PersonsNameImagesImageTypeImageIndexHeadImageType? defaultValue, ]) { - return enums.PersonsNameImagesImageTypeImageIndexHeadImageType.values.firstWhereOrNull( - (e) => e.value == personsNameImagesImageTypeImageIndexHeadImageType, - ) ?? + return enums.PersonsNameImagesImageTypeImageIndexHeadImageType.values + .firstWhereOrNull( + (e) => e.value == personsNameImagesImageTypeImageIndexHeadImageType, + ) ?? defaultValue ?? - enums.PersonsNameImagesImageTypeImageIndexHeadImageType.swaggerGeneratedUnknown; + enums + .PersonsNameImagesImageTypeImageIndexHeadImageType + .swaggerGeneratedUnknown; } enums.PersonsNameImagesImageTypeImageIndexHeadImageType? - personsNameImagesImageTypeImageIndexHeadImageTypeNullableFromJson( +personsNameImagesImageTypeImageIndexHeadImageTypeNullableFromJson( Object? personsNameImagesImageTypeImageIndexHeadImageType, [ enums.PersonsNameImagesImageTypeImageIndexHeadImageType? defaultValue, ]) { if (personsNameImagesImageTypeImageIndexHeadImageType == null) { return null; } - return enums.PersonsNameImagesImageTypeImageIndexHeadImageType.values.firstWhereOrNull( - (e) => e.value == personsNameImagesImageTypeImageIndexHeadImageType, - ) ?? + return enums.PersonsNameImagesImageTypeImageIndexHeadImageType.values + .firstWhereOrNull( + (e) => e.value == personsNameImagesImageTypeImageIndexHeadImageType, + ) ?? defaultValue; } String personsNameImagesImageTypeImageIndexHeadImageTypeExplodedListToJson( - List? personsNameImagesImageTypeImageIndexHeadImageType, + List? + personsNameImagesImageTypeImageIndexHeadImageType, ) { - return personsNameImagesImageTypeImageIndexHeadImageType?.map((e) => e.value!).join(',') ?? ''; + return personsNameImagesImageTypeImageIndexHeadImageType + ?.map((e) => e.value!) + .join(',') ?? + ''; } List personsNameImagesImageTypeImageIndexHeadImageTypeListToJson( - List? personsNameImagesImageTypeImageIndexHeadImageType, + List? + personsNameImagesImageTypeImageIndexHeadImageType, ) { if (personsNameImagesImageTypeImageIndexHeadImageType == null) { return []; } - return personsNameImagesImageTypeImageIndexHeadImageType.map((e) => e.value!).toList(); + return personsNameImagesImageTypeImageIndexHeadImageType + .map((e) => e.value!) + .toList(); } List - personsNameImagesImageTypeImageIndexHeadImageTypeListFromJson( +personsNameImagesImageTypeImageIndexHeadImageTypeListFromJson( List? personsNameImagesImageTypeImageIndexHeadImageType, [ List? defaultValue, ]) { @@ -65292,7 +69121,7 @@ List } List? - personsNameImagesImageTypeImageIndexHeadImageTypeNullableListFromJson( +personsNameImagesImageTypeImageIndexHeadImageTypeNullableListFromJson( List? personsNameImagesImageTypeImageIndexHeadImageType, [ List? defaultValue, ]) { @@ -65310,58 +69139,74 @@ List? } String? personsNameImagesImageTypeImageIndexHeadFormatNullableToJson( - enums.PersonsNameImagesImageTypeImageIndexHeadFormat? personsNameImagesImageTypeImageIndexHeadFormat, + enums.PersonsNameImagesImageTypeImageIndexHeadFormat? + personsNameImagesImageTypeImageIndexHeadFormat, ) { return personsNameImagesImageTypeImageIndexHeadFormat?.value; } String? personsNameImagesImageTypeImageIndexHeadFormatToJson( - enums.PersonsNameImagesImageTypeImageIndexHeadFormat personsNameImagesImageTypeImageIndexHeadFormat, + enums.PersonsNameImagesImageTypeImageIndexHeadFormat + personsNameImagesImageTypeImageIndexHeadFormat, ) { return personsNameImagesImageTypeImageIndexHeadFormat.value; } -enums.PersonsNameImagesImageTypeImageIndexHeadFormat personsNameImagesImageTypeImageIndexHeadFormatFromJson( +enums.PersonsNameImagesImageTypeImageIndexHeadFormat +personsNameImagesImageTypeImageIndexHeadFormatFromJson( Object? personsNameImagesImageTypeImageIndexHeadFormat, [ enums.PersonsNameImagesImageTypeImageIndexHeadFormat? defaultValue, ]) { - return enums.PersonsNameImagesImageTypeImageIndexHeadFormat.values.firstWhereOrNull( - (e) => e.value == personsNameImagesImageTypeImageIndexHeadFormat, - ) ?? + return enums.PersonsNameImagesImageTypeImageIndexHeadFormat.values + .firstWhereOrNull( + (e) => e.value == personsNameImagesImageTypeImageIndexHeadFormat, + ) ?? defaultValue ?? - enums.PersonsNameImagesImageTypeImageIndexHeadFormat.swaggerGeneratedUnknown; + enums + .PersonsNameImagesImageTypeImageIndexHeadFormat + .swaggerGeneratedUnknown; } -enums.PersonsNameImagesImageTypeImageIndexHeadFormat? personsNameImagesImageTypeImageIndexHeadFormatNullableFromJson( +enums.PersonsNameImagesImageTypeImageIndexHeadFormat? +personsNameImagesImageTypeImageIndexHeadFormatNullableFromJson( Object? personsNameImagesImageTypeImageIndexHeadFormat, [ enums.PersonsNameImagesImageTypeImageIndexHeadFormat? defaultValue, ]) { if (personsNameImagesImageTypeImageIndexHeadFormat == null) { return null; } - return enums.PersonsNameImagesImageTypeImageIndexHeadFormat.values.firstWhereOrNull( - (e) => e.value == personsNameImagesImageTypeImageIndexHeadFormat, - ) ?? + return enums.PersonsNameImagesImageTypeImageIndexHeadFormat.values + .firstWhereOrNull( + (e) => e.value == personsNameImagesImageTypeImageIndexHeadFormat, + ) ?? defaultValue; } String personsNameImagesImageTypeImageIndexHeadFormatExplodedListToJson( - List? personsNameImagesImageTypeImageIndexHeadFormat, + List? + personsNameImagesImageTypeImageIndexHeadFormat, ) { - return personsNameImagesImageTypeImageIndexHeadFormat?.map((e) => e.value!).join(',') ?? ''; + return personsNameImagesImageTypeImageIndexHeadFormat + ?.map((e) => e.value!) + .join(',') ?? + ''; } List personsNameImagesImageTypeImageIndexHeadFormatListToJson( - List? personsNameImagesImageTypeImageIndexHeadFormat, + List? + personsNameImagesImageTypeImageIndexHeadFormat, ) { if (personsNameImagesImageTypeImageIndexHeadFormat == null) { return []; } - return personsNameImagesImageTypeImageIndexHeadFormat.map((e) => e.value!).toList(); + return personsNameImagesImageTypeImageIndexHeadFormat + .map((e) => e.value!) + .toList(); } -List personsNameImagesImageTypeImageIndexHeadFormatListFromJson( +List +personsNameImagesImageTypeImageIndexHeadFormatListFromJson( List? personsNameImagesImageTypeImageIndexHeadFormat, [ List? defaultValue, ]) { @@ -65379,7 +69224,7 @@ List personsNameImagesImag } List? - personsNameImagesImageTypeImageIndexHeadFormatNullableListFromJson( +personsNameImagesImageTypeImageIndexHeadFormatNullableListFromJson( List? personsNameImagesImageTypeImageIndexHeadFormat, [ List? defaultValue, ]) { @@ -65397,18 +69242,21 @@ List? } String? studiosNameImagesImageTypeGetImageTypeNullableToJson( - enums.StudiosNameImagesImageTypeGetImageType? studiosNameImagesImageTypeGetImageType, + enums.StudiosNameImagesImageTypeGetImageType? + studiosNameImagesImageTypeGetImageType, ) { return studiosNameImagesImageTypeGetImageType?.value; } String? studiosNameImagesImageTypeGetImageTypeToJson( - enums.StudiosNameImagesImageTypeGetImageType studiosNameImagesImageTypeGetImageType, + enums.StudiosNameImagesImageTypeGetImageType + studiosNameImagesImageTypeGetImageType, ) { return studiosNameImagesImageTypeGetImageType.value; } -enums.StudiosNameImagesImageTypeGetImageType studiosNameImagesImageTypeGetImageTypeFromJson( +enums.StudiosNameImagesImageTypeGetImageType +studiosNameImagesImageTypeGetImageTypeFromJson( Object? studiosNameImagesImageTypeGetImageType, [ enums.StudiosNameImagesImageTypeGetImageType? defaultValue, ]) { @@ -65419,7 +69267,8 @@ enums.StudiosNameImagesImageTypeGetImageType studiosNameImagesImageTypeGetImageT enums.StudiosNameImagesImageTypeGetImageType.swaggerGeneratedUnknown; } -enums.StudiosNameImagesImageTypeGetImageType? studiosNameImagesImageTypeGetImageTypeNullableFromJson( +enums.StudiosNameImagesImageTypeGetImageType? +studiosNameImagesImageTypeGetImageTypeNullableFromJson( Object? studiosNameImagesImageTypeGetImageType, [ enums.StudiosNameImagesImageTypeGetImageType? defaultValue, ]) { @@ -65433,13 +69282,18 @@ enums.StudiosNameImagesImageTypeGetImageType? studiosNameImagesImageTypeGetImage } String studiosNameImagesImageTypeGetImageTypeExplodedListToJson( - List? studiosNameImagesImageTypeGetImageType, + List? + studiosNameImagesImageTypeGetImageType, ) { - return studiosNameImagesImageTypeGetImageType?.map((e) => e.value!).join(',') ?? ''; + return studiosNameImagesImageTypeGetImageType + ?.map((e) => e.value!) + .join(',') ?? + ''; } List studiosNameImagesImageTypeGetImageTypeListToJson( - List? studiosNameImagesImageTypeGetImageType, + List? + studiosNameImagesImageTypeGetImageType, ) { if (studiosNameImagesImageTypeGetImageType == null) { return []; @@ -65448,7 +69302,8 @@ List studiosNameImagesImageTypeGetImageTypeListToJson( return studiosNameImagesImageTypeGetImageType.map((e) => e.value!).toList(); } -List studiosNameImagesImageTypeGetImageTypeListFromJson( +List +studiosNameImagesImageTypeGetImageTypeListFromJson( List? studiosNameImagesImageTypeGetImageType, [ List? defaultValue, ]) { @@ -65461,7 +69316,8 @@ List studiosNameImagesImageTypeGet .toList(); } -List? studiosNameImagesImageTypeGetImageTypeNullableListFromJson( +List? +studiosNameImagesImageTypeGetImageTypeNullableListFromJson( List? studiosNameImagesImageTypeGetImageType, [ List? defaultValue, ]) { @@ -65475,7 +69331,8 @@ List? studiosNameImagesImageTypeGe } String? studiosNameImagesImageTypeGetFormatNullableToJson( - enums.StudiosNameImagesImageTypeGetFormat? studiosNameImagesImageTypeGetFormat, + enums.StudiosNameImagesImageTypeGetFormat? + studiosNameImagesImageTypeGetFormat, ) { return studiosNameImagesImageTypeGetFormat?.value; } @@ -65486,7 +69343,8 @@ String? studiosNameImagesImageTypeGetFormatToJson( return studiosNameImagesImageTypeGetFormat.value; } -enums.StudiosNameImagesImageTypeGetFormat studiosNameImagesImageTypeGetFormatFromJson( +enums.StudiosNameImagesImageTypeGetFormat +studiosNameImagesImageTypeGetFormatFromJson( Object? studiosNameImagesImageTypeGetFormat, [ enums.StudiosNameImagesImageTypeGetFormat? defaultValue, ]) { @@ -65497,7 +69355,8 @@ enums.StudiosNameImagesImageTypeGetFormat studiosNameImagesImageTypeGetFormatFro enums.StudiosNameImagesImageTypeGetFormat.swaggerGeneratedUnknown; } -enums.StudiosNameImagesImageTypeGetFormat? studiosNameImagesImageTypeGetFormatNullableFromJson( +enums.StudiosNameImagesImageTypeGetFormat? +studiosNameImagesImageTypeGetFormatNullableFromJson( Object? studiosNameImagesImageTypeGetFormat, [ enums.StudiosNameImagesImageTypeGetFormat? defaultValue, ]) { @@ -65511,13 +69370,16 @@ enums.StudiosNameImagesImageTypeGetFormat? studiosNameImagesImageTypeGetFormatNu } String studiosNameImagesImageTypeGetFormatExplodedListToJson( - List? studiosNameImagesImageTypeGetFormat, + List? + studiosNameImagesImageTypeGetFormat, ) { - return studiosNameImagesImageTypeGetFormat?.map((e) => e.value!).join(',') ?? ''; + return studiosNameImagesImageTypeGetFormat?.map((e) => e.value!).join(',') ?? + ''; } List studiosNameImagesImageTypeGetFormatListToJson( - List? studiosNameImagesImageTypeGetFormat, + List? + studiosNameImagesImageTypeGetFormat, ) { if (studiosNameImagesImageTypeGetFormat == null) { return []; @@ -65526,7 +69388,8 @@ List studiosNameImagesImageTypeGetFormatListToJson( return studiosNameImagesImageTypeGetFormat.map((e) => e.value!).toList(); } -List studiosNameImagesImageTypeGetFormatListFromJson( +List +studiosNameImagesImageTypeGetFormatListFromJson( List? studiosNameImagesImageTypeGetFormat, [ List? defaultValue, ]) { @@ -65539,7 +69402,8 @@ List studiosNameImagesImageTypeGetFor .toList(); } -List? studiosNameImagesImageTypeGetFormatNullableListFromJson( +List? +studiosNameImagesImageTypeGetFormatNullableListFromJson( List? studiosNameImagesImageTypeGetFormat, [ List? defaultValue, ]) { @@ -65553,18 +69417,21 @@ List? studiosNameImagesImageTypeGetFo } String? studiosNameImagesImageTypeHeadImageTypeNullableToJson( - enums.StudiosNameImagesImageTypeHeadImageType? studiosNameImagesImageTypeHeadImageType, + enums.StudiosNameImagesImageTypeHeadImageType? + studiosNameImagesImageTypeHeadImageType, ) { return studiosNameImagesImageTypeHeadImageType?.value; } String? studiosNameImagesImageTypeHeadImageTypeToJson( - enums.StudiosNameImagesImageTypeHeadImageType studiosNameImagesImageTypeHeadImageType, + enums.StudiosNameImagesImageTypeHeadImageType + studiosNameImagesImageTypeHeadImageType, ) { return studiosNameImagesImageTypeHeadImageType.value; } -enums.StudiosNameImagesImageTypeHeadImageType studiosNameImagesImageTypeHeadImageTypeFromJson( +enums.StudiosNameImagesImageTypeHeadImageType +studiosNameImagesImageTypeHeadImageTypeFromJson( Object? studiosNameImagesImageTypeHeadImageType, [ enums.StudiosNameImagesImageTypeHeadImageType? defaultValue, ]) { @@ -65575,7 +69442,8 @@ enums.StudiosNameImagesImageTypeHeadImageType studiosNameImagesImageTypeHeadImag enums.StudiosNameImagesImageTypeHeadImageType.swaggerGeneratedUnknown; } -enums.StudiosNameImagesImageTypeHeadImageType? studiosNameImagesImageTypeHeadImageTypeNullableFromJson( +enums.StudiosNameImagesImageTypeHeadImageType? +studiosNameImagesImageTypeHeadImageTypeNullableFromJson( Object? studiosNameImagesImageTypeHeadImageType, [ enums.StudiosNameImagesImageTypeHeadImageType? defaultValue, ]) { @@ -65589,13 +69457,18 @@ enums.StudiosNameImagesImageTypeHeadImageType? studiosNameImagesImageTypeHeadIma } String studiosNameImagesImageTypeHeadImageTypeExplodedListToJson( - List? studiosNameImagesImageTypeHeadImageType, + List? + studiosNameImagesImageTypeHeadImageType, ) { - return studiosNameImagesImageTypeHeadImageType?.map((e) => e.value!).join(',') ?? ''; + return studiosNameImagesImageTypeHeadImageType + ?.map((e) => e.value!) + .join(',') ?? + ''; } List studiosNameImagesImageTypeHeadImageTypeListToJson( - List? studiosNameImagesImageTypeHeadImageType, + List? + studiosNameImagesImageTypeHeadImageType, ) { if (studiosNameImagesImageTypeHeadImageType == null) { return []; @@ -65604,7 +69477,8 @@ List studiosNameImagesImageTypeHeadImageTypeListToJson( return studiosNameImagesImageTypeHeadImageType.map((e) => e.value!).toList(); } -List studiosNameImagesImageTypeHeadImageTypeListFromJson( +List +studiosNameImagesImageTypeHeadImageTypeListFromJson( List? studiosNameImagesImageTypeHeadImageType, [ List? defaultValue, ]) { @@ -65617,7 +69491,8 @@ List studiosNameImagesImageTypeHe .toList(); } -List? studiosNameImagesImageTypeHeadImageTypeNullableListFromJson( +List? +studiosNameImagesImageTypeHeadImageTypeNullableListFromJson( List? studiosNameImagesImageTypeHeadImageType, [ List? defaultValue, ]) { @@ -65631,18 +69506,21 @@ List? studiosNameImagesImageTypeH } String? studiosNameImagesImageTypeHeadFormatNullableToJson( - enums.StudiosNameImagesImageTypeHeadFormat? studiosNameImagesImageTypeHeadFormat, + enums.StudiosNameImagesImageTypeHeadFormat? + studiosNameImagesImageTypeHeadFormat, ) { return studiosNameImagesImageTypeHeadFormat?.value; } String? studiosNameImagesImageTypeHeadFormatToJson( - enums.StudiosNameImagesImageTypeHeadFormat studiosNameImagesImageTypeHeadFormat, + enums.StudiosNameImagesImageTypeHeadFormat + studiosNameImagesImageTypeHeadFormat, ) { return studiosNameImagesImageTypeHeadFormat.value; } -enums.StudiosNameImagesImageTypeHeadFormat studiosNameImagesImageTypeHeadFormatFromJson( +enums.StudiosNameImagesImageTypeHeadFormat +studiosNameImagesImageTypeHeadFormatFromJson( Object? studiosNameImagesImageTypeHeadFormat, [ enums.StudiosNameImagesImageTypeHeadFormat? defaultValue, ]) { @@ -65653,7 +69531,8 @@ enums.StudiosNameImagesImageTypeHeadFormat studiosNameImagesImageTypeHeadFormatF enums.StudiosNameImagesImageTypeHeadFormat.swaggerGeneratedUnknown; } -enums.StudiosNameImagesImageTypeHeadFormat? studiosNameImagesImageTypeHeadFormatNullableFromJson( +enums.StudiosNameImagesImageTypeHeadFormat? +studiosNameImagesImageTypeHeadFormatNullableFromJson( Object? studiosNameImagesImageTypeHeadFormat, [ enums.StudiosNameImagesImageTypeHeadFormat? defaultValue, ]) { @@ -65667,13 +69546,16 @@ enums.StudiosNameImagesImageTypeHeadFormat? studiosNameImagesImageTypeHeadFormat } String studiosNameImagesImageTypeHeadFormatExplodedListToJson( - List? studiosNameImagesImageTypeHeadFormat, + List? + studiosNameImagesImageTypeHeadFormat, ) { - return studiosNameImagesImageTypeHeadFormat?.map((e) => e.value!).join(',') ?? ''; + return studiosNameImagesImageTypeHeadFormat?.map((e) => e.value!).join(',') ?? + ''; } List studiosNameImagesImageTypeHeadFormatListToJson( - List? studiosNameImagesImageTypeHeadFormat, + List? + studiosNameImagesImageTypeHeadFormat, ) { if (studiosNameImagesImageTypeHeadFormat == null) { return []; @@ -65682,7 +69564,8 @@ List studiosNameImagesImageTypeHeadFormatListToJson( return studiosNameImagesImageTypeHeadFormat.map((e) => e.value!).toList(); } -List studiosNameImagesImageTypeHeadFormatListFromJson( +List +studiosNameImagesImageTypeHeadFormatListFromJson( List? studiosNameImagesImageTypeHeadFormat, [ List? defaultValue, ]) { @@ -65695,7 +69578,8 @@ List studiosNameImagesImageTypeHeadF .toList(); } -List? studiosNameImagesImageTypeHeadFormatNullableListFromJson( +List? +studiosNameImagesImageTypeHeadFormatNullableListFromJson( List? studiosNameImagesImageTypeHeadFormat, [ List? defaultValue, ]) { @@ -65709,60 +69593,74 @@ List? studiosNameImagesImageTypeHead } String? studiosNameImagesImageTypeImageIndexGetImageTypeNullableToJson( - enums.StudiosNameImagesImageTypeImageIndexGetImageType? studiosNameImagesImageTypeImageIndexGetImageType, + enums.StudiosNameImagesImageTypeImageIndexGetImageType? + studiosNameImagesImageTypeImageIndexGetImageType, ) { return studiosNameImagesImageTypeImageIndexGetImageType?.value; } String? studiosNameImagesImageTypeImageIndexGetImageTypeToJson( - enums.StudiosNameImagesImageTypeImageIndexGetImageType studiosNameImagesImageTypeImageIndexGetImageType, + enums.StudiosNameImagesImageTypeImageIndexGetImageType + studiosNameImagesImageTypeImageIndexGetImageType, ) { return studiosNameImagesImageTypeImageIndexGetImageType.value; } -enums.StudiosNameImagesImageTypeImageIndexGetImageType studiosNameImagesImageTypeImageIndexGetImageTypeFromJson( +enums.StudiosNameImagesImageTypeImageIndexGetImageType +studiosNameImagesImageTypeImageIndexGetImageTypeFromJson( Object? studiosNameImagesImageTypeImageIndexGetImageType, [ enums.StudiosNameImagesImageTypeImageIndexGetImageType? defaultValue, ]) { - return enums.StudiosNameImagesImageTypeImageIndexGetImageType.values.firstWhereOrNull( - (e) => e.value == studiosNameImagesImageTypeImageIndexGetImageType, - ) ?? + return enums.StudiosNameImagesImageTypeImageIndexGetImageType.values + .firstWhereOrNull( + (e) => e.value == studiosNameImagesImageTypeImageIndexGetImageType, + ) ?? defaultValue ?? - enums.StudiosNameImagesImageTypeImageIndexGetImageType.swaggerGeneratedUnknown; + enums + .StudiosNameImagesImageTypeImageIndexGetImageType + .swaggerGeneratedUnknown; } enums.StudiosNameImagesImageTypeImageIndexGetImageType? - studiosNameImagesImageTypeImageIndexGetImageTypeNullableFromJson( +studiosNameImagesImageTypeImageIndexGetImageTypeNullableFromJson( Object? studiosNameImagesImageTypeImageIndexGetImageType, [ enums.StudiosNameImagesImageTypeImageIndexGetImageType? defaultValue, ]) { if (studiosNameImagesImageTypeImageIndexGetImageType == null) { return null; } - return enums.StudiosNameImagesImageTypeImageIndexGetImageType.values.firstWhereOrNull( - (e) => e.value == studiosNameImagesImageTypeImageIndexGetImageType, - ) ?? + return enums.StudiosNameImagesImageTypeImageIndexGetImageType.values + .firstWhereOrNull( + (e) => e.value == studiosNameImagesImageTypeImageIndexGetImageType, + ) ?? defaultValue; } String studiosNameImagesImageTypeImageIndexGetImageTypeExplodedListToJson( - List? studiosNameImagesImageTypeImageIndexGetImageType, + List? + studiosNameImagesImageTypeImageIndexGetImageType, ) { - return studiosNameImagesImageTypeImageIndexGetImageType?.map((e) => e.value!).join(',') ?? ''; + return studiosNameImagesImageTypeImageIndexGetImageType + ?.map((e) => e.value!) + .join(',') ?? + ''; } List studiosNameImagesImageTypeImageIndexGetImageTypeListToJson( - List? studiosNameImagesImageTypeImageIndexGetImageType, + List? + studiosNameImagesImageTypeImageIndexGetImageType, ) { if (studiosNameImagesImageTypeImageIndexGetImageType == null) { return []; } - return studiosNameImagesImageTypeImageIndexGetImageType.map((e) => e.value!).toList(); + return studiosNameImagesImageTypeImageIndexGetImageType + .map((e) => e.value!) + .toList(); } List - studiosNameImagesImageTypeImageIndexGetImageTypeListFromJson( +studiosNameImagesImageTypeImageIndexGetImageTypeListFromJson( List? studiosNameImagesImageTypeImageIndexGetImageType, [ List? defaultValue, ]) { @@ -65780,7 +69678,7 @@ List } List? - studiosNameImagesImageTypeImageIndexGetImageTypeNullableListFromJson( +studiosNameImagesImageTypeImageIndexGetImageTypeNullableListFromJson( List? studiosNameImagesImageTypeImageIndexGetImageType, [ List? defaultValue, ]) { @@ -65798,58 +69696,74 @@ List? } String? studiosNameImagesImageTypeImageIndexGetFormatNullableToJson( - enums.StudiosNameImagesImageTypeImageIndexGetFormat? studiosNameImagesImageTypeImageIndexGetFormat, + enums.StudiosNameImagesImageTypeImageIndexGetFormat? + studiosNameImagesImageTypeImageIndexGetFormat, ) { return studiosNameImagesImageTypeImageIndexGetFormat?.value; } String? studiosNameImagesImageTypeImageIndexGetFormatToJson( - enums.StudiosNameImagesImageTypeImageIndexGetFormat studiosNameImagesImageTypeImageIndexGetFormat, + enums.StudiosNameImagesImageTypeImageIndexGetFormat + studiosNameImagesImageTypeImageIndexGetFormat, ) { return studiosNameImagesImageTypeImageIndexGetFormat.value; } -enums.StudiosNameImagesImageTypeImageIndexGetFormat studiosNameImagesImageTypeImageIndexGetFormatFromJson( +enums.StudiosNameImagesImageTypeImageIndexGetFormat +studiosNameImagesImageTypeImageIndexGetFormatFromJson( Object? studiosNameImagesImageTypeImageIndexGetFormat, [ enums.StudiosNameImagesImageTypeImageIndexGetFormat? defaultValue, ]) { - return enums.StudiosNameImagesImageTypeImageIndexGetFormat.values.firstWhereOrNull( - (e) => e.value == studiosNameImagesImageTypeImageIndexGetFormat, - ) ?? + return enums.StudiosNameImagesImageTypeImageIndexGetFormat.values + .firstWhereOrNull( + (e) => e.value == studiosNameImagesImageTypeImageIndexGetFormat, + ) ?? defaultValue ?? - enums.StudiosNameImagesImageTypeImageIndexGetFormat.swaggerGeneratedUnknown; + enums + .StudiosNameImagesImageTypeImageIndexGetFormat + .swaggerGeneratedUnknown; } -enums.StudiosNameImagesImageTypeImageIndexGetFormat? studiosNameImagesImageTypeImageIndexGetFormatNullableFromJson( +enums.StudiosNameImagesImageTypeImageIndexGetFormat? +studiosNameImagesImageTypeImageIndexGetFormatNullableFromJson( Object? studiosNameImagesImageTypeImageIndexGetFormat, [ enums.StudiosNameImagesImageTypeImageIndexGetFormat? defaultValue, ]) { if (studiosNameImagesImageTypeImageIndexGetFormat == null) { return null; } - return enums.StudiosNameImagesImageTypeImageIndexGetFormat.values.firstWhereOrNull( - (e) => e.value == studiosNameImagesImageTypeImageIndexGetFormat, - ) ?? + return enums.StudiosNameImagesImageTypeImageIndexGetFormat.values + .firstWhereOrNull( + (e) => e.value == studiosNameImagesImageTypeImageIndexGetFormat, + ) ?? defaultValue; } String studiosNameImagesImageTypeImageIndexGetFormatExplodedListToJson( - List? studiosNameImagesImageTypeImageIndexGetFormat, + List? + studiosNameImagesImageTypeImageIndexGetFormat, ) { - return studiosNameImagesImageTypeImageIndexGetFormat?.map((e) => e.value!).join(',') ?? ''; + return studiosNameImagesImageTypeImageIndexGetFormat + ?.map((e) => e.value!) + .join(',') ?? + ''; } List studiosNameImagesImageTypeImageIndexGetFormatListToJson( - List? studiosNameImagesImageTypeImageIndexGetFormat, + List? + studiosNameImagesImageTypeImageIndexGetFormat, ) { if (studiosNameImagesImageTypeImageIndexGetFormat == null) { return []; } - return studiosNameImagesImageTypeImageIndexGetFormat.map((e) => e.value!).toList(); + return studiosNameImagesImageTypeImageIndexGetFormat + .map((e) => e.value!) + .toList(); } -List studiosNameImagesImageTypeImageIndexGetFormatListFromJson( +List +studiosNameImagesImageTypeImageIndexGetFormatListFromJson( List? studiosNameImagesImageTypeImageIndexGetFormat, [ List? defaultValue, ]) { @@ -65859,13 +69773,14 @@ List studiosNameImagesImage return studiosNameImagesImageTypeImageIndexGetFormat .map( - (e) => studiosNameImagesImageTypeImageIndexGetFormatFromJson(e.toString()), + (e) => + studiosNameImagesImageTypeImageIndexGetFormatFromJson(e.toString()), ) .toList(); } List? - studiosNameImagesImageTypeImageIndexGetFormatNullableListFromJson( +studiosNameImagesImageTypeImageIndexGetFormatNullableListFromJson( List? studiosNameImagesImageTypeImageIndexGetFormat, [ List? defaultValue, ]) { @@ -65875,66 +69790,81 @@ List? return studiosNameImagesImageTypeImageIndexGetFormat .map( - (e) => studiosNameImagesImageTypeImageIndexGetFormatFromJson(e.toString()), + (e) => + studiosNameImagesImageTypeImageIndexGetFormatFromJson(e.toString()), ) .toList(); } String? studiosNameImagesImageTypeImageIndexHeadImageTypeNullableToJson( - enums.StudiosNameImagesImageTypeImageIndexHeadImageType? studiosNameImagesImageTypeImageIndexHeadImageType, + enums.StudiosNameImagesImageTypeImageIndexHeadImageType? + studiosNameImagesImageTypeImageIndexHeadImageType, ) { return studiosNameImagesImageTypeImageIndexHeadImageType?.value; } String? studiosNameImagesImageTypeImageIndexHeadImageTypeToJson( - enums.StudiosNameImagesImageTypeImageIndexHeadImageType studiosNameImagesImageTypeImageIndexHeadImageType, + enums.StudiosNameImagesImageTypeImageIndexHeadImageType + studiosNameImagesImageTypeImageIndexHeadImageType, ) { return studiosNameImagesImageTypeImageIndexHeadImageType.value; } -enums.StudiosNameImagesImageTypeImageIndexHeadImageType studiosNameImagesImageTypeImageIndexHeadImageTypeFromJson( +enums.StudiosNameImagesImageTypeImageIndexHeadImageType +studiosNameImagesImageTypeImageIndexHeadImageTypeFromJson( Object? studiosNameImagesImageTypeImageIndexHeadImageType, [ enums.StudiosNameImagesImageTypeImageIndexHeadImageType? defaultValue, ]) { - return enums.StudiosNameImagesImageTypeImageIndexHeadImageType.values.firstWhereOrNull( - (e) => e.value == studiosNameImagesImageTypeImageIndexHeadImageType, - ) ?? + return enums.StudiosNameImagesImageTypeImageIndexHeadImageType.values + .firstWhereOrNull( + (e) => e.value == studiosNameImagesImageTypeImageIndexHeadImageType, + ) ?? defaultValue ?? - enums.StudiosNameImagesImageTypeImageIndexHeadImageType.swaggerGeneratedUnknown; + enums + .StudiosNameImagesImageTypeImageIndexHeadImageType + .swaggerGeneratedUnknown; } enums.StudiosNameImagesImageTypeImageIndexHeadImageType? - studiosNameImagesImageTypeImageIndexHeadImageTypeNullableFromJson( +studiosNameImagesImageTypeImageIndexHeadImageTypeNullableFromJson( Object? studiosNameImagesImageTypeImageIndexHeadImageType, [ enums.StudiosNameImagesImageTypeImageIndexHeadImageType? defaultValue, ]) { if (studiosNameImagesImageTypeImageIndexHeadImageType == null) { return null; } - return enums.StudiosNameImagesImageTypeImageIndexHeadImageType.values.firstWhereOrNull( - (e) => e.value == studiosNameImagesImageTypeImageIndexHeadImageType, - ) ?? + return enums.StudiosNameImagesImageTypeImageIndexHeadImageType.values + .firstWhereOrNull( + (e) => e.value == studiosNameImagesImageTypeImageIndexHeadImageType, + ) ?? defaultValue; } String studiosNameImagesImageTypeImageIndexHeadImageTypeExplodedListToJson( - List? studiosNameImagesImageTypeImageIndexHeadImageType, + List? + studiosNameImagesImageTypeImageIndexHeadImageType, ) { - return studiosNameImagesImageTypeImageIndexHeadImageType?.map((e) => e.value!).join(',') ?? ''; + return studiosNameImagesImageTypeImageIndexHeadImageType + ?.map((e) => e.value!) + .join(',') ?? + ''; } List studiosNameImagesImageTypeImageIndexHeadImageTypeListToJson( - List? studiosNameImagesImageTypeImageIndexHeadImageType, + List? + studiosNameImagesImageTypeImageIndexHeadImageType, ) { if (studiosNameImagesImageTypeImageIndexHeadImageType == null) { return []; } - return studiosNameImagesImageTypeImageIndexHeadImageType.map((e) => e.value!).toList(); + return studiosNameImagesImageTypeImageIndexHeadImageType + .map((e) => e.value!) + .toList(); } List - studiosNameImagesImageTypeImageIndexHeadImageTypeListFromJson( +studiosNameImagesImageTypeImageIndexHeadImageTypeListFromJson( List? studiosNameImagesImageTypeImageIndexHeadImageType, [ List? defaultValue, ]) { @@ -65952,7 +69882,7 @@ List } List? - studiosNameImagesImageTypeImageIndexHeadImageTypeNullableListFromJson( +studiosNameImagesImageTypeImageIndexHeadImageTypeNullableListFromJson( List? studiosNameImagesImageTypeImageIndexHeadImageType, [ List? defaultValue, ]) { @@ -65970,58 +69900,74 @@ List? } String? studiosNameImagesImageTypeImageIndexHeadFormatNullableToJson( - enums.StudiosNameImagesImageTypeImageIndexHeadFormat? studiosNameImagesImageTypeImageIndexHeadFormat, + enums.StudiosNameImagesImageTypeImageIndexHeadFormat? + studiosNameImagesImageTypeImageIndexHeadFormat, ) { return studiosNameImagesImageTypeImageIndexHeadFormat?.value; } String? studiosNameImagesImageTypeImageIndexHeadFormatToJson( - enums.StudiosNameImagesImageTypeImageIndexHeadFormat studiosNameImagesImageTypeImageIndexHeadFormat, + enums.StudiosNameImagesImageTypeImageIndexHeadFormat + studiosNameImagesImageTypeImageIndexHeadFormat, ) { return studiosNameImagesImageTypeImageIndexHeadFormat.value; } -enums.StudiosNameImagesImageTypeImageIndexHeadFormat studiosNameImagesImageTypeImageIndexHeadFormatFromJson( +enums.StudiosNameImagesImageTypeImageIndexHeadFormat +studiosNameImagesImageTypeImageIndexHeadFormatFromJson( Object? studiosNameImagesImageTypeImageIndexHeadFormat, [ enums.StudiosNameImagesImageTypeImageIndexHeadFormat? defaultValue, ]) { - return enums.StudiosNameImagesImageTypeImageIndexHeadFormat.values.firstWhereOrNull( - (e) => e.value == studiosNameImagesImageTypeImageIndexHeadFormat, - ) ?? + return enums.StudiosNameImagesImageTypeImageIndexHeadFormat.values + .firstWhereOrNull( + (e) => e.value == studiosNameImagesImageTypeImageIndexHeadFormat, + ) ?? defaultValue ?? - enums.StudiosNameImagesImageTypeImageIndexHeadFormat.swaggerGeneratedUnknown; + enums + .StudiosNameImagesImageTypeImageIndexHeadFormat + .swaggerGeneratedUnknown; } -enums.StudiosNameImagesImageTypeImageIndexHeadFormat? studiosNameImagesImageTypeImageIndexHeadFormatNullableFromJson( +enums.StudiosNameImagesImageTypeImageIndexHeadFormat? +studiosNameImagesImageTypeImageIndexHeadFormatNullableFromJson( Object? studiosNameImagesImageTypeImageIndexHeadFormat, [ enums.StudiosNameImagesImageTypeImageIndexHeadFormat? defaultValue, ]) { if (studiosNameImagesImageTypeImageIndexHeadFormat == null) { return null; } - return enums.StudiosNameImagesImageTypeImageIndexHeadFormat.values.firstWhereOrNull( - (e) => e.value == studiosNameImagesImageTypeImageIndexHeadFormat, - ) ?? + return enums.StudiosNameImagesImageTypeImageIndexHeadFormat.values + .firstWhereOrNull( + (e) => e.value == studiosNameImagesImageTypeImageIndexHeadFormat, + ) ?? defaultValue; } String studiosNameImagesImageTypeImageIndexHeadFormatExplodedListToJson( - List? studiosNameImagesImageTypeImageIndexHeadFormat, + List? + studiosNameImagesImageTypeImageIndexHeadFormat, ) { - return studiosNameImagesImageTypeImageIndexHeadFormat?.map((e) => e.value!).join(',') ?? ''; + return studiosNameImagesImageTypeImageIndexHeadFormat + ?.map((e) => e.value!) + .join(',') ?? + ''; } List studiosNameImagesImageTypeImageIndexHeadFormatListToJson( - List? studiosNameImagesImageTypeImageIndexHeadFormat, + List? + studiosNameImagesImageTypeImageIndexHeadFormat, ) { if (studiosNameImagesImageTypeImageIndexHeadFormat == null) { return []; } - return studiosNameImagesImageTypeImageIndexHeadFormat.map((e) => e.value!).toList(); + return studiosNameImagesImageTypeImageIndexHeadFormat + .map((e) => e.value!) + .toList(); } -List studiosNameImagesImageTypeImageIndexHeadFormatListFromJson( +List +studiosNameImagesImageTypeImageIndexHeadFormatListFromJson( List? studiosNameImagesImageTypeImageIndexHeadFormat, [ List? defaultValue, ]) { @@ -66039,7 +69985,7 @@ List studiosNameImagesImag } List? - studiosNameImagesImageTypeImageIndexHeadFormatNullableListFromJson( +studiosNameImagesImageTypeImageIndexHeadFormatNullableListFromJson( List? studiosNameImagesImageTypeImageIndexHeadFormat, [ List? defaultValue, ]) { @@ -66114,7 +70060,9 @@ List userImageGetFormatListFromJson( return defaultValue ?? []; } - return userImageGetFormat.map((e) => userImageGetFormatFromJson(e.toString())).toList(); + return userImageGetFormat + .map((e) => userImageGetFormatFromJson(e.toString())) + .toList(); } List? userImageGetFormatNullableListFromJson( @@ -66125,7 +70073,9 @@ List? userImageGetFormatNullableListFromJson( return defaultValue; } - return userImageGetFormat.map((e) => userImageGetFormatFromJson(e.toString())).toList(); + return userImageGetFormat + .map((e) => userImageGetFormatFromJson(e.toString())) + .toList(); } String? userImageHeadFormatNullableToJson( @@ -66188,7 +70138,9 @@ List userImageHeadFormatListFromJson( return defaultValue ?? []; } - return userImageHeadFormat.map((e) => userImageHeadFormatFromJson(e.toString())).toList(); + return userImageHeadFormat + .map((e) => userImageHeadFormatFromJson(e.toString())) + .toList(); } List? userImageHeadFormatNullableListFromJson( @@ -66199,62 +70151,78 @@ List? userImageHeadFormatNullableListFromJson( return defaultValue; } - return userImageHeadFormat.map((e) => userImageHeadFormatFromJson(e.toString())).toList(); + return userImageHeadFormat + .map((e) => userImageHeadFormatFromJson(e.toString())) + .toList(); } String? itemsItemIdRefreshPostMetadataRefreshModeNullableToJson( - enums.ItemsItemIdRefreshPostMetadataRefreshMode? itemsItemIdRefreshPostMetadataRefreshMode, + enums.ItemsItemIdRefreshPostMetadataRefreshMode? + itemsItemIdRefreshPostMetadataRefreshMode, ) { return itemsItemIdRefreshPostMetadataRefreshMode?.value; } String? itemsItemIdRefreshPostMetadataRefreshModeToJson( - enums.ItemsItemIdRefreshPostMetadataRefreshMode itemsItemIdRefreshPostMetadataRefreshMode, + enums.ItemsItemIdRefreshPostMetadataRefreshMode + itemsItemIdRefreshPostMetadataRefreshMode, ) { return itemsItemIdRefreshPostMetadataRefreshMode.value; } -enums.ItemsItemIdRefreshPostMetadataRefreshMode itemsItemIdRefreshPostMetadataRefreshModeFromJson( +enums.ItemsItemIdRefreshPostMetadataRefreshMode +itemsItemIdRefreshPostMetadataRefreshModeFromJson( Object? itemsItemIdRefreshPostMetadataRefreshMode, [ enums.ItemsItemIdRefreshPostMetadataRefreshMode? defaultValue, ]) { - return enums.ItemsItemIdRefreshPostMetadataRefreshMode.values.firstWhereOrNull( - (e) => e.value == itemsItemIdRefreshPostMetadataRefreshMode, - ) ?? + return enums.ItemsItemIdRefreshPostMetadataRefreshMode.values + .firstWhereOrNull( + (e) => e.value == itemsItemIdRefreshPostMetadataRefreshMode, + ) ?? defaultValue ?? enums.ItemsItemIdRefreshPostMetadataRefreshMode.swaggerGeneratedUnknown; } -enums.ItemsItemIdRefreshPostMetadataRefreshMode? itemsItemIdRefreshPostMetadataRefreshModeNullableFromJson( +enums.ItemsItemIdRefreshPostMetadataRefreshMode? +itemsItemIdRefreshPostMetadataRefreshModeNullableFromJson( Object? itemsItemIdRefreshPostMetadataRefreshMode, [ enums.ItemsItemIdRefreshPostMetadataRefreshMode? defaultValue, ]) { if (itemsItemIdRefreshPostMetadataRefreshMode == null) { return null; } - return enums.ItemsItemIdRefreshPostMetadataRefreshMode.values.firstWhereOrNull( - (e) => e.value == itemsItemIdRefreshPostMetadataRefreshMode, - ) ?? + return enums.ItemsItemIdRefreshPostMetadataRefreshMode.values + .firstWhereOrNull( + (e) => e.value == itemsItemIdRefreshPostMetadataRefreshMode, + ) ?? defaultValue; } String itemsItemIdRefreshPostMetadataRefreshModeExplodedListToJson( - List? itemsItemIdRefreshPostMetadataRefreshMode, + List? + itemsItemIdRefreshPostMetadataRefreshMode, ) { - return itemsItemIdRefreshPostMetadataRefreshMode?.map((e) => e.value!).join(',') ?? ''; + return itemsItemIdRefreshPostMetadataRefreshMode + ?.map((e) => e.value!) + .join(',') ?? + ''; } List itemsItemIdRefreshPostMetadataRefreshModeListToJson( - List? itemsItemIdRefreshPostMetadataRefreshMode, + List? + itemsItemIdRefreshPostMetadataRefreshMode, ) { if (itemsItemIdRefreshPostMetadataRefreshMode == null) { return []; } - return itemsItemIdRefreshPostMetadataRefreshMode.map((e) => e.value!).toList(); + return itemsItemIdRefreshPostMetadataRefreshMode + .map((e) => e.value!) + .toList(); } -List itemsItemIdRefreshPostMetadataRefreshModeListFromJson( +List +itemsItemIdRefreshPostMetadataRefreshModeListFromJson( List? itemsItemIdRefreshPostMetadataRefreshMode, [ List? defaultValue, ]) { @@ -66269,7 +70237,8 @@ List itemsItemIdRefreshPostMeta .toList(); } -List? itemsItemIdRefreshPostMetadataRefreshModeNullableListFromJson( +List? +itemsItemIdRefreshPostMetadataRefreshModeNullableListFromJson( List? itemsItemIdRefreshPostMetadataRefreshMode, [ List? defaultValue, ]) { @@ -66285,18 +70254,21 @@ List? itemsItemIdRefreshPostMet } String? itemsItemIdRefreshPostImageRefreshModeNullableToJson( - enums.ItemsItemIdRefreshPostImageRefreshMode? itemsItemIdRefreshPostImageRefreshMode, + enums.ItemsItemIdRefreshPostImageRefreshMode? + itemsItemIdRefreshPostImageRefreshMode, ) { return itemsItemIdRefreshPostImageRefreshMode?.value; } String? itemsItemIdRefreshPostImageRefreshModeToJson( - enums.ItemsItemIdRefreshPostImageRefreshMode itemsItemIdRefreshPostImageRefreshMode, + enums.ItemsItemIdRefreshPostImageRefreshMode + itemsItemIdRefreshPostImageRefreshMode, ) { return itemsItemIdRefreshPostImageRefreshMode.value; } -enums.ItemsItemIdRefreshPostImageRefreshMode itemsItemIdRefreshPostImageRefreshModeFromJson( +enums.ItemsItemIdRefreshPostImageRefreshMode +itemsItemIdRefreshPostImageRefreshModeFromJson( Object? itemsItemIdRefreshPostImageRefreshMode, [ enums.ItemsItemIdRefreshPostImageRefreshMode? defaultValue, ]) { @@ -66307,7 +70279,8 @@ enums.ItemsItemIdRefreshPostImageRefreshMode itemsItemIdRefreshPostImageRefreshM enums.ItemsItemIdRefreshPostImageRefreshMode.swaggerGeneratedUnknown; } -enums.ItemsItemIdRefreshPostImageRefreshMode? itemsItemIdRefreshPostImageRefreshModeNullableFromJson( +enums.ItemsItemIdRefreshPostImageRefreshMode? +itemsItemIdRefreshPostImageRefreshModeNullableFromJson( Object? itemsItemIdRefreshPostImageRefreshMode, [ enums.ItemsItemIdRefreshPostImageRefreshMode? defaultValue, ]) { @@ -66321,13 +70294,18 @@ enums.ItemsItemIdRefreshPostImageRefreshMode? itemsItemIdRefreshPostImageRefresh } String itemsItemIdRefreshPostImageRefreshModeExplodedListToJson( - List? itemsItemIdRefreshPostImageRefreshMode, + List? + itemsItemIdRefreshPostImageRefreshMode, ) { - return itemsItemIdRefreshPostImageRefreshMode?.map((e) => e.value!).join(',') ?? ''; + return itemsItemIdRefreshPostImageRefreshMode + ?.map((e) => e.value!) + .join(',') ?? + ''; } List itemsItemIdRefreshPostImageRefreshModeListToJson( - List? itemsItemIdRefreshPostImageRefreshMode, + List? + itemsItemIdRefreshPostImageRefreshMode, ) { if (itemsItemIdRefreshPostImageRefreshMode == null) { return []; @@ -66336,7 +70314,8 @@ List itemsItemIdRefreshPostImageRefreshModeListToJson( return itemsItemIdRefreshPostImageRefreshMode.map((e) => e.value!).toList(); } -List itemsItemIdRefreshPostImageRefreshModeListFromJson( +List +itemsItemIdRefreshPostImageRefreshModeListFromJson( List? itemsItemIdRefreshPostImageRefreshMode, [ List? defaultValue, ]) { @@ -66349,7 +70328,8 @@ List itemsItemIdRefreshPostImageRe .toList(); } -List? itemsItemIdRefreshPostImageRefreshModeNullableListFromJson( +List? +itemsItemIdRefreshPostImageRefreshModeNullableListFromJson( List? itemsItemIdRefreshPostImageRefreshMode, [ List? defaultValue, ]) { @@ -66363,58 +70343,74 @@ List? itemsItemIdRefreshPostImageR } String? librariesAvailableOptionsGetLibraryContentTypeNullableToJson( - enums.LibrariesAvailableOptionsGetLibraryContentType? librariesAvailableOptionsGetLibraryContentType, + enums.LibrariesAvailableOptionsGetLibraryContentType? + librariesAvailableOptionsGetLibraryContentType, ) { return librariesAvailableOptionsGetLibraryContentType?.value; } String? librariesAvailableOptionsGetLibraryContentTypeToJson( - enums.LibrariesAvailableOptionsGetLibraryContentType librariesAvailableOptionsGetLibraryContentType, + enums.LibrariesAvailableOptionsGetLibraryContentType + librariesAvailableOptionsGetLibraryContentType, ) { return librariesAvailableOptionsGetLibraryContentType.value; } -enums.LibrariesAvailableOptionsGetLibraryContentType librariesAvailableOptionsGetLibraryContentTypeFromJson( +enums.LibrariesAvailableOptionsGetLibraryContentType +librariesAvailableOptionsGetLibraryContentTypeFromJson( Object? librariesAvailableOptionsGetLibraryContentType, [ enums.LibrariesAvailableOptionsGetLibraryContentType? defaultValue, ]) { - return enums.LibrariesAvailableOptionsGetLibraryContentType.values.firstWhereOrNull( - (e) => e.value == librariesAvailableOptionsGetLibraryContentType, - ) ?? + return enums.LibrariesAvailableOptionsGetLibraryContentType.values + .firstWhereOrNull( + (e) => e.value == librariesAvailableOptionsGetLibraryContentType, + ) ?? defaultValue ?? - enums.LibrariesAvailableOptionsGetLibraryContentType.swaggerGeneratedUnknown; + enums + .LibrariesAvailableOptionsGetLibraryContentType + .swaggerGeneratedUnknown; } -enums.LibrariesAvailableOptionsGetLibraryContentType? librariesAvailableOptionsGetLibraryContentTypeNullableFromJson( +enums.LibrariesAvailableOptionsGetLibraryContentType? +librariesAvailableOptionsGetLibraryContentTypeNullableFromJson( Object? librariesAvailableOptionsGetLibraryContentType, [ enums.LibrariesAvailableOptionsGetLibraryContentType? defaultValue, ]) { if (librariesAvailableOptionsGetLibraryContentType == null) { return null; } - return enums.LibrariesAvailableOptionsGetLibraryContentType.values.firstWhereOrNull( - (e) => e.value == librariesAvailableOptionsGetLibraryContentType, - ) ?? + return enums.LibrariesAvailableOptionsGetLibraryContentType.values + .firstWhereOrNull( + (e) => e.value == librariesAvailableOptionsGetLibraryContentType, + ) ?? defaultValue; } String librariesAvailableOptionsGetLibraryContentTypeExplodedListToJson( - List? librariesAvailableOptionsGetLibraryContentType, + List? + librariesAvailableOptionsGetLibraryContentType, ) { - return librariesAvailableOptionsGetLibraryContentType?.map((e) => e.value!).join(',') ?? ''; + return librariesAvailableOptionsGetLibraryContentType + ?.map((e) => e.value!) + .join(',') ?? + ''; } List librariesAvailableOptionsGetLibraryContentTypeListToJson( - List? librariesAvailableOptionsGetLibraryContentType, + List? + librariesAvailableOptionsGetLibraryContentType, ) { if (librariesAvailableOptionsGetLibraryContentType == null) { return []; } - return librariesAvailableOptionsGetLibraryContentType.map((e) => e.value!).toList(); + return librariesAvailableOptionsGetLibraryContentType + .map((e) => e.value!) + .toList(); } -List librariesAvailableOptionsGetLibraryContentTypeListFromJson( +List +librariesAvailableOptionsGetLibraryContentTypeListFromJson( List? librariesAvailableOptionsGetLibraryContentType, [ List? defaultValue, ]) { @@ -66432,7 +70428,7 @@ List librariesAvailableOpt } List? - librariesAvailableOptionsGetLibraryContentTypeNullableListFromJson( +librariesAvailableOptionsGetLibraryContentTypeNullableListFromJson( List? librariesAvailableOptionsGetLibraryContentType, [ List? defaultValue, ]) { @@ -66450,18 +70446,21 @@ List? } String? libraryVirtualFoldersPostCollectionTypeNullableToJson( - enums.LibraryVirtualFoldersPostCollectionType? libraryVirtualFoldersPostCollectionType, + enums.LibraryVirtualFoldersPostCollectionType? + libraryVirtualFoldersPostCollectionType, ) { return libraryVirtualFoldersPostCollectionType?.value; } String? libraryVirtualFoldersPostCollectionTypeToJson( - enums.LibraryVirtualFoldersPostCollectionType libraryVirtualFoldersPostCollectionType, + enums.LibraryVirtualFoldersPostCollectionType + libraryVirtualFoldersPostCollectionType, ) { return libraryVirtualFoldersPostCollectionType.value; } -enums.LibraryVirtualFoldersPostCollectionType libraryVirtualFoldersPostCollectionTypeFromJson( +enums.LibraryVirtualFoldersPostCollectionType +libraryVirtualFoldersPostCollectionTypeFromJson( Object? libraryVirtualFoldersPostCollectionType, [ enums.LibraryVirtualFoldersPostCollectionType? defaultValue, ]) { @@ -66472,7 +70471,8 @@ enums.LibraryVirtualFoldersPostCollectionType libraryVirtualFoldersPostCollectio enums.LibraryVirtualFoldersPostCollectionType.swaggerGeneratedUnknown; } -enums.LibraryVirtualFoldersPostCollectionType? libraryVirtualFoldersPostCollectionTypeNullableFromJson( +enums.LibraryVirtualFoldersPostCollectionType? +libraryVirtualFoldersPostCollectionTypeNullableFromJson( Object? libraryVirtualFoldersPostCollectionType, [ enums.LibraryVirtualFoldersPostCollectionType? defaultValue, ]) { @@ -66486,13 +70486,18 @@ enums.LibraryVirtualFoldersPostCollectionType? libraryVirtualFoldersPostCollecti } String libraryVirtualFoldersPostCollectionTypeExplodedListToJson( - List? libraryVirtualFoldersPostCollectionType, + List? + libraryVirtualFoldersPostCollectionType, ) { - return libraryVirtualFoldersPostCollectionType?.map((e) => e.value!).join(',') ?? ''; + return libraryVirtualFoldersPostCollectionType + ?.map((e) => e.value!) + .join(',') ?? + ''; } List libraryVirtualFoldersPostCollectionTypeListToJson( - List? libraryVirtualFoldersPostCollectionType, + List? + libraryVirtualFoldersPostCollectionType, ) { if (libraryVirtualFoldersPostCollectionType == null) { return []; @@ -66501,7 +70506,8 @@ List libraryVirtualFoldersPostCollectionTypeListToJson( return libraryVirtualFoldersPostCollectionType.map((e) => e.value!).toList(); } -List libraryVirtualFoldersPostCollectionTypeListFromJson( +List +libraryVirtualFoldersPostCollectionTypeListFromJson( List? libraryVirtualFoldersPostCollectionType, [ List? defaultValue, ]) { @@ -66514,7 +70520,8 @@ List libraryVirtualFoldersPostCol .toList(); } -List? libraryVirtualFoldersPostCollectionTypeNullableListFromJson( +List? +libraryVirtualFoldersPostCollectionTypeNullableListFromJson( List? libraryVirtualFoldersPostCollectionType, [ List? defaultValue, ]) { @@ -66587,7 +70594,9 @@ List liveTvChannelsGetTypeListFromJson( return defaultValue ?? []; } - return liveTvChannelsGetType.map((e) => liveTvChannelsGetTypeFromJson(e.toString())).toList(); + return liveTvChannelsGetType + .map((e) => liveTvChannelsGetTypeFromJson(e.toString())) + .toList(); } List? liveTvChannelsGetTypeNullableListFromJson( @@ -66598,7 +70607,9 @@ List? liveTvChannelsGetTypeNullableListFromJson( return defaultValue; } - return liveTvChannelsGetType.map((e) => liveTvChannelsGetTypeFromJson(e.toString())).toList(); + return liveTvChannelsGetType + .map((e) => liveTvChannelsGetTypeFromJson(e.toString())) + .toList(); } String? liveTvChannelsGetSortOrderNullableToJson( @@ -66661,10 +70672,13 @@ List liveTvChannelsGetSortOrderListFromJson( return defaultValue ?? []; } - return liveTvChannelsGetSortOrder.map((e) => liveTvChannelsGetSortOrderFromJson(e.toString())).toList(); + return liveTvChannelsGetSortOrder + .map((e) => liveTvChannelsGetSortOrderFromJson(e.toString())) + .toList(); } -List? liveTvChannelsGetSortOrderNullableListFromJson( +List? +liveTvChannelsGetSortOrderNullableListFromJson( List? liveTvChannelsGetSortOrder, [ List? defaultValue, ]) { @@ -66672,7 +70686,9 @@ List? liveTvChannelsGetSortOrderNullableListFr return defaultValue; } - return liveTvChannelsGetSortOrder.map((e) => liveTvChannelsGetSortOrderFromJson(e.toString())).toList(); + return liveTvChannelsGetSortOrder + .map((e) => liveTvChannelsGetSortOrderFromJson(e.toString())) + .toList(); } String? liveTvRecordingsGetStatusNullableToJson( @@ -66735,10 +70751,13 @@ List liveTvRecordingsGetStatusListFromJson( return defaultValue ?? []; } - return liveTvRecordingsGetStatus.map((e) => liveTvRecordingsGetStatusFromJson(e.toString())).toList(); + return liveTvRecordingsGetStatus + .map((e) => liveTvRecordingsGetStatusFromJson(e.toString())) + .toList(); } -List? liveTvRecordingsGetStatusNullableListFromJson( +List? +liveTvRecordingsGetStatusNullableListFromJson( List? liveTvRecordingsGetStatus, [ List? defaultValue, ]) { @@ -66746,7 +70765,9 @@ List? liveTvRecordingsGetStatusNullableListFrom return defaultValue; } - return liveTvRecordingsGetStatus.map((e) => liveTvRecordingsGetStatusFromJson(e.toString())).toList(); + return liveTvRecordingsGetStatus + .map((e) => liveTvRecordingsGetStatusFromJson(e.toString())) + .toList(); } String? liveTvRecordingsSeriesGetStatusNullableToJson( @@ -66772,7 +70793,8 @@ enums.LiveTvRecordingsSeriesGetStatus liveTvRecordingsSeriesGetStatusFromJson( enums.LiveTvRecordingsSeriesGetStatus.swaggerGeneratedUnknown; } -enums.LiveTvRecordingsSeriesGetStatus? liveTvRecordingsSeriesGetStatusNullableFromJson( +enums.LiveTvRecordingsSeriesGetStatus? +liveTvRecordingsSeriesGetStatusNullableFromJson( Object? liveTvRecordingsSeriesGetStatus, [ enums.LiveTvRecordingsSeriesGetStatus? defaultValue, ]) { @@ -66801,7 +70823,8 @@ List liveTvRecordingsSeriesGetStatusListToJson( return liveTvRecordingsSeriesGetStatus.map((e) => e.value!).toList(); } -List liveTvRecordingsSeriesGetStatusListFromJson( +List +liveTvRecordingsSeriesGetStatusListFromJson( List? liveTvRecordingsSeriesGetStatus, [ List? defaultValue, ]) { @@ -66809,10 +70832,13 @@ List liveTvRecordingsSeriesGetStatusListF return defaultValue ?? []; } - return liveTvRecordingsSeriesGetStatus.map((e) => liveTvRecordingsSeriesGetStatusFromJson(e.toString())).toList(); + return liveTvRecordingsSeriesGetStatus + .map((e) => liveTvRecordingsSeriesGetStatusFromJson(e.toString())) + .toList(); } -List? liveTvRecordingsSeriesGetStatusNullableListFromJson( +List? +liveTvRecordingsSeriesGetStatusNullableListFromJson( List? liveTvRecordingsSeriesGetStatus, [ List? defaultValue, ]) { @@ -66820,7 +70846,9 @@ List? liveTvRecordingsSeriesGetStatusNull return defaultValue; } - return liveTvRecordingsSeriesGetStatus.map((e) => liveTvRecordingsSeriesGetStatusFromJson(e.toString())).toList(); + return liveTvRecordingsSeriesGetStatus + .map((e) => liveTvRecordingsSeriesGetStatusFromJson(e.toString())) + .toList(); } String? liveTvSeriesTimersGetSortOrderNullableToJson( @@ -66846,7 +70874,8 @@ enums.LiveTvSeriesTimersGetSortOrder liveTvSeriesTimersGetSortOrderFromJson( enums.LiveTvSeriesTimersGetSortOrder.swaggerGeneratedUnknown; } -enums.LiveTvSeriesTimersGetSortOrder? liveTvSeriesTimersGetSortOrderNullableFromJson( +enums.LiveTvSeriesTimersGetSortOrder? +liveTvSeriesTimersGetSortOrderNullableFromJson( Object? liveTvSeriesTimersGetSortOrder, [ enums.LiveTvSeriesTimersGetSortOrder? defaultValue, ]) { @@ -66875,7 +70904,8 @@ List liveTvSeriesTimersGetSortOrderListToJson( return liveTvSeriesTimersGetSortOrder.map((e) => e.value!).toList(); } -List liveTvSeriesTimersGetSortOrderListFromJson( +List +liveTvSeriesTimersGetSortOrderListFromJson( List? liveTvSeriesTimersGetSortOrder, [ List? defaultValue, ]) { @@ -66883,10 +70913,13 @@ List liveTvSeriesTimersGetSortOrderListFro return defaultValue ?? []; } - return liveTvSeriesTimersGetSortOrder.map((e) => liveTvSeriesTimersGetSortOrderFromJson(e.toString())).toList(); + return liveTvSeriesTimersGetSortOrder + .map((e) => liveTvSeriesTimersGetSortOrderFromJson(e.toString())) + .toList(); } -List? liveTvSeriesTimersGetSortOrderNullableListFromJson( +List? +liveTvSeriesTimersGetSortOrderNullableListFromJson( List? liveTvSeriesTimersGetSortOrder, [ List? defaultValue, ]) { @@ -66894,7 +70927,9 @@ List? liveTvSeriesTimersGetSortOrderNullab return defaultValue; } - return liveTvSeriesTimersGetSortOrder.map((e) => liveTvSeriesTimersGetSortOrderFromJson(e.toString())).toList(); + return liveTvSeriesTimersGetSortOrder + .map((e) => liveTvSeriesTimersGetSortOrderFromJson(e.toString())) + .toList(); } String? playlistsPostMediaTypeNullableToJson( @@ -66957,7 +70992,9 @@ List playlistsPostMediaTypeListFromJson( return defaultValue ?? []; } - return playlistsPostMediaType.map((e) => playlistsPostMediaTypeFromJson(e.toString())).toList(); + return playlistsPostMediaType + .map((e) => playlistsPostMediaTypeFromJson(e.toString())) + .toList(); } List? playlistsPostMediaTypeNullableListFromJson( @@ -66968,7 +71005,9 @@ List? playlistsPostMediaTypeNullableListFromJson( return defaultValue; } - return playlistsPostMediaType.map((e) => playlistsPostMediaTypeFromJson(e.toString())).toList(); + return playlistsPostMediaType + .map((e) => playlistsPostMediaTypeFromJson(e.toString())) + .toList(); } String? playingItemsItemIdPostPlayMethodNullableToJson( @@ -66994,7 +71033,8 @@ enums.PlayingItemsItemIdPostPlayMethod playingItemsItemIdPostPlayMethodFromJson( enums.PlayingItemsItemIdPostPlayMethod.swaggerGeneratedUnknown; } -enums.PlayingItemsItemIdPostPlayMethod? playingItemsItemIdPostPlayMethodNullableFromJson( +enums.PlayingItemsItemIdPostPlayMethod? +playingItemsItemIdPostPlayMethodNullableFromJson( Object? playingItemsItemIdPostPlayMethod, [ enums.PlayingItemsItemIdPostPlayMethod? defaultValue, ]) { @@ -67008,13 +71048,15 @@ enums.PlayingItemsItemIdPostPlayMethod? playingItemsItemIdPostPlayMethodNullable } String playingItemsItemIdPostPlayMethodExplodedListToJson( - List? playingItemsItemIdPostPlayMethod, + List? + playingItemsItemIdPostPlayMethod, ) { return playingItemsItemIdPostPlayMethod?.map((e) => e.value!).join(',') ?? ''; } List playingItemsItemIdPostPlayMethodListToJson( - List? playingItemsItemIdPostPlayMethod, + List? + playingItemsItemIdPostPlayMethod, ) { if (playingItemsItemIdPostPlayMethod == null) { return []; @@ -67023,7 +71065,8 @@ List playingItemsItemIdPostPlayMethodListToJson( return playingItemsItemIdPostPlayMethod.map((e) => e.value!).toList(); } -List playingItemsItemIdPostPlayMethodListFromJson( +List +playingItemsItemIdPostPlayMethodListFromJson( List? playingItemsItemIdPostPlayMethod, [ List? defaultValue, ]) { @@ -67031,10 +71074,13 @@ List playingItemsItemIdPostPlayMethodLis return defaultValue ?? []; } - return playingItemsItemIdPostPlayMethod.map((e) => playingItemsItemIdPostPlayMethodFromJson(e.toString())).toList(); + return playingItemsItemIdPostPlayMethod + .map((e) => playingItemsItemIdPostPlayMethodFromJson(e.toString())) + .toList(); } -List? playingItemsItemIdPostPlayMethodNullableListFromJson( +List? +playingItemsItemIdPostPlayMethodNullableListFromJson( List? playingItemsItemIdPostPlayMethod, [ List? defaultValue, ]) { @@ -67042,22 +71088,27 @@ List? playingItemsItemIdPostPlayMethodNu return defaultValue; } - return playingItemsItemIdPostPlayMethod.map((e) => playingItemsItemIdPostPlayMethodFromJson(e.toString())).toList(); + return playingItemsItemIdPostPlayMethod + .map((e) => playingItemsItemIdPostPlayMethodFromJson(e.toString())) + .toList(); } String? playingItemsItemIdProgressPostPlayMethodNullableToJson( - enums.PlayingItemsItemIdProgressPostPlayMethod? playingItemsItemIdProgressPostPlayMethod, + enums.PlayingItemsItemIdProgressPostPlayMethod? + playingItemsItemIdProgressPostPlayMethod, ) { return playingItemsItemIdProgressPostPlayMethod?.value; } String? playingItemsItemIdProgressPostPlayMethodToJson( - enums.PlayingItemsItemIdProgressPostPlayMethod playingItemsItemIdProgressPostPlayMethod, + enums.PlayingItemsItemIdProgressPostPlayMethod + playingItemsItemIdProgressPostPlayMethod, ) { return playingItemsItemIdProgressPostPlayMethod.value; } -enums.PlayingItemsItemIdProgressPostPlayMethod playingItemsItemIdProgressPostPlayMethodFromJson( +enums.PlayingItemsItemIdProgressPostPlayMethod +playingItemsItemIdProgressPostPlayMethodFromJson( Object? playingItemsItemIdProgressPostPlayMethod, [ enums.PlayingItemsItemIdProgressPostPlayMethod? defaultValue, ]) { @@ -67068,7 +71119,8 @@ enums.PlayingItemsItemIdProgressPostPlayMethod playingItemsItemIdProgressPostPla enums.PlayingItemsItemIdProgressPostPlayMethod.swaggerGeneratedUnknown; } -enums.PlayingItemsItemIdProgressPostPlayMethod? playingItemsItemIdProgressPostPlayMethodNullableFromJson( +enums.PlayingItemsItemIdProgressPostPlayMethod? +playingItemsItemIdProgressPostPlayMethodNullableFromJson( Object? playingItemsItemIdProgressPostPlayMethod, [ enums.PlayingItemsItemIdProgressPostPlayMethod? defaultValue, ]) { @@ -67082,13 +71134,18 @@ enums.PlayingItemsItemIdProgressPostPlayMethod? playingItemsItemIdProgressPostPl } String playingItemsItemIdProgressPostPlayMethodExplodedListToJson( - List? playingItemsItemIdProgressPostPlayMethod, + List? + playingItemsItemIdProgressPostPlayMethod, ) { - return playingItemsItemIdProgressPostPlayMethod?.map((e) => e.value!).join(',') ?? ''; + return playingItemsItemIdProgressPostPlayMethod + ?.map((e) => e.value!) + .join(',') ?? + ''; } List playingItemsItemIdProgressPostPlayMethodListToJson( - List? playingItemsItemIdProgressPostPlayMethod, + List? + playingItemsItemIdProgressPostPlayMethod, ) { if (playingItemsItemIdProgressPostPlayMethod == null) { return []; @@ -67097,7 +71154,8 @@ List playingItemsItemIdProgressPostPlayMethodListToJson( return playingItemsItemIdProgressPostPlayMethod.map((e) => e.value!).toList(); } -List playingItemsItemIdProgressPostPlayMethodListFromJson( +List +playingItemsItemIdProgressPostPlayMethodListFromJson( List? playingItemsItemIdProgressPostPlayMethod, [ List? defaultValue, ]) { @@ -67112,7 +71170,8 @@ List playingItemsItemIdProgressP .toList(); } -List? playingItemsItemIdProgressPostPlayMethodNullableListFromJson( +List? +playingItemsItemIdProgressPostPlayMethodNullableListFromJson( List? playingItemsItemIdProgressPostPlayMethod, [ List? defaultValue, ]) { @@ -67128,18 +71187,21 @@ List? playingItemsItemIdProgress } String? playingItemsItemIdProgressPostRepeatModeNullableToJson( - enums.PlayingItemsItemIdProgressPostRepeatMode? playingItemsItemIdProgressPostRepeatMode, + enums.PlayingItemsItemIdProgressPostRepeatMode? + playingItemsItemIdProgressPostRepeatMode, ) { return playingItemsItemIdProgressPostRepeatMode?.value; } String? playingItemsItemIdProgressPostRepeatModeToJson( - enums.PlayingItemsItemIdProgressPostRepeatMode playingItemsItemIdProgressPostRepeatMode, + enums.PlayingItemsItemIdProgressPostRepeatMode + playingItemsItemIdProgressPostRepeatMode, ) { return playingItemsItemIdProgressPostRepeatMode.value; } -enums.PlayingItemsItemIdProgressPostRepeatMode playingItemsItemIdProgressPostRepeatModeFromJson( +enums.PlayingItemsItemIdProgressPostRepeatMode +playingItemsItemIdProgressPostRepeatModeFromJson( Object? playingItemsItemIdProgressPostRepeatMode, [ enums.PlayingItemsItemIdProgressPostRepeatMode? defaultValue, ]) { @@ -67150,7 +71212,8 @@ enums.PlayingItemsItemIdProgressPostRepeatMode playingItemsItemIdProgressPostRep enums.PlayingItemsItemIdProgressPostRepeatMode.swaggerGeneratedUnknown; } -enums.PlayingItemsItemIdProgressPostRepeatMode? playingItemsItemIdProgressPostRepeatModeNullableFromJson( +enums.PlayingItemsItemIdProgressPostRepeatMode? +playingItemsItemIdProgressPostRepeatModeNullableFromJson( Object? playingItemsItemIdProgressPostRepeatMode, [ enums.PlayingItemsItemIdProgressPostRepeatMode? defaultValue, ]) { @@ -67164,13 +71227,18 @@ enums.PlayingItemsItemIdProgressPostRepeatMode? playingItemsItemIdProgressPostRe } String playingItemsItemIdProgressPostRepeatModeExplodedListToJson( - List? playingItemsItemIdProgressPostRepeatMode, + List? + playingItemsItemIdProgressPostRepeatMode, ) { - return playingItemsItemIdProgressPostRepeatMode?.map((e) => e.value!).join(',') ?? ''; + return playingItemsItemIdProgressPostRepeatMode + ?.map((e) => e.value!) + .join(',') ?? + ''; } List playingItemsItemIdProgressPostRepeatModeListToJson( - List? playingItemsItemIdProgressPostRepeatMode, + List? + playingItemsItemIdProgressPostRepeatMode, ) { if (playingItemsItemIdProgressPostRepeatMode == null) { return []; @@ -67179,7 +71247,8 @@ List playingItemsItemIdProgressPostRepeatModeListToJson( return playingItemsItemIdProgressPostRepeatMode.map((e) => e.value!).toList(); } -List playingItemsItemIdProgressPostRepeatModeListFromJson( +List +playingItemsItemIdProgressPostRepeatModeListFromJson( List? playingItemsItemIdProgressPostRepeatMode, [ List? defaultValue, ]) { @@ -67194,7 +71263,8 @@ List playingItemsItemIdProgressP .toList(); } -List? playingItemsItemIdProgressPostRepeatModeNullableListFromJson( +List? +playingItemsItemIdProgressPostRepeatModeNullableListFromJson( List? playingItemsItemIdProgressPostRepeatMode, [ List? defaultValue, ]) { @@ -67232,7 +71302,8 @@ enums.ItemsItemIdRemoteImagesGetType itemsItemIdRemoteImagesGetTypeFromJson( enums.ItemsItemIdRemoteImagesGetType.swaggerGeneratedUnknown; } -enums.ItemsItemIdRemoteImagesGetType? itemsItemIdRemoteImagesGetTypeNullableFromJson( +enums.ItemsItemIdRemoteImagesGetType? +itemsItemIdRemoteImagesGetTypeNullableFromJson( Object? itemsItemIdRemoteImagesGetType, [ enums.ItemsItemIdRemoteImagesGetType? defaultValue, ]) { @@ -67261,7 +71332,8 @@ List itemsItemIdRemoteImagesGetTypeListToJson( return itemsItemIdRemoteImagesGetType.map((e) => e.value!).toList(); } -List itemsItemIdRemoteImagesGetTypeListFromJson( +List +itemsItemIdRemoteImagesGetTypeListFromJson( List? itemsItemIdRemoteImagesGetType, [ List? defaultValue, ]) { @@ -67269,10 +71341,13 @@ List itemsItemIdRemoteImagesGetTypeListFro return defaultValue ?? []; } - return itemsItemIdRemoteImagesGetType.map((e) => itemsItemIdRemoteImagesGetTypeFromJson(e.toString())).toList(); + return itemsItemIdRemoteImagesGetType + .map((e) => itemsItemIdRemoteImagesGetTypeFromJson(e.toString())) + .toList(); } -List? itemsItemIdRemoteImagesGetTypeNullableListFromJson( +List? +itemsItemIdRemoteImagesGetTypeNullableListFromJson( List? itemsItemIdRemoteImagesGetType, [ List? defaultValue, ]) { @@ -67280,22 +71355,27 @@ List? itemsItemIdRemoteImagesGetTypeNullab return defaultValue; } - return itemsItemIdRemoteImagesGetType.map((e) => itemsItemIdRemoteImagesGetTypeFromJson(e.toString())).toList(); + return itemsItemIdRemoteImagesGetType + .map((e) => itemsItemIdRemoteImagesGetTypeFromJson(e.toString())) + .toList(); } String? itemsItemIdRemoteImagesDownloadPostTypeNullableToJson( - enums.ItemsItemIdRemoteImagesDownloadPostType? itemsItemIdRemoteImagesDownloadPostType, + enums.ItemsItemIdRemoteImagesDownloadPostType? + itemsItemIdRemoteImagesDownloadPostType, ) { return itemsItemIdRemoteImagesDownloadPostType?.value; } String? itemsItemIdRemoteImagesDownloadPostTypeToJson( - enums.ItemsItemIdRemoteImagesDownloadPostType itemsItemIdRemoteImagesDownloadPostType, + enums.ItemsItemIdRemoteImagesDownloadPostType + itemsItemIdRemoteImagesDownloadPostType, ) { return itemsItemIdRemoteImagesDownloadPostType.value; } -enums.ItemsItemIdRemoteImagesDownloadPostType itemsItemIdRemoteImagesDownloadPostTypeFromJson( +enums.ItemsItemIdRemoteImagesDownloadPostType +itemsItemIdRemoteImagesDownloadPostTypeFromJson( Object? itemsItemIdRemoteImagesDownloadPostType, [ enums.ItemsItemIdRemoteImagesDownloadPostType? defaultValue, ]) { @@ -67306,7 +71386,8 @@ enums.ItemsItemIdRemoteImagesDownloadPostType itemsItemIdRemoteImagesDownloadPos enums.ItemsItemIdRemoteImagesDownloadPostType.swaggerGeneratedUnknown; } -enums.ItemsItemIdRemoteImagesDownloadPostType? itemsItemIdRemoteImagesDownloadPostTypeNullableFromJson( +enums.ItemsItemIdRemoteImagesDownloadPostType? +itemsItemIdRemoteImagesDownloadPostTypeNullableFromJson( Object? itemsItemIdRemoteImagesDownloadPostType, [ enums.ItemsItemIdRemoteImagesDownloadPostType? defaultValue, ]) { @@ -67320,13 +71401,18 @@ enums.ItemsItemIdRemoteImagesDownloadPostType? itemsItemIdRemoteImagesDownloadPo } String itemsItemIdRemoteImagesDownloadPostTypeExplodedListToJson( - List? itemsItemIdRemoteImagesDownloadPostType, + List? + itemsItemIdRemoteImagesDownloadPostType, ) { - return itemsItemIdRemoteImagesDownloadPostType?.map((e) => e.value!).join(',') ?? ''; + return itemsItemIdRemoteImagesDownloadPostType + ?.map((e) => e.value!) + .join(',') ?? + ''; } List itemsItemIdRemoteImagesDownloadPostTypeListToJson( - List? itemsItemIdRemoteImagesDownloadPostType, + List? + itemsItemIdRemoteImagesDownloadPostType, ) { if (itemsItemIdRemoteImagesDownloadPostType == null) { return []; @@ -67335,7 +71421,8 @@ List itemsItemIdRemoteImagesDownloadPostTypeListToJson( return itemsItemIdRemoteImagesDownloadPostType.map((e) => e.value!).toList(); } -List itemsItemIdRemoteImagesDownloadPostTypeListFromJson( +List +itemsItemIdRemoteImagesDownloadPostTypeListFromJson( List? itemsItemIdRemoteImagesDownloadPostType, [ List? defaultValue, ]) { @@ -67348,7 +71435,8 @@ List itemsItemIdRemoteImagesDownl .toList(); } -List? itemsItemIdRemoteImagesDownloadPostTypeNullableListFromJson( +List? +itemsItemIdRemoteImagesDownloadPostTypeNullableListFromJson( List? itemsItemIdRemoteImagesDownloadPostType, [ List? defaultValue, ]) { @@ -67362,58 +71450,72 @@ List? itemsItemIdRemoteImagesDown } String? sessionsSessionIdCommandCommandPostCommandNullableToJson( - enums.SessionsSessionIdCommandCommandPostCommand? sessionsSessionIdCommandCommandPostCommand, + enums.SessionsSessionIdCommandCommandPostCommand? + sessionsSessionIdCommandCommandPostCommand, ) { return sessionsSessionIdCommandCommandPostCommand?.value; } String? sessionsSessionIdCommandCommandPostCommandToJson( - enums.SessionsSessionIdCommandCommandPostCommand sessionsSessionIdCommandCommandPostCommand, + enums.SessionsSessionIdCommandCommandPostCommand + sessionsSessionIdCommandCommandPostCommand, ) { return sessionsSessionIdCommandCommandPostCommand.value; } -enums.SessionsSessionIdCommandCommandPostCommand sessionsSessionIdCommandCommandPostCommandFromJson( +enums.SessionsSessionIdCommandCommandPostCommand +sessionsSessionIdCommandCommandPostCommandFromJson( Object? sessionsSessionIdCommandCommandPostCommand, [ enums.SessionsSessionIdCommandCommandPostCommand? defaultValue, ]) { - return enums.SessionsSessionIdCommandCommandPostCommand.values.firstWhereOrNull( - (e) => e.value == sessionsSessionIdCommandCommandPostCommand, - ) ?? + return enums.SessionsSessionIdCommandCommandPostCommand.values + .firstWhereOrNull( + (e) => e.value == sessionsSessionIdCommandCommandPostCommand, + ) ?? defaultValue ?? enums.SessionsSessionIdCommandCommandPostCommand.swaggerGeneratedUnknown; } -enums.SessionsSessionIdCommandCommandPostCommand? sessionsSessionIdCommandCommandPostCommandNullableFromJson( +enums.SessionsSessionIdCommandCommandPostCommand? +sessionsSessionIdCommandCommandPostCommandNullableFromJson( Object? sessionsSessionIdCommandCommandPostCommand, [ enums.SessionsSessionIdCommandCommandPostCommand? defaultValue, ]) { if (sessionsSessionIdCommandCommandPostCommand == null) { return null; } - return enums.SessionsSessionIdCommandCommandPostCommand.values.firstWhereOrNull( - (e) => e.value == sessionsSessionIdCommandCommandPostCommand, - ) ?? + return enums.SessionsSessionIdCommandCommandPostCommand.values + .firstWhereOrNull( + (e) => e.value == sessionsSessionIdCommandCommandPostCommand, + ) ?? defaultValue; } String sessionsSessionIdCommandCommandPostCommandExplodedListToJson( - List? sessionsSessionIdCommandCommandPostCommand, + List? + sessionsSessionIdCommandCommandPostCommand, ) { - return sessionsSessionIdCommandCommandPostCommand?.map((e) => e.value!).join(',') ?? ''; + return sessionsSessionIdCommandCommandPostCommand + ?.map((e) => e.value!) + .join(',') ?? + ''; } List sessionsSessionIdCommandCommandPostCommandListToJson( - List? sessionsSessionIdCommandCommandPostCommand, + List? + sessionsSessionIdCommandCommandPostCommand, ) { if (sessionsSessionIdCommandCommandPostCommand == null) { return []; } - return sessionsSessionIdCommandCommandPostCommand.map((e) => e.value!).toList(); + return sessionsSessionIdCommandCommandPostCommand + .map((e) => e.value!) + .toList(); } -List sessionsSessionIdCommandCommandPostCommandListFromJson( +List +sessionsSessionIdCommandCommandPostCommandListFromJson( List? sessionsSessionIdCommandCommandPostCommand, [ List? defaultValue, ]) { @@ -67428,7 +71530,8 @@ List sessionsSessionIdCommandC .toList(); } -List? sessionsSessionIdCommandCommandPostCommandNullableListFromJson( +List? +sessionsSessionIdCommandCommandPostCommandNullableListFromJson( List? sessionsSessionIdCommandCommandPostCommand, [ List? defaultValue, ]) { @@ -67444,18 +71547,21 @@ List? sessionsSessionIdCommand } String? sessionsSessionIdPlayingPostPlayCommandNullableToJson( - enums.SessionsSessionIdPlayingPostPlayCommand? sessionsSessionIdPlayingPostPlayCommand, + enums.SessionsSessionIdPlayingPostPlayCommand? + sessionsSessionIdPlayingPostPlayCommand, ) { return sessionsSessionIdPlayingPostPlayCommand?.value; } String? sessionsSessionIdPlayingPostPlayCommandToJson( - enums.SessionsSessionIdPlayingPostPlayCommand sessionsSessionIdPlayingPostPlayCommand, + enums.SessionsSessionIdPlayingPostPlayCommand + sessionsSessionIdPlayingPostPlayCommand, ) { return sessionsSessionIdPlayingPostPlayCommand.value; } -enums.SessionsSessionIdPlayingPostPlayCommand sessionsSessionIdPlayingPostPlayCommandFromJson( +enums.SessionsSessionIdPlayingPostPlayCommand +sessionsSessionIdPlayingPostPlayCommandFromJson( Object? sessionsSessionIdPlayingPostPlayCommand, [ enums.SessionsSessionIdPlayingPostPlayCommand? defaultValue, ]) { @@ -67466,7 +71572,8 @@ enums.SessionsSessionIdPlayingPostPlayCommand sessionsSessionIdPlayingPostPlayCo enums.SessionsSessionIdPlayingPostPlayCommand.swaggerGeneratedUnknown; } -enums.SessionsSessionIdPlayingPostPlayCommand? sessionsSessionIdPlayingPostPlayCommandNullableFromJson( +enums.SessionsSessionIdPlayingPostPlayCommand? +sessionsSessionIdPlayingPostPlayCommandNullableFromJson( Object? sessionsSessionIdPlayingPostPlayCommand, [ enums.SessionsSessionIdPlayingPostPlayCommand? defaultValue, ]) { @@ -67480,13 +71587,18 @@ enums.SessionsSessionIdPlayingPostPlayCommand? sessionsSessionIdPlayingPostPlayC } String sessionsSessionIdPlayingPostPlayCommandExplodedListToJson( - List? sessionsSessionIdPlayingPostPlayCommand, + List? + sessionsSessionIdPlayingPostPlayCommand, ) { - return sessionsSessionIdPlayingPostPlayCommand?.map((e) => e.value!).join(',') ?? ''; + return sessionsSessionIdPlayingPostPlayCommand + ?.map((e) => e.value!) + .join(',') ?? + ''; } List sessionsSessionIdPlayingPostPlayCommandListToJson( - List? sessionsSessionIdPlayingPostPlayCommand, + List? + sessionsSessionIdPlayingPostPlayCommand, ) { if (sessionsSessionIdPlayingPostPlayCommand == null) { return []; @@ -67495,7 +71607,8 @@ List sessionsSessionIdPlayingPostPlayCommandListToJson( return sessionsSessionIdPlayingPostPlayCommand.map((e) => e.value!).toList(); } -List sessionsSessionIdPlayingPostPlayCommandListFromJson( +List +sessionsSessionIdPlayingPostPlayCommandListFromJson( List? sessionsSessionIdPlayingPostPlayCommand, [ List? defaultValue, ]) { @@ -67508,7 +71621,8 @@ List sessionsSessionIdPlayingPost .toList(); } -List? sessionsSessionIdPlayingPostPlayCommandNullableListFromJson( +List? +sessionsSessionIdPlayingPostPlayCommandNullableListFromJson( List? sessionsSessionIdPlayingPostPlayCommand, [ List? defaultValue, ]) { @@ -67522,58 +71636,72 @@ List? sessionsSessionIdPlayingPos } String? sessionsSessionIdPlayingCommandPostCommandNullableToJson( - enums.SessionsSessionIdPlayingCommandPostCommand? sessionsSessionIdPlayingCommandPostCommand, + enums.SessionsSessionIdPlayingCommandPostCommand? + sessionsSessionIdPlayingCommandPostCommand, ) { return sessionsSessionIdPlayingCommandPostCommand?.value; } String? sessionsSessionIdPlayingCommandPostCommandToJson( - enums.SessionsSessionIdPlayingCommandPostCommand sessionsSessionIdPlayingCommandPostCommand, + enums.SessionsSessionIdPlayingCommandPostCommand + sessionsSessionIdPlayingCommandPostCommand, ) { return sessionsSessionIdPlayingCommandPostCommand.value; } -enums.SessionsSessionIdPlayingCommandPostCommand sessionsSessionIdPlayingCommandPostCommandFromJson( +enums.SessionsSessionIdPlayingCommandPostCommand +sessionsSessionIdPlayingCommandPostCommandFromJson( Object? sessionsSessionIdPlayingCommandPostCommand, [ enums.SessionsSessionIdPlayingCommandPostCommand? defaultValue, ]) { - return enums.SessionsSessionIdPlayingCommandPostCommand.values.firstWhereOrNull( - (e) => e.value == sessionsSessionIdPlayingCommandPostCommand, - ) ?? + return enums.SessionsSessionIdPlayingCommandPostCommand.values + .firstWhereOrNull( + (e) => e.value == sessionsSessionIdPlayingCommandPostCommand, + ) ?? defaultValue ?? enums.SessionsSessionIdPlayingCommandPostCommand.swaggerGeneratedUnknown; } -enums.SessionsSessionIdPlayingCommandPostCommand? sessionsSessionIdPlayingCommandPostCommandNullableFromJson( +enums.SessionsSessionIdPlayingCommandPostCommand? +sessionsSessionIdPlayingCommandPostCommandNullableFromJson( Object? sessionsSessionIdPlayingCommandPostCommand, [ enums.SessionsSessionIdPlayingCommandPostCommand? defaultValue, ]) { if (sessionsSessionIdPlayingCommandPostCommand == null) { return null; } - return enums.SessionsSessionIdPlayingCommandPostCommand.values.firstWhereOrNull( - (e) => e.value == sessionsSessionIdPlayingCommandPostCommand, - ) ?? + return enums.SessionsSessionIdPlayingCommandPostCommand.values + .firstWhereOrNull( + (e) => e.value == sessionsSessionIdPlayingCommandPostCommand, + ) ?? defaultValue; } String sessionsSessionIdPlayingCommandPostCommandExplodedListToJson( - List? sessionsSessionIdPlayingCommandPostCommand, + List? + sessionsSessionIdPlayingCommandPostCommand, ) { - return sessionsSessionIdPlayingCommandPostCommand?.map((e) => e.value!).join(',') ?? ''; + return sessionsSessionIdPlayingCommandPostCommand + ?.map((e) => e.value!) + .join(',') ?? + ''; } List sessionsSessionIdPlayingCommandPostCommandListToJson( - List? sessionsSessionIdPlayingCommandPostCommand, + List? + sessionsSessionIdPlayingCommandPostCommand, ) { if (sessionsSessionIdPlayingCommandPostCommand == null) { return []; } - return sessionsSessionIdPlayingCommandPostCommand.map((e) => e.value!).toList(); + return sessionsSessionIdPlayingCommandPostCommand + .map((e) => e.value!) + .toList(); } -List sessionsSessionIdPlayingCommandPostCommandListFromJson( +List +sessionsSessionIdPlayingCommandPostCommandListFromJson( List? sessionsSessionIdPlayingCommandPostCommand, [ List? defaultValue, ]) { @@ -67588,7 +71716,8 @@ List sessionsSessionIdPlayingC .toList(); } -List? sessionsSessionIdPlayingCommandPostCommandNullableListFromJson( +List? +sessionsSessionIdPlayingCommandPostCommandNullableListFromJson( List? sessionsSessionIdPlayingCommandPostCommand, [ List? defaultValue, ]) { @@ -67604,58 +71733,72 @@ List? sessionsSessionIdPlaying } String? sessionsSessionIdSystemCommandPostCommandNullableToJson( - enums.SessionsSessionIdSystemCommandPostCommand? sessionsSessionIdSystemCommandPostCommand, + enums.SessionsSessionIdSystemCommandPostCommand? + sessionsSessionIdSystemCommandPostCommand, ) { return sessionsSessionIdSystemCommandPostCommand?.value; } String? sessionsSessionIdSystemCommandPostCommandToJson( - enums.SessionsSessionIdSystemCommandPostCommand sessionsSessionIdSystemCommandPostCommand, + enums.SessionsSessionIdSystemCommandPostCommand + sessionsSessionIdSystemCommandPostCommand, ) { return sessionsSessionIdSystemCommandPostCommand.value; } -enums.SessionsSessionIdSystemCommandPostCommand sessionsSessionIdSystemCommandPostCommandFromJson( +enums.SessionsSessionIdSystemCommandPostCommand +sessionsSessionIdSystemCommandPostCommandFromJson( Object? sessionsSessionIdSystemCommandPostCommand, [ enums.SessionsSessionIdSystemCommandPostCommand? defaultValue, ]) { - return enums.SessionsSessionIdSystemCommandPostCommand.values.firstWhereOrNull( - (e) => e.value == sessionsSessionIdSystemCommandPostCommand, - ) ?? + return enums.SessionsSessionIdSystemCommandPostCommand.values + .firstWhereOrNull( + (e) => e.value == sessionsSessionIdSystemCommandPostCommand, + ) ?? defaultValue ?? enums.SessionsSessionIdSystemCommandPostCommand.swaggerGeneratedUnknown; } -enums.SessionsSessionIdSystemCommandPostCommand? sessionsSessionIdSystemCommandPostCommandNullableFromJson( +enums.SessionsSessionIdSystemCommandPostCommand? +sessionsSessionIdSystemCommandPostCommandNullableFromJson( Object? sessionsSessionIdSystemCommandPostCommand, [ enums.SessionsSessionIdSystemCommandPostCommand? defaultValue, ]) { if (sessionsSessionIdSystemCommandPostCommand == null) { return null; } - return enums.SessionsSessionIdSystemCommandPostCommand.values.firstWhereOrNull( - (e) => e.value == sessionsSessionIdSystemCommandPostCommand, - ) ?? + return enums.SessionsSessionIdSystemCommandPostCommand.values + .firstWhereOrNull( + (e) => e.value == sessionsSessionIdSystemCommandPostCommand, + ) ?? defaultValue; } String sessionsSessionIdSystemCommandPostCommandExplodedListToJson( - List? sessionsSessionIdSystemCommandPostCommand, + List? + sessionsSessionIdSystemCommandPostCommand, ) { - return sessionsSessionIdSystemCommandPostCommand?.map((e) => e.value!).join(',') ?? ''; + return sessionsSessionIdSystemCommandPostCommand + ?.map((e) => e.value!) + .join(',') ?? + ''; } List sessionsSessionIdSystemCommandPostCommandListToJson( - List? sessionsSessionIdSystemCommandPostCommand, + List? + sessionsSessionIdSystemCommandPostCommand, ) { if (sessionsSessionIdSystemCommandPostCommand == null) { return []; } - return sessionsSessionIdSystemCommandPostCommand.map((e) => e.value!).toList(); + return sessionsSessionIdSystemCommandPostCommand + .map((e) => e.value!) + .toList(); } -List sessionsSessionIdSystemCommandPostCommandListFromJson( +List +sessionsSessionIdSystemCommandPostCommandListFromJson( List? sessionsSessionIdSystemCommandPostCommand, [ List? defaultValue, ]) { @@ -67670,7 +71813,8 @@ List sessionsSessionIdSystemCom .toList(); } -List? sessionsSessionIdSystemCommandPostCommandNullableListFromJson( +List? +sessionsSessionIdSystemCommandPostCommandNullableListFromJson( List? sessionsSessionIdSystemCommandPostCommand, [ List? defaultValue, ]) { @@ -67686,18 +71830,21 @@ List? sessionsSessionIdSystemCo } String? sessionsSessionIdViewingPostItemTypeNullableToJson( - enums.SessionsSessionIdViewingPostItemType? sessionsSessionIdViewingPostItemType, + enums.SessionsSessionIdViewingPostItemType? + sessionsSessionIdViewingPostItemType, ) { return sessionsSessionIdViewingPostItemType?.value; } String? sessionsSessionIdViewingPostItemTypeToJson( - enums.SessionsSessionIdViewingPostItemType sessionsSessionIdViewingPostItemType, + enums.SessionsSessionIdViewingPostItemType + sessionsSessionIdViewingPostItemType, ) { return sessionsSessionIdViewingPostItemType.value; } -enums.SessionsSessionIdViewingPostItemType sessionsSessionIdViewingPostItemTypeFromJson( +enums.SessionsSessionIdViewingPostItemType +sessionsSessionIdViewingPostItemTypeFromJson( Object? sessionsSessionIdViewingPostItemType, [ enums.SessionsSessionIdViewingPostItemType? defaultValue, ]) { @@ -67708,7 +71855,8 @@ enums.SessionsSessionIdViewingPostItemType sessionsSessionIdViewingPostItemTypeF enums.SessionsSessionIdViewingPostItemType.swaggerGeneratedUnknown; } -enums.SessionsSessionIdViewingPostItemType? sessionsSessionIdViewingPostItemTypeNullableFromJson( +enums.SessionsSessionIdViewingPostItemType? +sessionsSessionIdViewingPostItemTypeNullableFromJson( Object? sessionsSessionIdViewingPostItemType, [ enums.SessionsSessionIdViewingPostItemType? defaultValue, ]) { @@ -67722,13 +71870,16 @@ enums.SessionsSessionIdViewingPostItemType? sessionsSessionIdViewingPostItemType } String sessionsSessionIdViewingPostItemTypeExplodedListToJson( - List? sessionsSessionIdViewingPostItemType, + List? + sessionsSessionIdViewingPostItemType, ) { - return sessionsSessionIdViewingPostItemType?.map((e) => e.value!).join(',') ?? ''; + return sessionsSessionIdViewingPostItemType?.map((e) => e.value!).join(',') ?? + ''; } List sessionsSessionIdViewingPostItemTypeListToJson( - List? sessionsSessionIdViewingPostItemType, + List? + sessionsSessionIdViewingPostItemType, ) { if (sessionsSessionIdViewingPostItemType == null) { return []; @@ -67737,7 +71888,8 @@ List sessionsSessionIdViewingPostItemTypeListToJson( return sessionsSessionIdViewingPostItemType.map((e) => e.value!).toList(); } -List sessionsSessionIdViewingPostItemTypeListFromJson( +List +sessionsSessionIdViewingPostItemTypeListFromJson( List? sessionsSessionIdViewingPostItemType, [ List? defaultValue, ]) { @@ -67750,7 +71902,8 @@ List sessionsSessionIdViewingPostIte .toList(); } -List? sessionsSessionIdViewingPostItemTypeNullableListFromJson( +List? +sessionsSessionIdViewingPostItemTypeNullableListFromJson( List? sessionsSessionIdViewingPostItemType, [ List? defaultValue, ]) { @@ -67786,7 +71939,8 @@ enums.ShowsSeriesIdEpisodesGetSortBy showsSeriesIdEpisodesGetSortByFromJson( enums.ShowsSeriesIdEpisodesGetSortBy.swaggerGeneratedUnknown; } -enums.ShowsSeriesIdEpisodesGetSortBy? showsSeriesIdEpisodesGetSortByNullableFromJson( +enums.ShowsSeriesIdEpisodesGetSortBy? +showsSeriesIdEpisodesGetSortByNullableFromJson( Object? showsSeriesIdEpisodesGetSortBy, [ enums.ShowsSeriesIdEpisodesGetSortBy? defaultValue, ]) { @@ -67815,7 +71969,8 @@ List showsSeriesIdEpisodesGetSortByListToJson( return showsSeriesIdEpisodesGetSortBy.map((e) => e.value!).toList(); } -List showsSeriesIdEpisodesGetSortByListFromJson( +List +showsSeriesIdEpisodesGetSortByListFromJson( List? showsSeriesIdEpisodesGetSortBy, [ List? defaultValue, ]) { @@ -67823,10 +71978,13 @@ List showsSeriesIdEpisodesGetSortByListFro return defaultValue ?? []; } - return showsSeriesIdEpisodesGetSortBy.map((e) => showsSeriesIdEpisodesGetSortByFromJson(e.toString())).toList(); + return showsSeriesIdEpisodesGetSortBy + .map((e) => showsSeriesIdEpisodesGetSortByFromJson(e.toString())) + .toList(); } -List? showsSeriesIdEpisodesGetSortByNullableListFromJson( +List? +showsSeriesIdEpisodesGetSortByNullableListFromJson( List? showsSeriesIdEpisodesGetSortBy, [ List? defaultValue, ]) { @@ -67834,62 +71992,78 @@ List? showsSeriesIdEpisodesGetSortByNullab return defaultValue; } - return showsSeriesIdEpisodesGetSortBy.map((e) => showsSeriesIdEpisodesGetSortByFromJson(e.toString())).toList(); + return showsSeriesIdEpisodesGetSortBy + .map((e) => showsSeriesIdEpisodesGetSortByFromJson(e.toString())) + .toList(); } String? audioItemIdUniversalGetTranscodingProtocolNullableToJson( - enums.AudioItemIdUniversalGetTranscodingProtocol? audioItemIdUniversalGetTranscodingProtocol, + enums.AudioItemIdUniversalGetTranscodingProtocol? + audioItemIdUniversalGetTranscodingProtocol, ) { return audioItemIdUniversalGetTranscodingProtocol?.value; } String? audioItemIdUniversalGetTranscodingProtocolToJson( - enums.AudioItemIdUniversalGetTranscodingProtocol audioItemIdUniversalGetTranscodingProtocol, + enums.AudioItemIdUniversalGetTranscodingProtocol + audioItemIdUniversalGetTranscodingProtocol, ) { return audioItemIdUniversalGetTranscodingProtocol.value; } -enums.AudioItemIdUniversalGetTranscodingProtocol audioItemIdUniversalGetTranscodingProtocolFromJson( +enums.AudioItemIdUniversalGetTranscodingProtocol +audioItemIdUniversalGetTranscodingProtocolFromJson( Object? audioItemIdUniversalGetTranscodingProtocol, [ enums.AudioItemIdUniversalGetTranscodingProtocol? defaultValue, ]) { - return enums.AudioItemIdUniversalGetTranscodingProtocol.values.firstWhereOrNull( - (e) => e.value == audioItemIdUniversalGetTranscodingProtocol, - ) ?? + return enums.AudioItemIdUniversalGetTranscodingProtocol.values + .firstWhereOrNull( + (e) => e.value == audioItemIdUniversalGetTranscodingProtocol, + ) ?? defaultValue ?? enums.AudioItemIdUniversalGetTranscodingProtocol.swaggerGeneratedUnknown; } -enums.AudioItemIdUniversalGetTranscodingProtocol? audioItemIdUniversalGetTranscodingProtocolNullableFromJson( +enums.AudioItemIdUniversalGetTranscodingProtocol? +audioItemIdUniversalGetTranscodingProtocolNullableFromJson( Object? audioItemIdUniversalGetTranscodingProtocol, [ enums.AudioItemIdUniversalGetTranscodingProtocol? defaultValue, ]) { if (audioItemIdUniversalGetTranscodingProtocol == null) { return null; } - return enums.AudioItemIdUniversalGetTranscodingProtocol.values.firstWhereOrNull( - (e) => e.value == audioItemIdUniversalGetTranscodingProtocol, - ) ?? + return enums.AudioItemIdUniversalGetTranscodingProtocol.values + .firstWhereOrNull( + (e) => e.value == audioItemIdUniversalGetTranscodingProtocol, + ) ?? defaultValue; } String audioItemIdUniversalGetTranscodingProtocolExplodedListToJson( - List? audioItemIdUniversalGetTranscodingProtocol, + List? + audioItemIdUniversalGetTranscodingProtocol, ) { - return audioItemIdUniversalGetTranscodingProtocol?.map((e) => e.value!).join(',') ?? ''; + return audioItemIdUniversalGetTranscodingProtocol + ?.map((e) => e.value!) + .join(',') ?? + ''; } List audioItemIdUniversalGetTranscodingProtocolListToJson( - List? audioItemIdUniversalGetTranscodingProtocol, + List? + audioItemIdUniversalGetTranscodingProtocol, ) { if (audioItemIdUniversalGetTranscodingProtocol == null) { return []; } - return audioItemIdUniversalGetTranscodingProtocol.map((e) => e.value!).toList(); + return audioItemIdUniversalGetTranscodingProtocol + .map((e) => e.value!) + .toList(); } -List audioItemIdUniversalGetTranscodingProtocolListFromJson( +List +audioItemIdUniversalGetTranscodingProtocolListFromJson( List? audioItemIdUniversalGetTranscodingProtocol, [ List? defaultValue, ]) { @@ -67904,7 +72078,8 @@ List audioItemIdUniversalGetTr .toList(); } -List? audioItemIdUniversalGetTranscodingProtocolNullableListFromJson( +List? +audioItemIdUniversalGetTranscodingProtocolNullableListFromJson( List? audioItemIdUniversalGetTranscodingProtocol, [ List? defaultValue, ]) { @@ -67920,58 +72095,72 @@ List? audioItemIdUniversalGetT } String? audioItemIdUniversalHeadTranscodingProtocolNullableToJson( - enums.AudioItemIdUniversalHeadTranscodingProtocol? audioItemIdUniversalHeadTranscodingProtocol, + enums.AudioItemIdUniversalHeadTranscodingProtocol? + audioItemIdUniversalHeadTranscodingProtocol, ) { return audioItemIdUniversalHeadTranscodingProtocol?.value; } String? audioItemIdUniversalHeadTranscodingProtocolToJson( - enums.AudioItemIdUniversalHeadTranscodingProtocol audioItemIdUniversalHeadTranscodingProtocol, + enums.AudioItemIdUniversalHeadTranscodingProtocol + audioItemIdUniversalHeadTranscodingProtocol, ) { return audioItemIdUniversalHeadTranscodingProtocol.value; } -enums.AudioItemIdUniversalHeadTranscodingProtocol audioItemIdUniversalHeadTranscodingProtocolFromJson( +enums.AudioItemIdUniversalHeadTranscodingProtocol +audioItemIdUniversalHeadTranscodingProtocolFromJson( Object? audioItemIdUniversalHeadTranscodingProtocol, [ enums.AudioItemIdUniversalHeadTranscodingProtocol? defaultValue, ]) { - return enums.AudioItemIdUniversalHeadTranscodingProtocol.values.firstWhereOrNull( - (e) => e.value == audioItemIdUniversalHeadTranscodingProtocol, - ) ?? + return enums.AudioItemIdUniversalHeadTranscodingProtocol.values + .firstWhereOrNull( + (e) => e.value == audioItemIdUniversalHeadTranscodingProtocol, + ) ?? defaultValue ?? enums.AudioItemIdUniversalHeadTranscodingProtocol.swaggerGeneratedUnknown; } -enums.AudioItemIdUniversalHeadTranscodingProtocol? audioItemIdUniversalHeadTranscodingProtocolNullableFromJson( +enums.AudioItemIdUniversalHeadTranscodingProtocol? +audioItemIdUniversalHeadTranscodingProtocolNullableFromJson( Object? audioItemIdUniversalHeadTranscodingProtocol, [ enums.AudioItemIdUniversalHeadTranscodingProtocol? defaultValue, ]) { if (audioItemIdUniversalHeadTranscodingProtocol == null) { return null; } - return enums.AudioItemIdUniversalHeadTranscodingProtocol.values.firstWhereOrNull( - (e) => e.value == audioItemIdUniversalHeadTranscodingProtocol, - ) ?? + return enums.AudioItemIdUniversalHeadTranscodingProtocol.values + .firstWhereOrNull( + (e) => e.value == audioItemIdUniversalHeadTranscodingProtocol, + ) ?? defaultValue; } String audioItemIdUniversalHeadTranscodingProtocolExplodedListToJson( - List? audioItemIdUniversalHeadTranscodingProtocol, + List? + audioItemIdUniversalHeadTranscodingProtocol, ) { - return audioItemIdUniversalHeadTranscodingProtocol?.map((e) => e.value!).join(',') ?? ''; + return audioItemIdUniversalHeadTranscodingProtocol + ?.map((e) => e.value!) + .join(',') ?? + ''; } List audioItemIdUniversalHeadTranscodingProtocolListToJson( - List? audioItemIdUniversalHeadTranscodingProtocol, + List? + audioItemIdUniversalHeadTranscodingProtocol, ) { if (audioItemIdUniversalHeadTranscodingProtocol == null) { return []; } - return audioItemIdUniversalHeadTranscodingProtocol.map((e) => e.value!).toList(); + return audioItemIdUniversalHeadTranscodingProtocol + .map((e) => e.value!) + .toList(); } -List audioItemIdUniversalHeadTranscodingProtocolListFromJson( +List +audioItemIdUniversalHeadTranscodingProtocolListFromJson( List? audioItemIdUniversalHeadTranscodingProtocol, [ List? defaultValue, ]) { @@ -67981,13 +72170,14 @@ List audioItemIdUniversalHead return audioItemIdUniversalHeadTranscodingProtocol .map( - (e) => audioItemIdUniversalHeadTranscodingProtocolFromJson(e.toString()), + (e) => + audioItemIdUniversalHeadTranscodingProtocolFromJson(e.toString()), ) .toList(); } List? - audioItemIdUniversalHeadTranscodingProtocolNullableListFromJson( +audioItemIdUniversalHeadTranscodingProtocolNullableListFromJson( List? audioItemIdUniversalHeadTranscodingProtocol, [ List? defaultValue, ]) { @@ -67997,13 +72187,15 @@ List? return audioItemIdUniversalHeadTranscodingProtocol .map( - (e) => audioItemIdUniversalHeadTranscodingProtocolFromJson(e.toString()), + (e) => + audioItemIdUniversalHeadTranscodingProtocolFromJson(e.toString()), ) .toList(); } String? videosItemIdStreamGetSubtitleMethodNullableToJson( - enums.VideosItemIdStreamGetSubtitleMethod? videosItemIdStreamGetSubtitleMethod, + enums.VideosItemIdStreamGetSubtitleMethod? + videosItemIdStreamGetSubtitleMethod, ) { return videosItemIdStreamGetSubtitleMethod?.value; } @@ -68014,7 +72206,8 @@ String? videosItemIdStreamGetSubtitleMethodToJson( return videosItemIdStreamGetSubtitleMethod.value; } -enums.VideosItemIdStreamGetSubtitleMethod videosItemIdStreamGetSubtitleMethodFromJson( +enums.VideosItemIdStreamGetSubtitleMethod +videosItemIdStreamGetSubtitleMethodFromJson( Object? videosItemIdStreamGetSubtitleMethod, [ enums.VideosItemIdStreamGetSubtitleMethod? defaultValue, ]) { @@ -68025,7 +72218,8 @@ enums.VideosItemIdStreamGetSubtitleMethod videosItemIdStreamGetSubtitleMethodFro enums.VideosItemIdStreamGetSubtitleMethod.swaggerGeneratedUnknown; } -enums.VideosItemIdStreamGetSubtitleMethod? videosItemIdStreamGetSubtitleMethodNullableFromJson( +enums.VideosItemIdStreamGetSubtitleMethod? +videosItemIdStreamGetSubtitleMethodNullableFromJson( Object? videosItemIdStreamGetSubtitleMethod, [ enums.VideosItemIdStreamGetSubtitleMethod? defaultValue, ]) { @@ -68039,13 +72233,16 @@ enums.VideosItemIdStreamGetSubtitleMethod? videosItemIdStreamGetSubtitleMethodNu } String videosItemIdStreamGetSubtitleMethodExplodedListToJson( - List? videosItemIdStreamGetSubtitleMethod, + List? + videosItemIdStreamGetSubtitleMethod, ) { - return videosItemIdStreamGetSubtitleMethod?.map((e) => e.value!).join(',') ?? ''; + return videosItemIdStreamGetSubtitleMethod?.map((e) => e.value!).join(',') ?? + ''; } List videosItemIdStreamGetSubtitleMethodListToJson( - List? videosItemIdStreamGetSubtitleMethod, + List? + videosItemIdStreamGetSubtitleMethod, ) { if (videosItemIdStreamGetSubtitleMethod == null) { return []; @@ -68054,7 +72251,8 @@ List videosItemIdStreamGetSubtitleMethodListToJson( return videosItemIdStreamGetSubtitleMethod.map((e) => e.value!).toList(); } -List videosItemIdStreamGetSubtitleMethodListFromJson( +List +videosItemIdStreamGetSubtitleMethodListFromJson( List? videosItemIdStreamGetSubtitleMethod, [ List? defaultValue, ]) { @@ -68067,7 +72265,8 @@ List videosItemIdStreamGetSubtitleMet .toList(); } -List? videosItemIdStreamGetSubtitleMethodNullableListFromJson( +List? +videosItemIdStreamGetSubtitleMethodNullableListFromJson( List? videosItemIdStreamGetSubtitleMethod, [ List? defaultValue, ]) { @@ -68103,7 +72302,8 @@ enums.VideosItemIdStreamGetContext videosItemIdStreamGetContextFromJson( enums.VideosItemIdStreamGetContext.swaggerGeneratedUnknown; } -enums.VideosItemIdStreamGetContext? videosItemIdStreamGetContextNullableFromJson( +enums.VideosItemIdStreamGetContext? +videosItemIdStreamGetContextNullableFromJson( Object? videosItemIdStreamGetContext, [ enums.VideosItemIdStreamGetContext? defaultValue, ]) { @@ -68132,7 +72332,8 @@ List videosItemIdStreamGetContextListToJson( return videosItemIdStreamGetContext.map((e) => e.value!).toList(); } -List videosItemIdStreamGetContextListFromJson( +List +videosItemIdStreamGetContextListFromJson( List? videosItemIdStreamGetContext, [ List? defaultValue, ]) { @@ -68140,10 +72341,13 @@ List videosItemIdStreamGetContextListFromJso return defaultValue ?? []; } - return videosItemIdStreamGetContext.map((e) => videosItemIdStreamGetContextFromJson(e.toString())).toList(); + return videosItemIdStreamGetContext + .map((e) => videosItemIdStreamGetContextFromJson(e.toString())) + .toList(); } -List? videosItemIdStreamGetContextNullableListFromJson( +List? +videosItemIdStreamGetContextNullableListFromJson( List? videosItemIdStreamGetContext, [ List? defaultValue, ]) { @@ -68151,22 +72355,27 @@ List? videosItemIdStreamGetContextNullableLi return defaultValue; } - return videosItemIdStreamGetContext.map((e) => videosItemIdStreamGetContextFromJson(e.toString())).toList(); + return videosItemIdStreamGetContext + .map((e) => videosItemIdStreamGetContextFromJson(e.toString())) + .toList(); } String? videosItemIdStreamHeadSubtitleMethodNullableToJson( - enums.VideosItemIdStreamHeadSubtitleMethod? videosItemIdStreamHeadSubtitleMethod, + enums.VideosItemIdStreamHeadSubtitleMethod? + videosItemIdStreamHeadSubtitleMethod, ) { return videosItemIdStreamHeadSubtitleMethod?.value; } String? videosItemIdStreamHeadSubtitleMethodToJson( - enums.VideosItemIdStreamHeadSubtitleMethod videosItemIdStreamHeadSubtitleMethod, + enums.VideosItemIdStreamHeadSubtitleMethod + videosItemIdStreamHeadSubtitleMethod, ) { return videosItemIdStreamHeadSubtitleMethod.value; } -enums.VideosItemIdStreamHeadSubtitleMethod videosItemIdStreamHeadSubtitleMethodFromJson( +enums.VideosItemIdStreamHeadSubtitleMethod +videosItemIdStreamHeadSubtitleMethodFromJson( Object? videosItemIdStreamHeadSubtitleMethod, [ enums.VideosItemIdStreamHeadSubtitleMethod? defaultValue, ]) { @@ -68177,7 +72386,8 @@ enums.VideosItemIdStreamHeadSubtitleMethod videosItemIdStreamHeadSubtitleMethodF enums.VideosItemIdStreamHeadSubtitleMethod.swaggerGeneratedUnknown; } -enums.VideosItemIdStreamHeadSubtitleMethod? videosItemIdStreamHeadSubtitleMethodNullableFromJson( +enums.VideosItemIdStreamHeadSubtitleMethod? +videosItemIdStreamHeadSubtitleMethodNullableFromJson( Object? videosItemIdStreamHeadSubtitleMethod, [ enums.VideosItemIdStreamHeadSubtitleMethod? defaultValue, ]) { @@ -68191,13 +72401,16 @@ enums.VideosItemIdStreamHeadSubtitleMethod? videosItemIdStreamHeadSubtitleMethod } String videosItemIdStreamHeadSubtitleMethodExplodedListToJson( - List? videosItemIdStreamHeadSubtitleMethod, + List? + videosItemIdStreamHeadSubtitleMethod, ) { - return videosItemIdStreamHeadSubtitleMethod?.map((e) => e.value!).join(',') ?? ''; + return videosItemIdStreamHeadSubtitleMethod?.map((e) => e.value!).join(',') ?? + ''; } List videosItemIdStreamHeadSubtitleMethodListToJson( - List? videosItemIdStreamHeadSubtitleMethod, + List? + videosItemIdStreamHeadSubtitleMethod, ) { if (videosItemIdStreamHeadSubtitleMethod == null) { return []; @@ -68206,7 +72419,8 @@ List videosItemIdStreamHeadSubtitleMethodListToJson( return videosItemIdStreamHeadSubtitleMethod.map((e) => e.value!).toList(); } -List videosItemIdStreamHeadSubtitleMethodListFromJson( +List +videosItemIdStreamHeadSubtitleMethodListFromJson( List? videosItemIdStreamHeadSubtitleMethod, [ List? defaultValue, ]) { @@ -68219,7 +72433,8 @@ List videosItemIdStreamHeadSubtitleM .toList(); } -List? videosItemIdStreamHeadSubtitleMethodNullableListFromJson( +List? +videosItemIdStreamHeadSubtitleMethodNullableListFromJson( List? videosItemIdStreamHeadSubtitleMethod, [ List? defaultValue, ]) { @@ -68255,7 +72470,8 @@ enums.VideosItemIdStreamHeadContext videosItemIdStreamHeadContextFromJson( enums.VideosItemIdStreamHeadContext.swaggerGeneratedUnknown; } -enums.VideosItemIdStreamHeadContext? videosItemIdStreamHeadContextNullableFromJson( +enums.VideosItemIdStreamHeadContext? +videosItemIdStreamHeadContextNullableFromJson( Object? videosItemIdStreamHeadContext, [ enums.VideosItemIdStreamHeadContext? defaultValue, ]) { @@ -68284,7 +72500,8 @@ List videosItemIdStreamHeadContextListToJson( return videosItemIdStreamHeadContext.map((e) => e.value!).toList(); } -List videosItemIdStreamHeadContextListFromJson( +List +videosItemIdStreamHeadContextListFromJson( List? videosItemIdStreamHeadContext, [ List? defaultValue, ]) { @@ -68292,10 +72509,13 @@ List videosItemIdStreamHeadContextListFromJ return defaultValue ?? []; } - return videosItemIdStreamHeadContext.map((e) => videosItemIdStreamHeadContextFromJson(e.toString())).toList(); + return videosItemIdStreamHeadContext + .map((e) => videosItemIdStreamHeadContextFromJson(e.toString())) + .toList(); } -List? videosItemIdStreamHeadContextNullableListFromJson( +List? +videosItemIdStreamHeadContextNullableListFromJson( List? videosItemIdStreamHeadContext, [ List? defaultValue, ]) { @@ -68303,62 +72523,80 @@ List? videosItemIdStreamHeadContextNullable return defaultValue; } - return videosItemIdStreamHeadContext.map((e) => videosItemIdStreamHeadContextFromJson(e.toString())).toList(); + return videosItemIdStreamHeadContext + .map((e) => videosItemIdStreamHeadContextFromJson(e.toString())) + .toList(); } String? videosItemIdStreamContainerGetSubtitleMethodNullableToJson( - enums.VideosItemIdStreamContainerGetSubtitleMethod? videosItemIdStreamContainerGetSubtitleMethod, + enums.VideosItemIdStreamContainerGetSubtitleMethod? + videosItemIdStreamContainerGetSubtitleMethod, ) { return videosItemIdStreamContainerGetSubtitleMethod?.value; } String? videosItemIdStreamContainerGetSubtitleMethodToJson( - enums.VideosItemIdStreamContainerGetSubtitleMethod videosItemIdStreamContainerGetSubtitleMethod, + enums.VideosItemIdStreamContainerGetSubtitleMethod + videosItemIdStreamContainerGetSubtitleMethod, ) { return videosItemIdStreamContainerGetSubtitleMethod.value; } -enums.VideosItemIdStreamContainerGetSubtitleMethod videosItemIdStreamContainerGetSubtitleMethodFromJson( +enums.VideosItemIdStreamContainerGetSubtitleMethod +videosItemIdStreamContainerGetSubtitleMethodFromJson( Object? videosItemIdStreamContainerGetSubtitleMethod, [ enums.VideosItemIdStreamContainerGetSubtitleMethod? defaultValue, ]) { - return enums.VideosItemIdStreamContainerGetSubtitleMethod.values.firstWhereOrNull( - (e) => e.value == videosItemIdStreamContainerGetSubtitleMethod, - ) ?? + return enums.VideosItemIdStreamContainerGetSubtitleMethod.values + .firstWhereOrNull( + (e) => e.value == videosItemIdStreamContainerGetSubtitleMethod, + ) ?? defaultValue ?? - enums.VideosItemIdStreamContainerGetSubtitleMethod.swaggerGeneratedUnknown; + enums + .VideosItemIdStreamContainerGetSubtitleMethod + .swaggerGeneratedUnknown; } -enums.VideosItemIdStreamContainerGetSubtitleMethod? videosItemIdStreamContainerGetSubtitleMethodNullableFromJson( +enums.VideosItemIdStreamContainerGetSubtitleMethod? +videosItemIdStreamContainerGetSubtitleMethodNullableFromJson( Object? videosItemIdStreamContainerGetSubtitleMethod, [ enums.VideosItemIdStreamContainerGetSubtitleMethod? defaultValue, ]) { if (videosItemIdStreamContainerGetSubtitleMethod == null) { return null; } - return enums.VideosItemIdStreamContainerGetSubtitleMethod.values.firstWhereOrNull( - (e) => e.value == videosItemIdStreamContainerGetSubtitleMethod, - ) ?? + return enums.VideosItemIdStreamContainerGetSubtitleMethod.values + .firstWhereOrNull( + (e) => e.value == videosItemIdStreamContainerGetSubtitleMethod, + ) ?? defaultValue; } String videosItemIdStreamContainerGetSubtitleMethodExplodedListToJson( - List? videosItemIdStreamContainerGetSubtitleMethod, + List? + videosItemIdStreamContainerGetSubtitleMethod, ) { - return videosItemIdStreamContainerGetSubtitleMethod?.map((e) => e.value!).join(',') ?? ''; + return videosItemIdStreamContainerGetSubtitleMethod + ?.map((e) => e.value!) + .join(',') ?? + ''; } List videosItemIdStreamContainerGetSubtitleMethodListToJson( - List? videosItemIdStreamContainerGetSubtitleMethod, + List? + videosItemIdStreamContainerGetSubtitleMethod, ) { if (videosItemIdStreamContainerGetSubtitleMethod == null) { return []; } - return videosItemIdStreamContainerGetSubtitleMethod.map((e) => e.value!).toList(); + return videosItemIdStreamContainerGetSubtitleMethod + .map((e) => e.value!) + .toList(); } -List videosItemIdStreamContainerGetSubtitleMethodListFromJson( +List +videosItemIdStreamContainerGetSubtitleMethodListFromJson( List? videosItemIdStreamContainerGetSubtitleMethod, [ List? defaultValue, ]) { @@ -68368,13 +72606,14 @@ List videosItemIdStreamConta return videosItemIdStreamContainerGetSubtitleMethod .map( - (e) => videosItemIdStreamContainerGetSubtitleMethodFromJson(e.toString()), + (e) => + videosItemIdStreamContainerGetSubtitleMethodFromJson(e.toString()), ) .toList(); } List? - videosItemIdStreamContainerGetSubtitleMethodNullableListFromJson( +videosItemIdStreamContainerGetSubtitleMethodNullableListFromJson( List? videosItemIdStreamContainerGetSubtitleMethod, [ List? defaultValue, ]) { @@ -68384,24 +72623,28 @@ List? return videosItemIdStreamContainerGetSubtitleMethod .map( - (e) => videosItemIdStreamContainerGetSubtitleMethodFromJson(e.toString()), + (e) => + videosItemIdStreamContainerGetSubtitleMethodFromJson(e.toString()), ) .toList(); } String? videosItemIdStreamContainerGetContextNullableToJson( - enums.VideosItemIdStreamContainerGetContext? videosItemIdStreamContainerGetContext, + enums.VideosItemIdStreamContainerGetContext? + videosItemIdStreamContainerGetContext, ) { return videosItemIdStreamContainerGetContext?.value; } String? videosItemIdStreamContainerGetContextToJson( - enums.VideosItemIdStreamContainerGetContext videosItemIdStreamContainerGetContext, + enums.VideosItemIdStreamContainerGetContext + videosItemIdStreamContainerGetContext, ) { return videosItemIdStreamContainerGetContext.value; } -enums.VideosItemIdStreamContainerGetContext videosItemIdStreamContainerGetContextFromJson( +enums.VideosItemIdStreamContainerGetContext +videosItemIdStreamContainerGetContextFromJson( Object? videosItemIdStreamContainerGetContext, [ enums.VideosItemIdStreamContainerGetContext? defaultValue, ]) { @@ -68412,7 +72655,8 @@ enums.VideosItemIdStreamContainerGetContext videosItemIdStreamContainerGetContex enums.VideosItemIdStreamContainerGetContext.swaggerGeneratedUnknown; } -enums.VideosItemIdStreamContainerGetContext? videosItemIdStreamContainerGetContextNullableFromJson( +enums.VideosItemIdStreamContainerGetContext? +videosItemIdStreamContainerGetContextNullableFromJson( Object? videosItemIdStreamContainerGetContext, [ enums.VideosItemIdStreamContainerGetContext? defaultValue, ]) { @@ -68426,13 +72670,18 @@ enums.VideosItemIdStreamContainerGetContext? videosItemIdStreamContainerGetConte } String videosItemIdStreamContainerGetContextExplodedListToJson( - List? videosItemIdStreamContainerGetContext, + List? + videosItemIdStreamContainerGetContext, ) { - return videosItemIdStreamContainerGetContext?.map((e) => e.value!).join(',') ?? ''; + return videosItemIdStreamContainerGetContext + ?.map((e) => e.value!) + .join(',') ?? + ''; } List videosItemIdStreamContainerGetContextListToJson( - List? videosItemIdStreamContainerGetContext, + List? + videosItemIdStreamContainerGetContext, ) { if (videosItemIdStreamContainerGetContext == null) { return []; @@ -68441,7 +72690,8 @@ List videosItemIdStreamContainerGetContextListToJson( return videosItemIdStreamContainerGetContext.map((e) => e.value!).toList(); } -List videosItemIdStreamContainerGetContextListFromJson( +List +videosItemIdStreamContainerGetContextListFromJson( List? videosItemIdStreamContainerGetContext, [ List? defaultValue, ]) { @@ -68454,7 +72704,8 @@ List videosItemIdStreamContainerGet .toList(); } -List? videosItemIdStreamContainerGetContextNullableListFromJson( +List? +videosItemIdStreamContainerGetContextNullableListFromJson( List? videosItemIdStreamContainerGetContext, [ List? defaultValue, ]) { @@ -68468,58 +72719,74 @@ List? videosItemIdStreamContainerGe } String? videosItemIdStreamContainerHeadSubtitleMethodNullableToJson( - enums.VideosItemIdStreamContainerHeadSubtitleMethod? videosItemIdStreamContainerHeadSubtitleMethod, + enums.VideosItemIdStreamContainerHeadSubtitleMethod? + videosItemIdStreamContainerHeadSubtitleMethod, ) { return videosItemIdStreamContainerHeadSubtitleMethod?.value; } String? videosItemIdStreamContainerHeadSubtitleMethodToJson( - enums.VideosItemIdStreamContainerHeadSubtitleMethod videosItemIdStreamContainerHeadSubtitleMethod, + enums.VideosItemIdStreamContainerHeadSubtitleMethod + videosItemIdStreamContainerHeadSubtitleMethod, ) { return videosItemIdStreamContainerHeadSubtitleMethod.value; } -enums.VideosItemIdStreamContainerHeadSubtitleMethod videosItemIdStreamContainerHeadSubtitleMethodFromJson( +enums.VideosItemIdStreamContainerHeadSubtitleMethod +videosItemIdStreamContainerHeadSubtitleMethodFromJson( Object? videosItemIdStreamContainerHeadSubtitleMethod, [ enums.VideosItemIdStreamContainerHeadSubtitleMethod? defaultValue, ]) { - return enums.VideosItemIdStreamContainerHeadSubtitleMethod.values.firstWhereOrNull( - (e) => e.value == videosItemIdStreamContainerHeadSubtitleMethod, - ) ?? + return enums.VideosItemIdStreamContainerHeadSubtitleMethod.values + .firstWhereOrNull( + (e) => e.value == videosItemIdStreamContainerHeadSubtitleMethod, + ) ?? defaultValue ?? - enums.VideosItemIdStreamContainerHeadSubtitleMethod.swaggerGeneratedUnknown; + enums + .VideosItemIdStreamContainerHeadSubtitleMethod + .swaggerGeneratedUnknown; } -enums.VideosItemIdStreamContainerHeadSubtitleMethod? videosItemIdStreamContainerHeadSubtitleMethodNullableFromJson( +enums.VideosItemIdStreamContainerHeadSubtitleMethod? +videosItemIdStreamContainerHeadSubtitleMethodNullableFromJson( Object? videosItemIdStreamContainerHeadSubtitleMethod, [ enums.VideosItemIdStreamContainerHeadSubtitleMethod? defaultValue, ]) { if (videosItemIdStreamContainerHeadSubtitleMethod == null) { return null; } - return enums.VideosItemIdStreamContainerHeadSubtitleMethod.values.firstWhereOrNull( - (e) => e.value == videosItemIdStreamContainerHeadSubtitleMethod, - ) ?? + return enums.VideosItemIdStreamContainerHeadSubtitleMethod.values + .firstWhereOrNull( + (e) => e.value == videosItemIdStreamContainerHeadSubtitleMethod, + ) ?? defaultValue; } String videosItemIdStreamContainerHeadSubtitleMethodExplodedListToJson( - List? videosItemIdStreamContainerHeadSubtitleMethod, + List? + videosItemIdStreamContainerHeadSubtitleMethod, ) { - return videosItemIdStreamContainerHeadSubtitleMethod?.map((e) => e.value!).join(',') ?? ''; + return videosItemIdStreamContainerHeadSubtitleMethod + ?.map((e) => e.value!) + .join(',') ?? + ''; } List videosItemIdStreamContainerHeadSubtitleMethodListToJson( - List? videosItemIdStreamContainerHeadSubtitleMethod, + List? + videosItemIdStreamContainerHeadSubtitleMethod, ) { if (videosItemIdStreamContainerHeadSubtitleMethod == null) { return []; } - return videosItemIdStreamContainerHeadSubtitleMethod.map((e) => e.value!).toList(); + return videosItemIdStreamContainerHeadSubtitleMethod + .map((e) => e.value!) + .toList(); } -List videosItemIdStreamContainerHeadSubtitleMethodListFromJson( +List +videosItemIdStreamContainerHeadSubtitleMethodListFromJson( List? videosItemIdStreamContainerHeadSubtitleMethod, [ List? defaultValue, ]) { @@ -68529,13 +72796,14 @@ List videosItemIdStreamCont return videosItemIdStreamContainerHeadSubtitleMethod .map( - (e) => videosItemIdStreamContainerHeadSubtitleMethodFromJson(e.toString()), + (e) => + videosItemIdStreamContainerHeadSubtitleMethodFromJson(e.toString()), ) .toList(); } List? - videosItemIdStreamContainerHeadSubtitleMethodNullableListFromJson( +videosItemIdStreamContainerHeadSubtitleMethodNullableListFromJson( List? videosItemIdStreamContainerHeadSubtitleMethod, [ List? defaultValue, ]) { @@ -68545,24 +72813,28 @@ List? return videosItemIdStreamContainerHeadSubtitleMethod .map( - (e) => videosItemIdStreamContainerHeadSubtitleMethodFromJson(e.toString()), + (e) => + videosItemIdStreamContainerHeadSubtitleMethodFromJson(e.toString()), ) .toList(); } String? videosItemIdStreamContainerHeadContextNullableToJson( - enums.VideosItemIdStreamContainerHeadContext? videosItemIdStreamContainerHeadContext, + enums.VideosItemIdStreamContainerHeadContext? + videosItemIdStreamContainerHeadContext, ) { return videosItemIdStreamContainerHeadContext?.value; } String? videosItemIdStreamContainerHeadContextToJson( - enums.VideosItemIdStreamContainerHeadContext videosItemIdStreamContainerHeadContext, + enums.VideosItemIdStreamContainerHeadContext + videosItemIdStreamContainerHeadContext, ) { return videosItemIdStreamContainerHeadContext.value; } -enums.VideosItemIdStreamContainerHeadContext videosItemIdStreamContainerHeadContextFromJson( +enums.VideosItemIdStreamContainerHeadContext +videosItemIdStreamContainerHeadContextFromJson( Object? videosItemIdStreamContainerHeadContext, [ enums.VideosItemIdStreamContainerHeadContext? defaultValue, ]) { @@ -68573,7 +72845,8 @@ enums.VideosItemIdStreamContainerHeadContext videosItemIdStreamContainerHeadCont enums.VideosItemIdStreamContainerHeadContext.swaggerGeneratedUnknown; } -enums.VideosItemIdStreamContainerHeadContext? videosItemIdStreamContainerHeadContextNullableFromJson( +enums.VideosItemIdStreamContainerHeadContext? +videosItemIdStreamContainerHeadContextNullableFromJson( Object? videosItemIdStreamContainerHeadContext, [ enums.VideosItemIdStreamContainerHeadContext? defaultValue, ]) { @@ -68587,13 +72860,18 @@ enums.VideosItemIdStreamContainerHeadContext? videosItemIdStreamContainerHeadCon } String videosItemIdStreamContainerHeadContextExplodedListToJson( - List? videosItemIdStreamContainerHeadContext, + List? + videosItemIdStreamContainerHeadContext, ) { - return videosItemIdStreamContainerHeadContext?.map((e) => e.value!).join(',') ?? ''; + return videosItemIdStreamContainerHeadContext + ?.map((e) => e.value!) + .join(',') ?? + ''; } List videosItemIdStreamContainerHeadContextListToJson( - List? videosItemIdStreamContainerHeadContext, + List? + videosItemIdStreamContainerHeadContext, ) { if (videosItemIdStreamContainerHeadContext == null) { return []; @@ -68602,7 +72880,8 @@ List videosItemIdStreamContainerHeadContextListToJson( return videosItemIdStreamContainerHeadContext.map((e) => e.value!).toList(); } -List videosItemIdStreamContainerHeadContextListFromJson( +List +videosItemIdStreamContainerHeadContextListFromJson( List? videosItemIdStreamContainerHeadContext, [ List? defaultValue, ]) { @@ -68615,7 +72894,8 @@ List videosItemIdStreamContainerHe .toList(); } -List? videosItemIdStreamContainerHeadContextNullableListFromJson( +List? +videosItemIdStreamContainerHeadContextNullableListFromJson( List? videosItemIdStreamContainerHeadContext, [ List? defaultValue, ]) { @@ -68668,7 +72948,8 @@ class $CustomJsonDecoder { return jsonFactory(values); } - List _decodeList(Iterable values) => values.where((v) => v != null).map((v) => decode(v) as T).toList(); + List _decodeList(Iterable values) => + values.where((v) => v != null).map((v) => decode(v) as T).toList(); } class $JsonSerializableConverter extends chopper.JsonConverter { @@ -68688,7 +72969,9 @@ class $JsonSerializableConverter extends chopper.JsonConverter { if (ResultType == DateTime) { return response.copyWith( - body: DateTime.parse((response.body as String).replaceAll('"', '')) as ResultType, + body: + DateTime.parse((response.body as String).replaceAll('"', '')) + as ResultType, ); } diff --git a/lib/jellyfin/jellyfin_open_api.swagger.g.dart b/lib/jellyfin/jellyfin_open_api.swagger.g.dart index 0284c6fb9..eb1fd2bdf 100644 --- a/lib/jellyfin/jellyfin_open_api.swagger.g.dart +++ b/lib/jellyfin/jellyfin_open_api.swagger.g.dart @@ -6,7 +6,8 @@ part of 'jellyfin_open_api.swagger.dart'; // JsonSerializableGenerator // ************************************************************************** -AccessSchedule _$AccessScheduleFromJson(Map json) => AccessSchedule( +AccessSchedule _$AccessScheduleFromJson(Map json) => + AccessSchedule( id: (json['Id'] as num?)?.toInt(), userId: json['UserId'] as String?, dayOfWeek: dynamicDayOfWeekNullableFromJson(json['DayOfWeek']), @@ -14,28 +15,33 @@ AccessSchedule _$AccessScheduleFromJson(Map json) => AccessSche endHour: (json['EndHour'] as num?)?.toDouble(), ); -Map _$AccessScheduleToJson(AccessSchedule instance) => { +Map _$AccessScheduleToJson(AccessSchedule instance) => + { if (instance.id case final value?) 'Id': value, if (instance.userId case final value?) 'UserId': value, - if (dynamicDayOfWeekNullableToJson(instance.dayOfWeek) case final value?) 'DayOfWeek': value, + if (dynamicDayOfWeekNullableToJson(instance.dayOfWeek) case final value?) + 'DayOfWeek': value, if (instance.startHour case final value?) 'StartHour': value, if (instance.endHour case final value?) 'EndHour': value, }; -ActivityLogEntry _$ActivityLogEntryFromJson(Map json) => ActivityLogEntry( +ActivityLogEntry _$ActivityLogEntryFromJson(Map json) => + ActivityLogEntry( id: (json['Id'] as num?)?.toInt(), name: json['Name'] as String?, overview: json['Overview'] as String?, shortOverview: json['ShortOverview'] as String?, type: json['Type'] as String?, itemId: json['ItemId'] as String?, - date: json['Date'] == null ? null : DateTime.parse(json['Date'] as String), + date: + json['Date'] == null ? null : DateTime.parse(json['Date'] as String), userId: json['UserId'] as String?, userPrimaryImageTag: json['UserPrimaryImageTag'] as String?, severity: logLevelNullableFromJson(json['Severity']), ); -Map _$ActivityLogEntryToJson(ActivityLogEntry instance) => { +Map _$ActivityLogEntryToJson(ActivityLogEntry instance) => + { if (instance.id case final value?) 'Id': value, if (instance.name case final value?) 'Name': value, if (instance.overview case final value?) 'Overview': value, @@ -44,25 +50,38 @@ Map _$ActivityLogEntryToJson(ActivityLogEntry instance) => json) => ActivityLogEntryMessage( - data: - (json['Data'] as List?)?.map((e) => ActivityLogEntry.fromJson(e as Map)).toList() ?? - [], +ActivityLogEntryMessage _$ActivityLogEntryMessageFromJson( + Map json) => + ActivityLogEntryMessage( + data: (json['Data'] as List?) + ?.map((e) => ActivityLogEntry.fromJson(e as Map)) + .toList() ?? + [], messageId: json['MessageId'] as String?, - messageType: ActivityLogEntryMessage.sessionMessageTypeMessageTypeNullableFromJson(json['MessageType']), + messageType: + ActivityLogEntryMessage.sessionMessageTypeMessageTypeNullableFromJson( + json['MessageType']), ); -Map _$ActivityLogEntryMessageToJson(ActivityLogEntryMessage instance) => { - if (instance.data?.map((e) => e.toJson()).toList() case final value?) 'Data': value, +Map _$ActivityLogEntryMessageToJson( + ActivityLogEntryMessage instance) => + { + if (instance.data?.map((e) => e.toJson()).toList() case final value?) + 'Data': value, if (instance.messageId case final value?) 'MessageId': value, - if (sessionMessageTypeNullableToJson(instance.messageType) case final value?) 'MessageType': value, + if (sessionMessageTypeNullableToJson(instance.messageType) + case final value?) + 'MessageType': value, }; -ActivityLogEntryQueryResult _$ActivityLogEntryQueryResultFromJson(Map json) => +ActivityLogEntryQueryResult _$ActivityLogEntryQueryResultFromJson( + Map json) => ActivityLogEntryQueryResult( items: (json['Items'] as List?) ?.map((e) => ActivityLogEntry.fromJson(e as Map)) @@ -72,40 +91,61 @@ ActivityLogEntryQueryResult _$ActivityLogEntryQueryResultFromJson(Map _$ActivityLogEntryQueryResultToJson(ActivityLogEntryQueryResult instance) => { - if (instance.items?.map((e) => e.toJson()).toList() case final value?) 'Items': value, - if (instance.totalRecordCount case final value?) 'TotalRecordCount': value, +Map _$ActivityLogEntryQueryResultToJson( + ActivityLogEntryQueryResult instance) => + { + if (instance.items?.map((e) => e.toJson()).toList() case final value?) + 'Items': value, + if (instance.totalRecordCount case final value?) + 'TotalRecordCount': value, if (instance.startIndex case final value?) 'StartIndex': value, }; -ActivityLogEntryStartMessage _$ActivityLogEntryStartMessageFromJson(Map json) => +ActivityLogEntryStartMessage _$ActivityLogEntryStartMessageFromJson( + Map json) => ActivityLogEntryStartMessage( data: json['Data'] as String?, - messageType: ActivityLogEntryStartMessage.sessionMessageTypeMessageTypeNullableFromJson(json['MessageType']), + messageType: ActivityLogEntryStartMessage + .sessionMessageTypeMessageTypeNullableFromJson(json['MessageType']), ); -Map _$ActivityLogEntryStartMessageToJson(ActivityLogEntryStartMessage instance) => { +Map _$ActivityLogEntryStartMessageToJson( + ActivityLogEntryStartMessage instance) => + { if (instance.data case final value?) 'Data': value, - if (sessionMessageTypeNullableToJson(instance.messageType) case final value?) 'MessageType': value, + if (sessionMessageTypeNullableToJson(instance.messageType) + case final value?) + 'MessageType': value, }; -ActivityLogEntryStopMessage _$ActivityLogEntryStopMessageFromJson(Map json) => +ActivityLogEntryStopMessage _$ActivityLogEntryStopMessageFromJson( + Map json) => ActivityLogEntryStopMessage( - messageType: ActivityLogEntryStopMessage.sessionMessageTypeMessageTypeNullableFromJson(json['MessageType']), + messageType: ActivityLogEntryStopMessage + .sessionMessageTypeMessageTypeNullableFromJson(json['MessageType']), ); -Map _$ActivityLogEntryStopMessageToJson(ActivityLogEntryStopMessage instance) => { - if (sessionMessageTypeNullableToJson(instance.messageType) case final value?) 'MessageType': value, +Map _$ActivityLogEntryStopMessageToJson( + ActivityLogEntryStopMessage instance) => + { + if (sessionMessageTypeNullableToJson(instance.messageType) + case final value?) + 'MessageType': value, }; -AddVirtualFolderDto _$AddVirtualFolderDtoFromJson(Map json) => AddVirtualFolderDto( +AddVirtualFolderDto _$AddVirtualFolderDtoFromJson(Map json) => + AddVirtualFolderDto( libraryOptions: json['LibraryOptions'] == null ? null - : LibraryOptions.fromJson(json['LibraryOptions'] as Map), + : LibraryOptions.fromJson( + json['LibraryOptions'] as Map), ); -Map _$AddVirtualFolderDtoToJson(AddVirtualFolderDto instance) => { - if (instance.libraryOptions?.toJson() case final value?) 'LibraryOptions': value, +Map _$AddVirtualFolderDtoToJson( + AddVirtualFolderDto instance) => + { + if (instance.libraryOptions?.toJson() case final value?) + 'LibraryOptions': value, }; AlbumInfo _$AlbumInfoFromJson(Map json) => AlbumInfo( @@ -118,63 +158,91 @@ AlbumInfo _$AlbumInfoFromJson(Map json) => AlbumInfo( year: (json['Year'] as num?)?.toInt(), indexNumber: (json['IndexNumber'] as num?)?.toInt(), parentIndexNumber: (json['ParentIndexNumber'] as num?)?.toInt(), - premiereDate: json['PremiereDate'] == null ? null : DateTime.parse(json['PremiereDate'] as String), + premiereDate: json['PremiereDate'] == null + ? null + : DateTime.parse(json['PremiereDate'] as String), isAutomated: json['IsAutomated'] as bool?, - albumArtists: (json['AlbumArtists'] as List?)?.map((e) => e as String).toList() ?? [], + albumArtists: (json['AlbumArtists'] as List?) + ?.map((e) => e as String) + .toList() ?? + [], artistProviderIds: json['ArtistProviderIds'] as Map?, - songInfos: - (json['SongInfos'] as List?)?.map((e) => SongInfo.fromJson(e as Map)).toList() ?? - [], + songInfos: (json['SongInfos'] as List?) + ?.map((e) => SongInfo.fromJson(e as Map)) + .toList() ?? + [], ); Map _$AlbumInfoToJson(AlbumInfo instance) => { if (instance.name case final value?) 'Name': value, if (instance.originalTitle case final value?) 'OriginalTitle': value, if (instance.path case final value?) 'Path': value, - if (instance.metadataLanguage case final value?) 'MetadataLanguage': value, - if (instance.metadataCountryCode case final value?) 'MetadataCountryCode': value, + if (instance.metadataLanguage case final value?) + 'MetadataLanguage': value, + if (instance.metadataCountryCode case final value?) + 'MetadataCountryCode': value, if (instance.providerIds case final value?) 'ProviderIds': value, if (instance.year case final value?) 'Year': value, if (instance.indexNumber case final value?) 'IndexNumber': value, - if (instance.parentIndexNumber case final value?) 'ParentIndexNumber': value, - if (instance.premiereDate?.toIso8601String() case final value?) 'PremiereDate': value, + if (instance.parentIndexNumber case final value?) + 'ParentIndexNumber': value, + if (instance.premiereDate?.toIso8601String() case final value?) + 'PremiereDate': value, if (instance.isAutomated case final value?) 'IsAutomated': value, if (instance.albumArtists case final value?) 'AlbumArtists': value, - if (instance.artistProviderIds case final value?) 'ArtistProviderIds': value, - if (instance.songInfos?.map((e) => e.toJson()).toList() case final value?) 'SongInfos': value, + if (instance.artistProviderIds case final value?) + 'ArtistProviderIds': value, + if (instance.songInfos?.map((e) => e.toJson()).toList() case final value?) + 'SongInfos': value, }; -AlbumInfoRemoteSearchQuery _$AlbumInfoRemoteSearchQueryFromJson(Map json) => +AlbumInfoRemoteSearchQuery _$AlbumInfoRemoteSearchQueryFromJson( + Map json) => AlbumInfoRemoteSearchQuery( - searchInfo: json['SearchInfo'] == null ? null : AlbumInfo.fromJson(json['SearchInfo'] as Map), + searchInfo: json['SearchInfo'] == null + ? null + : AlbumInfo.fromJson(json['SearchInfo'] as Map), itemId: json['ItemId'] as String?, searchProviderName: json['SearchProviderName'] as String?, includeDisabledProviders: json['IncludeDisabledProviders'] as bool?, ); -Map _$AlbumInfoRemoteSearchQueryToJson(AlbumInfoRemoteSearchQuery instance) => { +Map _$AlbumInfoRemoteSearchQueryToJson( + AlbumInfoRemoteSearchQuery instance) => + { if (instance.searchInfo?.toJson() case final value?) 'SearchInfo': value, if (instance.itemId case final value?) 'ItemId': value, - if (instance.searchProviderName case final value?) 'SearchProviderName': value, - if (instance.includeDisabledProviders case final value?) 'IncludeDisabledProviders': value, + if (instance.searchProviderName case final value?) + 'SearchProviderName': value, + if (instance.includeDisabledProviders case final value?) + 'IncludeDisabledProviders': value, }; -AllThemeMediaResult _$AllThemeMediaResultFromJson(Map json) => AllThemeMediaResult( +AllThemeMediaResult _$AllThemeMediaResultFromJson(Map json) => + AllThemeMediaResult( themeVideosResult: json['ThemeVideosResult'] == null ? null - : ThemeMediaResult.fromJson(json['ThemeVideosResult'] as Map), + : ThemeMediaResult.fromJson( + json['ThemeVideosResult'] as Map), themeSongsResult: json['ThemeSongsResult'] == null ? null - : ThemeMediaResult.fromJson(json['ThemeSongsResult'] as Map), + : ThemeMediaResult.fromJson( + json['ThemeSongsResult'] as Map), soundtrackSongsResult: json['SoundtrackSongsResult'] == null ? null - : ThemeMediaResult.fromJson(json['SoundtrackSongsResult'] as Map), + : ThemeMediaResult.fromJson( + json['SoundtrackSongsResult'] as Map), ); -Map _$AllThemeMediaResultToJson(AllThemeMediaResult instance) => { - if (instance.themeVideosResult?.toJson() case final value?) 'ThemeVideosResult': value, - if (instance.themeSongsResult?.toJson() case final value?) 'ThemeSongsResult': value, - if (instance.soundtrackSongsResult?.toJson() case final value?) 'SoundtrackSongsResult': value, +Map _$AllThemeMediaResultToJson( + AllThemeMediaResult instance) => + { + if (instance.themeVideosResult?.toJson() case final value?) + 'ThemeVideosResult': value, + if (instance.themeSongsResult?.toJson() case final value?) + 'ThemeSongsResult': value, + if (instance.soundtrackSongsResult?.toJson() case final value?) + 'SoundtrackSongsResult': value, }; ArtistInfo _$ArtistInfoFromJson(Map json) => ArtistInfo( @@ -187,54 +255,75 @@ ArtistInfo _$ArtistInfoFromJson(Map json) => ArtistInfo( year: (json['Year'] as num?)?.toInt(), indexNumber: (json['IndexNumber'] as num?)?.toInt(), parentIndexNumber: (json['ParentIndexNumber'] as num?)?.toInt(), - premiereDate: json['PremiereDate'] == null ? null : DateTime.parse(json['PremiereDate'] as String), + premiereDate: json['PremiereDate'] == null + ? null + : DateTime.parse(json['PremiereDate'] as String), isAutomated: json['IsAutomated'] as bool?, - songInfos: - (json['SongInfos'] as List?)?.map((e) => SongInfo.fromJson(e as Map)).toList() ?? - [], + songInfos: (json['SongInfos'] as List?) + ?.map((e) => SongInfo.fromJson(e as Map)) + .toList() ?? + [], ); -Map _$ArtistInfoToJson(ArtistInfo instance) => { +Map _$ArtistInfoToJson(ArtistInfo instance) => + { if (instance.name case final value?) 'Name': value, if (instance.originalTitle case final value?) 'OriginalTitle': value, if (instance.path case final value?) 'Path': value, - if (instance.metadataLanguage case final value?) 'MetadataLanguage': value, - if (instance.metadataCountryCode case final value?) 'MetadataCountryCode': value, + if (instance.metadataLanguage case final value?) + 'MetadataLanguage': value, + if (instance.metadataCountryCode case final value?) + 'MetadataCountryCode': value, if (instance.providerIds case final value?) 'ProviderIds': value, if (instance.year case final value?) 'Year': value, if (instance.indexNumber case final value?) 'IndexNumber': value, - if (instance.parentIndexNumber case final value?) 'ParentIndexNumber': value, - if (instance.premiereDate?.toIso8601String() case final value?) 'PremiereDate': value, + if (instance.parentIndexNumber case final value?) + 'ParentIndexNumber': value, + if (instance.premiereDate?.toIso8601String() case final value?) + 'PremiereDate': value, if (instance.isAutomated case final value?) 'IsAutomated': value, - if (instance.songInfos?.map((e) => e.toJson()).toList() case final value?) 'SongInfos': value, + if (instance.songInfos?.map((e) => e.toJson()).toList() case final value?) + 'SongInfos': value, }; -ArtistInfoRemoteSearchQuery _$ArtistInfoRemoteSearchQueryFromJson(Map json) => +ArtistInfoRemoteSearchQuery _$ArtistInfoRemoteSearchQueryFromJson( + Map json) => ArtistInfoRemoteSearchQuery( - searchInfo: json['SearchInfo'] == null ? null : ArtistInfo.fromJson(json['SearchInfo'] as Map), + searchInfo: json['SearchInfo'] == null + ? null + : ArtistInfo.fromJson(json['SearchInfo'] as Map), itemId: json['ItemId'] as String?, searchProviderName: json['SearchProviderName'] as String?, includeDisabledProviders: json['IncludeDisabledProviders'] as bool?, ); -Map _$ArtistInfoRemoteSearchQueryToJson(ArtistInfoRemoteSearchQuery instance) => { +Map _$ArtistInfoRemoteSearchQueryToJson( + ArtistInfoRemoteSearchQuery instance) => + { if (instance.searchInfo?.toJson() case final value?) 'SearchInfo': value, if (instance.itemId case final value?) 'ItemId': value, - if (instance.searchProviderName case final value?) 'SearchProviderName': value, - if (instance.includeDisabledProviders case final value?) 'IncludeDisabledProviders': value, + if (instance.searchProviderName case final value?) + 'SearchProviderName': value, + if (instance.includeDisabledProviders case final value?) + 'IncludeDisabledProviders': value, }; -AuthenticateUserByName _$AuthenticateUserByNameFromJson(Map json) => AuthenticateUserByName( +AuthenticateUserByName _$AuthenticateUserByNameFromJson( + Map json) => + AuthenticateUserByName( username: json['Username'] as String?, pw: json['Pw'] as String?, ); -Map _$AuthenticateUserByNameToJson(AuthenticateUserByName instance) => { +Map _$AuthenticateUserByNameToJson( + AuthenticateUserByName instance) => + { if (instance.username case final value?) 'Username': value, if (instance.pw case final value?) 'Pw': value, }; -AuthenticationInfo _$AuthenticationInfoFromJson(Map json) => AuthenticationInfo( +AuthenticationInfo _$AuthenticationInfoFromJson(Map json) => + AuthenticationInfo( id: (json['Id'] as num?)?.toInt(), accessToken: json['AccessToken'] as String?, deviceId: json['DeviceId'] as String?, @@ -243,13 +332,20 @@ AuthenticationInfo _$AuthenticationInfoFromJson(Map json) => Au deviceName: json['DeviceName'] as String?, userId: json['UserId'] as String?, isActive: json['IsActive'] as bool?, - dateCreated: json['DateCreated'] == null ? null : DateTime.parse(json['DateCreated'] as String), - dateRevoked: json['DateRevoked'] == null ? null : DateTime.parse(json['DateRevoked'] as String), - dateLastActivity: json['DateLastActivity'] == null ? null : DateTime.parse(json['DateLastActivity'] as String), + dateCreated: json['DateCreated'] == null + ? null + : DateTime.parse(json['DateCreated'] as String), + dateRevoked: json['DateRevoked'] == null + ? null + : DateTime.parse(json['DateRevoked'] as String), + dateLastActivity: json['DateLastActivity'] == null + ? null + : DateTime.parse(json['DateLastActivity'] as String), userName: json['UserName'] as String?, ); -Map _$AuthenticationInfoToJson(AuthenticationInfo instance) => { +Map _$AuthenticationInfoToJson(AuthenticationInfo instance) => + { if (instance.id case final value?) 'Id': value, if (instance.accessToken case final value?) 'AccessToken': value, if (instance.deviceId case final value?) 'DeviceId': value, @@ -258,78 +354,110 @@ Map _$AuthenticationInfoToJson(AuthenticationInfo instance) => if (instance.deviceName case final value?) 'DeviceName': value, if (instance.userId case final value?) 'UserId': value, if (instance.isActive case final value?) 'IsActive': value, - if (instance.dateCreated?.toIso8601String() case final value?) 'DateCreated': value, - if (instance.dateRevoked?.toIso8601String() case final value?) 'DateRevoked': value, - if (instance.dateLastActivity?.toIso8601String() case final value?) 'DateLastActivity': value, + if (instance.dateCreated?.toIso8601String() case final value?) + 'DateCreated': value, + if (instance.dateRevoked?.toIso8601String() case final value?) + 'DateRevoked': value, + if (instance.dateLastActivity?.toIso8601String() case final value?) + 'DateLastActivity': value, if (instance.userName case final value?) 'UserName': value, }; -AuthenticationInfoQueryResult _$AuthenticationInfoQueryResultFromJson(Map json) => +AuthenticationInfoQueryResult _$AuthenticationInfoQueryResultFromJson( + Map json) => AuthenticationInfoQueryResult( items: (json['Items'] as List?) - ?.map((e) => AuthenticationInfo.fromJson(e as Map)) + ?.map( + (e) => AuthenticationInfo.fromJson(e as Map)) .toList() ?? [], totalRecordCount: (json['TotalRecordCount'] as num?)?.toInt(), startIndex: (json['StartIndex'] as num?)?.toInt(), ); -Map _$AuthenticationInfoQueryResultToJson(AuthenticationInfoQueryResult instance) => { - if (instance.items?.map((e) => e.toJson()).toList() case final value?) 'Items': value, - if (instance.totalRecordCount case final value?) 'TotalRecordCount': value, +Map _$AuthenticationInfoQueryResultToJson( + AuthenticationInfoQueryResult instance) => + { + if (instance.items?.map((e) => e.toJson()).toList() case final value?) + 'Items': value, + if (instance.totalRecordCount case final value?) + 'TotalRecordCount': value, if (instance.startIndex case final value?) 'StartIndex': value, }; -AuthenticationResult _$AuthenticationResultFromJson(Map json) => AuthenticationResult( - user: json['User'] == null ? null : UserDto.fromJson(json['User'] as Map), - sessionInfo: - json['SessionInfo'] == null ? null : SessionInfoDto.fromJson(json['SessionInfo'] as Map), +AuthenticationResult _$AuthenticationResultFromJson( + Map json) => + AuthenticationResult( + user: json['User'] == null + ? null + : UserDto.fromJson(json['User'] as Map), + sessionInfo: json['SessionInfo'] == null + ? null + : SessionInfoDto.fromJson( + json['SessionInfo'] as Map), accessToken: json['AccessToken'] as String?, serverId: json['ServerId'] as String?, ); -Map _$AuthenticationResultToJson(AuthenticationResult instance) => { +Map _$AuthenticationResultToJson( + AuthenticationResult instance) => + { if (instance.user?.toJson() case final value?) 'User': value, - if (instance.sessionInfo?.toJson() case final value?) 'SessionInfo': value, + if (instance.sessionInfo?.toJson() case final value?) + 'SessionInfo': value, if (instance.accessToken case final value?) 'AccessToken': value, if (instance.serverId case final value?) 'ServerId': value, }; -BackupManifestDto _$BackupManifestDtoFromJson(Map json) => BackupManifestDto( +BackupManifestDto _$BackupManifestDtoFromJson(Map json) => + BackupManifestDto( serverVersion: json['ServerVersion'] as String?, backupEngineVersion: json['BackupEngineVersion'] as String?, - dateCreated: json['DateCreated'] == null ? null : DateTime.parse(json['DateCreated'] as String), + dateCreated: json['DateCreated'] == null + ? null + : DateTime.parse(json['DateCreated'] as String), path: json['Path'] as String?, - options: json['Options'] == null ? null : BackupOptionsDto.fromJson(json['Options'] as Map), + options: json['Options'] == null + ? null + : BackupOptionsDto.fromJson(json['Options'] as Map), ); -Map _$BackupManifestDtoToJson(BackupManifestDto instance) => { +Map _$BackupManifestDtoToJson(BackupManifestDto instance) => + { if (instance.serverVersion case final value?) 'ServerVersion': value, - if (instance.backupEngineVersion case final value?) 'BackupEngineVersion': value, - if (instance.dateCreated?.toIso8601String() case final value?) 'DateCreated': value, + if (instance.backupEngineVersion case final value?) + 'BackupEngineVersion': value, + if (instance.dateCreated?.toIso8601String() case final value?) + 'DateCreated': value, if (instance.path case final value?) 'Path': value, if (instance.options?.toJson() case final value?) 'Options': value, }; -BackupOptionsDto _$BackupOptionsDtoFromJson(Map json) => BackupOptionsDto( +BackupOptionsDto _$BackupOptionsDtoFromJson(Map json) => + BackupOptionsDto( metadata: json['Metadata'] as bool?, trickplay: json['Trickplay'] as bool?, subtitles: json['Subtitles'] as bool?, database: json['Database'] as bool?, ); -Map _$BackupOptionsDtoToJson(BackupOptionsDto instance) => { +Map _$BackupOptionsDtoToJson(BackupOptionsDto instance) => + { if (instance.metadata case final value?) 'Metadata': value, if (instance.trickplay case final value?) 'Trickplay': value, if (instance.subtitles case final value?) 'Subtitles': value, if (instance.database case final value?) 'Database': value, }; -BackupRestoreRequestDto _$BackupRestoreRequestDtoFromJson(Map json) => BackupRestoreRequestDto( +BackupRestoreRequestDto _$BackupRestoreRequestDtoFromJson( + Map json) => + BackupRestoreRequestDto( archiveFileName: json['ArchiveFileName'] as String?, ); -Map _$BackupRestoreRequestDtoToJson(BackupRestoreRequestDto instance) => { +Map _$BackupRestoreRequestDtoToJson( + BackupRestoreRequestDto instance) => + { if (instance.archiveFileName case final value?) 'ArchiveFileName': value, }; @@ -341,24 +469,31 @@ BaseItemDto _$BaseItemDtoFromJson(Map json) => BaseItemDto( etag: json['Etag'] as String?, sourceType: json['SourceType'] as String?, playlistItemId: json['PlaylistItemId'] as String?, - dateCreated: json['DateCreated'] == null ? null : DateTime.parse(json['DateCreated'] as String), - dateLastMediaAdded: - json['DateLastMediaAdded'] == null ? null : DateTime.parse(json['DateLastMediaAdded'] as String), + dateCreated: json['DateCreated'] == null + ? null + : DateTime.parse(json['DateCreated'] as String), + dateLastMediaAdded: json['DateLastMediaAdded'] == null + ? null + : DateTime.parse(json['DateLastMediaAdded'] as String), extraType: extraTypeNullableFromJson(json['ExtraType']), airsBeforeSeasonNumber: (json['AirsBeforeSeasonNumber'] as num?)?.toInt(), airsAfterSeasonNumber: (json['AirsAfterSeasonNumber'] as num?)?.toInt(), - airsBeforeEpisodeNumber: (json['AirsBeforeEpisodeNumber'] as num?)?.toInt(), + airsBeforeEpisodeNumber: + (json['AirsBeforeEpisodeNumber'] as num?)?.toInt(), canDelete: json['CanDelete'] as bool?, canDownload: json['CanDownload'] as bool?, hasLyrics: json['HasLyrics'] as bool?, hasSubtitles: json['HasSubtitles'] as bool?, preferredMetadataLanguage: json['PreferredMetadataLanguage'] as String?, - preferredMetadataCountryCode: json['PreferredMetadataCountryCode'] as String?, + preferredMetadataCountryCode: + json['PreferredMetadataCountryCode'] as String?, container: json['Container'] as String?, sortName: json['SortName'] as String?, forcedSortName: json['ForcedSortName'] as String?, video3DFormat: video3DFormatNullableFromJson(json['Video3DFormat']), - premiereDate: json['PremiereDate'] == null ? null : DateTime.parse(json['PremiereDate'] as String), + premiereDate: json['PremiereDate'] == null + ? null + : DateTime.parse(json['PremiereDate'] as String), externalUrls: (json['ExternalUrls'] as List?) ?.map((e) => ExternalUrl.fromJson(e as Map)) .toList() ?? @@ -368,7 +503,10 @@ BaseItemDto _$BaseItemDtoFromJson(Map json) => BaseItemDto( .toList() ?? [], criticRating: (json['CriticRating'] as num?)?.toDouble(), - productionLocations: (json['ProductionLocations'] as List?)?.map((e) => e as String).toList() ?? [], + productionLocations: (json['ProductionLocations'] as List?) + ?.map((e) => e as String) + .toList() ?? + [], path: json['Path'] as String?, enableMediaSourceDisplay: json['EnableMediaSourceDisplay'] as bool?, officialRating: json['OfficialRating'] as String?, @@ -376,8 +514,14 @@ BaseItemDto _$BaseItemDtoFromJson(Map json) => BaseItemDto( channelId: json['ChannelId'] as String?, channelName: json['ChannelName'] as String?, overview: json['Overview'] as String?, - taglines: (json['Taglines'] as List?)?.map((e) => e as String).toList() ?? [], - genres: (json['Genres'] as List?)?.map((e) => e as String).toList() ?? [], + taglines: (json['Taglines'] as List?) + ?.map((e) => e as String) + .toList() ?? + [], + genres: (json['Genres'] as List?) + ?.map((e) => e as String) + .toList() ?? + [], communityRating: (json['CommunityRating'] as num?)?.toDouble(), cumulativeRunTimeTicks: (json['CumulativeRunTimeTicks'] as num?)?.toInt(), runTimeTicks: (json['RunTimeTicks'] as num?)?.toInt(), @@ -399,12 +543,14 @@ BaseItemDto _$BaseItemDtoFromJson(Map json) => BaseItemDto( isFolder: json['IsFolder'] as bool?, parentId: json['ParentId'] as String?, type: baseItemKindNullableFromJson(json['Type']), - people: - (json['People'] as List?)?.map((e) => BaseItemPerson.fromJson(e as Map)).toList() ?? - [], - studios: - (json['Studios'] as List?)?.map((e) => NameGuidPair.fromJson(e as Map)).toList() ?? - [], + people: (json['People'] as List?) + ?.map((e) => BaseItemPerson.fromJson(e as Map)) + .toList() ?? + [], + studios: (json['Studios'] as List?) + ?.map((e) => NameGuidPair.fromJson(e as Map)) + .toList() ?? + [], genreItems: (json['GenreItems'] as List?) ?.map((e) => NameGuidPair.fromJson(e as Map)) .toList() ?? @@ -412,9 +558,14 @@ BaseItemDto _$BaseItemDtoFromJson(Map json) => BaseItemDto( parentLogoItemId: json['ParentLogoItemId'] as String?, parentBackdropItemId: json['ParentBackdropItemId'] as String?, parentBackdropImageTags: - (json['ParentBackdropImageTags'] as List?)?.map((e) => e as String).toList() ?? [], + (json['ParentBackdropImageTags'] as List?) + ?.map((e) => e as String) + .toList() ?? + [], localTrailerCount: (json['LocalTrailerCount'] as num?)?.toInt(), - userData: json['UserData'] == null ? null : UserItemDataDto.fromJson(json['UserData'] as Map), + userData: json['UserData'] == null + ? null + : UserItemDataDto.fromJson(json['UserData'] as Map), recursiveItemCount: (json['RecursiveItemCount'] as num?)?.toInt(), childCount: (json['ChildCount'] as num?)?.toInt(), seriesName: json['SeriesName'] as String?, @@ -425,9 +576,15 @@ BaseItemDto _$BaseItemDtoFromJson(Map json) => BaseItemDto( status: json['Status'] as String?, airTime: json['AirTime'] as String?, airDays: dayOfWeekListFromJson(json['AirDays'] as List?), - tags: (json['Tags'] as List?)?.map((e) => e as String).toList() ?? [], - primaryImageAspectRatio: (json['PrimaryImageAspectRatio'] as num?)?.toDouble(), - artists: (json['Artists'] as List?)?.map((e) => e as String).toList() ?? [], + tags: + (json['Tags'] as List?)?.map((e) => e as String).toList() ?? + [], + primaryImageAspectRatio: + (json['PrimaryImageAspectRatio'] as num?)?.toDouble(), + artists: (json['Artists'] as List?) + ?.map((e) => e as String) + .toList() ?? + [], artistItems: (json['ArtistItems'] as List?) ?.map((e) => NameGuidPair.fromJson(e as Map)) .toList() ?? @@ -452,28 +609,39 @@ BaseItemDto _$BaseItemDtoFromJson(Map json) => BaseItemDto( partCount: (json['PartCount'] as num?)?.toInt(), mediaSourceCount: (json['MediaSourceCount'] as num?)?.toInt(), imageTags: json['ImageTags'] as Map?, - backdropImageTags: (json['BackdropImageTags'] as List?)?.map((e) => e as String).toList() ?? [], - screenshotImageTags: (json['ScreenshotImageTags'] as List?)?.map((e) => e as String).toList() ?? [], + backdropImageTags: (json['BackdropImageTags'] as List?) + ?.map((e) => e as String) + .toList() ?? + [], + screenshotImageTags: (json['ScreenshotImageTags'] as List?) + ?.map((e) => e as String) + .toList() ?? + [], parentLogoImageTag: json['ParentLogoImageTag'] as String?, parentArtItemId: json['ParentArtItemId'] as String?, parentArtImageTag: json['ParentArtImageTag'] as String?, seriesThumbImageTag: json['SeriesThumbImageTag'] as String?, imageBlurHashes: json['ImageBlurHashes'] == null ? null - : BaseItemDto$ImageBlurHashes.fromJson(json['ImageBlurHashes'] as Map), + : BaseItemDto$ImageBlurHashes.fromJson( + json['ImageBlurHashes'] as Map), seriesStudio: json['SeriesStudio'] as String?, parentThumbItemId: json['ParentThumbItemId'] as String?, parentThumbImageTag: json['ParentThumbImageTag'] as String?, parentPrimaryImageItemId: json['ParentPrimaryImageItemId'] as String?, parentPrimaryImageTag: json['ParentPrimaryImageTag'] as String?, - chapters: - (json['Chapters'] as List?)?.map((e) => ChapterInfo.fromJson(e as Map)).toList() ?? - [], + chapters: (json['Chapters'] as List?) + ?.map((e) => ChapterInfo.fromJson(e as Map)) + .toList() ?? + [], trickplay: json['Trickplay'] as Map?, locationType: locationTypeNullableFromJson(json['LocationType']), isoType: isoTypeNullableFromJson(json['IsoType']), - mediaType: BaseItemDto.mediaTypeMediaTypeNullableFromJson(json['MediaType']), - endDate: json['EndDate'] == null ? null : DateTime.parse(json['EndDate'] as String), + mediaType: + BaseItemDto.mediaTypeMediaTypeNullableFromJson(json['MediaType']), + endDate: json['EndDate'] == null + ? null + : DateTime.parse(json['EndDate'] as String), lockedFields: metadataFieldListFromJson(json['LockedFields'] as List?), trailerCount: (json['TrailerCount'] as num?)?.toInt(), movieCount: (json['MovieCount'] as num?)?.toInt(), @@ -492,7 +660,8 @@ BaseItemDto _$BaseItemDtoFromJson(Map json) => BaseItemDto( software: json['Software'] as String?, exposureTime: (json['ExposureTime'] as num?)?.toDouble(), focalLength: (json['FocalLength'] as num?)?.toDouble(), - imageOrientation: imageOrientationNullableFromJson(json['ImageOrientation']), + imageOrientation: + imageOrientationNullableFromJson(json['ImageOrientation']), aperture: (json['Aperture'] as num?)?.toDouble(), shutterSpeed: (json['ShutterSpeed'] as num?)?.toDouble(), latitude: (json['Latitude'] as num?)?.toDouble(), @@ -502,7 +671,9 @@ BaseItemDto _$BaseItemDtoFromJson(Map json) => BaseItemDto( seriesTimerId: json['SeriesTimerId'] as String?, programId: json['ProgramId'] as String?, channelPrimaryImageTag: json['ChannelPrimaryImageTag'] as String?, - startDate: json['StartDate'] == null ? null : DateTime.parse(json['StartDate'] as String), + startDate: json['StartDate'] == null + ? null + : DateTime.parse(json['StartDate'] as String), completionPercentage: (json['CompletionPercentage'] as num?)?.toDouble(), isRepeat: json['IsRepeat'] as bool?, episodeTitle: json['EpisodeTitle'] as String?, @@ -517,11 +688,14 @@ BaseItemDto _$BaseItemDtoFromJson(Map json) => BaseItemDto( isPremiere: json['IsPremiere'] as bool?, timerId: json['TimerId'] as String?, normalizationGain: (json['NormalizationGain'] as num?)?.toDouble(), - currentProgram: - json['CurrentProgram'] == null ? null : BaseItemDto.fromJson(json['CurrentProgram'] as Map), + currentProgram: json['CurrentProgram'] == null + ? null + : BaseItemDto.fromJson( + json['CurrentProgram'] as Map), ); -Map _$BaseItemDtoToJson(BaseItemDto instance) => { +Map _$BaseItemDtoToJson(BaseItemDto instance) => + { if (instance.name case final value?) 'Name': value, if (instance.originalTitle case final value?) 'OriginalTitle': value, if (instance.serverId case final value?) 'ServerId': value, @@ -529,29 +703,45 @@ Map _$BaseItemDtoToJson(BaseItemDto instance) => e.toJson()).toList() case final value?) 'ExternalUrls': value, - if (instance.mediaSources?.map((e) => e.toJson()).toList() case final value?) 'MediaSources': value, + if (video3DFormatNullableToJson(instance.video3DFormat) case final value?) + 'Video3DFormat': value, + if (instance.premiereDate?.toIso8601String() case final value?) + 'PremiereDate': value, + if (instance.externalUrls?.map((e) => e.toJson()).toList() + case final value?) + 'ExternalUrls': value, + if (instance.mediaSources?.map((e) => e.toJson()).toList() + case final value?) + 'MediaSources': value, if (instance.criticRating case final value?) 'CriticRating': value, - if (instance.productionLocations case final value?) 'ProductionLocations': value, + if (instance.productionLocations case final value?) + 'ProductionLocations': value, if (instance.path case final value?) 'Path': value, - if (instance.enableMediaSourceDisplay case final value?) 'EnableMediaSourceDisplay': value, + if (instance.enableMediaSourceDisplay case final value?) + 'EnableMediaSourceDisplay': value, if (instance.officialRating case final value?) 'OfficialRating': value, if (instance.customRating case final value?) 'CustomRating': value, if (instance.channelId case final value?) 'ChannelId': value, @@ -560,9 +750,11 @@ Map _$BaseItemDtoToJson(BaseItemDto instance) => _$BaseItemDtoToJson(BaseItemDto instance) => e.toJson()).toList() case final value?) 'RemoteTrailers': value, + if (instance.parentIndexNumber case final value?) + 'ParentIndexNumber': value, + if (instance.remoteTrailers?.map((e) => e.toJson()).toList() + case final value?) + 'RemoteTrailers': value, if (instance.providerIds case final value?) 'ProviderIds': value, if (instance.isHD case final value?) 'IsHD': value, if (instance.isFolder case final value?) 'IsFolder': value, if (instance.parentId case final value?) 'ParentId': value, - if (baseItemKindNullableToJson(instance.type) case final value?) 'Type': value, - if (instance.people?.map((e) => e.toJson()).toList() case final value?) 'People': value, - if (instance.studios?.map((e) => e.toJson()).toList() case final value?) 'Studios': value, - if (instance.genreItems?.map((e) => e.toJson()).toList() case final value?) 'GenreItems': value, - if (instance.parentLogoItemId case final value?) 'ParentLogoItemId': value, - if (instance.parentBackdropItemId case final value?) 'ParentBackdropItemId': value, - if (instance.parentBackdropImageTags case final value?) 'ParentBackdropImageTags': value, - if (instance.localTrailerCount case final value?) 'LocalTrailerCount': value, + if (baseItemKindNullableToJson(instance.type) case final value?) + 'Type': value, + if (instance.people?.map((e) => e.toJson()).toList() case final value?) + 'People': value, + if (instance.studios?.map((e) => e.toJson()).toList() case final value?) + 'Studios': value, + if (instance.genreItems?.map((e) => e.toJson()).toList() + case final value?) + 'GenreItems': value, + if (instance.parentLogoItemId case final value?) + 'ParentLogoItemId': value, + if (instance.parentBackdropItemId case final value?) + 'ParentBackdropItemId': value, + if (instance.parentBackdropImageTags case final value?) + 'ParentBackdropImageTags': value, + if (instance.localTrailerCount case final value?) + 'LocalTrailerCount': value, if (instance.userData?.toJson() case final value?) 'UserData': value, - if (instance.recursiveItemCount case final value?) 'RecursiveItemCount': value, + if (instance.recursiveItemCount case final value?) + 'RecursiveItemCount': value, if (instance.childCount case final value?) 'ChildCount': value, if (instance.seriesName case final value?) 'SeriesName': value, if (instance.seriesId case final value?) 'SeriesId': value, if (instance.seasonId case final value?) 'SeasonId': value, - if (instance.specialFeatureCount case final value?) 'SpecialFeatureCount': value, - if (instance.displayPreferencesId case final value?) 'DisplayPreferencesId': value, + if (instance.specialFeatureCount case final value?) + 'SpecialFeatureCount': value, + if (instance.displayPreferencesId case final value?) + 'DisplayPreferencesId': value, if (instance.status case final value?) 'Status': value, if (instance.airTime case final value?) 'AirTime': value, 'AirDays': dayOfWeekListToJson(instance.airDays), if (instance.tags case final value?) 'Tags': value, - if (instance.primaryImageAspectRatio case final value?) 'PrimaryImageAspectRatio': value, + if (instance.primaryImageAspectRatio case final value?) + 'PrimaryImageAspectRatio': value, if (instance.artists case final value?) 'Artists': value, - if (instance.artistItems?.map((e) => e.toJson()).toList() case final value?) 'ArtistItems': value, + if (instance.artistItems?.map((e) => e.toJson()).toList() + case final value?) + 'ArtistItems': value, if (instance.album case final value?) 'Album': value, - if (collectionTypeNullableToJson(instance.collectionType) case final value?) 'CollectionType': value, + if (collectionTypeNullableToJson(instance.collectionType) + case final value?) + 'CollectionType': value, if (instance.displayOrder case final value?) 'DisplayOrder': value, if (instance.albumId case final value?) 'AlbumId': value, - if (instance.albumPrimaryImageTag case final value?) 'AlbumPrimaryImageTag': value, - if (instance.seriesPrimaryImageTag case final value?) 'SeriesPrimaryImageTag': value, + if (instance.albumPrimaryImageTag case final value?) + 'AlbumPrimaryImageTag': value, + if (instance.seriesPrimaryImageTag case final value?) + 'SeriesPrimaryImageTag': value, if (instance.albumArtist case final value?) 'AlbumArtist': value, - if (instance.albumArtists?.map((e) => e.toJson()).toList() case final value?) 'AlbumArtists': value, + if (instance.albumArtists?.map((e) => e.toJson()).toList() + case final value?) + 'AlbumArtists': value, if (instance.seasonName case final value?) 'SeasonName': value, - if (instance.mediaStreams?.map((e) => e.toJson()).toList() case final value?) 'MediaStreams': value, - if (videoTypeNullableToJson(instance.videoType) case final value?) 'VideoType': value, + if (instance.mediaStreams?.map((e) => e.toJson()).toList() + case final value?) + 'MediaStreams': value, + if (videoTypeNullableToJson(instance.videoType) case final value?) + 'VideoType': value, if (instance.partCount case final value?) 'PartCount': value, - if (instance.mediaSourceCount case final value?) 'MediaSourceCount': value, + if (instance.mediaSourceCount case final value?) + 'MediaSourceCount': value, if (instance.imageTags case final value?) 'ImageTags': value, - if (instance.backdropImageTags case final value?) 'BackdropImageTags': value, - if (instance.screenshotImageTags case final value?) 'ScreenshotImageTags': value, - if (instance.parentLogoImageTag case final value?) 'ParentLogoImageTag': value, + if (instance.backdropImageTags case final value?) + 'BackdropImageTags': value, + if (instance.screenshotImageTags case final value?) + 'ScreenshotImageTags': value, + if (instance.parentLogoImageTag case final value?) + 'ParentLogoImageTag': value, if (instance.parentArtItemId case final value?) 'ParentArtItemId': value, - if (instance.parentArtImageTag case final value?) 'ParentArtImageTag': value, - if (instance.seriesThumbImageTag case final value?) 'SeriesThumbImageTag': value, - if (instance.imageBlurHashes?.toJson() case final value?) 'ImageBlurHashes': value, + if (instance.parentArtImageTag case final value?) + 'ParentArtImageTag': value, + if (instance.seriesThumbImageTag case final value?) + 'SeriesThumbImageTag': value, + if (instance.imageBlurHashes?.toJson() case final value?) + 'ImageBlurHashes': value, if (instance.seriesStudio case final value?) 'SeriesStudio': value, - if (instance.parentThumbItemId case final value?) 'ParentThumbItemId': value, - if (instance.parentThumbImageTag case final value?) 'ParentThumbImageTag': value, - if (instance.parentPrimaryImageItemId case final value?) 'ParentPrimaryImageItemId': value, - if (instance.parentPrimaryImageTag case final value?) 'ParentPrimaryImageTag': value, - if (instance.chapters?.map((e) => e.toJson()).toList() case final value?) 'Chapters': value, + if (instance.parentThumbItemId case final value?) + 'ParentThumbItemId': value, + if (instance.parentThumbImageTag case final value?) + 'ParentThumbImageTag': value, + if (instance.parentPrimaryImageItemId case final value?) + 'ParentPrimaryImageItemId': value, + if (instance.parentPrimaryImageTag case final value?) + 'ParentPrimaryImageTag': value, + if (instance.chapters?.map((e) => e.toJson()).toList() case final value?) + 'Chapters': value, if (instance.trickplay case final value?) 'Trickplay': value, - if (locationTypeNullableToJson(instance.locationType) case final value?) 'LocationType': value, - if (isoTypeNullableToJson(instance.isoType) case final value?) 'IsoType': value, - if (mediaTypeNullableToJson(instance.mediaType) case final value?) 'MediaType': value, - if (instance.endDate?.toIso8601String() case final value?) 'EndDate': value, + if (locationTypeNullableToJson(instance.locationType) case final value?) + 'LocationType': value, + if (isoTypeNullableToJson(instance.isoType) case final value?) + 'IsoType': value, + if (mediaTypeNullableToJson(instance.mediaType) case final value?) + 'MediaType': value, + if (instance.endDate?.toIso8601String() case final value?) + 'EndDate': value, 'LockedFields': metadataFieldListToJson(instance.lockedFields), if (instance.trailerCount case final value?) 'TrailerCount': value, if (instance.movieCount case final value?) 'MovieCount': value, @@ -649,7 +884,9 @@ Map _$BaseItemDtoToJson(BaseItemDto instance) => _$BaseItemDtoToJson(BaseItemDto instance) => _$BaseItemDtoToJson(BaseItemDto instance) => json) => BaseItemDtoQueryResult( - items: - (json['Items'] as List?)?.map((e) => BaseItemDto.fromJson(e as Map)).toList() ?? [], +BaseItemDtoQueryResult _$BaseItemDtoQueryResultFromJson( + Map json) => + BaseItemDtoQueryResult( + items: (json['Items'] as List?) + ?.map((e) => BaseItemDto.fromJson(e as Map)) + .toList() ?? + [], totalRecordCount: (json['TotalRecordCount'] as num?)?.toInt(), startIndex: (json['StartIndex'] as num?)?.toInt(), ); -Map _$BaseItemDtoQueryResultToJson(BaseItemDtoQueryResult instance) => { - if (instance.items?.map((e) => e.toJson()).toList() case final value?) 'Items': value, - if (instance.totalRecordCount case final value?) 'TotalRecordCount': value, +Map _$BaseItemDtoQueryResultToJson( + BaseItemDtoQueryResult instance) => + { + if (instance.items?.map((e) => e.toJson()).toList() case final value?) + 'Items': value, + if (instance.totalRecordCount case final value?) + 'TotalRecordCount': value, if (instance.startIndex case final value?) 'StartIndex': value, }; -BaseItemPerson _$BaseItemPersonFromJson(Map json) => BaseItemPerson( +BaseItemPerson _$BaseItemPersonFromJson(Map json) => + BaseItemPerson( name: json['Name'] as String?, id: json['Id'] as String?, role: json['Role'] as String?, @@ -698,21 +951,29 @@ BaseItemPerson _$BaseItemPersonFromJson(Map json) => BaseItemPe primaryImageTag: json['PrimaryImageTag'] as String?, imageBlurHashes: json['ImageBlurHashes'] == null ? null - : BaseItemPerson$ImageBlurHashes.fromJson(json['ImageBlurHashes'] as Map), + : BaseItemPerson$ImageBlurHashes.fromJson( + json['ImageBlurHashes'] as Map), ); -Map _$BaseItemPersonToJson(BaseItemPerson instance) => { +Map _$BaseItemPersonToJson(BaseItemPerson instance) => + { if (instance.name case final value?) 'Name': value, if (instance.id case final value?) 'Id': value, if (instance.role case final value?) 'Role': value, - if (personKindNullableToJson(instance.type) case final value?) 'Type': value, + if (personKindNullableToJson(instance.type) case final value?) + 'Type': value, if (instance.primaryImageTag case final value?) 'PrimaryImageTag': value, - if (instance.imageBlurHashes?.toJson() case final value?) 'ImageBlurHashes': value, + if (instance.imageBlurHashes?.toJson() case final value?) + 'ImageBlurHashes': value, }; -BasePluginConfiguration _$BasePluginConfigurationFromJson(Map json) => BasePluginConfiguration(); +BasePluginConfiguration _$BasePluginConfigurationFromJson( + Map json) => + BasePluginConfiguration(); -Map _$BasePluginConfigurationToJson(BasePluginConfiguration instance) => {}; +Map _$BasePluginConfigurationToJson( + BasePluginConfiguration instance) => + {}; BookInfo _$BookInfoFromJson(Map json) => BookInfo( name: json['Name'] as String?, @@ -724,7 +985,9 @@ BookInfo _$BookInfoFromJson(Map json) => BookInfo( year: (json['Year'] as num?)?.toInt(), indexNumber: (json['IndexNumber'] as num?)?.toInt(), parentIndexNumber: (json['ParentIndexNumber'] as num?)?.toInt(), - premiereDate: json['PremiereDate'] == null ? null : DateTime.parse(json['PremiereDate'] as String), + premiereDate: json['PremiereDate'] == null + ? null + : DateTime.parse(json['PremiereDate'] as String), isAutomated: json['IsAutomated'] as bool?, seriesName: json['SeriesName'] as String?, ); @@ -733,29 +996,41 @@ Map _$BookInfoToJson(BookInfo instance) => { if (instance.name case final value?) 'Name': value, if (instance.originalTitle case final value?) 'OriginalTitle': value, if (instance.path case final value?) 'Path': value, - if (instance.metadataLanguage case final value?) 'MetadataLanguage': value, - if (instance.metadataCountryCode case final value?) 'MetadataCountryCode': value, + if (instance.metadataLanguage case final value?) + 'MetadataLanguage': value, + if (instance.metadataCountryCode case final value?) + 'MetadataCountryCode': value, if (instance.providerIds case final value?) 'ProviderIds': value, if (instance.year case final value?) 'Year': value, if (instance.indexNumber case final value?) 'IndexNumber': value, - if (instance.parentIndexNumber case final value?) 'ParentIndexNumber': value, - if (instance.premiereDate?.toIso8601String() case final value?) 'PremiereDate': value, + if (instance.parentIndexNumber case final value?) + 'ParentIndexNumber': value, + if (instance.premiereDate?.toIso8601String() case final value?) + 'PremiereDate': value, if (instance.isAutomated case final value?) 'IsAutomated': value, if (instance.seriesName case final value?) 'SeriesName': value, }; -BookInfoRemoteSearchQuery _$BookInfoRemoteSearchQueryFromJson(Map json) => BookInfoRemoteSearchQuery( - searchInfo: json['SearchInfo'] == null ? null : BookInfo.fromJson(json['SearchInfo'] as Map), +BookInfoRemoteSearchQuery _$BookInfoRemoteSearchQueryFromJson( + Map json) => + BookInfoRemoteSearchQuery( + searchInfo: json['SearchInfo'] == null + ? null + : BookInfo.fromJson(json['SearchInfo'] as Map), itemId: json['ItemId'] as String?, searchProviderName: json['SearchProviderName'] as String?, includeDisabledProviders: json['IncludeDisabledProviders'] as bool?, ); -Map _$BookInfoRemoteSearchQueryToJson(BookInfoRemoteSearchQuery instance) => { +Map _$BookInfoRemoteSearchQueryToJson( + BookInfoRemoteSearchQuery instance) => + { if (instance.searchInfo?.toJson() case final value?) 'SearchInfo': value, if (instance.itemId case final value?) 'ItemId': value, - if (instance.searchProviderName case final value?) 'SearchProviderName': value, - if (instance.includeDisabledProviders case final value?) 'IncludeDisabledProviders': value, + if (instance.searchProviderName case final value?) + 'SearchProviderName': value, + if (instance.includeDisabledProviders case final value?) + 'IncludeDisabledProviders': value, }; BoxSetInfo _$BoxSetInfoFromJson(Map json) => BoxSetInfo( @@ -768,108 +1043,144 @@ BoxSetInfo _$BoxSetInfoFromJson(Map json) => BoxSetInfo( year: (json['Year'] as num?)?.toInt(), indexNumber: (json['IndexNumber'] as num?)?.toInt(), parentIndexNumber: (json['ParentIndexNumber'] as num?)?.toInt(), - premiereDate: json['PremiereDate'] == null ? null : DateTime.parse(json['PremiereDate'] as String), + premiereDate: json['PremiereDate'] == null + ? null + : DateTime.parse(json['PremiereDate'] as String), isAutomated: json['IsAutomated'] as bool?, ); -Map _$BoxSetInfoToJson(BoxSetInfo instance) => { +Map _$BoxSetInfoToJson(BoxSetInfo instance) => + { if (instance.name case final value?) 'Name': value, if (instance.originalTitle case final value?) 'OriginalTitle': value, if (instance.path case final value?) 'Path': value, - if (instance.metadataLanguage case final value?) 'MetadataLanguage': value, - if (instance.metadataCountryCode case final value?) 'MetadataCountryCode': value, + if (instance.metadataLanguage case final value?) + 'MetadataLanguage': value, + if (instance.metadataCountryCode case final value?) + 'MetadataCountryCode': value, if (instance.providerIds case final value?) 'ProviderIds': value, if (instance.year case final value?) 'Year': value, if (instance.indexNumber case final value?) 'IndexNumber': value, - if (instance.parentIndexNumber case final value?) 'ParentIndexNumber': value, - if (instance.premiereDate?.toIso8601String() case final value?) 'PremiereDate': value, + if (instance.parentIndexNumber case final value?) + 'ParentIndexNumber': value, + if (instance.premiereDate?.toIso8601String() case final value?) + 'PremiereDate': value, if (instance.isAutomated case final value?) 'IsAutomated': value, }; -BoxSetInfoRemoteSearchQuery _$BoxSetInfoRemoteSearchQueryFromJson(Map json) => +BoxSetInfoRemoteSearchQuery _$BoxSetInfoRemoteSearchQueryFromJson( + Map json) => BoxSetInfoRemoteSearchQuery( - searchInfo: json['SearchInfo'] == null ? null : BoxSetInfo.fromJson(json['SearchInfo'] as Map), + searchInfo: json['SearchInfo'] == null + ? null + : BoxSetInfo.fromJson(json['SearchInfo'] as Map), itemId: json['ItemId'] as String?, searchProviderName: json['SearchProviderName'] as String?, includeDisabledProviders: json['IncludeDisabledProviders'] as bool?, ); -Map _$BoxSetInfoRemoteSearchQueryToJson(BoxSetInfoRemoteSearchQuery instance) => { +Map _$BoxSetInfoRemoteSearchQueryToJson( + BoxSetInfoRemoteSearchQuery instance) => + { if (instance.searchInfo?.toJson() case final value?) 'SearchInfo': value, if (instance.itemId case final value?) 'ItemId': value, - if (instance.searchProviderName case final value?) 'SearchProviderName': value, - if (instance.includeDisabledProviders case final value?) 'IncludeDisabledProviders': value, + if (instance.searchProviderName case final value?) + 'SearchProviderName': value, + if (instance.includeDisabledProviders case final value?) + 'IncludeDisabledProviders': value, }; -BrandingOptionsDto _$BrandingOptionsDtoFromJson(Map json) => BrandingOptionsDto( +BrandingOptionsDto _$BrandingOptionsDtoFromJson(Map json) => + BrandingOptionsDto( loginDisclaimer: json['LoginDisclaimer'] as String?, customCss: json['CustomCss'] as String?, splashscreenEnabled: json['SplashscreenEnabled'] as bool?, ); -Map _$BrandingOptionsDtoToJson(BrandingOptionsDto instance) => { +Map _$BrandingOptionsDtoToJson(BrandingOptionsDto instance) => + { if (instance.loginDisclaimer case final value?) 'LoginDisclaimer': value, if (instance.customCss case final value?) 'CustomCss': value, - if (instance.splashscreenEnabled case final value?) 'SplashscreenEnabled': value, + if (instance.splashscreenEnabled case final value?) + 'SplashscreenEnabled': value, }; -BufferRequestDto _$BufferRequestDtoFromJson(Map json) => BufferRequestDto( - when: json['When'] == null ? null : DateTime.parse(json['When'] as String), +BufferRequestDto _$BufferRequestDtoFromJson(Map json) => + BufferRequestDto( + when: + json['When'] == null ? null : DateTime.parse(json['When'] as String), positionTicks: (json['PositionTicks'] as num?)?.toInt(), isPlaying: json['IsPlaying'] as bool?, playlistItemId: json['PlaylistItemId'] as String?, ); -Map _$BufferRequestDtoToJson(BufferRequestDto instance) => { +Map _$BufferRequestDtoToJson(BufferRequestDto instance) => + { if (instance.when?.toIso8601String() case final value?) 'When': value, if (instance.positionTicks case final value?) 'PositionTicks': value, if (instance.isPlaying case final value?) 'IsPlaying': value, if (instance.playlistItemId case final value?) 'PlaylistItemId': value, }; -CastReceiverApplication _$CastReceiverApplicationFromJson(Map json) => CastReceiverApplication( +CastReceiverApplication _$CastReceiverApplicationFromJson( + Map json) => + CastReceiverApplication( id: json['Id'] as String?, name: json['Name'] as String?, ); -Map _$CastReceiverApplicationToJson(CastReceiverApplication instance) => { +Map _$CastReceiverApplicationToJson( + CastReceiverApplication instance) => + { if (instance.id case final value?) 'Id': value, if (instance.name case final value?) 'Name': value, }; -ChannelFeatures _$ChannelFeaturesFromJson(Map json) => ChannelFeatures( +ChannelFeatures _$ChannelFeaturesFromJson(Map json) => + ChannelFeatures( name: json['Name'] as String?, id: json['Id'] as String?, canSearch: json['CanSearch'] as bool?, mediaTypes: channelMediaTypeListFromJson(json['MediaTypes'] as List?), - contentTypes: channelMediaContentTypeListFromJson(json['ContentTypes'] as List?), + contentTypes: + channelMediaContentTypeListFromJson(json['ContentTypes'] as List?), maxPageSize: (json['MaxPageSize'] as num?)?.toInt(), autoRefreshLevels: (json['AutoRefreshLevels'] as num?)?.toInt(), - defaultSortFields: channelItemSortFieldListFromJson(json['DefaultSortFields'] as List?), + defaultSortFields: + channelItemSortFieldListFromJson(json['DefaultSortFields'] as List?), supportsSortOrderToggle: json['SupportsSortOrderToggle'] as bool?, supportsLatestMedia: json['SupportsLatestMedia'] as bool?, canFilter: json['CanFilter'] as bool?, supportsContentDownloading: json['SupportsContentDownloading'] as bool?, ); -Map _$ChannelFeaturesToJson(ChannelFeatures instance) => { +Map _$ChannelFeaturesToJson(ChannelFeatures instance) => + { if (instance.name case final value?) 'Name': value, if (instance.id case final value?) 'Id': value, if (instance.canSearch case final value?) 'CanSearch': value, 'MediaTypes': channelMediaTypeListToJson(instance.mediaTypes), 'ContentTypes': channelMediaContentTypeListToJson(instance.contentTypes), if (instance.maxPageSize case final value?) 'MaxPageSize': value, - if (instance.autoRefreshLevels case final value?) 'AutoRefreshLevels': value, - 'DefaultSortFields': channelItemSortFieldListToJson(instance.defaultSortFields), - if (instance.supportsSortOrderToggle case final value?) 'SupportsSortOrderToggle': value, - if (instance.supportsLatestMedia case final value?) 'SupportsLatestMedia': value, + if (instance.autoRefreshLevels case final value?) + 'AutoRefreshLevels': value, + 'DefaultSortFields': + channelItemSortFieldListToJson(instance.defaultSortFields), + if (instance.supportsSortOrderToggle case final value?) + 'SupportsSortOrderToggle': value, + if (instance.supportsLatestMedia case final value?) + 'SupportsLatestMedia': value, if (instance.canFilter case final value?) 'CanFilter': value, - if (instance.supportsContentDownloading case final value?) 'SupportsContentDownloading': value, + if (instance.supportsContentDownloading case final value?) + 'SupportsContentDownloading': value, }; -ChannelMappingOptionsDto _$ChannelMappingOptionsDtoFromJson(Map json) => ChannelMappingOptionsDto( +ChannelMappingOptionsDto _$ChannelMappingOptionsDtoFromJson( + Map json) => + ChannelMappingOptionsDto( tunerChannels: (json['TunerChannels'] as List?) - ?.map((e) => TunerChannelMapping.fromJson(e as Map)) + ?.map((e) => + TunerChannelMapping.fromJson(e as Map)) .toList() ?? [], providerChannels: (json['ProviderChannels'] as List?) @@ -883,10 +1194,17 @@ ChannelMappingOptionsDto _$ChannelMappingOptionsDtoFromJson(Map providerName: json['ProviderName'] as String?, ); -Map _$ChannelMappingOptionsDtoToJson(ChannelMappingOptionsDto instance) => { - if (instance.tunerChannels?.map((e) => e.toJson()).toList() case final value?) 'TunerChannels': value, - if (instance.providerChannels?.map((e) => e.toJson()).toList() case final value?) 'ProviderChannels': value, - if (instance.mappings?.map((e) => e.toJson()).toList() case final value?) 'Mappings': value, +Map _$ChannelMappingOptionsDtoToJson( + ChannelMappingOptionsDto instance) => + { + if (instance.tunerChannels?.map((e) => e.toJson()).toList() + case final value?) + 'TunerChannels': value, + if (instance.providerChannels?.map((e) => e.toJson()).toList() + case final value?) + 'ProviderChannels': value, + if (instance.mappings?.map((e) => e.toJson()).toList() case final value?) + 'Mappings': value, if (instance.providerName case final value?) 'ProviderName': value, }; @@ -894,45 +1212,66 @@ ChapterInfo _$ChapterInfoFromJson(Map json) => ChapterInfo( startPositionTicks: (json['StartPositionTicks'] as num?)?.toInt(), name: json['Name'] as String?, imagePath: json['ImagePath'] as String?, - imageDateModified: json['ImageDateModified'] == null ? null : DateTime.parse(json['ImageDateModified'] as String), + imageDateModified: json['ImageDateModified'] == null + ? null + : DateTime.parse(json['ImageDateModified'] as String), imageTag: json['ImageTag'] as String?, ); -Map _$ChapterInfoToJson(ChapterInfo instance) => { - if (instance.startPositionTicks case final value?) 'StartPositionTicks': value, +Map _$ChapterInfoToJson(ChapterInfo instance) => + { + if (instance.startPositionTicks case final value?) + 'StartPositionTicks': value, if (instance.name case final value?) 'Name': value, if (instance.imagePath case final value?) 'ImagePath': value, - if (instance.imageDateModified?.toIso8601String() case final value?) 'ImageDateModified': value, + if (instance.imageDateModified?.toIso8601String() case final value?) + 'ImageDateModified': value, if (instance.imageTag case final value?) 'ImageTag': value, }; -ClientCapabilitiesDto _$ClientCapabilitiesDtoFromJson(Map json) => ClientCapabilitiesDto( - playableMediaTypes: mediaTypeListFromJson(json['PlayableMediaTypes'] as List?), - supportedCommands: generalCommandTypeListFromJson(json['SupportedCommands'] as List?), +ClientCapabilitiesDto _$ClientCapabilitiesDtoFromJson( + Map json) => + ClientCapabilitiesDto( + playableMediaTypes: + mediaTypeListFromJson(json['PlayableMediaTypes'] as List?), + supportedCommands: + generalCommandTypeListFromJson(json['SupportedCommands'] as List?), supportsMediaControl: json['SupportsMediaControl'] as bool?, - supportsPersistentIdentifier: json['SupportsPersistentIdentifier'] as bool?, - deviceProfile: - json['DeviceProfile'] == null ? null : DeviceProfile.fromJson(json['DeviceProfile'] as Map), + supportsPersistentIdentifier: + json['SupportsPersistentIdentifier'] as bool?, + deviceProfile: json['DeviceProfile'] == null + ? null + : DeviceProfile.fromJson( + json['DeviceProfile'] as Map), appStoreUrl: json['AppStoreUrl'] as String?, iconUrl: json['IconUrl'] as String?, ); -Map _$ClientCapabilitiesDtoToJson(ClientCapabilitiesDto instance) => { +Map _$ClientCapabilitiesDtoToJson( + ClientCapabilitiesDto instance) => + { 'PlayableMediaTypes': mediaTypeListToJson(instance.playableMediaTypes), - 'SupportedCommands': generalCommandTypeListToJson(instance.supportedCommands), - if (instance.supportsMediaControl case final value?) 'SupportsMediaControl': value, - if (instance.supportsPersistentIdentifier case final value?) 'SupportsPersistentIdentifier': value, - if (instance.deviceProfile?.toJson() case final value?) 'DeviceProfile': value, + 'SupportedCommands': + generalCommandTypeListToJson(instance.supportedCommands), + if (instance.supportsMediaControl case final value?) + 'SupportsMediaControl': value, + if (instance.supportsPersistentIdentifier case final value?) + 'SupportsPersistentIdentifier': value, + if (instance.deviceProfile?.toJson() case final value?) + 'DeviceProfile': value, if (instance.appStoreUrl case final value?) 'AppStoreUrl': value, if (instance.iconUrl case final value?) 'IconUrl': value, }; -ClientLogDocumentResponseDto _$ClientLogDocumentResponseDtoFromJson(Map json) => +ClientLogDocumentResponseDto _$ClientLogDocumentResponseDtoFromJson( + Map json) => ClientLogDocumentResponseDto( fileName: json['FileName'] as String?, ); -Map _$ClientLogDocumentResponseDtoToJson(ClientLogDocumentResponseDto instance) => { +Map _$ClientLogDocumentResponseDtoToJson( + ClientLogDocumentResponseDto instance) => + { if (instance.fileName case final value?) 'FileName': value, }; @@ -951,34 +1290,61 @@ CodecProfile _$CodecProfileFromJson(Map json) => CodecProfile( subContainer: json['SubContainer'] as String?, ); -Map _$CodecProfileToJson(CodecProfile instance) => { - if (codecTypeNullableToJson(instance.type) case final value?) 'Type': value, - if (instance.conditions?.map((e) => e.toJson()).toList() case final value?) 'Conditions': value, - if (instance.applyConditions?.map((e) => e.toJson()).toList() case final value?) 'ApplyConditions': value, +Map _$CodecProfileToJson(CodecProfile instance) => + { + if (codecTypeNullableToJson(instance.type) case final value?) + 'Type': value, + if (instance.conditions?.map((e) => e.toJson()).toList() + case final value?) + 'Conditions': value, + if (instance.applyConditions?.map((e) => e.toJson()).toList() + case final value?) + 'ApplyConditions': value, if (instance.codec case final value?) 'Codec': value, if (instance.container case final value?) 'Container': value, if (instance.subContainer case final value?) 'SubContainer': value, }; -CollectionCreationResult _$CollectionCreationResultFromJson(Map json) => CollectionCreationResult( +CollectionCreationResult _$CollectionCreationResultFromJson( + Map json) => + CollectionCreationResult( id: json['Id'] as String?, ); -Map _$CollectionCreationResultToJson(CollectionCreationResult instance) => { +Map _$CollectionCreationResultToJson( + CollectionCreationResult instance) => + { if (instance.id case final value?) 'Id': value, }; -ConfigImageTypes _$ConfigImageTypesFromJson(Map json) => ConfigImageTypes( - backdropSizes: (json['BackdropSizes'] as List?)?.map((e) => e as String).toList() ?? [], +ConfigImageTypes _$ConfigImageTypesFromJson(Map json) => + ConfigImageTypes( + backdropSizes: (json['BackdropSizes'] as List?) + ?.map((e) => e as String) + .toList() ?? + [], baseUrl: json['BaseUrl'] as String?, - logoSizes: (json['LogoSizes'] as List?)?.map((e) => e as String).toList() ?? [], - posterSizes: (json['PosterSizes'] as List?)?.map((e) => e as String).toList() ?? [], - profileSizes: (json['ProfileSizes'] as List?)?.map((e) => e as String).toList() ?? [], + logoSizes: (json['LogoSizes'] as List?) + ?.map((e) => e as String) + .toList() ?? + [], + posterSizes: (json['PosterSizes'] as List?) + ?.map((e) => e as String) + .toList() ?? + [], + profileSizes: (json['ProfileSizes'] as List?) + ?.map((e) => e as String) + .toList() ?? + [], secureBaseUrl: json['SecureBaseUrl'] as String?, - stillSizes: (json['StillSizes'] as List?)?.map((e) => e as String).toList() ?? [], + stillSizes: (json['StillSizes'] as List?) + ?.map((e) => e as String) + .toList() ?? + [], ); -Map _$ConfigImageTypesToJson(ConfigImageTypes instance) => { +Map _$ConfigImageTypesToJson(ConfigImageTypes instance) => + { if (instance.backdropSizes case final value?) 'BackdropSizes': value, if (instance.baseUrl case final value?) 'BaseUrl': value, if (instance.logoSizes case final value?) 'LogoSizes': value, @@ -988,7 +1354,9 @@ Map _$ConfigImageTypesToJson(ConfigImageTypes instance) => json) => ConfigurationPageInfo( +ConfigurationPageInfo _$ConfigurationPageInfoFromJson( + Map json) => + ConfigurationPageInfo( name: json['Name'] as String?, enableInMainMenu: json['EnableInMainMenu'] as bool?, menuSection: json['MenuSection'] as String?, @@ -997,16 +1365,20 @@ ConfigurationPageInfo _$ConfigurationPageInfoFromJson(Map json) pluginId: json['PluginId'] as String?, ); -Map _$ConfigurationPageInfoToJson(ConfigurationPageInfo instance) => { +Map _$ConfigurationPageInfoToJson( + ConfigurationPageInfo instance) => + { if (instance.name case final value?) 'Name': value, - if (instance.enableInMainMenu case final value?) 'EnableInMainMenu': value, + if (instance.enableInMainMenu case final value?) + 'EnableInMainMenu': value, if (instance.menuSection case final value?) 'MenuSection': value, if (instance.menuIcon case final value?) 'MenuIcon': value, if (instance.displayName case final value?) 'DisplayName': value, if (instance.pluginId case final value?) 'PluginId': value, }; -ContainerProfile _$ContainerProfileFromJson(Map json) => ContainerProfile( +ContainerProfile _$ContainerProfileFromJson(Map json) => + ContainerProfile( type: dlnaProfileTypeNullableFromJson(json['Type']), conditions: (json['Conditions'] as List?) ?.map((e) => ProfileCondition.fromJson(e as Map)) @@ -1016,9 +1388,13 @@ ContainerProfile _$ContainerProfileFromJson(Map json) => Contai subContainer: json['SubContainer'] as String?, ); -Map _$ContainerProfileToJson(ContainerProfile instance) => { - if (dlnaProfileTypeNullableToJson(instance.type) case final value?) 'Type': value, - if (instance.conditions?.map((e) => e.toJson()).toList() case final value?) 'Conditions': value, +Map _$ContainerProfileToJson(ContainerProfile instance) => + { + if (dlnaProfileTypeNullableToJson(instance.type) case final value?) + 'Type': value, + if (instance.conditions?.map((e) => e.toJson()).toList() + case final value?) + 'Conditions': value, if (instance.container case final value?) 'Container': value, if (instance.subContainer case final value?) 'SubContainer': value, }; @@ -1030,40 +1406,51 @@ CountryInfo _$CountryInfoFromJson(Map json) => CountryInfo( threeLetterISORegionName: json['ThreeLetterISORegionName'] as String?, ); -Map _$CountryInfoToJson(CountryInfo instance) => { +Map _$CountryInfoToJson(CountryInfo instance) => + { if (instance.name case final value?) 'Name': value, if (instance.displayName case final value?) 'DisplayName': value, - if (instance.twoLetterISORegionName case final value?) 'TwoLetterISORegionName': value, - if (instance.threeLetterISORegionName case final value?) 'ThreeLetterISORegionName': value, + if (instance.twoLetterISORegionName case final value?) + 'TwoLetterISORegionName': value, + if (instance.threeLetterISORegionName case final value?) + 'ThreeLetterISORegionName': value, }; -CreatePlaylistDto _$CreatePlaylistDtoFromJson(Map json) => CreatePlaylistDto( +CreatePlaylistDto _$CreatePlaylistDtoFromJson(Map json) => + CreatePlaylistDto( name: json['Name'] as String?, - ids: (json['Ids'] as List?)?.map((e) => e as String).toList() ?? [], + ids: (json['Ids'] as List?)?.map((e) => e as String).toList() ?? + [], userId: json['UserId'] as String?, mediaType: mediaTypeNullableFromJson(json['MediaType']), users: (json['Users'] as List?) - ?.map((e) => PlaylistUserPermissions.fromJson(e as Map)) + ?.map((e) => + PlaylistUserPermissions.fromJson(e as Map)) .toList() ?? [], isPublic: json['IsPublic'] as bool?, ); -Map _$CreatePlaylistDtoToJson(CreatePlaylistDto instance) => { +Map _$CreatePlaylistDtoToJson(CreatePlaylistDto instance) => + { if (instance.name case final value?) 'Name': value, if (instance.ids case final value?) 'Ids': value, if (instance.userId case final value?) 'UserId': value, - if (mediaTypeNullableToJson(instance.mediaType) case final value?) 'MediaType': value, - if (instance.users?.map((e) => e.toJson()).toList() case final value?) 'Users': value, + if (mediaTypeNullableToJson(instance.mediaType) case final value?) + 'MediaType': value, + if (instance.users?.map((e) => e.toJson()).toList() case final value?) + 'Users': value, if (instance.isPublic case final value?) 'IsPublic': value, }; -CreateUserByName _$CreateUserByNameFromJson(Map json) => CreateUserByName( +CreateUserByName _$CreateUserByNameFromJson(Map json) => + CreateUserByName( name: json['Name'] as String, password: json['Password'] as String?, ); -Map _$CreateUserByNameToJson(CreateUserByName instance) => { +Map _$CreateUserByNameToJson(CreateUserByName instance) => + { 'Name': instance.name, if (instance.password case final value?) 'Password': value, }; @@ -1074,81 +1461,112 @@ CultureDto _$CultureDtoFromJson(Map json) => CultureDto( twoLetterISOLanguageName: json['TwoLetterISOLanguageName'] as String?, threeLetterISOLanguageName: json['ThreeLetterISOLanguageName'] as String?, threeLetterISOLanguageNames: - (json['ThreeLetterISOLanguageNames'] as List?)?.map((e) => e as String).toList() ?? [], + (json['ThreeLetterISOLanguageNames'] as List?) + ?.map((e) => e as String) + .toList() ?? + [], ); -Map _$CultureDtoToJson(CultureDto instance) => { +Map _$CultureDtoToJson(CultureDto instance) => + { if (instance.name case final value?) 'Name': value, if (instance.displayName case final value?) 'DisplayName': value, - if (instance.twoLetterISOLanguageName case final value?) 'TwoLetterISOLanguageName': value, - if (instance.threeLetterISOLanguageName case final value?) 'ThreeLetterISOLanguageName': value, - if (instance.threeLetterISOLanguageNames case final value?) 'ThreeLetterISOLanguageNames': value, + if (instance.twoLetterISOLanguageName case final value?) + 'TwoLetterISOLanguageName': value, + if (instance.threeLetterISOLanguageName case final value?) + 'ThreeLetterISOLanguageName': value, + if (instance.threeLetterISOLanguageNames case final value?) + 'ThreeLetterISOLanguageNames': value, }; -CustomDatabaseOption _$CustomDatabaseOptionFromJson(Map json) => CustomDatabaseOption( +CustomDatabaseOption _$CustomDatabaseOptionFromJson( + Map json) => + CustomDatabaseOption( key: json['Key'] as String?, $Value: json['Value'] as String?, ); -Map _$CustomDatabaseOptionToJson(CustomDatabaseOption instance) => { +Map _$CustomDatabaseOptionToJson( + CustomDatabaseOption instance) => + { if (instance.key case final value?) 'Key': value, if (instance.$Value case final value?) 'Value': value, }; -CustomDatabaseOptions _$CustomDatabaseOptionsFromJson(Map json) => CustomDatabaseOptions( +CustomDatabaseOptions _$CustomDatabaseOptionsFromJson( + Map json) => + CustomDatabaseOptions( pluginName: json['PluginName'] as String?, pluginAssembly: json['PluginAssembly'] as String?, connectionString: json['ConnectionString'] as String?, options: (json['Options'] as List?) - ?.map((e) => CustomDatabaseOption.fromJson(e as Map)) + ?.map((e) => + CustomDatabaseOption.fromJson(e as Map)) .toList() ?? [], ); -Map _$CustomDatabaseOptionsToJson(CustomDatabaseOptions instance) => { +Map _$CustomDatabaseOptionsToJson( + CustomDatabaseOptions instance) => + { if (instance.pluginName case final value?) 'PluginName': value, if (instance.pluginAssembly case final value?) 'PluginAssembly': value, - if (instance.connectionString case final value?) 'ConnectionString': value, - if (instance.options?.map((e) => e.toJson()).toList() case final value?) 'Options': value, + if (instance.connectionString case final value?) + 'ConnectionString': value, + if (instance.options?.map((e) => e.toJson()).toList() case final value?) + 'Options': value, }; -CustomQueryData _$CustomQueryDataFromJson(Map json) => CustomQueryData( +CustomQueryData _$CustomQueryDataFromJson(Map json) => + CustomQueryData( customQueryString: json['CustomQueryString'] as String?, replaceUserId: json['ReplaceUserId'] as bool?, ); -Map _$CustomQueryDataToJson(CustomQueryData instance) => { - if (instance.customQueryString case final value?) 'CustomQueryString': value, +Map _$CustomQueryDataToJson(CustomQueryData instance) => + { + if (instance.customQueryString case final value?) + 'CustomQueryString': value, if (instance.replaceUserId case final value?) 'ReplaceUserId': value, }; -DatabaseConfigurationOptions _$DatabaseConfigurationOptionsFromJson(Map json) => +DatabaseConfigurationOptions _$DatabaseConfigurationOptionsFromJson( + Map json) => DatabaseConfigurationOptions( databaseType: json['DatabaseType'] as String?, customProviderOptions: json['CustomProviderOptions'] == null ? null - : CustomDatabaseOptions.fromJson(json['CustomProviderOptions'] as Map), - lockingBehavior: databaseLockingBehaviorTypesNullableFromJson(json['LockingBehavior']), + : CustomDatabaseOptions.fromJson( + json['CustomProviderOptions'] as Map), + lockingBehavior: + databaseLockingBehaviorTypesNullableFromJson(json['LockingBehavior']), ); -Map _$DatabaseConfigurationOptionsToJson(DatabaseConfigurationOptions instance) => { +Map _$DatabaseConfigurationOptionsToJson( + DatabaseConfigurationOptions instance) => + { if (instance.databaseType case final value?) 'DatabaseType': value, - if (instance.customProviderOptions?.toJson() case final value?) 'CustomProviderOptions': value, - if (databaseLockingBehaviorTypesNullableToJson(instance.lockingBehavior) case final value?) + if (instance.customProviderOptions?.toJson() case final value?) + 'CustomProviderOptions': value, + if (databaseLockingBehaviorTypesNullableToJson(instance.lockingBehavior) + case final value?) 'LockingBehavior': value, }; -DefaultDirectoryBrowserInfoDto _$DefaultDirectoryBrowserInfoDtoFromJson(Map json) => +DefaultDirectoryBrowserInfoDto _$DefaultDirectoryBrowserInfoDtoFromJson( + Map json) => DefaultDirectoryBrowserInfoDto( path: json['Path'] as String?, ); -Map _$DefaultDirectoryBrowserInfoDtoToJson(DefaultDirectoryBrowserInfoDto instance) => +Map _$DefaultDirectoryBrowserInfoDtoToJson( + DefaultDirectoryBrowserInfoDto instance) => { if (instance.path case final value?) 'Path': value, }; -DeviceInfoDto _$DeviceInfoDtoFromJson(Map json) => DeviceInfoDto( +DeviceInfoDto _$DeviceInfoDtoFromJson(Map json) => + DeviceInfoDto( name: json['Name'] as String?, customName: json['CustomName'] as String?, accessToken: json['AccessToken'] as String?, @@ -1157,14 +1575,18 @@ DeviceInfoDto _$DeviceInfoDtoFromJson(Map json) => DeviceInfoDt appName: json['AppName'] as String?, appVersion: json['AppVersion'] as String?, lastUserId: json['LastUserId'] as String?, - dateLastActivity: json['DateLastActivity'] == null ? null : DateTime.parse(json['DateLastActivity'] as String), + dateLastActivity: json['DateLastActivity'] == null + ? null + : DateTime.parse(json['DateLastActivity'] as String), capabilities: json['Capabilities'] == null ? null - : ClientCapabilitiesDto.fromJson(json['Capabilities'] as Map), + : ClientCapabilitiesDto.fromJson( + json['Capabilities'] as Map), iconUrl: json['IconUrl'] as String?, ); -Map _$DeviceInfoDtoToJson(DeviceInfoDto instance) => { +Map _$DeviceInfoDtoToJson(DeviceInfoDto instance) => + { if (instance.name case final value?) 'Name': value, if (instance.customName case final value?) 'CustomName': value, if (instance.accessToken case final value?) 'AccessToken': value, @@ -1173,50 +1595,65 @@ Map _$DeviceInfoDtoToJson(DeviceInfoDto instance) => json) => DeviceInfoDtoQueryResult( - items: - (json['Items'] as List?)?.map((e) => DeviceInfoDto.fromJson(e as Map)).toList() ?? - [], +DeviceInfoDtoQueryResult _$DeviceInfoDtoQueryResultFromJson( + Map json) => + DeviceInfoDtoQueryResult( + items: (json['Items'] as List?) + ?.map((e) => DeviceInfoDto.fromJson(e as Map)) + .toList() ?? + [], totalRecordCount: (json['TotalRecordCount'] as num?)?.toInt(), startIndex: (json['StartIndex'] as num?)?.toInt(), ); -Map _$DeviceInfoDtoQueryResultToJson(DeviceInfoDtoQueryResult instance) => { - if (instance.items?.map((e) => e.toJson()).toList() case final value?) 'Items': value, - if (instance.totalRecordCount case final value?) 'TotalRecordCount': value, +Map _$DeviceInfoDtoQueryResultToJson( + DeviceInfoDtoQueryResult instance) => + { + if (instance.items?.map((e) => e.toJson()).toList() case final value?) + 'Items': value, + if (instance.totalRecordCount case final value?) + 'TotalRecordCount': value, if (instance.startIndex case final value?) 'StartIndex': value, }; -DeviceOptionsDto _$DeviceOptionsDtoFromJson(Map json) => DeviceOptionsDto( +DeviceOptionsDto _$DeviceOptionsDtoFromJson(Map json) => + DeviceOptionsDto( id: (json['Id'] as num?)?.toInt(), deviceId: json['DeviceId'] as String?, customName: json['CustomName'] as String?, ); -Map _$DeviceOptionsDtoToJson(DeviceOptionsDto instance) => { +Map _$DeviceOptionsDtoToJson(DeviceOptionsDto instance) => + { if (instance.id case final value?) 'Id': value, if (instance.deviceId case final value?) 'DeviceId': value, if (instance.customName case final value?) 'CustomName': value, }; -DeviceProfile _$DeviceProfileFromJson(Map json) => DeviceProfile( +DeviceProfile _$DeviceProfileFromJson(Map json) => + DeviceProfile( name: json['Name'] as String?, id: json['Id'] as String?, maxStreamingBitrate: (json['MaxStreamingBitrate'] as num?)?.toInt(), maxStaticBitrate: (json['MaxStaticBitrate'] as num?)?.toInt(), - musicStreamingTranscodingBitrate: (json['MusicStreamingTranscodingBitrate'] as num?)?.toInt(), + musicStreamingTranscodingBitrate: + (json['MusicStreamingTranscodingBitrate'] as num?)?.toInt(), maxStaticMusicBitrate: (json['MaxStaticMusicBitrate'] as num?)?.toInt(), directPlayProfiles: (json['DirectPlayProfiles'] as List?) - ?.map((e) => DirectPlayProfile.fromJson(e as Map)) + ?.map( + (e) => DirectPlayProfile.fromJson(e as Map)) .toList() ?? [], transcodingProfiles: (json['TranscodingProfiles'] as List?) - ?.map((e) => TranscodingProfile.fromJson(e as Map)) + ?.map( + (e) => TranscodingProfile.fromJson(e as Map)) .toList() ?? [], containerProfiles: (json['ContainerProfiles'] as List?) @@ -1233,35 +1670,55 @@ DeviceProfile _$DeviceProfileFromJson(Map json) => DeviceProfil [], ); -Map _$DeviceProfileToJson(DeviceProfile instance) => { +Map _$DeviceProfileToJson(DeviceProfile instance) => + { if (instance.name case final value?) 'Name': value, if (instance.id case final value?) 'Id': value, - if (instance.maxStreamingBitrate case final value?) 'MaxStreamingBitrate': value, - if (instance.maxStaticBitrate case final value?) 'MaxStaticBitrate': value, - if (instance.musicStreamingTranscodingBitrate case final value?) 'MusicStreamingTranscodingBitrate': value, - if (instance.maxStaticMusicBitrate case final value?) 'MaxStaticMusicBitrate': value, - if (instance.directPlayProfiles?.map((e) => e.toJson()).toList() case final value?) 'DirectPlayProfiles': value, - if (instance.transcodingProfiles?.map((e) => e.toJson()).toList() case final value?) 'TranscodingProfiles': value, - if (instance.containerProfiles?.map((e) => e.toJson()).toList() case final value?) 'ContainerProfiles': value, - if (instance.codecProfiles?.map((e) => e.toJson()).toList() case final value?) 'CodecProfiles': value, - if (instance.subtitleProfiles?.map((e) => e.toJson()).toList() case final value?) 'SubtitleProfiles': value, - }; - -DirectPlayProfile _$DirectPlayProfileFromJson(Map json) => DirectPlayProfile( + if (instance.maxStreamingBitrate case final value?) + 'MaxStreamingBitrate': value, + if (instance.maxStaticBitrate case final value?) + 'MaxStaticBitrate': value, + if (instance.musicStreamingTranscodingBitrate case final value?) + 'MusicStreamingTranscodingBitrate': value, + if (instance.maxStaticMusicBitrate case final value?) + 'MaxStaticMusicBitrate': value, + if (instance.directPlayProfiles?.map((e) => e.toJson()).toList() + case final value?) + 'DirectPlayProfiles': value, + if (instance.transcodingProfiles?.map((e) => e.toJson()).toList() + case final value?) + 'TranscodingProfiles': value, + if (instance.containerProfiles?.map((e) => e.toJson()).toList() + case final value?) + 'ContainerProfiles': value, + if (instance.codecProfiles?.map((e) => e.toJson()).toList() + case final value?) + 'CodecProfiles': value, + if (instance.subtitleProfiles?.map((e) => e.toJson()).toList() + case final value?) + 'SubtitleProfiles': value, + }; + +DirectPlayProfile _$DirectPlayProfileFromJson(Map json) => + DirectPlayProfile( container: json['Container'] as String?, audioCodec: json['AudioCodec'] as String?, videoCodec: json['VideoCodec'] as String?, type: dlnaProfileTypeNullableFromJson(json['Type']), ); -Map _$DirectPlayProfileToJson(DirectPlayProfile instance) => { +Map _$DirectPlayProfileToJson(DirectPlayProfile instance) => + { if (instance.container case final value?) 'Container': value, if (instance.audioCodec case final value?) 'AudioCodec': value, if (instance.videoCodec case final value?) 'VideoCodec': value, - if (dlnaProfileTypeNullableToJson(instance.type) case final value?) 'Type': value, + if (dlnaProfileTypeNullableToJson(instance.type) case final value?) + 'Type': value, }; -DisplayPreferencesDto _$DisplayPreferencesDtoFromJson(Map json) => DisplayPreferencesDto( +DisplayPreferencesDto _$DisplayPreferencesDtoFromJson( + Map json) => + DisplayPreferencesDto( id: json['Id'] as String?, viewType: json['ViewType'] as String?, sortBy: json['SortBy'] as String?, @@ -1278,129 +1735,200 @@ DisplayPreferencesDto _$DisplayPreferencesDtoFromJson(Map json) $Client: json['Client'] as String?, ); -Map _$DisplayPreferencesDtoToJson(DisplayPreferencesDto instance) => { +Map _$DisplayPreferencesDtoToJson( + DisplayPreferencesDto instance) => + { if (instance.id case final value?) 'Id': value, if (instance.viewType case final value?) 'ViewType': value, if (instance.sortBy case final value?) 'SortBy': value, if (instance.indexBy case final value?) 'IndexBy': value, - if (instance.rememberIndexing case final value?) 'RememberIndexing': value, - if (instance.primaryImageHeight case final value?) 'PrimaryImageHeight': value, - if (instance.primaryImageWidth case final value?) 'PrimaryImageWidth': value, + if (instance.rememberIndexing case final value?) + 'RememberIndexing': value, + if (instance.primaryImageHeight case final value?) + 'PrimaryImageHeight': value, + if (instance.primaryImageWidth case final value?) + 'PrimaryImageWidth': value, if (instance.customPrefs case final value?) 'CustomPrefs': value, - if (scrollDirectionNullableToJson(instance.scrollDirection) case final value?) 'ScrollDirection': value, + if (scrollDirectionNullableToJson(instance.scrollDirection) + case final value?) + 'ScrollDirection': value, if (instance.showBackdrop case final value?) 'ShowBackdrop': value, if (instance.rememberSorting case final value?) 'RememberSorting': value, - if (sortOrderNullableToJson(instance.sortOrder) case final value?) 'SortOrder': value, + if (sortOrderNullableToJson(instance.sortOrder) case final value?) + 'SortOrder': value, if (instance.showSidebar case final value?) 'ShowSidebar': value, if (instance.$Client case final value?) 'Client': value, }; -EncodingOptions _$EncodingOptionsFromJson(Map json) => EncodingOptions( +EncodingOptions _$EncodingOptionsFromJson(Map json) => + EncodingOptions( encodingThreadCount: (json['EncodingThreadCount'] as num?)?.toInt(), transcodingTempPath: json['TranscodingTempPath'] as String?, fallbackFontPath: json['FallbackFontPath'] as String?, enableFallbackFont: json['EnableFallbackFont'] as bool?, enableAudioVbr: json['EnableAudioVbr'] as bool?, downMixAudioBoost: (json['DownMixAudioBoost'] as num?)?.toDouble(), - downMixStereoAlgorithm: downMixStereoAlgorithmsNullableFromJson(json['DownMixStereoAlgorithm']), + downMixStereoAlgorithm: downMixStereoAlgorithmsNullableFromJson( + json['DownMixStereoAlgorithm']), maxMuxingQueueSize: (json['MaxMuxingQueueSize'] as num?)?.toInt(), enableThrottling: json['EnableThrottling'] as bool?, throttleDelaySeconds: (json['ThrottleDelaySeconds'] as num?)?.toInt(), enableSegmentDeletion: json['EnableSegmentDeletion'] as bool?, segmentKeepSeconds: (json['SegmentKeepSeconds'] as num?)?.toInt(), - hardwareAccelerationType: hardwareAccelerationTypeNullableFromJson(json['HardwareAccelerationType']), + hardwareAccelerationType: hardwareAccelerationTypeNullableFromJson( + json['HardwareAccelerationType']), encoderAppPath: json['EncoderAppPath'] as String?, encoderAppPathDisplay: json['EncoderAppPathDisplay'] as String?, vaapiDevice: json['VaapiDevice'] as String?, qsvDevice: json['QsvDevice'] as String?, enableTonemapping: json['EnableTonemapping'] as bool?, enableVppTonemapping: json['EnableVppTonemapping'] as bool?, - enableVideoToolboxTonemapping: json['EnableVideoToolboxTonemapping'] as bool?, - tonemappingAlgorithm: tonemappingAlgorithmNullableFromJson(json['TonemappingAlgorithm']), + enableVideoToolboxTonemapping: + json['EnableVideoToolboxTonemapping'] as bool?, + tonemappingAlgorithm: + tonemappingAlgorithmNullableFromJson(json['TonemappingAlgorithm']), tonemappingMode: tonemappingModeNullableFromJson(json['TonemappingMode']), - tonemappingRange: tonemappingRangeNullableFromJson(json['TonemappingRange']), + tonemappingRange: + tonemappingRangeNullableFromJson(json['TonemappingRange']), tonemappingDesat: (json['TonemappingDesat'] as num?)?.toDouble(), tonemappingPeak: (json['TonemappingPeak'] as num?)?.toDouble(), tonemappingParam: (json['TonemappingParam'] as num?)?.toDouble(), - vppTonemappingBrightness: (json['VppTonemappingBrightness'] as num?)?.toDouble(), - vppTonemappingContrast: (json['VppTonemappingContrast'] as num?)?.toDouble(), + vppTonemappingBrightness: + (json['VppTonemappingBrightness'] as num?)?.toDouble(), + vppTonemappingContrast: + (json['VppTonemappingContrast'] as num?)?.toDouble(), h264Crf: (json['H264Crf'] as num?)?.toInt(), h265Crf: (json['H265Crf'] as num?)?.toInt(), encoderPreset: encoderPresetNullableFromJson(json['EncoderPreset']), deinterlaceDoubleRate: json['DeinterlaceDoubleRate'] as bool?, - deinterlaceMethod: deinterlaceMethodNullableFromJson(json['DeinterlaceMethod']), - enableDecodingColorDepth10Hevc: json['EnableDecodingColorDepth10Hevc'] as bool?, - enableDecodingColorDepth10Vp9: json['EnableDecodingColorDepth10Vp9'] as bool?, - enableDecodingColorDepth10HevcRext: json['EnableDecodingColorDepth10HevcRext'] as bool?, - enableDecodingColorDepth12HevcRext: json['EnableDecodingColorDepth12HevcRext'] as bool?, + deinterlaceMethod: + deinterlaceMethodNullableFromJson(json['DeinterlaceMethod']), + enableDecodingColorDepth10Hevc: + json['EnableDecodingColorDepth10Hevc'] as bool?, + enableDecodingColorDepth10Vp9: + json['EnableDecodingColorDepth10Vp9'] as bool?, + enableDecodingColorDepth10HevcRext: + json['EnableDecodingColorDepth10HevcRext'] as bool?, + enableDecodingColorDepth12HevcRext: + json['EnableDecodingColorDepth12HevcRext'] as bool?, enableEnhancedNvdecDecoder: json['EnableEnhancedNvdecDecoder'] as bool?, preferSystemNativeHwDecoder: json['PreferSystemNativeHwDecoder'] as bool?, - enableIntelLowPowerH264HwEncoder: json['EnableIntelLowPowerH264HwEncoder'] as bool?, - enableIntelLowPowerHevcHwEncoder: json['EnableIntelLowPowerHevcHwEncoder'] as bool?, + enableIntelLowPowerH264HwEncoder: + json['EnableIntelLowPowerH264HwEncoder'] as bool?, + enableIntelLowPowerHevcHwEncoder: + json['EnableIntelLowPowerHevcHwEncoder'] as bool?, enableHardwareEncoding: json['EnableHardwareEncoding'] as bool?, allowHevcEncoding: json['AllowHevcEncoding'] as bool?, allowAv1Encoding: json['AllowAv1Encoding'] as bool?, enableSubtitleExtraction: json['EnableSubtitleExtraction'] as bool?, - hardwareDecodingCodecs: - (json['HardwareDecodingCodecs'] as List?)?.map((e) => e as String).toList() ?? [], + hardwareDecodingCodecs: (json['HardwareDecodingCodecs'] as List?) + ?.map((e) => e as String) + .toList() ?? + [], allowOnDemandMetadataBasedKeyframeExtractionForExtensions: - (json['AllowOnDemandMetadataBasedKeyframeExtractionForExtensions'] as List?) + (json['AllowOnDemandMetadataBasedKeyframeExtractionForExtensions'] + as List?) ?.map((e) => e as String) .toList() ?? [], ); -Map _$EncodingOptionsToJson(EncodingOptions instance) => { - if (instance.encodingThreadCount case final value?) 'EncodingThreadCount': value, - if (instance.transcodingTempPath case final value?) 'TranscodingTempPath': value, - if (instance.fallbackFontPath case final value?) 'FallbackFontPath': value, - if (instance.enableFallbackFont case final value?) 'EnableFallbackFont': value, +Map _$EncodingOptionsToJson(EncodingOptions instance) => + { + if (instance.encodingThreadCount case final value?) + 'EncodingThreadCount': value, + if (instance.transcodingTempPath case final value?) + 'TranscodingTempPath': value, + if (instance.fallbackFontPath case final value?) + 'FallbackFontPath': value, + if (instance.enableFallbackFont case final value?) + 'EnableFallbackFont': value, if (instance.enableAudioVbr case final value?) 'EnableAudioVbr': value, - if (instance.downMixAudioBoost case final value?) 'DownMixAudioBoost': value, - if (downMixStereoAlgorithmsNullableToJson(instance.downMixStereoAlgorithm) case final value?) + if (instance.downMixAudioBoost case final value?) + 'DownMixAudioBoost': value, + if (downMixStereoAlgorithmsNullableToJson(instance.downMixStereoAlgorithm) + case final value?) 'DownMixStereoAlgorithm': value, - if (instance.maxMuxingQueueSize case final value?) 'MaxMuxingQueueSize': value, - if (instance.enableThrottling case final value?) 'EnableThrottling': value, - if (instance.throttleDelaySeconds case final value?) 'ThrottleDelaySeconds': value, - if (instance.enableSegmentDeletion case final value?) 'EnableSegmentDeletion': value, - if (instance.segmentKeepSeconds case final value?) 'SegmentKeepSeconds': value, - if (hardwareAccelerationTypeNullableToJson(instance.hardwareAccelerationType) case final value?) + if (instance.maxMuxingQueueSize case final value?) + 'MaxMuxingQueueSize': value, + if (instance.enableThrottling case final value?) + 'EnableThrottling': value, + if (instance.throttleDelaySeconds case final value?) + 'ThrottleDelaySeconds': value, + if (instance.enableSegmentDeletion case final value?) + 'EnableSegmentDeletion': value, + if (instance.segmentKeepSeconds case final value?) + 'SegmentKeepSeconds': value, + if (hardwareAccelerationTypeNullableToJson( + instance.hardwareAccelerationType) + case final value?) 'HardwareAccelerationType': value, if (instance.encoderAppPath case final value?) 'EncoderAppPath': value, - if (instance.encoderAppPathDisplay case final value?) 'EncoderAppPathDisplay': value, + if (instance.encoderAppPathDisplay case final value?) + 'EncoderAppPathDisplay': value, if (instance.vaapiDevice case final value?) 'VaapiDevice': value, if (instance.qsvDevice case final value?) 'QsvDevice': value, - if (instance.enableTonemapping case final value?) 'EnableTonemapping': value, - if (instance.enableVppTonemapping case final value?) 'EnableVppTonemapping': value, - if (instance.enableVideoToolboxTonemapping case final value?) 'EnableVideoToolboxTonemapping': value, - if (tonemappingAlgorithmNullableToJson(instance.tonemappingAlgorithm) case final value?) + if (instance.enableTonemapping case final value?) + 'EnableTonemapping': value, + if (instance.enableVppTonemapping case final value?) + 'EnableVppTonemapping': value, + if (instance.enableVideoToolboxTonemapping case final value?) + 'EnableVideoToolboxTonemapping': value, + if (tonemappingAlgorithmNullableToJson(instance.tonemappingAlgorithm) + case final value?) 'TonemappingAlgorithm': value, - if (tonemappingModeNullableToJson(instance.tonemappingMode) case final value?) 'TonemappingMode': value, - if (tonemappingRangeNullableToJson(instance.tonemappingRange) case final value?) 'TonemappingRange': value, - if (instance.tonemappingDesat case final value?) 'TonemappingDesat': value, + if (tonemappingModeNullableToJson(instance.tonemappingMode) + case final value?) + 'TonemappingMode': value, + if (tonemappingRangeNullableToJson(instance.tonemappingRange) + case final value?) + 'TonemappingRange': value, + if (instance.tonemappingDesat case final value?) + 'TonemappingDesat': value, if (instance.tonemappingPeak case final value?) 'TonemappingPeak': value, - if (instance.tonemappingParam case final value?) 'TonemappingParam': value, - if (instance.vppTonemappingBrightness case final value?) 'VppTonemappingBrightness': value, - if (instance.vppTonemappingContrast case final value?) 'VppTonemappingContrast': value, + if (instance.tonemappingParam case final value?) + 'TonemappingParam': value, + if (instance.vppTonemappingBrightness case final value?) + 'VppTonemappingBrightness': value, + if (instance.vppTonemappingContrast case final value?) + 'VppTonemappingContrast': value, if (instance.h264Crf case final value?) 'H264Crf': value, if (instance.h265Crf case final value?) 'H265Crf': value, - if (encoderPresetNullableToJson(instance.encoderPreset) case final value?) 'EncoderPreset': value, - if (instance.deinterlaceDoubleRate case final value?) 'DeinterlaceDoubleRate': value, - if (deinterlaceMethodNullableToJson(instance.deinterlaceMethod) case final value?) 'DeinterlaceMethod': value, - if (instance.enableDecodingColorDepth10Hevc case final value?) 'EnableDecodingColorDepth10Hevc': value, - if (instance.enableDecodingColorDepth10Vp9 case final value?) 'EnableDecodingColorDepth10Vp9': value, - if (instance.enableDecodingColorDepth10HevcRext case final value?) 'EnableDecodingColorDepth10HevcRext': value, - if (instance.enableDecodingColorDepth12HevcRext case final value?) 'EnableDecodingColorDepth12HevcRext': value, - if (instance.enableEnhancedNvdecDecoder case final value?) 'EnableEnhancedNvdecDecoder': value, - if (instance.preferSystemNativeHwDecoder case final value?) 'PreferSystemNativeHwDecoder': value, - if (instance.enableIntelLowPowerH264HwEncoder case final value?) 'EnableIntelLowPowerH264HwEncoder': value, - if (instance.enableIntelLowPowerHevcHwEncoder case final value?) 'EnableIntelLowPowerHevcHwEncoder': value, - if (instance.enableHardwareEncoding case final value?) 'EnableHardwareEncoding': value, - if (instance.allowHevcEncoding case final value?) 'AllowHevcEncoding': value, - if (instance.allowAv1Encoding case final value?) 'AllowAv1Encoding': value, - if (instance.enableSubtitleExtraction case final value?) 'EnableSubtitleExtraction': value, - if (instance.hardwareDecodingCodecs case final value?) 'HardwareDecodingCodecs': value, - if (instance.allowOnDemandMetadataBasedKeyframeExtractionForExtensions case final value?) + if (encoderPresetNullableToJson(instance.encoderPreset) case final value?) + 'EncoderPreset': value, + if (instance.deinterlaceDoubleRate case final value?) + 'DeinterlaceDoubleRate': value, + if (deinterlaceMethodNullableToJson(instance.deinterlaceMethod) + case final value?) + 'DeinterlaceMethod': value, + if (instance.enableDecodingColorDepth10Hevc case final value?) + 'EnableDecodingColorDepth10Hevc': value, + if (instance.enableDecodingColorDepth10Vp9 case final value?) + 'EnableDecodingColorDepth10Vp9': value, + if (instance.enableDecodingColorDepth10HevcRext case final value?) + 'EnableDecodingColorDepth10HevcRext': value, + if (instance.enableDecodingColorDepth12HevcRext case final value?) + 'EnableDecodingColorDepth12HevcRext': value, + if (instance.enableEnhancedNvdecDecoder case final value?) + 'EnableEnhancedNvdecDecoder': value, + if (instance.preferSystemNativeHwDecoder case final value?) + 'PreferSystemNativeHwDecoder': value, + if (instance.enableIntelLowPowerH264HwEncoder case final value?) + 'EnableIntelLowPowerH264HwEncoder': value, + if (instance.enableIntelLowPowerHevcHwEncoder case final value?) + 'EnableIntelLowPowerHevcHwEncoder': value, + if (instance.enableHardwareEncoding case final value?) + 'EnableHardwareEncoding': value, + if (instance.allowHevcEncoding case final value?) + 'AllowHevcEncoding': value, + if (instance.allowAv1Encoding case final value?) + 'AllowAv1Encoding': value, + if (instance.enableSubtitleExtraction case final value?) + 'EnableSubtitleExtraction': value, + if (instance.hardwareDecodingCodecs case final value?) + 'HardwareDecodingCodecs': value, + if (instance.allowOnDemandMetadataBasedKeyframeExtractionForExtensions + case final value?) 'AllowOnDemandMetadataBasedKeyframeExtractionForExtensions': value, }; @@ -1409,21 +1937,25 @@ EndPointInfo _$EndPointInfoFromJson(Map json) => EndPointInfo( isInNetwork: json['IsInNetwork'] as bool?, ); -Map _$EndPointInfoToJson(EndPointInfo instance) => { +Map _$EndPointInfoToJson(EndPointInfo instance) => + { if (instance.isLocal case final value?) 'IsLocal': value, if (instance.isInNetwork case final value?) 'IsInNetwork': value, }; -ExternalIdInfo _$ExternalIdInfoFromJson(Map json) => ExternalIdInfo( +ExternalIdInfo _$ExternalIdInfoFromJson(Map json) => + ExternalIdInfo( name: json['Name'] as String?, key: json['Key'] as String?, type: externalIdMediaTypeNullableFromJson(json['Type']), ); -Map _$ExternalIdInfoToJson(ExternalIdInfo instance) => { +Map _$ExternalIdInfoToJson(ExternalIdInfo instance) => + { if (instance.name case final value?) 'Name': value, if (instance.key case final value?) 'Key': value, - if (externalIdMediaTypeNullableToJson(instance.type) case final value?) 'Type': value, + if (externalIdMediaTypeNullableToJson(instance.type) case final value?) + 'Type': value, }; ExternalUrl _$ExternalUrlFromJson(Map json) => ExternalUrl( @@ -1431,24 +1963,30 @@ ExternalUrl _$ExternalUrlFromJson(Map json) => ExternalUrl( url: json['Url'] as String?, ); -Map _$ExternalUrlToJson(ExternalUrl instance) => { +Map _$ExternalUrlToJson(ExternalUrl instance) => + { if (instance.name case final value?) 'Name': value, if (instance.url case final value?) 'Url': value, }; -FileSystemEntryInfo _$FileSystemEntryInfoFromJson(Map json) => FileSystemEntryInfo( +FileSystemEntryInfo _$FileSystemEntryInfoFromJson(Map json) => + FileSystemEntryInfo( name: json['Name'] as String?, path: json['Path'] as String?, type: fileSystemEntryTypeNullableFromJson(json['Type']), ); -Map _$FileSystemEntryInfoToJson(FileSystemEntryInfo instance) => { +Map _$FileSystemEntryInfoToJson( + FileSystemEntryInfo instance) => + { if (instance.name case final value?) 'Name': value, if (instance.path case final value?) 'Path': value, - if (fileSystemEntryTypeNullableToJson(instance.type) case final value?) 'Type': value, + if (fileSystemEntryTypeNullableToJson(instance.type) case final value?) + 'Type': value, }; -FolderStorageDto _$FolderStorageDtoFromJson(Map json) => FolderStorageDto( +FolderStorageDto _$FolderStorageDtoFromJson(Map json) => + FolderStorageDto( path: json['Path'] as String?, freeSpace: (json['FreeSpace'] as num?)?.toInt(), usedSpace: (json['UsedSpace'] as num?)?.toInt(), @@ -1456,7 +1994,8 @@ FolderStorageDto _$FolderStorageDtoFromJson(Map json) => Folder deviceId: json['DeviceId'] as String?, ); -Map _$FolderStorageDtoToJson(FolderStorageDto instance) => { +Map _$FolderStorageDtoToJson(FolderStorageDto instance) => + { if (instance.path case final value?) 'Path': value, if (instance.freeSpace case final value?) 'FreeSpace': value, if (instance.usedSpace case final value?) 'UsedSpace': value, @@ -1467,90 +2006,144 @@ Map _$FolderStorageDtoToJson(FolderStorageDto instance) => json) => FontFile( name: json['Name'] as String?, size: (json['Size'] as num?)?.toInt(), - dateCreated: json['DateCreated'] == null ? null : DateTime.parse(json['DateCreated'] as String), - dateModified: json['DateModified'] == null ? null : DateTime.parse(json['DateModified'] as String), + dateCreated: json['DateCreated'] == null + ? null + : DateTime.parse(json['DateCreated'] as String), + dateModified: json['DateModified'] == null + ? null + : DateTime.parse(json['DateModified'] as String), ); Map _$FontFileToJson(FontFile instance) => { if (instance.name case final value?) 'Name': value, if (instance.size case final value?) 'Size': value, - if (instance.dateCreated?.toIso8601String() case final value?) 'DateCreated': value, - if (instance.dateModified?.toIso8601String() case final value?) 'DateModified': value, + if (instance.dateCreated?.toIso8601String() case final value?) + 'DateCreated': value, + if (instance.dateModified?.toIso8601String() case final value?) + 'DateModified': value, }; -ForceKeepAliveMessage _$ForceKeepAliveMessageFromJson(Map json) => ForceKeepAliveMessage( +ForceKeepAliveMessage _$ForceKeepAliveMessageFromJson( + Map json) => + ForceKeepAliveMessage( data: (json['Data'] as num?)?.toInt(), messageId: json['MessageId'] as String?, - messageType: ForceKeepAliveMessage.sessionMessageTypeMessageTypeNullableFromJson(json['MessageType']), + messageType: + ForceKeepAliveMessage.sessionMessageTypeMessageTypeNullableFromJson( + json['MessageType']), ); -Map _$ForceKeepAliveMessageToJson(ForceKeepAliveMessage instance) => { +Map _$ForceKeepAliveMessageToJson( + ForceKeepAliveMessage instance) => + { if (instance.data case final value?) 'Data': value, if (instance.messageId case final value?) 'MessageId': value, - if (sessionMessageTypeNullableToJson(instance.messageType) case final value?) 'MessageType': value, + if (sessionMessageTypeNullableToJson(instance.messageType) + case final value?) + 'MessageType': value, }; -ForgotPasswordDto _$ForgotPasswordDtoFromJson(Map json) => ForgotPasswordDto( +ForgotPasswordDto _$ForgotPasswordDtoFromJson(Map json) => + ForgotPasswordDto( enteredUsername: json['EnteredUsername'] as String, ); -Map _$ForgotPasswordDtoToJson(ForgotPasswordDto instance) => { +Map _$ForgotPasswordDtoToJson(ForgotPasswordDto instance) => + { 'EnteredUsername': instance.enteredUsername, }; -ForgotPasswordPinDto _$ForgotPasswordPinDtoFromJson(Map json) => ForgotPasswordPinDto( +ForgotPasswordPinDto _$ForgotPasswordPinDtoFromJson( + Map json) => + ForgotPasswordPinDto( pin: json['Pin'] as String, ); -Map _$ForgotPasswordPinDtoToJson(ForgotPasswordPinDto instance) => { +Map _$ForgotPasswordPinDtoToJson( + ForgotPasswordPinDto instance) => + { 'Pin': instance.pin, }; -ForgotPasswordResult _$ForgotPasswordResultFromJson(Map json) => ForgotPasswordResult( +ForgotPasswordResult _$ForgotPasswordResultFromJson( + Map json) => + ForgotPasswordResult( action: forgotPasswordActionNullableFromJson(json['Action']), pinFile: json['PinFile'] as String?, - pinExpirationDate: json['PinExpirationDate'] == null ? null : DateTime.parse(json['PinExpirationDate'] as String), + pinExpirationDate: json['PinExpirationDate'] == null + ? null + : DateTime.parse(json['PinExpirationDate'] as String), ); -Map _$ForgotPasswordResultToJson(ForgotPasswordResult instance) => { - if (forgotPasswordActionNullableToJson(instance.action) case final value?) 'Action': value, +Map _$ForgotPasswordResultToJson( + ForgotPasswordResult instance) => + { + if (forgotPasswordActionNullableToJson(instance.action) case final value?) + 'Action': value, if (instance.pinFile case final value?) 'PinFile': value, - if (instance.pinExpirationDate?.toIso8601String() case final value?) 'PinExpirationDate': value, + if (instance.pinExpirationDate?.toIso8601String() case final value?) + 'PinExpirationDate': value, }; -GeneralCommand _$GeneralCommandFromJson(Map json) => GeneralCommand( +GeneralCommand _$GeneralCommandFromJson(Map json) => + GeneralCommand( name: generalCommandTypeNullableFromJson(json['Name']), controllingUserId: json['ControllingUserId'] as String?, arguments: json['Arguments'] as Map?, ); -Map _$GeneralCommandToJson(GeneralCommand instance) => { - if (generalCommandTypeNullableToJson(instance.name) case final value?) 'Name': value, - if (instance.controllingUserId case final value?) 'ControllingUserId': value, +Map _$GeneralCommandToJson(GeneralCommand instance) => + { + if (generalCommandTypeNullableToJson(instance.name) case final value?) + 'Name': value, + if (instance.controllingUserId case final value?) + 'ControllingUserId': value, if (instance.arguments case final value?) 'Arguments': value, }; -GeneralCommandMessage _$GeneralCommandMessageFromJson(Map json) => GeneralCommandMessage( - data: json['Data'] == null ? null : GeneralCommand.fromJson(json['Data'] as Map), +GeneralCommandMessage _$GeneralCommandMessageFromJson( + Map json) => + GeneralCommandMessage( + data: json['Data'] == null + ? null + : GeneralCommand.fromJson(json['Data'] as Map), messageId: json['MessageId'] as String?, - messageType: GeneralCommandMessage.sessionMessageTypeMessageTypeNullableFromJson(json['MessageType']), + messageType: + GeneralCommandMessage.sessionMessageTypeMessageTypeNullableFromJson( + json['MessageType']), ); -Map _$GeneralCommandMessageToJson(GeneralCommandMessage instance) => { +Map _$GeneralCommandMessageToJson( + GeneralCommandMessage instance) => + { if (instance.data?.toJson() case final value?) 'Data': value, if (instance.messageId case final value?) 'MessageId': value, - if (sessionMessageTypeNullableToJson(instance.messageType) case final value?) 'MessageType': value, + if (sessionMessageTypeNullableToJson(instance.messageType) + case final value?) + 'MessageType': value, }; -GetProgramsDto _$GetProgramsDtoFromJson(Map json) => GetProgramsDto( - channelIds: (json['ChannelIds'] as List?)?.map((e) => e as String).toList() ?? [], +GetProgramsDto _$GetProgramsDtoFromJson(Map json) => + GetProgramsDto( + channelIds: (json['ChannelIds'] as List?) + ?.map((e) => e as String) + .toList() ?? + [], userId: json['UserId'] as String?, - minStartDate: json['MinStartDate'] == null ? null : DateTime.parse(json['MinStartDate'] as String), + minStartDate: json['MinStartDate'] == null + ? null + : DateTime.parse(json['MinStartDate'] as String), hasAired: json['HasAired'] as bool?, isAiring: json['IsAiring'] as bool?, - maxStartDate: json['MaxStartDate'] == null ? null : DateTime.parse(json['MaxStartDate'] as String), - minEndDate: json['MinEndDate'] == null ? null : DateTime.parse(json['MinEndDate'] as String), - maxEndDate: json['MaxEndDate'] == null ? null : DateTime.parse(json['MaxEndDate'] as String), + maxStartDate: json['MaxStartDate'] == null + ? null + : DateTime.parse(json['MaxStartDate'] as String), + minEndDate: json['MinEndDate'] == null + ? null + : DateTime.parse(json['MinEndDate'] as String), + maxEndDate: json['MaxEndDate'] == null + ? null + : DateTime.parse(json['MaxEndDate'] as String), isMovie: json['IsMovie'] as bool?, isSeries: json['IsSeries'] as bool?, isNews: json['IsNews'] as bool?, @@ -1560,27 +2153,39 @@ GetProgramsDto _$GetProgramsDtoFromJson(Map json) => GetProgram limit: (json['Limit'] as num?)?.toInt(), sortBy: itemSortByListFromJson(json['SortBy'] as List?), sortOrder: sortOrderListFromJson(json['SortOrder'] as List?), - genres: (json['Genres'] as List?)?.map((e) => e as String).toList() ?? [], - genreIds: (json['GenreIds'] as List?)?.map((e) => e as String).toList() ?? [], + genres: (json['Genres'] as List?) + ?.map((e) => e as String) + .toList() ?? + [], + genreIds: (json['GenreIds'] as List?) + ?.map((e) => e as String) + .toList() ?? + [], enableImages: json['EnableImages'] as bool?, enableTotalRecordCount: json['EnableTotalRecordCount'] as bool? ?? true, imageTypeLimit: (json['ImageTypeLimit'] as num?)?.toInt(), - enableImageTypes: imageTypeListFromJson(json['EnableImageTypes'] as List?), + enableImageTypes: + imageTypeListFromJson(json['EnableImageTypes'] as List?), enableUserData: json['EnableUserData'] as bool?, seriesTimerId: json['SeriesTimerId'] as String?, librarySeriesId: json['LibrarySeriesId'] as String?, fields: itemFieldsListFromJson(json['Fields'] as List?), ); -Map _$GetProgramsDtoToJson(GetProgramsDto instance) => { +Map _$GetProgramsDtoToJson(GetProgramsDto instance) => + { if (instance.channelIds case final value?) 'ChannelIds': value, if (instance.userId case final value?) 'UserId': value, - if (instance.minStartDate?.toIso8601String() case final value?) 'MinStartDate': value, + if (instance.minStartDate?.toIso8601String() case final value?) + 'MinStartDate': value, if (instance.hasAired case final value?) 'HasAired': value, if (instance.isAiring case final value?) 'IsAiring': value, - if (instance.maxStartDate?.toIso8601String() case final value?) 'MaxStartDate': value, - if (instance.minEndDate?.toIso8601String() case final value?) 'MinEndDate': value, - if (instance.maxEndDate?.toIso8601String() case final value?) 'MaxEndDate': value, + if (instance.maxStartDate?.toIso8601String() case final value?) + 'MaxStartDate': value, + if (instance.minEndDate?.toIso8601String() case final value?) + 'MinEndDate': value, + if (instance.maxEndDate?.toIso8601String() case final value?) + 'MaxEndDate': value, if (instance.isMovie case final value?) 'IsMovie': value, if (instance.isSeries case final value?) 'IsSeries': value, if (instance.isNews case final value?) 'IsNews': value, @@ -1593,7 +2198,8 @@ Map _$GetProgramsDtoToJson(GetProgramsDto instance) => json) => GroupInfoDto( groupId: json['GroupId'] as String?, groupName: json['GroupName'] as String?, state: groupStateTypeNullableFromJson(json['State']), - participants: (json['Participants'] as List?)?.map((e) => e as String).toList() ?? [], - lastUpdatedAt: json['LastUpdatedAt'] == null ? null : DateTime.parse(json['LastUpdatedAt'] as String), + participants: (json['Participants'] as List?) + ?.map((e) => e as String) + .toList() ?? + [], + lastUpdatedAt: json['LastUpdatedAt'] == null + ? null + : DateTime.parse(json['LastUpdatedAt'] as String), ); -Map _$GroupInfoDtoToJson(GroupInfoDto instance) => { +Map _$GroupInfoDtoToJson(GroupInfoDto instance) => + { if (instance.groupId case final value?) 'GroupId': value, if (instance.groupName case final value?) 'GroupName': value, - if (groupStateTypeNullableToJson(instance.state) case final value?) 'State': value, + if (groupStateTypeNullableToJson(instance.state) case final value?) + 'State': value, if (instance.participants case final value?) 'Participants': value, - if (instance.lastUpdatedAt?.toIso8601String() case final value?) 'LastUpdatedAt': value, + if (instance.lastUpdatedAt?.toIso8601String() case final value?) + 'LastUpdatedAt': value, }; -GroupStateUpdate _$GroupStateUpdateFromJson(Map json) => GroupStateUpdate( +GroupStateUpdate _$GroupStateUpdateFromJson(Map json) => + GroupStateUpdate( state: groupStateTypeNullableFromJson(json['State']), reason: playbackRequestTypeNullableFromJson(json['Reason']), ); -Map _$GroupStateUpdateToJson(GroupStateUpdate instance) => { - if (groupStateTypeNullableToJson(instance.state) case final value?) 'State': value, - if (playbackRequestTypeNullableToJson(instance.reason) case final value?) 'Reason': value, +Map _$GroupStateUpdateToJson(GroupStateUpdate instance) => + { + if (groupStateTypeNullableToJson(instance.state) case final value?) + 'State': value, + if (playbackRequestTypeNullableToJson(instance.reason) case final value?) + 'Reason': value, }; GroupUpdate _$GroupUpdateFromJson(Map json) => GroupUpdate(); -Map _$GroupUpdateToJson(GroupUpdate instance) => {}; +Map _$GroupUpdateToJson(GroupUpdate instance) => + {}; GuideInfo _$GuideInfoFromJson(Map json) => GuideInfo( - startDate: json['StartDate'] == null ? null : DateTime.parse(json['StartDate'] as String), - endDate: json['EndDate'] == null ? null : DateTime.parse(json['EndDate'] as String), + startDate: json['StartDate'] == null + ? null + : DateTime.parse(json['StartDate'] as String), + endDate: json['EndDate'] == null + ? null + : DateTime.parse(json['EndDate'] as String), ); Map _$GuideInfoToJson(GuideInfo instance) => { - if (instance.startDate?.toIso8601String() case final value?) 'StartDate': value, - if (instance.endDate?.toIso8601String() case final value?) 'EndDate': value, + if (instance.startDate?.toIso8601String() case final value?) + 'StartDate': value, + if (instance.endDate?.toIso8601String() case final value?) + 'EndDate': value, }; -IgnoreWaitRequestDto _$IgnoreWaitRequestDtoFromJson(Map json) => IgnoreWaitRequestDto( +IgnoreWaitRequestDto _$IgnoreWaitRequestDtoFromJson( + Map json) => + IgnoreWaitRequestDto( ignoreWait: json['IgnoreWait'] as bool?, ); -Map _$IgnoreWaitRequestDtoToJson(IgnoreWaitRequestDto instance) => { +Map _$IgnoreWaitRequestDtoToJson( + IgnoreWaitRequestDto instance) => + { if (instance.ignoreWait case final value?) 'IgnoreWait': value, }; @@ -1662,7 +2291,8 @@ ImageInfo _$ImageInfoFromJson(Map json) => ImageInfo( ); Map _$ImageInfoToJson(ImageInfo instance) => { - if (imageTypeNullableToJson(instance.imageType) case final value?) 'ImageType': value, + if (imageTypeNullableToJson(instance.imageType) case final value?) + 'ImageType': value, if (instance.imageIndex case final value?) 'ImageIndex': value, if (instance.imageTag case final value?) 'ImageTag': value, if (instance.path case final value?) 'Path': value, @@ -1678,53 +2308,73 @@ ImageOption _$ImageOptionFromJson(Map json) => ImageOption( minWidth: (json['MinWidth'] as num?)?.toInt(), ); -Map _$ImageOptionToJson(ImageOption instance) => { - if (imageTypeNullableToJson(instance.type) case final value?) 'Type': value, +Map _$ImageOptionToJson(ImageOption instance) => + { + if (imageTypeNullableToJson(instance.type) case final value?) + 'Type': value, if (instance.limit case final value?) 'Limit': value, if (instance.minWidth case final value?) 'MinWidth': value, }; -ImageProviderInfo _$ImageProviderInfoFromJson(Map json) => ImageProviderInfo( +ImageProviderInfo _$ImageProviderInfoFromJson(Map json) => + ImageProviderInfo( name: json['Name'] as String?, supportedImages: imageTypeListFromJson(json['SupportedImages'] as List?), ); -Map _$ImageProviderInfoToJson(ImageProviderInfo instance) => { +Map _$ImageProviderInfoToJson(ImageProviderInfo instance) => + { if (instance.name case final value?) 'Name': value, 'SupportedImages': imageTypeListToJson(instance.supportedImages), }; -InboundKeepAliveMessage _$InboundKeepAliveMessageFromJson(Map json) => InboundKeepAliveMessage( - messageType: InboundKeepAliveMessage.sessionMessageTypeMessageTypeNullableFromJson(json['MessageType']), +InboundKeepAliveMessage _$InboundKeepAliveMessageFromJson( + Map json) => + InboundKeepAliveMessage( + messageType: + InboundKeepAliveMessage.sessionMessageTypeMessageTypeNullableFromJson( + json['MessageType']), ); -Map _$InboundKeepAliveMessageToJson(InboundKeepAliveMessage instance) => { - if (sessionMessageTypeNullableToJson(instance.messageType) case final value?) 'MessageType': value, +Map _$InboundKeepAliveMessageToJson( + InboundKeepAliveMessage instance) => + { + if (sessionMessageTypeNullableToJson(instance.messageType) + case final value?) + 'MessageType': value, }; -InboundWebSocketMessage _$InboundWebSocketMessageFromJson(Map json) => InboundWebSocketMessage(); +InboundWebSocketMessage _$InboundWebSocketMessageFromJson( + Map json) => + InboundWebSocketMessage(); -Map _$InboundWebSocketMessageToJson(InboundWebSocketMessage instance) => {}; +Map _$InboundWebSocketMessageToJson( + InboundWebSocketMessage instance) => + {}; -InstallationInfo _$InstallationInfoFromJson(Map json) => InstallationInfo( +InstallationInfo _$InstallationInfoFromJson(Map json) => + InstallationInfo( guid: json['Guid'] as String?, name: json['Name'] as String?, version: json['Version'] as String?, changelog: json['Changelog'] as String?, sourceUrl: json['SourceUrl'] as String?, checksum: json['Checksum'] as String?, - packageInfo: - json['PackageInfo'] == null ? null : PackageInfo.fromJson(json['PackageInfo'] as Map), + packageInfo: json['PackageInfo'] == null + ? null + : PackageInfo.fromJson(json['PackageInfo'] as Map), ); -Map _$InstallationInfoToJson(InstallationInfo instance) => { +Map _$InstallationInfoToJson(InstallationInfo instance) => + { if (instance.guid case final value?) 'Guid': value, if (instance.name case final value?) 'Name': value, if (instance.version case final value?) 'Version': value, if (instance.changelog case final value?) 'Changelog': value, if (instance.sourceUrl case final value?) 'SourceUrl': value, if (instance.checksum case final value?) 'Checksum': value, - if (instance.packageInfo?.toJson() case final value?) 'PackageInfo': value, + if (instance.packageInfo?.toJson() case final value?) + 'PackageInfo': value, }; IPlugin _$IPluginFromJson(Map json) => IPlugin( @@ -1742,7 +2392,8 @@ Map _$IPluginToJson(IPlugin instance) => { if (instance.description case final value?) 'Description': value, if (instance.id case final value?) 'Id': value, if (instance.version case final value?) 'Version': value, - if (instance.assemblyFilePath case final value?) 'AssemblyFilePath': value, + if (instance.assemblyFilePath case final value?) + 'AssemblyFilePath': value, if (instance.canUninstall case final value?) 'CanUninstall': value, if (instance.dataFolderPath case final value?) 'DataFolderPath': value, }; @@ -1762,7 +2413,8 @@ ItemCounts _$ItemCountsFromJson(Map json) => ItemCounts( itemCount: (json['ItemCount'] as num?)?.toInt(), ); -Map _$ItemCountsToJson(ItemCounts instance) => { +Map _$ItemCountsToJson(ItemCounts instance) => + { if (instance.movieCount case final value?) 'MovieCount': value, if (instance.seriesCount case final value?) 'SeriesCount': value, if (instance.episodeCount case final value?) 'EpisodeCount': value, @@ -1777,180 +2429,304 @@ Map _$ItemCountsToJson(ItemCounts instance) => json) => JoinGroupRequestDto( +JoinGroupRequestDto _$JoinGroupRequestDtoFromJson(Map json) => + JoinGroupRequestDto( groupId: json['GroupId'] as String?, ); -Map _$JoinGroupRequestDtoToJson(JoinGroupRequestDto instance) => { +Map _$JoinGroupRequestDtoToJson( + JoinGroupRequestDto instance) => + { if (instance.groupId case final value?) 'GroupId': value, }; -LibraryChangedMessage _$LibraryChangedMessageFromJson(Map json) => LibraryChangedMessage( - data: json['Data'] == null ? null : LibraryUpdateInfo.fromJson(json['Data'] as Map), +LibraryChangedMessage _$LibraryChangedMessageFromJson( + Map json) => + LibraryChangedMessage( + data: json['Data'] == null + ? null + : LibraryUpdateInfo.fromJson(json['Data'] as Map), messageId: json['MessageId'] as String?, - messageType: LibraryChangedMessage.sessionMessageTypeMessageTypeNullableFromJson(json['MessageType']), + messageType: + LibraryChangedMessage.sessionMessageTypeMessageTypeNullableFromJson( + json['MessageType']), ); -Map _$LibraryChangedMessageToJson(LibraryChangedMessage instance) => { +Map _$LibraryChangedMessageToJson( + LibraryChangedMessage instance) => + { if (instance.data?.toJson() case final value?) 'Data': value, if (instance.messageId case final value?) 'MessageId': value, - if (sessionMessageTypeNullableToJson(instance.messageType) case final value?) 'MessageType': value, + if (sessionMessageTypeNullableToJson(instance.messageType) + case final value?) + 'MessageType': value, }; -LibraryOptionInfoDto _$LibraryOptionInfoDtoFromJson(Map json) => LibraryOptionInfoDto( +LibraryOptionInfoDto _$LibraryOptionInfoDtoFromJson( + Map json) => + LibraryOptionInfoDto( name: json['Name'] as String?, defaultEnabled: json['DefaultEnabled'] as bool?, ); -Map _$LibraryOptionInfoDtoToJson(LibraryOptionInfoDto instance) => { +Map _$LibraryOptionInfoDtoToJson( + LibraryOptionInfoDto instance) => + { if (instance.name case final value?) 'Name': value, if (instance.defaultEnabled case final value?) 'DefaultEnabled': value, }; -LibraryOptions _$LibraryOptionsFromJson(Map json) => LibraryOptions( +LibraryOptions _$LibraryOptionsFromJson(Map json) => + LibraryOptions( enabled: json['Enabled'] as bool?, enablePhotos: json['EnablePhotos'] as bool?, enableRealtimeMonitor: json['EnableRealtimeMonitor'] as bool?, enableLUFSScan: json['EnableLUFSScan'] as bool?, - enableChapterImageExtraction: json['EnableChapterImageExtraction'] as bool?, - extractChapterImagesDuringLibraryScan: json['ExtractChapterImagesDuringLibraryScan'] as bool?, - enableTrickplayImageExtraction: json['EnableTrickplayImageExtraction'] as bool?, - extractTrickplayImagesDuringLibraryScan: json['ExtractTrickplayImagesDuringLibraryScan'] as bool?, + enableChapterImageExtraction: + json['EnableChapterImageExtraction'] as bool?, + extractChapterImagesDuringLibraryScan: + json['ExtractChapterImagesDuringLibraryScan'] as bool?, + enableTrickplayImageExtraction: + json['EnableTrickplayImageExtraction'] as bool?, + extractTrickplayImagesDuringLibraryScan: + json['ExtractTrickplayImagesDuringLibraryScan'] as bool?, pathInfos: (json['PathInfos'] as List?) ?.map((e) => MediaPathInfo.fromJson(e as Map)) .toList() ?? [], saveLocalMetadata: json['SaveLocalMetadata'] as bool?, enableInternetProviders: json['EnableInternetProviders'] as bool?, - enableAutomaticSeriesGrouping: json['EnableAutomaticSeriesGrouping'] as bool?, + enableAutomaticSeriesGrouping: + json['EnableAutomaticSeriesGrouping'] as bool?, enableEmbeddedTitles: json['EnableEmbeddedTitles'] as bool?, enableEmbeddedExtrasTitles: json['EnableEmbeddedExtrasTitles'] as bool?, enableEmbeddedEpisodeInfos: json['EnableEmbeddedEpisodeInfos'] as bool?, - automaticRefreshIntervalDays: (json['AutomaticRefreshIntervalDays'] as num?)?.toInt(), + automaticRefreshIntervalDays: + (json['AutomaticRefreshIntervalDays'] as num?)?.toInt(), preferredMetadataLanguage: json['PreferredMetadataLanguage'] as String?, metadataCountryCode: json['MetadataCountryCode'] as String?, seasonZeroDisplayName: json['SeasonZeroDisplayName'] as String?, - metadataSavers: (json['MetadataSavers'] as List?)?.map((e) => e as String).toList() ?? [], + metadataSavers: (json['MetadataSavers'] as List?) + ?.map((e) => e as String) + .toList() ?? + [], disabledLocalMetadataReaders: - (json['DisabledLocalMetadataReaders'] as List?)?.map((e) => e as String).toList() ?? [], + (json['DisabledLocalMetadataReaders'] as List?) + ?.map((e) => e as String) + .toList() ?? + [], localMetadataReaderOrder: - (json['LocalMetadataReaderOrder'] as List?)?.map((e) => e as String).toList() ?? [], + (json['LocalMetadataReaderOrder'] as List?) + ?.map((e) => e as String) + .toList() ?? + [], disabledSubtitleFetchers: - (json['DisabledSubtitleFetchers'] as List?)?.map((e) => e as String).toList() ?? [], - subtitleFetcherOrder: (json['SubtitleFetcherOrder'] as List?)?.map((e) => e as String).toList() ?? [], + (json['DisabledSubtitleFetchers'] as List?) + ?.map((e) => e as String) + .toList() ?? + [], + subtitleFetcherOrder: (json['SubtitleFetcherOrder'] as List?) + ?.map((e) => e as String) + .toList() ?? + [], disabledMediaSegmentProviders: - (json['DisabledMediaSegmentProviders'] as List?)?.map((e) => e as String).toList() ?? [], + (json['DisabledMediaSegmentProviders'] as List?) + ?.map((e) => e as String) + .toList() ?? + [], mediaSegmentProviderOrder: - (json['MediaSegmentProviderOrder'] as List?)?.map((e) => e as String).toList() ?? [], - skipSubtitlesIfEmbeddedSubtitlesPresent: json['SkipSubtitlesIfEmbeddedSubtitlesPresent'] as bool?, - skipSubtitlesIfAudioTrackMatches: json['SkipSubtitlesIfAudioTrackMatches'] as bool?, + (json['MediaSegmentProviderOrder'] as List?) + ?.map((e) => e as String) + .toList() ?? + [], + skipSubtitlesIfEmbeddedSubtitlesPresent: + json['SkipSubtitlesIfEmbeddedSubtitlesPresent'] as bool?, + skipSubtitlesIfAudioTrackMatches: + json['SkipSubtitlesIfAudioTrackMatches'] as bool?, subtitleDownloadLanguages: - (json['SubtitleDownloadLanguages'] as List?)?.map((e) => e as String).toList() ?? [], + (json['SubtitleDownloadLanguages'] as List?) + ?.map((e) => e as String) + .toList() ?? + [], requirePerfectSubtitleMatch: json['RequirePerfectSubtitleMatch'] as bool?, saveSubtitlesWithMedia: json['SaveSubtitlesWithMedia'] as bool?, saveLyricsWithMedia: json['SaveLyricsWithMedia'] as bool? ?? false, saveTrickplayWithMedia: json['SaveTrickplayWithMedia'] as bool? ?? false, - disabledLyricFetchers: (json['DisabledLyricFetchers'] as List?)?.map((e) => e as String).toList() ?? [], - lyricFetcherOrder: (json['LyricFetcherOrder'] as List?)?.map((e) => e as String).toList() ?? [], - preferNonstandardArtistsTag: json['PreferNonstandardArtistsTag'] as bool? ?? false, + disabledLyricFetchers: (json['DisabledLyricFetchers'] as List?) + ?.map((e) => e as String) + .toList() ?? + [], + lyricFetcherOrder: (json['LyricFetcherOrder'] as List?) + ?.map((e) => e as String) + .toList() ?? + [], + preferNonstandardArtistsTag: + json['PreferNonstandardArtistsTag'] as bool? ?? false, useCustomTagDelimiters: json['UseCustomTagDelimiters'] as bool? ?? false, - customTagDelimiters: (json['CustomTagDelimiters'] as List?)?.map((e) => e as String).toList() ?? [], - delimiterWhitelist: (json['DelimiterWhitelist'] as List?)?.map((e) => e as String).toList() ?? [], - automaticallyAddToCollection: json['AutomaticallyAddToCollection'] as bool?, - allowEmbeddedSubtitles: embeddedSubtitleOptionsNullableFromJson(json['AllowEmbeddedSubtitles']), + customTagDelimiters: (json['CustomTagDelimiters'] as List?) + ?.map((e) => e as String) + .toList() ?? + [], + delimiterWhitelist: (json['DelimiterWhitelist'] as List?) + ?.map((e) => e as String) + .toList() ?? + [], + automaticallyAddToCollection: + json['AutomaticallyAddToCollection'] as bool?, + allowEmbeddedSubtitles: embeddedSubtitleOptionsNullableFromJson( + json['AllowEmbeddedSubtitles']), typeOptions: (json['TypeOptions'] as List?) ?.map((e) => TypeOptions.fromJson(e as Map)) .toList() ?? [], ); -Map _$LibraryOptionsToJson(LibraryOptions instance) => { +Map _$LibraryOptionsToJson(LibraryOptions instance) => + { if (instance.enabled case final value?) 'Enabled': value, if (instance.enablePhotos case final value?) 'EnablePhotos': value, - if (instance.enableRealtimeMonitor case final value?) 'EnableRealtimeMonitor': value, + if (instance.enableRealtimeMonitor case final value?) + 'EnableRealtimeMonitor': value, if (instance.enableLUFSScan case final value?) 'EnableLUFSScan': value, - if (instance.enableChapterImageExtraction case final value?) 'EnableChapterImageExtraction': value, + if (instance.enableChapterImageExtraction case final value?) + 'EnableChapterImageExtraction': value, if (instance.extractChapterImagesDuringLibraryScan case final value?) 'ExtractChapterImagesDuringLibraryScan': value, - if (instance.enableTrickplayImageExtraction case final value?) 'EnableTrickplayImageExtraction': value, + if (instance.enableTrickplayImageExtraction case final value?) + 'EnableTrickplayImageExtraction': value, if (instance.extractTrickplayImagesDuringLibraryScan case final value?) 'ExtractTrickplayImagesDuringLibraryScan': value, - if (instance.pathInfos?.map((e) => e.toJson()).toList() case final value?) 'PathInfos': value, - if (instance.saveLocalMetadata case final value?) 'SaveLocalMetadata': value, - if (instance.enableInternetProviders case final value?) 'EnableInternetProviders': value, - if (instance.enableAutomaticSeriesGrouping case final value?) 'EnableAutomaticSeriesGrouping': value, - if (instance.enableEmbeddedTitles case final value?) 'EnableEmbeddedTitles': value, - if (instance.enableEmbeddedExtrasTitles case final value?) 'EnableEmbeddedExtrasTitles': value, - if (instance.enableEmbeddedEpisodeInfos case final value?) 'EnableEmbeddedEpisodeInfos': value, - if (instance.automaticRefreshIntervalDays case final value?) 'AutomaticRefreshIntervalDays': value, - if (instance.preferredMetadataLanguage case final value?) 'PreferredMetadataLanguage': value, - if (instance.metadataCountryCode case final value?) 'MetadataCountryCode': value, - if (instance.seasonZeroDisplayName case final value?) 'SeasonZeroDisplayName': value, + if (instance.pathInfos?.map((e) => e.toJson()).toList() case final value?) + 'PathInfos': value, + if (instance.saveLocalMetadata case final value?) + 'SaveLocalMetadata': value, + if (instance.enableInternetProviders case final value?) + 'EnableInternetProviders': value, + if (instance.enableAutomaticSeriesGrouping case final value?) + 'EnableAutomaticSeriesGrouping': value, + if (instance.enableEmbeddedTitles case final value?) + 'EnableEmbeddedTitles': value, + if (instance.enableEmbeddedExtrasTitles case final value?) + 'EnableEmbeddedExtrasTitles': value, + if (instance.enableEmbeddedEpisodeInfos case final value?) + 'EnableEmbeddedEpisodeInfos': value, + if (instance.automaticRefreshIntervalDays case final value?) + 'AutomaticRefreshIntervalDays': value, + if (instance.preferredMetadataLanguage case final value?) + 'PreferredMetadataLanguage': value, + if (instance.metadataCountryCode case final value?) + 'MetadataCountryCode': value, + if (instance.seasonZeroDisplayName case final value?) + 'SeasonZeroDisplayName': value, if (instance.metadataSavers case final value?) 'MetadataSavers': value, - if (instance.disabledLocalMetadataReaders case final value?) 'DisabledLocalMetadataReaders': value, - if (instance.localMetadataReaderOrder case final value?) 'LocalMetadataReaderOrder': value, - if (instance.disabledSubtitleFetchers case final value?) 'DisabledSubtitleFetchers': value, - if (instance.subtitleFetcherOrder case final value?) 'SubtitleFetcherOrder': value, - if (instance.disabledMediaSegmentProviders case final value?) 'DisabledMediaSegmentProviders': value, - if (instance.mediaSegmentProviderOrder case final value?) 'MediaSegmentProviderOrder': value, + if (instance.disabledLocalMetadataReaders case final value?) + 'DisabledLocalMetadataReaders': value, + if (instance.localMetadataReaderOrder case final value?) + 'LocalMetadataReaderOrder': value, + if (instance.disabledSubtitleFetchers case final value?) + 'DisabledSubtitleFetchers': value, + if (instance.subtitleFetcherOrder case final value?) + 'SubtitleFetcherOrder': value, + if (instance.disabledMediaSegmentProviders case final value?) + 'DisabledMediaSegmentProviders': value, + if (instance.mediaSegmentProviderOrder case final value?) + 'MediaSegmentProviderOrder': value, if (instance.skipSubtitlesIfEmbeddedSubtitlesPresent case final value?) 'SkipSubtitlesIfEmbeddedSubtitlesPresent': value, - if (instance.skipSubtitlesIfAudioTrackMatches case final value?) 'SkipSubtitlesIfAudioTrackMatches': value, - if (instance.subtitleDownloadLanguages case final value?) 'SubtitleDownloadLanguages': value, - if (instance.requirePerfectSubtitleMatch case final value?) 'RequirePerfectSubtitleMatch': value, - if (instance.saveSubtitlesWithMedia case final value?) 'SaveSubtitlesWithMedia': value, - if (instance.saveLyricsWithMedia case final value?) 'SaveLyricsWithMedia': value, - if (instance.saveTrickplayWithMedia case final value?) 'SaveTrickplayWithMedia': value, - if (instance.disabledLyricFetchers case final value?) 'DisabledLyricFetchers': value, - if (instance.lyricFetcherOrder case final value?) 'LyricFetcherOrder': value, - if (instance.preferNonstandardArtistsTag case final value?) 'PreferNonstandardArtistsTag': value, - if (instance.useCustomTagDelimiters case final value?) 'UseCustomTagDelimiters': value, - if (instance.customTagDelimiters case final value?) 'CustomTagDelimiters': value, - if (instance.delimiterWhitelist case final value?) 'DelimiterWhitelist': value, - if (instance.automaticallyAddToCollection case final value?) 'AutomaticallyAddToCollection': value, - if (embeddedSubtitleOptionsNullableToJson(instance.allowEmbeddedSubtitles) case final value?) + if (instance.skipSubtitlesIfAudioTrackMatches case final value?) + 'SkipSubtitlesIfAudioTrackMatches': value, + if (instance.subtitleDownloadLanguages case final value?) + 'SubtitleDownloadLanguages': value, + if (instance.requirePerfectSubtitleMatch case final value?) + 'RequirePerfectSubtitleMatch': value, + if (instance.saveSubtitlesWithMedia case final value?) + 'SaveSubtitlesWithMedia': value, + if (instance.saveLyricsWithMedia case final value?) + 'SaveLyricsWithMedia': value, + if (instance.saveTrickplayWithMedia case final value?) + 'SaveTrickplayWithMedia': value, + if (instance.disabledLyricFetchers case final value?) + 'DisabledLyricFetchers': value, + if (instance.lyricFetcherOrder case final value?) + 'LyricFetcherOrder': value, + if (instance.preferNonstandardArtistsTag case final value?) + 'PreferNonstandardArtistsTag': value, + if (instance.useCustomTagDelimiters case final value?) + 'UseCustomTagDelimiters': value, + if (instance.customTagDelimiters case final value?) + 'CustomTagDelimiters': value, + if (instance.delimiterWhitelist case final value?) + 'DelimiterWhitelist': value, + if (instance.automaticallyAddToCollection case final value?) + 'AutomaticallyAddToCollection': value, + if (embeddedSubtitleOptionsNullableToJson(instance.allowEmbeddedSubtitles) + case final value?) 'AllowEmbeddedSubtitles': value, - if (instance.typeOptions?.map((e) => e.toJson()).toList() case final value?) 'TypeOptions': value, + if (instance.typeOptions?.map((e) => e.toJson()).toList() + case final value?) + 'TypeOptions': value, }; -LibraryOptionsResultDto _$LibraryOptionsResultDtoFromJson(Map json) => LibraryOptionsResultDto( +LibraryOptionsResultDto _$LibraryOptionsResultDtoFromJson( + Map json) => + LibraryOptionsResultDto( metadataSavers: (json['MetadataSavers'] as List?) - ?.map((e) => LibraryOptionInfoDto.fromJson(e as Map)) + ?.map((e) => + LibraryOptionInfoDto.fromJson(e as Map)) .toList() ?? [], metadataReaders: (json['MetadataReaders'] as List?) - ?.map((e) => LibraryOptionInfoDto.fromJson(e as Map)) + ?.map((e) => + LibraryOptionInfoDto.fromJson(e as Map)) .toList() ?? [], subtitleFetchers: (json['SubtitleFetchers'] as List?) - ?.map((e) => LibraryOptionInfoDto.fromJson(e as Map)) + ?.map((e) => + LibraryOptionInfoDto.fromJson(e as Map)) .toList() ?? [], lyricFetchers: (json['LyricFetchers'] as List?) - ?.map((e) => LibraryOptionInfoDto.fromJson(e as Map)) + ?.map((e) => + LibraryOptionInfoDto.fromJson(e as Map)) .toList() ?? [], mediaSegmentProviders: (json['MediaSegmentProviders'] as List?) - ?.map((e) => LibraryOptionInfoDto.fromJson(e as Map)) + ?.map((e) => + LibraryOptionInfoDto.fromJson(e as Map)) .toList() ?? [], typeOptions: (json['TypeOptions'] as List?) - ?.map((e) => LibraryTypeOptionsDto.fromJson(e as Map)) + ?.map((e) => + LibraryTypeOptionsDto.fromJson(e as Map)) .toList() ?? [], ); -Map _$LibraryOptionsResultDtoToJson(LibraryOptionsResultDto instance) => { - if (instance.metadataSavers?.map((e) => e.toJson()).toList() case final value?) 'MetadataSavers': value, - if (instance.metadataReaders?.map((e) => e.toJson()).toList() case final value?) 'MetadataReaders': value, - if (instance.subtitleFetchers?.map((e) => e.toJson()).toList() case final value?) 'SubtitleFetchers': value, - if (instance.lyricFetchers?.map((e) => e.toJson()).toList() case final value?) 'LyricFetchers': value, - if (instance.mediaSegmentProviders?.map((e) => e.toJson()).toList() case final value?) +Map _$LibraryOptionsResultDtoToJson( + LibraryOptionsResultDto instance) => + { + if (instance.metadataSavers?.map((e) => e.toJson()).toList() + case final value?) + 'MetadataSavers': value, + if (instance.metadataReaders?.map((e) => e.toJson()).toList() + case final value?) + 'MetadataReaders': value, + if (instance.subtitleFetchers?.map((e) => e.toJson()).toList() + case final value?) + 'SubtitleFetchers': value, + if (instance.lyricFetchers?.map((e) => e.toJson()).toList() + case final value?) + 'LyricFetchers': value, + if (instance.mediaSegmentProviders?.map((e) => e.toJson()).toList() + case final value?) 'MediaSegmentProviders': value, - if (instance.typeOptions?.map((e) => e.toJson()).toList() case final value?) 'TypeOptions': value, + if (instance.typeOptions?.map((e) => e.toJson()).toList() + case final value?) + 'TypeOptions': value, }; -LibraryStorageDto _$LibraryStorageDtoFromJson(Map json) => LibraryStorageDto( +LibraryStorageDto _$LibraryStorageDtoFromJson(Map json) => + LibraryStorageDto( id: json['Id'] as String?, name: json['Name'] as String?, folders: (json['Folders'] as List?) @@ -1959,58 +2735,97 @@ LibraryStorageDto _$LibraryStorageDtoFromJson(Map json) => Libr [], ); -Map _$LibraryStorageDtoToJson(LibraryStorageDto instance) => { +Map _$LibraryStorageDtoToJson(LibraryStorageDto instance) => + { if (instance.id case final value?) 'Id': value, if (instance.name case final value?) 'Name': value, - if (instance.folders?.map((e) => e.toJson()).toList() case final value?) 'Folders': value, + if (instance.folders?.map((e) => e.toJson()).toList() case final value?) + 'Folders': value, }; -LibraryTypeOptionsDto _$LibraryTypeOptionsDtoFromJson(Map json) => LibraryTypeOptionsDto( +LibraryTypeOptionsDto _$LibraryTypeOptionsDtoFromJson( + Map json) => + LibraryTypeOptionsDto( type: json['Type'] as String?, metadataFetchers: (json['MetadataFetchers'] as List?) - ?.map((e) => LibraryOptionInfoDto.fromJson(e as Map)) + ?.map((e) => + LibraryOptionInfoDto.fromJson(e as Map)) .toList() ?? [], imageFetchers: (json['ImageFetchers'] as List?) - ?.map((e) => LibraryOptionInfoDto.fromJson(e as Map)) + ?.map((e) => + LibraryOptionInfoDto.fromJson(e as Map)) .toList() ?? [], - supportedImageTypes: imageTypeListFromJson(json['SupportedImageTypes'] as List?), + supportedImageTypes: + imageTypeListFromJson(json['SupportedImageTypes'] as List?), defaultImageOptions: (json['DefaultImageOptions'] as List?) ?.map((e) => ImageOption.fromJson(e as Map)) .toList() ?? [], ); -Map _$LibraryTypeOptionsDtoToJson(LibraryTypeOptionsDto instance) => { +Map _$LibraryTypeOptionsDtoToJson( + LibraryTypeOptionsDto instance) => + { if (instance.type case final value?) 'Type': value, - if (instance.metadataFetchers?.map((e) => e.toJson()).toList() case final value?) 'MetadataFetchers': value, - if (instance.imageFetchers?.map((e) => e.toJson()).toList() case final value?) 'ImageFetchers': value, + if (instance.metadataFetchers?.map((e) => e.toJson()).toList() + case final value?) + 'MetadataFetchers': value, + if (instance.imageFetchers?.map((e) => e.toJson()).toList() + case final value?) + 'ImageFetchers': value, 'SupportedImageTypes': imageTypeListToJson(instance.supportedImageTypes), - if (instance.defaultImageOptions?.map((e) => e.toJson()).toList() case final value?) 'DefaultImageOptions': value, + if (instance.defaultImageOptions?.map((e) => e.toJson()).toList() + case final value?) + 'DefaultImageOptions': value, }; -LibraryUpdateInfo _$LibraryUpdateInfoFromJson(Map json) => LibraryUpdateInfo( - foldersAddedTo: (json['FoldersAddedTo'] as List?)?.map((e) => e as String).toList() ?? [], - foldersRemovedFrom: (json['FoldersRemovedFrom'] as List?)?.map((e) => e as String).toList() ?? [], - itemsAdded: (json['ItemsAdded'] as List?)?.map((e) => e as String).toList() ?? [], - itemsRemoved: (json['ItemsRemoved'] as List?)?.map((e) => e as String).toList() ?? [], - itemsUpdated: (json['ItemsUpdated'] as List?)?.map((e) => e as String).toList() ?? [], - collectionFolders: (json['CollectionFolders'] as List?)?.map((e) => e as String).toList() ?? [], +LibraryUpdateInfo _$LibraryUpdateInfoFromJson(Map json) => + LibraryUpdateInfo( + foldersAddedTo: (json['FoldersAddedTo'] as List?) + ?.map((e) => e as String) + .toList() ?? + [], + foldersRemovedFrom: (json['FoldersRemovedFrom'] as List?) + ?.map((e) => e as String) + .toList() ?? + [], + itemsAdded: (json['ItemsAdded'] as List?) + ?.map((e) => e as String) + .toList() ?? + [], + itemsRemoved: (json['ItemsRemoved'] as List?) + ?.map((e) => e as String) + .toList() ?? + [], + itemsUpdated: (json['ItemsUpdated'] as List?) + ?.map((e) => e as String) + .toList() ?? + [], + collectionFolders: (json['CollectionFolders'] as List?) + ?.map((e) => e as String) + .toList() ?? + [], isEmpty: json['IsEmpty'] as bool?, ); -Map _$LibraryUpdateInfoToJson(LibraryUpdateInfo instance) => { +Map _$LibraryUpdateInfoToJson(LibraryUpdateInfo instance) => + { if (instance.foldersAddedTo case final value?) 'FoldersAddedTo': value, - if (instance.foldersRemovedFrom case final value?) 'FoldersRemovedFrom': value, + if (instance.foldersRemovedFrom case final value?) + 'FoldersRemovedFrom': value, if (instance.itemsAdded case final value?) 'ItemsAdded': value, if (instance.itemsRemoved case final value?) 'ItemsRemoved': value, if (instance.itemsUpdated case final value?) 'ItemsUpdated': value, - if (instance.collectionFolders case final value?) 'CollectionFolders': value, + if (instance.collectionFolders case final value?) + 'CollectionFolders': value, if (instance.isEmpty case final value?) 'IsEmpty': value, }; -ListingsProviderInfo _$ListingsProviderInfoFromJson(Map json) => ListingsProviderInfo( +ListingsProviderInfo _$ListingsProviderInfoFromJson( + Map json) => + ListingsProviderInfo( id: json['Id'] as String?, type: json['Type'] as String?, username: json['Username'] as String?, @@ -2019,12 +2834,27 @@ ListingsProviderInfo _$ListingsProviderInfoFromJson(Map json) = zipCode: json['ZipCode'] as String?, country: json['Country'] as String?, path: json['Path'] as String?, - enabledTuners: (json['EnabledTuners'] as List?)?.map((e) => e as String).toList() ?? [], + enabledTuners: (json['EnabledTuners'] as List?) + ?.map((e) => e as String) + .toList() ?? + [], enableAllTuners: json['EnableAllTuners'] as bool?, - newsCategories: (json['NewsCategories'] as List?)?.map((e) => e as String).toList() ?? [], - sportsCategories: (json['SportsCategories'] as List?)?.map((e) => e as String).toList() ?? [], - kidsCategories: (json['KidsCategories'] as List?)?.map((e) => e as String).toList() ?? [], - movieCategories: (json['MovieCategories'] as List?)?.map((e) => e as String).toList() ?? [], + newsCategories: (json['NewsCategories'] as List?) + ?.map((e) => e as String) + .toList() ?? + [], + sportsCategories: (json['SportsCategories'] as List?) + ?.map((e) => e as String) + .toList() ?? + [], + kidsCategories: (json['KidsCategories'] as List?) + ?.map((e) => e as String) + .toList() ?? + [], + movieCategories: (json['MovieCategories'] as List?) + ?.map((e) => e as String) + .toList() ?? + [], channelMappings: (json['ChannelMappings'] as List?) ?.map((e) => NameValuePair.fromJson(e as Map)) .toList() ?? @@ -2034,7 +2864,9 @@ ListingsProviderInfo _$ListingsProviderInfoFromJson(Map json) = userAgent: json['UserAgent'] as String?, ); -Map _$ListingsProviderInfoToJson(ListingsProviderInfo instance) => { +Map _$ListingsProviderInfoToJson( + ListingsProviderInfo instance) => + { if (instance.id case final value?) 'Id': value, if (instance.type case final value?) 'Type': value, if (instance.username case final value?) 'Username': value, @@ -2046,83 +2878,121 @@ Map _$ListingsProviderInfoToJson(ListingsProviderInfo instance) if (instance.enabledTuners case final value?) 'EnabledTuners': value, if (instance.enableAllTuners case final value?) 'EnableAllTuners': value, if (instance.newsCategories case final value?) 'NewsCategories': value, - if (instance.sportsCategories case final value?) 'SportsCategories': value, + if (instance.sportsCategories case final value?) + 'SportsCategories': value, if (instance.kidsCategories case final value?) 'KidsCategories': value, if (instance.movieCategories case final value?) 'MovieCategories': value, - if (instance.channelMappings?.map((e) => e.toJson()).toList() case final value?) 'ChannelMappings': value, + if (instance.channelMappings?.map((e) => e.toJson()).toList() + case final value?) + 'ChannelMappings': value, if (instance.moviePrefix case final value?) 'MoviePrefix': value, - if (instance.preferredLanguage case final value?) 'PreferredLanguage': value, + if (instance.preferredLanguage case final value?) + 'PreferredLanguage': value, if (instance.userAgent case final value?) 'UserAgent': value, }; -LiveStreamResponse _$LiveStreamResponseFromJson(Map json) => LiveStreamResponse( - mediaSource: - json['MediaSource'] == null ? null : MediaSourceInfo.fromJson(json['MediaSource'] as Map), +LiveStreamResponse _$LiveStreamResponseFromJson(Map json) => + LiveStreamResponse( + mediaSource: json['MediaSource'] == null + ? null + : MediaSourceInfo.fromJson( + json['MediaSource'] as Map), ); -Map _$LiveStreamResponseToJson(LiveStreamResponse instance) => { - if (instance.mediaSource?.toJson() case final value?) 'MediaSource': value, +Map _$LiveStreamResponseToJson(LiveStreamResponse instance) => + { + if (instance.mediaSource?.toJson() case final value?) + 'MediaSource': value, }; LiveTvInfo _$LiveTvInfoFromJson(Map json) => LiveTvInfo( services: (json['Services'] as List?) - ?.map((e) => LiveTvServiceInfo.fromJson(e as Map)) + ?.map( + (e) => LiveTvServiceInfo.fromJson(e as Map)) .toList() ?? [], isEnabled: json['IsEnabled'] as bool?, - enabledUsers: (json['EnabledUsers'] as List?)?.map((e) => e as String).toList() ?? [], + enabledUsers: (json['EnabledUsers'] as List?) + ?.map((e) => e as String) + .toList() ?? + [], ); -Map _$LiveTvInfoToJson(LiveTvInfo instance) => { - if (instance.services?.map((e) => e.toJson()).toList() case final value?) 'Services': value, +Map _$LiveTvInfoToJson(LiveTvInfo instance) => + { + if (instance.services?.map((e) => e.toJson()).toList() case final value?) + 'Services': value, if (instance.isEnabled case final value?) 'IsEnabled': value, if (instance.enabledUsers case final value?) 'EnabledUsers': value, }; -LiveTvOptions _$LiveTvOptionsFromJson(Map json) => LiveTvOptions( +LiveTvOptions _$LiveTvOptionsFromJson(Map json) => + LiveTvOptions( guideDays: (json['GuideDays'] as num?)?.toInt(), recordingPath: json['RecordingPath'] as String?, movieRecordingPath: json['MovieRecordingPath'] as String?, seriesRecordingPath: json['SeriesRecordingPath'] as String?, enableRecordingSubfolders: json['EnableRecordingSubfolders'] as bool?, - enableOriginalAudioWithEncodedRecordings: json['EnableOriginalAudioWithEncodedRecordings'] as bool?, + enableOriginalAudioWithEncodedRecordings: + json['EnableOriginalAudioWithEncodedRecordings'] as bool?, tunerHosts: (json['TunerHosts'] as List?) ?.map((e) => TunerHostInfo.fromJson(e as Map)) .toList() ?? [], listingProviders: (json['ListingProviders'] as List?) - ?.map((e) => ListingsProviderInfo.fromJson(e as Map)) + ?.map((e) => + ListingsProviderInfo.fromJson(e as Map)) .toList() ?? [], prePaddingSeconds: (json['PrePaddingSeconds'] as num?)?.toInt(), postPaddingSeconds: (json['PostPaddingSeconds'] as num?)?.toInt(), - mediaLocationsCreated: (json['MediaLocationsCreated'] as List?)?.map((e) => e as String).toList() ?? [], + mediaLocationsCreated: (json['MediaLocationsCreated'] as List?) + ?.map((e) => e as String) + .toList() ?? + [], recordingPostProcessor: json['RecordingPostProcessor'] as String?, - recordingPostProcessorArguments: json['RecordingPostProcessorArguments'] as String?, + recordingPostProcessorArguments: + json['RecordingPostProcessorArguments'] as String?, saveRecordingNFO: json['SaveRecordingNFO'] as bool?, saveRecordingImages: json['SaveRecordingImages'] as bool?, ); -Map _$LiveTvOptionsToJson(LiveTvOptions instance) => { +Map _$LiveTvOptionsToJson(LiveTvOptions instance) => + { if (instance.guideDays case final value?) 'GuideDays': value, if (instance.recordingPath case final value?) 'RecordingPath': value, - if (instance.movieRecordingPath case final value?) 'MovieRecordingPath': value, - if (instance.seriesRecordingPath case final value?) 'SeriesRecordingPath': value, - if (instance.enableRecordingSubfolders case final value?) 'EnableRecordingSubfolders': value, + if (instance.movieRecordingPath case final value?) + 'MovieRecordingPath': value, + if (instance.seriesRecordingPath case final value?) + 'SeriesRecordingPath': value, + if (instance.enableRecordingSubfolders case final value?) + 'EnableRecordingSubfolders': value, if (instance.enableOriginalAudioWithEncodedRecordings case final value?) 'EnableOriginalAudioWithEncodedRecordings': value, - if (instance.tunerHosts?.map((e) => e.toJson()).toList() case final value?) 'TunerHosts': value, - if (instance.listingProviders?.map((e) => e.toJson()).toList() case final value?) 'ListingProviders': value, - if (instance.prePaddingSeconds case final value?) 'PrePaddingSeconds': value, - if (instance.postPaddingSeconds case final value?) 'PostPaddingSeconds': value, - if (instance.mediaLocationsCreated case final value?) 'MediaLocationsCreated': value, - if (instance.recordingPostProcessor case final value?) 'RecordingPostProcessor': value, - if (instance.recordingPostProcessorArguments case final value?) 'RecordingPostProcessorArguments': value, - if (instance.saveRecordingNFO case final value?) 'SaveRecordingNFO': value, - if (instance.saveRecordingImages case final value?) 'SaveRecordingImages': value, - }; - -LiveTvServiceInfo _$LiveTvServiceInfoFromJson(Map json) => LiveTvServiceInfo( + if (instance.tunerHosts?.map((e) => e.toJson()).toList() + case final value?) + 'TunerHosts': value, + if (instance.listingProviders?.map((e) => e.toJson()).toList() + case final value?) + 'ListingProviders': value, + if (instance.prePaddingSeconds case final value?) + 'PrePaddingSeconds': value, + if (instance.postPaddingSeconds case final value?) + 'PostPaddingSeconds': value, + if (instance.mediaLocationsCreated case final value?) + 'MediaLocationsCreated': value, + if (instance.recordingPostProcessor case final value?) + 'RecordingPostProcessor': value, + if (instance.recordingPostProcessorArguments case final value?) + 'RecordingPostProcessorArguments': value, + if (instance.saveRecordingNFO case final value?) + 'SaveRecordingNFO': value, + if (instance.saveRecordingImages case final value?) + 'SaveRecordingImages': value, + }; + +LiveTvServiceInfo _$LiveTvServiceInfoFromJson(Map json) => + LiveTvServiceInfo( name: json['Name'] as String?, homePageUrl: json['HomePageUrl'] as String?, status: liveTvServiceStatusNullableFromJson(json['Status']), @@ -2130,76 +3000,100 @@ LiveTvServiceInfo _$LiveTvServiceInfoFromJson(Map json) => Live version: json['Version'] as String?, hasUpdateAvailable: json['HasUpdateAvailable'] as bool?, isVisible: json['IsVisible'] as bool?, - tuners: (json['Tuners'] as List?)?.map((e) => e as String).toList() ?? [], + tuners: (json['Tuners'] as List?) + ?.map((e) => e as String) + .toList() ?? + [], ); -Map _$LiveTvServiceInfoToJson(LiveTvServiceInfo instance) => { +Map _$LiveTvServiceInfoToJson(LiveTvServiceInfo instance) => + { if (instance.name case final value?) 'Name': value, if (instance.homePageUrl case final value?) 'HomePageUrl': value, - if (liveTvServiceStatusNullableToJson(instance.status) case final value?) 'Status': value, + if (liveTvServiceStatusNullableToJson(instance.status) case final value?) + 'Status': value, if (instance.statusMessage case final value?) 'StatusMessage': value, if (instance.version case final value?) 'Version': value, - if (instance.hasUpdateAvailable case final value?) 'HasUpdateAvailable': value, + if (instance.hasUpdateAvailable case final value?) + 'HasUpdateAvailable': value, if (instance.isVisible case final value?) 'IsVisible': value, if (instance.tuners case final value?) 'Tuners': value, }; -LocalizationOption _$LocalizationOptionFromJson(Map json) => LocalizationOption( +LocalizationOption _$LocalizationOptionFromJson(Map json) => + LocalizationOption( name: json['Name'] as String?, $Value: json['Value'] as String?, ); -Map _$LocalizationOptionToJson(LocalizationOption instance) => { +Map _$LocalizationOptionToJson(LocalizationOption instance) => + { if (instance.name case final value?) 'Name': value, if (instance.$Value case final value?) 'Value': value, }; LogFile _$LogFileFromJson(Map json) => LogFile( - dateCreated: json['DateCreated'] == null ? null : DateTime.parse(json['DateCreated'] as String), - dateModified: json['DateModified'] == null ? null : DateTime.parse(json['DateModified'] as String), + dateCreated: json['DateCreated'] == null + ? null + : DateTime.parse(json['DateCreated'] as String), + dateModified: json['DateModified'] == null + ? null + : DateTime.parse(json['DateModified'] as String), size: (json['Size'] as num?)?.toInt(), name: json['Name'] as String?, ); Map _$LogFileToJson(LogFile instance) => { - if (instance.dateCreated?.toIso8601String() case final value?) 'DateCreated': value, - if (instance.dateModified?.toIso8601String() case final value?) 'DateModified': value, + if (instance.dateCreated?.toIso8601String() case final value?) + 'DateCreated': value, + if (instance.dateModified?.toIso8601String() case final value?) + 'DateModified': value, if (instance.size case final value?) 'Size': value, if (instance.name case final value?) 'Name': value, }; -LoginInfoInput _$LoginInfoInputFromJson(Map json) => LoginInfoInput( +LoginInfoInput _$LoginInfoInputFromJson(Map json) => + LoginInfoInput( username: json['Username'] as String, password: json['Password'] as String, ); -Map _$LoginInfoInputToJson(LoginInfoInput instance) => { +Map _$LoginInfoInputToJson(LoginInfoInput instance) => + { 'Username': instance.username, 'Password': instance.password, }; LyricDto _$LyricDtoFromJson(Map json) => LyricDto( - metadata: json['Metadata'] == null ? null : LyricMetadata.fromJson(json['Metadata'] as Map), - lyrics: - (json['Lyrics'] as List?)?.map((e) => LyricLine.fromJson(e as Map)).toList() ?? [], + metadata: json['Metadata'] == null + ? null + : LyricMetadata.fromJson(json['Metadata'] as Map), + lyrics: (json['Lyrics'] as List?) + ?.map((e) => LyricLine.fromJson(e as Map)) + .toList() ?? + [], ); Map _$LyricDtoToJson(LyricDto instance) => { if (instance.metadata?.toJson() case final value?) 'Metadata': value, - if (instance.lyrics?.map((e) => e.toJson()).toList() case final value?) 'Lyrics': value, + if (instance.lyrics?.map((e) => e.toJson()).toList() case final value?) + 'Lyrics': value, }; LyricLine _$LyricLineFromJson(Map json) => LyricLine( text: json['Text'] as String?, start: (json['Start'] as num?)?.toInt(), - cues: - (json['Cues'] as List?)?.map((e) => LyricLineCue.fromJson(e as Map)).toList() ?? [], + cues: (json['Cues'] as List?) + ?.map((e) => LyricLineCue.fromJson(e as Map)) + .toList() ?? + [], ); Map _$LyricLineToJson(LyricLine instance) => { if (instance.text case final value?) 'Text': value, if (instance.start case final value?) 'Start': value, - if (instance.cues?.map((e) => e.toJson()).toList() case final value?) 'Cues': value, + if (instance.cues?.map((e) => e.toJson()).toList() case final value?) + 'Cues': value, }; LyricLineCue _$LyricLineCueFromJson(Map json) => LyricLineCue( @@ -2209,14 +3103,16 @@ LyricLineCue _$LyricLineCueFromJson(Map json) => LyricLineCue( end: (json['End'] as num?)?.toInt(), ); -Map _$LyricLineCueToJson(LyricLineCue instance) => { +Map _$LyricLineCueToJson(LyricLineCue instance) => + { if (instance.position case final value?) 'Position': value, if (instance.endPosition case final value?) 'EndPosition': value, if (instance.start case final value?) 'Start': value, if (instance.end case final value?) 'End': value, }; -LyricMetadata _$LyricMetadataFromJson(Map json) => LyricMetadata( +LyricMetadata _$LyricMetadataFromJson(Map json) => + LyricMetadata( artist: json['Artist'] as String?, album: json['Album'] as String?, title: json['Title'] as String?, @@ -2229,7 +3125,8 @@ LyricMetadata _$LyricMetadataFromJson(Map json) => LyricMetadat isSynced: json['IsSynced'] as bool?, ); -Map _$LyricMetadataToJson(LyricMetadata instance) => { +Map _$LyricMetadataToJson(LyricMetadata instance) => + { if (instance.artist case final value?) 'Artist': value, if (instance.album case final value?) 'Album': value, if (instance.title case final value?) 'Title': value, @@ -2242,7 +3139,8 @@ Map _$LyricMetadataToJson(LyricMetadata instance) => json) => MediaAttachment( +MediaAttachment _$MediaAttachmentFromJson(Map json) => + MediaAttachment( codec: json['Codec'] as String?, codecTag: json['CodecTag'] as String?, comment: json['Comment'] as String?, @@ -2252,7 +3150,8 @@ MediaAttachment _$MediaAttachmentFromJson(Map json) => MediaAtt deliveryUrl: json['DeliveryUrl'] as String?, ); -Map _$MediaAttachmentToJson(MediaAttachment instance) => { +Map _$MediaAttachmentToJson(MediaAttachment instance) => + { if (instance.codec case final value?) 'Codec': value, if (instance.codecTag case final value?) 'CodecTag': value, if (instance.comment case final value?) 'Comment': value, @@ -2265,24 +3164,30 @@ Map _$MediaAttachmentToJson(MediaAttachment instance) => json) => MediaPathDto( name: json['Name'] as String, path: json['Path'] as String?, - pathInfo: json['PathInfo'] == null ? null : MediaPathInfo.fromJson(json['PathInfo'] as Map), + pathInfo: json['PathInfo'] == null + ? null + : MediaPathInfo.fromJson(json['PathInfo'] as Map), ); -Map _$MediaPathDtoToJson(MediaPathDto instance) => { +Map _$MediaPathDtoToJson(MediaPathDto instance) => + { 'Name': instance.name, if (instance.path case final value?) 'Path': value, if (instance.pathInfo?.toJson() case final value?) 'PathInfo': value, }; -MediaPathInfo _$MediaPathInfoFromJson(Map json) => MediaPathInfo( +MediaPathInfo _$MediaPathInfoFromJson(Map json) => + MediaPathInfo( path: json['Path'] as String?, ); -Map _$MediaPathInfoToJson(MediaPathInfo instance) => { +Map _$MediaPathInfoToJson(MediaPathInfo instance) => + { if (instance.path case final value?) 'Path': value, }; -MediaSegmentDto _$MediaSegmentDtoFromJson(Map json) => MediaSegmentDto( +MediaSegmentDto _$MediaSegmentDtoFromJson(Map json) => + MediaSegmentDto( id: json['Id'] as String?, itemId: json['ItemId'] as String?, type: MediaSegmentDto.mediaSegmentTypeTypeNullableFromJson(json['Type']), @@ -2290,30 +3195,39 @@ MediaSegmentDto _$MediaSegmentDtoFromJson(Map json) => MediaSeg endTicks: (json['EndTicks'] as num?)?.toInt(), ); -Map _$MediaSegmentDtoToJson(MediaSegmentDto instance) => { +Map _$MediaSegmentDtoToJson(MediaSegmentDto instance) => + { if (instance.id case final value?) 'Id': value, if (instance.itemId case final value?) 'ItemId': value, - if (mediaSegmentTypeNullableToJson(instance.type) case final value?) 'Type': value, + if (mediaSegmentTypeNullableToJson(instance.type) case final value?) + 'Type': value, if (instance.startTicks case final value?) 'StartTicks': value, if (instance.endTicks case final value?) 'EndTicks': value, }; -MediaSegmentDtoQueryResult _$MediaSegmentDtoQueryResultFromJson(Map json) => +MediaSegmentDtoQueryResult _$MediaSegmentDtoQueryResultFromJson( + Map json) => MediaSegmentDtoQueryResult( - items: - (json['Items'] as List?)?.map((e) => MediaSegmentDto.fromJson(e as Map)).toList() ?? - [], + items: (json['Items'] as List?) + ?.map((e) => MediaSegmentDto.fromJson(e as Map)) + .toList() ?? + [], totalRecordCount: (json['TotalRecordCount'] as num?)?.toInt(), startIndex: (json['StartIndex'] as num?)?.toInt(), ); -Map _$MediaSegmentDtoQueryResultToJson(MediaSegmentDtoQueryResult instance) => { - if (instance.items?.map((e) => e.toJson()).toList() case final value?) 'Items': value, - if (instance.totalRecordCount case final value?) 'TotalRecordCount': value, +Map _$MediaSegmentDtoQueryResultToJson( + MediaSegmentDtoQueryResult instance) => + { + if (instance.items?.map((e) => e.toJson()).toList() case final value?) + 'Items': value, + if (instance.totalRecordCount case final value?) + 'TotalRecordCount': value, if (instance.startIndex case final value?) 'StartIndex': value, }; -MediaSourceInfo _$MediaSourceInfoFromJson(Map json) => MediaSourceInfo( +MediaSourceInfo _$MediaSourceInfoFromJson(Map json) => + MediaSourceInfo( protocol: mediaProtocolNullableFromJson(json['Protocol']), id: json['Id'] as String?, path: json['Path'] as String?, @@ -2334,7 +3248,8 @@ MediaSourceInfo _$MediaSourceInfoFromJson(Map json) => MediaSou supportsDirectStream: json['SupportsDirectStream'] as bool?, supportsDirectPlay: json['SupportsDirectPlay'] as bool?, isInfiniteStream: json['IsInfiniteStream'] as bool?, - useMostCompatibleTranscodingProfile: json['UseMostCompatibleTranscodingProfile'] as bool? ?? false, + useMostCompatibleTranscodingProfile: + json['UseMostCompatibleTranscodingProfile'] as bool? ?? false, requiresOpening: json['RequiresOpening'] as bool?, openToken: json['OpenToken'] as String?, requiresClosing: json['RequiresClosing'] as bool?, @@ -2353,42 +3268,60 @@ MediaSourceInfo _$MediaSourceInfoFromJson(Map json) => MediaSou ?.map((e) => MediaAttachment.fromJson(e as Map)) .toList() ?? [], - formats: (json['Formats'] as List?)?.map((e) => e as String).toList() ?? [], + formats: (json['Formats'] as List?) + ?.map((e) => e as String) + .toList() ?? + [], bitrate: (json['Bitrate'] as num?)?.toInt(), - fallbackMaxStreamingBitrate: (json['FallbackMaxStreamingBitrate'] as num?)?.toInt(), + fallbackMaxStreamingBitrate: + (json['FallbackMaxStreamingBitrate'] as num?)?.toInt(), timestamp: transportStreamTimestampNullableFromJson(json['Timestamp']), requiredHttpHeaders: json['RequiredHttpHeaders'] as Map?, transcodingUrl: json['TranscodingUrl'] as String?, - transcodingSubProtocol: mediaStreamProtocolNullableFromJson(json['TranscodingSubProtocol']), + transcodingSubProtocol: + mediaStreamProtocolNullableFromJson(json['TranscodingSubProtocol']), transcodingContainer: json['TranscodingContainer'] as String?, analyzeDurationMs: (json['AnalyzeDurationMs'] as num?)?.toInt(), - defaultAudioStreamIndex: (json['DefaultAudioStreamIndex'] as num?)?.toInt(), - defaultSubtitleStreamIndex: (json['DefaultSubtitleStreamIndex'] as num?)?.toInt(), + defaultAudioStreamIndex: + (json['DefaultAudioStreamIndex'] as num?)?.toInt(), + defaultSubtitleStreamIndex: + (json['DefaultSubtitleStreamIndex'] as num?)?.toInt(), hasSegments: json['HasSegments'] as bool?, ); -Map _$MediaSourceInfoToJson(MediaSourceInfo instance) => { - if (mediaProtocolNullableToJson(instance.protocol) case final value?) 'Protocol': value, +Map _$MediaSourceInfoToJson(MediaSourceInfo instance) => + { + if (mediaProtocolNullableToJson(instance.protocol) case final value?) + 'Protocol': value, if (instance.id case final value?) 'Id': value, if (instance.path case final value?) 'Path': value, if (instance.encoderPath case final value?) 'EncoderPath': value, - if (mediaProtocolNullableToJson(instance.encoderProtocol) case final value?) 'EncoderProtocol': value, - if (mediaSourceTypeNullableToJson(instance.type) case final value?) 'Type': value, + if (mediaProtocolNullableToJson(instance.encoderProtocol) + case final value?) + 'EncoderProtocol': value, + if (mediaSourceTypeNullableToJson(instance.type) case final value?) + 'Type': value, if (instance.container case final value?) 'Container': value, if (instance.size case final value?) 'Size': value, if (instance.name case final value?) 'Name': value, if (instance.isRemote case final value?) 'IsRemote': value, if (instance.eTag case final value?) 'ETag': value, if (instance.runTimeTicks case final value?) 'RunTimeTicks': value, - if (instance.readAtNativeFramerate case final value?) 'ReadAtNativeFramerate': value, + if (instance.readAtNativeFramerate case final value?) + 'ReadAtNativeFramerate': value, if (instance.ignoreDts case final value?) 'IgnoreDts': value, if (instance.ignoreIndex case final value?) 'IgnoreIndex': value, if (instance.genPtsInput case final value?) 'GenPtsInput': value, - if (instance.supportsTranscoding case final value?) 'SupportsTranscoding': value, - if (instance.supportsDirectStream case final value?) 'SupportsDirectStream': value, - if (instance.supportsDirectPlay case final value?) 'SupportsDirectPlay': value, - if (instance.isInfiniteStream case final value?) 'IsInfiniteStream': value, - if (instance.useMostCompatibleTranscodingProfile case final value?) 'UseMostCompatibleTranscodingProfile': value, + if (instance.supportsTranscoding case final value?) + 'SupportsTranscoding': value, + if (instance.supportsDirectStream case final value?) + 'SupportsDirectStream': value, + if (instance.supportsDirectPlay case final value?) + 'SupportsDirectPlay': value, + if (instance.isInfiniteStream case final value?) + 'IsInfiniteStream': value, + if (instance.useMostCompatibleTranscodingProfile case final value?) + 'UseMostCompatibleTranscodingProfile': value, if (instance.requiresOpening case final value?) 'RequiresOpening': value, if (instance.openToken case final value?) 'OpenToken': value, if (instance.requiresClosing case final value?) 'RequiresClosing': value, @@ -2396,23 +3329,39 @@ Map _$MediaSourceInfoToJson(MediaSourceInfo instance) => e.toJson()).toList() case final value?) 'MediaStreams': value, - if (instance.mediaAttachments?.map((e) => e.toJson()).toList() case final value?) 'MediaAttachments': value, + if (videoTypeNullableToJson(instance.videoType) case final value?) + 'VideoType': value, + if (isoTypeNullableToJson(instance.isoType) case final value?) + 'IsoType': value, + if (video3DFormatNullableToJson(instance.video3DFormat) case final value?) + 'Video3DFormat': value, + if (instance.mediaStreams?.map((e) => e.toJson()).toList() + case final value?) + 'MediaStreams': value, + if (instance.mediaAttachments?.map((e) => e.toJson()).toList() + case final value?) + 'MediaAttachments': value, if (instance.formats case final value?) 'Formats': value, if (instance.bitrate case final value?) 'Bitrate': value, - if (instance.fallbackMaxStreamingBitrate case final value?) 'FallbackMaxStreamingBitrate': value, - if (transportStreamTimestampNullableToJson(instance.timestamp) case final value?) 'Timestamp': value, - if (instance.requiredHttpHeaders case final value?) 'RequiredHttpHeaders': value, + if (instance.fallbackMaxStreamingBitrate case final value?) + 'FallbackMaxStreamingBitrate': value, + if (transportStreamTimestampNullableToJson(instance.timestamp) + case final value?) + 'Timestamp': value, + if (instance.requiredHttpHeaders case final value?) + 'RequiredHttpHeaders': value, if (instance.transcodingUrl case final value?) 'TranscodingUrl': value, - if (mediaStreamProtocolNullableToJson(instance.transcodingSubProtocol) case final value?) + if (mediaStreamProtocolNullableToJson(instance.transcodingSubProtocol) + case final value?) 'TranscodingSubProtocol': value, - if (instance.transcodingContainer case final value?) 'TranscodingContainer': value, - if (instance.analyzeDurationMs case final value?) 'AnalyzeDurationMs': value, - if (instance.defaultAudioStreamIndex case final value?) 'DefaultAudioStreamIndex': value, - if (instance.defaultSubtitleStreamIndex case final value?) 'DefaultSubtitleStreamIndex': value, + if (instance.transcodingContainer case final value?) + 'TranscodingContainer': value, + if (instance.analyzeDurationMs case final value?) + 'AnalyzeDurationMs': value, + if (instance.defaultAudioStreamIndex case final value?) + 'DefaultAudioStreamIndex': value, + if (instance.defaultSubtitleStreamIndex case final value?) + 'DefaultSubtitleStreamIndex': value, if (instance.hasSegments case final value?) 'HasSegments': value, }; @@ -2431,17 +3380,22 @@ MediaStream _$MediaStreamFromJson(Map json) => MediaStream( rpuPresentFlag: (json['RpuPresentFlag'] as num?)?.toInt(), elPresentFlag: (json['ElPresentFlag'] as num?)?.toInt(), blPresentFlag: (json['BlPresentFlag'] as num?)?.toInt(), - dvBlSignalCompatibilityId: (json['DvBlSignalCompatibilityId'] as num?)?.toInt(), + dvBlSignalCompatibilityId: + (json['DvBlSignalCompatibilityId'] as num?)?.toInt(), rotation: (json['Rotation'] as num?)?.toInt(), comment: json['Comment'] as String?, timeBase: json['TimeBase'] as String?, codecTimeBase: json['CodecTimeBase'] as String?, title: json['Title'] as String?, hdr10PlusPresentFlag: json['Hdr10PlusPresentFlag'] as bool?, - videoRange: MediaStream.videoRangeVideoRangeNullableFromJson(json['VideoRange']), - videoRangeType: MediaStream.videoRangeTypeVideoRangeTypeNullableFromJson(json['VideoRangeType']), + videoRange: + MediaStream.videoRangeVideoRangeNullableFromJson(json['VideoRange']), + videoRangeType: MediaStream.videoRangeTypeVideoRangeTypeNullableFromJson( + json['VideoRangeType']), videoDoViTitle: json['VideoDoViTitle'] as String?, - audioSpatialFormat: MediaStream.audioSpatialFormatAudioSpatialFormatNullableFromJson(json['AudioSpatialFormat']), + audioSpatialFormat: + MediaStream.audioSpatialFormatAudioSpatialFormatNullableFromJson( + json['AudioSpatialFormat']), localizedUndefined: json['LocalizedUndefined'] as String?, localizedDefault: json['LocalizedDefault'] as String?, localizedForced: json['LocalizedForced'] as String?, @@ -2472,7 +3426,8 @@ MediaStream _$MediaStreamFromJson(Map json) => MediaStream( index: (json['Index'] as num?)?.toInt(), score: (json['Score'] as num?)?.toInt(), isExternal: json['IsExternal'] as bool?, - deliveryMethod: subtitleDeliveryMethodNullableFromJson(json['DeliveryMethod']), + deliveryMethod: + subtitleDeliveryMethodNullableFromJson(json['DeliveryMethod']), deliveryUrl: json['DeliveryUrl'] as String?, isExternalUrl: json['IsExternalUrl'] as bool?, isTextSubtitleStream: json['IsTextSubtitleStream'] as bool?, @@ -2483,7 +3438,8 @@ MediaStream _$MediaStreamFromJson(Map json) => MediaStream( isAnamorphic: json['IsAnamorphic'] as bool?, ); -Map _$MediaStreamToJson(MediaStream instance) => { +Map _$MediaStreamToJson(MediaStream instance) => + { if (instance.codec case final value?) 'Codec': value, if (instance.codecTag case final value?) 'CodecTag': value, if (instance.language case final value?) 'Language': value, @@ -2498,22 +3454,33 @@ Map _$MediaStreamToJson(MediaStream instance) => _$MediaStreamToJson(MediaStream instance) => json) => MediaUpdateInfoDto( +MediaUpdateInfoDto _$MediaUpdateInfoDtoFromJson(Map json) => + MediaUpdateInfoDto( updates: (json['Updates'] as List?) - ?.map((e) => MediaUpdateInfoPathDto.fromJson(e as Map)) + ?.map((e) => + MediaUpdateInfoPathDto.fromJson(e as Map)) .toList() ?? [], ); -Map _$MediaUpdateInfoDtoToJson(MediaUpdateInfoDto instance) => { - if (instance.updates?.map((e) => e.toJson()).toList() case final value?) 'Updates': value, +Map _$MediaUpdateInfoDtoToJson(MediaUpdateInfoDto instance) => + { + if (instance.updates?.map((e) => e.toJson()).toList() case final value?) + 'Updates': value, }; -MediaUpdateInfoPathDto _$MediaUpdateInfoPathDtoFromJson(Map json) => MediaUpdateInfoPathDto( +MediaUpdateInfoPathDto _$MediaUpdateInfoPathDtoFromJson( + Map json) => + MediaUpdateInfoPathDto( path: json['Path'] as String?, updateType: json['UpdateType'] as String?, ); -Map _$MediaUpdateInfoPathDtoToJson(MediaUpdateInfoPathDto instance) => { +Map _$MediaUpdateInfoPathDtoToJson( + MediaUpdateInfoPathDto instance) => + { if (instance.path case final value?) 'Path': value, if (instance.updateType case final value?) 'UpdateType': value, }; @@ -2581,37 +3564,48 @@ Map _$MediaUrlToJson(MediaUrl instance) => { if (instance.name case final value?) 'Name': value, }; -MessageCommand _$MessageCommandFromJson(Map json) => MessageCommand( +MessageCommand _$MessageCommandFromJson(Map json) => + MessageCommand( header: json['Header'] as String?, text: json['Text'] as String, timeoutMs: (json['TimeoutMs'] as num?)?.toInt(), ); -Map _$MessageCommandToJson(MessageCommand instance) => { +Map _$MessageCommandToJson(MessageCommand instance) => + { if (instance.header case final value?) 'Header': value, 'Text': instance.text, if (instance.timeoutMs case final value?) 'TimeoutMs': value, }; -MetadataConfiguration _$MetadataConfigurationFromJson(Map json) => MetadataConfiguration( - useFileCreationTimeForDateAdded: json['UseFileCreationTimeForDateAdded'] as bool?, +MetadataConfiguration _$MetadataConfigurationFromJson( + Map json) => + MetadataConfiguration( + useFileCreationTimeForDateAdded: + json['UseFileCreationTimeForDateAdded'] as bool?, ); -Map _$MetadataConfigurationToJson(MetadataConfiguration instance) => { - if (instance.useFileCreationTimeForDateAdded case final value?) 'UseFileCreationTimeForDateAdded': value, +Map _$MetadataConfigurationToJson( + MetadataConfiguration instance) => + { + if (instance.useFileCreationTimeForDateAdded case final value?) + 'UseFileCreationTimeForDateAdded': value, }; -MetadataEditorInfo _$MetadataEditorInfoFromJson(Map json) => MetadataEditorInfo( +MetadataEditorInfo _$MetadataEditorInfoFromJson(Map json) => + MetadataEditorInfo( parentalRatingOptions: (json['ParentalRatingOptions'] as List?) ?.map((e) => ParentalRating.fromJson(e as Map)) .toList() ?? [], - countries: - (json['Countries'] as List?)?.map((e) => CountryInfo.fromJson(e as Map)).toList() ?? - [], - cultures: - (json['Cultures'] as List?)?.map((e) => CultureDto.fromJson(e as Map)).toList() ?? - [], + countries: (json['Countries'] as List?) + ?.map((e) => CountryInfo.fromJson(e as Map)) + .toList() ?? + [], + cultures: (json['Cultures'] as List?) + ?.map((e) => CultureDto.fromJson(e as Map)) + .toList() ?? + [], externalIdInfos: (json['ExternalIdInfos'] as List?) ?.map((e) => ExternalIdInfo.fromJson(e as Map)) .toList() ?? @@ -2623,46 +3617,83 @@ MetadataEditorInfo _$MetadataEditorInfoFromJson(Map json) => Me [], ); -Map _$MetadataEditorInfoToJson(MetadataEditorInfo instance) => { - if (instance.parentalRatingOptions?.map((e) => e.toJson()).toList() case final value?) +Map _$MetadataEditorInfoToJson(MetadataEditorInfo instance) => + { + if (instance.parentalRatingOptions?.map((e) => e.toJson()).toList() + case final value?) 'ParentalRatingOptions': value, - if (instance.countries?.map((e) => e.toJson()).toList() case final value?) 'Countries': value, - if (instance.cultures?.map((e) => e.toJson()).toList() case final value?) 'Cultures': value, - if (instance.externalIdInfos?.map((e) => e.toJson()).toList() case final value?) 'ExternalIdInfos': value, - if (collectionTypeNullableToJson(instance.contentType) case final value?) 'ContentType': value, - if (instance.contentTypeOptions?.map((e) => e.toJson()).toList() case final value?) 'ContentTypeOptions': value, - }; - -MetadataOptions _$MetadataOptionsFromJson(Map json) => MetadataOptions( + if (instance.countries?.map((e) => e.toJson()).toList() case final value?) + 'Countries': value, + if (instance.cultures?.map((e) => e.toJson()).toList() case final value?) + 'Cultures': value, + if (instance.externalIdInfos?.map((e) => e.toJson()).toList() + case final value?) + 'ExternalIdInfos': value, + if (collectionTypeNullableToJson(instance.contentType) case final value?) + 'ContentType': value, + if (instance.contentTypeOptions?.map((e) => e.toJson()).toList() + case final value?) + 'ContentTypeOptions': value, + }; + +MetadataOptions _$MetadataOptionsFromJson(Map json) => + MetadataOptions( itemType: json['ItemType'] as String?, - disabledMetadataSavers: - (json['DisabledMetadataSavers'] as List?)?.map((e) => e as String).toList() ?? [], + disabledMetadataSavers: (json['DisabledMetadataSavers'] as List?) + ?.map((e) => e as String) + .toList() ?? + [], localMetadataReaderOrder: - (json['LocalMetadataReaderOrder'] as List?)?.map((e) => e as String).toList() ?? [], + (json['LocalMetadataReaderOrder'] as List?) + ?.map((e) => e as String) + .toList() ?? + [], disabledMetadataFetchers: - (json['DisabledMetadataFetchers'] as List?)?.map((e) => e as String).toList() ?? [], - metadataFetcherOrder: (json['MetadataFetcherOrder'] as List?)?.map((e) => e as String).toList() ?? [], - disabledImageFetchers: (json['DisabledImageFetchers'] as List?)?.map((e) => e as String).toList() ?? [], - imageFetcherOrder: (json['ImageFetcherOrder'] as List?)?.map((e) => e as String).toList() ?? [], + (json['DisabledMetadataFetchers'] as List?) + ?.map((e) => e as String) + .toList() ?? + [], + metadataFetcherOrder: (json['MetadataFetcherOrder'] as List?) + ?.map((e) => e as String) + .toList() ?? + [], + disabledImageFetchers: (json['DisabledImageFetchers'] as List?) + ?.map((e) => e as String) + .toList() ?? + [], + imageFetcherOrder: (json['ImageFetcherOrder'] as List?) + ?.map((e) => e as String) + .toList() ?? + [], ); -Map _$MetadataOptionsToJson(MetadataOptions instance) => { +Map _$MetadataOptionsToJson(MetadataOptions instance) => + { if (instance.itemType case final value?) 'ItemType': value, - if (instance.disabledMetadataSavers case final value?) 'DisabledMetadataSavers': value, - if (instance.localMetadataReaderOrder case final value?) 'LocalMetadataReaderOrder': value, - if (instance.disabledMetadataFetchers case final value?) 'DisabledMetadataFetchers': value, - if (instance.metadataFetcherOrder case final value?) 'MetadataFetcherOrder': value, - if (instance.disabledImageFetchers case final value?) 'DisabledImageFetchers': value, - if (instance.imageFetcherOrder case final value?) 'ImageFetcherOrder': value, - }; - -MovePlaylistItemRequestDto _$MovePlaylistItemRequestDtoFromJson(Map json) => + if (instance.disabledMetadataSavers case final value?) + 'DisabledMetadataSavers': value, + if (instance.localMetadataReaderOrder case final value?) + 'LocalMetadataReaderOrder': value, + if (instance.disabledMetadataFetchers case final value?) + 'DisabledMetadataFetchers': value, + if (instance.metadataFetcherOrder case final value?) + 'MetadataFetcherOrder': value, + if (instance.disabledImageFetchers case final value?) + 'DisabledImageFetchers': value, + if (instance.imageFetcherOrder case final value?) + 'ImageFetcherOrder': value, + }; + +MovePlaylistItemRequestDto _$MovePlaylistItemRequestDtoFromJson( + Map json) => MovePlaylistItemRequestDto( playlistItemId: json['PlaylistItemId'] as String?, newIndex: (json['NewIndex'] as num?)?.toInt(), ); -Map _$MovePlaylistItemRequestDtoToJson(MovePlaylistItemRequestDto instance) => { +Map _$MovePlaylistItemRequestDtoToJson( + MovePlaylistItemRequestDto instance) => + { if (instance.playlistItemId case final value?) 'PlaylistItemId': value, if (instance.newIndex case final value?) 'NewIndex': value, }; @@ -2677,7 +3708,9 @@ MovieInfo _$MovieInfoFromJson(Map json) => MovieInfo( year: (json['Year'] as num?)?.toInt(), indexNumber: (json['IndexNumber'] as num?)?.toInt(), parentIndexNumber: (json['ParentIndexNumber'] as num?)?.toInt(), - premiereDate: json['PremiereDate'] == null ? null : DateTime.parse(json['PremiereDate'] as String), + premiereDate: json['PremiereDate'] == null + ? null + : DateTime.parse(json['PremiereDate'] as String), isAutomated: json['IsAutomated'] as bool?, ); @@ -2685,32 +3718,44 @@ Map _$MovieInfoToJson(MovieInfo instance) => { if (instance.name case final value?) 'Name': value, if (instance.originalTitle case final value?) 'OriginalTitle': value, if (instance.path case final value?) 'Path': value, - if (instance.metadataLanguage case final value?) 'MetadataLanguage': value, - if (instance.metadataCountryCode case final value?) 'MetadataCountryCode': value, + if (instance.metadataLanguage case final value?) + 'MetadataLanguage': value, + if (instance.metadataCountryCode case final value?) + 'MetadataCountryCode': value, if (instance.providerIds case final value?) 'ProviderIds': value, if (instance.year case final value?) 'Year': value, if (instance.indexNumber case final value?) 'IndexNumber': value, - if (instance.parentIndexNumber case final value?) 'ParentIndexNumber': value, - if (instance.premiereDate?.toIso8601String() case final value?) 'PremiereDate': value, + if (instance.parentIndexNumber case final value?) + 'ParentIndexNumber': value, + if (instance.premiereDate?.toIso8601String() case final value?) + 'PremiereDate': value, if (instance.isAutomated case final value?) 'IsAutomated': value, }; -MovieInfoRemoteSearchQuery _$MovieInfoRemoteSearchQueryFromJson(Map json) => +MovieInfoRemoteSearchQuery _$MovieInfoRemoteSearchQueryFromJson( + Map json) => MovieInfoRemoteSearchQuery( - searchInfo: json['SearchInfo'] == null ? null : MovieInfo.fromJson(json['SearchInfo'] as Map), + searchInfo: json['SearchInfo'] == null + ? null + : MovieInfo.fromJson(json['SearchInfo'] as Map), itemId: json['ItemId'] as String?, searchProviderName: json['SearchProviderName'] as String?, includeDisabledProviders: json['IncludeDisabledProviders'] as bool?, ); -Map _$MovieInfoRemoteSearchQueryToJson(MovieInfoRemoteSearchQuery instance) => { +Map _$MovieInfoRemoteSearchQueryToJson( + MovieInfoRemoteSearchQuery instance) => + { if (instance.searchInfo?.toJson() case final value?) 'SearchInfo': value, if (instance.itemId case final value?) 'ItemId': value, - if (instance.searchProviderName case final value?) 'SearchProviderName': value, - if (instance.includeDisabledProviders case final value?) 'IncludeDisabledProviders': value, + if (instance.searchProviderName case final value?) + 'SearchProviderName': value, + if (instance.includeDisabledProviders case final value?) + 'IncludeDisabledProviders': value, }; -MusicVideoInfo _$MusicVideoInfoFromJson(Map json) => MusicVideoInfo( +MusicVideoInfo _$MusicVideoInfoFromJson(Map json) => + MusicVideoInfo( name: json['Name'] as String?, originalTitle: json['OriginalTitle'] as String?, path: json['Path'] as String?, @@ -2720,41 +3765,56 @@ MusicVideoInfo _$MusicVideoInfoFromJson(Map json) => MusicVideo year: (json['Year'] as num?)?.toInt(), indexNumber: (json['IndexNumber'] as num?)?.toInt(), parentIndexNumber: (json['ParentIndexNumber'] as num?)?.toInt(), - premiereDate: json['PremiereDate'] == null ? null : DateTime.parse(json['PremiereDate'] as String), + premiereDate: json['PremiereDate'] == null + ? null + : DateTime.parse(json['PremiereDate'] as String), isAutomated: json['IsAutomated'] as bool?, - artists: (json['Artists'] as List?)?.map((e) => e as String).toList() ?? [], + artists: (json['Artists'] as List?) + ?.map((e) => e as String) + .toList() ?? + [], ); -Map _$MusicVideoInfoToJson(MusicVideoInfo instance) => { +Map _$MusicVideoInfoToJson(MusicVideoInfo instance) => + { if (instance.name case final value?) 'Name': value, if (instance.originalTitle case final value?) 'OriginalTitle': value, if (instance.path case final value?) 'Path': value, - if (instance.metadataLanguage case final value?) 'MetadataLanguage': value, - if (instance.metadataCountryCode case final value?) 'MetadataCountryCode': value, + if (instance.metadataLanguage case final value?) + 'MetadataLanguage': value, + if (instance.metadataCountryCode case final value?) + 'MetadataCountryCode': value, if (instance.providerIds case final value?) 'ProviderIds': value, if (instance.year case final value?) 'Year': value, if (instance.indexNumber case final value?) 'IndexNumber': value, - if (instance.parentIndexNumber case final value?) 'ParentIndexNumber': value, - if (instance.premiereDate?.toIso8601String() case final value?) 'PremiereDate': value, + if (instance.parentIndexNumber case final value?) + 'ParentIndexNumber': value, + if (instance.premiereDate?.toIso8601String() case final value?) + 'PremiereDate': value, if (instance.isAutomated case final value?) 'IsAutomated': value, if (instance.artists case final value?) 'Artists': value, }; -MusicVideoInfoRemoteSearchQuery _$MusicVideoInfoRemoteSearchQueryFromJson(Map json) => +MusicVideoInfoRemoteSearchQuery _$MusicVideoInfoRemoteSearchQueryFromJson( + Map json) => MusicVideoInfoRemoteSearchQuery( - searchInfo: - json['SearchInfo'] == null ? null : MusicVideoInfo.fromJson(json['SearchInfo'] as Map), + searchInfo: json['SearchInfo'] == null + ? null + : MusicVideoInfo.fromJson(json['SearchInfo'] as Map), itemId: json['ItemId'] as String?, searchProviderName: json['SearchProviderName'] as String?, includeDisabledProviders: json['IncludeDisabledProviders'] as bool?, ); -Map _$MusicVideoInfoRemoteSearchQueryToJson(MusicVideoInfoRemoteSearchQuery instance) => +Map _$MusicVideoInfoRemoteSearchQueryToJson( + MusicVideoInfoRemoteSearchQuery instance) => { if (instance.searchInfo?.toJson() case final value?) 'SearchInfo': value, if (instance.itemId case final value?) 'ItemId': value, - if (instance.searchProviderName case final value?) 'SearchProviderName': value, - if (instance.includeDisabledProviders case final value?) 'IncludeDisabledProviders': value, + if (instance.searchProviderName case final value?) + 'SearchProviderName': value, + if (instance.includeDisabledProviders case final value?) + 'IncludeDisabledProviders': value, }; NameGuidPair _$NameGuidPairFromJson(Map json) => NameGuidPair( @@ -2762,7 +3822,8 @@ NameGuidPair _$NameGuidPairFromJson(Map json) => NameGuidPair( id: json['Id'] as String?, ); -Map _$NameGuidPairToJson(NameGuidPair instance) => { +Map _$NameGuidPairToJson(NameGuidPair instance) => + { if (instance.name case final value?) 'Name': value, if (instance.id case final value?) 'Id': value, }; @@ -2772,22 +3833,27 @@ NameIdPair _$NameIdPairFromJson(Map json) => NameIdPair( id: json['Id'] as String?, ); -Map _$NameIdPairToJson(NameIdPair instance) => { +Map _$NameIdPairToJson(NameIdPair instance) => + { if (instance.name case final value?) 'Name': value, if (instance.id case final value?) 'Id': value, }; -NameValuePair _$NameValuePairFromJson(Map json) => NameValuePair( +NameValuePair _$NameValuePairFromJson(Map json) => + NameValuePair( name: json['Name'] as String?, $Value: json['Value'] as String?, ); -Map _$NameValuePairToJson(NameValuePair instance) => { +Map _$NameValuePairToJson(NameValuePair instance) => + { if (instance.name case final value?) 'Name': value, if (instance.$Value case final value?) 'Value': value, }; -NetworkConfiguration _$NetworkConfigurationFromJson(Map json) => NetworkConfiguration( +NetworkConfiguration _$NetworkConfigurationFromJson( + Map json) => + NetworkConfiguration( baseUrl: json['BaseUrl'] as String?, enableHttps: json['EnableHttps'] as bool?, requireHttps: json['RequireHttps'] as bool?, @@ -2802,61 +3868,98 @@ NetworkConfiguration _$NetworkConfigurationFromJson(Map json) = enableIPv4: json['EnableIPv4'] as bool?, enableIPv6: json['EnableIPv6'] as bool?, enableRemoteAccess: json['EnableRemoteAccess'] as bool?, - localNetworkSubnets: (json['LocalNetworkSubnets'] as List?)?.map((e) => e as String).toList() ?? [], - localNetworkAddresses: (json['LocalNetworkAddresses'] as List?)?.map((e) => e as String).toList() ?? [], - knownProxies: (json['KnownProxies'] as List?)?.map((e) => e as String).toList() ?? [], + localNetworkSubnets: (json['LocalNetworkSubnets'] as List?) + ?.map((e) => e as String) + .toList() ?? + [], + localNetworkAddresses: (json['LocalNetworkAddresses'] as List?) + ?.map((e) => e as String) + .toList() ?? + [], + knownProxies: (json['KnownProxies'] as List?) + ?.map((e) => e as String) + .toList() ?? + [], ignoreVirtualInterfaces: json['IgnoreVirtualInterfaces'] as bool?, - virtualInterfaceNames: (json['VirtualInterfaceNames'] as List?)?.map((e) => e as String).toList() ?? [], - enablePublishedServerUriByRequest: json['EnablePublishedServerUriByRequest'] as bool?, + virtualInterfaceNames: (json['VirtualInterfaceNames'] as List?) + ?.map((e) => e as String) + .toList() ?? + [], + enablePublishedServerUriByRequest: + json['EnablePublishedServerUriByRequest'] as bool?, publishedServerUriBySubnet: - (json['PublishedServerUriBySubnet'] as List?)?.map((e) => e as String).toList() ?? [], - remoteIPFilter: (json['RemoteIPFilter'] as List?)?.map((e) => e as String).toList() ?? [], + (json['PublishedServerUriBySubnet'] as List?) + ?.map((e) => e as String) + .toList() ?? + [], + remoteIPFilter: (json['RemoteIPFilter'] as List?) + ?.map((e) => e as String) + .toList() ?? + [], isRemoteIPFilterBlacklist: json['IsRemoteIPFilterBlacklist'] as bool?, ); -Map _$NetworkConfigurationToJson(NetworkConfiguration instance) => { +Map _$NetworkConfigurationToJson( + NetworkConfiguration instance) => + { if (instance.baseUrl case final value?) 'BaseUrl': value, if (instance.enableHttps case final value?) 'EnableHttps': value, if (instance.requireHttps case final value?) 'RequireHttps': value, if (instance.certificatePath case final value?) 'CertificatePath': value, - if (instance.certificatePassword case final value?) 'CertificatePassword': value, - if (instance.internalHttpPort case final value?) 'InternalHttpPort': value, - if (instance.internalHttpsPort case final value?) 'InternalHttpsPort': value, + if (instance.certificatePassword case final value?) + 'CertificatePassword': value, + if (instance.internalHttpPort case final value?) + 'InternalHttpPort': value, + if (instance.internalHttpsPort case final value?) + 'InternalHttpsPort': value, if (instance.publicHttpPort case final value?) 'PublicHttpPort': value, if (instance.publicHttpsPort case final value?) 'PublicHttpsPort': value, if (instance.autoDiscovery case final value?) 'AutoDiscovery': value, if (instance.enableUPnP case final value?) 'EnableUPnP': value, if (instance.enableIPv4 case final value?) 'EnableIPv4': value, if (instance.enableIPv6 case final value?) 'EnableIPv6': value, - if (instance.enableRemoteAccess case final value?) 'EnableRemoteAccess': value, - if (instance.localNetworkSubnets case final value?) 'LocalNetworkSubnets': value, - if (instance.localNetworkAddresses case final value?) 'LocalNetworkAddresses': value, + if (instance.enableRemoteAccess case final value?) + 'EnableRemoteAccess': value, + if (instance.localNetworkSubnets case final value?) + 'LocalNetworkSubnets': value, + if (instance.localNetworkAddresses case final value?) + 'LocalNetworkAddresses': value, if (instance.knownProxies case final value?) 'KnownProxies': value, - if (instance.ignoreVirtualInterfaces case final value?) 'IgnoreVirtualInterfaces': value, - if (instance.virtualInterfaceNames case final value?) 'VirtualInterfaceNames': value, - if (instance.enablePublishedServerUriByRequest case final value?) 'EnablePublishedServerUriByRequest': value, - if (instance.publishedServerUriBySubnet case final value?) 'PublishedServerUriBySubnet': value, + if (instance.ignoreVirtualInterfaces case final value?) + 'IgnoreVirtualInterfaces': value, + if (instance.virtualInterfaceNames case final value?) + 'VirtualInterfaceNames': value, + if (instance.enablePublishedServerUriByRequest case final value?) + 'EnablePublishedServerUriByRequest': value, + if (instance.publishedServerUriBySubnet case final value?) + 'PublishedServerUriBySubnet': value, if (instance.remoteIPFilter case final value?) 'RemoteIPFilter': value, - if (instance.isRemoteIPFilterBlacklist case final value?) 'IsRemoteIPFilterBlacklist': value, + if (instance.isRemoteIPFilterBlacklist case final value?) + 'IsRemoteIPFilterBlacklist': value, }; -NewGroupRequestDto _$NewGroupRequestDtoFromJson(Map json) => NewGroupRequestDto( +NewGroupRequestDto _$NewGroupRequestDtoFromJson(Map json) => + NewGroupRequestDto( groupName: json['GroupName'] as String?, ); -Map _$NewGroupRequestDtoToJson(NewGroupRequestDto instance) => { +Map _$NewGroupRequestDtoToJson(NewGroupRequestDto instance) => + { if (instance.groupName case final value?) 'GroupName': value, }; -NextItemRequestDto _$NextItemRequestDtoFromJson(Map json) => NextItemRequestDto( +NextItemRequestDto _$NextItemRequestDtoFromJson(Map json) => + NextItemRequestDto( playlistItemId: json['PlaylistItemId'] as String?, ); -Map _$NextItemRequestDtoToJson(NextItemRequestDto instance) => { +Map _$NextItemRequestDtoToJson(NextItemRequestDto instance) => + { if (instance.playlistItemId case final value?) 'PlaylistItemId': value, }; -OpenLiveStreamDto _$OpenLiveStreamDtoFromJson(Map json) => OpenLiveStreamDto( +OpenLiveStreamDto _$OpenLiveStreamDtoFromJson(Map json) => + OpenLiveStreamDto( openToken: json['OpenToken'] as String?, userId: json['UserId'] as String?, playSessionId: json['PlaySessionId'] as String?, @@ -2868,42 +3971,67 @@ OpenLiveStreamDto _$OpenLiveStreamDtoFromJson(Map json) => Open itemId: json['ItemId'] as String?, enableDirectPlay: json['EnableDirectPlay'] as bool?, enableDirectStream: json['EnableDirectStream'] as bool?, - alwaysBurnInSubtitleWhenTranscoding: json['AlwaysBurnInSubtitleWhenTranscoding'] as bool?, - deviceProfile: - json['DeviceProfile'] == null ? null : DeviceProfile.fromJson(json['DeviceProfile'] as Map), - directPlayProtocols: mediaProtocolListFromJson(json['DirectPlayProtocols'] as List?), + alwaysBurnInSubtitleWhenTranscoding: + json['AlwaysBurnInSubtitleWhenTranscoding'] as bool?, + deviceProfile: json['DeviceProfile'] == null + ? null + : DeviceProfile.fromJson( + json['DeviceProfile'] as Map), + directPlayProtocols: + mediaProtocolListFromJson(json['DirectPlayProtocols'] as List?), ); -Map _$OpenLiveStreamDtoToJson(OpenLiveStreamDto instance) => { +Map _$OpenLiveStreamDtoToJson(OpenLiveStreamDto instance) => + { if (instance.openToken case final value?) 'OpenToken': value, if (instance.userId case final value?) 'UserId': value, if (instance.playSessionId case final value?) 'PlaySessionId': value, - if (instance.maxStreamingBitrate case final value?) 'MaxStreamingBitrate': value, + if (instance.maxStreamingBitrate case final value?) + 'MaxStreamingBitrate': value, if (instance.startTimeTicks case final value?) 'StartTimeTicks': value, - if (instance.audioStreamIndex case final value?) 'AudioStreamIndex': value, - if (instance.subtitleStreamIndex case final value?) 'SubtitleStreamIndex': value, - if (instance.maxAudioChannels case final value?) 'MaxAudioChannels': value, + if (instance.audioStreamIndex case final value?) + 'AudioStreamIndex': value, + if (instance.subtitleStreamIndex case final value?) + 'SubtitleStreamIndex': value, + if (instance.maxAudioChannels case final value?) + 'MaxAudioChannels': value, if (instance.itemId case final value?) 'ItemId': value, - if (instance.enableDirectPlay case final value?) 'EnableDirectPlay': value, - if (instance.enableDirectStream case final value?) 'EnableDirectStream': value, - if (instance.alwaysBurnInSubtitleWhenTranscoding case final value?) 'AlwaysBurnInSubtitleWhenTranscoding': value, - if (instance.deviceProfile?.toJson() case final value?) 'DeviceProfile': value, - 'DirectPlayProtocols': mediaProtocolListToJson(instance.directPlayProtocols), - }; - -OutboundKeepAliveMessage _$OutboundKeepAliveMessageFromJson(Map json) => OutboundKeepAliveMessage( + if (instance.enableDirectPlay case final value?) + 'EnableDirectPlay': value, + if (instance.enableDirectStream case final value?) + 'EnableDirectStream': value, + if (instance.alwaysBurnInSubtitleWhenTranscoding case final value?) + 'AlwaysBurnInSubtitleWhenTranscoding': value, + if (instance.deviceProfile?.toJson() case final value?) + 'DeviceProfile': value, + 'DirectPlayProtocols': + mediaProtocolListToJson(instance.directPlayProtocols), + }; + +OutboundKeepAliveMessage _$OutboundKeepAliveMessageFromJson( + Map json) => + OutboundKeepAliveMessage( messageId: json['MessageId'] as String?, - messageType: OutboundKeepAliveMessage.sessionMessageTypeMessageTypeNullableFromJson(json['MessageType']), + messageType: OutboundKeepAliveMessage + .sessionMessageTypeMessageTypeNullableFromJson(json['MessageType']), ); -Map _$OutboundKeepAliveMessageToJson(OutboundKeepAliveMessage instance) => { +Map _$OutboundKeepAliveMessageToJson( + OutboundKeepAliveMessage instance) => + { if (instance.messageId case final value?) 'MessageId': value, - if (sessionMessageTypeNullableToJson(instance.messageType) case final value?) 'MessageType': value, + if (sessionMessageTypeNullableToJson(instance.messageType) + case final value?) + 'MessageType': value, }; -OutboundWebSocketMessage _$OutboundWebSocketMessageFromJson(Map json) => OutboundWebSocketMessage(); +OutboundWebSocketMessage _$OutboundWebSocketMessageFromJson( + Map json) => + OutboundWebSocketMessage(); -Map _$OutboundWebSocketMessageToJson(OutboundWebSocketMessage instance) => {}; +Map _$OutboundWebSocketMessageToJson( + OutboundWebSocketMessage instance) => + {}; PackageInfo _$PackageInfoFromJson(Map json) => PackageInfo( name: json['name'] as String?, @@ -2912,58 +4040,71 @@ PackageInfo _$PackageInfoFromJson(Map json) => PackageInfo( owner: json['owner'] as String?, category: json['category'] as String?, guid: json['guid'] as String?, - versions: - (json['versions'] as List?)?.map((e) => VersionInfo.fromJson(e as Map)).toList() ?? - [], + versions: (json['versions'] as List?) + ?.map((e) => VersionInfo.fromJson(e as Map)) + .toList() ?? + [], imageUrl: json['imageUrl'] as String?, ); -Map _$PackageInfoToJson(PackageInfo instance) => { +Map _$PackageInfoToJson(PackageInfo instance) => + { if (instance.name case final value?) 'name': value, if (instance.description case final value?) 'description': value, if (instance.overview case final value?) 'overview': value, if (instance.owner case final value?) 'owner': value, if (instance.category case final value?) 'category': value, if (instance.guid case final value?) 'guid': value, - if (instance.versions?.map((e) => e.toJson()).toList() case final value?) 'versions': value, + if (instance.versions?.map((e) => e.toJson()).toList() case final value?) + 'versions': value, if (instance.imageUrl case final value?) 'imageUrl': value, }; -ParentalRating _$ParentalRatingFromJson(Map json) => ParentalRating( +ParentalRating _$ParentalRatingFromJson(Map json) => + ParentalRating( name: json['Name'] as String?, $Value: (json['Value'] as num?)?.toInt(), ratingScore: json['RatingScore'] == null ? null - : ParentalRatingScore.fromJson(json['RatingScore'] as Map), + : ParentalRatingScore.fromJson( + json['RatingScore'] as Map), ); -Map _$ParentalRatingToJson(ParentalRating instance) => { +Map _$ParentalRatingToJson(ParentalRating instance) => + { if (instance.name case final value?) 'Name': value, if (instance.$Value case final value?) 'Value': value, - if (instance.ratingScore?.toJson() case final value?) 'RatingScore': value, + if (instance.ratingScore?.toJson() case final value?) + 'RatingScore': value, }; -ParentalRatingScore _$ParentalRatingScoreFromJson(Map json) => ParentalRatingScore( +ParentalRatingScore _$ParentalRatingScoreFromJson(Map json) => + ParentalRatingScore( score: (json['score'] as num?)?.toInt(), subScore: (json['subScore'] as num?)?.toInt(), ); -Map _$ParentalRatingScoreToJson(ParentalRatingScore instance) => { +Map _$ParentalRatingScoreToJson( + ParentalRatingScore instance) => + { if (instance.score case final value?) 'score': value, if (instance.subScore case final value?) 'subScore': value, }; -PathSubstitution _$PathSubstitutionFromJson(Map json) => PathSubstitution( +PathSubstitution _$PathSubstitutionFromJson(Map json) => + PathSubstitution( from: json['From'] as String?, to: json['To'] as String?, ); -Map _$PathSubstitutionToJson(PathSubstitution instance) => { +Map _$PathSubstitutionToJson(PathSubstitution instance) => + { if (instance.from case final value?) 'From': value, if (instance.to case final value?) 'To': value, }; -PersonLookupInfo _$PersonLookupInfoFromJson(Map json) => PersonLookupInfo( +PersonLookupInfo _$PersonLookupInfoFromJson(Map json) => + PersonLookupInfo( name: json['Name'] as String?, originalTitle: json['OriginalTitle'] as String?, path: json['Path'] as String?, @@ -2973,60 +4114,81 @@ PersonLookupInfo _$PersonLookupInfoFromJson(Map json) => Person year: (json['Year'] as num?)?.toInt(), indexNumber: (json['IndexNumber'] as num?)?.toInt(), parentIndexNumber: (json['ParentIndexNumber'] as num?)?.toInt(), - premiereDate: json['PremiereDate'] == null ? null : DateTime.parse(json['PremiereDate'] as String), + premiereDate: json['PremiereDate'] == null + ? null + : DateTime.parse(json['PremiereDate'] as String), isAutomated: json['IsAutomated'] as bool?, ); -Map _$PersonLookupInfoToJson(PersonLookupInfo instance) => { +Map _$PersonLookupInfoToJson(PersonLookupInfo instance) => + { if (instance.name case final value?) 'Name': value, if (instance.originalTitle case final value?) 'OriginalTitle': value, if (instance.path case final value?) 'Path': value, - if (instance.metadataLanguage case final value?) 'MetadataLanguage': value, - if (instance.metadataCountryCode case final value?) 'MetadataCountryCode': value, + if (instance.metadataLanguage case final value?) + 'MetadataLanguage': value, + if (instance.metadataCountryCode case final value?) + 'MetadataCountryCode': value, if (instance.providerIds case final value?) 'ProviderIds': value, if (instance.year case final value?) 'Year': value, if (instance.indexNumber case final value?) 'IndexNumber': value, - if (instance.parentIndexNumber case final value?) 'ParentIndexNumber': value, - if (instance.premiereDate?.toIso8601String() case final value?) 'PremiereDate': value, + if (instance.parentIndexNumber case final value?) + 'ParentIndexNumber': value, + if (instance.premiereDate?.toIso8601String() case final value?) + 'PremiereDate': value, if (instance.isAutomated case final value?) 'IsAutomated': value, }; -PersonLookupInfoRemoteSearchQuery _$PersonLookupInfoRemoteSearchQueryFromJson(Map json) => +PersonLookupInfoRemoteSearchQuery _$PersonLookupInfoRemoteSearchQueryFromJson( + Map json) => PersonLookupInfoRemoteSearchQuery( - searchInfo: - json['SearchInfo'] == null ? null : PersonLookupInfo.fromJson(json['SearchInfo'] as Map), + searchInfo: json['SearchInfo'] == null + ? null + : PersonLookupInfo.fromJson( + json['SearchInfo'] as Map), itemId: json['ItemId'] as String?, searchProviderName: json['SearchProviderName'] as String?, includeDisabledProviders: json['IncludeDisabledProviders'] as bool?, ); -Map _$PersonLookupInfoRemoteSearchQueryToJson(PersonLookupInfoRemoteSearchQuery instance) => +Map _$PersonLookupInfoRemoteSearchQueryToJson( + PersonLookupInfoRemoteSearchQuery instance) => { if (instance.searchInfo?.toJson() case final value?) 'SearchInfo': value, if (instance.itemId case final value?) 'ItemId': value, - if (instance.searchProviderName case final value?) 'SearchProviderName': value, - if (instance.includeDisabledProviders case final value?) 'IncludeDisabledProviders': value, + if (instance.searchProviderName case final value?) + 'SearchProviderName': value, + if (instance.includeDisabledProviders case final value?) + 'IncludeDisabledProviders': value, }; -PingRequestDto _$PingRequestDtoFromJson(Map json) => PingRequestDto( +PingRequestDto _$PingRequestDtoFromJson(Map json) => + PingRequestDto( ping: (json['Ping'] as num?)?.toInt(), ); -Map _$PingRequestDtoToJson(PingRequestDto instance) => { +Map _$PingRequestDtoToJson(PingRequestDto instance) => + { if (instance.ping case final value?) 'Ping': value, }; -PinRedeemResult _$PinRedeemResultFromJson(Map json) => PinRedeemResult( +PinRedeemResult _$PinRedeemResultFromJson(Map json) => + PinRedeemResult( success: json['Success'] as bool?, - usersReset: (json['UsersReset'] as List?)?.map((e) => e as String).toList() ?? [], + usersReset: (json['UsersReset'] as List?) + ?.map((e) => e as String) + .toList() ?? + [], ); -Map _$PinRedeemResultToJson(PinRedeemResult instance) => { +Map _$PinRedeemResultToJson(PinRedeemResult instance) => + { if (instance.success case final value?) 'Success': value, if (instance.usersReset case final value?) 'UsersReset': value, }; -PlaybackInfoDto _$PlaybackInfoDtoFromJson(Map json) => PlaybackInfoDto( +PlaybackInfoDto _$PlaybackInfoDtoFromJson(Map json) => + PlaybackInfoDto( userId: json['UserId'] as String?, maxStreamingBitrate: (json['MaxStreamingBitrate'] as num?)?.toInt(), startTimeTicks: (json['StartTimeTicks'] as num?)?.toInt(), @@ -3035,37 +4197,55 @@ PlaybackInfoDto _$PlaybackInfoDtoFromJson(Map json) => Playback maxAudioChannels: (json['MaxAudioChannels'] as num?)?.toInt(), mediaSourceId: json['MediaSourceId'] as String?, liveStreamId: json['LiveStreamId'] as String?, - deviceProfile: - json['DeviceProfile'] == null ? null : DeviceProfile.fromJson(json['DeviceProfile'] as Map), + deviceProfile: json['DeviceProfile'] == null + ? null + : DeviceProfile.fromJson( + json['DeviceProfile'] as Map), enableDirectPlay: json['EnableDirectPlay'] as bool?, enableDirectStream: json['EnableDirectStream'] as bool?, enableTranscoding: json['EnableTranscoding'] as bool?, allowVideoStreamCopy: json['AllowVideoStreamCopy'] as bool?, allowAudioStreamCopy: json['AllowAudioStreamCopy'] as bool?, autoOpenLiveStream: json['AutoOpenLiveStream'] as bool?, - alwaysBurnInSubtitleWhenTranscoding: json['AlwaysBurnInSubtitleWhenTranscoding'] as bool?, + alwaysBurnInSubtitleWhenTranscoding: + json['AlwaysBurnInSubtitleWhenTranscoding'] as bool?, ); -Map _$PlaybackInfoDtoToJson(PlaybackInfoDto instance) => { +Map _$PlaybackInfoDtoToJson(PlaybackInfoDto instance) => + { if (instance.userId case final value?) 'UserId': value, - if (instance.maxStreamingBitrate case final value?) 'MaxStreamingBitrate': value, + if (instance.maxStreamingBitrate case final value?) + 'MaxStreamingBitrate': value, if (instance.startTimeTicks case final value?) 'StartTimeTicks': value, - if (instance.audioStreamIndex case final value?) 'AudioStreamIndex': value, - if (instance.subtitleStreamIndex case final value?) 'SubtitleStreamIndex': value, - if (instance.maxAudioChannels case final value?) 'MaxAudioChannels': value, + if (instance.audioStreamIndex case final value?) + 'AudioStreamIndex': value, + if (instance.subtitleStreamIndex case final value?) + 'SubtitleStreamIndex': value, + if (instance.maxAudioChannels case final value?) + 'MaxAudioChannels': value, if (instance.mediaSourceId case final value?) 'MediaSourceId': value, if (instance.liveStreamId case final value?) 'LiveStreamId': value, - if (instance.deviceProfile?.toJson() case final value?) 'DeviceProfile': value, - if (instance.enableDirectPlay case final value?) 'EnableDirectPlay': value, - if (instance.enableDirectStream case final value?) 'EnableDirectStream': value, - if (instance.enableTranscoding case final value?) 'EnableTranscoding': value, - if (instance.allowVideoStreamCopy case final value?) 'AllowVideoStreamCopy': value, - if (instance.allowAudioStreamCopy case final value?) 'AllowAudioStreamCopy': value, - if (instance.autoOpenLiveStream case final value?) 'AutoOpenLiveStream': value, - if (instance.alwaysBurnInSubtitleWhenTranscoding case final value?) 'AlwaysBurnInSubtitleWhenTranscoding': value, - }; - -PlaybackInfoResponse _$PlaybackInfoResponseFromJson(Map json) => PlaybackInfoResponse( + if (instance.deviceProfile?.toJson() case final value?) + 'DeviceProfile': value, + if (instance.enableDirectPlay case final value?) + 'EnableDirectPlay': value, + if (instance.enableDirectStream case final value?) + 'EnableDirectStream': value, + if (instance.enableTranscoding case final value?) + 'EnableTranscoding': value, + if (instance.allowVideoStreamCopy case final value?) + 'AllowVideoStreamCopy': value, + if (instance.allowAudioStreamCopy case final value?) + 'AllowAudioStreamCopy': value, + if (instance.autoOpenLiveStream case final value?) + 'AutoOpenLiveStream': value, + if (instance.alwaysBurnInSubtitleWhenTranscoding case final value?) + 'AlwaysBurnInSubtitleWhenTranscoding': value, + }; + +PlaybackInfoResponse _$PlaybackInfoResponseFromJson( + Map json) => + PlaybackInfoResponse( mediaSources: (json['MediaSources'] as List?) ?.map((e) => MediaSourceInfo.fromJson(e as Map)) .toList() ?? @@ -3074,15 +4254,24 @@ PlaybackInfoResponse _$PlaybackInfoResponseFromJson(Map json) = errorCode: playbackErrorCodeNullableFromJson(json['ErrorCode']), ); -Map _$PlaybackInfoResponseToJson(PlaybackInfoResponse instance) => { - if (instance.mediaSources?.map((e) => e.toJson()).toList() case final value?) 'MediaSources': value, +Map _$PlaybackInfoResponseToJson( + PlaybackInfoResponse instance) => + { + if (instance.mediaSources?.map((e) => e.toJson()).toList() + case final value?) + 'MediaSources': value, if (instance.playSessionId case final value?) 'PlaySessionId': value, - if (playbackErrorCodeNullableToJson(instance.errorCode) case final value?) 'ErrorCode': value, + if (playbackErrorCodeNullableToJson(instance.errorCode) case final value?) + 'ErrorCode': value, }; -PlaybackProgressInfo _$PlaybackProgressInfoFromJson(Map json) => PlaybackProgressInfo( +PlaybackProgressInfo _$PlaybackProgressInfoFromJson( + Map json) => + PlaybackProgressInfo( canSeek: json['CanSeek'] as bool?, - item: json['Item'] == null ? null : BaseItemDto.fromJson(json['Item'] as Map), + item: json['Item'] == null + ? null + : BaseItemDto.fromJson(json['Item'] as Map), itemId: json['ItemId'] as String?, sessionId: json['SessionId'] as String?, mediaSourceId: json['MediaSourceId'] as String?, @@ -3107,33 +4296,46 @@ PlaybackProgressInfo _$PlaybackProgressInfoFromJson(Map json) = playlistItemId: json['PlaylistItemId'] as String?, ); -Map _$PlaybackProgressInfoToJson(PlaybackProgressInfo instance) => { +Map _$PlaybackProgressInfoToJson( + PlaybackProgressInfo instance) => + { if (instance.canSeek case final value?) 'CanSeek': value, if (instance.item?.toJson() case final value?) 'Item': value, if (instance.itemId case final value?) 'ItemId': value, if (instance.sessionId case final value?) 'SessionId': value, if (instance.mediaSourceId case final value?) 'MediaSourceId': value, - if (instance.audioStreamIndex case final value?) 'AudioStreamIndex': value, - if (instance.subtitleStreamIndex case final value?) 'SubtitleStreamIndex': value, + if (instance.audioStreamIndex case final value?) + 'AudioStreamIndex': value, + if (instance.subtitleStreamIndex case final value?) + 'SubtitleStreamIndex': value, if (instance.isPaused case final value?) 'IsPaused': value, if (instance.isMuted case final value?) 'IsMuted': value, if (instance.positionTicks case final value?) 'PositionTicks': value, - if (instance.playbackStartTimeTicks case final value?) 'PlaybackStartTimeTicks': value, + if (instance.playbackStartTimeTicks case final value?) + 'PlaybackStartTimeTicks': value, if (instance.volumeLevel case final value?) 'VolumeLevel': value, if (instance.brightness case final value?) 'Brightness': value, if (instance.aspectRatio case final value?) 'AspectRatio': value, - if (playMethodNullableToJson(instance.playMethod) case final value?) 'PlayMethod': value, + if (playMethodNullableToJson(instance.playMethod) case final value?) + 'PlayMethod': value, if (instance.liveStreamId case final value?) 'LiveStreamId': value, if (instance.playSessionId case final value?) 'PlaySessionId': value, - if (repeatModeNullableToJson(instance.repeatMode) case final value?) 'RepeatMode': value, - if (playbackOrderNullableToJson(instance.playbackOrder) case final value?) 'PlaybackOrder': value, - if (instance.nowPlayingQueue?.map((e) => e.toJson()).toList() case final value?) 'NowPlayingQueue': value, + if (repeatModeNullableToJson(instance.repeatMode) case final value?) + 'RepeatMode': value, + if (playbackOrderNullableToJson(instance.playbackOrder) case final value?) + 'PlaybackOrder': value, + if (instance.nowPlayingQueue?.map((e) => e.toJson()).toList() + case final value?) + 'NowPlayingQueue': value, if (instance.playlistItemId case final value?) 'PlaylistItemId': value, }; -PlaybackStartInfo _$PlaybackStartInfoFromJson(Map json) => PlaybackStartInfo( +PlaybackStartInfo _$PlaybackStartInfoFromJson(Map json) => + PlaybackStartInfo( canSeek: json['CanSeek'] as bool?, - item: json['Item'] == null ? null : BaseItemDto.fromJson(json['Item'] as Map), + item: json['Item'] == null + ? null + : BaseItemDto.fromJson(json['Item'] as Map), itemId: json['ItemId'] as String?, sessionId: json['SessionId'] as String?, mediaSourceId: json['MediaSourceId'] as String?, @@ -3158,32 +4360,44 @@ PlaybackStartInfo _$PlaybackStartInfoFromJson(Map json) => Play playlistItemId: json['PlaylistItemId'] as String?, ); -Map _$PlaybackStartInfoToJson(PlaybackStartInfo instance) => { +Map _$PlaybackStartInfoToJson(PlaybackStartInfo instance) => + { if (instance.canSeek case final value?) 'CanSeek': value, if (instance.item?.toJson() case final value?) 'Item': value, if (instance.itemId case final value?) 'ItemId': value, if (instance.sessionId case final value?) 'SessionId': value, if (instance.mediaSourceId case final value?) 'MediaSourceId': value, - if (instance.audioStreamIndex case final value?) 'AudioStreamIndex': value, - if (instance.subtitleStreamIndex case final value?) 'SubtitleStreamIndex': value, + if (instance.audioStreamIndex case final value?) + 'AudioStreamIndex': value, + if (instance.subtitleStreamIndex case final value?) + 'SubtitleStreamIndex': value, if (instance.isPaused case final value?) 'IsPaused': value, if (instance.isMuted case final value?) 'IsMuted': value, if (instance.positionTicks case final value?) 'PositionTicks': value, - if (instance.playbackStartTimeTicks case final value?) 'PlaybackStartTimeTicks': value, + if (instance.playbackStartTimeTicks case final value?) + 'PlaybackStartTimeTicks': value, if (instance.volumeLevel case final value?) 'VolumeLevel': value, if (instance.brightness case final value?) 'Brightness': value, if (instance.aspectRatio case final value?) 'AspectRatio': value, - if (playMethodNullableToJson(instance.playMethod) case final value?) 'PlayMethod': value, + if (playMethodNullableToJson(instance.playMethod) case final value?) + 'PlayMethod': value, if (instance.liveStreamId case final value?) 'LiveStreamId': value, if (instance.playSessionId case final value?) 'PlaySessionId': value, - if (repeatModeNullableToJson(instance.repeatMode) case final value?) 'RepeatMode': value, - if (playbackOrderNullableToJson(instance.playbackOrder) case final value?) 'PlaybackOrder': value, - if (instance.nowPlayingQueue?.map((e) => e.toJson()).toList() case final value?) 'NowPlayingQueue': value, + if (repeatModeNullableToJson(instance.repeatMode) case final value?) + 'RepeatMode': value, + if (playbackOrderNullableToJson(instance.playbackOrder) case final value?) + 'PlaybackOrder': value, + if (instance.nowPlayingQueue?.map((e) => e.toJson()).toList() + case final value?) + 'NowPlayingQueue': value, if (instance.playlistItemId case final value?) 'PlaylistItemId': value, }; -PlaybackStopInfo _$PlaybackStopInfoFromJson(Map json) => PlaybackStopInfo( - item: json['Item'] == null ? null : BaseItemDto.fromJson(json['Item'] as Map), +PlaybackStopInfo _$PlaybackStopInfoFromJson(Map json) => + PlaybackStopInfo( + item: json['Item'] == null + ? null + : BaseItemDto.fromJson(json['Item'] as Map), itemId: json['ItemId'] as String?, sessionId: json['SessionId'] as String?, mediaSourceId: json['MediaSourceId'] as String?, @@ -3199,7 +4413,8 @@ PlaybackStopInfo _$PlaybackStopInfoFromJson(Map json) => Playba [], ); -Map _$PlaybackStopInfoToJson(PlaybackStopInfo instance) => { +Map _$PlaybackStopInfoToJson(PlaybackStopInfo instance) => + { if (instance.item?.toJson() case final value?) 'Item': value, if (instance.itemId case final value?) 'ItemId': value, if (instance.sessionId case final value?) 'SessionId': value, @@ -3210,10 +4425,13 @@ Map _$PlaybackStopInfoToJson(PlaybackStopInfo instance) => e.toJson()).toList() case final value?) 'NowPlayingQueue': value, + if (instance.nowPlayingQueue?.map((e) => e.toJson()).toList() + case final value?) + 'NowPlayingQueue': value, }; -PlayerStateInfo _$PlayerStateInfoFromJson(Map json) => PlayerStateInfo( +PlayerStateInfo _$PlayerStateInfoFromJson(Map json) => + PlayerStateInfo( positionTicks: (json['PositionTicks'] as num?)?.toInt(), canSeek: json['CanSeek'] as bool?, isPaused: json['IsPaused'] as bool?, @@ -3228,71 +4446,101 @@ PlayerStateInfo _$PlayerStateInfoFromJson(Map json) => PlayerSt liveStreamId: json['LiveStreamId'] as String?, ); -Map _$PlayerStateInfoToJson(PlayerStateInfo instance) => { +Map _$PlayerStateInfoToJson(PlayerStateInfo instance) => + { if (instance.positionTicks case final value?) 'PositionTicks': value, if (instance.canSeek case final value?) 'CanSeek': value, if (instance.isPaused case final value?) 'IsPaused': value, if (instance.isMuted case final value?) 'IsMuted': value, if (instance.volumeLevel case final value?) 'VolumeLevel': value, - if (instance.audioStreamIndex case final value?) 'AudioStreamIndex': value, - if (instance.subtitleStreamIndex case final value?) 'SubtitleStreamIndex': value, + if (instance.audioStreamIndex case final value?) + 'AudioStreamIndex': value, + if (instance.subtitleStreamIndex case final value?) + 'SubtitleStreamIndex': value, if (instance.mediaSourceId case final value?) 'MediaSourceId': value, - if (playMethodNullableToJson(instance.playMethod) case final value?) 'PlayMethod': value, - if (repeatModeNullableToJson(instance.repeatMode) case final value?) 'RepeatMode': value, - if (playbackOrderNullableToJson(instance.playbackOrder) case final value?) 'PlaybackOrder': value, + if (playMethodNullableToJson(instance.playMethod) case final value?) + 'PlayMethod': value, + if (repeatModeNullableToJson(instance.repeatMode) case final value?) + 'RepeatMode': value, + if (playbackOrderNullableToJson(instance.playbackOrder) case final value?) + 'PlaybackOrder': value, if (instance.liveStreamId case final value?) 'LiveStreamId': value, }; -PlaylistCreationResult _$PlaylistCreationResultFromJson(Map json) => PlaylistCreationResult( +PlaylistCreationResult _$PlaylistCreationResultFromJson( + Map json) => + PlaylistCreationResult( id: json['Id'] as String?, ); -Map _$PlaylistCreationResultToJson(PlaylistCreationResult instance) => { +Map _$PlaylistCreationResultToJson( + PlaylistCreationResult instance) => + { if (instance.id case final value?) 'Id': value, }; PlaylistDto _$PlaylistDtoFromJson(Map json) => PlaylistDto( openAccess: json['OpenAccess'] as bool?, shares: (json['Shares'] as List?) - ?.map((e) => PlaylistUserPermissions.fromJson(e as Map)) + ?.map((e) => + PlaylistUserPermissions.fromJson(e as Map)) + .toList() ?? + [], + itemIds: (json['ItemIds'] as List?) + ?.map((e) => e as String) .toList() ?? [], - itemIds: (json['ItemIds'] as List?)?.map((e) => e as String).toList() ?? [], ); -Map _$PlaylistDtoToJson(PlaylistDto instance) => { +Map _$PlaylistDtoToJson(PlaylistDto instance) => + { if (instance.openAccess case final value?) 'OpenAccess': value, - if (instance.shares?.map((e) => e.toJson()).toList() case final value?) 'Shares': value, + if (instance.shares?.map((e) => e.toJson()).toList() case final value?) + 'Shares': value, if (instance.itemIds case final value?) 'ItemIds': value, }; -PlaylistUserPermissions _$PlaylistUserPermissionsFromJson(Map json) => PlaylistUserPermissions( +PlaylistUserPermissions _$PlaylistUserPermissionsFromJson( + Map json) => + PlaylistUserPermissions( userId: json['UserId'] as String?, canEdit: json['CanEdit'] as bool?, ); -Map _$PlaylistUserPermissionsToJson(PlaylistUserPermissions instance) => { +Map _$PlaylistUserPermissionsToJson( + PlaylistUserPermissions instance) => + { if (instance.userId case final value?) 'UserId': value, if (instance.canEdit case final value?) 'CanEdit': value, }; PlayMessage _$PlayMessageFromJson(Map json) => PlayMessage( - data: json['Data'] == null ? null : PlayRequest.fromJson(json['Data'] as Map), + data: json['Data'] == null + ? null + : PlayRequest.fromJson(json['Data'] as Map), messageId: json['MessageId'] as String?, - messageType: PlayMessage.sessionMessageTypeMessageTypeNullableFromJson(json['MessageType']), + messageType: PlayMessage.sessionMessageTypeMessageTypeNullableFromJson( + json['MessageType']), ); -Map _$PlayMessageToJson(PlayMessage instance) => { +Map _$PlayMessageToJson(PlayMessage instance) => + { if (instance.data?.toJson() case final value?) 'Data': value, if (instance.messageId case final value?) 'MessageId': value, - if (sessionMessageTypeNullableToJson(instance.messageType) case final value?) 'MessageType': value, + if (sessionMessageTypeNullableToJson(instance.messageType) + case final value?) + 'MessageType': value, }; -PlayQueueUpdate _$PlayQueueUpdateFromJson(Map json) => PlayQueueUpdate( +PlayQueueUpdate _$PlayQueueUpdateFromJson(Map json) => + PlayQueueUpdate( reason: playQueueUpdateReasonNullableFromJson(json['Reason']), - lastUpdate: json['LastUpdate'] == null ? null : DateTime.parse(json['LastUpdate'] as String), + lastUpdate: json['LastUpdate'] == null + ? null + : DateTime.parse(json['LastUpdate'] as String), playlist: (json['Playlist'] as List?) - ?.map((e) => SyncPlayQueueItem.fromJson(e as Map)) + ?.map( + (e) => SyncPlayQueueItem.fromJson(e as Map)) .toList() ?? [], playingItemIndex: (json['PlayingItemIndex'] as num?)?.toInt(), @@ -3302,19 +4550,32 @@ PlayQueueUpdate _$PlayQueueUpdateFromJson(Map json) => PlayQueu repeatMode: groupRepeatModeNullableFromJson(json['RepeatMode']), ); -Map _$PlayQueueUpdateToJson(PlayQueueUpdate instance) => { - if (playQueueUpdateReasonNullableToJson(instance.reason) case final value?) 'Reason': value, - if (instance.lastUpdate?.toIso8601String() case final value?) 'LastUpdate': value, - if (instance.playlist?.map((e) => e.toJson()).toList() case final value?) 'Playlist': value, - if (instance.playingItemIndex case final value?) 'PlayingItemIndex': value, - if (instance.startPositionTicks case final value?) 'StartPositionTicks': value, +Map _$PlayQueueUpdateToJson(PlayQueueUpdate instance) => + { + if (playQueueUpdateReasonNullableToJson(instance.reason) + case final value?) + 'Reason': value, + if (instance.lastUpdate?.toIso8601String() case final value?) + 'LastUpdate': value, + if (instance.playlist?.map((e) => e.toJson()).toList() case final value?) + 'Playlist': value, + if (instance.playingItemIndex case final value?) + 'PlayingItemIndex': value, + if (instance.startPositionTicks case final value?) + 'StartPositionTicks': value, if (instance.isPlaying case final value?) 'IsPlaying': value, - if (groupShuffleModeNullableToJson(instance.shuffleMode) case final value?) 'ShuffleMode': value, - if (groupRepeatModeNullableToJson(instance.repeatMode) case final value?) 'RepeatMode': value, + if (groupShuffleModeNullableToJson(instance.shuffleMode) + case final value?) + 'ShuffleMode': value, + if (groupRepeatModeNullableToJson(instance.repeatMode) case final value?) + 'RepeatMode': value, }; PlayRequest _$PlayRequestFromJson(Map json) => PlayRequest( - itemIds: (json['ItemIds'] as List?)?.map((e) => e as String).toList() ?? [], + itemIds: (json['ItemIds'] as List?) + ?.map((e) => e as String) + .toList() ?? + [], startPositionTicks: (json['StartPositionTicks'] as num?)?.toInt(), playCommand: playCommandNullableFromJson(json['PlayCommand']), controllingUserId: json['ControllingUserId'] as String?, @@ -3324,51 +4585,77 @@ PlayRequest _$PlayRequestFromJson(Map json) => PlayRequest( startIndex: (json['StartIndex'] as num?)?.toInt(), ); -Map _$PlayRequestToJson(PlayRequest instance) => { +Map _$PlayRequestToJson(PlayRequest instance) => + { if (instance.itemIds case final value?) 'ItemIds': value, - if (instance.startPositionTicks case final value?) 'StartPositionTicks': value, - if (playCommandNullableToJson(instance.playCommand) case final value?) 'PlayCommand': value, - if (instance.controllingUserId case final value?) 'ControllingUserId': value, - if (instance.subtitleStreamIndex case final value?) 'SubtitleStreamIndex': value, - if (instance.audioStreamIndex case final value?) 'AudioStreamIndex': value, + if (instance.startPositionTicks case final value?) + 'StartPositionTicks': value, + if (playCommandNullableToJson(instance.playCommand) case final value?) + 'PlayCommand': value, + if (instance.controllingUserId case final value?) + 'ControllingUserId': value, + if (instance.subtitleStreamIndex case final value?) + 'SubtitleStreamIndex': value, + if (instance.audioStreamIndex case final value?) + 'AudioStreamIndex': value, if (instance.mediaSourceId case final value?) 'MediaSourceId': value, if (instance.startIndex case final value?) 'StartIndex': value, }; -PlayRequestDto _$PlayRequestDtoFromJson(Map json) => PlayRequestDto( - playingQueue: (json['PlayingQueue'] as List?)?.map((e) => e as String).toList() ?? [], +PlayRequestDto _$PlayRequestDtoFromJson(Map json) => + PlayRequestDto( + playingQueue: (json['PlayingQueue'] as List?) + ?.map((e) => e as String) + .toList() ?? + [], playingItemPosition: (json['PlayingItemPosition'] as num?)?.toInt(), startPositionTicks: (json['StartPositionTicks'] as num?)?.toInt(), ); -Map _$PlayRequestDtoToJson(PlayRequestDto instance) => { +Map _$PlayRequestDtoToJson(PlayRequestDto instance) => + { if (instance.playingQueue case final value?) 'PlayingQueue': value, - if (instance.playingItemPosition case final value?) 'PlayingItemPosition': value, - if (instance.startPositionTicks case final value?) 'StartPositionTicks': value, + if (instance.playingItemPosition case final value?) + 'PlayingItemPosition': value, + if (instance.startPositionTicks case final value?) + 'StartPositionTicks': value, }; -PlaystateMessage _$PlaystateMessageFromJson(Map json) => PlaystateMessage( - data: json['Data'] == null ? null : PlaystateRequest.fromJson(json['Data'] as Map), +PlaystateMessage _$PlaystateMessageFromJson(Map json) => + PlaystateMessage( + data: json['Data'] == null + ? null + : PlaystateRequest.fromJson(json['Data'] as Map), messageId: json['MessageId'] as String?, - messageType: PlaystateMessage.sessionMessageTypeMessageTypeNullableFromJson(json['MessageType']), + messageType: + PlaystateMessage.sessionMessageTypeMessageTypeNullableFromJson( + json['MessageType']), ); -Map _$PlaystateMessageToJson(PlaystateMessage instance) => { +Map _$PlaystateMessageToJson(PlaystateMessage instance) => + { if (instance.data?.toJson() case final value?) 'Data': value, if (instance.messageId case final value?) 'MessageId': value, - if (sessionMessageTypeNullableToJson(instance.messageType) case final value?) 'MessageType': value, + if (sessionMessageTypeNullableToJson(instance.messageType) + case final value?) + 'MessageType': value, }; -PlaystateRequest _$PlaystateRequestFromJson(Map json) => PlaystateRequest( +PlaystateRequest _$PlaystateRequestFromJson(Map json) => + PlaystateRequest( command: playstateCommandNullableFromJson(json['Command']), seekPositionTicks: (json['SeekPositionTicks'] as num?)?.toInt(), controllingUserId: json['ControllingUserId'] as String?, ); -Map _$PlaystateRequestToJson(PlaystateRequest instance) => { - if (playstateCommandNullableToJson(instance.command) case final value?) 'Command': value, - if (instance.seekPositionTicks case final value?) 'SeekPositionTicks': value, - if (instance.controllingUserId case final value?) 'ControllingUserId': value, +Map _$PlaystateRequestToJson(PlaystateRequest instance) => + { + if (playstateCommandNullableToJson(instance.command) case final value?) + 'Command': value, + if (instance.seekPositionTicks case final value?) + 'SeekPositionTicks': value, + if (instance.controllingUserId case final value?) + 'ControllingUserId': value, }; PluginInfo _$PluginInfoFromJson(Map json) => PluginInfo( @@ -3382,94 +4669,140 @@ PluginInfo _$PluginInfoFromJson(Map json) => PluginInfo( status: pluginStatusNullableFromJson(json['Status']), ); -Map _$PluginInfoToJson(PluginInfo instance) => { +Map _$PluginInfoToJson(PluginInfo instance) => + { if (instance.name case final value?) 'Name': value, if (instance.version case final value?) 'Version': value, - if (instance.configurationFileName case final value?) 'ConfigurationFileName': value, + if (instance.configurationFileName case final value?) + 'ConfigurationFileName': value, if (instance.description case final value?) 'Description': value, if (instance.id case final value?) 'Id': value, if (instance.canUninstall case final value?) 'CanUninstall': value, if (instance.hasImage case final value?) 'HasImage': value, - if (pluginStatusNullableToJson(instance.status) case final value?) 'Status': value, + if (pluginStatusNullableToJson(instance.status) case final value?) + 'Status': value, }; -PluginInstallationCancelledMessage _$PluginInstallationCancelledMessageFromJson(Map json) => +PluginInstallationCancelledMessage _$PluginInstallationCancelledMessageFromJson( + Map json) => PluginInstallationCancelledMessage( - data: json['Data'] == null ? null : InstallationInfo.fromJson(json['Data'] as Map), + data: json['Data'] == null + ? null + : InstallationInfo.fromJson(json['Data'] as Map), messageId: json['MessageId'] as String?, - messageType: - PluginInstallationCancelledMessage.sessionMessageTypeMessageTypeNullableFromJson(json['MessageType']), + messageType: PluginInstallationCancelledMessage + .sessionMessageTypeMessageTypeNullableFromJson(json['MessageType']), ); -Map _$PluginInstallationCancelledMessageToJson(PluginInstallationCancelledMessage instance) => +Map _$PluginInstallationCancelledMessageToJson( + PluginInstallationCancelledMessage instance) => { if (instance.data?.toJson() case final value?) 'Data': value, if (instance.messageId case final value?) 'MessageId': value, - if (sessionMessageTypeNullableToJson(instance.messageType) case final value?) 'MessageType': value, + if (sessionMessageTypeNullableToJson(instance.messageType) + case final value?) + 'MessageType': value, }; -PluginInstallationCompletedMessage _$PluginInstallationCompletedMessageFromJson(Map json) => +PluginInstallationCompletedMessage _$PluginInstallationCompletedMessageFromJson( + Map json) => PluginInstallationCompletedMessage( - data: json['Data'] == null ? null : InstallationInfo.fromJson(json['Data'] as Map), + data: json['Data'] == null + ? null + : InstallationInfo.fromJson(json['Data'] as Map), messageId: json['MessageId'] as String?, - messageType: - PluginInstallationCompletedMessage.sessionMessageTypeMessageTypeNullableFromJson(json['MessageType']), + messageType: PluginInstallationCompletedMessage + .sessionMessageTypeMessageTypeNullableFromJson(json['MessageType']), ); -Map _$PluginInstallationCompletedMessageToJson(PluginInstallationCompletedMessage instance) => +Map _$PluginInstallationCompletedMessageToJson( + PluginInstallationCompletedMessage instance) => { if (instance.data?.toJson() case final value?) 'Data': value, if (instance.messageId case final value?) 'MessageId': value, - if (sessionMessageTypeNullableToJson(instance.messageType) case final value?) 'MessageType': value, + if (sessionMessageTypeNullableToJson(instance.messageType) + case final value?) + 'MessageType': value, }; -PluginInstallationFailedMessage _$PluginInstallationFailedMessageFromJson(Map json) => +PluginInstallationFailedMessage _$PluginInstallationFailedMessageFromJson( + Map json) => PluginInstallationFailedMessage( - data: json['Data'] == null ? null : InstallationInfo.fromJson(json['Data'] as Map), + data: json['Data'] == null + ? null + : InstallationInfo.fromJson(json['Data'] as Map), messageId: json['MessageId'] as String?, - messageType: PluginInstallationFailedMessage.sessionMessageTypeMessageTypeNullableFromJson(json['MessageType']), + messageType: PluginInstallationFailedMessage + .sessionMessageTypeMessageTypeNullableFromJson(json['MessageType']), ); -Map _$PluginInstallationFailedMessageToJson(PluginInstallationFailedMessage instance) => +Map _$PluginInstallationFailedMessageToJson( + PluginInstallationFailedMessage instance) => { if (instance.data?.toJson() case final value?) 'Data': value, if (instance.messageId case final value?) 'MessageId': value, - if (sessionMessageTypeNullableToJson(instance.messageType) case final value?) 'MessageType': value, + if (sessionMessageTypeNullableToJson(instance.messageType) + case final value?) + 'MessageType': value, }; -PluginInstallingMessage _$PluginInstallingMessageFromJson(Map json) => PluginInstallingMessage( - data: json['Data'] == null ? null : InstallationInfo.fromJson(json['Data'] as Map), +PluginInstallingMessage _$PluginInstallingMessageFromJson( + Map json) => + PluginInstallingMessage( + data: json['Data'] == null + ? null + : InstallationInfo.fromJson(json['Data'] as Map), messageId: json['MessageId'] as String?, - messageType: PluginInstallingMessage.sessionMessageTypeMessageTypeNullableFromJson(json['MessageType']), + messageType: + PluginInstallingMessage.sessionMessageTypeMessageTypeNullableFromJson( + json['MessageType']), ); -Map _$PluginInstallingMessageToJson(PluginInstallingMessage instance) => { +Map _$PluginInstallingMessageToJson( + PluginInstallingMessage instance) => + { if (instance.data?.toJson() case final value?) 'Data': value, if (instance.messageId case final value?) 'MessageId': value, - if (sessionMessageTypeNullableToJson(instance.messageType) case final value?) 'MessageType': value, + if (sessionMessageTypeNullableToJson(instance.messageType) + case final value?) + 'MessageType': value, }; -PluginUninstalledMessage _$PluginUninstalledMessageFromJson(Map json) => PluginUninstalledMessage( - data: json['Data'] == null ? null : PluginInfo.fromJson(json['Data'] as Map), +PluginUninstalledMessage _$PluginUninstalledMessageFromJson( + Map json) => + PluginUninstalledMessage( + data: json['Data'] == null + ? null + : PluginInfo.fromJson(json['Data'] as Map), messageId: json['MessageId'] as String?, - messageType: PluginUninstalledMessage.sessionMessageTypeMessageTypeNullableFromJson(json['MessageType']), + messageType: PluginUninstalledMessage + .sessionMessageTypeMessageTypeNullableFromJson(json['MessageType']), ); -Map _$PluginUninstalledMessageToJson(PluginUninstalledMessage instance) => { +Map _$PluginUninstalledMessageToJson( + PluginUninstalledMessage instance) => + { if (instance.data?.toJson() case final value?) 'Data': value, if (instance.messageId case final value?) 'MessageId': value, - if (sessionMessageTypeNullableToJson(instance.messageType) case final value?) 'MessageType': value, + if (sessionMessageTypeNullableToJson(instance.messageType) + case final value?) + 'MessageType': value, }; -PreviousItemRequestDto _$PreviousItemRequestDtoFromJson(Map json) => PreviousItemRequestDto( +PreviousItemRequestDto _$PreviousItemRequestDtoFromJson( + Map json) => + PreviousItemRequestDto( playlistItemId: json['PlaylistItemId'] as String?, ); -Map _$PreviousItemRequestDtoToJson(PreviousItemRequestDto instance) => { +Map _$PreviousItemRequestDtoToJson( + PreviousItemRequestDto instance) => + { if (instance.playlistItemId case final value?) 'PlaylistItemId': value, }; -ProblemDetails _$ProblemDetailsFromJson(Map json) => ProblemDetails( +ProblemDetails _$ProblemDetailsFromJson(Map json) => + ProblemDetails( type: json['type'] as String?, title: json['title'] as String?, status: (json['status'] as num?)?.toInt(), @@ -3477,7 +4810,8 @@ ProblemDetails _$ProblemDetailsFromJson(Map json) => ProblemDet instance: json['instance'] as String?, ); -Map _$ProblemDetailsToJson(ProblemDetails instance) => { +Map _$ProblemDetailsToJson(ProblemDetails instance) => + { if (instance.type case final value?) 'type': value, if (instance.title case final value?) 'title': value, if (instance.status case final value?) 'status': value, @@ -3485,21 +4819,28 @@ Map _$ProblemDetailsToJson(ProblemDetails instance) => json) => ProfileCondition( +ProfileCondition _$ProfileConditionFromJson(Map json) => + ProfileCondition( condition: profileConditionTypeNullableFromJson(json['Condition']), property: profileConditionValueNullableFromJson(json['Property']), $Value: json['Value'] as String?, isRequired: json['IsRequired'] as bool?, ); -Map _$ProfileConditionToJson(ProfileCondition instance) => { - if (profileConditionTypeNullableToJson(instance.condition) case final value?) 'Condition': value, - if (profileConditionValueNullableToJson(instance.property) case final value?) 'Property': value, +Map _$ProfileConditionToJson(ProfileCondition instance) => + { + if (profileConditionTypeNullableToJson(instance.condition) + case final value?) + 'Condition': value, + if (profileConditionValueNullableToJson(instance.property) + case final value?) + 'Property': value, if (instance.$Value case final value?) 'Value': value, if (instance.isRequired case final value?) 'IsRequired': value, }; -PublicSystemInfo _$PublicSystemInfoFromJson(Map json) => PublicSystemInfo( +PublicSystemInfo _$PublicSystemInfoFromJson(Map json) => + PublicSystemInfo( localAddress: json['LocalAddress'] as String?, serverName: json['ServerName'] as String?, version: json['Version'] as String?, @@ -3509,36 +4850,56 @@ PublicSystemInfo _$PublicSystemInfoFromJson(Map json) => Public startupWizardCompleted: json['StartupWizardCompleted'] as bool?, ); -Map _$PublicSystemInfoToJson(PublicSystemInfo instance) => { +Map _$PublicSystemInfoToJson(PublicSystemInfo instance) => + { if (instance.localAddress case final value?) 'LocalAddress': value, if (instance.serverName case final value?) 'ServerName': value, if (instance.version case final value?) 'Version': value, if (instance.productName case final value?) 'ProductName': value, if (instance.operatingSystem case final value?) 'OperatingSystem': value, if (instance.id case final value?) 'Id': value, - if (instance.startupWizardCompleted case final value?) 'StartupWizardCompleted': value, + if (instance.startupWizardCompleted case final value?) + 'StartupWizardCompleted': value, }; QueryFilters _$QueryFiltersFromJson(Map json) => QueryFilters( - genres: - (json['Genres'] as List?)?.map((e) => NameGuidPair.fromJson(e as Map)).toList() ?? + genres: (json['Genres'] as List?) + ?.map((e) => NameGuidPair.fromJson(e as Map)) + .toList() ?? + [], + tags: + (json['Tags'] as List?)?.map((e) => e as String).toList() ?? [], - tags: (json['Tags'] as List?)?.map((e) => e as String).toList() ?? [], ); -Map _$QueryFiltersToJson(QueryFilters instance) => { - if (instance.genres?.map((e) => e.toJson()).toList() case final value?) 'Genres': value, +Map _$QueryFiltersToJson(QueryFilters instance) => + { + if (instance.genres?.map((e) => e.toJson()).toList() case final value?) + 'Genres': value, if (instance.tags case final value?) 'Tags': value, }; -QueryFiltersLegacy _$QueryFiltersLegacyFromJson(Map json) => QueryFiltersLegacy( - genres: (json['Genres'] as List?)?.map((e) => e as String).toList() ?? [], - tags: (json['Tags'] as List?)?.map((e) => e as String).toList() ?? [], - officialRatings: (json['OfficialRatings'] as List?)?.map((e) => e as String).toList() ?? [], - years: (json['Years'] as List?)?.map((e) => (e as num).toInt()).toList() ?? [], +QueryFiltersLegacy _$QueryFiltersLegacyFromJson(Map json) => + QueryFiltersLegacy( + genres: (json['Genres'] as List?) + ?.map((e) => e as String) + .toList() ?? + [], + tags: + (json['Tags'] as List?)?.map((e) => e as String).toList() ?? + [], + officialRatings: (json['OfficialRatings'] as List?) + ?.map((e) => e as String) + .toList() ?? + [], + years: (json['Years'] as List?) + ?.map((e) => (e as num).toInt()) + .toList() ?? + [], ); -Map _$QueryFiltersLegacyToJson(QueryFiltersLegacy instance) => { +Map _$QueryFiltersLegacyToJson(QueryFiltersLegacy instance) => + { if (instance.genres case final value?) 'Genres': value, if (instance.tags case final value?) 'Tags': value, if (instance.officialRatings case final value?) 'OfficialRatings': value, @@ -3555,25 +4916,34 @@ Map _$QueueItemToJson(QueueItem instance) => { if (instance.playlistItemId case final value?) 'PlaylistItemId': value, }; -QueueRequestDto _$QueueRequestDtoFromJson(Map json) => QueueRequestDto( - itemIds: (json['ItemIds'] as List?)?.map((e) => e as String).toList() ?? [], +QueueRequestDto _$QueueRequestDtoFromJson(Map json) => + QueueRequestDto( + itemIds: (json['ItemIds'] as List?) + ?.map((e) => e as String) + .toList() ?? + [], mode: groupQueueModeNullableFromJson(json['Mode']), ); -Map _$QueueRequestDtoToJson(QueueRequestDto instance) => { +Map _$QueueRequestDtoToJson(QueueRequestDto instance) => + { if (instance.itemIds case final value?) 'ItemIds': value, - if (groupQueueModeNullableToJson(instance.mode) case final value?) 'Mode': value, + if (groupQueueModeNullableToJson(instance.mode) case final value?) + 'Mode': value, }; -QuickConnectDto _$QuickConnectDtoFromJson(Map json) => QuickConnectDto( +QuickConnectDto _$QuickConnectDtoFromJson(Map json) => + QuickConnectDto( secret: json['Secret'] as String, ); -Map _$QuickConnectDtoToJson(QuickConnectDto instance) => { +Map _$QuickConnectDtoToJson(QuickConnectDto instance) => + { 'Secret': instance.secret, }; -QuickConnectResult _$QuickConnectResultFromJson(Map json) => QuickConnectResult( +QuickConnectResult _$QuickConnectResultFromJson(Map json) => + QuickConnectResult( authenticated: json['Authenticated'] as bool?, secret: json['Secret'] as String?, code: json['Code'] as String?, @@ -3581,10 +4951,13 @@ QuickConnectResult _$QuickConnectResultFromJson(Map json) => Qu deviceName: json['DeviceName'] as String?, appName: json['AppName'] as String?, appVersion: json['AppVersion'] as String?, - dateAdded: json['DateAdded'] == null ? null : DateTime.parse(json['DateAdded'] as String), + dateAdded: json['DateAdded'] == null + ? null + : DateTime.parse(json['DateAdded'] as String), ); -Map _$QuickConnectResultToJson(QuickConnectResult instance) => { +Map _$QuickConnectResultToJson(QuickConnectResult instance) => + { if (instance.authenticated case final value?) 'Authenticated': value, if (instance.secret case final value?) 'Secret': value, if (instance.code case final value?) 'Code': value, @@ -3592,51 +4965,73 @@ Map _$QuickConnectResultToJson(QuickConnectResult instance) => if (instance.deviceName case final value?) 'DeviceName': value, if (instance.appName case final value?) 'AppName': value, if (instance.appVersion case final value?) 'AppVersion': value, - if (instance.dateAdded?.toIso8601String() case final value?) 'DateAdded': value, + if (instance.dateAdded?.toIso8601String() case final value?) + 'DateAdded': value, }; -ReadyRequestDto _$ReadyRequestDtoFromJson(Map json) => ReadyRequestDto( - when: json['When'] == null ? null : DateTime.parse(json['When'] as String), +ReadyRequestDto _$ReadyRequestDtoFromJson(Map json) => + ReadyRequestDto( + when: + json['When'] == null ? null : DateTime.parse(json['When'] as String), positionTicks: (json['PositionTicks'] as num?)?.toInt(), isPlaying: json['IsPlaying'] as bool?, playlistItemId: json['PlaylistItemId'] as String?, ); -Map _$ReadyRequestDtoToJson(ReadyRequestDto instance) => { +Map _$ReadyRequestDtoToJson(ReadyRequestDto instance) => + { if (instance.when?.toIso8601String() case final value?) 'When': value, if (instance.positionTicks case final value?) 'PositionTicks': value, if (instance.isPlaying case final value?) 'IsPlaying': value, if (instance.playlistItemId case final value?) 'PlaylistItemId': value, }; -RecommendationDto _$RecommendationDtoFromJson(Map json) => RecommendationDto( - items: - (json['Items'] as List?)?.map((e) => BaseItemDto.fromJson(e as Map)).toList() ?? [], - recommendationType: recommendationTypeNullableFromJson(json['RecommendationType']), +RecommendationDto _$RecommendationDtoFromJson(Map json) => + RecommendationDto( + items: (json['Items'] as List?) + ?.map((e) => BaseItemDto.fromJson(e as Map)) + .toList() ?? + [], + recommendationType: + recommendationTypeNullableFromJson(json['RecommendationType']), baselineItemName: json['BaselineItemName'] as String?, categoryId: json['CategoryId'] as String?, ); -Map _$RecommendationDtoToJson(RecommendationDto instance) => { - if (instance.items?.map((e) => e.toJson()).toList() case final value?) 'Items': value, - if (recommendationTypeNullableToJson(instance.recommendationType) case final value?) 'RecommendationType': value, - if (instance.baselineItemName case final value?) 'BaselineItemName': value, +Map _$RecommendationDtoToJson(RecommendationDto instance) => + { + if (instance.items?.map((e) => e.toJson()).toList() case final value?) + 'Items': value, + if (recommendationTypeNullableToJson(instance.recommendationType) + case final value?) + 'RecommendationType': value, + if (instance.baselineItemName case final value?) + 'BaselineItemName': value, if (instance.categoryId case final value?) 'CategoryId': value, }; -RefreshProgressMessage _$RefreshProgressMessageFromJson(Map json) => RefreshProgressMessage( +RefreshProgressMessage _$RefreshProgressMessageFromJson( + Map json) => + RefreshProgressMessage( data: json['Data'] as Map?, messageId: json['MessageId'] as String?, - messageType: RefreshProgressMessage.sessionMessageTypeMessageTypeNullableFromJson(json['MessageType']), + messageType: + RefreshProgressMessage.sessionMessageTypeMessageTypeNullableFromJson( + json['MessageType']), ); -Map _$RefreshProgressMessageToJson(RefreshProgressMessage instance) => { +Map _$RefreshProgressMessageToJson( + RefreshProgressMessage instance) => + { if (instance.data case final value?) 'Data': value, if (instance.messageId case final value?) 'MessageId': value, - if (sessionMessageTypeNullableToJson(instance.messageType) case final value?) 'MessageType': value, + if (sessionMessageTypeNullableToJson(instance.messageType) + case final value?) + 'MessageType': value, }; -RemoteImageInfo _$RemoteImageInfoFromJson(Map json) => RemoteImageInfo( +RemoteImageInfo _$RemoteImageInfoFromJson(Map json) => + RemoteImageInfo( providerName: json['ProviderName'] as String?, url: json['Url'] as String?, thumbnailUrl: json['ThumbnailUrl'] as String?, @@ -3649,7 +5044,8 @@ RemoteImageInfo _$RemoteImageInfoFromJson(Map json) => RemoteIm ratingType: ratingTypeNullableFromJson(json['RatingType']), ); -Map _$RemoteImageInfoToJson(RemoteImageInfo instance) => { +Map _$RemoteImageInfoToJson(RemoteImageInfo instance) => + { if (instance.providerName case final value?) 'ProviderName': value, if (instance.url case final value?) 'Url': value, if (instance.thumbnailUrl case final value?) 'ThumbnailUrl': value, @@ -3658,72 +5054,98 @@ Map _$RemoteImageInfoToJson(RemoteImageInfo instance) => json) => RemoteImageResult( +RemoteImageResult _$RemoteImageResultFromJson(Map json) => + RemoteImageResult( images: (json['Images'] as List?) ?.map((e) => RemoteImageInfo.fromJson(e as Map)) .toList() ?? [], totalRecordCount: (json['TotalRecordCount'] as num?)?.toInt(), - providers: (json['Providers'] as List?)?.map((e) => e as String).toList() ?? [], + providers: (json['Providers'] as List?) + ?.map((e) => e as String) + .toList() ?? + [], ); -Map _$RemoteImageResultToJson(RemoteImageResult instance) => { - if (instance.images?.map((e) => e.toJson()).toList() case final value?) 'Images': value, - if (instance.totalRecordCount case final value?) 'TotalRecordCount': value, +Map _$RemoteImageResultToJson(RemoteImageResult instance) => + { + if (instance.images?.map((e) => e.toJson()).toList() case final value?) + 'Images': value, + if (instance.totalRecordCount case final value?) + 'TotalRecordCount': value, if (instance.providers case final value?) 'Providers': value, }; -RemoteLyricInfoDto _$RemoteLyricInfoDtoFromJson(Map json) => RemoteLyricInfoDto( +RemoteLyricInfoDto _$RemoteLyricInfoDtoFromJson(Map json) => + RemoteLyricInfoDto( id: json['Id'] as String?, providerName: json['ProviderName'] as String?, - lyrics: json['Lyrics'] == null ? null : LyricDto.fromJson(json['Lyrics'] as Map), + lyrics: json['Lyrics'] == null + ? null + : LyricDto.fromJson(json['Lyrics'] as Map), ); -Map _$RemoteLyricInfoDtoToJson(RemoteLyricInfoDto instance) => { +Map _$RemoteLyricInfoDtoToJson(RemoteLyricInfoDto instance) => + { if (instance.id case final value?) 'Id': value, if (instance.providerName case final value?) 'ProviderName': value, if (instance.lyrics?.toJson() case final value?) 'Lyrics': value, }; -RemoteSearchResult _$RemoteSearchResultFromJson(Map json) => RemoteSearchResult( +RemoteSearchResult _$RemoteSearchResultFromJson(Map json) => + RemoteSearchResult( name: json['Name'] as String?, providerIds: json['ProviderIds'] as Map?, productionYear: (json['ProductionYear'] as num?)?.toInt(), indexNumber: (json['IndexNumber'] as num?)?.toInt(), indexNumberEnd: (json['IndexNumberEnd'] as num?)?.toInt(), parentIndexNumber: (json['ParentIndexNumber'] as num?)?.toInt(), - premiereDate: json['PremiereDate'] == null ? null : DateTime.parse(json['PremiereDate'] as String), + premiereDate: json['PremiereDate'] == null + ? null + : DateTime.parse(json['PremiereDate'] as String), imageUrl: json['ImageUrl'] as String?, searchProviderName: json['SearchProviderName'] as String?, overview: json['Overview'] as String?, - albumArtist: - json['AlbumArtist'] == null ? null : RemoteSearchResult.fromJson(json['AlbumArtist'] as Map), + albumArtist: json['AlbumArtist'] == null + ? null + : RemoteSearchResult.fromJson( + json['AlbumArtist'] as Map), artists: (json['Artists'] as List?) - ?.map((e) => RemoteSearchResult.fromJson(e as Map)) + ?.map( + (e) => RemoteSearchResult.fromJson(e as Map)) .toList() ?? [], ); -Map _$RemoteSearchResultToJson(RemoteSearchResult instance) => { +Map _$RemoteSearchResultToJson(RemoteSearchResult instance) => + { if (instance.name case final value?) 'Name': value, if (instance.providerIds case final value?) 'ProviderIds': value, if (instance.productionYear case final value?) 'ProductionYear': value, if (instance.indexNumber case final value?) 'IndexNumber': value, if (instance.indexNumberEnd case final value?) 'IndexNumberEnd': value, - if (instance.parentIndexNumber case final value?) 'ParentIndexNumber': value, - if (instance.premiereDate?.toIso8601String() case final value?) 'PremiereDate': value, + if (instance.parentIndexNumber case final value?) + 'ParentIndexNumber': value, + if (instance.premiereDate?.toIso8601String() case final value?) + 'PremiereDate': value, if (instance.imageUrl case final value?) 'ImageUrl': value, - if (instance.searchProviderName case final value?) 'SearchProviderName': value, + if (instance.searchProviderName case final value?) + 'SearchProviderName': value, if (instance.overview case final value?) 'Overview': value, - if (instance.albumArtist?.toJson() case final value?) 'AlbumArtist': value, - if (instance.artists?.map((e) => e.toJson()).toList() case final value?) 'Artists': value, + if (instance.albumArtist?.toJson() case final value?) + 'AlbumArtist': value, + if (instance.artists?.map((e) => e.toJson()).toList() case final value?) + 'Artists': value, }; -RemoteSubtitleInfo _$RemoteSubtitleInfoFromJson(Map json) => RemoteSubtitleInfo( +RemoteSubtitleInfo _$RemoteSubtitleInfoFromJson(Map json) => + RemoteSubtitleInfo( threeLetterISOLanguageName: json['ThreeLetterISOLanguageName'] as String?, id: json['Id'] as String?, providerName: json['ProviderName'] as String?, @@ -3731,7 +5153,9 @@ RemoteSubtitleInfo _$RemoteSubtitleInfoFromJson(Map json) => Re format: json['Format'] as String?, author: json['Author'] as String?, comment: json['Comment'] as String?, - dateCreated: json['DateCreated'] == null ? null : DateTime.parse(json['DateCreated'] as String), + dateCreated: json['DateCreated'] == null + ? null + : DateTime.parse(json['DateCreated'] as String), communityRating: (json['CommunityRating'] as num?)?.toDouble(), frameRate: (json['FrameRate'] as num?)?.toDouble(), downloadCount: (json['DownloadCount'] as num?)?.toInt(), @@ -3742,115 +5166,171 @@ RemoteSubtitleInfo _$RemoteSubtitleInfoFromJson(Map json) => Re hearingImpaired: json['HearingImpaired'] as bool?, ); -Map _$RemoteSubtitleInfoToJson(RemoteSubtitleInfo instance) => { - if (instance.threeLetterISOLanguageName case final value?) 'ThreeLetterISOLanguageName': value, +Map _$RemoteSubtitleInfoToJson(RemoteSubtitleInfo instance) => + { + if (instance.threeLetterISOLanguageName case final value?) + 'ThreeLetterISOLanguageName': value, if (instance.id case final value?) 'Id': value, if (instance.providerName case final value?) 'ProviderName': value, if (instance.name case final value?) 'Name': value, if (instance.format case final value?) 'Format': value, if (instance.author case final value?) 'Author': value, if (instance.comment case final value?) 'Comment': value, - if (instance.dateCreated?.toIso8601String() case final value?) 'DateCreated': value, + if (instance.dateCreated?.toIso8601String() case final value?) + 'DateCreated': value, if (instance.communityRating case final value?) 'CommunityRating': value, if (instance.frameRate case final value?) 'FrameRate': value, if (instance.downloadCount case final value?) 'DownloadCount': value, if (instance.isHashMatch case final value?) 'IsHashMatch': value, if (instance.aiTranslated case final value?) 'AiTranslated': value, - if (instance.machineTranslated case final value?) 'MachineTranslated': value, + if (instance.machineTranslated case final value?) + 'MachineTranslated': value, if (instance.forced case final value?) 'Forced': value, if (instance.hearingImpaired case final value?) 'HearingImpaired': value, }; -RemoveFromPlaylistRequestDto _$RemoveFromPlaylistRequestDtoFromJson(Map json) => +RemoveFromPlaylistRequestDto _$RemoveFromPlaylistRequestDtoFromJson( + Map json) => RemoveFromPlaylistRequestDto( - playlistItemIds: (json['PlaylistItemIds'] as List?)?.map((e) => e as String).toList() ?? [], + playlistItemIds: (json['PlaylistItemIds'] as List?) + ?.map((e) => e as String) + .toList() ?? + [], clearPlaylist: json['ClearPlaylist'] as bool?, clearPlayingItem: json['ClearPlayingItem'] as bool?, ); -Map _$RemoveFromPlaylistRequestDtoToJson(RemoveFromPlaylistRequestDto instance) => { +Map _$RemoveFromPlaylistRequestDtoToJson( + RemoveFromPlaylistRequestDto instance) => + { if (instance.playlistItemIds case final value?) 'PlaylistItemIds': value, if (instance.clearPlaylist case final value?) 'ClearPlaylist': value, - if (instance.clearPlayingItem case final value?) 'ClearPlayingItem': value, + if (instance.clearPlayingItem case final value?) + 'ClearPlayingItem': value, }; -ReportPlaybackOptions _$ReportPlaybackOptionsFromJson(Map json) => ReportPlaybackOptions( +ReportPlaybackOptions _$ReportPlaybackOptionsFromJson( + Map json) => + ReportPlaybackOptions( maxDataAge: (json['MaxDataAge'] as num?)?.toInt(), backupPath: json['BackupPath'] as String?, maxBackupFiles: (json['MaxBackupFiles'] as num?)?.toInt(), ); -Map _$ReportPlaybackOptionsToJson(ReportPlaybackOptions instance) => { +Map _$ReportPlaybackOptionsToJson( + ReportPlaybackOptions instance) => + { if (instance.maxDataAge case final value?) 'MaxDataAge': value, if (instance.backupPath case final value?) 'BackupPath': value, if (instance.maxBackupFiles case final value?) 'MaxBackupFiles': value, }; -RepositoryInfo _$RepositoryInfoFromJson(Map json) => RepositoryInfo( +RepositoryInfo _$RepositoryInfoFromJson(Map json) => + RepositoryInfo( name: json['Name'] as String?, url: json['Url'] as String?, enabled: json['Enabled'] as bool?, ); -Map _$RepositoryInfoToJson(RepositoryInfo instance) => { +Map _$RepositoryInfoToJson(RepositoryInfo instance) => + { if (instance.name case final value?) 'Name': value, if (instance.url case final value?) 'Url': value, if (instance.enabled case final value?) 'Enabled': value, }; -RestartRequiredMessage _$RestartRequiredMessageFromJson(Map json) => RestartRequiredMessage( +RestartRequiredMessage _$RestartRequiredMessageFromJson( + Map json) => + RestartRequiredMessage( messageId: json['MessageId'] as String?, - messageType: RestartRequiredMessage.sessionMessageTypeMessageTypeNullableFromJson(json['MessageType']), + messageType: + RestartRequiredMessage.sessionMessageTypeMessageTypeNullableFromJson( + json['MessageType']), ); -Map _$RestartRequiredMessageToJson(RestartRequiredMessage instance) => { +Map _$RestartRequiredMessageToJson( + RestartRequiredMessage instance) => + { if (instance.messageId case final value?) 'MessageId': value, - if (sessionMessageTypeNullableToJson(instance.messageType) case final value?) 'MessageType': value, + if (sessionMessageTypeNullableToJson(instance.messageType) + case final value?) + 'MessageType': value, }; -ScheduledTaskEndedMessage _$ScheduledTaskEndedMessageFromJson(Map json) => ScheduledTaskEndedMessage( - data: json['Data'] == null ? null : TaskResult.fromJson(json['Data'] as Map), +ScheduledTaskEndedMessage _$ScheduledTaskEndedMessageFromJson( + Map json) => + ScheduledTaskEndedMessage( + data: json['Data'] == null + ? null + : TaskResult.fromJson(json['Data'] as Map), messageId: json['MessageId'] as String?, - messageType: ScheduledTaskEndedMessage.sessionMessageTypeMessageTypeNullableFromJson(json['MessageType']), + messageType: ScheduledTaskEndedMessage + .sessionMessageTypeMessageTypeNullableFromJson(json['MessageType']), ); -Map _$ScheduledTaskEndedMessageToJson(ScheduledTaskEndedMessage instance) => { +Map _$ScheduledTaskEndedMessageToJson( + ScheduledTaskEndedMessage instance) => + { if (instance.data?.toJson() case final value?) 'Data': value, if (instance.messageId case final value?) 'MessageId': value, - if (sessionMessageTypeNullableToJson(instance.messageType) case final value?) 'MessageType': value, + if (sessionMessageTypeNullableToJson(instance.messageType) + case final value?) + 'MessageType': value, }; -ScheduledTasksInfoMessage _$ScheduledTasksInfoMessageFromJson(Map json) => ScheduledTasksInfoMessage( - data: (json['Data'] as List?)?.map((e) => TaskInfo.fromJson(e as Map)).toList() ?? [], +ScheduledTasksInfoMessage _$ScheduledTasksInfoMessageFromJson( + Map json) => + ScheduledTasksInfoMessage( + data: (json['Data'] as List?) + ?.map((e) => TaskInfo.fromJson(e as Map)) + .toList() ?? + [], messageId: json['MessageId'] as String?, - messageType: ScheduledTasksInfoMessage.sessionMessageTypeMessageTypeNullableFromJson(json['MessageType']), + messageType: ScheduledTasksInfoMessage + .sessionMessageTypeMessageTypeNullableFromJson(json['MessageType']), ); -Map _$ScheduledTasksInfoMessageToJson(ScheduledTasksInfoMessage instance) => { - if (instance.data?.map((e) => e.toJson()).toList() case final value?) 'Data': value, +Map _$ScheduledTasksInfoMessageToJson( + ScheduledTasksInfoMessage instance) => + { + if (instance.data?.map((e) => e.toJson()).toList() case final value?) + 'Data': value, if (instance.messageId case final value?) 'MessageId': value, - if (sessionMessageTypeNullableToJson(instance.messageType) case final value?) 'MessageType': value, + if (sessionMessageTypeNullableToJson(instance.messageType) + case final value?) + 'MessageType': value, }; -ScheduledTasksInfoStartMessage _$ScheduledTasksInfoStartMessageFromJson(Map json) => +ScheduledTasksInfoStartMessage _$ScheduledTasksInfoStartMessageFromJson( + Map json) => ScheduledTasksInfoStartMessage( data: json['Data'] as String?, - messageType: ScheduledTasksInfoStartMessage.sessionMessageTypeMessageTypeNullableFromJson(json['MessageType']), + messageType: ScheduledTasksInfoStartMessage + .sessionMessageTypeMessageTypeNullableFromJson(json['MessageType']), ); -Map _$ScheduledTasksInfoStartMessageToJson(ScheduledTasksInfoStartMessage instance) => +Map _$ScheduledTasksInfoStartMessageToJson( + ScheduledTasksInfoStartMessage instance) => { if (instance.data case final value?) 'Data': value, - if (sessionMessageTypeNullableToJson(instance.messageType) case final value?) 'MessageType': value, + if (sessionMessageTypeNullableToJson(instance.messageType) + case final value?) + 'MessageType': value, }; -ScheduledTasksInfoStopMessage _$ScheduledTasksInfoStopMessageFromJson(Map json) => +ScheduledTasksInfoStopMessage _$ScheduledTasksInfoStopMessageFromJson( + Map json) => ScheduledTasksInfoStopMessage( - messageType: ScheduledTasksInfoStopMessage.sessionMessageTypeMessageTypeNullableFromJson(json['MessageType']), + messageType: ScheduledTasksInfoStopMessage + .sessionMessageTypeMessageTypeNullableFromJson(json['MessageType']), ); -Map _$ScheduledTasksInfoStopMessageToJson(ScheduledTasksInfoStopMessage instance) => { - if (sessionMessageTypeNullableToJson(instance.messageType) case final value?) 'MessageType': value, +Map _$ScheduledTasksInfoStopMessageToJson( + ScheduledTasksInfoStopMessage instance) => + { + if (sessionMessageTypeNullableToJson(instance.messageType) + case final value?) + 'MessageType': value, }; SearchHint _$SearchHintFromJson(Map json) => SearchHint( @@ -3869,41 +5349,59 @@ SearchHint _$SearchHintFromJson(Map json) => SearchHint( type: baseItemKindNullableFromJson(json['Type']), isFolder: json['IsFolder'] as bool?, runTimeTicks: (json['RunTimeTicks'] as num?)?.toInt(), - mediaType: SearchHint.mediaTypeMediaTypeNullableFromJson(json['MediaType']), - startDate: json['StartDate'] == null ? null : DateTime.parse(json['StartDate'] as String), - endDate: json['EndDate'] == null ? null : DateTime.parse(json['EndDate'] as String), + mediaType: + SearchHint.mediaTypeMediaTypeNullableFromJson(json['MediaType']), + startDate: json['StartDate'] == null + ? null + : DateTime.parse(json['StartDate'] as String), + endDate: json['EndDate'] == null + ? null + : DateTime.parse(json['EndDate'] as String), series: json['Series'] as String?, status: json['Status'] as String?, album: json['Album'] as String?, albumId: json['AlbumId'] as String?, albumArtist: json['AlbumArtist'] as String?, - artists: (json['Artists'] as List?)?.map((e) => e as String).toList() ?? [], + artists: (json['Artists'] as List?) + ?.map((e) => e as String) + .toList() ?? + [], songCount: (json['SongCount'] as num?)?.toInt(), episodeCount: (json['EpisodeCount'] as num?)?.toInt(), channelId: json['ChannelId'] as String?, channelName: json['ChannelName'] as String?, - primaryImageAspectRatio: (json['PrimaryImageAspectRatio'] as num?)?.toDouble(), + primaryImageAspectRatio: + (json['PrimaryImageAspectRatio'] as num?)?.toDouble(), ); -Map _$SearchHintToJson(SearchHint instance) => { +Map _$SearchHintToJson(SearchHint instance) => + { if (instance.itemId case final value?) 'ItemId': value, if (instance.id case final value?) 'Id': value, if (instance.name case final value?) 'Name': value, if (instance.matchedTerm case final value?) 'MatchedTerm': value, if (instance.indexNumber case final value?) 'IndexNumber': value, if (instance.productionYear case final value?) 'ProductionYear': value, - if (instance.parentIndexNumber case final value?) 'ParentIndexNumber': value, + if (instance.parentIndexNumber case final value?) + 'ParentIndexNumber': value, if (instance.primaryImageTag case final value?) 'PrimaryImageTag': value, if (instance.thumbImageTag case final value?) 'ThumbImageTag': value, - if (instance.thumbImageItemId case final value?) 'ThumbImageItemId': value, - if (instance.backdropImageTag case final value?) 'BackdropImageTag': value, - if (instance.backdropImageItemId case final value?) 'BackdropImageItemId': value, - if (baseItemKindNullableToJson(instance.type) case final value?) 'Type': value, + if (instance.thumbImageItemId case final value?) + 'ThumbImageItemId': value, + if (instance.backdropImageTag case final value?) + 'BackdropImageTag': value, + if (instance.backdropImageItemId case final value?) + 'BackdropImageItemId': value, + if (baseItemKindNullableToJson(instance.type) case final value?) + 'Type': value, if (instance.isFolder case final value?) 'IsFolder': value, if (instance.runTimeTicks case final value?) 'RunTimeTicks': value, - if (mediaTypeNullableToJson(instance.mediaType) case final value?) 'MediaType': value, - if (instance.startDate?.toIso8601String() case final value?) 'StartDate': value, - if (instance.endDate?.toIso8601String() case final value?) 'EndDate': value, + if (mediaTypeNullableToJson(instance.mediaType) case final value?) + 'MediaType': value, + if (instance.startDate?.toIso8601String() case final value?) + 'StartDate': value, + if (instance.endDate?.toIso8601String() case final value?) + 'EndDate': value, if (instance.series case final value?) 'Series': value, if (instance.status case final value?) 'Status': value, if (instance.album case final value?) 'Album': value, @@ -3914,10 +5412,12 @@ Map _$SearchHintToJson(SearchHint instance) => json) => SearchHintResult( +SearchHintResult _$SearchHintResultFromJson(Map json) => + SearchHintResult( searchHints: (json['SearchHints'] as List?) ?.map((e) => SearchHint.fromJson(e as Map)) .toList() ?? @@ -3925,35 +5425,47 @@ SearchHintResult _$SearchHintResultFromJson(Map json) => Search totalRecordCount: (json['TotalRecordCount'] as num?)?.toInt(), ); -Map _$SearchHintResultToJson(SearchHintResult instance) => { - if (instance.searchHints?.map((e) => e.toJson()).toList() case final value?) 'SearchHints': value, - if (instance.totalRecordCount case final value?) 'TotalRecordCount': value, +Map _$SearchHintResultToJson(SearchHintResult instance) => + { + if (instance.searchHints?.map((e) => e.toJson()).toList() + case final value?) + 'SearchHints': value, + if (instance.totalRecordCount case final value?) + 'TotalRecordCount': value, }; -SeekRequestDto _$SeekRequestDtoFromJson(Map json) => SeekRequestDto( +SeekRequestDto _$SeekRequestDtoFromJson(Map json) => + SeekRequestDto( positionTicks: (json['PositionTicks'] as num?)?.toInt(), ); -Map _$SeekRequestDtoToJson(SeekRequestDto instance) => { +Map _$SeekRequestDtoToJson(SeekRequestDto instance) => + { if (instance.positionTicks case final value?) 'PositionTicks': value, }; SendCommand _$SendCommandFromJson(Map json) => SendCommand( groupId: json['GroupId'] as String?, playlistItemId: json['PlaylistItemId'] as String?, - when: json['When'] == null ? null : DateTime.parse(json['When'] as String), + when: + json['When'] == null ? null : DateTime.parse(json['When'] as String), positionTicks: (json['PositionTicks'] as num?)?.toInt(), command: sendCommandTypeNullableFromJson(json['Command']), - emittedAt: json['EmittedAt'] == null ? null : DateTime.parse(json['EmittedAt'] as String), + emittedAt: json['EmittedAt'] == null + ? null + : DateTime.parse(json['EmittedAt'] as String), ); -Map _$SendCommandToJson(SendCommand instance) => { +Map _$SendCommandToJson(SendCommand instance) => + { if (instance.groupId case final value?) 'GroupId': value, if (instance.playlistItemId case final value?) 'PlaylistItemId': value, if (instance.when?.toIso8601String() case final value?) 'When': value, if (instance.positionTicks case final value?) 'PositionTicks': value, - if (sendCommandTypeNullableToJson(instance.command) case final value?) 'Command': value, - if (instance.emittedAt?.toIso8601String() case final value?) 'EmittedAt': value, + if (sendCommandTypeNullableToJson(instance.command) case final value?) + 'Command': value, + if (instance.emittedAt?.toIso8601String() case final value?) + 'EmittedAt': value, }; SeriesInfo _$SeriesInfoFromJson(Map json) => SeriesInfo( @@ -3966,65 +5478,97 @@ SeriesInfo _$SeriesInfoFromJson(Map json) => SeriesInfo( year: (json['Year'] as num?)?.toInt(), indexNumber: (json['IndexNumber'] as num?)?.toInt(), parentIndexNumber: (json['ParentIndexNumber'] as num?)?.toInt(), - premiereDate: json['PremiereDate'] == null ? null : DateTime.parse(json['PremiereDate'] as String), + premiereDate: json['PremiereDate'] == null + ? null + : DateTime.parse(json['PremiereDate'] as String), isAutomated: json['IsAutomated'] as bool?, ); -Map _$SeriesInfoToJson(SeriesInfo instance) => { +Map _$SeriesInfoToJson(SeriesInfo instance) => + { if (instance.name case final value?) 'Name': value, if (instance.originalTitle case final value?) 'OriginalTitle': value, if (instance.path case final value?) 'Path': value, - if (instance.metadataLanguage case final value?) 'MetadataLanguage': value, - if (instance.metadataCountryCode case final value?) 'MetadataCountryCode': value, + if (instance.metadataLanguage case final value?) + 'MetadataLanguage': value, + if (instance.metadataCountryCode case final value?) + 'MetadataCountryCode': value, if (instance.providerIds case final value?) 'ProviderIds': value, if (instance.year case final value?) 'Year': value, if (instance.indexNumber case final value?) 'IndexNumber': value, - if (instance.parentIndexNumber case final value?) 'ParentIndexNumber': value, - if (instance.premiereDate?.toIso8601String() case final value?) 'PremiereDate': value, + if (instance.parentIndexNumber case final value?) + 'ParentIndexNumber': value, + if (instance.premiereDate?.toIso8601String() case final value?) + 'PremiereDate': value, if (instance.isAutomated case final value?) 'IsAutomated': value, }; -SeriesInfoRemoteSearchQuery _$SeriesInfoRemoteSearchQueryFromJson(Map json) => +SeriesInfoRemoteSearchQuery _$SeriesInfoRemoteSearchQueryFromJson( + Map json) => SeriesInfoRemoteSearchQuery( - searchInfo: json['SearchInfo'] == null ? null : SeriesInfo.fromJson(json['SearchInfo'] as Map), + searchInfo: json['SearchInfo'] == null + ? null + : SeriesInfo.fromJson(json['SearchInfo'] as Map), itemId: json['ItemId'] as String?, searchProviderName: json['SearchProviderName'] as String?, includeDisabledProviders: json['IncludeDisabledProviders'] as bool?, ); -Map _$SeriesInfoRemoteSearchQueryToJson(SeriesInfoRemoteSearchQuery instance) => { +Map _$SeriesInfoRemoteSearchQueryToJson( + SeriesInfoRemoteSearchQuery instance) => + { if (instance.searchInfo?.toJson() case final value?) 'SearchInfo': value, if (instance.itemId case final value?) 'ItemId': value, - if (instance.searchProviderName case final value?) 'SearchProviderName': value, - if (instance.includeDisabledProviders case final value?) 'IncludeDisabledProviders': value, + if (instance.searchProviderName case final value?) + 'SearchProviderName': value, + if (instance.includeDisabledProviders case final value?) + 'IncludeDisabledProviders': value, }; -SeriesTimerCancelledMessage _$SeriesTimerCancelledMessageFromJson(Map json) => +SeriesTimerCancelledMessage _$SeriesTimerCancelledMessageFromJson( + Map json) => SeriesTimerCancelledMessage( - data: json['Data'] == null ? null : TimerEventInfo.fromJson(json['Data'] as Map), + data: json['Data'] == null + ? null + : TimerEventInfo.fromJson(json['Data'] as Map), messageId: json['MessageId'] as String?, - messageType: SeriesTimerCancelledMessage.sessionMessageTypeMessageTypeNullableFromJson(json['MessageType']), + messageType: SeriesTimerCancelledMessage + .sessionMessageTypeMessageTypeNullableFromJson(json['MessageType']), ); -Map _$SeriesTimerCancelledMessageToJson(SeriesTimerCancelledMessage instance) => { +Map _$SeriesTimerCancelledMessageToJson( + SeriesTimerCancelledMessage instance) => + { if (instance.data?.toJson() case final value?) 'Data': value, if (instance.messageId case final value?) 'MessageId': value, - if (sessionMessageTypeNullableToJson(instance.messageType) case final value?) 'MessageType': value, + if (sessionMessageTypeNullableToJson(instance.messageType) + case final value?) + 'MessageType': value, }; -SeriesTimerCreatedMessage _$SeriesTimerCreatedMessageFromJson(Map json) => SeriesTimerCreatedMessage( - data: json['Data'] == null ? null : TimerEventInfo.fromJson(json['Data'] as Map), +SeriesTimerCreatedMessage _$SeriesTimerCreatedMessageFromJson( + Map json) => + SeriesTimerCreatedMessage( + data: json['Data'] == null + ? null + : TimerEventInfo.fromJson(json['Data'] as Map), messageId: json['MessageId'] as String?, - messageType: SeriesTimerCreatedMessage.sessionMessageTypeMessageTypeNullableFromJson(json['MessageType']), + messageType: SeriesTimerCreatedMessage + .sessionMessageTypeMessageTypeNullableFromJson(json['MessageType']), ); -Map _$SeriesTimerCreatedMessageToJson(SeriesTimerCreatedMessage instance) => { +Map _$SeriesTimerCreatedMessageToJson( + SeriesTimerCreatedMessage instance) => + { if (instance.data?.toJson() case final value?) 'Data': value, if (instance.messageId case final value?) 'MessageId': value, - if (sessionMessageTypeNullableToJson(instance.messageType) case final value?) 'MessageType': value, + if (sessionMessageTypeNullableToJson(instance.messageType) + case final value?) + 'MessageType': value, }; -SeriesTimerInfoDto _$SeriesTimerInfoDtoFromJson(Map json) => SeriesTimerInfoDto( +SeriesTimerInfoDto _$SeriesTimerInfoDtoFromJson(Map json) => + SeriesTimerInfoDto( id: json['Id'] as String?, type: json['Type'] as String?, serverId: json['ServerId'] as String?, @@ -4037,8 +5581,12 @@ SeriesTimerInfoDto _$SeriesTimerInfoDtoFromJson(Map json) => Se externalProgramId: json['ExternalProgramId'] as String?, name: json['Name'] as String?, overview: json['Overview'] as String?, - startDate: json['StartDate'] == null ? null : DateTime.parse(json['StartDate'] as String), - endDate: json['EndDate'] == null ? null : DateTime.parse(json['EndDate'] as String), + startDate: json['StartDate'] == null + ? null + : DateTime.parse(json['StartDate'] as String), + endDate: json['EndDate'] == null + ? null + : DateTime.parse(json['EndDate'] as String), serviceName: json['ServiceName'] as String?, priority: (json['Priority'] as num?)?.toInt(), prePaddingSeconds: (json['PrePaddingSeconds'] as num?)?.toInt(), @@ -4046,7 +5594,10 @@ SeriesTimerInfoDto _$SeriesTimerInfoDtoFromJson(Map json) => Se isPrePaddingRequired: json['IsPrePaddingRequired'] as bool?, parentBackdropItemId: json['ParentBackdropItemId'] as String?, parentBackdropImageTags: - (json['ParentBackdropImageTags'] as List?)?.map((e) => e as String).toList() ?? [], + (json['ParentBackdropImageTags'] as List?) + ?.map((e) => e as String) + .toList() ?? + [], isPostPaddingRequired: json['IsPostPaddingRequired'] as bool?, keepUntil: keepUntilNullableFromJson(json['KeepUntil']), recordAnyTime: json['RecordAnyTime'] as bool?, @@ -4063,93 +5614,135 @@ SeriesTimerInfoDto _$SeriesTimerInfoDtoFromJson(Map json) => Se parentPrimaryImageTag: json['ParentPrimaryImageTag'] as String?, ); -Map _$SeriesTimerInfoDtoToJson(SeriesTimerInfoDto instance) => { +Map _$SeriesTimerInfoDtoToJson(SeriesTimerInfoDto instance) => + { if (instance.id case final value?) 'Id': value, if (instance.type case final value?) 'Type': value, if (instance.serverId case final value?) 'ServerId': value, if (instance.externalId case final value?) 'ExternalId': value, if (instance.channelId case final value?) 'ChannelId': value, - if (instance.externalChannelId case final value?) 'ExternalChannelId': value, + if (instance.externalChannelId case final value?) + 'ExternalChannelId': value, if (instance.channelName case final value?) 'ChannelName': value, - if (instance.channelPrimaryImageTag case final value?) 'ChannelPrimaryImageTag': value, + if (instance.channelPrimaryImageTag case final value?) + 'ChannelPrimaryImageTag': value, if (instance.programId case final value?) 'ProgramId': value, - if (instance.externalProgramId case final value?) 'ExternalProgramId': value, + if (instance.externalProgramId case final value?) + 'ExternalProgramId': value, if (instance.name case final value?) 'Name': value, if (instance.overview case final value?) 'Overview': value, - if (instance.startDate?.toIso8601String() case final value?) 'StartDate': value, - if (instance.endDate?.toIso8601String() case final value?) 'EndDate': value, + if (instance.startDate?.toIso8601String() case final value?) + 'StartDate': value, + if (instance.endDate?.toIso8601String() case final value?) + 'EndDate': value, if (instance.serviceName case final value?) 'ServiceName': value, if (instance.priority case final value?) 'Priority': value, - if (instance.prePaddingSeconds case final value?) 'PrePaddingSeconds': value, - if (instance.postPaddingSeconds case final value?) 'PostPaddingSeconds': value, - if (instance.isPrePaddingRequired case final value?) 'IsPrePaddingRequired': value, - if (instance.parentBackdropItemId case final value?) 'ParentBackdropItemId': value, - if (instance.parentBackdropImageTags case final value?) 'ParentBackdropImageTags': value, - if (instance.isPostPaddingRequired case final value?) 'IsPostPaddingRequired': value, - if (keepUntilNullableToJson(instance.keepUntil) case final value?) 'KeepUntil': value, + if (instance.prePaddingSeconds case final value?) + 'PrePaddingSeconds': value, + if (instance.postPaddingSeconds case final value?) + 'PostPaddingSeconds': value, + if (instance.isPrePaddingRequired case final value?) + 'IsPrePaddingRequired': value, + if (instance.parentBackdropItemId case final value?) + 'ParentBackdropItemId': value, + if (instance.parentBackdropImageTags case final value?) + 'ParentBackdropImageTags': value, + if (instance.isPostPaddingRequired case final value?) + 'IsPostPaddingRequired': value, + if (keepUntilNullableToJson(instance.keepUntil) case final value?) + 'KeepUntil': value, if (instance.recordAnyTime case final value?) 'RecordAnyTime': value, - if (instance.skipEpisodesInLibrary case final value?) 'SkipEpisodesInLibrary': value, - if (instance.recordAnyChannel case final value?) 'RecordAnyChannel': value, + if (instance.skipEpisodesInLibrary case final value?) + 'SkipEpisodesInLibrary': value, + if (instance.recordAnyChannel case final value?) + 'RecordAnyChannel': value, if (instance.keepUpTo case final value?) 'KeepUpTo': value, if (instance.recordNewOnly case final value?) 'RecordNewOnly': value, 'Days': dayOfWeekListToJson(instance.days), - if (dayPatternNullableToJson(instance.dayPattern) case final value?) 'DayPattern': value, + if (dayPatternNullableToJson(instance.dayPattern) case final value?) + 'DayPattern': value, if (instance.imageTags case final value?) 'ImageTags': value, - if (instance.parentThumbItemId case final value?) 'ParentThumbItemId': value, - if (instance.parentThumbImageTag case final value?) 'ParentThumbImageTag': value, - if (instance.parentPrimaryImageItemId case final value?) 'ParentPrimaryImageItemId': value, - if (instance.parentPrimaryImageTag case final value?) 'ParentPrimaryImageTag': value, - }; - -SeriesTimerInfoDtoQueryResult _$SeriesTimerInfoDtoQueryResultFromJson(Map json) => + if (instance.parentThumbItemId case final value?) + 'ParentThumbItemId': value, + if (instance.parentThumbImageTag case final value?) + 'ParentThumbImageTag': value, + if (instance.parentPrimaryImageItemId case final value?) + 'ParentPrimaryImageItemId': value, + if (instance.parentPrimaryImageTag case final value?) + 'ParentPrimaryImageTag': value, + }; + +SeriesTimerInfoDtoQueryResult _$SeriesTimerInfoDtoQueryResultFromJson( + Map json) => SeriesTimerInfoDtoQueryResult( items: (json['Items'] as List?) - ?.map((e) => SeriesTimerInfoDto.fromJson(e as Map)) + ?.map( + (e) => SeriesTimerInfoDto.fromJson(e as Map)) .toList() ?? [], totalRecordCount: (json['TotalRecordCount'] as num?)?.toInt(), startIndex: (json['StartIndex'] as num?)?.toInt(), ); -Map _$SeriesTimerInfoDtoQueryResultToJson(SeriesTimerInfoDtoQueryResult instance) => { - if (instance.items?.map((e) => e.toJson()).toList() case final value?) 'Items': value, - if (instance.totalRecordCount case final value?) 'TotalRecordCount': value, +Map _$SeriesTimerInfoDtoQueryResultToJson( + SeriesTimerInfoDtoQueryResult instance) => + { + if (instance.items?.map((e) => e.toJson()).toList() case final value?) + 'Items': value, + if (instance.totalRecordCount case final value?) + 'TotalRecordCount': value, if (instance.startIndex case final value?) 'StartIndex': value, }; -ServerConfiguration _$ServerConfigurationFromJson(Map json) => ServerConfiguration( +ServerConfiguration _$ServerConfigurationFromJson(Map json) => + ServerConfiguration( logFileRetentionDays: (json['LogFileRetentionDays'] as num?)?.toInt(), isStartupWizardCompleted: json['IsStartupWizardCompleted'] as bool?, cachePath: json['CachePath'] as String?, previousVersion: json['PreviousVersion'] as String?, previousVersionStr: json['PreviousVersionStr'] as String?, enableMetrics: json['EnableMetrics'] as bool?, - enableNormalizedItemByNameIds: json['EnableNormalizedItemByNameIds'] as bool?, + enableNormalizedItemByNameIds: + json['EnableNormalizedItemByNameIds'] as bool?, isPortAuthorized: json['IsPortAuthorized'] as bool?, quickConnectAvailable: json['QuickConnectAvailable'] as bool?, enableCaseSensitiveItemIds: json['EnableCaseSensitiveItemIds'] as bool?, - disableLiveTvChannelUserDataName: json['DisableLiveTvChannelUserDataName'] as bool?, + disableLiveTvChannelUserDataName: + json['DisableLiveTvChannelUserDataName'] as bool?, metadataPath: json['MetadataPath'] as String?, preferredMetadataLanguage: json['PreferredMetadataLanguage'] as String?, metadataCountryCode: json['MetadataCountryCode'] as String?, - sortReplaceCharacters: (json['SortReplaceCharacters'] as List?)?.map((e) => e as String).toList() ?? [], - sortRemoveCharacters: (json['SortRemoveCharacters'] as List?)?.map((e) => e as String).toList() ?? [], - sortRemoveWords: (json['SortRemoveWords'] as List?)?.map((e) => e as String).toList() ?? [], + sortReplaceCharacters: (json['SortReplaceCharacters'] as List?) + ?.map((e) => e as String) + .toList() ?? + [], + sortRemoveCharacters: (json['SortRemoveCharacters'] as List?) + ?.map((e) => e as String) + .toList() ?? + [], + sortRemoveWords: (json['SortRemoveWords'] as List?) + ?.map((e) => e as String) + .toList() ?? + [], minResumePct: (json['MinResumePct'] as num?)?.toInt(), maxResumePct: (json['MaxResumePct'] as num?)?.toInt(), - minResumeDurationSeconds: (json['MinResumeDurationSeconds'] as num?)?.toInt(), + minResumeDurationSeconds: + (json['MinResumeDurationSeconds'] as num?)?.toInt(), minAudiobookResume: (json['MinAudiobookResume'] as num?)?.toInt(), maxAudiobookResume: (json['MaxAudiobookResume'] as num?)?.toInt(), - inactiveSessionThreshold: (json['InactiveSessionThreshold'] as num?)?.toInt(), + inactiveSessionThreshold: + (json['InactiveSessionThreshold'] as num?)?.toInt(), libraryMonitorDelay: (json['LibraryMonitorDelay'] as num?)?.toInt(), libraryUpdateDuration: (json['LibraryUpdateDuration'] as num?)?.toInt(), cacheSize: (json['CacheSize'] as num?)?.toInt(), - imageSavingConvention: imageSavingConventionNullableFromJson(json['ImageSavingConvention']), + imageSavingConvention: + imageSavingConventionNullableFromJson(json['ImageSavingConvention']), metadataOptions: (json['MetadataOptions'] as List?) ?.map((e) => MetadataOptions.fromJson(e as Map)) .toList() ?? [], - skipDeserializationForBasicTypes: json['SkipDeserializationForBasicTypes'] as bool?, + skipDeserializationForBasicTypes: + json['SkipDeserializationForBasicTypes'] as bool?, serverName: json['ServerName'] as String?, uICulture: json['UICulture'] as String?, saveMetadataHidden: json['SaveMetadataHidden'] as bool?, @@ -4157,168 +5750,272 @@ ServerConfiguration _$ServerConfigurationFromJson(Map json) => ?.map((e) => NameValuePair.fromJson(e as Map)) .toList() ?? [], - remoteClientBitrateLimit: (json['RemoteClientBitrateLimit'] as num?)?.toInt(), + remoteClientBitrateLimit: + (json['RemoteClientBitrateLimit'] as num?)?.toInt(), enableFolderView: json['EnableFolderView'] as bool?, - enableGroupingMoviesIntoCollections: json['EnableGroupingMoviesIntoCollections'] as bool?, - enableGroupingShowsIntoCollections: json['EnableGroupingShowsIntoCollections'] as bool?, - displaySpecialsWithinSeasons: json['DisplaySpecialsWithinSeasons'] as bool?, - codecsUsed: (json['CodecsUsed'] as List?)?.map((e) => e as String).toList() ?? [], + enableGroupingMoviesIntoCollections: + json['EnableGroupingMoviesIntoCollections'] as bool?, + enableGroupingShowsIntoCollections: + json['EnableGroupingShowsIntoCollections'] as bool?, + displaySpecialsWithinSeasons: + json['DisplaySpecialsWithinSeasons'] as bool?, + codecsUsed: (json['CodecsUsed'] as List?) + ?.map((e) => e as String) + .toList() ?? + [], pluginRepositories: (json['PluginRepositories'] as List?) ?.map((e) => RepositoryInfo.fromJson(e as Map)) .toList() ?? [], - enableExternalContentInSuggestions: json['EnableExternalContentInSuggestions'] as bool?, - imageExtractionTimeoutMs: (json['ImageExtractionTimeoutMs'] as num?)?.toInt(), + enableExternalContentInSuggestions: + json['EnableExternalContentInSuggestions'] as bool?, + imageExtractionTimeoutMs: + (json['ImageExtractionTimeoutMs'] as num?)?.toInt(), pathSubstitutions: (json['PathSubstitutions'] as List?) ?.map((e) => PathSubstitution.fromJson(e as Map)) .toList() ?? [], enableSlowResponseWarning: json['EnableSlowResponseWarning'] as bool?, - slowResponseThresholdMs: (json['SlowResponseThresholdMs'] as num?)?.toInt(), - corsHosts: (json['CorsHosts'] as List?)?.map((e) => e as String).toList() ?? [], - activityLogRetentionDays: (json['ActivityLogRetentionDays'] as num?)?.toInt(), - libraryScanFanoutConcurrency: (json['LibraryScanFanoutConcurrency'] as num?)?.toInt(), - libraryMetadataRefreshConcurrency: (json['LibraryMetadataRefreshConcurrency'] as num?)?.toInt(), + slowResponseThresholdMs: + (json['SlowResponseThresholdMs'] as num?)?.toInt(), + corsHosts: (json['CorsHosts'] as List?) + ?.map((e) => e as String) + .toList() ?? + [], + activityLogRetentionDays: + (json['ActivityLogRetentionDays'] as num?)?.toInt(), + libraryScanFanoutConcurrency: + (json['LibraryScanFanoutConcurrency'] as num?)?.toInt(), + libraryMetadataRefreshConcurrency: + (json['LibraryMetadataRefreshConcurrency'] as num?)?.toInt(), allowClientLogUpload: json['AllowClientLogUpload'] as bool?, dummyChapterDuration: (json['DummyChapterDuration'] as num?)?.toInt(), - chapterImageResolution: imageResolutionNullableFromJson(json['ChapterImageResolution']), - parallelImageEncodingLimit: (json['ParallelImageEncodingLimit'] as num?)?.toInt(), - castReceiverApplications: (json['CastReceiverApplications'] as List?) - ?.map((e) => CastReceiverApplication.fromJson(e as Map)) + chapterImageResolution: + imageResolutionNullableFromJson(json['ChapterImageResolution']), + parallelImageEncodingLimit: + (json['ParallelImageEncodingLimit'] as num?)?.toInt(), + castReceiverApplications: (json['CastReceiverApplications'] + as List?) + ?.map((e) => + CastReceiverApplication.fromJson(e as Map)) .toList() ?? [], trickplayOptions: json['TrickplayOptions'] == null ? null - : TrickplayOptions.fromJson(json['TrickplayOptions'] as Map), + : TrickplayOptions.fromJson( + json['TrickplayOptions'] as Map), enableLegacyAuthorization: json['EnableLegacyAuthorization'] as bool?, ); -Map _$ServerConfigurationToJson(ServerConfiguration instance) => { - if (instance.logFileRetentionDays case final value?) 'LogFileRetentionDays': value, - if (instance.isStartupWizardCompleted case final value?) 'IsStartupWizardCompleted': value, +Map _$ServerConfigurationToJson( + ServerConfiguration instance) => + { + if (instance.logFileRetentionDays case final value?) + 'LogFileRetentionDays': value, + if (instance.isStartupWizardCompleted case final value?) + 'IsStartupWizardCompleted': value, if (instance.cachePath case final value?) 'CachePath': value, if (instance.previousVersion case final value?) 'PreviousVersion': value, - if (instance.previousVersionStr case final value?) 'PreviousVersionStr': value, + if (instance.previousVersionStr case final value?) + 'PreviousVersionStr': value, if (instance.enableMetrics case final value?) 'EnableMetrics': value, - if (instance.enableNormalizedItemByNameIds case final value?) 'EnableNormalizedItemByNameIds': value, - if (instance.isPortAuthorized case final value?) 'IsPortAuthorized': value, - if (instance.quickConnectAvailable case final value?) 'QuickConnectAvailable': value, - if (instance.enableCaseSensitiveItemIds case final value?) 'EnableCaseSensitiveItemIds': value, - if (instance.disableLiveTvChannelUserDataName case final value?) 'DisableLiveTvChannelUserDataName': value, + if (instance.enableNormalizedItemByNameIds case final value?) + 'EnableNormalizedItemByNameIds': value, + if (instance.isPortAuthorized case final value?) + 'IsPortAuthorized': value, + if (instance.quickConnectAvailable case final value?) + 'QuickConnectAvailable': value, + if (instance.enableCaseSensitiveItemIds case final value?) + 'EnableCaseSensitiveItemIds': value, + if (instance.disableLiveTvChannelUserDataName case final value?) + 'DisableLiveTvChannelUserDataName': value, if (instance.metadataPath case final value?) 'MetadataPath': value, - if (instance.preferredMetadataLanguage case final value?) 'PreferredMetadataLanguage': value, - if (instance.metadataCountryCode case final value?) 'MetadataCountryCode': value, - if (instance.sortReplaceCharacters case final value?) 'SortReplaceCharacters': value, - if (instance.sortRemoveCharacters case final value?) 'SortRemoveCharacters': value, + if (instance.preferredMetadataLanguage case final value?) + 'PreferredMetadataLanguage': value, + if (instance.metadataCountryCode case final value?) + 'MetadataCountryCode': value, + if (instance.sortReplaceCharacters case final value?) + 'SortReplaceCharacters': value, + if (instance.sortRemoveCharacters case final value?) + 'SortRemoveCharacters': value, if (instance.sortRemoveWords case final value?) 'SortRemoveWords': value, if (instance.minResumePct case final value?) 'MinResumePct': value, if (instance.maxResumePct case final value?) 'MaxResumePct': value, - if (instance.minResumeDurationSeconds case final value?) 'MinResumeDurationSeconds': value, - if (instance.minAudiobookResume case final value?) 'MinAudiobookResume': value, - if (instance.maxAudiobookResume case final value?) 'MaxAudiobookResume': value, - if (instance.inactiveSessionThreshold case final value?) 'InactiveSessionThreshold': value, - if (instance.libraryMonitorDelay case final value?) 'LibraryMonitorDelay': value, - if (instance.libraryUpdateDuration case final value?) 'LibraryUpdateDuration': value, + if (instance.minResumeDurationSeconds case final value?) + 'MinResumeDurationSeconds': value, + if (instance.minAudiobookResume case final value?) + 'MinAudiobookResume': value, + if (instance.maxAudiobookResume case final value?) + 'MaxAudiobookResume': value, + if (instance.inactiveSessionThreshold case final value?) + 'InactiveSessionThreshold': value, + if (instance.libraryMonitorDelay case final value?) + 'LibraryMonitorDelay': value, + if (instance.libraryUpdateDuration case final value?) + 'LibraryUpdateDuration': value, if (instance.cacheSize case final value?) 'CacheSize': value, - if (imageSavingConventionNullableToJson(instance.imageSavingConvention) case final value?) + if (imageSavingConventionNullableToJson(instance.imageSavingConvention) + case final value?) 'ImageSavingConvention': value, - if (instance.metadataOptions?.map((e) => e.toJson()).toList() case final value?) 'MetadataOptions': value, - if (instance.skipDeserializationForBasicTypes case final value?) 'SkipDeserializationForBasicTypes': value, + if (instance.metadataOptions?.map((e) => e.toJson()).toList() + case final value?) + 'MetadataOptions': value, + if (instance.skipDeserializationForBasicTypes case final value?) + 'SkipDeserializationForBasicTypes': value, if (instance.serverName case final value?) 'ServerName': value, if (instance.uICulture case final value?) 'UICulture': value, - if (instance.saveMetadataHidden case final value?) 'SaveMetadataHidden': value, - if (instance.contentTypes?.map((e) => e.toJson()).toList() case final value?) 'ContentTypes': value, - if (instance.remoteClientBitrateLimit case final value?) 'RemoteClientBitrateLimit': value, - if (instance.enableFolderView case final value?) 'EnableFolderView': value, - if (instance.enableGroupingMoviesIntoCollections case final value?) 'EnableGroupingMoviesIntoCollections': value, - if (instance.enableGroupingShowsIntoCollections case final value?) 'EnableGroupingShowsIntoCollections': value, - if (instance.displaySpecialsWithinSeasons case final value?) 'DisplaySpecialsWithinSeasons': value, + if (instance.saveMetadataHidden case final value?) + 'SaveMetadataHidden': value, + if (instance.contentTypes?.map((e) => e.toJson()).toList() + case final value?) + 'ContentTypes': value, + if (instance.remoteClientBitrateLimit case final value?) + 'RemoteClientBitrateLimit': value, + if (instance.enableFolderView case final value?) + 'EnableFolderView': value, + if (instance.enableGroupingMoviesIntoCollections case final value?) + 'EnableGroupingMoviesIntoCollections': value, + if (instance.enableGroupingShowsIntoCollections case final value?) + 'EnableGroupingShowsIntoCollections': value, + if (instance.displaySpecialsWithinSeasons case final value?) + 'DisplaySpecialsWithinSeasons': value, if (instance.codecsUsed case final value?) 'CodecsUsed': value, - if (instance.pluginRepositories?.map((e) => e.toJson()).toList() case final value?) 'PluginRepositories': value, - if (instance.enableExternalContentInSuggestions case final value?) 'EnableExternalContentInSuggestions': value, - if (instance.imageExtractionTimeoutMs case final value?) 'ImageExtractionTimeoutMs': value, - if (instance.pathSubstitutions?.map((e) => e.toJson()).toList() case final value?) 'PathSubstitutions': value, - if (instance.enableSlowResponseWarning case final value?) 'EnableSlowResponseWarning': value, - if (instance.slowResponseThresholdMs case final value?) 'SlowResponseThresholdMs': value, + if (instance.pluginRepositories?.map((e) => e.toJson()).toList() + case final value?) + 'PluginRepositories': value, + if (instance.enableExternalContentInSuggestions case final value?) + 'EnableExternalContentInSuggestions': value, + if (instance.imageExtractionTimeoutMs case final value?) + 'ImageExtractionTimeoutMs': value, + if (instance.pathSubstitutions?.map((e) => e.toJson()).toList() + case final value?) + 'PathSubstitutions': value, + if (instance.enableSlowResponseWarning case final value?) + 'EnableSlowResponseWarning': value, + if (instance.slowResponseThresholdMs case final value?) + 'SlowResponseThresholdMs': value, if (instance.corsHosts case final value?) 'CorsHosts': value, - if (instance.activityLogRetentionDays case final value?) 'ActivityLogRetentionDays': value, - if (instance.libraryScanFanoutConcurrency case final value?) 'LibraryScanFanoutConcurrency': value, - if (instance.libraryMetadataRefreshConcurrency case final value?) 'LibraryMetadataRefreshConcurrency': value, - if (instance.allowClientLogUpload case final value?) 'AllowClientLogUpload': value, - if (instance.dummyChapterDuration case final value?) 'DummyChapterDuration': value, - if (imageResolutionNullableToJson(instance.chapterImageResolution) case final value?) + if (instance.activityLogRetentionDays case final value?) + 'ActivityLogRetentionDays': value, + if (instance.libraryScanFanoutConcurrency case final value?) + 'LibraryScanFanoutConcurrency': value, + if (instance.libraryMetadataRefreshConcurrency case final value?) + 'LibraryMetadataRefreshConcurrency': value, + if (instance.allowClientLogUpload case final value?) + 'AllowClientLogUpload': value, + if (instance.dummyChapterDuration case final value?) + 'DummyChapterDuration': value, + if (imageResolutionNullableToJson(instance.chapterImageResolution) + case final value?) 'ChapterImageResolution': value, - if (instance.parallelImageEncodingLimit case final value?) 'ParallelImageEncodingLimit': value, - if (instance.castReceiverApplications?.map((e) => e.toJson()).toList() case final value?) + if (instance.parallelImageEncodingLimit case final value?) + 'ParallelImageEncodingLimit': value, + if (instance.castReceiverApplications?.map((e) => e.toJson()).toList() + case final value?) 'CastReceiverApplications': value, - if (instance.trickplayOptions?.toJson() case final value?) 'TrickplayOptions': value, - if (instance.enableLegacyAuthorization case final value?) 'EnableLegacyAuthorization': value, + if (instance.trickplayOptions?.toJson() case final value?) + 'TrickplayOptions': value, + if (instance.enableLegacyAuthorization case final value?) + 'EnableLegacyAuthorization': value, }; -ServerDiscoveryInfo _$ServerDiscoveryInfoFromJson(Map json) => ServerDiscoveryInfo( +ServerDiscoveryInfo _$ServerDiscoveryInfoFromJson(Map json) => + ServerDiscoveryInfo( address: json['Address'] as String?, id: json['Id'] as String?, name: json['Name'] as String?, endpointAddress: json['EndpointAddress'] as String?, ); -Map _$ServerDiscoveryInfoToJson(ServerDiscoveryInfo instance) => { +Map _$ServerDiscoveryInfoToJson( + ServerDiscoveryInfo instance) => + { if (instance.address case final value?) 'Address': value, if (instance.id case final value?) 'Id': value, if (instance.name case final value?) 'Name': value, if (instance.endpointAddress case final value?) 'EndpointAddress': value, }; -ServerRestartingMessage _$ServerRestartingMessageFromJson(Map json) => ServerRestartingMessage( +ServerRestartingMessage _$ServerRestartingMessageFromJson( + Map json) => + ServerRestartingMessage( messageId: json['MessageId'] as String?, - messageType: ServerRestartingMessage.sessionMessageTypeMessageTypeNullableFromJson(json['MessageType']), + messageType: + ServerRestartingMessage.sessionMessageTypeMessageTypeNullableFromJson( + json['MessageType']), ); -Map _$ServerRestartingMessageToJson(ServerRestartingMessage instance) => { +Map _$ServerRestartingMessageToJson( + ServerRestartingMessage instance) => + { if (instance.messageId case final value?) 'MessageId': value, - if (sessionMessageTypeNullableToJson(instance.messageType) case final value?) 'MessageType': value, + if (sessionMessageTypeNullableToJson(instance.messageType) + case final value?) + 'MessageType': value, }; -ServerShuttingDownMessage _$ServerShuttingDownMessageFromJson(Map json) => ServerShuttingDownMessage( +ServerShuttingDownMessage _$ServerShuttingDownMessageFromJson( + Map json) => + ServerShuttingDownMessage( messageId: json['MessageId'] as String?, - messageType: ServerShuttingDownMessage.sessionMessageTypeMessageTypeNullableFromJson(json['MessageType']), + messageType: ServerShuttingDownMessage + .sessionMessageTypeMessageTypeNullableFromJson(json['MessageType']), ); -Map _$ServerShuttingDownMessageToJson(ServerShuttingDownMessage instance) => { +Map _$ServerShuttingDownMessageToJson( + ServerShuttingDownMessage instance) => + { if (instance.messageId case final value?) 'MessageId': value, - if (sessionMessageTypeNullableToJson(instance.messageType) case final value?) 'MessageType': value, + if (sessionMessageTypeNullableToJson(instance.messageType) + case final value?) + 'MessageType': value, }; -SessionInfoDto _$SessionInfoDtoFromJson(Map json) => SessionInfoDto( - playState: json['PlayState'] == null ? null : PlayerStateInfo.fromJson(json['PlayState'] as Map), +SessionInfoDto _$SessionInfoDtoFromJson(Map json) => + SessionInfoDto( + playState: json['PlayState'] == null + ? null + : PlayerStateInfo.fromJson(json['PlayState'] as Map), additionalUsers: (json['AdditionalUsers'] as List?) ?.map((e) => SessionUserInfo.fromJson(e as Map)) .toList() ?? [], capabilities: json['Capabilities'] == null ? null - : ClientCapabilitiesDto.fromJson(json['Capabilities'] as Map), + : ClientCapabilitiesDto.fromJson( + json['Capabilities'] as Map), remoteEndPoint: json['RemoteEndPoint'] as String?, - playableMediaTypes: mediaTypeListFromJson(json['PlayableMediaTypes'] as List?), + playableMediaTypes: + mediaTypeListFromJson(json['PlayableMediaTypes'] as List?), id: json['Id'] as String?, userId: json['UserId'] as String?, userName: json['UserName'] as String?, $Client: json['Client'] as String?, - lastActivityDate: json['LastActivityDate'] == null ? null : DateTime.parse(json['LastActivityDate'] as String), - lastPlaybackCheckIn: - json['LastPlaybackCheckIn'] == null ? null : DateTime.parse(json['LastPlaybackCheckIn'] as String), - lastPausedDate: json['LastPausedDate'] == null ? null : DateTime.parse(json['LastPausedDate'] as String), + lastActivityDate: json['LastActivityDate'] == null + ? null + : DateTime.parse(json['LastActivityDate'] as String), + lastPlaybackCheckIn: json['LastPlaybackCheckIn'] == null + ? null + : DateTime.parse(json['LastPlaybackCheckIn'] as String), + lastPausedDate: json['LastPausedDate'] == null + ? null + : DateTime.parse(json['LastPausedDate'] as String), deviceName: json['DeviceName'] as String?, deviceType: json['DeviceType'] as String?, - nowPlayingItem: - json['NowPlayingItem'] == null ? null : BaseItemDto.fromJson(json['NowPlayingItem'] as Map), - nowViewingItem: - json['NowViewingItem'] == null ? null : BaseItemDto.fromJson(json['NowViewingItem'] as Map), + nowPlayingItem: json['NowPlayingItem'] == null + ? null + : BaseItemDto.fromJson( + json['NowPlayingItem'] as Map), + nowViewingItem: json['NowViewingItem'] == null + ? null + : BaseItemDto.fromJson( + json['NowViewingItem'] as Map), deviceId: json['DeviceId'] as String?, applicationVersion: json['ApplicationVersion'] as String?, transcodingInfo: json['TranscodingInfo'] == null ? null - : TranscodingInfo.fromJson(json['TranscodingInfo'] as Map), + : TranscodingInfo.fromJson( + json['TranscodingInfo'] as Map), isActive: json['IsActive'] as bool?, supportsMediaControl: json['SupportsMediaControl'] as bool?, supportsRemoteControl: json['SupportsRemoteControl'] as bool?, @@ -4326,125 +6023,190 @@ SessionInfoDto _$SessionInfoDtoFromJson(Map json) => SessionInf ?.map((e) => QueueItem.fromJson(e as Map)) .toList() ?? [], - nowPlayingQueueFullItems: (json['NowPlayingQueueFullItems'] as List?) - ?.map((e) => BaseItemDto.fromJson(e as Map)) - .toList() ?? - [], + nowPlayingQueueFullItems: + (json['NowPlayingQueueFullItems'] as List?) + ?.map((e) => BaseItemDto.fromJson(e as Map)) + .toList() ?? + [], hasCustomDeviceName: json['HasCustomDeviceName'] as bool?, playlistItemId: json['PlaylistItemId'] as String?, serverId: json['ServerId'] as String?, userPrimaryImageTag: json['UserPrimaryImageTag'] as String?, - supportedCommands: generalCommandTypeListFromJson(json['SupportedCommands'] as List?), + supportedCommands: + generalCommandTypeListFromJson(json['SupportedCommands'] as List?), ); -Map _$SessionInfoDtoToJson(SessionInfoDto instance) => { +Map _$SessionInfoDtoToJson(SessionInfoDto instance) => + { if (instance.playState?.toJson() case final value?) 'PlayState': value, - if (instance.additionalUsers?.map((e) => e.toJson()).toList() case final value?) 'AdditionalUsers': value, - if (instance.capabilities?.toJson() case final value?) 'Capabilities': value, + if (instance.additionalUsers?.map((e) => e.toJson()).toList() + case final value?) + 'AdditionalUsers': value, + if (instance.capabilities?.toJson() case final value?) + 'Capabilities': value, if (instance.remoteEndPoint case final value?) 'RemoteEndPoint': value, 'PlayableMediaTypes': mediaTypeListToJson(instance.playableMediaTypes), if (instance.id case final value?) 'Id': value, if (instance.userId case final value?) 'UserId': value, if (instance.userName case final value?) 'UserName': value, if (instance.$Client case final value?) 'Client': value, - if (instance.lastActivityDate?.toIso8601String() case final value?) 'LastActivityDate': value, - if (instance.lastPlaybackCheckIn?.toIso8601String() case final value?) 'LastPlaybackCheckIn': value, - if (instance.lastPausedDate?.toIso8601String() case final value?) 'LastPausedDate': value, + if (instance.lastActivityDate?.toIso8601String() case final value?) + 'LastActivityDate': value, + if (instance.lastPlaybackCheckIn?.toIso8601String() case final value?) + 'LastPlaybackCheckIn': value, + if (instance.lastPausedDate?.toIso8601String() case final value?) + 'LastPausedDate': value, if (instance.deviceName case final value?) 'DeviceName': value, if (instance.deviceType case final value?) 'DeviceType': value, - if (instance.nowPlayingItem?.toJson() case final value?) 'NowPlayingItem': value, - if (instance.nowViewingItem?.toJson() case final value?) 'NowViewingItem': value, + if (instance.nowPlayingItem?.toJson() case final value?) + 'NowPlayingItem': value, + if (instance.nowViewingItem?.toJson() case final value?) + 'NowViewingItem': value, if (instance.deviceId case final value?) 'DeviceId': value, - if (instance.applicationVersion case final value?) 'ApplicationVersion': value, - if (instance.transcodingInfo?.toJson() case final value?) 'TranscodingInfo': value, + if (instance.applicationVersion case final value?) + 'ApplicationVersion': value, + if (instance.transcodingInfo?.toJson() case final value?) + 'TranscodingInfo': value, if (instance.isActive case final value?) 'IsActive': value, - if (instance.supportsMediaControl case final value?) 'SupportsMediaControl': value, - if (instance.supportsRemoteControl case final value?) 'SupportsRemoteControl': value, - if (instance.nowPlayingQueue?.map((e) => e.toJson()).toList() case final value?) 'NowPlayingQueue': value, - if (instance.nowPlayingQueueFullItems?.map((e) => e.toJson()).toList() case final value?) + if (instance.supportsMediaControl case final value?) + 'SupportsMediaControl': value, + if (instance.supportsRemoteControl case final value?) + 'SupportsRemoteControl': value, + if (instance.nowPlayingQueue?.map((e) => e.toJson()).toList() + case final value?) + 'NowPlayingQueue': value, + if (instance.nowPlayingQueueFullItems?.map((e) => e.toJson()).toList() + case final value?) 'NowPlayingQueueFullItems': value, - if (instance.hasCustomDeviceName case final value?) 'HasCustomDeviceName': value, + if (instance.hasCustomDeviceName case final value?) + 'HasCustomDeviceName': value, if (instance.playlistItemId case final value?) 'PlaylistItemId': value, if (instance.serverId case final value?) 'ServerId': value, - if (instance.userPrimaryImageTag case final value?) 'UserPrimaryImageTag': value, - 'SupportedCommands': generalCommandTypeListToJson(instance.supportedCommands), + if (instance.userPrimaryImageTag case final value?) + 'UserPrimaryImageTag': value, + 'SupportedCommands': + generalCommandTypeListToJson(instance.supportedCommands), }; -SessionsMessage _$SessionsMessageFromJson(Map json) => SessionsMessage( - data: (json['Data'] as List?)?.map((e) => SessionInfoDto.fromJson(e as Map)).toList() ?? +SessionsMessage _$SessionsMessageFromJson(Map json) => + SessionsMessage( + data: (json['Data'] as List?) + ?.map((e) => SessionInfoDto.fromJson(e as Map)) + .toList() ?? [], messageId: json['MessageId'] as String?, - messageType: SessionsMessage.sessionMessageTypeMessageTypeNullableFromJson(json['MessageType']), + messageType: + SessionsMessage.sessionMessageTypeMessageTypeNullableFromJson( + json['MessageType']), ); -Map _$SessionsMessageToJson(SessionsMessage instance) => { - if (instance.data?.map((e) => e.toJson()).toList() case final value?) 'Data': value, +Map _$SessionsMessageToJson(SessionsMessage instance) => + { + if (instance.data?.map((e) => e.toJson()).toList() case final value?) + 'Data': value, if (instance.messageId case final value?) 'MessageId': value, - if (sessionMessageTypeNullableToJson(instance.messageType) case final value?) 'MessageType': value, + if (sessionMessageTypeNullableToJson(instance.messageType) + case final value?) + 'MessageType': value, }; -SessionsStartMessage _$SessionsStartMessageFromJson(Map json) => SessionsStartMessage( +SessionsStartMessage _$SessionsStartMessageFromJson( + Map json) => + SessionsStartMessage( data: json['Data'] as String?, - messageType: SessionsStartMessage.sessionMessageTypeMessageTypeNullableFromJson(json['MessageType']), + messageType: + SessionsStartMessage.sessionMessageTypeMessageTypeNullableFromJson( + json['MessageType']), ); -Map _$SessionsStartMessageToJson(SessionsStartMessage instance) => { +Map _$SessionsStartMessageToJson( + SessionsStartMessage instance) => + { if (instance.data case final value?) 'Data': value, - if (sessionMessageTypeNullableToJson(instance.messageType) case final value?) 'MessageType': value, + if (sessionMessageTypeNullableToJson(instance.messageType) + case final value?) + 'MessageType': value, }; -SessionsStopMessage _$SessionsStopMessageFromJson(Map json) => SessionsStopMessage( - messageType: SessionsStopMessage.sessionMessageTypeMessageTypeNullableFromJson(json['MessageType']), +SessionsStopMessage _$SessionsStopMessageFromJson(Map json) => + SessionsStopMessage( + messageType: + SessionsStopMessage.sessionMessageTypeMessageTypeNullableFromJson( + json['MessageType']), ); -Map _$SessionsStopMessageToJson(SessionsStopMessage instance) => { - if (sessionMessageTypeNullableToJson(instance.messageType) case final value?) 'MessageType': value, +Map _$SessionsStopMessageToJson( + SessionsStopMessage instance) => + { + if (sessionMessageTypeNullableToJson(instance.messageType) + case final value?) + 'MessageType': value, }; -SessionUserInfo _$SessionUserInfoFromJson(Map json) => SessionUserInfo( +SessionUserInfo _$SessionUserInfoFromJson(Map json) => + SessionUserInfo( userId: json['UserId'] as String?, userName: json['UserName'] as String?, ); -Map _$SessionUserInfoToJson(SessionUserInfo instance) => { +Map _$SessionUserInfoToJson(SessionUserInfo instance) => + { if (instance.userId case final value?) 'UserId': value, if (instance.userName case final value?) 'UserName': value, }; -SetChannelMappingDto _$SetChannelMappingDtoFromJson(Map json) => SetChannelMappingDto( +SetChannelMappingDto _$SetChannelMappingDtoFromJson( + Map json) => + SetChannelMappingDto( providerId: json['ProviderId'] as String, tunerChannelId: json['TunerChannelId'] as String, providerChannelId: json['ProviderChannelId'] as String, ); -Map _$SetChannelMappingDtoToJson(SetChannelMappingDto instance) => { +Map _$SetChannelMappingDtoToJson( + SetChannelMappingDto instance) => + { 'ProviderId': instance.providerId, 'TunerChannelId': instance.tunerChannelId, 'ProviderChannelId': instance.providerChannelId, }; -SetPlaylistItemRequestDto _$SetPlaylistItemRequestDtoFromJson(Map json) => SetPlaylistItemRequestDto( +SetPlaylistItemRequestDto _$SetPlaylistItemRequestDtoFromJson( + Map json) => + SetPlaylistItemRequestDto( playlistItemId: json['PlaylistItemId'] as String?, ); -Map _$SetPlaylistItemRequestDtoToJson(SetPlaylistItemRequestDto instance) => { +Map _$SetPlaylistItemRequestDtoToJson( + SetPlaylistItemRequestDto instance) => + { if (instance.playlistItemId case final value?) 'PlaylistItemId': value, }; -SetRepeatModeRequestDto _$SetRepeatModeRequestDtoFromJson(Map json) => SetRepeatModeRequestDto( +SetRepeatModeRequestDto _$SetRepeatModeRequestDtoFromJson( + Map json) => + SetRepeatModeRequestDto( mode: groupRepeatModeNullableFromJson(json['Mode']), ); -Map _$SetRepeatModeRequestDtoToJson(SetRepeatModeRequestDto instance) => { - if (groupRepeatModeNullableToJson(instance.mode) case final value?) 'Mode': value, +Map _$SetRepeatModeRequestDtoToJson( + SetRepeatModeRequestDto instance) => + { + if (groupRepeatModeNullableToJson(instance.mode) case final value?) + 'Mode': value, }; -SetShuffleModeRequestDto _$SetShuffleModeRequestDtoFromJson(Map json) => SetShuffleModeRequestDto( +SetShuffleModeRequestDto _$SetShuffleModeRequestDtoFromJson( + Map json) => + SetShuffleModeRequestDto( mode: groupShuffleModeNullableFromJson(json['Mode']), ); -Map _$SetShuffleModeRequestDtoToJson(SetShuffleModeRequestDto instance) => { - if (groupShuffleModeNullableToJson(instance.mode) case final value?) 'Mode': value, +Map _$SetShuffleModeRequestDtoToJson( + SetShuffleModeRequestDto instance) => + { + if (groupShuffleModeNullableToJson(instance.mode) case final value?) + 'Mode': value, }; SongInfo _$SongInfoFromJson(Map json) => SongInfo( @@ -4457,78 +6219,111 @@ SongInfo _$SongInfoFromJson(Map json) => SongInfo( year: (json['Year'] as num?)?.toInt(), indexNumber: (json['IndexNumber'] as num?)?.toInt(), parentIndexNumber: (json['ParentIndexNumber'] as num?)?.toInt(), - premiereDate: json['PremiereDate'] == null ? null : DateTime.parse(json['PremiereDate'] as String), + premiereDate: json['PremiereDate'] == null + ? null + : DateTime.parse(json['PremiereDate'] as String), isAutomated: json['IsAutomated'] as bool?, - albumArtists: (json['AlbumArtists'] as List?)?.map((e) => e as String).toList() ?? [], + albumArtists: (json['AlbumArtists'] as List?) + ?.map((e) => e as String) + .toList() ?? + [], album: json['Album'] as String?, - artists: (json['Artists'] as List?)?.map((e) => e as String).toList() ?? [], + artists: (json['Artists'] as List?) + ?.map((e) => e as String) + .toList() ?? + [], ); Map _$SongInfoToJson(SongInfo instance) => { if (instance.name case final value?) 'Name': value, if (instance.originalTitle case final value?) 'OriginalTitle': value, if (instance.path case final value?) 'Path': value, - if (instance.metadataLanguage case final value?) 'MetadataLanguage': value, - if (instance.metadataCountryCode case final value?) 'MetadataCountryCode': value, + if (instance.metadataLanguage case final value?) + 'MetadataLanguage': value, + if (instance.metadataCountryCode case final value?) + 'MetadataCountryCode': value, if (instance.providerIds case final value?) 'ProviderIds': value, if (instance.year case final value?) 'Year': value, if (instance.indexNumber case final value?) 'IndexNumber': value, - if (instance.parentIndexNumber case final value?) 'ParentIndexNumber': value, - if (instance.premiereDate?.toIso8601String() case final value?) 'PremiereDate': value, + if (instance.parentIndexNumber case final value?) + 'ParentIndexNumber': value, + if (instance.premiereDate?.toIso8601String() case final value?) + 'PremiereDate': value, if (instance.isAutomated case final value?) 'IsAutomated': value, if (instance.albumArtists case final value?) 'AlbumArtists': value, if (instance.album case final value?) 'Album': value, if (instance.artists case final value?) 'Artists': value, }; -SpecialViewOptionDto _$SpecialViewOptionDtoFromJson(Map json) => SpecialViewOptionDto( +SpecialViewOptionDto _$SpecialViewOptionDtoFromJson( + Map json) => + SpecialViewOptionDto( name: json['Name'] as String?, id: json['Id'] as String?, ); -Map _$SpecialViewOptionDtoToJson(SpecialViewOptionDto instance) => { +Map _$SpecialViewOptionDtoToJson( + SpecialViewOptionDto instance) => + { if (instance.name case final value?) 'Name': value, if (instance.id case final value?) 'Id': value, }; -StartupConfigurationDto _$StartupConfigurationDtoFromJson(Map json) => StartupConfigurationDto( +StartupConfigurationDto _$StartupConfigurationDtoFromJson( + Map json) => + StartupConfigurationDto( serverName: json['ServerName'] as String?, uICulture: json['UICulture'] as String?, metadataCountryCode: json['MetadataCountryCode'] as String?, preferredMetadataLanguage: json['PreferredMetadataLanguage'] as String?, ); -Map _$StartupConfigurationDtoToJson(StartupConfigurationDto instance) => { +Map _$StartupConfigurationDtoToJson( + StartupConfigurationDto instance) => + { if (instance.serverName case final value?) 'ServerName': value, if (instance.uICulture case final value?) 'UICulture': value, - if (instance.metadataCountryCode case final value?) 'MetadataCountryCode': value, - if (instance.preferredMetadataLanguage case final value?) 'PreferredMetadataLanguage': value, + if (instance.metadataCountryCode case final value?) + 'MetadataCountryCode': value, + if (instance.preferredMetadataLanguage case final value?) + 'PreferredMetadataLanguage': value, }; -StartupRemoteAccessDto _$StartupRemoteAccessDtoFromJson(Map json) => StartupRemoteAccessDto( +StartupRemoteAccessDto _$StartupRemoteAccessDtoFromJson( + Map json) => + StartupRemoteAccessDto( enableRemoteAccess: json['EnableRemoteAccess'] as bool, enableAutomaticPortMapping: json['EnableAutomaticPortMapping'] as bool, ); -Map _$StartupRemoteAccessDtoToJson(StartupRemoteAccessDto instance) => { +Map _$StartupRemoteAccessDtoToJson( + StartupRemoteAccessDto instance) => + { 'EnableRemoteAccess': instance.enableRemoteAccess, 'EnableAutomaticPortMapping': instance.enableAutomaticPortMapping, }; -StartupUserDto _$StartupUserDtoFromJson(Map json) => StartupUserDto( +StartupUserDto _$StartupUserDtoFromJson(Map json) => + StartupUserDto( name: json['Name'] as String?, password: json['Password'] as String?, ); -Map _$StartupUserDtoToJson(StartupUserDto instance) => { +Map _$StartupUserDtoToJson(StartupUserDto instance) => + { if (instance.name case final value?) 'Name': value, if (instance.password case final value?) 'Password': value, }; -SubtitleOptions _$SubtitleOptionsFromJson(Map json) => SubtitleOptions( - skipIfEmbeddedSubtitlesPresent: json['SkipIfEmbeddedSubtitlesPresent'] as bool?, +SubtitleOptions _$SubtitleOptionsFromJson(Map json) => + SubtitleOptions( + skipIfEmbeddedSubtitlesPresent: + json['SkipIfEmbeddedSubtitlesPresent'] as bool?, skipIfAudioTrackMatches: json['SkipIfAudioTrackMatches'] as bool?, - downloadLanguages: (json['DownloadLanguages'] as List?)?.map((e) => e as String).toList() ?? [], + downloadLanguages: (json['DownloadLanguages'] as List?) + ?.map((e) => e as String) + .toList() ?? + [], downloadMovieSubtitles: json['DownloadMovieSubtitles'] as bool?, downloadEpisodeSubtitles: json['DownloadEpisodeSubtitles'] as bool?, openSubtitlesUsername: json['OpenSubtitlesUsername'] as String?, @@ -4537,19 +6332,30 @@ SubtitleOptions _$SubtitleOptionsFromJson(Map json) => Subtitle requirePerfectMatch: json['RequirePerfectMatch'] as bool?, ); -Map _$SubtitleOptionsToJson(SubtitleOptions instance) => { - if (instance.skipIfEmbeddedSubtitlesPresent case final value?) 'SkipIfEmbeddedSubtitlesPresent': value, - if (instance.skipIfAudioTrackMatches case final value?) 'SkipIfAudioTrackMatches': value, - if (instance.downloadLanguages case final value?) 'DownloadLanguages': value, - if (instance.downloadMovieSubtitles case final value?) 'DownloadMovieSubtitles': value, - if (instance.downloadEpisodeSubtitles case final value?) 'DownloadEpisodeSubtitles': value, - if (instance.openSubtitlesUsername case final value?) 'OpenSubtitlesUsername': value, - if (instance.openSubtitlesPasswordHash case final value?) 'OpenSubtitlesPasswordHash': value, - if (instance.isOpenSubtitleVipAccount case final value?) 'IsOpenSubtitleVipAccount': value, - if (instance.requirePerfectMatch case final value?) 'RequirePerfectMatch': value, - }; - -SubtitleProfile _$SubtitleProfileFromJson(Map json) => SubtitleProfile( +Map _$SubtitleOptionsToJson(SubtitleOptions instance) => + { + if (instance.skipIfEmbeddedSubtitlesPresent case final value?) + 'SkipIfEmbeddedSubtitlesPresent': value, + if (instance.skipIfAudioTrackMatches case final value?) + 'SkipIfAudioTrackMatches': value, + if (instance.downloadLanguages case final value?) + 'DownloadLanguages': value, + if (instance.downloadMovieSubtitles case final value?) + 'DownloadMovieSubtitles': value, + if (instance.downloadEpisodeSubtitles case final value?) + 'DownloadEpisodeSubtitles': value, + if (instance.openSubtitlesUsername case final value?) + 'OpenSubtitlesUsername': value, + if (instance.openSubtitlesPasswordHash case final value?) + 'OpenSubtitlesPasswordHash': value, + if (instance.isOpenSubtitleVipAccount case final value?) + 'IsOpenSubtitleVipAccount': value, + if (instance.requirePerfectMatch case final value?) + 'RequirePerfectMatch': value, + }; + +SubtitleProfile _$SubtitleProfileFromJson(Map json) => + SubtitleProfile( format: json['Format'] as String?, method: subtitleDeliveryMethodNullableFromJson(json['Method']), didlMode: json['DidlMode'] as String?, @@ -4557,159 +6363,238 @@ SubtitleProfile _$SubtitleProfileFromJson(Map json) => Subtitle container: json['Container'] as String?, ); -Map _$SubtitleProfileToJson(SubtitleProfile instance) => { +Map _$SubtitleProfileToJson(SubtitleProfile instance) => + { if (instance.format case final value?) 'Format': value, - if (subtitleDeliveryMethodNullableToJson(instance.method) case final value?) 'Method': value, + if (subtitleDeliveryMethodNullableToJson(instance.method) + case final value?) + 'Method': value, if (instance.didlMode case final value?) 'DidlMode': value, if (instance.language case final value?) 'Language': value, if (instance.container case final value?) 'Container': value, }; -SyncPlayCommandMessage _$SyncPlayCommandMessageFromJson(Map json) => SyncPlayCommandMessage( - data: json['Data'] == null ? null : SendCommand.fromJson(json['Data'] as Map), +SyncPlayCommandMessage _$SyncPlayCommandMessageFromJson( + Map json) => + SyncPlayCommandMessage( + data: json['Data'] == null + ? null + : SendCommand.fromJson(json['Data'] as Map), messageId: json['MessageId'] as String?, - messageType: SyncPlayCommandMessage.sessionMessageTypeMessageTypeNullableFromJson(json['MessageType']), + messageType: + SyncPlayCommandMessage.sessionMessageTypeMessageTypeNullableFromJson( + json['MessageType']), ); -Map _$SyncPlayCommandMessageToJson(SyncPlayCommandMessage instance) => { +Map _$SyncPlayCommandMessageToJson( + SyncPlayCommandMessage instance) => + { if (instance.data?.toJson() case final value?) 'Data': value, if (instance.messageId case final value?) 'MessageId': value, - if (sessionMessageTypeNullableToJson(instance.messageType) case final value?) 'MessageType': value, + if (sessionMessageTypeNullableToJson(instance.messageType) + case final value?) + 'MessageType': value, }; -SyncPlayGroupDoesNotExistUpdate _$SyncPlayGroupDoesNotExistUpdateFromJson(Map json) => +SyncPlayGroupDoesNotExistUpdate _$SyncPlayGroupDoesNotExistUpdateFromJson( + Map json) => SyncPlayGroupDoesNotExistUpdate( groupId: json['GroupId'] as String?, data: json['Data'] as String?, - type: SyncPlayGroupDoesNotExistUpdate.groupUpdateTypeTypeNullableFromJson(json['Type']), + type: SyncPlayGroupDoesNotExistUpdate.groupUpdateTypeTypeNullableFromJson( + json['Type']), ); -Map _$SyncPlayGroupDoesNotExistUpdateToJson(SyncPlayGroupDoesNotExistUpdate instance) => +Map _$SyncPlayGroupDoesNotExistUpdateToJson( + SyncPlayGroupDoesNotExistUpdate instance) => { if (instance.groupId case final value?) 'GroupId': value, if (instance.data case final value?) 'Data': value, - if (groupUpdateTypeNullableToJson(instance.type) case final value?) 'Type': value, + if (groupUpdateTypeNullableToJson(instance.type) case final value?) + 'Type': value, }; -SyncPlayGroupJoinedUpdate _$SyncPlayGroupJoinedUpdateFromJson(Map json) => SyncPlayGroupJoinedUpdate( +SyncPlayGroupJoinedUpdate _$SyncPlayGroupJoinedUpdateFromJson( + Map json) => + SyncPlayGroupJoinedUpdate( groupId: json['GroupId'] as String?, - data: json['Data'] == null ? null : GroupInfoDto.fromJson(json['Data'] as Map), - type: SyncPlayGroupJoinedUpdate.groupUpdateTypeTypeNullableFromJson(json['Type']), + data: json['Data'] == null + ? null + : GroupInfoDto.fromJson(json['Data'] as Map), + type: SyncPlayGroupJoinedUpdate.groupUpdateTypeTypeNullableFromJson( + json['Type']), ); -Map _$SyncPlayGroupJoinedUpdateToJson(SyncPlayGroupJoinedUpdate instance) => { +Map _$SyncPlayGroupJoinedUpdateToJson( + SyncPlayGroupJoinedUpdate instance) => + { if (instance.groupId case final value?) 'GroupId': value, if (instance.data?.toJson() case final value?) 'Data': value, - if (groupUpdateTypeNullableToJson(instance.type) case final value?) 'Type': value, + if (groupUpdateTypeNullableToJson(instance.type) case final value?) + 'Type': value, }; -SyncPlayGroupLeftUpdate _$SyncPlayGroupLeftUpdateFromJson(Map json) => SyncPlayGroupLeftUpdate( +SyncPlayGroupLeftUpdate _$SyncPlayGroupLeftUpdateFromJson( + Map json) => + SyncPlayGroupLeftUpdate( groupId: json['GroupId'] as String?, data: json['Data'] as String?, - type: SyncPlayGroupLeftUpdate.groupUpdateTypeTypeNullableFromJson(json['Type']), + type: SyncPlayGroupLeftUpdate.groupUpdateTypeTypeNullableFromJson( + json['Type']), ); -Map _$SyncPlayGroupLeftUpdateToJson(SyncPlayGroupLeftUpdate instance) => { +Map _$SyncPlayGroupLeftUpdateToJson( + SyncPlayGroupLeftUpdate instance) => + { if (instance.groupId case final value?) 'GroupId': value, if (instance.data case final value?) 'Data': value, - if (groupUpdateTypeNullableToJson(instance.type) case final value?) 'Type': value, + if (groupUpdateTypeNullableToJson(instance.type) case final value?) + 'Type': value, }; -SyncPlayGroupUpdateMessage _$SyncPlayGroupUpdateMessageFromJson(Map json) => +SyncPlayGroupUpdateMessage _$SyncPlayGroupUpdateMessageFromJson( + Map json) => SyncPlayGroupUpdateMessage( - data: json['Data'] == null ? null : GroupUpdate.fromJson(json['Data'] as Map), + data: json['Data'] == null + ? null + : GroupUpdate.fromJson(json['Data'] as Map), messageId: json['MessageId'] as String?, - messageType: SyncPlayGroupUpdateMessage.sessionMessageTypeMessageTypeNullableFromJson(json['MessageType']), + messageType: SyncPlayGroupUpdateMessage + .sessionMessageTypeMessageTypeNullableFromJson(json['MessageType']), ); -Map _$SyncPlayGroupUpdateMessageToJson(SyncPlayGroupUpdateMessage instance) => { +Map _$SyncPlayGroupUpdateMessageToJson( + SyncPlayGroupUpdateMessage instance) => + { if (instance.data?.toJson() case final value?) 'Data': value, if (instance.messageId case final value?) 'MessageId': value, - if (sessionMessageTypeNullableToJson(instance.messageType) case final value?) 'MessageType': value, + if (sessionMessageTypeNullableToJson(instance.messageType) + case final value?) + 'MessageType': value, }; -SyncPlayLibraryAccessDeniedUpdate _$SyncPlayLibraryAccessDeniedUpdateFromJson(Map json) => +SyncPlayLibraryAccessDeniedUpdate _$SyncPlayLibraryAccessDeniedUpdateFromJson( + Map json) => SyncPlayLibraryAccessDeniedUpdate( groupId: json['GroupId'] as String?, data: json['Data'] as String?, - type: SyncPlayLibraryAccessDeniedUpdate.groupUpdateTypeTypeNullableFromJson(json['Type']), + type: + SyncPlayLibraryAccessDeniedUpdate.groupUpdateTypeTypeNullableFromJson( + json['Type']), ); -Map _$SyncPlayLibraryAccessDeniedUpdateToJson(SyncPlayLibraryAccessDeniedUpdate instance) => +Map _$SyncPlayLibraryAccessDeniedUpdateToJson( + SyncPlayLibraryAccessDeniedUpdate instance) => { if (instance.groupId case final value?) 'GroupId': value, if (instance.data case final value?) 'Data': value, - if (groupUpdateTypeNullableToJson(instance.type) case final value?) 'Type': value, + if (groupUpdateTypeNullableToJson(instance.type) case final value?) + 'Type': value, }; -SyncPlayNotInGroupUpdate _$SyncPlayNotInGroupUpdateFromJson(Map json) => SyncPlayNotInGroupUpdate( +SyncPlayNotInGroupUpdate _$SyncPlayNotInGroupUpdateFromJson( + Map json) => + SyncPlayNotInGroupUpdate( groupId: json['GroupId'] as String?, data: json['Data'] as String?, - type: SyncPlayNotInGroupUpdate.groupUpdateTypeTypeNullableFromJson(json['Type']), + type: SyncPlayNotInGroupUpdate.groupUpdateTypeTypeNullableFromJson( + json['Type']), ); -Map _$SyncPlayNotInGroupUpdateToJson(SyncPlayNotInGroupUpdate instance) => { +Map _$SyncPlayNotInGroupUpdateToJson( + SyncPlayNotInGroupUpdate instance) => + { if (instance.groupId case final value?) 'GroupId': value, if (instance.data case final value?) 'Data': value, - if (groupUpdateTypeNullableToJson(instance.type) case final value?) 'Type': value, + if (groupUpdateTypeNullableToJson(instance.type) case final value?) + 'Type': value, }; -SyncPlayPlayQueueUpdate _$SyncPlayPlayQueueUpdateFromJson(Map json) => SyncPlayPlayQueueUpdate( +SyncPlayPlayQueueUpdate _$SyncPlayPlayQueueUpdateFromJson( + Map json) => + SyncPlayPlayQueueUpdate( groupId: json['GroupId'] as String?, - data: json['Data'] == null ? null : PlayQueueUpdate.fromJson(json['Data'] as Map), - type: SyncPlayPlayQueueUpdate.groupUpdateTypeTypeNullableFromJson(json['Type']), + data: json['Data'] == null + ? null + : PlayQueueUpdate.fromJson(json['Data'] as Map), + type: SyncPlayPlayQueueUpdate.groupUpdateTypeTypeNullableFromJson( + json['Type']), ); -Map _$SyncPlayPlayQueueUpdateToJson(SyncPlayPlayQueueUpdate instance) => { +Map _$SyncPlayPlayQueueUpdateToJson( + SyncPlayPlayQueueUpdate instance) => + { if (instance.groupId case final value?) 'GroupId': value, if (instance.data?.toJson() case final value?) 'Data': value, - if (groupUpdateTypeNullableToJson(instance.type) case final value?) 'Type': value, + if (groupUpdateTypeNullableToJson(instance.type) case final value?) + 'Type': value, }; -SyncPlayQueueItem _$SyncPlayQueueItemFromJson(Map json) => SyncPlayQueueItem( +SyncPlayQueueItem _$SyncPlayQueueItemFromJson(Map json) => + SyncPlayQueueItem( itemId: json['ItemId'] as String?, playlistItemId: json['PlaylistItemId'] as String?, ); -Map _$SyncPlayQueueItemToJson(SyncPlayQueueItem instance) => { +Map _$SyncPlayQueueItemToJson(SyncPlayQueueItem instance) => + { if (instance.itemId case final value?) 'ItemId': value, if (instance.playlistItemId case final value?) 'PlaylistItemId': value, }; -SyncPlayStateUpdate _$SyncPlayStateUpdateFromJson(Map json) => SyncPlayStateUpdate( +SyncPlayStateUpdate _$SyncPlayStateUpdateFromJson(Map json) => + SyncPlayStateUpdate( groupId: json['GroupId'] as String?, - data: json['Data'] == null ? null : GroupStateUpdate.fromJson(json['Data'] as Map), - type: SyncPlayStateUpdate.groupUpdateTypeTypeNullableFromJson(json['Type']), + data: json['Data'] == null + ? null + : GroupStateUpdate.fromJson(json['Data'] as Map), + type: + SyncPlayStateUpdate.groupUpdateTypeTypeNullableFromJson(json['Type']), ); -Map _$SyncPlayStateUpdateToJson(SyncPlayStateUpdate instance) => { +Map _$SyncPlayStateUpdateToJson( + SyncPlayStateUpdate instance) => + { if (instance.groupId case final value?) 'GroupId': value, if (instance.data?.toJson() case final value?) 'Data': value, - if (groupUpdateTypeNullableToJson(instance.type) case final value?) 'Type': value, + if (groupUpdateTypeNullableToJson(instance.type) case final value?) + 'Type': value, }; -SyncPlayUserJoinedUpdate _$SyncPlayUserJoinedUpdateFromJson(Map json) => SyncPlayUserJoinedUpdate( +SyncPlayUserJoinedUpdate _$SyncPlayUserJoinedUpdateFromJson( + Map json) => + SyncPlayUserJoinedUpdate( groupId: json['GroupId'] as String?, data: json['Data'] as String?, - type: SyncPlayUserJoinedUpdate.groupUpdateTypeTypeNullableFromJson(json['Type']), + type: SyncPlayUserJoinedUpdate.groupUpdateTypeTypeNullableFromJson( + json['Type']), ); -Map _$SyncPlayUserJoinedUpdateToJson(SyncPlayUserJoinedUpdate instance) => { +Map _$SyncPlayUserJoinedUpdateToJson( + SyncPlayUserJoinedUpdate instance) => + { if (instance.groupId case final value?) 'GroupId': value, if (instance.data case final value?) 'Data': value, - if (groupUpdateTypeNullableToJson(instance.type) case final value?) 'Type': value, + if (groupUpdateTypeNullableToJson(instance.type) case final value?) + 'Type': value, }; -SyncPlayUserLeftUpdate _$SyncPlayUserLeftUpdateFromJson(Map json) => SyncPlayUserLeftUpdate( +SyncPlayUserLeftUpdate _$SyncPlayUserLeftUpdateFromJson( + Map json) => + SyncPlayUserLeftUpdate( groupId: json['GroupId'] as String?, data: json['Data'] as String?, - type: SyncPlayUserLeftUpdate.groupUpdateTypeTypeNullableFromJson(json['Type']), + type: SyncPlayUserLeftUpdate.groupUpdateTypeTypeNullableFromJson( + json['Type']), ); -Map _$SyncPlayUserLeftUpdateToJson(SyncPlayUserLeftUpdate instance) => { +Map _$SyncPlayUserLeftUpdateToJson( + SyncPlayUserLeftUpdate instance) => + { if (instance.groupId case final value?) 'GroupId': value, if (instance.data case final value?) 'Data': value, - if (groupUpdateTypeNullableToJson(instance.type) case final value?) 'Type': value, + if (groupUpdateTypeNullableToJson(instance.type) case final value?) + 'Type': value, }; SystemInfo _$SystemInfoFromJson(Map json) => SystemInfo( @@ -4739,8 +6624,10 @@ SystemInfo _$SystemInfoFromJson(Map json) => SystemInfo( logPath: json['LogPath'] as String?, internalMetadataPath: json['InternalMetadataPath'] as String?, transcodingTempPath: json['TranscodingTempPath'] as String?, - castReceiverApplications: (json['CastReceiverApplications'] as List?) - ?.map((e) => CastReceiverApplication.fromJson(e as Map)) + castReceiverApplications: (json['CastReceiverApplications'] + as List?) + ?.map((e) => + CastReceiverApplication.fromJson(e as Map)) .toList() ?? [], hasUpdateAvailable: json['HasUpdateAvailable'] as bool? ?? false, @@ -4748,82 +6635,116 @@ SystemInfo _$SystemInfoFromJson(Map json) => SystemInfo( systemArchitecture: json['SystemArchitecture'] as String?, ); -Map _$SystemInfoToJson(SystemInfo instance) => { +Map _$SystemInfoToJson(SystemInfo instance) => + { if (instance.localAddress case final value?) 'LocalAddress': value, if (instance.serverName case final value?) 'ServerName': value, if (instance.version case final value?) 'Version': value, if (instance.productName case final value?) 'ProductName': value, if (instance.operatingSystem case final value?) 'OperatingSystem': value, if (instance.id case final value?) 'Id': value, - if (instance.startupWizardCompleted case final value?) 'StartupWizardCompleted': value, - if (instance.operatingSystemDisplayName case final value?) 'OperatingSystemDisplayName': value, + if (instance.startupWizardCompleted case final value?) + 'StartupWizardCompleted': value, + if (instance.operatingSystemDisplayName case final value?) + 'OperatingSystemDisplayName': value, if (instance.packageName case final value?) 'PackageName': value, - if (instance.hasPendingRestart case final value?) 'HasPendingRestart': value, + if (instance.hasPendingRestart case final value?) + 'HasPendingRestart': value, if (instance.isShuttingDown case final value?) 'IsShuttingDown': value, - if (instance.supportsLibraryMonitor case final value?) 'SupportsLibraryMonitor': value, - if (instance.webSocketPortNumber case final value?) 'WebSocketPortNumber': value, - if (instance.completedInstallations?.map((e) => e.toJson()).toList() case final value?) + if (instance.supportsLibraryMonitor case final value?) + 'SupportsLibraryMonitor': value, + if (instance.webSocketPortNumber case final value?) + 'WebSocketPortNumber': value, + if (instance.completedInstallations?.map((e) => e.toJson()).toList() + case final value?) 'CompletedInstallations': value, if (instance.canSelfRestart case final value?) 'CanSelfRestart': value, - if (instance.canLaunchWebBrowser case final value?) 'CanLaunchWebBrowser': value, + if (instance.canLaunchWebBrowser case final value?) + 'CanLaunchWebBrowser': value, if (instance.programDataPath case final value?) 'ProgramDataPath': value, if (instance.webPath case final value?) 'WebPath': value, if (instance.itemsByNamePath case final value?) 'ItemsByNamePath': value, if (instance.cachePath case final value?) 'CachePath': value, if (instance.logPath case final value?) 'LogPath': value, - if (instance.internalMetadataPath case final value?) 'InternalMetadataPath': value, - if (instance.transcodingTempPath case final value?) 'TranscodingTempPath': value, - if (instance.castReceiverApplications?.map((e) => e.toJson()).toList() case final value?) + if (instance.internalMetadataPath case final value?) + 'InternalMetadataPath': value, + if (instance.transcodingTempPath case final value?) + 'TranscodingTempPath': value, + if (instance.castReceiverApplications?.map((e) => e.toJson()).toList() + case final value?) 'CastReceiverApplications': value, - if (instance.hasUpdateAvailable case final value?) 'HasUpdateAvailable': value, + if (instance.hasUpdateAvailable case final value?) + 'HasUpdateAvailable': value, if (instance.encoderLocation case final value?) 'EncoderLocation': value, - if (instance.systemArchitecture case final value?) 'SystemArchitecture': value, + if (instance.systemArchitecture case final value?) + 'SystemArchitecture': value, }; -SystemStorageDto _$SystemStorageDtoFromJson(Map json) => SystemStorageDto( +SystemStorageDto _$SystemStorageDtoFromJson(Map json) => + SystemStorageDto( programDataFolder: json['ProgramDataFolder'] == null ? null - : FolderStorageDto.fromJson(json['ProgramDataFolder'] as Map), - webFolder: - json['WebFolder'] == null ? null : FolderStorageDto.fromJson(json['WebFolder'] as Map), + : FolderStorageDto.fromJson( + json['ProgramDataFolder'] as Map), + webFolder: json['WebFolder'] == null + ? null + : FolderStorageDto.fromJson( + json['WebFolder'] as Map), imageCacheFolder: json['ImageCacheFolder'] == null ? null - : FolderStorageDto.fromJson(json['ImageCacheFolder'] as Map), - cacheFolder: - json['CacheFolder'] == null ? null : FolderStorageDto.fromJson(json['CacheFolder'] as Map), - logFolder: - json['LogFolder'] == null ? null : FolderStorageDto.fromJson(json['LogFolder'] as Map), + : FolderStorageDto.fromJson( + json['ImageCacheFolder'] as Map), + cacheFolder: json['CacheFolder'] == null + ? null + : FolderStorageDto.fromJson( + json['CacheFolder'] as Map), + logFolder: json['LogFolder'] == null + ? null + : FolderStorageDto.fromJson( + json['LogFolder'] as Map), internalMetadataFolder: json['InternalMetadataFolder'] == null ? null - : FolderStorageDto.fromJson(json['InternalMetadataFolder'] as Map), + : FolderStorageDto.fromJson( + json['InternalMetadataFolder'] as Map), transcodingTempFolder: json['TranscodingTempFolder'] == null ? null - : FolderStorageDto.fromJson(json['TranscodingTempFolder'] as Map), + : FolderStorageDto.fromJson( + json['TranscodingTempFolder'] as Map), libraries: (json['Libraries'] as List?) - ?.map((e) => LibraryStorageDto.fromJson(e as Map)) + ?.map( + (e) => LibraryStorageDto.fromJson(e as Map)) .toList() ?? [], ); -Map _$SystemStorageDtoToJson(SystemStorageDto instance) => { - if (instance.programDataFolder?.toJson() case final value?) 'ProgramDataFolder': value, +Map _$SystemStorageDtoToJson(SystemStorageDto instance) => + { + if (instance.programDataFolder?.toJson() case final value?) + 'ProgramDataFolder': value, if (instance.webFolder?.toJson() case final value?) 'WebFolder': value, - if (instance.imageCacheFolder?.toJson() case final value?) 'ImageCacheFolder': value, - if (instance.cacheFolder?.toJson() case final value?) 'CacheFolder': value, + if (instance.imageCacheFolder?.toJson() case final value?) + 'ImageCacheFolder': value, + if (instance.cacheFolder?.toJson() case final value?) + 'CacheFolder': value, if (instance.logFolder?.toJson() case final value?) 'LogFolder': value, - if (instance.internalMetadataFolder?.toJson() case final value?) 'InternalMetadataFolder': value, - if (instance.transcodingTempFolder?.toJson() case final value?) 'TranscodingTempFolder': value, - if (instance.libraries?.map((e) => e.toJson()).toList() case final value?) 'Libraries': value, + if (instance.internalMetadataFolder?.toJson() case final value?) + 'InternalMetadataFolder': value, + if (instance.transcodingTempFolder?.toJson() case final value?) + 'TranscodingTempFolder': value, + if (instance.libraries?.map((e) => e.toJson()).toList() case final value?) + 'Libraries': value, }; TaskInfo _$TaskInfoFromJson(Map json) => TaskInfo( name: json['Name'] as String?, state: taskStateNullableFromJson(json['State']), - currentProgressPercentage: (json['CurrentProgressPercentage'] as num?)?.toDouble(), + currentProgressPercentage: + (json['CurrentProgressPercentage'] as num?)?.toDouble(), id: json['Id'] as String?, lastExecutionResult: json['LastExecutionResult'] == null ? null - : TaskResult.fromJson(json['LastExecutionResult'] as Map), + : TaskResult.fromJson( + json['LastExecutionResult'] as Map), triggers: (json['Triggers'] as List?) ?.map((e) => TaskTriggerInfo.fromJson(e as Map)) .toList() ?? @@ -4836,11 +6757,15 @@ TaskInfo _$TaskInfoFromJson(Map json) => TaskInfo( Map _$TaskInfoToJson(TaskInfo instance) => { if (instance.name case final value?) 'Name': value, - if (taskStateNullableToJson(instance.state) case final value?) 'State': value, - if (instance.currentProgressPercentage case final value?) 'CurrentProgressPercentage': value, + if (taskStateNullableToJson(instance.state) case final value?) + 'State': value, + if (instance.currentProgressPercentage case final value?) + 'CurrentProgressPercentage': value, if (instance.id case final value?) 'Id': value, - if (instance.lastExecutionResult?.toJson() case final value?) 'LastExecutionResult': value, - if (instance.triggers?.map((e) => e.toJson()).toList() case final value?) 'Triggers': value, + if (instance.lastExecutionResult?.toJson() case final value?) + 'LastExecutionResult': value, + if (instance.triggers?.map((e) => e.toJson()).toList() case final value?) + 'Triggers': value, if (instance.description case final value?) 'Description': value, if (instance.category case final value?) 'Category': value, if (instance.isHidden case final value?) 'IsHidden': value, @@ -4848,8 +6773,12 @@ Map _$TaskInfoToJson(TaskInfo instance) => { }; TaskResult _$TaskResultFromJson(Map json) => TaskResult( - startTimeUtc: json['StartTimeUtc'] == null ? null : DateTime.parse(json['StartTimeUtc'] as String), - endTimeUtc: json['EndTimeUtc'] == null ? null : DateTime.parse(json['EndTimeUtc'] as String), + startTimeUtc: json['StartTimeUtc'] == null + ? null + : DateTime.parse(json['StartTimeUtc'] as String), + endTimeUtc: json['EndTimeUtc'] == null + ? null + : DateTime.parse(json['EndTimeUtc'] as String), status: taskCompletionStatusNullableFromJson(json['Status']), name: json['Name'] as String?, key: json['Key'] as String?, @@ -4858,18 +6787,24 @@ TaskResult _$TaskResultFromJson(Map json) => TaskResult( longErrorMessage: json['LongErrorMessage'] as String?, ); -Map _$TaskResultToJson(TaskResult instance) => { - if (instance.startTimeUtc?.toIso8601String() case final value?) 'StartTimeUtc': value, - if (instance.endTimeUtc?.toIso8601String() case final value?) 'EndTimeUtc': value, - if (taskCompletionStatusNullableToJson(instance.status) case final value?) 'Status': value, +Map _$TaskResultToJson(TaskResult instance) => + { + if (instance.startTimeUtc?.toIso8601String() case final value?) + 'StartTimeUtc': value, + if (instance.endTimeUtc?.toIso8601String() case final value?) + 'EndTimeUtc': value, + if (taskCompletionStatusNullableToJson(instance.status) case final value?) + 'Status': value, if (instance.name case final value?) 'Name': value, if (instance.key case final value?) 'Key': value, if (instance.id case final value?) 'Id': value, if (instance.errorMessage case final value?) 'ErrorMessage': value, - if (instance.longErrorMessage case final value?) 'LongErrorMessage': value, + if (instance.longErrorMessage case final value?) + 'LongErrorMessage': value, }; -TaskTriggerInfo _$TaskTriggerInfoFromJson(Map json) => TaskTriggerInfo( +TaskTriggerInfo _$TaskTriggerInfoFromJson(Map json) => + TaskTriggerInfo( type: taskTriggerInfoTypeNullableFromJson(json['Type']), timeOfDayTicks: (json['TimeOfDayTicks'] as num?)?.toInt(), intervalTicks: (json['IntervalTicks'] as num?)?.toInt(), @@ -4877,59 +6812,89 @@ TaskTriggerInfo _$TaskTriggerInfoFromJson(Map json) => TaskTrig maxRuntimeTicks: (json['MaxRuntimeTicks'] as num?)?.toInt(), ); -Map _$TaskTriggerInfoToJson(TaskTriggerInfo instance) => { - if (taskTriggerInfoTypeNullableToJson(instance.type) case final value?) 'Type': value, +Map _$TaskTriggerInfoToJson(TaskTriggerInfo instance) => + { + if (taskTriggerInfoTypeNullableToJson(instance.type) case final value?) + 'Type': value, if (instance.timeOfDayTicks case final value?) 'TimeOfDayTicks': value, if (instance.intervalTicks case final value?) 'IntervalTicks': value, - if (dayOfWeekNullableToJson(instance.dayOfWeek) case final value?) 'DayOfWeek': value, + if (dayOfWeekNullableToJson(instance.dayOfWeek) case final value?) + 'DayOfWeek': value, if (instance.maxRuntimeTicks case final value?) 'MaxRuntimeTicks': value, }; -ThemeMediaResult _$ThemeMediaResultFromJson(Map json) => ThemeMediaResult( - items: - (json['Items'] as List?)?.map((e) => BaseItemDto.fromJson(e as Map)).toList() ?? [], +ThemeMediaResult _$ThemeMediaResultFromJson(Map json) => + ThemeMediaResult( + items: (json['Items'] as List?) + ?.map((e) => BaseItemDto.fromJson(e as Map)) + .toList() ?? + [], totalRecordCount: (json['TotalRecordCount'] as num?)?.toInt(), startIndex: (json['StartIndex'] as num?)?.toInt(), ownerId: json['OwnerId'] as String?, ); -Map _$ThemeMediaResultToJson(ThemeMediaResult instance) => { - if (instance.items?.map((e) => e.toJson()).toList() case final value?) 'Items': value, - if (instance.totalRecordCount case final value?) 'TotalRecordCount': value, +Map _$ThemeMediaResultToJson(ThemeMediaResult instance) => + { + if (instance.items?.map((e) => e.toJson()).toList() case final value?) + 'Items': value, + if (instance.totalRecordCount case final value?) + 'TotalRecordCount': value, if (instance.startIndex case final value?) 'StartIndex': value, if (instance.ownerId case final value?) 'OwnerId': value, }; -TimerCancelledMessage _$TimerCancelledMessageFromJson(Map json) => TimerCancelledMessage( - data: json['Data'] == null ? null : TimerEventInfo.fromJson(json['Data'] as Map), +TimerCancelledMessage _$TimerCancelledMessageFromJson( + Map json) => + TimerCancelledMessage( + data: json['Data'] == null + ? null + : TimerEventInfo.fromJson(json['Data'] as Map), messageId: json['MessageId'] as String?, - messageType: TimerCancelledMessage.sessionMessageTypeMessageTypeNullableFromJson(json['MessageType']), + messageType: + TimerCancelledMessage.sessionMessageTypeMessageTypeNullableFromJson( + json['MessageType']), ); -Map _$TimerCancelledMessageToJson(TimerCancelledMessage instance) => { +Map _$TimerCancelledMessageToJson( + TimerCancelledMessage instance) => + { if (instance.data?.toJson() case final value?) 'Data': value, if (instance.messageId case final value?) 'MessageId': value, - if (sessionMessageTypeNullableToJson(instance.messageType) case final value?) 'MessageType': value, + if (sessionMessageTypeNullableToJson(instance.messageType) + case final value?) + 'MessageType': value, }; -TimerCreatedMessage _$TimerCreatedMessageFromJson(Map json) => TimerCreatedMessage( - data: json['Data'] == null ? null : TimerEventInfo.fromJson(json['Data'] as Map), +TimerCreatedMessage _$TimerCreatedMessageFromJson(Map json) => + TimerCreatedMessage( + data: json['Data'] == null + ? null + : TimerEventInfo.fromJson(json['Data'] as Map), messageId: json['MessageId'] as String?, - messageType: TimerCreatedMessage.sessionMessageTypeMessageTypeNullableFromJson(json['MessageType']), + messageType: + TimerCreatedMessage.sessionMessageTypeMessageTypeNullableFromJson( + json['MessageType']), ); -Map _$TimerCreatedMessageToJson(TimerCreatedMessage instance) => { +Map _$TimerCreatedMessageToJson( + TimerCreatedMessage instance) => + { if (instance.data?.toJson() case final value?) 'Data': value, if (instance.messageId case final value?) 'MessageId': value, - if (sessionMessageTypeNullableToJson(instance.messageType) case final value?) 'MessageType': value, + if (sessionMessageTypeNullableToJson(instance.messageType) + case final value?) + 'MessageType': value, }; -TimerEventInfo _$TimerEventInfoFromJson(Map json) => TimerEventInfo( +TimerEventInfo _$TimerEventInfoFromJson(Map json) => + TimerEventInfo( id: json['Id'] as String?, programId: json['ProgramId'] as String?, ); -Map _$TimerEventInfoToJson(TimerEventInfo instance) => { +Map _$TimerEventInfoToJson(TimerEventInfo instance) => + { if (instance.id case final value?) 'Id': value, if (instance.programId case final value?) 'ProgramId': value, }; @@ -4947,8 +6912,12 @@ TimerInfoDto _$TimerInfoDtoFromJson(Map json) => TimerInfoDto( externalProgramId: json['ExternalProgramId'] as String?, name: json['Name'] as String?, overview: json['Overview'] as String?, - startDate: json['StartDate'] == null ? null : DateTime.parse(json['StartDate'] as String), - endDate: json['EndDate'] == null ? null : DateTime.parse(json['EndDate'] as String), + startDate: json['StartDate'] == null + ? null + : DateTime.parse(json['StartDate'] as String), + endDate: json['EndDate'] == null + ? null + : DateTime.parse(json['EndDate'] as String), serviceName: json['ServiceName'] as String?, priority: (json['Priority'] as num?)?.toInt(), prePaddingSeconds: (json['PrePaddingSeconds'] as num?)?.toInt(), @@ -4956,58 +6925,86 @@ TimerInfoDto _$TimerInfoDtoFromJson(Map json) => TimerInfoDto( isPrePaddingRequired: json['IsPrePaddingRequired'] as bool?, parentBackdropItemId: json['ParentBackdropItemId'] as String?, parentBackdropImageTags: - (json['ParentBackdropImageTags'] as List?)?.map((e) => e as String).toList() ?? [], + (json['ParentBackdropImageTags'] as List?) + ?.map((e) => e as String) + .toList() ?? + [], isPostPaddingRequired: json['IsPostPaddingRequired'] as bool?, keepUntil: keepUntilNullableFromJson(json['KeepUntil']), status: recordingStatusNullableFromJson(json['Status']), seriesTimerId: json['SeriesTimerId'] as String?, externalSeriesTimerId: json['ExternalSeriesTimerId'] as String?, runTimeTicks: (json['RunTimeTicks'] as num?)?.toInt(), - programInfo: - json['ProgramInfo'] == null ? null : BaseItemDto.fromJson(json['ProgramInfo'] as Map), + programInfo: json['ProgramInfo'] == null + ? null + : BaseItemDto.fromJson(json['ProgramInfo'] as Map), ); -Map _$TimerInfoDtoToJson(TimerInfoDto instance) => { +Map _$TimerInfoDtoToJson(TimerInfoDto instance) => + { if (instance.id case final value?) 'Id': value, if (instance.type case final value?) 'Type': value, if (instance.serverId case final value?) 'ServerId': value, if (instance.externalId case final value?) 'ExternalId': value, if (instance.channelId case final value?) 'ChannelId': value, - if (instance.externalChannelId case final value?) 'ExternalChannelId': value, + if (instance.externalChannelId case final value?) + 'ExternalChannelId': value, if (instance.channelName case final value?) 'ChannelName': value, - if (instance.channelPrimaryImageTag case final value?) 'ChannelPrimaryImageTag': value, + if (instance.channelPrimaryImageTag case final value?) + 'ChannelPrimaryImageTag': value, if (instance.programId case final value?) 'ProgramId': value, - if (instance.externalProgramId case final value?) 'ExternalProgramId': value, + if (instance.externalProgramId case final value?) + 'ExternalProgramId': value, if (instance.name case final value?) 'Name': value, if (instance.overview case final value?) 'Overview': value, - if (instance.startDate?.toIso8601String() case final value?) 'StartDate': value, - if (instance.endDate?.toIso8601String() case final value?) 'EndDate': value, + if (instance.startDate?.toIso8601String() case final value?) + 'StartDate': value, + if (instance.endDate?.toIso8601String() case final value?) + 'EndDate': value, if (instance.serviceName case final value?) 'ServiceName': value, if (instance.priority case final value?) 'Priority': value, - if (instance.prePaddingSeconds case final value?) 'PrePaddingSeconds': value, - if (instance.postPaddingSeconds case final value?) 'PostPaddingSeconds': value, - if (instance.isPrePaddingRequired case final value?) 'IsPrePaddingRequired': value, - if (instance.parentBackdropItemId case final value?) 'ParentBackdropItemId': value, - if (instance.parentBackdropImageTags case final value?) 'ParentBackdropImageTags': value, - if (instance.isPostPaddingRequired case final value?) 'IsPostPaddingRequired': value, - if (keepUntilNullableToJson(instance.keepUntil) case final value?) 'KeepUntil': value, - if (recordingStatusNullableToJson(instance.status) case final value?) 'Status': value, + if (instance.prePaddingSeconds case final value?) + 'PrePaddingSeconds': value, + if (instance.postPaddingSeconds case final value?) + 'PostPaddingSeconds': value, + if (instance.isPrePaddingRequired case final value?) + 'IsPrePaddingRequired': value, + if (instance.parentBackdropItemId case final value?) + 'ParentBackdropItemId': value, + if (instance.parentBackdropImageTags case final value?) + 'ParentBackdropImageTags': value, + if (instance.isPostPaddingRequired case final value?) + 'IsPostPaddingRequired': value, + if (keepUntilNullableToJson(instance.keepUntil) case final value?) + 'KeepUntil': value, + if (recordingStatusNullableToJson(instance.status) case final value?) + 'Status': value, if (instance.seriesTimerId case final value?) 'SeriesTimerId': value, - if (instance.externalSeriesTimerId case final value?) 'ExternalSeriesTimerId': value, + if (instance.externalSeriesTimerId case final value?) + 'ExternalSeriesTimerId': value, if (instance.runTimeTicks case final value?) 'RunTimeTicks': value, - if (instance.programInfo?.toJson() case final value?) 'ProgramInfo': value, + if (instance.programInfo?.toJson() case final value?) + 'ProgramInfo': value, }; -TimerInfoDtoQueryResult _$TimerInfoDtoQueryResultFromJson(Map json) => TimerInfoDtoQueryResult( - items: (json['Items'] as List?)?.map((e) => TimerInfoDto.fromJson(e as Map)).toList() ?? +TimerInfoDtoQueryResult _$TimerInfoDtoQueryResultFromJson( + Map json) => + TimerInfoDtoQueryResult( + items: (json['Items'] as List?) + ?.map((e) => TimerInfoDto.fromJson(e as Map)) + .toList() ?? [], totalRecordCount: (json['TotalRecordCount'] as num?)?.toInt(), startIndex: (json['StartIndex'] as num?)?.toInt(), ); -Map _$TimerInfoDtoQueryResultToJson(TimerInfoDtoQueryResult instance) => { - if (instance.items?.map((e) => e.toJson()).toList() case final value?) 'Items': value, - if (instance.totalRecordCount case final value?) 'TotalRecordCount': value, +Map _$TimerInfoDtoQueryResultToJson( + TimerInfoDtoQueryResult instance) => + { + if (instance.items?.map((e) => e.toJson()).toList() case final value?) + 'Items': value, + if (instance.totalRecordCount case final value?) + 'TotalRecordCount': value, if (instance.startIndex case final value?) 'StartIndex': value, }; @@ -5021,40 +7018,55 @@ TrailerInfo _$TrailerInfoFromJson(Map json) => TrailerInfo( year: (json['Year'] as num?)?.toInt(), indexNumber: (json['IndexNumber'] as num?)?.toInt(), parentIndexNumber: (json['ParentIndexNumber'] as num?)?.toInt(), - premiereDate: json['PremiereDate'] == null ? null : DateTime.parse(json['PremiereDate'] as String), + premiereDate: json['PremiereDate'] == null + ? null + : DateTime.parse(json['PremiereDate'] as String), isAutomated: json['IsAutomated'] as bool?, ); -Map _$TrailerInfoToJson(TrailerInfo instance) => { +Map _$TrailerInfoToJson(TrailerInfo instance) => + { if (instance.name case final value?) 'Name': value, if (instance.originalTitle case final value?) 'OriginalTitle': value, if (instance.path case final value?) 'Path': value, - if (instance.metadataLanguage case final value?) 'MetadataLanguage': value, - if (instance.metadataCountryCode case final value?) 'MetadataCountryCode': value, + if (instance.metadataLanguage case final value?) + 'MetadataLanguage': value, + if (instance.metadataCountryCode case final value?) + 'MetadataCountryCode': value, if (instance.providerIds case final value?) 'ProviderIds': value, if (instance.year case final value?) 'Year': value, if (instance.indexNumber case final value?) 'IndexNumber': value, - if (instance.parentIndexNumber case final value?) 'ParentIndexNumber': value, - if (instance.premiereDate?.toIso8601String() case final value?) 'PremiereDate': value, + if (instance.parentIndexNumber case final value?) + 'ParentIndexNumber': value, + if (instance.premiereDate?.toIso8601String() case final value?) + 'PremiereDate': value, if (instance.isAutomated case final value?) 'IsAutomated': value, }; -TrailerInfoRemoteSearchQuery _$TrailerInfoRemoteSearchQueryFromJson(Map json) => +TrailerInfoRemoteSearchQuery _$TrailerInfoRemoteSearchQueryFromJson( + Map json) => TrailerInfoRemoteSearchQuery( - searchInfo: json['SearchInfo'] == null ? null : TrailerInfo.fromJson(json['SearchInfo'] as Map), + searchInfo: json['SearchInfo'] == null + ? null + : TrailerInfo.fromJson(json['SearchInfo'] as Map), itemId: json['ItemId'] as String?, searchProviderName: json['SearchProviderName'] as String?, includeDisabledProviders: json['IncludeDisabledProviders'] as bool?, ); -Map _$TrailerInfoRemoteSearchQueryToJson(TrailerInfoRemoteSearchQuery instance) => { +Map _$TrailerInfoRemoteSearchQueryToJson( + TrailerInfoRemoteSearchQuery instance) => + { if (instance.searchInfo?.toJson() case final value?) 'SearchInfo': value, if (instance.itemId case final value?) 'ItemId': value, - if (instance.searchProviderName case final value?) 'SearchProviderName': value, - if (instance.includeDisabledProviders case final value?) 'IncludeDisabledProviders': value, + if (instance.searchProviderName case final value?) + 'SearchProviderName': value, + if (instance.includeDisabledProviders case final value?) + 'IncludeDisabledProviders': value, }; -TranscodingInfo _$TranscodingInfoFromJson(Map json) => TranscodingInfo( +TranscodingInfo _$TranscodingInfoFromJson(Map json) => + TranscodingInfo( audioCodec: json['AudioCodec'] as String?, videoCodec: json['VideoCodec'] as String?, container: json['Container'] as String?, @@ -5066,11 +7078,14 @@ TranscodingInfo _$TranscodingInfoFromJson(Map json) => Transcod width: (json['Width'] as num?)?.toInt(), height: (json['Height'] as num?)?.toInt(), audioChannels: (json['AudioChannels'] as num?)?.toInt(), - hardwareAccelerationType: hardwareAccelerationTypeNullableFromJson(json['HardwareAccelerationType']), - transcodeReasons: transcodeReasonListFromJson(json['TranscodeReasons'] as List?), + hardwareAccelerationType: hardwareAccelerationTypeNullableFromJson( + json['HardwareAccelerationType']), + transcodeReasons: + transcodeReasonListFromJson(json['TranscodeReasons'] as List?), ); -Map _$TranscodingInfoToJson(TranscodingInfo instance) => { +Map _$TranscodingInfoToJson(TranscodingInfo instance) => + { if (instance.audioCodec case final value?) 'AudioCodec': value, if (instance.videoCodec case final value?) 'VideoCodec': value, if (instance.container case final value?) 'Container': value, @@ -5078,16 +7093,20 @@ Map _$TranscodingInfoToJson(TranscodingInfo instance) => json) => TranscodingProfile( +TranscodingProfile _$TranscodingProfileFromJson(Map json) => + TranscodingProfile( container: json['Container'] as String?, type: dlnaProfileTypeNullableFromJson(json['Type']), videoCodec: json['VideoCodec'] as String?, @@ -5096,10 +7115,13 @@ TranscodingProfile _$TranscodingProfileFromJson(Map json) => Tr estimateContentLength: json['EstimateContentLength'] as bool? ?? false, enableMpegtsM2TsMode: json['EnableMpegtsM2TsMode'] as bool? ?? false, transcodeSeekInfo: - TranscodingProfile.transcodeSeekInfoTranscodeSeekInfoNullableFromJson(json['TranscodeSeekInfo']), + TranscodingProfile.transcodeSeekInfoTranscodeSeekInfoNullableFromJson( + json['TranscodeSeekInfo']), copyTimestamps: json['CopyTimestamps'] as bool? ?? false, - context: TranscodingProfile.encodingContextContextNullableFromJson(json['Context']), - enableSubtitlesInManifest: json['EnableSubtitlesInManifest'] as bool? ?? false, + context: TranscodingProfile.encodingContextContextNullableFromJson( + json['Context']), + enableSubtitlesInManifest: + json['EnableSubtitlesInManifest'] as bool? ?? false, maxAudioChannels: json['MaxAudioChannels'] as String?, minSegments: (json['MinSegments'] as num?)?.toInt(), segmentLength: (json['SegmentLength'] as num?)?.toInt(), @@ -5111,27 +7133,43 @@ TranscodingProfile _$TranscodingProfileFromJson(Map json) => Tr enableAudioVbrEncoding: json['EnableAudioVbrEncoding'] as bool? ?? true, ); -Map _$TranscodingProfileToJson(TranscodingProfile instance) => { +Map _$TranscodingProfileToJson(TranscodingProfile instance) => + { if (instance.container case final value?) 'Container': value, - if (dlnaProfileTypeNullableToJson(instance.type) case final value?) 'Type': value, + if (dlnaProfileTypeNullableToJson(instance.type) case final value?) + 'Type': value, if (instance.videoCodec case final value?) 'VideoCodec': value, if (instance.audioCodec case final value?) 'AudioCodec': value, - if (mediaStreamProtocolNullableToJson(instance.protocol) case final value?) 'Protocol': value, - if (instance.estimateContentLength case final value?) 'EstimateContentLength': value, - if (instance.enableMpegtsM2TsMode case final value?) 'EnableMpegtsM2TsMode': value, - if (transcodeSeekInfoNullableToJson(instance.transcodeSeekInfo) case final value?) 'TranscodeSeekInfo': value, + if (mediaStreamProtocolNullableToJson(instance.protocol) + case final value?) + 'Protocol': value, + if (instance.estimateContentLength case final value?) + 'EstimateContentLength': value, + if (instance.enableMpegtsM2TsMode case final value?) + 'EnableMpegtsM2TsMode': value, + if (transcodeSeekInfoNullableToJson(instance.transcodeSeekInfo) + case final value?) + 'TranscodeSeekInfo': value, if (instance.copyTimestamps case final value?) 'CopyTimestamps': value, - if (encodingContextNullableToJson(instance.context) case final value?) 'Context': value, - if (instance.enableSubtitlesInManifest case final value?) 'EnableSubtitlesInManifest': value, - if (instance.maxAudioChannels case final value?) 'MaxAudioChannels': value, + if (encodingContextNullableToJson(instance.context) case final value?) + 'Context': value, + if (instance.enableSubtitlesInManifest case final value?) + 'EnableSubtitlesInManifest': value, + if (instance.maxAudioChannels case final value?) + 'MaxAudioChannels': value, if (instance.minSegments case final value?) 'MinSegments': value, if (instance.segmentLength case final value?) 'SegmentLength': value, - if (instance.breakOnNonKeyFrames case final value?) 'BreakOnNonKeyFrames': value, - if (instance.conditions?.map((e) => e.toJson()).toList() case final value?) 'Conditions': value, - if (instance.enableAudioVbrEncoding case final value?) 'EnableAudioVbrEncoding': value, + if (instance.breakOnNonKeyFrames case final value?) + 'BreakOnNonKeyFrames': value, + if (instance.conditions?.map((e) => e.toJson()).toList() + case final value?) + 'Conditions': value, + if (instance.enableAudioVbrEncoding case final value?) + 'EnableAudioVbrEncoding': value, }; -TrickplayInfoDto _$TrickplayInfoDtoFromJson(Map json) => TrickplayInfoDto( +TrickplayInfoDto _$TrickplayInfoDtoFromJson(Map json) => + TrickplayInfoDto( width: (json['Width'] as num?)?.toInt(), height: (json['Height'] as num?)?.toInt(), tileWidth: (json['TileWidth'] as num?)?.toInt(), @@ -5141,7 +7179,8 @@ TrickplayInfoDto _$TrickplayInfoDtoFromJson(Map json) => Trickp bandwidth: (json['Bandwidth'] as num?)?.toInt(), ); -Map _$TrickplayInfoDtoToJson(TrickplayInfoDto instance) => { +Map _$TrickplayInfoDtoToJson(TrickplayInfoDto instance) => + { if (instance.width case final value?) 'Width': value, if (instance.height case final value?) 'Height': value, if (instance.tileWidth case final value?) 'TileWidth': value, @@ -5151,14 +7190,20 @@ Map _$TrickplayInfoDtoToJson(TrickplayInfoDto instance) => json) => TrickplayOptions( +TrickplayOptions _$TrickplayOptionsFromJson(Map json) => + TrickplayOptions( enableHwAcceleration: json['EnableHwAcceleration'] as bool?, enableHwEncoding: json['EnableHwEncoding'] as bool?, - enableKeyFrameOnlyExtraction: json['EnableKeyFrameOnlyExtraction'] as bool?, + enableKeyFrameOnlyExtraction: + json['EnableKeyFrameOnlyExtraction'] as bool?, scanBehavior: trickplayScanBehaviorNullableFromJson(json['ScanBehavior']), - processPriority: processPriorityClassNullableFromJson(json['ProcessPriority']), + processPriority: + processPriorityClassNullableFromJson(json['ProcessPriority']), interval: (json['Interval'] as num?)?.toInt(), - widthResolutions: (json['WidthResolutions'] as List?)?.map((e) => (e as num).toInt()).toList() ?? [], + widthResolutions: (json['WidthResolutions'] as List?) + ?.map((e) => (e as num).toInt()) + .toList() ?? + [], tileWidth: (json['TileWidth'] as num?)?.toInt(), tileHeight: (json['TileHeight'] as num?)?.toInt(), qscale: (json['Qscale'] as num?)?.toInt(), @@ -5166,14 +7211,23 @@ TrickplayOptions _$TrickplayOptionsFromJson(Map json) => Trickp processThreads: (json['ProcessThreads'] as num?)?.toInt(), ); -Map _$TrickplayOptionsToJson(TrickplayOptions instance) => { - if (instance.enableHwAcceleration case final value?) 'EnableHwAcceleration': value, - if (instance.enableHwEncoding case final value?) 'EnableHwEncoding': value, - if (instance.enableKeyFrameOnlyExtraction case final value?) 'EnableKeyFrameOnlyExtraction': value, - if (trickplayScanBehaviorNullableToJson(instance.scanBehavior) case final value?) 'ScanBehavior': value, - if (processPriorityClassNullableToJson(instance.processPriority) case final value?) 'ProcessPriority': value, +Map _$TrickplayOptionsToJson(TrickplayOptions instance) => + { + if (instance.enableHwAcceleration case final value?) + 'EnableHwAcceleration': value, + if (instance.enableHwEncoding case final value?) + 'EnableHwEncoding': value, + if (instance.enableKeyFrameOnlyExtraction case final value?) + 'EnableKeyFrameOnlyExtraction': value, + if (trickplayScanBehaviorNullableToJson(instance.scanBehavior) + case final value?) + 'ScanBehavior': value, + if (processPriorityClassNullableToJson(instance.processPriority) + case final value?) + 'ProcessPriority': value, if (instance.interval case final value?) 'Interval': value, - if (instance.widthResolutions case final value?) 'WidthResolutions': value, + if (instance.widthResolutions case final value?) + 'WidthResolutions': value, if (instance.tileWidth case final value?) 'TileWidth': value, if (instance.tileHeight case final value?) 'TileHeight': value, if (instance.qscale case final value?) 'Qscale': value, @@ -5181,21 +7235,27 @@ Map _$TrickplayOptionsToJson(TrickplayOptions instance) => json) => TunerChannelMapping( +TunerChannelMapping _$TunerChannelMappingFromJson(Map json) => + TunerChannelMapping( name: json['Name'] as String?, providerChannelName: json['ProviderChannelName'] as String?, providerChannelId: json['ProviderChannelId'] as String?, id: json['Id'] as String?, ); -Map _$TunerChannelMappingToJson(TunerChannelMapping instance) => { +Map _$TunerChannelMappingToJson( + TunerChannelMapping instance) => + { if (instance.name case final value?) 'Name': value, - if (instance.providerChannelName case final value?) 'ProviderChannelName': value, - if (instance.providerChannelId case final value?) 'ProviderChannelId': value, + if (instance.providerChannelName case final value?) + 'ProviderChannelName': value, + if (instance.providerChannelId case final value?) + 'ProviderChannelId': value, if (instance.id case final value?) 'Id': value, }; -TunerHostInfo _$TunerHostInfoFromJson(Map json) => TunerHostInfo( +TunerHostInfo _$TunerHostInfoFromJson(Map json) => + TunerHostInfo( id: json['Id'] as String?, url: json['Url'] as String?, type: json['Type'] as String?, @@ -5203,9 +7263,11 @@ TunerHostInfo _$TunerHostInfoFromJson(Map json) => TunerHostInf friendlyName: json['FriendlyName'] as String?, importFavoritesOnly: json['ImportFavoritesOnly'] as bool?, allowHWTranscoding: json['AllowHWTranscoding'] as bool?, - allowFmp4TranscodingContainer: json['AllowFmp4TranscodingContainer'] as bool?, + allowFmp4TranscodingContainer: + json['AllowFmp4TranscodingContainer'] as bool?, allowStreamSharing: json['AllowStreamSharing'] as bool?, - fallbackMaxStreamingBitrate: (json['FallbackMaxStreamingBitrate'] as num?)?.toInt(), + fallbackMaxStreamingBitrate: + (json['FallbackMaxStreamingBitrate'] as num?)?.toInt(), enableStreamLooping: json['EnableStreamLooping'] as bool?, source: json['Source'] as String?, tunerCount: (json['TunerCount'] as num?)?.toInt(), @@ -5214,94 +7276,142 @@ TunerHostInfo _$TunerHostInfoFromJson(Map json) => TunerHostInf readAtNativeFramerate: json['ReadAtNativeFramerate'] as bool?, ); -Map _$TunerHostInfoToJson(TunerHostInfo instance) => { +Map _$TunerHostInfoToJson(TunerHostInfo instance) => + { if (instance.id case final value?) 'Id': value, if (instance.url case final value?) 'Url': value, if (instance.type case final value?) 'Type': value, if (instance.deviceId case final value?) 'DeviceId': value, if (instance.friendlyName case final value?) 'FriendlyName': value, - if (instance.importFavoritesOnly case final value?) 'ImportFavoritesOnly': value, - if (instance.allowHWTranscoding case final value?) 'AllowHWTranscoding': value, - if (instance.allowFmp4TranscodingContainer case final value?) 'AllowFmp4TranscodingContainer': value, - if (instance.allowStreamSharing case final value?) 'AllowStreamSharing': value, - if (instance.fallbackMaxStreamingBitrate case final value?) 'FallbackMaxStreamingBitrate': value, - if (instance.enableStreamLooping case final value?) 'EnableStreamLooping': value, + if (instance.importFavoritesOnly case final value?) + 'ImportFavoritesOnly': value, + if (instance.allowHWTranscoding case final value?) + 'AllowHWTranscoding': value, + if (instance.allowFmp4TranscodingContainer case final value?) + 'AllowFmp4TranscodingContainer': value, + if (instance.allowStreamSharing case final value?) + 'AllowStreamSharing': value, + if (instance.fallbackMaxStreamingBitrate case final value?) + 'FallbackMaxStreamingBitrate': value, + if (instance.enableStreamLooping case final value?) + 'EnableStreamLooping': value, if (instance.source case final value?) 'Source': value, if (instance.tunerCount case final value?) 'TunerCount': value, if (instance.userAgent case final value?) 'UserAgent': value, if (instance.ignoreDts case final value?) 'IgnoreDts': value, - if (instance.readAtNativeFramerate case final value?) 'ReadAtNativeFramerate': value, + if (instance.readAtNativeFramerate case final value?) + 'ReadAtNativeFramerate': value, }; TypeOptions _$TypeOptionsFromJson(Map json) => TypeOptions( type: json['Type'] as String?, - metadataFetchers: (json['MetadataFetchers'] as List?)?.map((e) => e as String).toList() ?? [], - metadataFetcherOrder: (json['MetadataFetcherOrder'] as List?)?.map((e) => e as String).toList() ?? [], - imageFetchers: (json['ImageFetchers'] as List?)?.map((e) => e as String).toList() ?? [], - imageFetcherOrder: (json['ImageFetcherOrder'] as List?)?.map((e) => e as String).toList() ?? [], + metadataFetchers: (json['MetadataFetchers'] as List?) + ?.map((e) => e as String) + .toList() ?? + [], + metadataFetcherOrder: (json['MetadataFetcherOrder'] as List?) + ?.map((e) => e as String) + .toList() ?? + [], + imageFetchers: (json['ImageFetchers'] as List?) + ?.map((e) => e as String) + .toList() ?? + [], + imageFetcherOrder: (json['ImageFetcherOrder'] as List?) + ?.map((e) => e as String) + .toList() ?? + [], imageOptions: (json['ImageOptions'] as List?) ?.map((e) => ImageOption.fromJson(e as Map)) .toList() ?? [], ); -Map _$TypeOptionsToJson(TypeOptions instance) => { +Map _$TypeOptionsToJson(TypeOptions instance) => + { if (instance.type case final value?) 'Type': value, - if (instance.metadataFetchers case final value?) 'MetadataFetchers': value, - if (instance.metadataFetcherOrder case final value?) 'MetadataFetcherOrder': value, + if (instance.metadataFetchers case final value?) + 'MetadataFetchers': value, + if (instance.metadataFetcherOrder case final value?) + 'MetadataFetcherOrder': value, if (instance.imageFetchers case final value?) 'ImageFetchers': value, - if (instance.imageFetcherOrder case final value?) 'ImageFetcherOrder': value, - if (instance.imageOptions?.map((e) => e.toJson()).toList() case final value?) 'ImageOptions': value, + if (instance.imageFetcherOrder case final value?) + 'ImageFetcherOrder': value, + if (instance.imageOptions?.map((e) => e.toJson()).toList() + case final value?) + 'ImageOptions': value, }; -UpdateLibraryOptionsDto _$UpdateLibraryOptionsDtoFromJson(Map json) => UpdateLibraryOptionsDto( +UpdateLibraryOptionsDto _$UpdateLibraryOptionsDtoFromJson( + Map json) => + UpdateLibraryOptionsDto( id: json['Id'] as String?, libraryOptions: json['LibraryOptions'] == null ? null - : LibraryOptions.fromJson(json['LibraryOptions'] as Map), + : LibraryOptions.fromJson( + json['LibraryOptions'] as Map), ); -Map _$UpdateLibraryOptionsDtoToJson(UpdateLibraryOptionsDto instance) => { +Map _$UpdateLibraryOptionsDtoToJson( + UpdateLibraryOptionsDto instance) => + { if (instance.id case final value?) 'Id': value, - if (instance.libraryOptions?.toJson() case final value?) 'LibraryOptions': value, + if (instance.libraryOptions?.toJson() case final value?) + 'LibraryOptions': value, }; -UpdateMediaPathRequestDto _$UpdateMediaPathRequestDtoFromJson(Map json) => UpdateMediaPathRequestDto( +UpdateMediaPathRequestDto _$UpdateMediaPathRequestDtoFromJson( + Map json) => + UpdateMediaPathRequestDto( name: json['Name'] as String, - pathInfo: MediaPathInfo.fromJson(json['PathInfo'] as Map), + pathInfo: + MediaPathInfo.fromJson(json['PathInfo'] as Map), ); -Map _$UpdateMediaPathRequestDtoToJson(UpdateMediaPathRequestDto instance) => { +Map _$UpdateMediaPathRequestDtoToJson( + UpdateMediaPathRequestDto instance) => + { 'Name': instance.name, 'PathInfo': instance.pathInfo.toJson(), }; -UpdatePlaylistDto _$UpdatePlaylistDtoFromJson(Map json) => UpdatePlaylistDto( +UpdatePlaylistDto _$UpdatePlaylistDtoFromJson(Map json) => + UpdatePlaylistDto( name: json['Name'] as String?, - ids: (json['Ids'] as List?)?.map((e) => e as String).toList() ?? [], + ids: (json['Ids'] as List?)?.map((e) => e as String).toList() ?? + [], users: (json['Users'] as List?) - ?.map((e) => PlaylistUserPermissions.fromJson(e as Map)) + ?.map((e) => + PlaylistUserPermissions.fromJson(e as Map)) .toList() ?? [], isPublic: json['IsPublic'] as bool?, ); -Map _$UpdatePlaylistDtoToJson(UpdatePlaylistDto instance) => { +Map _$UpdatePlaylistDtoToJson(UpdatePlaylistDto instance) => + { if (instance.name case final value?) 'Name': value, if (instance.ids case final value?) 'Ids': value, - if (instance.users?.map((e) => e.toJson()).toList() case final value?) 'Users': value, + if (instance.users?.map((e) => e.toJson()).toList() case final value?) + 'Users': value, if (instance.isPublic case final value?) 'IsPublic': value, }; -UpdatePlaylistUserDto _$UpdatePlaylistUserDtoFromJson(Map json) => UpdatePlaylistUserDto( +UpdatePlaylistUserDto _$UpdatePlaylistUserDtoFromJson( + Map json) => + UpdatePlaylistUserDto( canEdit: json['CanEdit'] as bool?, ); -Map _$UpdatePlaylistUserDtoToJson(UpdatePlaylistUserDto instance) => { +Map _$UpdatePlaylistUserDtoToJson( + UpdatePlaylistUserDto instance) => + { if (instance.canEdit case final value?) 'CanEdit': value, }; -UpdateUserItemDataDto _$UpdateUserItemDataDtoFromJson(Map json) => UpdateUserItemDataDto( +UpdateUserItemDataDto _$UpdateUserItemDataDtoFromJson( + Map json) => + UpdateUserItemDataDto( rating: (json['Rating'] as num?)?.toDouble(), playedPercentage: (json['PlayedPercentage'] as num?)?.toDouble(), unplayedItemCount: (json['UnplayedItemCount'] as num?)?.toInt(), @@ -5309,41 +7419,52 @@ UpdateUserItemDataDto _$UpdateUserItemDataDtoFromJson(Map json) playCount: (json['PlayCount'] as num?)?.toInt(), isFavorite: json['IsFavorite'] as bool?, likes: json['Likes'] as bool?, - lastPlayedDate: json['LastPlayedDate'] == null ? null : DateTime.parse(json['LastPlayedDate'] as String), + lastPlayedDate: json['LastPlayedDate'] == null + ? null + : DateTime.parse(json['LastPlayedDate'] as String), played: json['Played'] as bool?, key: json['Key'] as String?, itemId: json['ItemId'] as String?, ); -Map _$UpdateUserItemDataDtoToJson(UpdateUserItemDataDto instance) => { +Map _$UpdateUserItemDataDtoToJson( + UpdateUserItemDataDto instance) => + { if (instance.rating case final value?) 'Rating': value, - if (instance.playedPercentage case final value?) 'PlayedPercentage': value, - if (instance.unplayedItemCount case final value?) 'UnplayedItemCount': value, - if (instance.playbackPositionTicks case final value?) 'PlaybackPositionTicks': value, + if (instance.playedPercentage case final value?) + 'PlayedPercentage': value, + if (instance.unplayedItemCount case final value?) + 'UnplayedItemCount': value, + if (instance.playbackPositionTicks case final value?) + 'PlaybackPositionTicks': value, if (instance.playCount case final value?) 'PlayCount': value, if (instance.isFavorite case final value?) 'IsFavorite': value, if (instance.likes case final value?) 'Likes': value, - if (instance.lastPlayedDate?.toIso8601String() case final value?) 'LastPlayedDate': value, + if (instance.lastPlayedDate?.toIso8601String() case final value?) + 'LastPlayedDate': value, if (instance.played case final value?) 'Played': value, if (instance.key case final value?) 'Key': value, if (instance.itemId case final value?) 'ItemId': value, }; -UpdateUserPassword _$UpdateUserPasswordFromJson(Map json) => UpdateUserPassword( +UpdateUserPassword _$UpdateUserPasswordFromJson(Map json) => + UpdateUserPassword( currentPassword: json['CurrentPassword'] as String?, currentPw: json['CurrentPw'] as String?, newPw: json['NewPw'] as String?, resetPassword: json['ResetPassword'] as bool?, ); -Map _$UpdateUserPasswordToJson(UpdateUserPassword instance) => { +Map _$UpdateUserPasswordToJson(UpdateUserPassword instance) => + { if (instance.currentPassword case final value?) 'CurrentPassword': value, if (instance.currentPw case final value?) 'CurrentPw': value, if (instance.newPw case final value?) 'NewPw': value, if (instance.resetPassword case final value?) 'ResetPassword': value, }; -UploadSubtitleDto _$UploadSubtitleDtoFromJson(Map json) => UploadSubtitleDto( +UploadSubtitleDto _$UploadSubtitleDtoFromJson(Map json) => + UploadSubtitleDto( language: json['Language'] as String, format: json['Format'] as String, isForced: json['IsForced'] as bool, @@ -5351,7 +7472,8 @@ UploadSubtitleDto _$UploadSubtitleDtoFromJson(Map json) => Uplo data: json['Data'] as String, ); -Map _$UploadSubtitleDtoToJson(UploadSubtitleDto instance) => { +Map _$UploadSubtitleDtoToJson(UploadSubtitleDto instance) => + { 'Language': instance.language, 'Format': instance.format, 'IsForced': instance.isForced, @@ -5359,18 +7481,31 @@ Map _$UploadSubtitleDtoToJson(UploadSubtitleDto instance) => json) => UserConfiguration( +UserConfiguration _$UserConfigurationFromJson(Map json) => + UserConfiguration( audioLanguagePreference: json['AudioLanguagePreference'] as String?, playDefaultAudioTrack: json['PlayDefaultAudioTrack'] as bool?, subtitleLanguagePreference: json['SubtitleLanguagePreference'] as String?, displayMissingEpisodes: json['DisplayMissingEpisodes'] as bool?, - groupedFolders: (json['GroupedFolders'] as List?)?.map((e) => e as String).toList() ?? [], + groupedFolders: (json['GroupedFolders'] as List?) + ?.map((e) => e as String) + .toList() ?? + [], subtitleMode: subtitlePlaybackModeNullableFromJson(json['SubtitleMode']), displayCollectionsView: json['DisplayCollectionsView'] as bool?, enableLocalPassword: json['EnableLocalPassword'] as bool?, - orderedViews: (json['OrderedViews'] as List?)?.map((e) => e as String).toList() ?? [], - latestItemsExcludes: (json['LatestItemsExcludes'] as List?)?.map((e) => e as String).toList() ?? [], - myMediaExcludes: (json['MyMediaExcludes'] as List?)?.map((e) => e as String).toList() ?? [], + orderedViews: (json['OrderedViews'] as List?) + ?.map((e) => e as String) + .toList() ?? + [], + latestItemsExcludes: (json['LatestItemsExcludes'] as List?) + ?.map((e) => e as String) + .toList() ?? + [], + myMediaExcludes: (json['MyMediaExcludes'] as List?) + ?.map((e) => e as String) + .toList() ?? + [], hidePlayedInLatest: json['HidePlayedInLatest'] as bool?, rememberAudioSelections: json['RememberAudioSelections'] as bool?, rememberSubtitleSelections: json['RememberSubtitleSelections'] as bool?, @@ -5378,38 +7513,63 @@ UserConfiguration _$UserConfigurationFromJson(Map json) => User castReceiverId: json['CastReceiverId'] as String?, ); -Map _$UserConfigurationToJson(UserConfiguration instance) => { - if (instance.audioLanguagePreference case final value?) 'AudioLanguagePreference': value, - if (instance.playDefaultAudioTrack case final value?) 'PlayDefaultAudioTrack': value, - if (instance.subtitleLanguagePreference case final value?) 'SubtitleLanguagePreference': value, - if (instance.displayMissingEpisodes case final value?) 'DisplayMissingEpisodes': value, +Map _$UserConfigurationToJson(UserConfiguration instance) => + { + if (instance.audioLanguagePreference case final value?) + 'AudioLanguagePreference': value, + if (instance.playDefaultAudioTrack case final value?) + 'PlayDefaultAudioTrack': value, + if (instance.subtitleLanguagePreference case final value?) + 'SubtitleLanguagePreference': value, + if (instance.displayMissingEpisodes case final value?) + 'DisplayMissingEpisodes': value, if (instance.groupedFolders case final value?) 'GroupedFolders': value, - if (subtitlePlaybackModeNullableToJson(instance.subtitleMode) case final value?) 'SubtitleMode': value, - if (instance.displayCollectionsView case final value?) 'DisplayCollectionsView': value, - if (instance.enableLocalPassword case final value?) 'EnableLocalPassword': value, + if (subtitlePlaybackModeNullableToJson(instance.subtitleMode) + case final value?) + 'SubtitleMode': value, + if (instance.displayCollectionsView case final value?) + 'DisplayCollectionsView': value, + if (instance.enableLocalPassword case final value?) + 'EnableLocalPassword': value, if (instance.orderedViews case final value?) 'OrderedViews': value, - if (instance.latestItemsExcludes case final value?) 'LatestItemsExcludes': value, + if (instance.latestItemsExcludes case final value?) + 'LatestItemsExcludes': value, if (instance.myMediaExcludes case final value?) 'MyMediaExcludes': value, - if (instance.hidePlayedInLatest case final value?) 'HidePlayedInLatest': value, - if (instance.rememberAudioSelections case final value?) 'RememberAudioSelections': value, - if (instance.rememberSubtitleSelections case final value?) 'RememberSubtitleSelections': value, - if (instance.enableNextEpisodeAutoPlay case final value?) 'EnableNextEpisodeAutoPlay': value, + if (instance.hidePlayedInLatest case final value?) + 'HidePlayedInLatest': value, + if (instance.rememberAudioSelections case final value?) + 'RememberAudioSelections': value, + if (instance.rememberSubtitleSelections case final value?) + 'RememberSubtitleSelections': value, + if (instance.enableNextEpisodeAutoPlay case final value?) + 'EnableNextEpisodeAutoPlay': value, if (instance.castReceiverId case final value?) 'CastReceiverId': value, }; -UserDataChangedMessage _$UserDataChangedMessageFromJson(Map json) => UserDataChangedMessage( - data: json['Data'] == null ? null : UserDataChangeInfo.fromJson(json['Data'] as Map), +UserDataChangedMessage _$UserDataChangedMessageFromJson( + Map json) => + UserDataChangedMessage( + data: json['Data'] == null + ? null + : UserDataChangeInfo.fromJson(json['Data'] as Map), messageId: json['MessageId'] as String?, - messageType: UserDataChangedMessage.sessionMessageTypeMessageTypeNullableFromJson(json['MessageType']), + messageType: + UserDataChangedMessage.sessionMessageTypeMessageTypeNullableFromJson( + json['MessageType']), ); -Map _$UserDataChangedMessageToJson(UserDataChangedMessage instance) => { +Map _$UserDataChangedMessageToJson( + UserDataChangedMessage instance) => + { if (instance.data?.toJson() case final value?) 'Data': value, if (instance.messageId case final value?) 'MessageId': value, - if (sessionMessageTypeNullableToJson(instance.messageType) case final value?) 'MessageType': value, + if (sessionMessageTypeNullableToJson(instance.messageType) + case final value?) + 'MessageType': value, }; -UserDataChangeInfo _$UserDataChangeInfoFromJson(Map json) => UserDataChangeInfo( +UserDataChangeInfo _$UserDataChangeInfoFromJson(Map json) => + UserDataChangeInfo( userId: json['UserId'] as String?, userDataList: (json['UserDataList'] as List?) ?.map((e) => UserItemDataDto.fromJson(e as Map)) @@ -5417,21 +7577,30 @@ UserDataChangeInfo _$UserDataChangeInfoFromJson(Map json) => Us [], ); -Map _$UserDataChangeInfoToJson(UserDataChangeInfo instance) => { +Map _$UserDataChangeInfoToJson(UserDataChangeInfo instance) => + { if (instance.userId case final value?) 'UserId': value, - if (instance.userDataList?.map((e) => e.toJson()).toList() case final value?) 'UserDataList': value, + if (instance.userDataList?.map((e) => e.toJson()).toList() + case final value?) + 'UserDataList': value, }; -UserDeletedMessage _$UserDeletedMessageFromJson(Map json) => UserDeletedMessage( +UserDeletedMessage _$UserDeletedMessageFromJson(Map json) => + UserDeletedMessage( data: json['Data'] as String?, messageId: json['MessageId'] as String?, - messageType: UserDeletedMessage.sessionMessageTypeMessageTypeNullableFromJson(json['MessageType']), + messageType: + UserDeletedMessage.sessionMessageTypeMessageTypeNullableFromJson( + json['MessageType']), ); -Map _$UserDeletedMessageToJson(UserDeletedMessage instance) => { +Map _$UserDeletedMessageToJson(UserDeletedMessage instance) => + { if (instance.data case final value?) 'Data': value, if (instance.messageId case final value?) 'MessageId': value, - if (sessionMessageTypeNullableToJson(instance.messageType) case final value?) 'MessageType': value, + if (sessionMessageTypeNullableToJson(instance.messageType) + case final value?) + 'MessageType': value, }; UserDto _$UserDtoFromJson(Map json) => UserDto( @@ -5444,13 +7613,21 @@ UserDto _$UserDtoFromJson(Map json) => UserDto( hasConfiguredPassword: json['HasConfiguredPassword'] as bool?, hasConfiguredEasyPassword: json['HasConfiguredEasyPassword'] as bool?, enableAutoLogin: json['EnableAutoLogin'] as bool?, - lastLoginDate: json['LastLoginDate'] == null ? null : DateTime.parse(json['LastLoginDate'] as String), - lastActivityDate: json['LastActivityDate'] == null ? null : DateTime.parse(json['LastActivityDate'] as String), + lastLoginDate: json['LastLoginDate'] == null + ? null + : DateTime.parse(json['LastLoginDate'] as String), + lastActivityDate: json['LastActivityDate'] == null + ? null + : DateTime.parse(json['LastActivityDate'] as String), configuration: json['Configuration'] == null ? null - : UserConfiguration.fromJson(json['Configuration'] as Map), - policy: json['Policy'] == null ? null : UserPolicy.fromJson(json['Policy'] as Map), - primaryImageAspectRatio: (json['PrimaryImageAspectRatio'] as num?)?.toDouble(), + : UserConfiguration.fromJson( + json['Configuration'] as Map), + policy: json['Policy'] == null + ? null + : UserPolicy.fromJson(json['Policy'] as Map), + primaryImageAspectRatio: + (json['PrimaryImageAspectRatio'] as num?)?.toDouble(), ); Map _$UserDtoToJson(UserDto instance) => { @@ -5460,17 +7637,24 @@ Map _$UserDtoToJson(UserDto instance) => { if (instance.id case final value?) 'Id': value, if (instance.primaryImageTag case final value?) 'PrimaryImageTag': value, if (instance.hasPassword case final value?) 'HasPassword': value, - if (instance.hasConfiguredPassword case final value?) 'HasConfiguredPassword': value, - if (instance.hasConfiguredEasyPassword case final value?) 'HasConfiguredEasyPassword': value, + if (instance.hasConfiguredPassword case final value?) + 'HasConfiguredPassword': value, + if (instance.hasConfiguredEasyPassword case final value?) + 'HasConfiguredEasyPassword': value, if (instance.enableAutoLogin case final value?) 'EnableAutoLogin': value, - if (instance.lastLoginDate?.toIso8601String() case final value?) 'LastLoginDate': value, - if (instance.lastActivityDate?.toIso8601String() case final value?) 'LastActivityDate': value, - if (instance.configuration?.toJson() case final value?) 'Configuration': value, + if (instance.lastLoginDate?.toIso8601String() case final value?) + 'LastLoginDate': value, + if (instance.lastActivityDate?.toIso8601String() case final value?) + 'LastActivityDate': value, + if (instance.configuration?.toJson() case final value?) + 'Configuration': value, if (instance.policy?.toJson() case final value?) 'Policy': value, - if (instance.primaryImageAspectRatio case final value?) 'PrimaryImageAspectRatio': value, + if (instance.primaryImageAspectRatio case final value?) + 'PrimaryImageAspectRatio': value, }; -UserItemDataDto _$UserItemDataDtoFromJson(Map json) => UserItemDataDto( +UserItemDataDto _$UserItemDataDtoFromJson(Map json) => + UserItemDataDto( rating: (json['Rating'] as num?)?.toDouble(), playedPercentage: (json['PlayedPercentage'] as num?)?.toDouble(), unplayedItemCount: (json['UnplayedItemCount'] as num?)?.toInt(), @@ -5478,21 +7662,28 @@ UserItemDataDto _$UserItemDataDtoFromJson(Map json) => UserItem playCount: (json['PlayCount'] as num?)?.toInt(), isFavorite: json['IsFavorite'] as bool?, likes: json['Likes'] as bool?, - lastPlayedDate: json['LastPlayedDate'] == null ? null : DateTime.parse(json['LastPlayedDate'] as String), + lastPlayedDate: json['LastPlayedDate'] == null + ? null + : DateTime.parse(json['LastPlayedDate'] as String), played: json['Played'] as bool?, key: json['Key'] as String?, itemId: json['ItemId'] as String?, ); -Map _$UserItemDataDtoToJson(UserItemDataDto instance) => { +Map _$UserItemDataDtoToJson(UserItemDataDto instance) => + { if (instance.rating case final value?) 'Rating': value, - if (instance.playedPercentage case final value?) 'PlayedPercentage': value, - if (instance.unplayedItemCount case final value?) 'UnplayedItemCount': value, - if (instance.playbackPositionTicks case final value?) 'PlaybackPositionTicks': value, + if (instance.playedPercentage case final value?) + 'PlayedPercentage': value, + if (instance.unplayedItemCount case final value?) + 'UnplayedItemCount': value, + if (instance.playbackPositionTicks case final value?) + 'PlaybackPositionTicks': value, if (instance.playCount case final value?) 'PlayCount': value, if (instance.isFavorite case final value?) 'IsFavorite': value, if (instance.likes case final value?) 'Likes': value, - if (instance.lastPlayedDate?.toIso8601String() case final value?) 'LastPlayedDate': value, + if (instance.lastPlayedDate?.toIso8601String() case final value?) + 'LastPlayedDate': value, if (instance.played case final value?) 'Played': value, if (instance.key case final value?) 'Key': value, if (instance.itemId case final value?) 'ItemId': value, @@ -5501,133 +7692,221 @@ Map _$UserItemDataDtoToJson(UserItemDataDto instance) => json) => UserPolicy( isAdministrator: json['IsAdministrator'] as bool?, isHidden: json['IsHidden'] as bool?, - enableCollectionManagement: json['EnableCollectionManagement'] as bool? ?? false, - enableSubtitleManagement: json['EnableSubtitleManagement'] as bool? ?? false, + enableCollectionManagement: + json['EnableCollectionManagement'] as bool? ?? false, + enableSubtitleManagement: + json['EnableSubtitleManagement'] as bool? ?? false, enableLyricManagement: json['EnableLyricManagement'] as bool? ?? false, isDisabled: json['IsDisabled'] as bool?, maxParentalRating: (json['MaxParentalRating'] as num?)?.toInt(), maxParentalSubRating: (json['MaxParentalSubRating'] as num?)?.toInt(), - blockedTags: (json['BlockedTags'] as List?)?.map((e) => e as String).toList() ?? [], - allowedTags: (json['AllowedTags'] as List?)?.map((e) => e as String).toList() ?? [], + blockedTags: (json['BlockedTags'] as List?) + ?.map((e) => e as String) + .toList() ?? + [], + allowedTags: (json['AllowedTags'] as List?) + ?.map((e) => e as String) + .toList() ?? + [], enableUserPreferenceAccess: json['EnableUserPreferenceAccess'] as bool?, accessSchedules: (json['AccessSchedules'] as List?) ?.map((e) => AccessSchedule.fromJson(e as Map)) .toList() ?? [], - blockUnratedItems: unratedItemListFromJson(json['BlockUnratedItems'] as List?), - enableRemoteControlOfOtherUsers: json['EnableRemoteControlOfOtherUsers'] as bool?, + blockUnratedItems: + unratedItemListFromJson(json['BlockUnratedItems'] as List?), + enableRemoteControlOfOtherUsers: + json['EnableRemoteControlOfOtherUsers'] as bool?, enableSharedDeviceControl: json['EnableSharedDeviceControl'] as bool?, enableRemoteAccess: json['EnableRemoteAccess'] as bool?, enableLiveTvManagement: json['EnableLiveTvManagement'] as bool?, enableLiveTvAccess: json['EnableLiveTvAccess'] as bool?, enableMediaPlayback: json['EnableMediaPlayback'] as bool?, - enableAudioPlaybackTranscoding: json['EnableAudioPlaybackTranscoding'] as bool?, - enableVideoPlaybackTranscoding: json['EnableVideoPlaybackTranscoding'] as bool?, + enableAudioPlaybackTranscoding: + json['EnableAudioPlaybackTranscoding'] as bool?, + enableVideoPlaybackTranscoding: + json['EnableVideoPlaybackTranscoding'] as bool?, enablePlaybackRemuxing: json['EnablePlaybackRemuxing'] as bool?, - forceRemoteSourceTranscoding: json['ForceRemoteSourceTranscoding'] as bool?, + forceRemoteSourceTranscoding: + json['ForceRemoteSourceTranscoding'] as bool?, enableContentDeletion: json['EnableContentDeletion'] as bool?, enableContentDeletionFromFolders: - (json['EnableContentDeletionFromFolders'] as List?)?.map((e) => e as String).toList() ?? [], + (json['EnableContentDeletionFromFolders'] as List?) + ?.map((e) => e as String) + .toList() ?? + [], enableContentDownloading: json['EnableContentDownloading'] as bool?, enableSyncTranscoding: json['EnableSyncTranscoding'] as bool?, enableMediaConversion: json['EnableMediaConversion'] as bool?, - enabledDevices: (json['EnabledDevices'] as List?)?.map((e) => e as String).toList() ?? [], + enabledDevices: (json['EnabledDevices'] as List?) + ?.map((e) => e as String) + .toList() ?? + [], enableAllDevices: json['EnableAllDevices'] as bool?, - enabledChannels: (json['EnabledChannels'] as List?)?.map((e) => e as String).toList() ?? [], + enabledChannels: (json['EnabledChannels'] as List?) + ?.map((e) => e as String) + .toList() ?? + [], enableAllChannels: json['EnableAllChannels'] as bool?, - enabledFolders: (json['EnabledFolders'] as List?)?.map((e) => e as String).toList() ?? [], + enabledFolders: (json['EnabledFolders'] as List?) + ?.map((e) => e as String) + .toList() ?? + [], enableAllFolders: json['EnableAllFolders'] as bool?, - invalidLoginAttemptCount: (json['InvalidLoginAttemptCount'] as num?)?.toInt(), - loginAttemptsBeforeLockout: (json['LoginAttemptsBeforeLockout'] as num?)?.toInt(), + invalidLoginAttemptCount: + (json['InvalidLoginAttemptCount'] as num?)?.toInt(), + loginAttemptsBeforeLockout: + (json['LoginAttemptsBeforeLockout'] as num?)?.toInt(), maxActiveSessions: (json['MaxActiveSessions'] as num?)?.toInt(), enablePublicSharing: json['EnablePublicSharing'] as bool?, - blockedMediaFolders: (json['BlockedMediaFolders'] as List?)?.map((e) => e as String).toList() ?? [], - blockedChannels: (json['BlockedChannels'] as List?)?.map((e) => e as String).toList() ?? [], - remoteClientBitrateLimit: (json['RemoteClientBitrateLimit'] as num?)?.toInt(), + blockedMediaFolders: (json['BlockedMediaFolders'] as List?) + ?.map((e) => e as String) + .toList() ?? + [], + blockedChannels: (json['BlockedChannels'] as List?) + ?.map((e) => e as String) + .toList() ?? + [], + remoteClientBitrateLimit: + (json['RemoteClientBitrateLimit'] as num?)?.toInt(), authenticationProviderId: json['AuthenticationProviderId'] as String, passwordResetProviderId: json['PasswordResetProviderId'] as String, - syncPlayAccess: syncPlayUserAccessTypeNullableFromJson(json['SyncPlayAccess']), + syncPlayAccess: + syncPlayUserAccessTypeNullableFromJson(json['SyncPlayAccess']), ); -Map _$UserPolicyToJson(UserPolicy instance) => { +Map _$UserPolicyToJson(UserPolicy instance) => + { if (instance.isAdministrator case final value?) 'IsAdministrator': value, if (instance.isHidden case final value?) 'IsHidden': value, - if (instance.enableCollectionManagement case final value?) 'EnableCollectionManagement': value, - if (instance.enableSubtitleManagement case final value?) 'EnableSubtitleManagement': value, - if (instance.enableLyricManagement case final value?) 'EnableLyricManagement': value, + if (instance.enableCollectionManagement case final value?) + 'EnableCollectionManagement': value, + if (instance.enableSubtitleManagement case final value?) + 'EnableSubtitleManagement': value, + if (instance.enableLyricManagement case final value?) + 'EnableLyricManagement': value, if (instance.isDisabled case final value?) 'IsDisabled': value, - if (instance.maxParentalRating case final value?) 'MaxParentalRating': value, - if (instance.maxParentalSubRating case final value?) 'MaxParentalSubRating': value, + if (instance.maxParentalRating case final value?) + 'MaxParentalRating': value, + if (instance.maxParentalSubRating case final value?) + 'MaxParentalSubRating': value, if (instance.blockedTags case final value?) 'BlockedTags': value, if (instance.allowedTags case final value?) 'AllowedTags': value, - if (instance.enableUserPreferenceAccess case final value?) 'EnableUserPreferenceAccess': value, - if (instance.accessSchedules?.map((e) => e.toJson()).toList() case final value?) 'AccessSchedules': value, + if (instance.enableUserPreferenceAccess case final value?) + 'EnableUserPreferenceAccess': value, + if (instance.accessSchedules?.map((e) => e.toJson()).toList() + case final value?) + 'AccessSchedules': value, 'BlockUnratedItems': unratedItemListToJson(instance.blockUnratedItems), - if (instance.enableRemoteControlOfOtherUsers case final value?) 'EnableRemoteControlOfOtherUsers': value, - if (instance.enableSharedDeviceControl case final value?) 'EnableSharedDeviceControl': value, - if (instance.enableRemoteAccess case final value?) 'EnableRemoteAccess': value, - if (instance.enableLiveTvManagement case final value?) 'EnableLiveTvManagement': value, - if (instance.enableLiveTvAccess case final value?) 'EnableLiveTvAccess': value, - if (instance.enableMediaPlayback case final value?) 'EnableMediaPlayback': value, - if (instance.enableAudioPlaybackTranscoding case final value?) 'EnableAudioPlaybackTranscoding': value, - if (instance.enableVideoPlaybackTranscoding case final value?) 'EnableVideoPlaybackTranscoding': value, - if (instance.enablePlaybackRemuxing case final value?) 'EnablePlaybackRemuxing': value, - if (instance.forceRemoteSourceTranscoding case final value?) 'ForceRemoteSourceTranscoding': value, - if (instance.enableContentDeletion case final value?) 'EnableContentDeletion': value, - if (instance.enableContentDeletionFromFolders case final value?) 'EnableContentDeletionFromFolders': value, - if (instance.enableContentDownloading case final value?) 'EnableContentDownloading': value, - if (instance.enableSyncTranscoding case final value?) 'EnableSyncTranscoding': value, - if (instance.enableMediaConversion case final value?) 'EnableMediaConversion': value, + if (instance.enableRemoteControlOfOtherUsers case final value?) + 'EnableRemoteControlOfOtherUsers': value, + if (instance.enableSharedDeviceControl case final value?) + 'EnableSharedDeviceControl': value, + if (instance.enableRemoteAccess case final value?) + 'EnableRemoteAccess': value, + if (instance.enableLiveTvManagement case final value?) + 'EnableLiveTvManagement': value, + if (instance.enableLiveTvAccess case final value?) + 'EnableLiveTvAccess': value, + if (instance.enableMediaPlayback case final value?) + 'EnableMediaPlayback': value, + if (instance.enableAudioPlaybackTranscoding case final value?) + 'EnableAudioPlaybackTranscoding': value, + if (instance.enableVideoPlaybackTranscoding case final value?) + 'EnableVideoPlaybackTranscoding': value, + if (instance.enablePlaybackRemuxing case final value?) + 'EnablePlaybackRemuxing': value, + if (instance.forceRemoteSourceTranscoding case final value?) + 'ForceRemoteSourceTranscoding': value, + if (instance.enableContentDeletion case final value?) + 'EnableContentDeletion': value, + if (instance.enableContentDeletionFromFolders case final value?) + 'EnableContentDeletionFromFolders': value, + if (instance.enableContentDownloading case final value?) + 'EnableContentDownloading': value, + if (instance.enableSyncTranscoding case final value?) + 'EnableSyncTranscoding': value, + if (instance.enableMediaConversion case final value?) + 'EnableMediaConversion': value, if (instance.enabledDevices case final value?) 'EnabledDevices': value, - if (instance.enableAllDevices case final value?) 'EnableAllDevices': value, + if (instance.enableAllDevices case final value?) + 'EnableAllDevices': value, if (instance.enabledChannels case final value?) 'EnabledChannels': value, - if (instance.enableAllChannels case final value?) 'EnableAllChannels': value, + if (instance.enableAllChannels case final value?) + 'EnableAllChannels': value, if (instance.enabledFolders case final value?) 'EnabledFolders': value, - if (instance.enableAllFolders case final value?) 'EnableAllFolders': value, - if (instance.invalidLoginAttemptCount case final value?) 'InvalidLoginAttemptCount': value, - if (instance.loginAttemptsBeforeLockout case final value?) 'LoginAttemptsBeforeLockout': value, - if (instance.maxActiveSessions case final value?) 'MaxActiveSessions': value, - if (instance.enablePublicSharing case final value?) 'EnablePublicSharing': value, - if (instance.blockedMediaFolders case final value?) 'BlockedMediaFolders': value, + if (instance.enableAllFolders case final value?) + 'EnableAllFolders': value, + if (instance.invalidLoginAttemptCount case final value?) + 'InvalidLoginAttemptCount': value, + if (instance.loginAttemptsBeforeLockout case final value?) + 'LoginAttemptsBeforeLockout': value, + if (instance.maxActiveSessions case final value?) + 'MaxActiveSessions': value, + if (instance.enablePublicSharing case final value?) + 'EnablePublicSharing': value, + if (instance.blockedMediaFolders case final value?) + 'BlockedMediaFolders': value, if (instance.blockedChannels case final value?) 'BlockedChannels': value, - if (instance.remoteClientBitrateLimit case final value?) 'RemoteClientBitrateLimit': value, + if (instance.remoteClientBitrateLimit case final value?) + 'RemoteClientBitrateLimit': value, 'AuthenticationProviderId': instance.authenticationProviderId, 'PasswordResetProviderId': instance.passwordResetProviderId, - if (syncPlayUserAccessTypeNullableToJson(instance.syncPlayAccess) case final value?) 'SyncPlayAccess': value, + if (syncPlayUserAccessTypeNullableToJson(instance.syncPlayAccess) + case final value?) + 'SyncPlayAccess': value, }; -UserUpdatedMessage _$UserUpdatedMessageFromJson(Map json) => UserUpdatedMessage( - data: json['Data'] == null ? null : UserDto.fromJson(json['Data'] as Map), +UserUpdatedMessage _$UserUpdatedMessageFromJson(Map json) => + UserUpdatedMessage( + data: json['Data'] == null + ? null + : UserDto.fromJson(json['Data'] as Map), messageId: json['MessageId'] as String?, - messageType: UserUpdatedMessage.sessionMessageTypeMessageTypeNullableFromJson(json['MessageType']), + messageType: + UserUpdatedMessage.sessionMessageTypeMessageTypeNullableFromJson( + json['MessageType']), ); -Map _$UserUpdatedMessageToJson(UserUpdatedMessage instance) => { +Map _$UserUpdatedMessageToJson(UserUpdatedMessage instance) => + { if (instance.data?.toJson() case final value?) 'Data': value, if (instance.messageId case final value?) 'MessageId': value, - if (sessionMessageTypeNullableToJson(instance.messageType) case final value?) 'MessageType': value, + if (sessionMessageTypeNullableToJson(instance.messageType) + case final value?) + 'MessageType': value, }; -UtcTimeResponse _$UtcTimeResponseFromJson(Map json) => UtcTimeResponse( - requestReceptionTime: - json['RequestReceptionTime'] == null ? null : DateTime.parse(json['RequestReceptionTime'] as String), - responseTransmissionTime: - json['ResponseTransmissionTime'] == null ? null : DateTime.parse(json['ResponseTransmissionTime'] as String), +UtcTimeResponse _$UtcTimeResponseFromJson(Map json) => + UtcTimeResponse( + requestReceptionTime: json['RequestReceptionTime'] == null + ? null + : DateTime.parse(json['RequestReceptionTime'] as String), + responseTransmissionTime: json['ResponseTransmissionTime'] == null + ? null + : DateTime.parse(json['ResponseTransmissionTime'] as String), ); -Map _$UtcTimeResponseToJson(UtcTimeResponse instance) => { - if (instance.requestReceptionTime?.toIso8601String() case final value?) 'RequestReceptionTime': value, - if (instance.responseTransmissionTime?.toIso8601String() case final value?) 'ResponseTransmissionTime': value, +Map _$UtcTimeResponseToJson(UtcTimeResponse instance) => + { + if (instance.requestReceptionTime?.toIso8601String() case final value?) + 'RequestReceptionTime': value, + if (instance.responseTransmissionTime?.toIso8601String() + case final value?) + 'ResponseTransmissionTime': value, }; -ValidatePathDto _$ValidatePathDtoFromJson(Map json) => ValidatePathDto( +ValidatePathDto _$ValidatePathDtoFromJson(Map json) => + ValidatePathDto( validateWritable: json['ValidateWritable'] as bool?, path: json['Path'] as String?, isFile: json['IsFile'] as bool?, ); -Map _$ValidatePathDtoToJson(ValidatePathDto instance) => { - if (instance.validateWritable case final value?) 'ValidateWritable': value, +Map _$ValidatePathDtoToJson(ValidatePathDto instance) => + { + if (instance.validateWritable case final value?) + 'ValidateWritable': value, if (instance.path case final value?) 'Path': value, if (instance.isFile case final value?) 'IsFile': value, }; @@ -5644,7 +7923,8 @@ VersionInfo _$VersionInfoFromJson(Map json) => VersionInfo( repositoryUrl: json['repositoryUrl'] as String?, ); -Map _$VersionInfoToJson(VersionInfo instance) => { +Map _$VersionInfoToJson(VersionInfo instance) => + { if (instance.version case final value?) 'version': value, if (instance.versionNumber case final value?) 'VersionNumber': value, if (instance.changelog case final value?) 'changelog': value, @@ -5656,51 +7936,73 @@ Map _$VersionInfoToJson(VersionInfo instance) => json) => VirtualFolderInfo( +VirtualFolderInfo _$VirtualFolderInfoFromJson(Map json) => + VirtualFolderInfo( name: json['Name'] as String?, - locations: (json['Locations'] as List?)?.map((e) => e as String).toList() ?? [], - collectionType: collectionTypeOptionsNullableFromJson(json['CollectionType']), + locations: (json['Locations'] as List?) + ?.map((e) => e as String) + .toList() ?? + [], + collectionType: + collectionTypeOptionsNullableFromJson(json['CollectionType']), libraryOptions: json['LibraryOptions'] == null ? null - : LibraryOptions.fromJson(json['LibraryOptions'] as Map), + : LibraryOptions.fromJson( + json['LibraryOptions'] as Map), itemId: json['ItemId'] as String?, primaryImageItemId: json['PrimaryImageItemId'] as String?, refreshProgress: (json['RefreshProgress'] as num?)?.toDouble(), refreshStatus: json['RefreshStatus'] as String?, ); -Map _$VirtualFolderInfoToJson(VirtualFolderInfo instance) => { +Map _$VirtualFolderInfoToJson(VirtualFolderInfo instance) => + { if (instance.name case final value?) 'Name': value, if (instance.locations case final value?) 'Locations': value, - if (collectionTypeOptionsNullableToJson(instance.collectionType) case final value?) 'CollectionType': value, - if (instance.libraryOptions?.toJson() case final value?) 'LibraryOptions': value, + if (collectionTypeOptionsNullableToJson(instance.collectionType) + case final value?) + 'CollectionType': value, + if (instance.libraryOptions?.toJson() case final value?) + 'LibraryOptions': value, if (instance.itemId case final value?) 'ItemId': value, - if (instance.primaryImageItemId case final value?) 'PrimaryImageItemId': value, + if (instance.primaryImageItemId case final value?) + 'PrimaryImageItemId': value, if (instance.refreshProgress case final value?) 'RefreshProgress': value, if (instance.refreshStatus case final value?) 'RefreshStatus': value, }; -WebSocketMessage _$WebSocketMessageFromJson(Map json) => WebSocketMessage(); +WebSocketMessage _$WebSocketMessageFromJson(Map json) => + WebSocketMessage(); -Map _$WebSocketMessageToJson(WebSocketMessage instance) => {}; +Map _$WebSocketMessageToJson(WebSocketMessage instance) => + {}; -XbmcMetadataOptions _$XbmcMetadataOptionsFromJson(Map json) => XbmcMetadataOptions( +XbmcMetadataOptions _$XbmcMetadataOptionsFromJson(Map json) => + XbmcMetadataOptions( userId: json['UserId'] as String?, releaseDateFormat: json['ReleaseDateFormat'] as String?, saveImagePathsInNfo: json['SaveImagePathsInNfo'] as bool?, enablePathSubstitution: json['EnablePathSubstitution'] as bool?, - enableExtraThumbsDuplication: json['EnableExtraThumbsDuplication'] as bool?, + enableExtraThumbsDuplication: + json['EnableExtraThumbsDuplication'] as bool?, ); -Map _$XbmcMetadataOptionsToJson(XbmcMetadataOptions instance) => { +Map _$XbmcMetadataOptionsToJson( + XbmcMetadataOptions instance) => + { if (instance.userId case final value?) 'UserId': value, - if (instance.releaseDateFormat case final value?) 'ReleaseDateFormat': value, - if (instance.saveImagePathsInNfo case final value?) 'SaveImagePathsInNfo': value, - if (instance.enablePathSubstitution case final value?) 'EnablePathSubstitution': value, - if (instance.enableExtraThumbsDuplication case final value?) 'EnableExtraThumbsDuplication': value, - }; - -BaseItemDto$ImageBlurHashes _$BaseItemDto$ImageBlurHashesFromJson(Map json) => + if (instance.releaseDateFormat case final value?) + 'ReleaseDateFormat': value, + if (instance.saveImagePathsInNfo case final value?) + 'SaveImagePathsInNfo': value, + if (instance.enablePathSubstitution case final value?) + 'EnablePathSubstitution': value, + if (instance.enableExtraThumbsDuplication case final value?) + 'EnableExtraThumbsDuplication': value, + }; + +BaseItemDto$ImageBlurHashes _$BaseItemDto$ImageBlurHashesFromJson( + Map json) => BaseItemDto$ImageBlurHashes( primary: json['Primary'] as Map?, art: json['Art'] as Map?, @@ -5717,7 +8019,9 @@ BaseItemDto$ImageBlurHashes _$BaseItemDto$ImageBlurHashesFromJson(Map?, ); -Map _$BaseItemDto$ImageBlurHashesToJson(BaseItemDto$ImageBlurHashes instance) => { +Map _$BaseItemDto$ImageBlurHashesToJson( + BaseItemDto$ImageBlurHashes instance) => + { if (instance.primary case final value?) 'Primary': value, if (instance.art case final value?) 'Art': value, if (instance.backdrop case final value?) 'Backdrop': value, @@ -5733,7 +8037,8 @@ Map _$BaseItemDto$ImageBlurHashesToJson(BaseItemDto$ImageBlurHa if (instance.profile case final value?) 'Profile': value, }; -BaseItemPerson$ImageBlurHashes _$BaseItemPerson$ImageBlurHashesFromJson(Map json) => +BaseItemPerson$ImageBlurHashes _$BaseItemPerson$ImageBlurHashesFromJson( + Map json) => BaseItemPerson$ImageBlurHashes( primary: json['Primary'] as Map?, art: json['Art'] as Map?, @@ -5750,7 +8055,8 @@ BaseItemPerson$ImageBlurHashes _$BaseItemPerson$ImageBlurHashesFromJson(Map?, ); -Map _$BaseItemPerson$ImageBlurHashesToJson(BaseItemPerson$ImageBlurHashes instance) => +Map _$BaseItemPerson$ImageBlurHashesToJson( + BaseItemPerson$ImageBlurHashes instance) => { if (instance.primary case final value?) 'Primary': value, if (instance.art case final value?) 'Art': value, diff --git a/lib/models/account_model.freezed.dart b/lib/models/account_model.freezed.dart index c382cb61f..dd38a09ea 100644 --- a/lib/models/account_model.freezed.dart +++ b/lib/models/account_model.freezed.dart @@ -48,7 +48,8 @@ mixin _$AccountModel implements DiagnosticableTreeMixin { @JsonKey(includeFromJson: false, includeToJson: false) @pragma('vm:prefer-inline') $AccountModelCopyWith get copyWith => - _$AccountModelCopyWithImpl(this as AccountModel, _$identity); + _$AccountModelCopyWithImpl( + this as AccountModel, _$identity); /// Serializes this AccountModel to a JSON map. Map toJson(); @@ -70,7 +71,8 @@ mixin _$AccountModel implements DiagnosticableTreeMixin { ..add(DiagnosticsProperty('searchQueryHistory', searchQueryHistory)) ..add(DiagnosticsProperty('quickConnectState', quickConnectState)) ..add(DiagnosticsProperty('libraryFilters', libraryFilters)) - ..add(DiagnosticsProperty('updateNotificationsEnabled', updateNotificationsEnabled)) + ..add(DiagnosticsProperty( + 'updateNotificationsEnabled', updateNotificationsEnabled)) ..add(DiagnosticsProperty('seerrRequestsEnabled', seerrRequestsEnabled)) ..add(DiagnosticsProperty('includeHiddenViews', includeHiddenViews)) ..add(DiagnosticsProperty('policy', policy)) @@ -89,7 +91,9 @@ mixin _$AccountModel implements DiagnosticableTreeMixin { /// @nodoc abstract mixin class $AccountModelCopyWith<$Res> { - factory $AccountModelCopyWith(AccountModel value, $Res Function(AccountModel) _then) = _$AccountModelCopyWithImpl; + factory $AccountModelCopyWith( + AccountModel value, $Res Function(AccountModel) _then) = + _$AccountModelCopyWithImpl; @useResult $Res call( {String name, @@ -109,10 +113,13 @@ abstract mixin class $AccountModelCopyWith<$Res> { bool seerrRequestsEnabled, bool includeHiddenViews, @JsonKey(includeFromJson: false, includeToJson: false) UserPolicy? policy, - @JsonKey(includeFromJson: false, includeToJson: false) ServerConfiguration? serverConfiguration, - @JsonKey(includeFromJson: false, includeToJson: false) UserConfiguration? userConfiguration, + @JsonKey(includeFromJson: false, includeToJson: false) + ServerConfiguration? serverConfiguration, + @JsonKey(includeFromJson: false, includeToJson: false) + UserConfiguration? userConfiguration, @JsonKey(includeFromJson: false, includeToJson: false) bool? hasPassword, - @JsonKey(includeFromJson: false, includeToJson: false) bool? hasConfiguredPassword, + @JsonKey(includeFromJson: false, includeToJson: false) + bool? hasConfiguredPassword, UserSettings? userSettings}); $CredentialsModelCopyWith<$Res> get credentials; @@ -266,7 +273,8 @@ class _$AccountModelCopyWithImpl<$Res> implements $AccountModelCopyWith<$Res> { return null; } - return $SeerrCredentialsModelCopyWith<$Res>(_self.seerrCredentials!, (value) { + return $SeerrCredentialsModelCopyWith<$Res>(_self.seerrCredentials!, + (value) { return _then(_self.copyWith(seerrCredentials: value)); }); } @@ -396,11 +404,16 @@ extension AccountModelPatterns on AccountModel { bool updateNotificationsEnabled, bool seerrRequestsEnabled, bool includeHiddenViews, - @JsonKey(includeFromJson: false, includeToJson: false) UserPolicy? policy, - @JsonKey(includeFromJson: false, includeToJson: false) ServerConfiguration? serverConfiguration, - @JsonKey(includeFromJson: false, includeToJson: false) UserConfiguration? userConfiguration, - @JsonKey(includeFromJson: false, includeToJson: false) bool? hasPassword, - @JsonKey(includeFromJson: false, includeToJson: false) bool? hasConfiguredPassword, + @JsonKey(includeFromJson: false, includeToJson: false) + UserPolicy? policy, + @JsonKey(includeFromJson: false, includeToJson: false) + ServerConfiguration? serverConfiguration, + @JsonKey(includeFromJson: false, includeToJson: false) + UserConfiguration? userConfiguration, + @JsonKey(includeFromJson: false, includeToJson: false) + bool? hasPassword, + @JsonKey(includeFromJson: false, includeToJson: false) + bool? hasConfiguredPassword, UserSettings? userSettings)? $default, { required TResult orElse(), @@ -468,11 +481,16 @@ extension AccountModelPatterns on AccountModel { bool updateNotificationsEnabled, bool seerrRequestsEnabled, bool includeHiddenViews, - @JsonKey(includeFromJson: false, includeToJson: false) UserPolicy? policy, - @JsonKey(includeFromJson: false, includeToJson: false) ServerConfiguration? serverConfiguration, - @JsonKey(includeFromJson: false, includeToJson: false) UserConfiguration? userConfiguration, - @JsonKey(includeFromJson: false, includeToJson: false) bool? hasPassword, - @JsonKey(includeFromJson: false, includeToJson: false) bool? hasConfiguredPassword, + @JsonKey(includeFromJson: false, includeToJson: false) + UserPolicy? policy, + @JsonKey(includeFromJson: false, includeToJson: false) + ServerConfiguration? serverConfiguration, + @JsonKey(includeFromJson: false, includeToJson: false) + UserConfiguration? userConfiguration, + @JsonKey(includeFromJson: false, includeToJson: false) + bool? hasPassword, + @JsonKey(includeFromJson: false, includeToJson: false) + bool? hasConfiguredPassword, UserSettings? userSettings) $default, ) { @@ -538,11 +556,16 @@ extension AccountModelPatterns on AccountModel { bool updateNotificationsEnabled, bool seerrRequestsEnabled, bool includeHiddenViews, - @JsonKey(includeFromJson: false, includeToJson: false) UserPolicy? policy, - @JsonKey(includeFromJson: false, includeToJson: false) ServerConfiguration? serverConfiguration, - @JsonKey(includeFromJson: false, includeToJson: false) UserConfiguration? userConfiguration, - @JsonKey(includeFromJson: false, includeToJson: false) bool? hasPassword, - @JsonKey(includeFromJson: false, includeToJson: false) bool? hasConfiguredPassword, + @JsonKey(includeFromJson: false, includeToJson: false) + UserPolicy? policy, + @JsonKey(includeFromJson: false, includeToJson: false) + ServerConfiguration? serverConfiguration, + @JsonKey(includeFromJson: false, includeToJson: false) + UserConfiguration? userConfiguration, + @JsonKey(includeFromJson: false, includeToJson: false) + bool? hasPassword, + @JsonKey(includeFromJson: false, includeToJson: false) + bool? hasConfiguredPassword, UserSettings? userSettings)? $default, ) { @@ -599,16 +622,20 @@ class _AccountModel extends AccountModel with DiagnosticableTreeMixin { this.seerrRequestsEnabled = false, this.includeHiddenViews = false, @JsonKey(includeFromJson: false, includeToJson: false) this.policy, - @JsonKey(includeFromJson: false, includeToJson: false) this.serverConfiguration, - @JsonKey(includeFromJson: false, includeToJson: false) this.userConfiguration, + @JsonKey(includeFromJson: false, includeToJson: false) + this.serverConfiguration, + @JsonKey(includeFromJson: false, includeToJson: false) + this.userConfiguration, @JsonKey(includeFromJson: false, includeToJson: false) this.hasPassword, - @JsonKey(includeFromJson: false, includeToJson: false) this.hasConfiguredPassword, + @JsonKey(includeFromJson: false, includeToJson: false) + this.hasConfiguredPassword, this.userSettings}) : _latestItemsExcludes = latestItemsExcludes, _searchQueryHistory = searchQueryHistory, _libraryFilters = libraryFilters, super._(); - factory _AccountModel.fromJson(Map json) => _$AccountModelFromJson(json); + factory _AccountModel.fromJson(Map json) => + _$AccountModelFromJson(json); @override final String name; @@ -636,7 +663,8 @@ class _AccountModel extends AccountModel with DiagnosticableTreeMixin { @override @JsonKey() List get latestItemsExcludes { - if (_latestItemsExcludes is EqualUnmodifiableListView) return _latestItemsExcludes; + if (_latestItemsExcludes is EqualUnmodifiableListView) + return _latestItemsExcludes; // ignore: implicit_dynamic_type return EqualUnmodifiableListView(_latestItemsExcludes); } @@ -645,7 +673,8 @@ class _AccountModel extends AccountModel with DiagnosticableTreeMixin { @override @JsonKey() List get searchQueryHistory { - if (_searchQueryHistory is EqualUnmodifiableListView) return _searchQueryHistory; + if (_searchQueryHistory is EqualUnmodifiableListView) + return _searchQueryHistory; // ignore: implicit_dynamic_type return EqualUnmodifiableListView(_searchQueryHistory); } @@ -695,7 +724,8 @@ class _AccountModel extends AccountModel with DiagnosticableTreeMixin { @override @JsonKey(includeFromJson: false, includeToJson: false) @pragma('vm:prefer-inline') - _$AccountModelCopyWith<_AccountModel> get copyWith => __$AccountModelCopyWithImpl<_AccountModel>(this, _$identity); + _$AccountModelCopyWith<_AccountModel> get copyWith => + __$AccountModelCopyWithImpl<_AccountModel>(this, _$identity); @override Map toJson() { @@ -721,7 +751,8 @@ class _AccountModel extends AccountModel with DiagnosticableTreeMixin { ..add(DiagnosticsProperty('searchQueryHistory', searchQueryHistory)) ..add(DiagnosticsProperty('quickConnectState', quickConnectState)) ..add(DiagnosticsProperty('libraryFilters', libraryFilters)) - ..add(DiagnosticsProperty('updateNotificationsEnabled', updateNotificationsEnabled)) + ..add(DiagnosticsProperty( + 'updateNotificationsEnabled', updateNotificationsEnabled)) ..add(DiagnosticsProperty('seerrRequestsEnabled', seerrRequestsEnabled)) ..add(DiagnosticsProperty('includeHiddenViews', includeHiddenViews)) ..add(DiagnosticsProperty('policy', policy)) @@ -739,8 +770,11 @@ class _AccountModel extends AccountModel with DiagnosticableTreeMixin { } /// @nodoc -abstract mixin class _$AccountModelCopyWith<$Res> implements $AccountModelCopyWith<$Res> { - factory _$AccountModelCopyWith(_AccountModel value, $Res Function(_AccountModel) _then) = __$AccountModelCopyWithImpl; +abstract mixin class _$AccountModelCopyWith<$Res> + implements $AccountModelCopyWith<$Res> { + factory _$AccountModelCopyWith( + _AccountModel value, $Res Function(_AccountModel) _then) = + __$AccountModelCopyWithImpl; @override @useResult $Res call( @@ -761,10 +795,13 @@ abstract mixin class _$AccountModelCopyWith<$Res> implements $AccountModelCopyWi bool seerrRequestsEnabled, bool includeHiddenViews, @JsonKey(includeFromJson: false, includeToJson: false) UserPolicy? policy, - @JsonKey(includeFromJson: false, includeToJson: false) ServerConfiguration? serverConfiguration, - @JsonKey(includeFromJson: false, includeToJson: false) UserConfiguration? userConfiguration, + @JsonKey(includeFromJson: false, includeToJson: false) + ServerConfiguration? serverConfiguration, + @JsonKey(includeFromJson: false, includeToJson: false) + UserConfiguration? userConfiguration, @JsonKey(includeFromJson: false, includeToJson: false) bool? hasPassword, - @JsonKey(includeFromJson: false, includeToJson: false) bool? hasConfiguredPassword, + @JsonKey(includeFromJson: false, includeToJson: false) + bool? hasConfiguredPassword, UserSettings? userSettings}); @override @@ -776,7 +813,8 @@ abstract mixin class _$AccountModelCopyWith<$Res> implements $AccountModelCopyWi } /// @nodoc -class __$AccountModelCopyWithImpl<$Res> implements _$AccountModelCopyWith<$Res> { +class __$AccountModelCopyWithImpl<$Res> + implements _$AccountModelCopyWith<$Res> { __$AccountModelCopyWithImpl(this._self, this._then); final _AccountModel _self; @@ -921,7 +959,8 @@ class __$AccountModelCopyWithImpl<$Res> implements _$AccountModelCopyWith<$Res> return null; } - return $SeerrCredentialsModelCopyWith<$Res>(_self.seerrCredentials!, (value) { + return $SeerrCredentialsModelCopyWith<$Res>(_self.seerrCredentials!, + (value) { return _then(_self.copyWith(seerrCredentials: value)); }); } @@ -951,7 +990,8 @@ mixin _$UserSettings implements DiagnosticableTreeMixin { @JsonKey(includeFromJson: false, includeToJson: false) @pragma('vm:prefer-inline') $UserSettingsCopyWith get copyWith => - _$UserSettingsCopyWithImpl(this as UserSettings, _$identity); + _$UserSettingsCopyWithImpl( + this as UserSettings, _$identity); /// Serializes this UserSettings to a JSON map. Map toJson(); @@ -972,7 +1012,9 @@ mixin _$UserSettings implements DiagnosticableTreeMixin { /// @nodoc abstract mixin class $UserSettingsCopyWith<$Res> { - factory $UserSettingsCopyWith(UserSettings value, $Res Function(UserSettings) _then) = _$UserSettingsCopyWithImpl; + factory $UserSettingsCopyWith( + UserSettings value, $Res Function(UserSettings) _then) = + _$UserSettingsCopyWithImpl; @useResult $Res call({Duration skipForwardDuration, Duration skipBackDuration}); } @@ -1098,7 +1140,8 @@ extension UserSettingsPatterns on UserSettings { @optionalTypeArgs TResult maybeWhen( - TResult Function(Duration skipForwardDuration, Duration skipBackDuration)? $default, { + TResult Function(Duration skipForwardDuration, Duration skipBackDuration)? + $default, { required TResult orElse(), }) { final _that = this; @@ -1125,7 +1168,8 @@ extension UserSettingsPatterns on UserSettings { @optionalTypeArgs TResult when( - TResult Function(Duration skipForwardDuration, Duration skipBackDuration) $default, + TResult Function(Duration skipForwardDuration, Duration skipBackDuration) + $default, ) { final _that = this; switch (_that) { @@ -1150,7 +1194,8 @@ extension UserSettingsPatterns on UserSettings { @optionalTypeArgs TResult? whenOrNull( - TResult? Function(Duration skipForwardDuration, Duration skipBackDuration)? $default, + TResult? Function(Duration skipForwardDuration, Duration skipBackDuration)? + $default, ) { final _that = this; switch (_that) { @@ -1166,8 +1211,10 @@ extension UserSettingsPatterns on UserSettings { @JsonSerializable() class _UserSettings with DiagnosticableTreeMixin implements UserSettings { _UserSettings( - {this.skipForwardDuration = const Duration(seconds: 30), this.skipBackDuration = const Duration(seconds: 10)}); - factory _UserSettings.fromJson(Map json) => _$UserSettingsFromJson(json); + {this.skipForwardDuration = const Duration(seconds: 30), + this.skipBackDuration = const Duration(seconds: 10)}); + factory _UserSettings.fromJson(Map json) => + _$UserSettingsFromJson(json); @override @JsonKey() @@ -1181,7 +1228,8 @@ class _UserSettings with DiagnosticableTreeMixin implements UserSettings { @override @JsonKey(includeFromJson: false, includeToJson: false) @pragma('vm:prefer-inline') - _$UserSettingsCopyWith<_UserSettings> get copyWith => __$UserSettingsCopyWithImpl<_UserSettings>(this, _$identity); + _$UserSettingsCopyWith<_UserSettings> get copyWith => + __$UserSettingsCopyWithImpl<_UserSettings>(this, _$identity); @override Map toJson() { @@ -1205,15 +1253,19 @@ class _UserSettings with DiagnosticableTreeMixin implements UserSettings { } /// @nodoc -abstract mixin class _$UserSettingsCopyWith<$Res> implements $UserSettingsCopyWith<$Res> { - factory _$UserSettingsCopyWith(_UserSettings value, $Res Function(_UserSettings) _then) = __$UserSettingsCopyWithImpl; +abstract mixin class _$UserSettingsCopyWith<$Res> + implements $UserSettingsCopyWith<$Res> { + factory _$UserSettingsCopyWith( + _UserSettings value, $Res Function(_UserSettings) _then) = + __$UserSettingsCopyWithImpl; @override @useResult $Res call({Duration skipForwardDuration, Duration skipBackDuration}); } /// @nodoc -class __$UserSettingsCopyWithImpl<$Res> implements _$UserSettingsCopyWith<$Res> { +class __$UserSettingsCopyWithImpl<$Res> + implements _$UserSettingsCopyWith<$Res> { __$UserSettingsCopyWithImpl(this._self, this._then); final _UserSettings _self; diff --git a/lib/models/account_model.g.dart b/lib/models/account_model.g.dart index 9e8113d5c..502f1044e 100644 --- a/lib/models/account_model.g.dart +++ b/lib/models/account_model.g.dart @@ -6,34 +6,47 @@ part of 'account_model.dart'; // JsonSerializableGenerator // ************************************************************************** -_AccountModel _$AccountModelFromJson(Map json) => _AccountModel( +_AccountModel _$AccountModelFromJson(Map json) => + _AccountModel( name: json['name'] as String, id: json['id'] as String, avatar: json['avatar'] as String, lastUsed: DateTime.parse(json['lastUsed'] as String), - authMethod: $enumDecodeNullable(_$AuthenticationEnumMap, json['authMethod']) ?? Authentication.autoLogin, + authMethod: + $enumDecodeNullable(_$AuthenticationEnumMap, json['authMethod']) ?? + Authentication.autoLogin, askForAuthOnLaunch: json['askForAuthOnLaunch'] as bool? ?? false, localPin: json['localPin'] as String? ?? "", credentials: const CredentialsConverter().fromJson(json['credentials']), seerrCredentials: json['seerrCredentials'] == null ? null - : SeerrCredentialsModel.fromJson(json['seerrCredentials'] as Map), - latestItemsExcludes: - (json['latestItemsExcludes'] as List?)?.map((e) => e as String).toList() ?? const [], - searchQueryHistory: (json['searchQueryHistory'] as List?)?.map((e) => e as String).toList() ?? const [], + : SeerrCredentialsModel.fromJson( + json['seerrCredentials'] as Map), + latestItemsExcludes: (json['latestItemsExcludes'] as List?) + ?.map((e) => e as String) + .toList() ?? + const [], + searchQueryHistory: (json['searchQueryHistory'] as List?) + ?.map((e) => e as String) + .toList() ?? + const [], quickConnectState: json['quickConnectState'] as bool? ?? false, libraryFilters: (json['libraryFilters'] as List?) - ?.map((e) => LibraryFiltersModel.fromJson(e as Map)) + ?.map((e) => + LibraryFiltersModel.fromJson(e as Map)) .toList() ?? const [], - updateNotificationsEnabled: json['updateNotificationsEnabled'] as bool? ?? false, + updateNotificationsEnabled: + json['updateNotificationsEnabled'] as bool? ?? false, seerrRequestsEnabled: json['seerrRequestsEnabled'] as bool? ?? false, includeHiddenViews: json['includeHiddenViews'] as bool? ?? false, - userSettings: - json['userSettings'] == null ? null : UserSettings.fromJson(json['userSettings'] as Map), + userSettings: json['userSettings'] == null + ? null + : UserSettings.fromJson(json['userSettings'] as Map), ); -Map _$AccountModelToJson(_AccountModel instance) => { +Map _$AccountModelToJson(_AccountModel instance) => + { 'name': instance.name, 'id': instance.id, 'avatar': instance.avatar, @@ -60,16 +73,19 @@ const _$AuthenticationEnumMap = { Authentication.none: 'none', }; -_UserSettings _$UserSettingsFromJson(Map json) => _UserSettings( +_UserSettings _$UserSettingsFromJson(Map json) => + _UserSettings( skipForwardDuration: json['skipForwardDuration'] == null ? const Duration(seconds: 30) - : Duration(microseconds: (json['skipForwardDuration'] as num).toInt()), + : Duration( + microseconds: (json['skipForwardDuration'] as num).toInt()), skipBackDuration: json['skipBackDuration'] == null ? const Duration(seconds: 10) : Duration(microseconds: (json['skipBackDuration'] as num).toInt()), ); -Map _$UserSettingsToJson(_UserSettings instance) => { +Map _$UserSettingsToJson(_UserSettings instance) => + { 'skipForwardDuration': instance.skipForwardDuration.inMicroseconds, 'skipBackDuration': instance.skipBackDuration.inMicroseconds, }; diff --git a/lib/models/boxset_model.mapper.dart b/lib/models/boxset_model.mapper.dart index f14fb8765..9cc6cfcc5 100644 --- a/lib/models/boxset_model.mapper.dart +++ b/lib/models/boxset_model.mapper.dart @@ -25,31 +25,42 @@ class BoxSetModelMapper extends SubClassMapperBase { final String id = 'BoxSetModel'; static List _$items(BoxSetModel v) => v.items; - static const Field> _f$items = Field('items', _$items, opt: true, def: const []); + static const Field> _f$items = + Field('items', _$items, opt: true, def: const []); static String _$name(BoxSetModel v) => v.name; static const Field _f$name = Field('name', _$name); static String _$id(BoxSetModel v) => v.id; static const Field _f$id = Field('id', _$id); static OverviewModel _$overview(BoxSetModel v) => v.overview; - static const Field _f$overview = Field('overview', _$overview); + static const Field _f$overview = + Field('overview', _$overview); static String? _$parentId(BoxSetModel v) => v.parentId; - static const Field _f$parentId = Field('parentId', _$parentId); + static const Field _f$parentId = + Field('parentId', _$parentId); static String? _$playlistId(BoxSetModel v) => v.playlistId; - static const Field _f$playlistId = Field('playlistId', _$playlistId); + static const Field _f$playlistId = + Field('playlistId', _$playlistId); static ImagesData? _$images(BoxSetModel v) => v.images; - static const Field _f$images = Field('images', _$images); + static const Field _f$images = + Field('images', _$images); static int? _$childCount(BoxSetModel v) => v.childCount; - static const Field _f$childCount = Field('childCount', _$childCount); + static const Field _f$childCount = + Field('childCount', _$childCount); static double? _$primaryRatio(BoxSetModel v) => v.primaryRatio; - static const Field _f$primaryRatio = Field('primaryRatio', _$primaryRatio); + static const Field _f$primaryRatio = + Field('primaryRatio', _$primaryRatio); static UserData _$userData(BoxSetModel v) => v.userData; - static const Field _f$userData = Field('userData', _$userData); + static const Field _f$userData = + Field('userData', _$userData); static bool? _$canDelete(BoxSetModel v) => v.canDelete; - static const Field _f$canDelete = Field('canDelete', _$canDelete); + static const Field _f$canDelete = + Field('canDelete', _$canDelete); static bool? _$canDownload(BoxSetModel v) => v.canDownload; - static const Field _f$canDownload = Field('canDownload', _$canDownload); + static const Field _f$canDownload = + Field('canDownload', _$canDownload); static BaseItemKind? _$jellyType(BoxSetModel v) => v.jellyType; - static const Field _f$jellyType = Field('jellyType', _$jellyType, opt: true); + static const Field _f$jellyType = + Field('jellyType', _$jellyType, opt: true); @override final MappableFields fields = const { @@ -75,7 +86,8 @@ class BoxSetModelMapper extends SubClassMapperBase { @override final dynamic discriminatorValue = 'BoxSetModel'; @override - late final ClassMapperBase superMapper = ItemBaseModelMapper.ensureInitialized(); + late final ClassMapperBase superMapper = + ItemBaseModelMapper.ensureInitialized(); static BoxSetModel _instantiate(DecodingData data) { return BoxSetModel( @@ -100,16 +112,20 @@ class BoxSetModelMapper extends SubClassMapperBase { mixin BoxSetModelMappable { BoxSetModelCopyWith get copyWith => - _BoxSetModelCopyWithImpl(this as BoxSetModel, $identity, $identity); + _BoxSetModelCopyWithImpl( + this as BoxSetModel, $identity, $identity); } -extension BoxSetModelValueCopy<$R, $Out> on ObjectCopyWith<$R, BoxSetModel, $Out> { +extension BoxSetModelValueCopy<$R, $Out> + on ObjectCopyWith<$R, BoxSetModel, $Out> { BoxSetModelCopyWith<$R, BoxSetModel, $Out> get $asBoxSetModel => $base.as((v, t, t2) => _BoxSetModelCopyWithImpl<$R, $Out>(v, t, t2)); } -abstract class BoxSetModelCopyWith<$R, $In extends BoxSetModel, $Out> implements ItemBaseModelCopyWith<$R, $In, $Out> { - ListCopyWith<$R, ItemBaseModel, ItemBaseModelCopyWith<$R, ItemBaseModel, ItemBaseModel>> get items; +abstract class BoxSetModelCopyWith<$R, $In extends BoxSetModel, $Out> + implements ItemBaseModelCopyWith<$R, $In, $Out> { + ListCopyWith<$R, ItemBaseModel, + ItemBaseModelCopyWith<$R, ItemBaseModel, ItemBaseModel>> get items; @override OverviewModelCopyWith<$R, OverviewModel, OverviewModel> get overview; @override @@ -132,20 +148,25 @@ abstract class BoxSetModelCopyWith<$R, $In extends BoxSetModel, $Out> implements BoxSetModelCopyWith<$R2, $In, $Out2> $chain<$R2, $Out2>(Then<$Out2, $R2> t); } -class _BoxSetModelCopyWithImpl<$R, $Out> extends ClassCopyWithBase<$R, BoxSetModel, $Out> +class _BoxSetModelCopyWithImpl<$R, $Out> + extends ClassCopyWithBase<$R, BoxSetModel, $Out> implements BoxSetModelCopyWith<$R, BoxSetModel, $Out> { _BoxSetModelCopyWithImpl(super.value, super.then, super.then2); @override - late final ClassMapperBase $mapper = BoxSetModelMapper.ensureInitialized(); + late final ClassMapperBase $mapper = + BoxSetModelMapper.ensureInitialized(); @override - ListCopyWith<$R, ItemBaseModel, ItemBaseModelCopyWith<$R, ItemBaseModel, ItemBaseModel>> get items => - ListCopyWith($value.items, (v, t) => v.copyWith.$chain(t), (v) => call(items: v)); + ListCopyWith<$R, ItemBaseModel, + ItemBaseModelCopyWith<$R, ItemBaseModel, ItemBaseModel>> + get items => ListCopyWith( + $value.items, (v, t) => v.copyWith.$chain(t), (v) => call(items: v)); @override OverviewModelCopyWith<$R, OverviewModel, OverviewModel> get overview => $value.overview.copyWith.$chain((v) => call(overview: v)); @override - UserDataCopyWith<$R, UserData, UserData> get userData => $value.userData.copyWith.$chain((v) => call(userData: v)); + UserDataCopyWith<$R, UserData, UserData> get userData => + $value.userData.copyWith.$chain((v) => call(userData: v)); @override $R call( {List? items, @@ -193,6 +214,7 @@ class _BoxSetModelCopyWithImpl<$R, $Out> extends ClassCopyWithBase<$R, BoxSetMod jellyType: data.get(#jellyType, or: $value.jellyType)); @override - BoxSetModelCopyWith<$R2, BoxSetModel, $Out2> $chain<$R2, $Out2>(Then<$Out2, $R2> t) => + BoxSetModelCopyWith<$R2, BoxSetModel, $Out2> $chain<$R2, $Out2>( + Then<$Out2, $R2> t) => _BoxSetModelCopyWithImpl<$R2, $Out2>($value, $cast, t); } diff --git a/lib/models/credentials_model.freezed.dart b/lib/models/credentials_model.freezed.dart index 07ec9359d..c0950c388 100644 --- a/lib/models/credentials_model.freezed.dart +++ b/lib/models/credentials_model.freezed.dart @@ -26,7 +26,8 @@ mixin _$CredentialsModel implements DiagnosticableTreeMixin { @JsonKey(includeFromJson: false, includeToJson: false) @pragma('vm:prefer-inline') $CredentialsModelCopyWith get copyWith => - _$CredentialsModelCopyWithImpl(this as CredentialsModel, _$identity); + _$CredentialsModelCopyWithImpl( + this as CredentialsModel, _$identity); /// Serializes this CredentialsModel to a JSON map. Map toJson(); @@ -51,14 +52,22 @@ mixin _$CredentialsModel implements DiagnosticableTreeMixin { /// @nodoc abstract mixin class $CredentialsModelCopyWith<$Res> { - factory $CredentialsModelCopyWith(CredentialsModel value, $Res Function(CredentialsModel) _then) = + factory $CredentialsModelCopyWith( + CredentialsModel value, $Res Function(CredentialsModel) _then) = _$CredentialsModelCopyWithImpl; @useResult - $Res call({String token, String url, String? localUrl, String serverName, String serverId, String deviceId}); + $Res call( + {String token, + String url, + String? localUrl, + String serverName, + String serverId, + String deviceId}); } /// @nodoc -class _$CredentialsModelCopyWithImpl<$Res> implements $CredentialsModelCopyWith<$Res> { +class _$CredentialsModelCopyWithImpl<$Res> + implements $CredentialsModelCopyWith<$Res> { _$CredentialsModelCopyWithImpl(this._self, this._then); final CredentialsModel _self; @@ -198,14 +207,16 @@ extension CredentialsModelPatterns on CredentialsModel { @optionalTypeArgs TResult maybeWhen({ - TResult Function(String token, String url, String? localUrl, String serverName, String serverId, String deviceId)? + TResult Function(String token, String url, String? localUrl, + String serverName, String serverId, String deviceId)? internal, required TResult orElse(), }) { final _that = this; switch (_that) { case _CredentialsModel() when internal != null: - return internal(_that.token, _that.url, _that.localUrl, _that.serverName, _that.serverId, _that.deviceId); + return internal(_that.token, _that.url, _that.localUrl, + _that.serverName, _that.serverId, _that.deviceId); case _: return orElse(); } @@ -226,14 +237,15 @@ extension CredentialsModelPatterns on CredentialsModel { @optionalTypeArgs TResult when({ - required TResult Function( - String token, String url, String? localUrl, String serverName, String serverId, String deviceId) + required TResult Function(String token, String url, String? localUrl, + String serverName, String serverId, String deviceId) internal, }) { final _that = this; switch (_that) { case _CredentialsModel(): - return internal(_that.token, _that.url, _that.localUrl, _that.serverName, _that.serverId, _that.deviceId); + return internal(_that.token, _that.url, _that.localUrl, + _that.serverName, _that.serverId, _that.deviceId); case _: throw StateError('Unexpected subclass'); } @@ -253,13 +265,15 @@ extension CredentialsModelPatterns on CredentialsModel { @optionalTypeArgs TResult? whenOrNull({ - TResult? Function(String token, String url, String? localUrl, String serverName, String serverId, String deviceId)? + TResult? Function(String token, String url, String? localUrl, + String serverName, String serverId, String deviceId)? internal, }) { final _that = this; switch (_that) { case _CredentialsModel() when internal != null: - return internal(_that.token, _that.url, _that.localUrl, _that.serverName, _that.serverId, _that.deviceId); + return internal(_that.token, _that.url, _that.localUrl, + _that.serverName, _that.serverId, _that.deviceId); case _: return null; } @@ -270,9 +284,15 @@ extension CredentialsModelPatterns on CredentialsModel { @JsonSerializable() class _CredentialsModel extends CredentialsModel with DiagnosticableTreeMixin { _CredentialsModel( - {this.token = "", this.url = "", this.localUrl, this.serverName = "", this.serverId = "", this.deviceId = ""}) + {this.token = "", + this.url = "", + this.localUrl, + this.serverName = "", + this.serverId = "", + this.deviceId = ""}) : super._(); - factory _CredentialsModel.fromJson(Map json) => _$CredentialsModelFromJson(json); + factory _CredentialsModel.fromJson(Map json) => + _$CredentialsModelFromJson(json); @override @JsonKey() @@ -326,16 +346,25 @@ class _CredentialsModel extends CredentialsModel with DiagnosticableTreeMixin { } /// @nodoc -abstract mixin class _$CredentialsModelCopyWith<$Res> implements $CredentialsModelCopyWith<$Res> { - factory _$CredentialsModelCopyWith(_CredentialsModel value, $Res Function(_CredentialsModel) _then) = +abstract mixin class _$CredentialsModelCopyWith<$Res> + implements $CredentialsModelCopyWith<$Res> { + factory _$CredentialsModelCopyWith( + _CredentialsModel value, $Res Function(_CredentialsModel) _then) = __$CredentialsModelCopyWithImpl; @override @useResult - $Res call({String token, String url, String? localUrl, String serverName, String serverId, String deviceId}); + $Res call( + {String token, + String url, + String? localUrl, + String serverName, + String serverId, + String deviceId}); } /// @nodoc -class __$CredentialsModelCopyWithImpl<$Res> implements _$CredentialsModelCopyWith<$Res> { +class __$CredentialsModelCopyWithImpl<$Res> + implements _$CredentialsModelCopyWith<$Res> { __$CredentialsModelCopyWithImpl(this._self, this._then); final _CredentialsModel _self; diff --git a/lib/models/credentials_model.g.dart b/lib/models/credentials_model.g.dart index 8d60f4c31..f4cc23b77 100644 --- a/lib/models/credentials_model.g.dart +++ b/lib/models/credentials_model.g.dart @@ -6,7 +6,8 @@ part of 'credentials_model.dart'; // JsonSerializableGenerator // ************************************************************************** -_CredentialsModel _$CredentialsModelFromJson(Map json) => _CredentialsModel( +_CredentialsModel _$CredentialsModelFromJson(Map json) => + _CredentialsModel( token: json['token'] as String? ?? "", url: json['url'] as String? ?? "", localUrl: json['localUrl'] as String?, @@ -15,7 +16,8 @@ _CredentialsModel _$CredentialsModelFromJson(Map json) => _Cred deviceId: json['deviceId'] as String? ?? "", ); -Map _$CredentialsModelToJson(_CredentialsModel instance) => { +Map _$CredentialsModelToJson(_CredentialsModel instance) => + { 'token': instance.token, 'url': instance.url, 'localUrl': instance.localUrl, diff --git a/lib/models/home_preferences_model.freezed.dart b/lib/models/home_preferences_model.freezed.dart index 2a0fccaae..587e66c11 100644 --- a/lib/models/home_preferences_model.freezed.dart +++ b/lib/models/home_preferences_model.freezed.dart @@ -26,7 +26,8 @@ mixin _$HomePreferencesModel { @JsonKey(includeFromJson: false, includeToJson: false) @pragma('vm:prefer-inline') $HomePreferencesModelCopyWith get copyWith => - _$HomePreferencesModelCopyWithImpl(this as HomePreferencesModel, _$identity); + _$HomePreferencesModelCopyWithImpl( + this as HomePreferencesModel, _$identity); @override String toString() { @@ -36,7 +37,8 @@ mixin _$HomePreferencesModel { /// @nodoc abstract mixin class $HomePreferencesModelCopyWith<$Res> { - factory $HomePreferencesModelCopyWith(HomePreferencesModel value, $Res Function(HomePreferencesModel) _then) = + factory $HomePreferencesModelCopyWith(HomePreferencesModel value, + $Res Function(HomePreferencesModel) _then) = _$HomePreferencesModelCopyWithImpl; @useResult $Res call( @@ -49,7 +51,8 @@ abstract mixin class $HomePreferencesModelCopyWith<$Res> { } /// @nodoc -class _$HomePreferencesModelCopyWithImpl<$Res> implements $HomePreferencesModelCopyWith<$Res> { +class _$HomePreferencesModelCopyWithImpl<$Res> + implements $HomePreferencesModelCopyWith<$Res> { _$HomePreferencesModelCopyWithImpl(this._self, this._then); final HomePreferencesModel _self; @@ -189,16 +192,26 @@ extension HomePreferencesModelPatterns on HomePreferencesModel { @optionalTypeArgs TResult maybeWhen( - TResult Function(List orderedLibraryIds, List latestItemsExcludes, bool hidePlayedInLatest, - List groupedFolders, List availableFolders, bool loading)? + TResult Function( + List orderedLibraryIds, + List latestItemsExcludes, + bool hidePlayedInLatest, + List groupedFolders, + List availableFolders, + bool loading)? $default, { required TResult orElse(), }) { final _that = this; switch (_that) { case _HomePreferencesModel() when $default != null: - return $default(_that.orderedLibraryIds, _that.latestItemsExcludes, _that.hidePlayedInLatest, - _that.groupedFolders, _that.availableFolders, _that.loading); + return $default( + _that.orderedLibraryIds, + _that.latestItemsExcludes, + _that.hidePlayedInLatest, + _that.groupedFolders, + _that.availableFolders, + _that.loading); case _: return orElse(); } @@ -219,15 +232,25 @@ extension HomePreferencesModelPatterns on HomePreferencesModel { @optionalTypeArgs TResult when( - TResult Function(List orderedLibraryIds, List latestItemsExcludes, bool hidePlayedInLatest, - List groupedFolders, List availableFolders, bool loading) + TResult Function( + List orderedLibraryIds, + List latestItemsExcludes, + bool hidePlayedInLatest, + List groupedFolders, + List availableFolders, + bool loading) $default, ) { final _that = this; switch (_that) { case _HomePreferencesModel(): - return $default(_that.orderedLibraryIds, _that.latestItemsExcludes, _that.hidePlayedInLatest, - _that.groupedFolders, _that.availableFolders, _that.loading); + return $default( + _that.orderedLibraryIds, + _that.latestItemsExcludes, + _that.hidePlayedInLatest, + _that.groupedFolders, + _that.availableFolders, + _that.loading); case _: throw StateError('Unexpected subclass'); } @@ -247,15 +270,25 @@ extension HomePreferencesModelPatterns on HomePreferencesModel { @optionalTypeArgs TResult? whenOrNull( - TResult? Function(List orderedLibraryIds, List latestItemsExcludes, bool hidePlayedInLatest, - List groupedFolders, List availableFolders, bool loading)? + TResult? Function( + List orderedLibraryIds, + List latestItemsExcludes, + bool hidePlayedInLatest, + List groupedFolders, + List availableFolders, + bool loading)? $default, ) { final _that = this; switch (_that) { case _HomePreferencesModel() when $default != null: - return $default(_that.orderedLibraryIds, _that.latestItemsExcludes, _that.hidePlayedInLatest, - _that.groupedFolders, _that.availableFolders, _that.loading); + return $default( + _that.orderedLibraryIds, + _that.latestItemsExcludes, + _that.hidePlayedInLatest, + _that.groupedFolders, + _that.availableFolders, + _that.loading); case _: return null; } @@ -282,7 +315,8 @@ class _HomePreferencesModel extends HomePreferencesModel { @override @JsonKey() List get orderedLibraryIds { - if (_orderedLibraryIds is EqualUnmodifiableListView) return _orderedLibraryIds; + if (_orderedLibraryIds is EqualUnmodifiableListView) + return _orderedLibraryIds; // ignore: implicit_dynamic_type return EqualUnmodifiableListView(_orderedLibraryIds); } @@ -291,7 +325,8 @@ class _HomePreferencesModel extends HomePreferencesModel { @override @JsonKey() List get latestItemsExcludes { - if (_latestItemsExcludes is EqualUnmodifiableListView) return _latestItemsExcludes; + if (_latestItemsExcludes is EqualUnmodifiableListView) + return _latestItemsExcludes; // ignore: implicit_dynamic_type return EqualUnmodifiableListView(_latestItemsExcludes); } @@ -312,7 +347,8 @@ class _HomePreferencesModel extends HomePreferencesModel { @override @JsonKey() List get availableFolders { - if (_availableFolders is EqualUnmodifiableListView) return _availableFolders; + if (_availableFolders is EqualUnmodifiableListView) + return _availableFolders; // ignore: implicit_dynamic_type return EqualUnmodifiableListView(_availableFolders); } @@ -327,7 +363,8 @@ class _HomePreferencesModel extends HomePreferencesModel { @JsonKey(includeFromJson: false, includeToJson: false) @pragma('vm:prefer-inline') _$HomePreferencesModelCopyWith<_HomePreferencesModel> get copyWith => - __$HomePreferencesModelCopyWithImpl<_HomePreferencesModel>(this, _$identity); + __$HomePreferencesModelCopyWithImpl<_HomePreferencesModel>( + this, _$identity); @override String toString() { @@ -336,8 +373,10 @@ class _HomePreferencesModel extends HomePreferencesModel { } /// @nodoc -abstract mixin class _$HomePreferencesModelCopyWith<$Res> implements $HomePreferencesModelCopyWith<$Res> { - factory _$HomePreferencesModelCopyWith(_HomePreferencesModel value, $Res Function(_HomePreferencesModel) _then) = +abstract mixin class _$HomePreferencesModelCopyWith<$Res> + implements $HomePreferencesModelCopyWith<$Res> { + factory _$HomePreferencesModelCopyWith(_HomePreferencesModel value, + $Res Function(_HomePreferencesModel) _then) = __$HomePreferencesModelCopyWithImpl; @override @useResult @@ -351,7 +390,8 @@ abstract mixin class _$HomePreferencesModelCopyWith<$Res> implements $HomePrefer } /// @nodoc -class __$HomePreferencesModelCopyWithImpl<$Res> implements _$HomePreferencesModelCopyWith<$Res> { +class __$HomePreferencesModelCopyWithImpl<$Res> + implements _$HomePreferencesModelCopyWith<$Res> { __$HomePreferencesModelCopyWithImpl(this._self, this._then); final _HomePreferencesModel _self; diff --git a/lib/models/item_base_model.mapper.dart b/lib/models/item_base_model.mapper.dart index 9c3f8fe69..98db7f01b 100644 --- a/lib/models/item_base_model.mapper.dart +++ b/lib/models/item_base_model.mapper.dart @@ -27,25 +27,35 @@ class ItemBaseModelMapper extends ClassMapperBase { static String _$id(ItemBaseModel v) => v.id; static const Field _f$id = Field('id', _$id); static OverviewModel _$overview(ItemBaseModel v) => v.overview; - static const Field _f$overview = Field('overview', _$overview); + static const Field _f$overview = + Field('overview', _$overview); static String? _$parentId(ItemBaseModel v) => v.parentId; - static const Field _f$parentId = Field('parentId', _$parentId); + static const Field _f$parentId = + Field('parentId', _$parentId); static String? _$playlistId(ItemBaseModel v) => v.playlistId; - static const Field _f$playlistId = Field('playlistId', _$playlistId); + static const Field _f$playlistId = + Field('playlistId', _$playlistId); static ImagesData? _$images(ItemBaseModel v) => v.images; - static const Field _f$images = Field('images', _$images); + static const Field _f$images = + Field('images', _$images); static int? _$childCount(ItemBaseModel v) => v.childCount; - static const Field _f$childCount = Field('childCount', _$childCount); + static const Field _f$childCount = + Field('childCount', _$childCount); static double? _$primaryRatio(ItemBaseModel v) => v.primaryRatio; - static const Field _f$primaryRatio = Field('primaryRatio', _$primaryRatio); + static const Field _f$primaryRatio = + Field('primaryRatio', _$primaryRatio); static UserData _$userData(ItemBaseModel v) => v.userData; - static const Field _f$userData = Field('userData', _$userData); + static const Field _f$userData = + Field('userData', _$userData); static bool? _$canDownload(ItemBaseModel v) => v.canDownload; - static const Field _f$canDownload = Field('canDownload', _$canDownload); + static const Field _f$canDownload = + Field('canDownload', _$canDownload); static bool? _$canDelete(ItemBaseModel v) => v.canDelete; - static const Field _f$canDelete = Field('canDelete', _$canDelete); + static const Field _f$canDelete = + Field('canDelete', _$canDelete); static dto.BaseItemKind? _$jellyType(ItemBaseModel v) => v.jellyType; - static const Field _f$jellyType = Field('jellyType', _$jellyType); + static const Field _f$jellyType = + Field('jellyType', _$jellyType); @override final MappableFields fields = const { @@ -86,16 +96,19 @@ class ItemBaseModelMapper extends ClassMapperBase { } mixin ItemBaseModelMappable { - ItemBaseModelCopyWith get copyWith => - _ItemBaseModelCopyWithImpl(this as ItemBaseModel, $identity, $identity); + ItemBaseModelCopyWith + get copyWith => _ItemBaseModelCopyWithImpl( + this as ItemBaseModel, $identity, $identity); } -extension ItemBaseModelValueCopy<$R, $Out> on ObjectCopyWith<$R, ItemBaseModel, $Out> { +extension ItemBaseModelValueCopy<$R, $Out> + on ObjectCopyWith<$R, ItemBaseModel, $Out> { ItemBaseModelCopyWith<$R, ItemBaseModel, $Out> get $asItemBaseModel => $base.as((v, t, t2) => _ItemBaseModelCopyWithImpl<$R, $Out>(v, t, t2)); } -abstract class ItemBaseModelCopyWith<$R, $In extends ItemBaseModel, $Out> implements ClassCopyWith<$R, $In, $Out> { +abstract class ItemBaseModelCopyWith<$R, $In extends ItemBaseModel, $Out> + implements ClassCopyWith<$R, $In, $Out> { OverviewModelCopyWith<$R, OverviewModel, OverviewModel> get overview; UserDataCopyWith<$R, UserData, UserData> get userData; $R call( @@ -114,17 +127,20 @@ abstract class ItemBaseModelCopyWith<$R, $In extends ItemBaseModel, $Out> implem ItemBaseModelCopyWith<$R2, $In, $Out2> $chain<$R2, $Out2>(Then<$Out2, $R2> t); } -class _ItemBaseModelCopyWithImpl<$R, $Out> extends ClassCopyWithBase<$R, ItemBaseModel, $Out> +class _ItemBaseModelCopyWithImpl<$R, $Out> + extends ClassCopyWithBase<$R, ItemBaseModel, $Out> implements ItemBaseModelCopyWith<$R, ItemBaseModel, $Out> { _ItemBaseModelCopyWithImpl(super.value, super.then, super.then2); @override - late final ClassMapperBase $mapper = ItemBaseModelMapper.ensureInitialized(); + late final ClassMapperBase $mapper = + ItemBaseModelMapper.ensureInitialized(); @override OverviewModelCopyWith<$R, OverviewModel, OverviewModel> get overview => $value.overview.copyWith.$chain((v) => call(overview: v)); @override - UserDataCopyWith<$R, UserData, UserData> get userData => $value.userData.copyWith.$chain((v) => call(userData: v)); + UserDataCopyWith<$R, UserData, UserData> get userData => + $value.userData.copyWith.$chain((v) => call(userData: v)); @override $R call( {String? name, @@ -169,6 +185,7 @@ class _ItemBaseModelCopyWithImpl<$R, $Out> extends ClassCopyWithBase<$R, ItemBas jellyType: data.get(#jellyType, or: $value.jellyType)); @override - ItemBaseModelCopyWith<$R2, ItemBaseModel, $Out2> $chain<$R2, $Out2>(Then<$Out2, $R2> t) => + ItemBaseModelCopyWith<$R2, ItemBaseModel, $Out2> $chain<$R2, $Out2>( + Then<$Out2, $R2> t) => _ItemBaseModelCopyWithImpl<$R2, $Out2>($value, $cast, t); } diff --git a/lib/models/items/channel_program.freezed.dart b/lib/models/items/channel_program.freezed.dart index 19e2b267c..73d2c71f2 100644 --- a/lib/models/items/channel_program.freezed.dart +++ b/lib/models/items/channel_program.freezed.dart @@ -293,7 +293,8 @@ class _ChannelProgram extends ChannelProgram { required this.isSeries, this.overview}) : super._(); - factory _ChannelProgram.fromJson(Map json) => _$ChannelProgramFromJson(json); + factory _ChannelProgram.fromJson(Map json) => + _$ChannelProgramFromJson(json); @override final String id; diff --git a/lib/models/items/channel_program.g.dart b/lib/models/items/channel_program.g.dart index ee4cdd229..f5fd7d14c 100644 --- a/lib/models/items/channel_program.g.dart +++ b/lib/models/items/channel_program.g.dart @@ -6,7 +6,8 @@ part of 'channel_program.dart'; // JsonSerializableGenerator // ************************************************************************** -_ChannelProgram _$ChannelProgramFromJson(Map json) => _ChannelProgram( +_ChannelProgram _$ChannelProgramFromJson(Map json) => + _ChannelProgram( id: json['id'] as String, channelId: json['channelId'] as String, name: json['name'] as String, @@ -17,12 +18,15 @@ _ChannelProgram _$ChannelProgramFromJson(Map json) => _ChannelP episodeTitle: json['episodeTitle'] as String?, startDate: DateTime.parse(json['startDate'] as String), endDate: DateTime.parse(json['endDate'] as String), - images: json['images'] == null ? null : ImagesData.fromJson(json['images'] as String), + images: json['images'] == null + ? null + : ImagesData.fromJson(json['images'] as String), isSeries: json['isSeries'] as bool, overview: json['overview'] as String?, ); -Map _$ChannelProgramToJson(_ChannelProgram instance) => { +Map _$ChannelProgramToJson(_ChannelProgram instance) => + { 'id': instance.id, 'channelId': instance.channelId, 'name': instance.name, diff --git a/lib/models/items/episode_model.mapper.dart b/lib/models/items/episode_model.mapper.dart index 464206dc8..b29f04a92 100644 --- a/lib/models/items/episode_model.mapper.dart +++ b/lib/models/items/episode_model.mapper.dart @@ -24,47 +24,65 @@ class EpisodeModelMapper extends SubClassMapperBase { final String id = 'EpisodeModel'; static String? _$seriesName(EpisodeModel v) => v.seriesName; - static const Field _f$seriesName = Field('seriesName', _$seriesName); + static const Field _f$seriesName = + Field('seriesName', _$seriesName); static int _$season(EpisodeModel v) => v.season; static const Field _f$season = Field('season', _$season); static int _$episode(EpisodeModel v) => v.episode; - static const Field _f$episode = Field('episode', _$episode); + static const Field _f$episode = + Field('episode', _$episode); static int? _$episodeEnd(EpisodeModel v) => v.episodeEnd; - static const Field _f$episodeEnd = Field('episodeEnd', _$episodeEnd); + static const Field _f$episodeEnd = + Field('episodeEnd', _$episodeEnd); static List _$chapters(EpisodeModel v) => v.chapters; - static const Field> _f$chapters = Field('chapters', _$chapters, opt: true, def: const []); + static const Field> _f$chapters = + Field('chapters', _$chapters, opt: true, def: const []); static ItemLocation? _$location(EpisodeModel v) => v.location; - static const Field _f$location = Field('location', _$location, opt: true); + static const Field _f$location = + Field('location', _$location, opt: true); static DateTime? _$dateAired(EpisodeModel v) => v.dateAired; - static const Field _f$dateAired = Field('dateAired', _$dateAired, opt: true); + static const Field _f$dateAired = + Field('dateAired', _$dateAired, opt: true); static String _$name(EpisodeModel v) => v.name; static const Field _f$name = Field('name', _$name); static String _$id(EpisodeModel v) => v.id; static const Field _f$id = Field('id', _$id); static OverviewModel _$overview(EpisodeModel v) => v.overview; - static const Field _f$overview = Field('overview', _$overview); + static const Field _f$overview = + Field('overview', _$overview); static String? _$parentId(EpisodeModel v) => v.parentId; - static const Field _f$parentId = Field('parentId', _$parentId); + static const Field _f$parentId = + Field('parentId', _$parentId); static String? _$playlistId(EpisodeModel v) => v.playlistId; - static const Field _f$playlistId = Field('playlistId', _$playlistId); + static const Field _f$playlistId = + Field('playlistId', _$playlistId); static ImagesData? _$images(EpisodeModel v) => v.images; - static const Field _f$images = Field('images', _$images); + static const Field _f$images = + Field('images', _$images); static int? _$childCount(EpisodeModel v) => v.childCount; - static const Field _f$childCount = Field('childCount', _$childCount); + static const Field _f$childCount = + Field('childCount', _$childCount); static double? _$primaryRatio(EpisodeModel v) => v.primaryRatio; - static const Field _f$primaryRatio = Field('primaryRatio', _$primaryRatio); + static const Field _f$primaryRatio = + Field('primaryRatio', _$primaryRatio); static UserData _$userData(EpisodeModel v) => v.userData; - static const Field _f$userData = Field('userData', _$userData); + static const Field _f$userData = + Field('userData', _$userData); static ImagesData? _$parentImages(EpisodeModel v) => v.parentImages; - static const Field _f$parentImages = Field('parentImages', _$parentImages); + static const Field _f$parentImages = + Field('parentImages', _$parentImages); static MediaStreamsModel _$mediaStreams(EpisodeModel v) => v.mediaStreams; - static const Field _f$mediaStreams = Field('mediaStreams', _$mediaStreams); + static const Field _f$mediaStreams = + Field('mediaStreams', _$mediaStreams); static bool? _$canDelete(EpisodeModel v) => v.canDelete; - static const Field _f$canDelete = Field('canDelete', _$canDelete, opt: true); + static const Field _f$canDelete = + Field('canDelete', _$canDelete, opt: true); static bool? _$canDownload(EpisodeModel v) => v.canDownload; - static const Field _f$canDownload = Field('canDownload', _$canDownload, opt: true); + static const Field _f$canDownload = + Field('canDownload', _$canDownload, opt: true); static dto.BaseItemKind? _$jellyType(EpisodeModel v) => v.jellyType; - static const Field _f$jellyType = Field('jellyType', _$jellyType, opt: true); + static const Field _f$jellyType = + Field('jellyType', _$jellyType, opt: true); @override final MappableFields fields = const { @@ -98,7 +116,8 @@ class EpisodeModelMapper extends SubClassMapperBase { @override final dynamic discriminatorValue = 'EpisodeModel'; @override - late final ClassMapperBase superMapper = ItemStreamModelMapper.ensureInitialized(); + late final ClassMapperBase superMapper = + ItemStreamModelMapper.ensureInitialized(); static EpisodeModel _instantiate(DecodingData data) { return EpisodeModel( @@ -131,10 +150,12 @@ class EpisodeModelMapper extends SubClassMapperBase { mixin EpisodeModelMappable { EpisodeModelCopyWith get copyWith => - _EpisodeModelCopyWithImpl(this as EpisodeModel, $identity, $identity); + _EpisodeModelCopyWithImpl( + this as EpisodeModel, $identity, $identity); } -extension EpisodeModelValueCopy<$R, $Out> on ObjectCopyWith<$R, EpisodeModel, $Out> { +extension EpisodeModelValueCopy<$R, $Out> + on ObjectCopyWith<$R, EpisodeModel, $Out> { EpisodeModelCopyWith<$R, EpisodeModel, $Out> get $asEpisodeModel => $base.as((v, t, t2) => _EpisodeModelCopyWithImpl<$R, $Out>(v, t, t2)); } @@ -172,20 +193,24 @@ abstract class EpisodeModelCopyWith<$R, $In extends EpisodeModel, $Out> EpisodeModelCopyWith<$R2, $In, $Out2> $chain<$R2, $Out2>(Then<$Out2, $R2> t); } -class _EpisodeModelCopyWithImpl<$R, $Out> extends ClassCopyWithBase<$R, EpisodeModel, $Out> +class _EpisodeModelCopyWithImpl<$R, $Out> + extends ClassCopyWithBase<$R, EpisodeModel, $Out> implements EpisodeModelCopyWith<$R, EpisodeModel, $Out> { _EpisodeModelCopyWithImpl(super.value, super.then, super.then2); @override - late final ClassMapperBase $mapper = EpisodeModelMapper.ensureInitialized(); + late final ClassMapperBase $mapper = + EpisodeModelMapper.ensureInitialized(); @override - ListCopyWith<$R, Chapter, ObjectCopyWith<$R, Chapter, Chapter>> get chapters => - ListCopyWith($value.chapters, (v, t) => ObjectCopyWith(v, $identity, t), (v) => call(chapters: v)); + ListCopyWith<$R, Chapter, ObjectCopyWith<$R, Chapter, Chapter>> + get chapters => ListCopyWith($value.chapters, + (v, t) => ObjectCopyWith(v, $identity, t), (v) => call(chapters: v)); @override OverviewModelCopyWith<$R, OverviewModel, OverviewModel> get overview => $value.overview.copyWith.$chain((v) => call(overview: v)); @override - UserDataCopyWith<$R, UserData, UserData> get userData => $value.userData.copyWith.$chain((v) => call(userData: v)); + UserDataCopyWith<$R, UserData, UserData> get userData => + $value.userData.copyWith.$chain((v) => call(userData: v)); @override $R call( {Object? seriesName = $none, @@ -257,6 +282,7 @@ class _EpisodeModelCopyWithImpl<$R, $Out> extends ClassCopyWithBase<$R, EpisodeM jellyType: data.get(#jellyType, or: $value.jellyType)); @override - EpisodeModelCopyWith<$R2, EpisodeModel, $Out2> $chain<$R2, $Out2>(Then<$Out2, $R2> t) => + EpisodeModelCopyWith<$R2, EpisodeModel, $Out2> $chain<$R2, $Out2>( + Then<$Out2, $R2> t) => _EpisodeModelCopyWithImpl<$R2, $Out2>($value, $cast, t); } diff --git a/lib/models/items/folder_model.mapper.dart b/lib/models/items/folder_model.mapper.dart index b6850bce5..fcdf4cd19 100644 --- a/lib/models/items/folder_model.mapper.dart +++ b/lib/models/items/folder_model.mapper.dart @@ -25,31 +25,42 @@ class FolderModelMapper extends SubClassMapperBase { final String id = 'FolderModel'; static List _$items(FolderModel v) => v.items; - static const Field> _f$items = Field('items', _$items); + static const Field> _f$items = + Field('items', _$items); static OverviewModel _$overview(FolderModel v) => v.overview; - static const Field _f$overview = Field('overview', _$overview); + static const Field _f$overview = + Field('overview', _$overview); static String? _$parentId(FolderModel v) => v.parentId; - static const Field _f$parentId = Field('parentId', _$parentId); + static const Field _f$parentId = + Field('parentId', _$parentId); static String? _$playlistId(FolderModel v) => v.playlistId; - static const Field _f$playlistId = Field('playlistId', _$playlistId); + static const Field _f$playlistId = + Field('playlistId', _$playlistId); static ImagesData? _$images(FolderModel v) => v.images; - static const Field _f$images = Field('images', _$images); + static const Field _f$images = + Field('images', _$images); static int? _$childCount(FolderModel v) => v.childCount; - static const Field _f$childCount = Field('childCount', _$childCount); + static const Field _f$childCount = + Field('childCount', _$childCount); static double? _$primaryRatio(FolderModel v) => v.primaryRatio; - static const Field _f$primaryRatio = Field('primaryRatio', _$primaryRatio); + static const Field _f$primaryRatio = + Field('primaryRatio', _$primaryRatio); static UserData _$userData(FolderModel v) => v.userData; - static const Field _f$userData = Field('userData', _$userData); + static const Field _f$userData = + Field('userData', _$userData); static String _$name(FolderModel v) => v.name; static const Field _f$name = Field('name', _$name); static String _$id(FolderModel v) => v.id; static const Field _f$id = Field('id', _$id); static bool? _$canDownload(FolderModel v) => v.canDownload; - static const Field _f$canDownload = Field('canDownload', _$canDownload, opt: true); + static const Field _f$canDownload = + Field('canDownload', _$canDownload, opt: true); static bool? _$canDelete(FolderModel v) => v.canDelete; - static const Field _f$canDelete = Field('canDelete', _$canDelete, opt: true); + static const Field _f$canDelete = + Field('canDelete', _$canDelete, opt: true); static BaseItemKind? _$jellyType(FolderModel v) => v.jellyType; - static const Field _f$jellyType = Field('jellyType', _$jellyType, opt: true); + static const Field _f$jellyType = + Field('jellyType', _$jellyType, opt: true); @override final MappableFields fields = const { @@ -75,7 +86,8 @@ class FolderModelMapper extends SubClassMapperBase { @override final dynamic discriminatorValue = 'FolderModel'; @override - late final ClassMapperBase superMapper = ItemBaseModelMapper.ensureInitialized(); + late final ClassMapperBase superMapper = + ItemBaseModelMapper.ensureInitialized(); static FolderModel _instantiate(DecodingData data) { return FolderModel( @@ -100,16 +112,20 @@ class FolderModelMapper extends SubClassMapperBase { mixin FolderModelMappable { FolderModelCopyWith get copyWith => - _FolderModelCopyWithImpl(this as FolderModel, $identity, $identity); + _FolderModelCopyWithImpl( + this as FolderModel, $identity, $identity); } -extension FolderModelValueCopy<$R, $Out> on ObjectCopyWith<$R, FolderModel, $Out> { +extension FolderModelValueCopy<$R, $Out> + on ObjectCopyWith<$R, FolderModel, $Out> { FolderModelCopyWith<$R, FolderModel, $Out> get $asFolderModel => $base.as((v, t, t2) => _FolderModelCopyWithImpl<$R, $Out>(v, t, t2)); } -abstract class FolderModelCopyWith<$R, $In extends FolderModel, $Out> implements ItemBaseModelCopyWith<$R, $In, $Out> { - ListCopyWith<$R, ItemBaseModel, ItemBaseModelCopyWith<$R, ItemBaseModel, ItemBaseModel>> get items; +abstract class FolderModelCopyWith<$R, $In extends FolderModel, $Out> + implements ItemBaseModelCopyWith<$R, $In, $Out> { + ListCopyWith<$R, ItemBaseModel, + ItemBaseModelCopyWith<$R, ItemBaseModel, ItemBaseModel>> get items; @override OverviewModelCopyWith<$R, OverviewModel, OverviewModel> get overview; @override @@ -132,20 +148,25 @@ abstract class FolderModelCopyWith<$R, $In extends FolderModel, $Out> implements FolderModelCopyWith<$R2, $In, $Out2> $chain<$R2, $Out2>(Then<$Out2, $R2> t); } -class _FolderModelCopyWithImpl<$R, $Out> extends ClassCopyWithBase<$R, FolderModel, $Out> +class _FolderModelCopyWithImpl<$R, $Out> + extends ClassCopyWithBase<$R, FolderModel, $Out> implements FolderModelCopyWith<$R, FolderModel, $Out> { _FolderModelCopyWithImpl(super.value, super.then, super.then2); @override - late final ClassMapperBase $mapper = FolderModelMapper.ensureInitialized(); + late final ClassMapperBase $mapper = + FolderModelMapper.ensureInitialized(); @override - ListCopyWith<$R, ItemBaseModel, ItemBaseModelCopyWith<$R, ItemBaseModel, ItemBaseModel>> get items => - ListCopyWith($value.items, (v, t) => v.copyWith.$chain(t), (v) => call(items: v)); + ListCopyWith<$R, ItemBaseModel, + ItemBaseModelCopyWith<$R, ItemBaseModel, ItemBaseModel>> + get items => ListCopyWith( + $value.items, (v, t) => v.copyWith.$chain(t), (v) => call(items: v)); @override OverviewModelCopyWith<$R, OverviewModel, OverviewModel> get overview => $value.overview.copyWith.$chain((v) => call(overview: v)); @override - UserDataCopyWith<$R, UserData, UserData> get userData => $value.userData.copyWith.$chain((v) => call(userData: v)); + UserDataCopyWith<$R, UserData, UserData> get userData => + $value.userData.copyWith.$chain((v) => call(userData: v)); @override $R call( {List? items, @@ -193,6 +214,7 @@ class _FolderModelCopyWithImpl<$R, $Out> extends ClassCopyWithBase<$R, FolderMod jellyType: data.get(#jellyType, or: $value.jellyType)); @override - FolderModelCopyWith<$R2, FolderModel, $Out2> $chain<$R2, $Out2>(Then<$Out2, $R2> t) => + FolderModelCopyWith<$R2, FolderModel, $Out2> $chain<$R2, $Out2>( + Then<$Out2, $R2> t) => _FolderModelCopyWithImpl<$R2, $Out2>($value, $cast, t); } diff --git a/lib/models/items/item_properties_model.freezed.dart b/lib/models/items/item_properties_model.freezed.dart index 04548b240..2eea58b75 100644 --- a/lib/models/items/item_properties_model.freezed.dart +++ b/lib/models/items/item_properties_model.freezed.dart @@ -183,7 +183,8 @@ extension ItemPropertiesModelPatterns on ItemPropertiesModel { /// @nodoc class _ItemPropertiesModel extends ItemPropertiesModel { - _ItemPropertiesModel({required this.canDelete, required this.canDownload}) : super._(); + _ItemPropertiesModel({required this.canDelete, required this.canDownload}) + : super._(); @override final bool canDelete; diff --git a/lib/models/items/item_shared_models.mapper.dart b/lib/models/items/item_shared_models.mapper.dart index 589b4cf24..8624ac268 100644 --- a/lib/models/items/item_shared_models.mapper.dart +++ b/lib/models/items/item_shared_models.mapper.dart @@ -21,20 +21,27 @@ class UserDataMapper extends ClassMapperBase { final String id = 'UserData'; static bool _$isFavourite(UserData v) => v.isFavourite; - static const Field _f$isFavourite = Field('isFavourite', _$isFavourite, opt: true, def: false); + static const Field _f$isFavourite = + Field('isFavourite', _$isFavourite, opt: true, def: false); static int _$playCount(UserData v) => v.playCount; - static const Field _f$playCount = Field('playCount', _$playCount, opt: true, def: 0); + static const Field _f$playCount = + Field('playCount', _$playCount, opt: true, def: 0); static int? _$unPlayedItemCount(UserData v) => v.unPlayedItemCount; - static const Field _f$unPlayedItemCount = Field('unPlayedItemCount', _$unPlayedItemCount, opt: true); + static const Field _f$unPlayedItemCount = + Field('unPlayedItemCount', _$unPlayedItemCount, opt: true); static int _$playbackPositionTicks(UserData v) => v.playbackPositionTicks; - static const Field _f$playbackPositionTicks = - Field('playbackPositionTicks', _$playbackPositionTicks, opt: true, def: 0); + static const Field _f$playbackPositionTicks = Field( + 'playbackPositionTicks', _$playbackPositionTicks, + opt: true, def: 0); static double _$progress(UserData v) => v.progress; - static const Field _f$progress = Field('progress', _$progress, opt: true, def: 0); + static const Field _f$progress = + Field('progress', _$progress, opt: true, def: 0); static DateTime? _$lastPlayed(UserData v) => v.lastPlayed; - static const Field _f$lastPlayed = Field('lastPlayed', _$lastPlayed, opt: true); + static const Field _f$lastPlayed = + Field('lastPlayed', _$lastPlayed, opt: true); static bool _$played(UserData v) => v.played; - static const Field _f$played = Field('played', _$played, opt: true, def: false); + static const Field _f$played = + Field('played', _$played, opt: true, def: false); @override final MappableFields fields = const { @@ -74,15 +81,18 @@ class UserDataMapper extends ClassMapperBase { mixin UserDataMappable { String toJson() { - return UserDataMapper.ensureInitialized().encodeJson(this as UserData); + return UserDataMapper.ensureInitialized() + .encodeJson(this as UserData); } Map toMap() { - return UserDataMapper.ensureInitialized().encodeMap(this as UserData); + return UserDataMapper.ensureInitialized() + .encodeMap(this as UserData); } UserDataCopyWith get copyWith => - _UserDataCopyWithImpl(this as UserData, $identity, $identity); + _UserDataCopyWithImpl( + this as UserData, $identity, $identity); } extension UserDataValueCopy<$R, $Out> on ObjectCopyWith<$R, UserData, $Out> { @@ -90,7 +100,8 @@ extension UserDataValueCopy<$R, $Out> on ObjectCopyWith<$R, UserData, $Out> { $base.as((v, t, t2) => _UserDataCopyWithImpl<$R, $Out>(v, t, t2)); } -abstract class UserDataCopyWith<$R, $In extends UserData, $Out> implements ClassCopyWith<$R, $In, $Out> { +abstract class UserDataCopyWith<$R, $In extends UserData, $Out> + implements ClassCopyWith<$R, $In, $Out> { $R call( {bool? isFavourite, int? playCount, @@ -102,12 +113,14 @@ abstract class UserDataCopyWith<$R, $In extends UserData, $Out> implements Class UserDataCopyWith<$R2, $In, $Out2> $chain<$R2, $Out2>(Then<$Out2, $R2> t); } -class _UserDataCopyWithImpl<$R, $Out> extends ClassCopyWithBase<$R, UserData, $Out> +class _UserDataCopyWithImpl<$R, $Out> + extends ClassCopyWithBase<$R, UserData, $Out> implements UserDataCopyWith<$R, UserData, $Out> { _UserDataCopyWithImpl(super.value, super.then, super.then2); @override - late final ClassMapperBase $mapper = UserDataMapper.ensureInitialized(); + late final ClassMapperBase $mapper = + UserDataMapper.ensureInitialized(); @override $R call( {bool? isFavourite, @@ -121,7 +134,8 @@ class _UserDataCopyWithImpl<$R, $Out> extends ClassCopyWithBase<$R, UserData, $O if (isFavourite != null) #isFavourite: isFavourite, if (playCount != null) #playCount: playCount, if (unPlayedItemCount != $none) #unPlayedItemCount: unPlayedItemCount, - if (playbackPositionTicks != null) #playbackPositionTicks: playbackPositionTicks, + if (playbackPositionTicks != null) + #playbackPositionTicks: playbackPositionTicks, if (progress != null) #progress: progress, if (lastPlayed != $none) #lastPlayed: lastPlayed, if (played != null) #played: played @@ -130,13 +144,16 @@ class _UserDataCopyWithImpl<$R, $Out> extends ClassCopyWithBase<$R, UserData, $O UserData $make(CopyWithData data) => UserData( isFavourite: data.get(#isFavourite, or: $value.isFavourite), playCount: data.get(#playCount, or: $value.playCount), - unPlayedItemCount: data.get(#unPlayedItemCount, or: $value.unPlayedItemCount), - playbackPositionTicks: data.get(#playbackPositionTicks, or: $value.playbackPositionTicks), + unPlayedItemCount: + data.get(#unPlayedItemCount, or: $value.unPlayedItemCount), + playbackPositionTicks: + data.get(#playbackPositionTicks, or: $value.playbackPositionTicks), progress: data.get(#progress, or: $value.progress), lastPlayed: data.get(#lastPlayed, or: $value.lastPlayed), played: data.get(#played, or: $value.played)); @override - UserDataCopyWith<$R2, UserData, $Out2> $chain<$R2, $Out2>(Then<$Out2, $R2> t) => + UserDataCopyWith<$R2, UserData, $Out2> $chain<$R2, $Out2>( + Then<$Out2, $R2> t) => _UserDataCopyWithImpl<$R2, $Out2>($value, $cast, t); } diff --git a/lib/models/items/item_stream_model.mapper.dart b/lib/models/items/item_stream_model.mapper.dart index c36560d6d..0c34fab5e 100644 --- a/lib/models/items/item_stream_model.mapper.dart +++ b/lib/models/items/item_stream_model.mapper.dart @@ -24,33 +24,45 @@ class ItemStreamModelMapper extends SubClassMapperBase { final String id = 'ItemStreamModel'; static ImagesData? _$parentImages(ItemStreamModel v) => v.parentImages; - static const Field _f$parentImages = Field('parentImages', _$parentImages); + static const Field _f$parentImages = + Field('parentImages', _$parentImages); static MediaStreamsModel _$mediaStreams(ItemStreamModel v) => v.mediaStreams; - static const Field _f$mediaStreams = Field('mediaStreams', _$mediaStreams); + static const Field _f$mediaStreams = + Field('mediaStreams', _$mediaStreams); static String _$name(ItemStreamModel v) => v.name; static const Field _f$name = Field('name', _$name); static String _$id(ItemStreamModel v) => v.id; static const Field _f$id = Field('id', _$id); static OverviewModel _$overview(ItemStreamModel v) => v.overview; - static const Field _f$overview = Field('overview', _$overview); + static const Field _f$overview = + Field('overview', _$overview); static String? _$parentId(ItemStreamModel v) => v.parentId; - static const Field _f$parentId = Field('parentId', _$parentId); + static const Field _f$parentId = + Field('parentId', _$parentId); static String? _$playlistId(ItemStreamModel v) => v.playlistId; - static const Field _f$playlistId = Field('playlistId', _$playlistId); + static const Field _f$playlistId = + Field('playlistId', _$playlistId); static ImagesData? _$images(ItemStreamModel v) => v.images; - static const Field _f$images = Field('images', _$images); + static const Field _f$images = + Field('images', _$images); static int? _$childCount(ItemStreamModel v) => v.childCount; - static const Field _f$childCount = Field('childCount', _$childCount); + static const Field _f$childCount = + Field('childCount', _$childCount); static double? _$primaryRatio(ItemStreamModel v) => v.primaryRatio; - static const Field _f$primaryRatio = Field('primaryRatio', _$primaryRatio); + static const Field _f$primaryRatio = + Field('primaryRatio', _$primaryRatio); static UserData _$userData(ItemStreamModel v) => v.userData; - static const Field _f$userData = Field('userData', _$userData); + static const Field _f$userData = + Field('userData', _$userData); static bool? _$canDelete(ItemStreamModel v) => v.canDelete; - static const Field _f$canDelete = Field('canDelete', _$canDelete); + static const Field _f$canDelete = + Field('canDelete', _$canDelete); static bool? _$canDownload(ItemStreamModel v) => v.canDownload; - static const Field _f$canDownload = Field('canDownload', _$canDownload); + static const Field _f$canDownload = + Field('canDownload', _$canDownload); static dto.BaseItemKind? _$jellyType(ItemStreamModel v) => v.jellyType; - static const Field _f$jellyType = Field('jellyType', _$jellyType, opt: true); + static const Field _f$jellyType = + Field('jellyType', _$jellyType, opt: true); @override final MappableFields fields = const { @@ -77,7 +89,8 @@ class ItemStreamModelMapper extends SubClassMapperBase { @override final dynamic discriminatorValue = 'ItemStreamModel'; @override - late final ClassMapperBase superMapper = ItemBaseModelMapper.ensureInitialized(); + late final ClassMapperBase superMapper = + ItemBaseModelMapper.ensureInitialized(); static ItemStreamModel _instantiate(DecodingData data) { return ItemStreamModel( @@ -102,11 +115,14 @@ class ItemStreamModelMapper extends SubClassMapperBase { } mixin ItemStreamModelMappable { - ItemStreamModelCopyWith get copyWith => - _ItemStreamModelCopyWithImpl(this as ItemStreamModel, $identity, $identity); + ItemStreamModelCopyWith + get copyWith => + _ItemStreamModelCopyWithImpl( + this as ItemStreamModel, $identity, $identity); } -extension ItemStreamModelValueCopy<$R, $Out> on ObjectCopyWith<$R, ItemStreamModel, $Out> { +extension ItemStreamModelValueCopy<$R, $Out> + on ObjectCopyWith<$R, ItemStreamModel, $Out> { ItemStreamModelCopyWith<$R, ItemStreamModel, $Out> get $asItemStreamModel => $base.as((v, t, t2) => _ItemStreamModelCopyWithImpl<$R, $Out>(v, t, t2)); } @@ -133,20 +149,24 @@ abstract class ItemStreamModelCopyWith<$R, $In extends ItemStreamModel, $Out> bool? canDelete, bool? canDownload, dto.BaseItemKind? jellyType}); - ItemStreamModelCopyWith<$R2, $In, $Out2> $chain<$R2, $Out2>(Then<$Out2, $R2> t); + ItemStreamModelCopyWith<$R2, $In, $Out2> $chain<$R2, $Out2>( + Then<$Out2, $R2> t); } -class _ItemStreamModelCopyWithImpl<$R, $Out> extends ClassCopyWithBase<$R, ItemStreamModel, $Out> +class _ItemStreamModelCopyWithImpl<$R, $Out> + extends ClassCopyWithBase<$R, ItemStreamModel, $Out> implements ItemStreamModelCopyWith<$R, ItemStreamModel, $Out> { _ItemStreamModelCopyWithImpl(super.value, super.then, super.then2); @override - late final ClassMapperBase $mapper = ItemStreamModelMapper.ensureInitialized(); + late final ClassMapperBase $mapper = + ItemStreamModelMapper.ensureInitialized(); @override OverviewModelCopyWith<$R, OverviewModel, OverviewModel> get overview => $value.overview.copyWith.$chain((v) => call(overview: v)); @override - UserDataCopyWith<$R, UserData, UserData> get userData => $value.userData.copyWith.$chain((v) => call(userData: v)); + UserDataCopyWith<$R, UserData, UserData> get userData => + $value.userData.copyWith.$chain((v) => call(userData: v)); @override $R call( {Object? parentImages = $none, @@ -197,6 +217,7 @@ class _ItemStreamModelCopyWithImpl<$R, $Out> extends ClassCopyWithBase<$R, ItemS jellyType: data.get(#jellyType, or: $value.jellyType)); @override - ItemStreamModelCopyWith<$R2, ItemStreamModel, $Out2> $chain<$R2, $Out2>(Then<$Out2, $R2> t) => + ItemStreamModelCopyWith<$R2, ItemStreamModel, $Out2> $chain<$R2, $Out2>( + Then<$Out2, $R2> t) => _ItemStreamModelCopyWithImpl<$R2, $Out2>($value, $cast, t); } diff --git a/lib/models/items/media_segments_model.freezed.dart b/lib/models/items/media_segments_model.freezed.dart index 5efbe5f45..4e8bb0337 100644 --- a/lib/models/items/media_segments_model.freezed.dart +++ b/lib/models/items/media_segments_model.freezed.dart @@ -188,7 +188,8 @@ class _MediaSegmentsModel extends MediaSegmentsModel { _MediaSegmentsModel({final List segments = const []}) : _segments = segments, super._(); - factory _MediaSegmentsModel.fromJson(Map json) => _$MediaSegmentsModelFromJson(json); + factory _MediaSegmentsModel.fromJson(Map json) => + _$MediaSegmentsModelFromJson(json); final List _segments; @override @@ -320,7 +321,8 @@ extension MediaSegmentPatterns on MediaSegment { @optionalTypeArgs TResult maybeWhen( - TResult Function(MediaSegmentType type, Duration start, Duration end)? $default, { + TResult Function(MediaSegmentType type, Duration start, Duration end)? + $default, { required TResult orElse(), }) { final _that = this; @@ -347,7 +349,8 @@ extension MediaSegmentPatterns on MediaSegment { @optionalTypeArgs TResult when( - TResult Function(MediaSegmentType type, Duration start, Duration end) $default, + TResult Function(MediaSegmentType type, Duration start, Duration end) + $default, ) { final _that = this; switch (_that) { @@ -372,7 +375,8 @@ extension MediaSegmentPatterns on MediaSegment { @optionalTypeArgs TResult? whenOrNull( - TResult? Function(MediaSegmentType type, Duration start, Duration end)? $default, + TResult? Function(MediaSegmentType type, Duration start, Duration end)? + $default, ) { final _that = this; switch (_that) { @@ -387,8 +391,10 @@ extension MediaSegmentPatterns on MediaSegment { /// @nodoc @JsonSerializable() class _MediaSegment extends MediaSegment { - _MediaSegment({required this.type, required this.start, required this.end}) : super._(); - factory _MediaSegment.fromJson(Map json) => _$MediaSegmentFromJson(json); + _MediaSegment({required this.type, required this.start, required this.end}) + : super._(); + factory _MediaSegment.fromJson(Map json) => + _$MediaSegmentFromJson(json); @override final MediaSegmentType type; diff --git a/lib/models/items/media_segments_model.g.dart b/lib/models/items/media_segments_model.g.dart index bf1598f9f..f7a7c653c 100644 --- a/lib/models/items/media_segments_model.g.dart +++ b/lib/models/items/media_segments_model.g.dart @@ -6,23 +6,28 @@ part of 'media_segments_model.dart'; // JsonSerializableGenerator // ************************************************************************** -_MediaSegmentsModel _$MediaSegmentsModelFromJson(Map json) => _MediaSegmentsModel( - segments: - (json['segments'] as List?)?.map((e) => MediaSegment.fromJson(e as Map)).toList() ?? - const [], +_MediaSegmentsModel _$MediaSegmentsModelFromJson(Map json) => + _MediaSegmentsModel( + segments: (json['segments'] as List?) + ?.map((e) => MediaSegment.fromJson(e as Map)) + .toList() ?? + const [], ); -Map _$MediaSegmentsModelToJson(_MediaSegmentsModel instance) => { +Map _$MediaSegmentsModelToJson(_MediaSegmentsModel instance) => + { 'segments': instance.segments, }; -_MediaSegment _$MediaSegmentFromJson(Map json) => _MediaSegment( +_MediaSegment _$MediaSegmentFromJson(Map json) => + _MediaSegment( type: $enumDecode(_$MediaSegmentTypeEnumMap, json['type']), start: Duration(microseconds: (json['start'] as num).toInt()), end: Duration(microseconds: (json['end'] as num).toInt()), ); -Map _$MediaSegmentToJson(_MediaSegment instance) => { +Map _$MediaSegmentToJson(_MediaSegment instance) => + { 'type': _$MediaSegmentTypeEnumMap[instance.type]!, 'start': instance.start.inMicroseconds, 'end': instance.end.inMicroseconds, diff --git a/lib/models/items/movie_model.mapper.dart b/lib/models/items/movie_model.mapper.dart index 0c82ce2b1..06518196e 100644 --- a/lib/models/items/movie_model.mapper.dart +++ b/lib/models/items/movie_model.mapper.dart @@ -26,59 +26,82 @@ class MovieModelMapper extends SubClassMapperBase { final String id = 'MovieModel'; static String _$originalTitle(MovieModel v) => v.originalTitle; - static const Field _f$originalTitle = Field('originalTitle', _$originalTitle); + static const Field _f$originalTitle = + Field('originalTitle', _$originalTitle); static String? _$path(MovieModel v) => v.path; - static const Field _f$path = Field('path', _$path, opt: true); + static const Field _f$path = + Field('path', _$path, opt: true); static List _$chapters(MovieModel v) => v.chapters; - static const Field> _f$chapters = Field('chapters', _$chapters, opt: true, def: const []); - static List _$specialFeatures(MovieModel v) => v.specialFeatures; + static const Field> _f$chapters = + Field('chapters', _$chapters, opt: true, def: const []); + static List _$specialFeatures(MovieModel v) => + v.specialFeatures; static const Field> _f$specialFeatures = Field('specialFeatures', _$specialFeatures, opt: true, def: const []); static DateTime _$premiereDate(MovieModel v) => v.premiereDate; - static const Field _f$premiereDate = Field('premiereDate', _$premiereDate); + static const Field _f$premiereDate = + Field('premiereDate', _$premiereDate); static String _$sortName(MovieModel v) => v.sortName; - static const Field _f$sortName = Field('sortName', _$sortName); + static const Field _f$sortName = + Field('sortName', _$sortName); static String _$status(MovieModel v) => v.status; static const Field _f$status = Field('status', _$status); static List _$related(MovieModel v) => v.related; static const Field> _f$related = Field('related', _$related, opt: true, def: const []); - static List _$seerrRelated(MovieModel v) => v.seerrRelated; - static const Field> _f$seerrRelated = + static List _$seerrRelated(MovieModel v) => + v.seerrRelated; + static const Field> + _f$seerrRelated = Field('seerrRelated', _$seerrRelated, opt: true, def: const []); - static List _$seerrRecommended(MovieModel v) => v.seerrRecommended; - static const Field> _f$seerrRecommended = + static List _$seerrRecommended(MovieModel v) => + v.seerrRecommended; + static const Field> + _f$seerrRecommended = Field('seerrRecommended', _$seerrRecommended, opt: true, def: const []); static Map? _$providerIds(MovieModel v) => v.providerIds; - static const Field> _f$providerIds = Field('providerIds', _$providerIds, opt: true); + static const Field> _f$providerIds = + Field('providerIds', _$providerIds, opt: true); static String _$name(MovieModel v) => v.name; static const Field _f$name = Field('name', _$name); static String _$id(MovieModel v) => v.id; static const Field _f$id = Field('id', _$id); static OverviewModel _$overview(MovieModel v) => v.overview; - static const Field _f$overview = Field('overview', _$overview); + static const Field _f$overview = + Field('overview', _$overview); static String? _$parentId(MovieModel v) => v.parentId; - static const Field _f$parentId = Field('parentId', _$parentId); + static const Field _f$parentId = + Field('parentId', _$parentId); static String? _$playlistId(MovieModel v) => v.playlistId; - static const Field _f$playlistId = Field('playlistId', _$playlistId); + static const Field _f$playlistId = + Field('playlistId', _$playlistId); static ImagesData? _$images(MovieModel v) => v.images; - static const Field _f$images = Field('images', _$images); + static const Field _f$images = + Field('images', _$images); static int? _$childCount(MovieModel v) => v.childCount; - static const Field _f$childCount = Field('childCount', _$childCount); + static const Field _f$childCount = + Field('childCount', _$childCount); static double? _$primaryRatio(MovieModel v) => v.primaryRatio; - static const Field _f$primaryRatio = Field('primaryRatio', _$primaryRatio); + static const Field _f$primaryRatio = + Field('primaryRatio', _$primaryRatio); static UserData _$userData(MovieModel v) => v.userData; - static const Field _f$userData = Field('userData', _$userData); + static const Field _f$userData = + Field('userData', _$userData); static ImagesData? _$parentImages(MovieModel v) => v.parentImages; - static const Field _f$parentImages = Field('parentImages', _$parentImages); + static const Field _f$parentImages = + Field('parentImages', _$parentImages); static MediaStreamsModel _$mediaStreams(MovieModel v) => v.mediaStreams; - static const Field _f$mediaStreams = Field('mediaStreams', _$mediaStreams); + static const Field _f$mediaStreams = + Field('mediaStreams', _$mediaStreams); static bool? _$canDownload(MovieModel v) => v.canDownload; - static const Field _f$canDownload = Field('canDownload', _$canDownload); + static const Field _f$canDownload = + Field('canDownload', _$canDownload); static bool? _$canDelete(MovieModel v) => v.canDelete; - static const Field _f$canDelete = Field('canDelete', _$canDelete); + static const Field _f$canDelete = + Field('canDelete', _$canDelete); static dto.BaseItemKind? _$jellyType(MovieModel v) => v.jellyType; - static const Field _f$jellyType = Field('jellyType', _$jellyType, opt: true); + static const Field _f$jellyType = + Field('jellyType', _$jellyType, opt: true); @override final MappableFields fields = const { @@ -116,7 +139,8 @@ class MovieModelMapper extends SubClassMapperBase { @override final dynamic discriminatorValue = 'MovieModel'; @override - late final ClassMapperBase superMapper = ItemStreamModelMapper.ensureInitialized(); + late final ClassMapperBase superMapper = + ItemStreamModelMapper.ensureInitialized(); static MovieModel _instantiate(DecodingData data) { return MovieModel( @@ -153,24 +177,38 @@ class MovieModelMapper extends SubClassMapperBase { mixin MovieModelMappable { MovieModelCopyWith get copyWith => - _MovieModelCopyWithImpl(this as MovieModel, $identity, $identity); + _MovieModelCopyWithImpl( + this as MovieModel, $identity, $identity); } -extension MovieModelValueCopy<$R, $Out> on ObjectCopyWith<$R, MovieModel, $Out> { +extension MovieModelValueCopy<$R, $Out> + on ObjectCopyWith<$R, MovieModel, $Out> { MovieModelCopyWith<$R, MovieModel, $Out> get $asMovieModel => $base.as((v, t, t2) => _MovieModelCopyWithImpl<$R, $Out>(v, t, t2)); } -abstract class MovieModelCopyWith<$R, $In extends MovieModel, $Out> implements ItemStreamModelCopyWith<$R, $In, $Out> { +abstract class MovieModelCopyWith<$R, $In extends MovieModel, $Out> + implements ItemStreamModelCopyWith<$R, $In, $Out> { ListCopyWith<$R, Chapter, ObjectCopyWith<$R, Chapter, Chapter>> get chapters; - ListCopyWith<$R, SpecialFeatureModel, SpecialFeatureModelCopyWith<$R, SpecialFeatureModel, SpecialFeatureModel>> - get specialFeatures; - ListCopyWith<$R, ItemBaseModel, ItemBaseModelCopyWith<$R, ItemBaseModel, ItemBaseModel>> get related; - ListCopyWith<$R, SeerrDashboardPosterModel, ObjectCopyWith<$R, SeerrDashboardPosterModel, SeerrDashboardPosterModel>> - get seerrRelated; - ListCopyWith<$R, SeerrDashboardPosterModel, ObjectCopyWith<$R, SeerrDashboardPosterModel, SeerrDashboardPosterModel>> - get seerrRecommended; - MapCopyWith<$R, String, dynamic, ObjectCopyWith<$R, dynamic, dynamic>>? get providerIds; + ListCopyWith< + $R, + SpecialFeatureModel, + SpecialFeatureModelCopyWith<$R, SpecialFeatureModel, + SpecialFeatureModel>> get specialFeatures; + ListCopyWith<$R, ItemBaseModel, + ItemBaseModelCopyWith<$R, ItemBaseModel, ItemBaseModel>> get related; + ListCopyWith< + $R, + SeerrDashboardPosterModel, + ObjectCopyWith<$R, SeerrDashboardPosterModel, + SeerrDashboardPosterModel>> get seerrRelated; + ListCopyWith< + $R, + SeerrDashboardPosterModel, + ObjectCopyWith<$R, SeerrDashboardPosterModel, + SeerrDashboardPosterModel>> get seerrRecommended; + MapCopyWith<$R, String, dynamic, ObjectCopyWith<$R, dynamic, dynamic>>? + get providerIds; @override OverviewModelCopyWith<$R, OverviewModel, OverviewModel> get overview; @override @@ -205,39 +243,64 @@ abstract class MovieModelCopyWith<$R, $In extends MovieModel, $Out> implements I MovieModelCopyWith<$R2, $In, $Out2> $chain<$R2, $Out2>(Then<$Out2, $R2> t); } -class _MovieModelCopyWithImpl<$R, $Out> extends ClassCopyWithBase<$R, MovieModel, $Out> +class _MovieModelCopyWithImpl<$R, $Out> + extends ClassCopyWithBase<$R, MovieModel, $Out> implements MovieModelCopyWith<$R, MovieModel, $Out> { _MovieModelCopyWithImpl(super.value, super.then, super.then2); @override - late final ClassMapperBase $mapper = MovieModelMapper.ensureInitialized(); + late final ClassMapperBase $mapper = + MovieModelMapper.ensureInitialized(); @override - ListCopyWith<$R, Chapter, ObjectCopyWith<$R, Chapter, Chapter>> get chapters => - ListCopyWith($value.chapters, (v, t) => ObjectCopyWith(v, $identity, t), (v) => call(chapters: v)); + ListCopyWith<$R, Chapter, ObjectCopyWith<$R, Chapter, Chapter>> + get chapters => ListCopyWith($value.chapters, + (v, t) => ObjectCopyWith(v, $identity, t), (v) => call(chapters: v)); @override - ListCopyWith<$R, SpecialFeatureModel, SpecialFeatureModelCopyWith<$R, SpecialFeatureModel, SpecialFeatureModel>> - get specialFeatures => - ListCopyWith($value.specialFeatures, (v, t) => v.copyWith.$chain(t), (v) => call(specialFeatures: v)); + ListCopyWith< + $R, + SpecialFeatureModel, + SpecialFeatureModelCopyWith<$R, SpecialFeatureModel, + SpecialFeatureModel>> get specialFeatures => ListCopyWith( + $value.specialFeatures, + (v, t) => v.copyWith.$chain(t), + (v) => call(specialFeatures: v)); @override - ListCopyWith<$R, ItemBaseModel, ItemBaseModelCopyWith<$R, ItemBaseModel, ItemBaseModel>> get related => - ListCopyWith($value.related, (v, t) => v.copyWith.$chain(t), (v) => call(related: v)); + ListCopyWith<$R, ItemBaseModel, + ItemBaseModelCopyWith<$R, ItemBaseModel, ItemBaseModel>> + get related => ListCopyWith($value.related, + (v, t) => v.copyWith.$chain(t), (v) => call(related: v)); @override - ListCopyWith<$R, SeerrDashboardPosterModel, ObjectCopyWith<$R, SeerrDashboardPosterModel, SeerrDashboardPosterModel>> - get seerrRelated => - ListCopyWith($value.seerrRelated, (v, t) => ObjectCopyWith(v, $identity, t), (v) => call(seerrRelated: v)); + ListCopyWith< + $R, + SeerrDashboardPosterModel, + ObjectCopyWith<$R, SeerrDashboardPosterModel, + SeerrDashboardPosterModel>> get seerrRelated => ListCopyWith( + $value.seerrRelated, + (v, t) => ObjectCopyWith(v, $identity, t), + (v) => call(seerrRelated: v)); @override - ListCopyWith<$R, SeerrDashboardPosterModel, ObjectCopyWith<$R, SeerrDashboardPosterModel, SeerrDashboardPosterModel>> - get seerrRecommended => ListCopyWith( - $value.seerrRecommended, (v, t) => ObjectCopyWith(v, $identity, t), (v) => call(seerrRecommended: v)); + ListCopyWith< + $R, + SeerrDashboardPosterModel, + ObjectCopyWith<$R, SeerrDashboardPosterModel, + SeerrDashboardPosterModel>> get seerrRecommended => ListCopyWith( + $value.seerrRecommended, + (v, t) => ObjectCopyWith(v, $identity, t), + (v) => call(seerrRecommended: v)); @override - MapCopyWith<$R, String, dynamic, ObjectCopyWith<$R, dynamic, dynamic>>? get providerIds => $value.providerIds != null - ? MapCopyWith($value.providerIds!, (v, t) => ObjectCopyWith(v, $identity, t), (v) => call(providerIds: v)) - : null; + MapCopyWith<$R, String, dynamic, ObjectCopyWith<$R, dynamic, dynamic>>? + get providerIds => $value.providerIds != null + ? MapCopyWith( + $value.providerIds!, + (v, t) => ObjectCopyWith(v, $identity, t), + (v) => call(providerIds: v)) + : null; @override OverviewModelCopyWith<$R, OverviewModel, OverviewModel> get overview => $value.overview.copyWith.$chain((v) => call(overview: v)); @override - UserDataCopyWith<$R, UserData, UserData> get userData => $value.userData.copyWith.$chain((v) => call(userData: v)); + UserDataCopyWith<$R, UserData, UserData> get userData => + $value.userData.copyWith.$chain((v) => call(userData: v)); @override $R call( {String? originalTitle, @@ -303,7 +366,8 @@ class _MovieModelCopyWithImpl<$R, $Out> extends ClassCopyWithBase<$R, MovieModel status: data.get(#status, or: $value.status), related: data.get(#related, or: $value.related), seerrRelated: data.get(#seerrRelated, or: $value.seerrRelated), - seerrRecommended: data.get(#seerrRecommended, or: $value.seerrRecommended), + seerrRecommended: + data.get(#seerrRecommended, or: $value.seerrRecommended), providerIds: data.get(#providerIds, or: $value.providerIds), name: data.get(#name, or: $value.name), id: data.get(#id, or: $value.id), @@ -321,6 +385,7 @@ class _MovieModelCopyWithImpl<$R, $Out> extends ClassCopyWithBase<$R, MovieModel jellyType: data.get(#jellyType, or: $value.jellyType)); @override - MovieModelCopyWith<$R2, MovieModel, $Out2> $chain<$R2, $Out2>(Then<$Out2, $R2> t) => + MovieModelCopyWith<$R2, MovieModel, $Out2> $chain<$R2, $Out2>( + Then<$Out2, $R2> t) => _MovieModelCopyWithImpl<$R2, $Out2>($value, $cast, t); } diff --git a/lib/models/items/overview_model.mapper.dart b/lib/models/items/overview_model.mapper.dart index a146ace49..dc9619d8c 100644 --- a/lib/models/items/overview_model.mapper.dart +++ b/lib/models/items/overview_model.mapper.dart @@ -21,42 +21,57 @@ class OverviewModelMapper extends ClassMapperBase { final String id = 'OverviewModel'; static Duration? _$runTime(OverviewModel v) => v.runTime; - static const Field _f$runTime = Field('runTime', _$runTime, opt: true); + static const Field _f$runTime = + Field('runTime', _$runTime, opt: true); static String _$summary(OverviewModel v) => v.summary; - static const Field _f$summary = Field('summary', _$summary, opt: true, def: ""); + static const Field _f$summary = + Field('summary', _$summary, opt: true, def: ""); static int? _$yearAired(OverviewModel v) => v.yearAired; - static const Field _f$yearAired = Field('yearAired', _$yearAired, opt: true); + static const Field _f$yearAired = + Field('yearAired', _$yearAired, opt: true); static DateTime? _$dateAdded(OverviewModel v) => v.dateAdded; - static const Field _f$dateAdded = Field('dateAdded', _$dateAdded, opt: true); + static const Field _f$dateAdded = + Field('dateAdded', _$dateAdded, opt: true); static String? _$parentalRating(OverviewModel v) => v.parentalRating; - static const Field _f$parentalRating = Field('parentalRating', _$parentalRating, opt: true); + static const Field _f$parentalRating = + Field('parentalRating', _$parentalRating, opt: true); static int? _$productionYear(OverviewModel v) => v.productionYear; - static const Field _f$productionYear = Field('productionYear', _$productionYear, opt: true); + static const Field _f$productionYear = + Field('productionYear', _$productionYear, opt: true); static double? _$criticRating(OverviewModel v) => v.criticRating; - static const Field _f$criticRating = Field('criticRating', _$criticRating, opt: true); + static const Field _f$criticRating = + Field('criticRating', _$criticRating, opt: true); static double? _$communityRating(OverviewModel v) => v.communityRating; - static const Field _f$communityRating = Field('communityRating', _$communityRating, opt: true); - static Map? _$trickPlayInfo(OverviewModel v) => v.trickPlayInfo; - static const Field> _f$trickPlayInfo = - Field('trickPlayInfo', _$trickPlayInfo, opt: true); + static const Field _f$communityRating = + Field('communityRating', _$communityRating, opt: true); + static Map? _$trickPlayInfo(OverviewModel v) => + v.trickPlayInfo; + static const Field> + _f$trickPlayInfo = Field('trickPlayInfo', _$trickPlayInfo, opt: true); static List? _$chapters(OverviewModel v) => v.chapters; - static const Field> _f$chapters = Field('chapters', _$chapters, opt: true); + static const Field> _f$chapters = + Field('chapters', _$chapters, opt: true); static List? _$externalUrls(OverviewModel v) => v.externalUrls; static const Field> _f$externalUrls = Field('externalUrls', _$externalUrls, opt: true); static List _$studios(OverviewModel v) => v.studios; - static const Field> _f$studios = Field('studios', _$studios, opt: true, def: const []); + static const Field> _f$studios = + Field('studios', _$studios, opt: true, def: const []); static List _$genres(OverviewModel v) => v.genres; - static const Field> _f$genres = Field('genres', _$genres, opt: true, def: const []); + static const Field> _f$genres = + Field('genres', _$genres, opt: true, def: const []); static List _$genreItems(OverviewModel v) => v.genreItems; static const Field> _f$genreItems = Field('genreItems', _$genreItems, opt: true, def: const []); static List _$tags(OverviewModel v) => v.tags; - static const Field> _f$tags = Field('tags', _$tags, opt: true, def: const []); + static const Field> _f$tags = + Field('tags', _$tags, opt: true, def: const []); static List _$people(OverviewModel v) => v.people; - static const Field> _f$people = Field('people', _$people, opt: true, def: const []); + static const Field> _f$people = + Field('people', _$people, opt: true, def: const []); static String? _$seerrUrl(OverviewModel v) => v.seerrUrl; - static const Field _f$seerrUrl = Field('seerrUrl', _$seerrUrl, opt: true); + static const Field _f$seerrUrl = + Field('seerrUrl', _$seerrUrl, opt: true); @override final MappableFields fields = const { @@ -107,22 +122,28 @@ class OverviewModelMapper extends ClassMapperBase { } mixin OverviewModelMappable { - OverviewModelCopyWith get copyWith => - _OverviewModelCopyWithImpl(this as OverviewModel, $identity, $identity); + OverviewModelCopyWith + get copyWith => _OverviewModelCopyWithImpl( + this as OverviewModel, $identity, $identity); } -extension OverviewModelValueCopy<$R, $Out> on ObjectCopyWith<$R, OverviewModel, $Out> { +extension OverviewModelValueCopy<$R, $Out> + on ObjectCopyWith<$R, OverviewModel, $Out> { OverviewModelCopyWith<$R, OverviewModel, $Out> get $asOverviewModel => $base.as((v, t, t2) => _OverviewModelCopyWithImpl<$R, $Out>(v, t, t2)); } -abstract class OverviewModelCopyWith<$R, $In extends OverviewModel, $Out> implements ClassCopyWith<$R, $In, $Out> { - MapCopyWith<$R, String, TrickPlayModel, ObjectCopyWith<$R, TrickPlayModel, TrickPlayModel>>? get trickPlayInfo; +abstract class OverviewModelCopyWith<$R, $In extends OverviewModel, $Out> + implements ClassCopyWith<$R, $In, $Out> { + MapCopyWith<$R, String, TrickPlayModel, + ObjectCopyWith<$R, TrickPlayModel, TrickPlayModel>>? get trickPlayInfo; ListCopyWith<$R, Chapter, ObjectCopyWith<$R, Chapter, Chapter>>? get chapters; - ListCopyWith<$R, ExternalUrls, ObjectCopyWith<$R, ExternalUrls, ExternalUrls>>? get externalUrls; + ListCopyWith<$R, ExternalUrls, + ObjectCopyWith<$R, ExternalUrls, ExternalUrls>>? get externalUrls; ListCopyWith<$R, Studio, ObjectCopyWith<$R, Studio, Studio>> get studios; ListCopyWith<$R, String, ObjectCopyWith<$R, String, String>> get genres; - ListCopyWith<$R, GenreItems, ObjectCopyWith<$R, GenreItems, GenreItems>> get genreItems; + ListCopyWith<$R, GenreItems, ObjectCopyWith<$R, GenreItems, GenreItems>> + get genreItems; ListCopyWith<$R, String, ObjectCopyWith<$R, String, String>> get tags; ListCopyWith<$R, Person, ObjectCopyWith<$R, Person, Person>> get people; $R call( @@ -146,41 +167,62 @@ abstract class OverviewModelCopyWith<$R, $In extends OverviewModel, $Out> implem OverviewModelCopyWith<$R2, $In, $Out2> $chain<$R2, $Out2>(Then<$Out2, $R2> t); } -class _OverviewModelCopyWithImpl<$R, $Out> extends ClassCopyWithBase<$R, OverviewModel, $Out> +class _OverviewModelCopyWithImpl<$R, $Out> + extends ClassCopyWithBase<$R, OverviewModel, $Out> implements OverviewModelCopyWith<$R, OverviewModel, $Out> { _OverviewModelCopyWithImpl(super.value, super.then, super.then2); @override - late final ClassMapperBase $mapper = OverviewModelMapper.ensureInitialized(); + late final ClassMapperBase $mapper = + OverviewModelMapper.ensureInitialized(); @override - MapCopyWith<$R, String, TrickPlayModel, ObjectCopyWith<$R, TrickPlayModel, TrickPlayModel>>? get trickPlayInfo => - $value.trickPlayInfo != null - ? MapCopyWith($value.trickPlayInfo!, (v, t) => ObjectCopyWith(v, $identity, t), (v) => call(trickPlayInfo: v)) + MapCopyWith<$R, String, TrickPlayModel, + ObjectCopyWith<$R, TrickPlayModel, TrickPlayModel>>? + get trickPlayInfo => $value.trickPlayInfo != null + ? MapCopyWith( + $value.trickPlayInfo!, + (v, t) => ObjectCopyWith(v, $identity, t), + (v) => call(trickPlayInfo: v)) : null; @override - ListCopyWith<$R, Chapter, ObjectCopyWith<$R, Chapter, Chapter>>? get chapters => $value.chapters != null - ? ListCopyWith($value.chapters!, (v, t) => ObjectCopyWith(v, $identity, t), (v) => call(chapters: v)) - : null; + ListCopyWith<$R, Chapter, ObjectCopyWith<$R, Chapter, Chapter>>? + get chapters => $value.chapters != null + ? ListCopyWith( + $value.chapters!, + (v, t) => ObjectCopyWith(v, $identity, t), + (v) => call(chapters: v)) + : null; @override - ListCopyWith<$R, ExternalUrls, ObjectCopyWith<$R, ExternalUrls, ExternalUrls>>? get externalUrls => - $value.externalUrls != null - ? ListCopyWith($value.externalUrls!, (v, t) => ObjectCopyWith(v, $identity, t), (v) => call(externalUrls: v)) + ListCopyWith<$R, ExternalUrls, + ObjectCopyWith<$R, ExternalUrls, ExternalUrls>>? + get externalUrls => $value.externalUrls != null + ? ListCopyWith( + $value.externalUrls!, + (v, t) => ObjectCopyWith(v, $identity, t), + (v) => call(externalUrls: v)) : null; @override ListCopyWith<$R, Studio, ObjectCopyWith<$R, Studio, Studio>> get studios => - ListCopyWith($value.studios, (v, t) => ObjectCopyWith(v, $identity, t), (v) => call(studios: v)); + ListCopyWith($value.studios, (v, t) => ObjectCopyWith(v, $identity, t), + (v) => call(studios: v)); @override ListCopyWith<$R, String, ObjectCopyWith<$R, String, String>> get genres => - ListCopyWith($value.genres, (v, t) => ObjectCopyWith(v, $identity, t), (v) => call(genres: v)); + ListCopyWith($value.genres, (v, t) => ObjectCopyWith(v, $identity, t), + (v) => call(genres: v)); @override - ListCopyWith<$R, GenreItems, ObjectCopyWith<$R, GenreItems, GenreItems>> get genreItems => - ListCopyWith($value.genreItems, (v, t) => ObjectCopyWith(v, $identity, t), (v) => call(genreItems: v)); + ListCopyWith<$R, GenreItems, ObjectCopyWith<$R, GenreItems, GenreItems>> + get genreItems => ListCopyWith( + $value.genreItems, + (v, t) => ObjectCopyWith(v, $identity, t), + (v) => call(genreItems: v)); @override ListCopyWith<$R, String, ObjectCopyWith<$R, String, String>> get tags => - ListCopyWith($value.tags, (v, t) => ObjectCopyWith(v, $identity, t), (v) => call(tags: v)); + ListCopyWith($value.tags, (v, t) => ObjectCopyWith(v, $identity, t), + (v) => call(tags: v)); @override ListCopyWith<$R, Person, ObjectCopyWith<$R, Person, Person>> get people => - ListCopyWith($value.people, (v, t) => ObjectCopyWith(v, $identity, t), (v) => call(people: v)); + ListCopyWith($value.people, (v, t) => ObjectCopyWith(v, $identity, t), + (v) => call(people: v)); @override $R call( {Object? runTime = $none, @@ -240,6 +282,7 @@ class _OverviewModelCopyWithImpl<$R, $Out> extends ClassCopyWithBase<$R, Overvie seerrUrl: data.get(#seerrUrl, or: $value.seerrUrl)); @override - OverviewModelCopyWith<$R2, OverviewModel, $Out2> $chain<$R2, $Out2>(Then<$Out2, $R2> t) => + OverviewModelCopyWith<$R2, OverviewModel, $Out2> $chain<$R2, $Out2>( + Then<$Out2, $R2> t) => _OverviewModelCopyWithImpl<$R2, $Out2>($value, $cast, t); } diff --git a/lib/models/items/person_model.mapper.dart b/lib/models/items/person_model.mapper.dart index 7d771a0b4..c31b4dcd1 100644 --- a/lib/models/items/person_model.mapper.dart +++ b/lib/models/items/person_model.mapper.dart @@ -26,37 +26,51 @@ class PersonModelMapper extends SubClassMapperBase { final String id = 'PersonModel'; static DateTime? _$dateOfBirth(PersonModel v) => v.dateOfBirth; - static const Field _f$dateOfBirth = Field('dateOfBirth', _$dateOfBirth, opt: true); + static const Field _f$dateOfBirth = + Field('dateOfBirth', _$dateOfBirth, opt: true); static List _$birthPlace(PersonModel v) => v.birthPlace; - static const Field> _f$birthPlace = Field('birthPlace', _$birthPlace); + static const Field> _f$birthPlace = + Field('birthPlace', _$birthPlace); static List _$movies(PersonModel v) => v.movies; - static const Field> _f$movies = Field('movies', _$movies); + static const Field> _f$movies = + Field('movies', _$movies); static List _$series(PersonModel v) => v.series; - static const Field> _f$series = Field('series', _$series); + static const Field> _f$series = + Field('series', _$series); static String _$name(PersonModel v) => v.name; static const Field _f$name = Field('name', _$name); static String _$id(PersonModel v) => v.id; static const Field _f$id = Field('id', _$id); static OverviewModel _$overview(PersonModel v) => v.overview; - static const Field _f$overview = Field('overview', _$overview); + static const Field _f$overview = + Field('overview', _$overview); static String? _$parentId(PersonModel v) => v.parentId; - static const Field _f$parentId = Field('parentId', _$parentId); + static const Field _f$parentId = + Field('parentId', _$parentId); static String? _$playlistId(PersonModel v) => v.playlistId; - static const Field _f$playlistId = Field('playlistId', _$playlistId); + static const Field _f$playlistId = + Field('playlistId', _$playlistId); static ImagesData? _$images(PersonModel v) => v.images; - static const Field _f$images = Field('images', _$images); + static const Field _f$images = + Field('images', _$images); static int? _$childCount(PersonModel v) => v.childCount; - static const Field _f$childCount = Field('childCount', _$childCount); + static const Field _f$childCount = + Field('childCount', _$childCount); static double? _$primaryRatio(PersonModel v) => v.primaryRatio; - static const Field _f$primaryRatio = Field('primaryRatio', _$primaryRatio); + static const Field _f$primaryRatio = + Field('primaryRatio', _$primaryRatio); static UserData _$userData(PersonModel v) => v.userData; - static const Field _f$userData = Field('userData', _$userData); + static const Field _f$userData = + Field('userData', _$userData); static bool? _$canDownload(PersonModel v) => v.canDownload; - static const Field _f$canDownload = Field('canDownload', _$canDownload, opt: true); + static const Field _f$canDownload = + Field('canDownload', _$canDownload, opt: true); static bool? _$canDelete(PersonModel v) => v.canDelete; - static const Field _f$canDelete = Field('canDelete', _$canDelete, opt: true); + static const Field _f$canDelete = + Field('canDelete', _$canDelete, opt: true); static BaseItemKind? _$jellyType(PersonModel v) => v.jellyType; - static const Field _f$jellyType = Field('jellyType', _$jellyType, opt: true); + static const Field _f$jellyType = + Field('jellyType', _$jellyType, opt: true); @override final MappableFields fields = const { @@ -85,7 +99,8 @@ class PersonModelMapper extends SubClassMapperBase { @override final dynamic discriminatorValue = 'PersonModel'; @override - late final ClassMapperBase superMapper = ItemBaseModelMapper.ensureInitialized(); + late final ClassMapperBase superMapper = + ItemBaseModelMapper.ensureInitialized(); static PersonModel _instantiate(DecodingData data) { return PersonModel( @@ -113,18 +128,23 @@ 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> { +extension PersonModelValueCopy<$R, $Out> + on ObjectCopyWith<$R, PersonModel, $Out> { PersonModelCopyWith<$R, PersonModel, $Out> get $asPersonModel => $base.as((v, t, t2) => _PersonModelCopyWithImpl<$R, $Out>(v, t, t2)); } -abstract class PersonModelCopyWith<$R, $In extends PersonModel, $Out> implements ItemBaseModelCopyWith<$R, $In, $Out> { +abstract class PersonModelCopyWith<$R, $In extends PersonModel, $Out> + implements ItemBaseModelCopyWith<$R, $In, $Out> { ListCopyWith<$R, String, ObjectCopyWith<$R, String, String>> get birthPlace; - ListCopyWith<$R, MovieModel, MovieModelCopyWith<$R, MovieModel, MovieModel>> get movies; - ListCopyWith<$R, SeriesModel, SeriesModelCopyWith<$R, SeriesModel, SeriesModel>> get series; + ListCopyWith<$R, MovieModel, MovieModelCopyWith<$R, MovieModel, MovieModel>> + get movies; + ListCopyWith<$R, SeriesModel, + SeriesModelCopyWith<$R, SeriesModel, SeriesModel>> get series; @override OverviewModelCopyWith<$R, OverviewModel, OverviewModel> get overview; @override @@ -150,26 +170,33 @@ abstract class PersonModelCopyWith<$R, $In extends PersonModel, $Out> implements PersonModelCopyWith<$R2, $In, $Out2> $chain<$R2, $Out2>(Then<$Out2, $R2> t); } -class _PersonModelCopyWithImpl<$R, $Out> extends ClassCopyWithBase<$R, PersonModel, $Out> +class _PersonModelCopyWithImpl<$R, $Out> + extends ClassCopyWithBase<$R, PersonModel, $Out> implements PersonModelCopyWith<$R, PersonModel, $Out> { _PersonModelCopyWithImpl(super.value, super.then, super.then2); @override - late final ClassMapperBase $mapper = PersonModelMapper.ensureInitialized(); + late final ClassMapperBase $mapper = + PersonModelMapper.ensureInitialized(); @override ListCopyWith<$R, String, ObjectCopyWith<$R, String, String>> get birthPlace => - ListCopyWith($value.birthPlace, (v, t) => ObjectCopyWith(v, $identity, t), (v) => call(birthPlace: v)); + ListCopyWith($value.birthPlace, (v, t) => ObjectCopyWith(v, $identity, t), + (v) => call(birthPlace: v)); @override - ListCopyWith<$R, MovieModel, MovieModelCopyWith<$R, MovieModel, MovieModel>> get movies => - ListCopyWith($value.movies, (v, t) => v.copyWith.$chain(t), (v) => call(movies: v)); + ListCopyWith<$R, MovieModel, MovieModelCopyWith<$R, MovieModel, MovieModel>> + get movies => ListCopyWith($value.movies, (v, t) => v.copyWith.$chain(t), + (v) => call(movies: v)); @override - ListCopyWith<$R, SeriesModel, SeriesModelCopyWith<$R, SeriesModel, SeriesModel>> get series => - ListCopyWith($value.series, (v, t) => v.copyWith.$chain(t), (v) => call(series: v)); + ListCopyWith<$R, SeriesModel, + SeriesModelCopyWith<$R, SeriesModel, SeriesModel>> + get series => ListCopyWith($value.series, (v, t) => v.copyWith.$chain(t), + (v) => call(series: v)); @override OverviewModelCopyWith<$R, OverviewModel, OverviewModel> get overview => $value.overview.copyWith.$chain((v) => call(overview: v)); @override - UserDataCopyWith<$R, UserData, UserData> get userData => $value.userData.copyWith.$chain((v) => call(userData: v)); + UserDataCopyWith<$R, UserData, UserData> get userData => + $value.userData.copyWith.$chain((v) => call(userData: v)); @override $R call( {Object? dateOfBirth = $none, @@ -226,6 +253,7 @@ class _PersonModelCopyWithImpl<$R, $Out> extends ClassCopyWithBase<$R, PersonMod jellyType: data.get(#jellyType, or: $value.jellyType)); @override - PersonModelCopyWith<$R2, PersonModel, $Out2> $chain<$R2, $Out2>(Then<$Out2, $R2> t) => + PersonModelCopyWith<$R2, PersonModel, $Out2> $chain<$R2, $Out2>( + Then<$Out2, $R2> 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 b70cd25b9..b2d2734d9 100644 --- a/lib/models/items/photos_model.mapper.dart +++ b/lib/models/items/photos_model.mapper.dart @@ -25,31 +25,42 @@ class PhotoAlbumModelMapper extends SubClassMapperBase { final String id = 'PhotoAlbumModel'; static List _$photos(PhotoAlbumModel v) => v.photos; - static const Field> _f$photos = Field('photos', _$photos); + static const Field> _f$photos = + Field('photos', _$photos); static String _$name(PhotoAlbumModel v) => v.name; static const Field _f$name = Field('name', _$name); static String _$id(PhotoAlbumModel v) => v.id; static const Field _f$id = Field('id', _$id); static OverviewModel _$overview(PhotoAlbumModel v) => v.overview; - static const Field _f$overview = Field('overview', _$overview); + static const Field _f$overview = + Field('overview', _$overview); static String? _$parentId(PhotoAlbumModel v) => v.parentId; - static const Field _f$parentId = Field('parentId', _$parentId); + static const Field _f$parentId = + Field('parentId', _$parentId); static String? _$playlistId(PhotoAlbumModel v) => v.playlistId; - static const Field _f$playlistId = Field('playlistId', _$playlistId); + static const Field _f$playlistId = + Field('playlistId', _$playlistId); static ImagesData? _$images(PhotoAlbumModel v) => v.images; - static const Field _f$images = Field('images', _$images); + static const Field _f$images = + Field('images', _$images); static int? _$childCount(PhotoAlbumModel v) => v.childCount; - static const Field _f$childCount = Field('childCount', _$childCount); + static const Field _f$childCount = + Field('childCount', _$childCount); static double? _$primaryRatio(PhotoAlbumModel v) => v.primaryRatio; - static const Field _f$primaryRatio = Field('primaryRatio', _$primaryRatio); + static const Field _f$primaryRatio = + Field('primaryRatio', _$primaryRatio); static UserData _$userData(PhotoAlbumModel v) => v.userData; - static const Field _f$userData = Field('userData', _$userData); + static const Field _f$userData = + Field('userData', _$userData); static bool? _$canDelete(PhotoAlbumModel v) => v.canDelete; - static const Field _f$canDelete = Field('canDelete', _$canDelete, opt: true); + static const Field _f$canDelete = + Field('canDelete', _$canDelete, opt: true); static bool? _$canDownload(PhotoAlbumModel v) => v.canDownload; - static const Field _f$canDownload = Field('canDownload', _$canDownload, opt: true); + static const Field _f$canDownload = + Field('canDownload', _$canDownload, opt: true); static dto.BaseItemKind? _$jellyType(PhotoAlbumModel v) => v.jellyType; - static const Field _f$jellyType = Field('jellyType', _$jellyType, opt: true); + static const Field _f$jellyType = + Field('jellyType', _$jellyType, opt: true); @override final MappableFields fields = const { @@ -75,7 +86,8 @@ class PhotoAlbumModelMapper extends SubClassMapperBase { @override final dynamic discriminatorValue = 'PhotoAlbumModel'; @override - late final ClassMapperBase superMapper = ItemBaseModelMapper.ensureInitialized(); + late final ClassMapperBase superMapper = + ItemBaseModelMapper.ensureInitialized(); static PhotoAlbumModel _instantiate(DecodingData data) { return PhotoAlbumModel( @@ -99,18 +111,22 @@ class PhotoAlbumModelMapper extends SubClassMapperBase { } mixin PhotoAlbumModelMappable { - PhotoAlbumModelCopyWith get copyWith => - _PhotoAlbumModelCopyWithImpl(this as PhotoAlbumModel, $identity, $identity); + PhotoAlbumModelCopyWith + get copyWith => + _PhotoAlbumModelCopyWithImpl( + this as PhotoAlbumModel, $identity, $identity); } -extension PhotoAlbumModelValueCopy<$R, $Out> on ObjectCopyWith<$R, PhotoAlbumModel, $Out> { +extension PhotoAlbumModelValueCopy<$R, $Out> + on ObjectCopyWith<$R, PhotoAlbumModel, $Out> { PhotoAlbumModelCopyWith<$R, PhotoAlbumModel, $Out> get $asPhotoAlbumModel => $base.as((v, t, t2) => _PhotoAlbumModelCopyWithImpl<$R, $Out>(v, t, t2)); } abstract class PhotoAlbumModelCopyWith<$R, $In extends PhotoAlbumModel, $Out> implements ItemBaseModelCopyWith<$R, $In, $Out> { - ListCopyWith<$R, ItemBaseModel, ItemBaseModelCopyWith<$R, ItemBaseModel, ItemBaseModel>> get photos; + ListCopyWith<$R, ItemBaseModel, + ItemBaseModelCopyWith<$R, ItemBaseModel, ItemBaseModel>> get photos; @override OverviewModelCopyWith<$R, OverviewModel, OverviewModel> get overview; @override @@ -130,23 +146,29 @@ abstract class PhotoAlbumModelCopyWith<$R, $In extends PhotoAlbumModel, $Out> bool? canDelete, bool? canDownload, dto.BaseItemKind? jellyType}); - PhotoAlbumModelCopyWith<$R2, $In, $Out2> $chain<$R2, $Out2>(Then<$Out2, $R2> t); + PhotoAlbumModelCopyWith<$R2, $In, $Out2> $chain<$R2, $Out2>( + Then<$Out2, $R2> t); } -class _PhotoAlbumModelCopyWithImpl<$R, $Out> extends ClassCopyWithBase<$R, PhotoAlbumModel, $Out> +class _PhotoAlbumModelCopyWithImpl<$R, $Out> + extends ClassCopyWithBase<$R, PhotoAlbumModel, $Out> implements PhotoAlbumModelCopyWith<$R, PhotoAlbumModel, $Out> { _PhotoAlbumModelCopyWithImpl(super.value, super.then, super.then2); @override - late final ClassMapperBase $mapper = PhotoAlbumModelMapper.ensureInitialized(); + late final ClassMapperBase $mapper = + PhotoAlbumModelMapper.ensureInitialized(); @override - ListCopyWith<$R, ItemBaseModel, ItemBaseModelCopyWith<$R, ItemBaseModel, ItemBaseModel>> get photos => - ListCopyWith($value.photos, (v, t) => v.copyWith.$chain(t), (v) => call(photos: v)); + ListCopyWith<$R, ItemBaseModel, + ItemBaseModelCopyWith<$R, ItemBaseModel, ItemBaseModel>> + get photos => ListCopyWith($value.photos, (v, t) => v.copyWith.$chain(t), + (v) => call(photos: v)); @override OverviewModelCopyWith<$R, OverviewModel, OverviewModel> get overview => $value.overview.copyWith.$chain((v) => call(overview: v)); @override - UserDataCopyWith<$R, UserData, UserData> get userData => $value.userData.copyWith.$chain((v) => call(userData: v)); + UserDataCopyWith<$R, UserData, UserData> get userData => + $value.userData.copyWith.$chain((v) => call(userData: v)); @override $R call( {List? photos, @@ -194,7 +216,8 @@ class _PhotoAlbumModelCopyWithImpl<$R, $Out> extends ClassCopyWithBase<$R, Photo jellyType: data.get(#jellyType, or: $value.jellyType)); @override - PhotoAlbumModelCopyWith<$R2, PhotoAlbumModel, $Out2> $chain<$R2, $Out2>(Then<$Out2, $R2> t) => + PhotoAlbumModelCopyWith<$R2, PhotoAlbumModel, $Out2> $chain<$R2, $Out2>( + Then<$Out2, $R2> t) => _PhotoAlbumModelCopyWithImpl<$R2, $Out2>($value, $cast, t); } @@ -216,37 +239,51 @@ class PhotoModelMapper extends SubClassMapperBase { final String id = 'PhotoModel'; static String? _$albumId(PhotoModel v) => v.albumId; - static const Field _f$albumId = Field('albumId', _$albumId); + static const Field _f$albumId = + Field('albumId', _$albumId); static DateTime? _$dateTaken(PhotoModel v) => v.dateTaken; - static const Field _f$dateTaken = Field('dateTaken', _$dateTaken); + static const Field _f$dateTaken = + Field('dateTaken', _$dateTaken); static ImagesData? _$thumbnail(PhotoModel v) => v.thumbnail; - static const Field _f$thumbnail = Field('thumbnail', _$thumbnail); + static const Field _f$thumbnail = + Field('thumbnail', _$thumbnail); static FladderItemType _$internalType(PhotoModel v) => v.internalType; - static const Field _f$internalType = Field('internalType', _$internalType); + static const Field _f$internalType = + Field('internalType', _$internalType); static String _$name(PhotoModel v) => v.name; static const Field _f$name = Field('name', _$name); static String _$id(PhotoModel v) => v.id; static const Field _f$id = Field('id', _$id); static OverviewModel _$overview(PhotoModel v) => v.overview; - static const Field _f$overview = Field('overview', _$overview); + static const Field _f$overview = + Field('overview', _$overview); static String? _$parentId(PhotoModel v) => v.parentId; - static const Field _f$parentId = Field('parentId', _$parentId); + static const Field _f$parentId = + Field('parentId', _$parentId); static String? _$playlistId(PhotoModel v) => v.playlistId; - static const Field _f$playlistId = Field('playlistId', _$playlistId); + static const Field _f$playlistId = + Field('playlistId', _$playlistId); static ImagesData? _$images(PhotoModel v) => v.images; - static const Field _f$images = Field('images', _$images); + static const Field _f$images = + Field('images', _$images); static int? _$childCount(PhotoModel v) => v.childCount; - static const Field _f$childCount = Field('childCount', _$childCount); + static const Field _f$childCount = + Field('childCount', _$childCount); static double? _$primaryRatio(PhotoModel v) => v.primaryRatio; - static const Field _f$primaryRatio = Field('primaryRatio', _$primaryRatio); + static const Field _f$primaryRatio = + Field('primaryRatio', _$primaryRatio); static UserData _$userData(PhotoModel v) => v.userData; - static const Field _f$userData = Field('userData', _$userData); + static const Field _f$userData = + Field('userData', _$userData); static bool? _$canDownload(PhotoModel v) => v.canDownload; - static const Field _f$canDownload = Field('canDownload', _$canDownload); + static const Field _f$canDownload = + Field('canDownload', _$canDownload); static bool? _$canDelete(PhotoModel v) => v.canDelete; - static const Field _f$canDelete = Field('canDelete', _$canDelete); + static const Field _f$canDelete = + Field('canDelete', _$canDelete); static dto.BaseItemKind? _$jellyType(PhotoModel v) => v.jellyType; - static const Field _f$jellyType = Field('jellyType', _$jellyType, opt: true); + static const Field _f$jellyType = + Field('jellyType', _$jellyType, opt: true); @override final MappableFields fields = const { @@ -275,7 +312,8 @@ class PhotoModelMapper extends SubClassMapperBase { @override final dynamic discriminatorValue = 'PhotoModel'; @override - late final ClassMapperBase superMapper = ItemBaseModelMapper.ensureInitialized(); + late final ClassMapperBase superMapper = + ItemBaseModelMapper.ensureInitialized(); static PhotoModel _instantiate(DecodingData data) { return PhotoModel( @@ -303,15 +341,18 @@ class PhotoModelMapper extends SubClassMapperBase { mixin PhotoModelMappable { PhotoModelCopyWith get copyWith => - _PhotoModelCopyWithImpl(this as PhotoModel, $identity, $identity); + _PhotoModelCopyWithImpl( + this as PhotoModel, $identity, $identity); } -extension PhotoModelValueCopy<$R, $Out> on ObjectCopyWith<$R, PhotoModel, $Out> { +extension PhotoModelValueCopy<$R, $Out> + on ObjectCopyWith<$R, PhotoModel, $Out> { PhotoModelCopyWith<$R, PhotoModel, $Out> get $asPhotoModel => $base.as((v, t, t2) => _PhotoModelCopyWithImpl<$R, $Out>(v, t, t2)); } -abstract class PhotoModelCopyWith<$R, $In extends PhotoModel, $Out> implements ItemBaseModelCopyWith<$R, $In, $Out> { +abstract class PhotoModelCopyWith<$R, $In extends PhotoModel, $Out> + implements ItemBaseModelCopyWith<$R, $In, $Out> { @override OverviewModelCopyWith<$R, OverviewModel, OverviewModel> get overview; @override @@ -337,17 +378,20 @@ abstract class PhotoModelCopyWith<$R, $In extends PhotoModel, $Out> implements I PhotoModelCopyWith<$R2, $In, $Out2> $chain<$R2, $Out2>(Then<$Out2, $R2> t); } -class _PhotoModelCopyWithImpl<$R, $Out> extends ClassCopyWithBase<$R, PhotoModel, $Out> +class _PhotoModelCopyWithImpl<$R, $Out> + extends ClassCopyWithBase<$R, PhotoModel, $Out> implements PhotoModelCopyWith<$R, PhotoModel, $Out> { _PhotoModelCopyWithImpl(super.value, super.then, super.then2); @override - late final ClassMapperBase $mapper = PhotoModelMapper.ensureInitialized(); + late final ClassMapperBase $mapper = + PhotoModelMapper.ensureInitialized(); @override OverviewModelCopyWith<$R, OverviewModel, OverviewModel> get overview => $value.overview.copyWith.$chain((v) => call(overview: v)); @override - UserDataCopyWith<$R, UserData, UserData> get userData => $value.userData.copyWith.$chain((v) => call(userData: v)); + UserDataCopyWith<$R, UserData, UserData> get userData => + $value.userData.copyWith.$chain((v) => call(userData: v)); @override $R call( {Object? albumId = $none, @@ -404,6 +448,7 @@ class _PhotoModelCopyWithImpl<$R, $Out> extends ClassCopyWithBase<$R, PhotoModel jellyType: data.get(#jellyType, or: $value.jellyType)); @override - PhotoModelCopyWith<$R2, PhotoModel, $Out2> $chain<$R2, $Out2>(Then<$Out2, $R2> t) => + PhotoModelCopyWith<$R2, PhotoModel, $Out2> $chain<$R2, $Out2>( + Then<$Out2, $R2> t) => _PhotoModelCopyWithImpl<$R2, $Out2>($value, $cast, t); } diff --git a/lib/models/items/season_model.mapper.dart b/lib/models/items/season_model.mapper.dart index b236cabd0..0aefaf259 100644 --- a/lib/models/items/season_model.mapper.dart +++ b/lib/models/items/season_model.mapper.dart @@ -26,47 +26,64 @@ class SeasonModelMapper extends SubClassMapperBase { final String id = 'SeasonModel'; static ImagesData? _$parentImages(SeasonModel v) => v.parentImages; - static const Field _f$parentImages = Field('parentImages', _$parentImages); + static const Field _f$parentImages = + Field('parentImages', _$parentImages); static String _$seasonName(SeasonModel v) => v.seasonName; - static const Field _f$seasonName = Field('seasonName', _$seasonName); + static const Field _f$seasonName = + Field('seasonName', _$seasonName); static List _$episodes(SeasonModel v) => v.episodes; static const Field> _f$episodes = Field('episodes', _$episodes, opt: true, def: const []); - static List _$specialFeatures(SeasonModel v) => v.specialFeatures; - static const Field> _f$specialFeatures = + static List _$specialFeatures(SeasonModel v) => + v.specialFeatures; + static const Field> + _f$specialFeatures = Field('specialFeatures', _$specialFeatures, opt: true, def: const []); static int _$episodeCount(SeasonModel v) => v.episodeCount; - static const Field _f$episodeCount = Field('episodeCount', _$episodeCount); + static const Field _f$episodeCount = + Field('episodeCount', _$episodeCount); static String _$seriesId(SeasonModel v) => v.seriesId; - static const Field _f$seriesId = Field('seriesId', _$seriesId); + static const Field _f$seriesId = + Field('seriesId', _$seriesId); static int _$season(SeasonModel v) => v.season; static const Field _f$season = Field('season', _$season); static String _$seriesName(SeasonModel v) => v.seriesName; - static const Field _f$seriesName = Field('seriesName', _$seriesName); + static const Field _f$seriesName = + Field('seriesName', _$seriesName); static String _$name(SeasonModel v) => v.name; static const Field _f$name = Field('name', _$name); static String _$id(SeasonModel v) => v.id; static const Field _f$id = Field('id', _$id); static OverviewModel _$overview(SeasonModel v) => v.overview; - static const Field _f$overview = Field('overview', _$overview); + static const Field _f$overview = + Field('overview', _$overview); static String? _$parentId(SeasonModel v) => v.parentId; - static const Field _f$parentId = Field('parentId', _$parentId); + static const Field _f$parentId = + Field('parentId', _$parentId); static String? _$playlistId(SeasonModel v) => v.playlistId; - static const Field _f$playlistId = Field('playlistId', _$playlistId); + static const Field _f$playlistId = + Field('playlistId', _$playlistId); static ImagesData? _$images(SeasonModel v) => v.images; - static const Field _f$images = Field('images', _$images); + static const Field _f$images = + Field('images', _$images); static int? _$childCount(SeasonModel v) => v.childCount; - static const Field _f$childCount = Field('childCount', _$childCount); + static const Field _f$childCount = + Field('childCount', _$childCount); static double? _$primaryRatio(SeasonModel v) => v.primaryRatio; - static const Field _f$primaryRatio = Field('primaryRatio', _$primaryRatio); + static const Field _f$primaryRatio = + Field('primaryRatio', _$primaryRatio); static UserData _$userData(SeasonModel v) => v.userData; - static const Field _f$userData = Field('userData', _$userData); + static const Field _f$userData = + Field('userData', _$userData); static bool? _$canDelete(SeasonModel v) => v.canDelete; - static const Field _f$canDelete = Field('canDelete', _$canDelete); + static const Field _f$canDelete = + Field('canDelete', _$canDelete); static bool? _$canDownload(SeasonModel v) => v.canDownload; - static const Field _f$canDownload = Field('canDownload', _$canDownload); + static const Field _f$canDownload = + Field('canDownload', _$canDownload); static dto.BaseItemKind? _$jellyType(SeasonModel v) => v.jellyType; - static const Field _f$jellyType = Field('jellyType', _$jellyType, opt: true); + static const Field _f$jellyType = + Field('jellyType', _$jellyType, opt: true); @override final MappableFields fields = const { @@ -99,7 +116,8 @@ class SeasonModelMapper extends SubClassMapperBase { @override final dynamic discriminatorValue = 'SeasonModel'; @override - late final ClassMapperBase superMapper = ItemBaseModelMapper.ensureInitialized(); + late final ClassMapperBase superMapper = + ItemBaseModelMapper.ensureInitialized(); static SeasonModel _instantiate(DecodingData data) { return SeasonModel( @@ -131,18 +149,25 @@ class SeasonModelMapper extends SubClassMapperBase { mixin SeasonModelMappable { SeasonModelCopyWith get copyWith => - _SeasonModelCopyWithImpl(this as SeasonModel, $identity, $identity); + _SeasonModelCopyWithImpl( + this as SeasonModel, $identity, $identity); } -extension SeasonModelValueCopy<$R, $Out> on ObjectCopyWith<$R, SeasonModel, $Out> { +extension SeasonModelValueCopy<$R, $Out> + on ObjectCopyWith<$R, SeasonModel, $Out> { SeasonModelCopyWith<$R, SeasonModel, $Out> get $asSeasonModel => $base.as((v, t, t2) => _SeasonModelCopyWithImpl<$R, $Out>(v, t, t2)); } -abstract class SeasonModelCopyWith<$R, $In extends SeasonModel, $Out> implements ItemBaseModelCopyWith<$R, $In, $Out> { - ListCopyWith<$R, EpisodeModel, EpisodeModelCopyWith<$R, EpisodeModel, EpisodeModel>> get episodes; - ListCopyWith<$R, SpecialFeatureModel, SpecialFeatureModelCopyWith<$R, SpecialFeatureModel, SpecialFeatureModel>> - get specialFeatures; +abstract class SeasonModelCopyWith<$R, $In extends SeasonModel, $Out> + implements ItemBaseModelCopyWith<$R, $In, $Out> { + ListCopyWith<$R, EpisodeModel, + EpisodeModelCopyWith<$R, EpisodeModel, EpisodeModel>> get episodes; + ListCopyWith< + $R, + SpecialFeatureModel, + SpecialFeatureModelCopyWith<$R, SpecialFeatureModel, + SpecialFeatureModel>> get specialFeatures; @override OverviewModelCopyWith<$R, OverviewModel, OverviewModel> get overview; @override @@ -172,24 +197,34 @@ abstract class SeasonModelCopyWith<$R, $In extends SeasonModel, $Out> implements SeasonModelCopyWith<$R2, $In, $Out2> $chain<$R2, $Out2>(Then<$Out2, $R2> t); } -class _SeasonModelCopyWithImpl<$R, $Out> extends ClassCopyWithBase<$R, SeasonModel, $Out> +class _SeasonModelCopyWithImpl<$R, $Out> + extends ClassCopyWithBase<$R, SeasonModel, $Out> implements SeasonModelCopyWith<$R, SeasonModel, $Out> { _SeasonModelCopyWithImpl(super.value, super.then, super.then2); @override - late final ClassMapperBase $mapper = SeasonModelMapper.ensureInitialized(); + late final ClassMapperBase $mapper = + SeasonModelMapper.ensureInitialized(); @override - ListCopyWith<$R, EpisodeModel, EpisodeModelCopyWith<$R, EpisodeModel, EpisodeModel>> get episodes => - ListCopyWith($value.episodes, (v, t) => v.copyWith.$chain(t), (v) => call(episodes: v)); + ListCopyWith<$R, EpisodeModel, + EpisodeModelCopyWith<$R, EpisodeModel, EpisodeModel>> + get episodes => ListCopyWith($value.episodes, + (v, t) => v.copyWith.$chain(t), (v) => call(episodes: v)); @override - ListCopyWith<$R, SpecialFeatureModel, SpecialFeatureModelCopyWith<$R, SpecialFeatureModel, SpecialFeatureModel>> - get specialFeatures => - ListCopyWith($value.specialFeatures, (v, t) => v.copyWith.$chain(t), (v) => call(specialFeatures: v)); + ListCopyWith< + $R, + SpecialFeatureModel, + SpecialFeatureModelCopyWith<$R, SpecialFeatureModel, + SpecialFeatureModel>> get specialFeatures => ListCopyWith( + $value.specialFeatures, + (v, t) => v.copyWith.$chain(t), + (v) => call(specialFeatures: v)); @override OverviewModelCopyWith<$R, OverviewModel, OverviewModel> get overview => $value.overview.copyWith.$chain((v) => call(overview: v)); @override - UserDataCopyWith<$R, UserData, UserData> get userData => $value.userData.copyWith.$chain((v) => call(userData: v)); + UserDataCopyWith<$R, UserData, UserData> get userData => + $value.userData.copyWith.$chain((v) => call(userData: v)); @override $R call( {Object? parentImages = $none, @@ -258,6 +293,7 @@ class _SeasonModelCopyWithImpl<$R, $Out> extends ClassCopyWithBase<$R, SeasonMod jellyType: data.get(#jellyType, or: $value.jellyType)); @override - SeasonModelCopyWith<$R2, SeasonModel, $Out2> $chain<$R2, $Out2>(Then<$Out2, $R2> t) => + SeasonModelCopyWith<$R2, SeasonModel, $Out2> $chain<$R2, $Out2>( + Then<$Out2, $R2> t) => _SeasonModelCopyWithImpl<$R2, $Out2>($value, $cast, t); } diff --git a/lib/models/items/series_model.mapper.dart b/lib/models/items/series_model.mapper.dart index 846815b8c..c608a30bf 100644 --- a/lib/models/items/series_model.mapper.dart +++ b/lib/models/items/series_model.mapper.dart @@ -27,58 +27,79 @@ class SeriesModelMapper extends SubClassMapperBase { @override final String id = 'SeriesModel'; - static List? _$availableEpisodes(SeriesModel v) => v.availableEpisodes; + static List? _$availableEpisodes(SeriesModel v) => + v.availableEpisodes; static const Field> _f$availableEpisodes = Field('availableEpisodes', _$availableEpisodes, opt: true); static List? _$seasons(SeriesModel v) => v.seasons; - static const Field> _f$seasons = Field('seasons', _$seasons, opt: true); + static const Field> _f$seasons = + Field('seasons', _$seasons, opt: true); static EpisodeModel? _$selectedEpisode(SeriesModel v) => v.selectedEpisode; static const Field _f$selectedEpisode = Field('selectedEpisode', _$selectedEpisode, opt: true); - static List? _$specialFeatures(SeriesModel v) => v.specialFeatures; - static const Field> _f$specialFeatures = + static List? _$specialFeatures(SeriesModel v) => + v.specialFeatures; + static const Field> + _f$specialFeatures = Field('specialFeatures', _$specialFeatures, opt: true); static String _$originalTitle(SeriesModel v) => v.originalTitle; - static const Field _f$originalTitle = Field('originalTitle', _$originalTitle); + static const Field _f$originalTitle = + Field('originalTitle', _$originalTitle); static String _$sortName(SeriesModel v) => v.sortName; - static const Field _f$sortName = Field('sortName', _$sortName); + static const Field _f$sortName = + Field('sortName', _$sortName); static String _$status(SeriesModel v) => v.status; static const Field _f$status = Field('status', _$status); static List _$related(SeriesModel v) => v.related; static const Field> _f$related = Field('related', _$related, opt: true, def: const []); - static List _$seerrRelated(SeriesModel v) => v.seerrRelated; - static const Field> _f$seerrRelated = + static List _$seerrRelated(SeriesModel v) => + v.seerrRelated; + static const Field> + _f$seerrRelated = Field('seerrRelated', _$seerrRelated, opt: true, def: const []); - static List _$seerrRecommended(SeriesModel v) => v.seerrRecommended; - static const Field> _f$seerrRecommended = + static List _$seerrRecommended(SeriesModel v) => + v.seerrRecommended; + static const Field> + _f$seerrRecommended = Field('seerrRecommended', _$seerrRecommended, opt: true, def: const []); static Map? _$providerIds(SeriesModel v) => v.providerIds; - static const Field> _f$providerIds = Field('providerIds', _$providerIds, opt: true); + static const Field> _f$providerIds = + Field('providerIds', _$providerIds, opt: true); static String _$name(SeriesModel v) => v.name; static const Field _f$name = Field('name', _$name); static String _$id(SeriesModel v) => v.id; static const Field _f$id = Field('id', _$id); static OverviewModel _$overview(SeriesModel v) => v.overview; - static const Field _f$overview = Field('overview', _$overview); + static const Field _f$overview = + Field('overview', _$overview); static String? _$parentId(SeriesModel v) => v.parentId; - static const Field _f$parentId = Field('parentId', _$parentId); + static const Field _f$parentId = + Field('parentId', _$parentId); static String? _$playlistId(SeriesModel v) => v.playlistId; - static const Field _f$playlistId = Field('playlistId', _$playlistId); + static const Field _f$playlistId = + Field('playlistId', _$playlistId); static ImagesData? _$images(SeriesModel v) => v.images; - static const Field _f$images = Field('images', _$images); + static const Field _f$images = + Field('images', _$images); static int? _$childCount(SeriesModel v) => v.childCount; - static const Field _f$childCount = Field('childCount', _$childCount); + static const Field _f$childCount = + Field('childCount', _$childCount); static double? _$primaryRatio(SeriesModel v) => v.primaryRatio; - static const Field _f$primaryRatio = Field('primaryRatio', _$primaryRatio); + static const Field _f$primaryRatio = + Field('primaryRatio', _$primaryRatio); static UserData _$userData(SeriesModel v) => v.userData; - static const Field _f$userData = Field('userData', _$userData); + static const Field _f$userData = + Field('userData', _$userData); static bool? _$canDownload(SeriesModel v) => v.canDownload; - static const Field _f$canDownload = Field('canDownload', _$canDownload, opt: true); + static const Field _f$canDownload = + Field('canDownload', _$canDownload, opt: true); static bool? _$canDelete(SeriesModel v) => v.canDelete; - static const Field _f$canDelete = Field('canDelete', _$canDelete, opt: true); + static const Field _f$canDelete = + Field('canDelete', _$canDelete, opt: true); static dto.BaseItemKind? _$jellyType(SeriesModel v) => v.jellyType; - static const Field _f$jellyType = Field('jellyType', _$jellyType, opt: true); + static const Field _f$jellyType = + Field('jellyType', _$jellyType, opt: true); @override final MappableFields fields = const { @@ -114,7 +135,8 @@ class SeriesModelMapper extends SubClassMapperBase { @override final dynamic discriminatorValue = 'SeriesModel'; @override - late final ClassMapperBase superMapper = ItemBaseModelMapper.ensureInitialized(); + late final ClassMapperBase superMapper = + ItemBaseModelMapper.ensureInitialized(); static SeriesModel _instantiate(DecodingData data) { return SeriesModel( @@ -149,26 +171,43 @@ class SeriesModelMapper extends SubClassMapperBase { mixin SeriesModelMappable { SeriesModelCopyWith get copyWith => - _SeriesModelCopyWithImpl(this as SeriesModel, $identity, $identity); + _SeriesModelCopyWithImpl( + this as SeriesModel, $identity, $identity); } -extension SeriesModelValueCopy<$R, $Out> on ObjectCopyWith<$R, SeriesModel, $Out> { +extension SeriesModelValueCopy<$R, $Out> + on ObjectCopyWith<$R, SeriesModel, $Out> { SeriesModelCopyWith<$R, SeriesModel, $Out> get $asSeriesModel => $base.as((v, t, t2) => _SeriesModelCopyWithImpl<$R, $Out>(v, t, t2)); } -abstract class SeriesModelCopyWith<$R, $In extends SeriesModel, $Out> implements ItemBaseModelCopyWith<$R, $In, $Out> { - ListCopyWith<$R, EpisodeModel, EpisodeModelCopyWith<$R, EpisodeModel, EpisodeModel>>? get availableEpisodes; - ListCopyWith<$R, SeasonModel, SeasonModelCopyWith<$R, SeasonModel, SeasonModel>>? get seasons; +abstract class SeriesModelCopyWith<$R, $In extends SeriesModel, $Out> + implements ItemBaseModelCopyWith<$R, $In, $Out> { + ListCopyWith<$R, EpisodeModel, + EpisodeModelCopyWith<$R, EpisodeModel, EpisodeModel>>? + get availableEpisodes; + ListCopyWith<$R, SeasonModel, + SeasonModelCopyWith<$R, SeasonModel, SeasonModel>>? get seasons; EpisodeModelCopyWith<$R, EpisodeModel, EpisodeModel>? get selectedEpisode; - ListCopyWith<$R, SpecialFeatureModel, SpecialFeatureModelCopyWith<$R, SpecialFeatureModel, SpecialFeatureModel>>? - get specialFeatures; - ListCopyWith<$R, ItemBaseModel, ItemBaseModelCopyWith<$R, ItemBaseModel, ItemBaseModel>> get related; - ListCopyWith<$R, SeerrDashboardPosterModel, ObjectCopyWith<$R, SeerrDashboardPosterModel, SeerrDashboardPosterModel>> - get seerrRelated; - ListCopyWith<$R, SeerrDashboardPosterModel, ObjectCopyWith<$R, SeerrDashboardPosterModel, SeerrDashboardPosterModel>> - get seerrRecommended; - MapCopyWith<$R, String, dynamic, ObjectCopyWith<$R, dynamic, dynamic>>? get providerIds; + ListCopyWith< + $R, + SpecialFeatureModel, + SpecialFeatureModelCopyWith<$R, SpecialFeatureModel, + SpecialFeatureModel>>? get specialFeatures; + ListCopyWith<$R, ItemBaseModel, + ItemBaseModelCopyWith<$R, ItemBaseModel, ItemBaseModel>> get related; + ListCopyWith< + $R, + SeerrDashboardPosterModel, + ObjectCopyWith<$R, SeerrDashboardPosterModel, + SeerrDashboardPosterModel>> get seerrRelated; + ListCopyWith< + $R, + SeerrDashboardPosterModel, + ObjectCopyWith<$R, SeerrDashboardPosterModel, + SeerrDashboardPosterModel>> get seerrRecommended; + MapCopyWith<$R, String, dynamic, ObjectCopyWith<$R, dynamic, dynamic>>? + get providerIds; @override OverviewModelCopyWith<$R, OverviewModel, OverviewModel> get overview; @override @@ -201,50 +240,78 @@ abstract class SeriesModelCopyWith<$R, $In extends SeriesModel, $Out> implements SeriesModelCopyWith<$R2, $In, $Out2> $chain<$R2, $Out2>(Then<$Out2, $R2> t); } -class _SeriesModelCopyWithImpl<$R, $Out> extends ClassCopyWithBase<$R, SeriesModel, $Out> +class _SeriesModelCopyWithImpl<$R, $Out> + extends ClassCopyWithBase<$R, SeriesModel, $Out> implements SeriesModelCopyWith<$R, SeriesModel, $Out> { _SeriesModelCopyWithImpl(super.value, super.then, super.then2); @override - late final ClassMapperBase $mapper = SeriesModelMapper.ensureInitialized(); + late final ClassMapperBase $mapper = + SeriesModelMapper.ensureInitialized(); @override - ListCopyWith<$R, EpisodeModel, EpisodeModelCopyWith<$R, EpisodeModel, EpisodeModel>>? get availableEpisodes => - $value.availableEpisodes != null - ? ListCopyWith($value.availableEpisodes!, (v, t) => v.copyWith.$chain(t), (v) => call(availableEpisodes: v)) + ListCopyWith<$R, EpisodeModel, + EpisodeModelCopyWith<$R, EpisodeModel, EpisodeModel>>? + get availableEpisodes => $value.availableEpisodes != null + ? ListCopyWith($value.availableEpisodes!, + (v, t) => v.copyWith.$chain(t), (v) => call(availableEpisodes: v)) : null; @override - ListCopyWith<$R, SeasonModel, SeasonModelCopyWith<$R, SeasonModel, SeasonModel>>? get seasons => - $value.seasons != null - ? ListCopyWith($value.seasons!, (v, t) => v.copyWith.$chain(t), (v) => call(seasons: v)) + ListCopyWith<$R, SeasonModel, + SeasonModelCopyWith<$R, SeasonModel, SeasonModel>>? + get seasons => $value.seasons != null + ? ListCopyWith($value.seasons!, (v, t) => v.copyWith.$chain(t), + (v) => call(seasons: v)) : null; @override EpisodeModelCopyWith<$R, EpisodeModel, EpisodeModel>? get selectedEpisode => $value.selectedEpisode?.copyWith.$chain((v) => call(selectedEpisode: v)); @override - ListCopyWith<$R, SpecialFeatureModel, SpecialFeatureModelCopyWith<$R, SpecialFeatureModel, SpecialFeatureModel>>? - get specialFeatures => $value.specialFeatures != null - ? ListCopyWith($value.specialFeatures!, (v, t) => v.copyWith.$chain(t), (v) => call(specialFeatures: v)) + ListCopyWith< + $R, + SpecialFeatureModel, + SpecialFeatureModelCopyWith<$R, SpecialFeatureModel, + SpecialFeatureModel>>? get specialFeatures => + $value.specialFeatures != null + ? ListCopyWith($value.specialFeatures!, + (v, t) => v.copyWith.$chain(t), (v) => call(specialFeatures: v)) : null; @override - ListCopyWith<$R, ItemBaseModel, ItemBaseModelCopyWith<$R, ItemBaseModel, ItemBaseModel>> get related => - ListCopyWith($value.related, (v, t) => v.copyWith.$chain(t), (v) => call(related: v)); + ListCopyWith<$R, ItemBaseModel, + ItemBaseModelCopyWith<$R, ItemBaseModel, ItemBaseModel>> + get related => ListCopyWith($value.related, + (v, t) => v.copyWith.$chain(t), (v) => call(related: v)); @override - ListCopyWith<$R, SeerrDashboardPosterModel, ObjectCopyWith<$R, SeerrDashboardPosterModel, SeerrDashboardPosterModel>> - get seerrRelated => - ListCopyWith($value.seerrRelated, (v, t) => ObjectCopyWith(v, $identity, t), (v) => call(seerrRelated: v)); + ListCopyWith< + $R, + SeerrDashboardPosterModel, + ObjectCopyWith<$R, SeerrDashboardPosterModel, + SeerrDashboardPosterModel>> get seerrRelated => ListCopyWith( + $value.seerrRelated, + (v, t) => ObjectCopyWith(v, $identity, t), + (v) => call(seerrRelated: v)); @override - ListCopyWith<$R, SeerrDashboardPosterModel, ObjectCopyWith<$R, SeerrDashboardPosterModel, SeerrDashboardPosterModel>> - get seerrRecommended => ListCopyWith( - $value.seerrRecommended, (v, t) => ObjectCopyWith(v, $identity, t), (v) => call(seerrRecommended: v)); + ListCopyWith< + $R, + SeerrDashboardPosterModel, + ObjectCopyWith<$R, SeerrDashboardPosterModel, + SeerrDashboardPosterModel>> get seerrRecommended => ListCopyWith( + $value.seerrRecommended, + (v, t) => ObjectCopyWith(v, $identity, t), + (v) => call(seerrRecommended: v)); @override - MapCopyWith<$R, String, dynamic, ObjectCopyWith<$R, dynamic, dynamic>>? get providerIds => $value.providerIds != null - ? MapCopyWith($value.providerIds!, (v, t) => ObjectCopyWith(v, $identity, t), (v) => call(providerIds: v)) - : null; + MapCopyWith<$R, String, dynamic, ObjectCopyWith<$R, dynamic, dynamic>>? + get providerIds => $value.providerIds != null + ? MapCopyWith( + $value.providerIds!, + (v, t) => ObjectCopyWith(v, $identity, t), + (v) => call(providerIds: v)) + : null; @override OverviewModelCopyWith<$R, OverviewModel, OverviewModel> get overview => $value.overview.copyWith.$chain((v) => call(overview: v)); @override - UserDataCopyWith<$R, UserData, UserData> get userData => $value.userData.copyWith.$chain((v) => call(userData: v)); + UserDataCopyWith<$R, UserData, UserData> get userData => + $value.userData.copyWith.$chain((v) => call(userData: v)); @override $R call( {Object? availableEpisodes = $none, @@ -297,7 +364,8 @@ class _SeriesModelCopyWithImpl<$R, $Out> extends ClassCopyWithBase<$R, SeriesMod })); @override SeriesModel $make(CopyWithData data) => SeriesModel( - availableEpisodes: data.get(#availableEpisodes, or: $value.availableEpisodes), + availableEpisodes: + data.get(#availableEpisodes, or: $value.availableEpisodes), seasons: data.get(#seasons, or: $value.seasons), selectedEpisode: data.get(#selectedEpisode, or: $value.selectedEpisode), specialFeatures: data.get(#specialFeatures, or: $value.specialFeatures), @@ -306,7 +374,8 @@ class _SeriesModelCopyWithImpl<$R, $Out> extends ClassCopyWithBase<$R, SeriesMod status: data.get(#status, or: $value.status), related: data.get(#related, or: $value.related), seerrRelated: data.get(#seerrRelated, or: $value.seerrRelated), - seerrRecommended: data.get(#seerrRecommended, or: $value.seerrRecommended), + seerrRecommended: + data.get(#seerrRecommended, or: $value.seerrRecommended), providerIds: data.get(#providerIds, or: $value.providerIds), name: data.get(#name, or: $value.name), id: data.get(#id, or: $value.id), @@ -322,6 +391,7 @@ class _SeriesModelCopyWithImpl<$R, $Out> extends ClassCopyWithBase<$R, SeriesMod jellyType: data.get(#jellyType, or: $value.jellyType)); @override - SeriesModelCopyWith<$R2, SeriesModel, $Out2> $chain<$R2, $Out2>(Then<$Out2, $R2> t) => + SeriesModelCopyWith<$R2, SeriesModel, $Out2> $chain<$R2, $Out2>( + Then<$Out2, $R2> t) => _SeriesModelCopyWithImpl<$R2, $Out2>($value, $cast, t); } diff --git a/lib/models/items/special_feature_model.mapper.dart b/lib/models/items/special_feature_model.mapper.dart index f4fcad42a..8ca507d75 100644 --- a/lib/models/items/special_feature_model.mapper.dart +++ b/lib/models/items/special_feature_model.mapper.dart @@ -6,7 +6,8 @@ part of 'special_feature_model.dart'; -class SpecialFeatureModelMapper extends SubClassMapperBase { +class SpecialFeatureModelMapper + extends SubClassMapperBase { SpecialFeatureModelMapper._(); static SpecialFeatureModelMapper? _instance; @@ -24,35 +25,50 @@ class SpecialFeatureModelMapper extends SubClassMapperBase final String id = 'SpecialFeatureModel'; static DateTime? _$dateAired(SpecialFeatureModel v) => v.dateAired; - static const Field _f$dateAired = Field('dateAired', _$dateAired, opt: true); + static const Field _f$dateAired = + Field('dateAired', _$dateAired, opt: true); static String _$name(SpecialFeatureModel v) => v.name; - static const Field _f$name = Field('name', _$name); + static const Field _f$name = + Field('name', _$name); static String _$id(SpecialFeatureModel v) => v.id; static const Field _f$id = Field('id', _$id); static OverviewModel _$overview(SpecialFeatureModel v) => v.overview; - static const Field _f$overview = Field('overview', _$overview); + static const Field _f$overview = + Field('overview', _$overview); static String? _$parentId(SpecialFeatureModel v) => v.parentId; - static const Field _f$parentId = Field('parentId', _$parentId); + static const Field _f$parentId = + Field('parentId', _$parentId); static String? _$playlistId(SpecialFeatureModel v) => v.playlistId; - static const Field _f$playlistId = Field('playlistId', _$playlistId); + static const Field _f$playlistId = + Field('playlistId', _$playlistId); static ImagesData? _$images(SpecialFeatureModel v) => v.images; - static const Field _f$images = Field('images', _$images); + static const Field _f$images = + Field('images', _$images); static int? _$childCount(SpecialFeatureModel v) => v.childCount; - static const Field _f$childCount = Field('childCount', _$childCount); + static const Field _f$childCount = + Field('childCount', _$childCount); static double? _$primaryRatio(SpecialFeatureModel v) => v.primaryRatio; - static const Field _f$primaryRatio = Field('primaryRatio', _$primaryRatio); + static const Field _f$primaryRatio = + Field('primaryRatio', _$primaryRatio); static UserData _$userData(SpecialFeatureModel v) => v.userData; - static const Field _f$userData = Field('userData', _$userData); + static const Field _f$userData = + Field('userData', _$userData); static ImagesData? _$parentImages(SpecialFeatureModel v) => v.parentImages; - static const Field _f$parentImages = Field('parentImages', _$parentImages); - static MediaStreamsModel _$mediaStreams(SpecialFeatureModel v) => v.mediaStreams; - static const Field _f$mediaStreams = Field('mediaStreams', _$mediaStreams); + static const Field _f$parentImages = + Field('parentImages', _$parentImages); + static MediaStreamsModel _$mediaStreams(SpecialFeatureModel v) => + v.mediaStreams; + static const Field _f$mediaStreams = + Field('mediaStreams', _$mediaStreams); static bool? _$canDelete(SpecialFeatureModel v) => v.canDelete; - static const Field _f$canDelete = Field('canDelete', _$canDelete, opt: true); + static const Field _f$canDelete = + Field('canDelete', _$canDelete, opt: true); static bool? _$canDownload(SpecialFeatureModel v) => v.canDownload; - static const Field _f$canDownload = Field('canDownload', _$canDownload, opt: true); + static const Field _f$canDownload = + Field('canDownload', _$canDownload, opt: true); static dto.BaseItemKind? _$jellyType(SpecialFeatureModel v) => v.jellyType; - static const Field _f$jellyType = Field('jellyType', _$jellyType, opt: true); + static const Field _f$jellyType = + Field('jellyType', _$jellyType, opt: true); @override final MappableFields fields = const { @@ -80,7 +96,8 @@ class SpecialFeatureModelMapper extends SubClassMapperBase @override final dynamic discriminatorValue = 'SpecialFeatureModel'; @override - late final ClassMapperBase superMapper = ItemStreamModelMapper.ensureInitialized(); + late final ClassMapperBase superMapper = + ItemStreamModelMapper.ensureInitialized(); static SpecialFeatureModel _instantiate(DecodingData data) { return SpecialFeatureModel( @@ -106,18 +123,21 @@ class SpecialFeatureModelMapper extends SubClassMapperBase } mixin SpecialFeatureModelMappable { - SpecialFeatureModelCopyWith get copyWith => - _SpecialFeatureModelCopyWithImpl( - this as SpecialFeatureModel, $identity, $identity); + SpecialFeatureModelCopyWith get copyWith => _SpecialFeatureModelCopyWithImpl< + SpecialFeatureModel, SpecialFeatureModel>( + this as SpecialFeatureModel, $identity, $identity); } -extension SpecialFeatureModelValueCopy<$R, $Out> on ObjectCopyWith<$R, SpecialFeatureModel, $Out> { - SpecialFeatureModelCopyWith<$R, SpecialFeatureModel, $Out> get $asSpecialFeatureModel => - $base.as((v, t, t2) => _SpecialFeatureModelCopyWithImpl<$R, $Out>(v, t, t2)); +extension SpecialFeatureModelValueCopy<$R, $Out> + on ObjectCopyWith<$R, SpecialFeatureModel, $Out> { + SpecialFeatureModelCopyWith<$R, SpecialFeatureModel, $Out> + get $asSpecialFeatureModel => $base.as( + (v, t, t2) => _SpecialFeatureModelCopyWithImpl<$R, $Out>(v, t, t2)); } -abstract class SpecialFeatureModelCopyWith<$R, $In extends SpecialFeatureModel, $Out> - implements ItemStreamModelCopyWith<$R, $In, $Out> { +abstract class SpecialFeatureModelCopyWith<$R, $In extends SpecialFeatureModel, + $Out> implements ItemStreamModelCopyWith<$R, $In, $Out> { @override OverviewModelCopyWith<$R, OverviewModel, OverviewModel> get overview; @override @@ -139,20 +159,24 @@ abstract class SpecialFeatureModelCopyWith<$R, $In extends SpecialFeatureModel, bool? canDelete, bool? canDownload, dto.BaseItemKind? jellyType}); - SpecialFeatureModelCopyWith<$R2, $In, $Out2> $chain<$R2, $Out2>(Then<$Out2, $R2> t); + SpecialFeatureModelCopyWith<$R2, $In, $Out2> $chain<$R2, $Out2>( + Then<$Out2, $R2> t); } -class _SpecialFeatureModelCopyWithImpl<$R, $Out> extends ClassCopyWithBase<$R, SpecialFeatureModel, $Out> +class _SpecialFeatureModelCopyWithImpl<$R, $Out> + extends ClassCopyWithBase<$R, SpecialFeatureModel, $Out> implements SpecialFeatureModelCopyWith<$R, SpecialFeatureModel, $Out> { _SpecialFeatureModelCopyWithImpl(super.value, super.then, super.then2); @override - late final ClassMapperBase $mapper = SpecialFeatureModelMapper.ensureInitialized(); + late final ClassMapperBase $mapper = + SpecialFeatureModelMapper.ensureInitialized(); @override OverviewModelCopyWith<$R, OverviewModel, OverviewModel> get overview => $value.overview.copyWith.$chain((v) => call(overview: v)); @override - UserDataCopyWith<$R, UserData, UserData> get userData => $value.userData.copyWith.$chain((v) => call(userData: v)); + UserDataCopyWith<$R, UserData, UserData> get userData => + $value.userData.copyWith.$chain((v) => call(userData: v)); @override $R call( {Object? dateAired = $none, @@ -206,6 +230,7 @@ class _SpecialFeatureModelCopyWithImpl<$R, $Out> extends ClassCopyWithBase<$R, S jellyType: data.get(#jellyType, or: $value.jellyType)); @override - SpecialFeatureModelCopyWith<$R2, SpecialFeatureModel, $Out2> $chain<$R2, $Out2>(Then<$Out2, $R2> t) => - _SpecialFeatureModelCopyWithImpl<$R2, $Out2>($value, $cast, t); + SpecialFeatureModelCopyWith<$R2, SpecialFeatureModel, $Out2> + $chain<$R2, $Out2>(Then<$Out2, $R2> t) => + _SpecialFeatureModelCopyWithImpl<$R2, $Out2>($value, $cast, t); } diff --git a/lib/models/items/trick_play_model.freezed.dart b/lib/models/items/trick_play_model.freezed.dart index 378a0c381..b63efabbb 100644 --- a/lib/models/items/trick_play_model.freezed.dart +++ b/lib/models/items/trick_play_model.freezed.dart @@ -27,7 +27,8 @@ mixin _$TrickPlayModel { @JsonKey(includeFromJson: false, includeToJson: false) @pragma('vm:prefer-inline') $TrickPlayModelCopyWith get copyWith => - _$TrickPlayModelCopyWithImpl(this as TrickPlayModel, _$identity); + _$TrickPlayModelCopyWithImpl( + this as TrickPlayModel, _$identity); /// Serializes this TrickPlayModel to a JSON map. Map toJson(); @@ -40,7 +41,8 @@ mixin _$TrickPlayModel { /// @nodoc abstract mixin class $TrickPlayModelCopyWith<$Res> { - factory $TrickPlayModelCopyWith(TrickPlayModel value, $Res Function(TrickPlayModel) _then) = + factory $TrickPlayModelCopyWith( + TrickPlayModel value, $Res Function(TrickPlayModel) _then) = _$TrickPlayModelCopyWithImpl; @useResult $Res call( @@ -54,7 +56,8 @@ abstract mixin class $TrickPlayModelCopyWith<$Res> { } /// @nodoc -class _$TrickPlayModelCopyWithImpl<$Res> implements $TrickPlayModelCopyWith<$Res> { +class _$TrickPlayModelCopyWithImpl<$Res> + implements $TrickPlayModelCopyWith<$Res> { _$TrickPlayModelCopyWithImpl(this._self, this._then); final TrickPlayModel _self; @@ -199,16 +202,22 @@ extension TrickPlayModelPatterns on TrickPlayModel { @optionalTypeArgs TResult maybeWhen( - TResult Function(int width, int height, int tileWidth, int tileHeight, int thumbnailCount, Duration interval, - List images)? + TResult Function(int width, int height, int tileWidth, int tileHeight, + int thumbnailCount, Duration interval, List images)? $default, { required TResult orElse(), }) { final _that = this; switch (_that) { case _TrickPlayModel() when $default != null: - return $default(_that.width, _that.height, _that.tileWidth, _that.tileHeight, _that.thumbnailCount, - _that.interval, _that.images); + return $default( + _that.width, + _that.height, + _that.tileWidth, + _that.tileHeight, + _that.thumbnailCount, + _that.interval, + _that.images); case _: return orElse(); } @@ -229,15 +238,21 @@ extension TrickPlayModelPatterns on TrickPlayModel { @optionalTypeArgs TResult when( - TResult Function(int width, int height, int tileWidth, int tileHeight, int thumbnailCount, Duration interval, - List images) + TResult Function(int width, int height, int tileWidth, int tileHeight, + int thumbnailCount, Duration interval, List images) $default, ) { final _that = this; switch (_that) { case _TrickPlayModel(): - return $default(_that.width, _that.height, _that.tileWidth, _that.tileHeight, _that.thumbnailCount, - _that.interval, _that.images); + return $default( + _that.width, + _that.height, + _that.tileWidth, + _that.tileHeight, + _that.thumbnailCount, + _that.interval, + _that.images); case _: throw StateError('Unexpected subclass'); } @@ -257,15 +272,21 @@ extension TrickPlayModelPatterns on TrickPlayModel { @optionalTypeArgs TResult? whenOrNull( - TResult? Function(int width, int height, int tileWidth, int tileHeight, int thumbnailCount, Duration interval, - List images)? + TResult? Function(int width, int height, int tileWidth, int tileHeight, + int thumbnailCount, Duration interval, List images)? $default, ) { final _that = this; switch (_that) { case _TrickPlayModel() when $default != null: - return $default(_that.width, _that.height, _that.tileWidth, _that.tileHeight, _that.thumbnailCount, - _that.interval, _that.images); + return $default( + _that.width, + _that.height, + _that.tileWidth, + _that.tileHeight, + _that.thumbnailCount, + _that.interval, + _that.images); case _: return null; } @@ -285,7 +306,8 @@ class _TrickPlayModel extends TrickPlayModel { final List images = const []}) : _images = images, super._(); - factory _TrickPlayModel.fromJson(Map json) => _$TrickPlayModelFromJson(json); + factory _TrickPlayModel.fromJson(Map json) => + _$TrickPlayModelFromJson(json); @override final int width; @@ -330,8 +352,10 @@ class _TrickPlayModel extends TrickPlayModel { } /// @nodoc -abstract mixin class _$TrickPlayModelCopyWith<$Res> implements $TrickPlayModelCopyWith<$Res> { - factory _$TrickPlayModelCopyWith(_TrickPlayModel value, $Res Function(_TrickPlayModel) _then) = +abstract mixin class _$TrickPlayModelCopyWith<$Res> + implements $TrickPlayModelCopyWith<$Res> { + factory _$TrickPlayModelCopyWith( + _TrickPlayModel value, $Res Function(_TrickPlayModel) _then) = __$TrickPlayModelCopyWithImpl; @override @useResult @@ -346,7 +370,8 @@ abstract mixin class _$TrickPlayModelCopyWith<$Res> implements $TrickPlayModelCo } /// @nodoc -class __$TrickPlayModelCopyWithImpl<$Res> implements _$TrickPlayModelCopyWith<$Res> { +class __$TrickPlayModelCopyWithImpl<$Res> + implements _$TrickPlayModelCopyWith<$Res> { __$TrickPlayModelCopyWithImpl(this._self, this._then); final _TrickPlayModel _self; diff --git a/lib/models/items/trick_play_model.g.dart b/lib/models/items/trick_play_model.g.dart index 52d33df0a..8490c17d5 100644 --- a/lib/models/items/trick_play_model.g.dart +++ b/lib/models/items/trick_play_model.g.dart @@ -6,17 +6,22 @@ part of 'trick_play_model.dart'; // JsonSerializableGenerator // ************************************************************************** -_TrickPlayModel _$TrickPlayModelFromJson(Map json) => _TrickPlayModel( +_TrickPlayModel _$TrickPlayModelFromJson(Map json) => + _TrickPlayModel( width: (json['width'] as num).toInt(), height: (json['height'] as num).toInt(), tileWidth: (json['tileWidth'] as num).toInt(), tileHeight: (json['tileHeight'] as num).toInt(), thumbnailCount: (json['thumbnailCount'] as num).toInt(), interval: Duration(microseconds: (json['interval'] as num).toInt()), - images: (json['images'] as List?)?.map((e) => e as String).toList() ?? const [], + images: (json['images'] as List?) + ?.map((e) => e as String) + .toList() ?? + const [], ); -Map _$TrickPlayModelToJson(_TrickPlayModel instance) => { +Map _$TrickPlayModelToJson(_TrickPlayModel instance) => + { 'width': instance.width, 'height': instance.height, 'tileWidth': instance.tileWidth, diff --git a/lib/models/last_seen_notifications_model.freezed.dart b/lib/models/last_seen_notifications_model.freezed.dart index 45361488e..b76771f8c 100644 --- a/lib/models/last_seen_notifications_model.freezed.dart +++ b/lib/models/last_seen_notifications_model.freezed.dart @@ -21,9 +21,10 @@ mixin _$LastSeenNotificationsModel { /// with the given fields replaced by the non-null parameter values. @JsonKey(includeFromJson: false, includeToJson: false) @pragma('vm:prefer-inline') - $LastSeenNotificationsModelCopyWith get copyWith => - _$LastSeenNotificationsModelCopyWithImpl( - this as LastSeenNotificationsModel, _$identity); + $LastSeenNotificationsModelCopyWith + get copyWith => + _$LastSeenNotificationsModelCopyWithImpl( + this as LastSeenNotificationsModel, _$identity); /// Serializes this LastSeenNotificationsModel to a JSON map. Map toJson(); @@ -36,15 +37,16 @@ mixin _$LastSeenNotificationsModel { /// @nodoc abstract mixin class $LastSeenNotificationsModelCopyWith<$Res> { - factory $LastSeenNotificationsModelCopyWith( - LastSeenNotificationsModel value, $Res Function(LastSeenNotificationsModel) _then) = + factory $LastSeenNotificationsModelCopyWith(LastSeenNotificationsModel value, + $Res Function(LastSeenNotificationsModel) _then) = _$LastSeenNotificationsModelCopyWithImpl; @useResult $Res call({List lastSeen, DateTime? updatedAt}); } /// @nodoc -class _$LastSeenNotificationsModelCopyWithImpl<$Res> implements $LastSeenNotificationsModelCopyWith<$Res> { +class _$LastSeenNotificationsModelCopyWithImpl<$Res> + implements $LastSeenNotificationsModelCopyWith<$Res> { _$LastSeenNotificationsModelCopyWithImpl(this._self, this._then); final LastSeenNotificationsModel _self; @@ -164,7 +166,8 @@ extension LastSeenNotificationsModelPatterns on LastSeenNotificationsModel { @optionalTypeArgs TResult maybeWhen( - TResult Function(List lastSeen, DateTime? updatedAt)? $default, { + TResult Function(List lastSeen, DateTime? updatedAt)? + $default, { required TResult orElse(), }) { final _that = this; @@ -191,7 +194,8 @@ extension LastSeenNotificationsModelPatterns on LastSeenNotificationsModel { @optionalTypeArgs TResult when( - TResult Function(List lastSeen, DateTime? updatedAt) $default, + TResult Function(List lastSeen, DateTime? updatedAt) + $default, ) { final _that = this; switch (_that) { @@ -216,7 +220,8 @@ extension LastSeenNotificationsModelPatterns on LastSeenNotificationsModel { @optionalTypeArgs TResult? whenOrNull( - TResult? Function(List lastSeen, DateTime? updatedAt)? $default, + TResult? Function(List lastSeen, DateTime? updatedAt)? + $default, ) { final _that = this; switch (_that) { @@ -231,10 +236,12 @@ extension LastSeenNotificationsModelPatterns on LastSeenNotificationsModel { /// @nodoc @JsonSerializable() class _LastSeenNotificationsModel extends LastSeenNotificationsModel { - const _LastSeenNotificationsModel({final List lastSeen = const [], this.updatedAt}) + const _LastSeenNotificationsModel( + {final List lastSeen = const [], this.updatedAt}) : _lastSeen = lastSeen, super._(); - factory _LastSeenNotificationsModel.fromJson(Map json) => _$LastSeenNotificationsModelFromJson(json); + factory _LastSeenNotificationsModel.fromJson(Map json) => + _$LastSeenNotificationsModelFromJson(json); final List _lastSeen; @override @@ -253,8 +260,9 @@ class _LastSeenNotificationsModel extends LastSeenNotificationsModel { @override @JsonKey(includeFromJson: false, includeToJson: false) @pragma('vm:prefer-inline') - _$LastSeenNotificationsModelCopyWith<_LastSeenNotificationsModel> get copyWith => - __$LastSeenNotificationsModelCopyWithImpl<_LastSeenNotificationsModel>(this, _$identity); + _$LastSeenNotificationsModelCopyWith<_LastSeenNotificationsModel> + get copyWith => __$LastSeenNotificationsModelCopyWithImpl< + _LastSeenNotificationsModel>(this, _$identity); @override Map toJson() { @@ -270,9 +278,11 @@ class _LastSeenNotificationsModel extends LastSeenNotificationsModel { } /// @nodoc -abstract mixin class _$LastSeenNotificationsModelCopyWith<$Res> implements $LastSeenNotificationsModelCopyWith<$Res> { +abstract mixin class _$LastSeenNotificationsModelCopyWith<$Res> + implements $LastSeenNotificationsModelCopyWith<$Res> { factory _$LastSeenNotificationsModelCopyWith( - _LastSeenNotificationsModel value, $Res Function(_LastSeenNotificationsModel) _then) = + _LastSeenNotificationsModel value, + $Res Function(_LastSeenNotificationsModel) _then) = __$LastSeenNotificationsModelCopyWithImpl; @override @useResult @@ -280,7 +290,8 @@ abstract mixin class _$LastSeenNotificationsModelCopyWith<$Res> implements $Last } /// @nodoc -class __$LastSeenNotificationsModelCopyWithImpl<$Res> implements _$LastSeenNotificationsModelCopyWith<$Res> { +class __$LastSeenNotificationsModelCopyWithImpl<$Res> + implements _$LastSeenNotificationsModelCopyWith<$Res> { __$LastSeenNotificationsModelCopyWithImpl(this._self, this._then); final _LastSeenNotificationsModel _self; @@ -317,7 +328,8 @@ mixin _$LastSeenModel { @JsonKey(includeFromJson: false, includeToJson: false) @pragma('vm:prefer-inline') $LastSeenModelCopyWith get copyWith => - _$LastSeenModelCopyWithImpl(this as LastSeenModel, _$identity); + _$LastSeenModelCopyWithImpl( + this as LastSeenModel, _$identity); /// Serializes this LastSeenModel to a JSON map. Map toJson(); @@ -330,13 +342,16 @@ mixin _$LastSeenModel { /// @nodoc abstract mixin class $LastSeenModelCopyWith<$Res> { - factory $LastSeenModelCopyWith(LastSeenModel value, $Res Function(LastSeenModel) _then) = _$LastSeenModelCopyWithImpl; + factory $LastSeenModelCopyWith( + LastSeenModel value, $Res Function(LastSeenModel) _then) = + _$LastSeenModelCopyWithImpl; @useResult $Res call({String userId, List lastNotifications}); } /// @nodoc -class _$LastSeenModelCopyWithImpl<$Res> implements $LastSeenModelCopyWith<$Res> { +class _$LastSeenModelCopyWithImpl<$Res> + implements $LastSeenModelCopyWith<$Res> { _$LastSeenModelCopyWithImpl(this._self, this._then); final LastSeenModel _self; @@ -456,7 +471,8 @@ extension LastSeenModelPatterns on LastSeenModel { @optionalTypeArgs TResult maybeWhen( - TResult Function(String userId, List lastNotifications)? $default, { + TResult Function(String userId, List lastNotifications)? + $default, { required TResult orElse(), }) { final _that = this; @@ -483,7 +499,8 @@ extension LastSeenModelPatterns on LastSeenModel { @optionalTypeArgs TResult when( - TResult Function(String userId, List lastNotifications) $default, + TResult Function(String userId, List lastNotifications) + $default, ) { final _that = this; switch (_that) { @@ -508,7 +525,8 @@ extension LastSeenModelPatterns on LastSeenModel { @optionalTypeArgs TResult? whenOrNull( - TResult? Function(String userId, List lastNotifications)? $default, + TResult? Function(String userId, List lastNotifications)? + $default, ) { final _that = this; switch (_that) { @@ -524,10 +542,13 @@ extension LastSeenModelPatterns on LastSeenModel { @JsonSerializable() class _LastSeenModel extends LastSeenModel { const _LastSeenModel( - {required this.userId, final List lastNotifications = const []}) + {required this.userId, + final List lastNotifications = + const []}) : _lastNotifications = lastNotifications, super._(); - factory _LastSeenModel.fromJson(Map json) => _$LastSeenModelFromJson(json); + factory _LastSeenModel.fromJson(Map json) => + _$LastSeenModelFromJson(json); @override final String userId; @@ -535,7 +556,8 @@ class _LastSeenModel extends LastSeenModel { @override @JsonKey() List get lastNotifications { - if (_lastNotifications is EqualUnmodifiableListView) return _lastNotifications; + if (_lastNotifications is EqualUnmodifiableListView) + return _lastNotifications; // ignore: implicit_dynamic_type return EqualUnmodifiableListView(_lastNotifications); } @@ -562,8 +584,10 @@ class _LastSeenModel extends LastSeenModel { } /// @nodoc -abstract mixin class _$LastSeenModelCopyWith<$Res> implements $LastSeenModelCopyWith<$Res> { - factory _$LastSeenModelCopyWith(_LastSeenModel value, $Res Function(_LastSeenModel) _then) = +abstract mixin class _$LastSeenModelCopyWith<$Res> + implements $LastSeenModelCopyWith<$Res> { + factory _$LastSeenModelCopyWith( + _LastSeenModel value, $Res Function(_LastSeenModel) _then) = __$LastSeenModelCopyWithImpl; @override @useResult @@ -571,7 +595,8 @@ abstract mixin class _$LastSeenModelCopyWith<$Res> implements $LastSeenModelCopy } /// @nodoc -class __$LastSeenModelCopyWithImpl<$Res> implements _$LastSeenModelCopyWith<$Res> { +class __$LastSeenModelCopyWithImpl<$Res> + implements _$LastSeenModelCopyWith<$Res> { __$LastSeenModelCopyWithImpl(this._self, this._then); final _LastSeenModel _self; diff --git a/lib/models/last_seen_notifications_model.g.dart b/lib/models/last_seen_notifications_model.g.dart index 4f595e607..f8dba2948 100644 --- a/lib/models/last_seen_notifications_model.g.dart +++ b/lib/models/last_seen_notifications_model.g.dart @@ -6,29 +6,37 @@ part of 'last_seen_notifications_model.dart'; // JsonSerializableGenerator // ************************************************************************** -_LastSeenNotificationsModel _$LastSeenNotificationsModelFromJson(Map json) => +_LastSeenNotificationsModel _$LastSeenNotificationsModelFromJson( + Map json) => _LastSeenNotificationsModel( lastSeen: (json['lastSeen'] as List?) ?.map((e) => LastSeenModel.fromJson(e as Map)) .toList() ?? const [], - updatedAt: json['updatedAt'] == null ? null : DateTime.parse(json['updatedAt'] as String), + updatedAt: json['updatedAt'] == null + ? null + : DateTime.parse(json['updatedAt'] as String), ); -Map _$LastSeenNotificationsModelToJson(_LastSeenNotificationsModel instance) => { +Map _$LastSeenNotificationsModelToJson( + _LastSeenNotificationsModel instance) => + { 'lastSeen': instance.lastSeen, 'updatedAt': instance.updatedAt?.toIso8601String(), }; -_LastSeenModel _$LastSeenModelFromJson(Map json) => _LastSeenModel( +_LastSeenModel _$LastSeenModelFromJson(Map json) => + _LastSeenModel( userId: json['userId'] as String, lastNotifications: (json['lastNotifications'] as List?) - ?.map((e) => NotificationModel.fromJson(e as Map)) + ?.map( + (e) => NotificationModel.fromJson(e as Map)) .toList() ?? const [], ); -Map _$LastSeenModelToJson(_LastSeenModel instance) => { +Map _$LastSeenModelToJson(_LastSeenModel instance) => + { 'userId': instance.userId, 'lastNotifications': instance.lastNotifications, }; diff --git a/lib/models/library_filter_model.freezed.dart b/lib/models/library_filter_model.freezed.dart index af42dd7cd..4c6352e07 100644 --- a/lib/models/library_filter_model.freezed.dart +++ b/lib/models/library_filter_model.freezed.dart @@ -34,7 +34,8 @@ mixin _$LibraryFilterModel implements DiagnosticableTreeMixin { @JsonKey(includeFromJson: false, includeToJson: false) @pragma('vm:prefer-inline') $LibraryFilterModelCopyWith get copyWith => - _$LibraryFilterModelCopyWithImpl(this as LibraryFilterModel, _$identity); + _$LibraryFilterModelCopyWithImpl( + this as LibraryFilterModel, _$identity); /// Serializes this LibraryFilterModel to a JSON map. Map toJson(); @@ -66,7 +67,8 @@ mixin _$LibraryFilterModel implements DiagnosticableTreeMixin { /// @nodoc abstract mixin class $LibraryFilterModelCopyWith<$Res> { - factory $LibraryFilterModelCopyWith(LibraryFilterModel value, $Res Function(LibraryFilterModel) _then) = + factory $LibraryFilterModelCopyWith( + LibraryFilterModel value, $Res Function(LibraryFilterModel) _then) = _$LibraryFilterModelCopyWithImpl; @useResult $Res call( @@ -86,7 +88,8 @@ abstract mixin class $LibraryFilterModelCopyWith<$Res> { } /// @nodoc -class _$LibraryFilterModelCopyWithImpl<$Res> implements $LibraryFilterModelCopyWith<$Res> { +class _$LibraryFilterModelCopyWithImpl<$Res> + implements $LibraryFilterModelCopyWith<$Res> { _$LibraryFilterModelCopyWithImpl(this._self, this._then); final LibraryFilterModel _self; @@ -408,7 +411,8 @@ extension LibraryFilterModelPatterns on LibraryFilterModel { /// @nodoc @JsonSerializable() -class _LibraryFilterModel extends LibraryFilterModel with DiagnosticableTreeMixin { +class _LibraryFilterModel extends LibraryFilterModel + with DiagnosticableTreeMixin { const _LibraryFilterModel( {final Map genres = const {}, final Map itemFilters = const { @@ -450,7 +454,8 @@ class _LibraryFilterModel extends LibraryFilterModel with DiagnosticableTreeMixi _officialRatings = officialRatings, _types = types, super._(); - factory _LibraryFilterModel.fromJson(Map json) => _$LibraryFilterModelFromJson(json); + factory _LibraryFilterModel.fromJson(Map json) => + _$LibraryFilterModelFromJson(json); final Map _genres; @override @@ -576,8 +581,10 @@ class _LibraryFilterModel extends LibraryFilterModel with DiagnosticableTreeMixi } /// @nodoc -abstract mixin class _$LibraryFilterModelCopyWith<$Res> implements $LibraryFilterModelCopyWith<$Res> { - factory _$LibraryFilterModelCopyWith(_LibraryFilterModel value, $Res Function(_LibraryFilterModel) _then) = +abstract mixin class _$LibraryFilterModelCopyWith<$Res> + implements $LibraryFilterModelCopyWith<$Res> { + factory _$LibraryFilterModelCopyWith( + _LibraryFilterModel value, $Res Function(_LibraryFilterModel) _then) = __$LibraryFilterModelCopyWithImpl; @override @useResult @@ -598,7 +605,8 @@ abstract mixin class _$LibraryFilterModelCopyWith<$Res> implements $LibraryFilte } /// @nodoc -class __$LibraryFilterModelCopyWithImpl<$Res> implements _$LibraryFilterModelCopyWith<$Res> { +class __$LibraryFilterModelCopyWithImpl<$Res> + implements _$LibraryFilterModelCopyWith<$Res> { __$LibraryFilterModelCopyWithImpl(this._self, this._then); final _LibraryFilterModel _self; diff --git a/lib/models/library_filter_model.g.dart b/lib/models/library_filter_model.g.dart index def01bbd3..e13400c10 100644 --- a/lib/models/library_filter_model.g.dart +++ b/lib/models/library_filter_model.g.dart @@ -6,7 +6,8 @@ part of 'library_filter_model.dart'; // JsonSerializableGenerator // ************************************************************************** -_LibraryFilterModel _$LibraryFilterModelFromJson(Map json) => _LibraryFilterModel( +_LibraryFilterModel _$LibraryFilterModelFromJson(Map json) => + _LibraryFilterModel( genres: (json['genres'] as Map?)?.map( (k, e) => MapEntry(k, e as bool), ) ?? @@ -14,8 +15,14 @@ _LibraryFilterModel _$LibraryFilterModelFromJson(Map json) => _ itemFilters: (json['itemFilters'] as Map?)?.map( (k, e) => MapEntry($enumDecode(_$ItemFilterEnumMap, k), e as bool), ) ?? - const {ItemFilter.isplayed: false, ItemFilter.isunplayed: false, ItemFilter.isresumable: false}, - studios: json['studios'] == null ? const {} : const StudioEncoder().fromJson(json['studios'] as String), + const { + ItemFilter.isplayed: false, + ItemFilter.isunplayed: false, + ItemFilter.isresumable: false + }, + studios: json['studios'] == null + ? const {} + : const StudioEncoder().fromJson(json['studios'] as String), tags: (json['tags'] as Map?)?.map( (k, e) => MapEntry(k, e as bool), ) ?? @@ -29,7 +36,8 @@ _LibraryFilterModel _$LibraryFilterModelFromJson(Map json) => _ ) ?? const {}, types: (json['types'] as Map?)?.map( - (k, e) => MapEntry($enumDecode(_$FladderItemTypeEnumMap, k), e as bool), + (k, e) => + MapEntry($enumDecode(_$FladderItemTypeEnumMap, k), e as bool), ) ?? const { FladderItemType.audio: false, @@ -47,22 +55,30 @@ _LibraryFilterModel _$LibraryFilterModelFromJson(Map json) => _ FladderItemType.series: false, FladderItemType.video: false }, - sortingOption: $enumDecodeNullable(_$SortingOptionsEnumMap, json['sortingOption']) ?? SortingOptions.sortName, - sortOrder: $enumDecodeNullable(_$SortingOrderEnumMap, json['sortOrder']) ?? SortingOrder.ascending, + sortingOption: + $enumDecodeNullable(_$SortingOptionsEnumMap, json['sortingOption']) ?? + SortingOptions.sortName, + sortOrder: + $enumDecodeNullable(_$SortingOrderEnumMap, json['sortOrder']) ?? + SortingOrder.ascending, favourites: json['favourites'] as bool? ?? false, hideEmptyShows: json['hideEmptyShows'] as bool? ?? true, recursive: json['recursive'] as bool? ?? true, - groupBy: $enumDecodeNullable(_$GroupByEnumMap, json['groupBy']) ?? GroupBy.none, + groupBy: $enumDecodeNullable(_$GroupByEnumMap, json['groupBy']) ?? + GroupBy.none, ); -Map _$LibraryFilterModelToJson(_LibraryFilterModel instance) => { +Map _$LibraryFilterModelToJson(_LibraryFilterModel instance) => + { 'genres': instance.genres, - 'itemFilters': instance.itemFilters.map((k, e) => MapEntry(_$ItemFilterEnumMap[k], e)), + 'itemFilters': instance.itemFilters + .map((k, e) => MapEntry(_$ItemFilterEnumMap[k], e)), 'studios': const StudioEncoder().toJson(instance.studios), 'tags': instance.tags, 'years': instance.years.map((k, e) => MapEntry(k.toString(), e)), 'officialRatings': instance.officialRatings, - 'types': instance.types.map((k, e) => MapEntry(_$FladderItemTypeEnumMap[k]!, e)), + 'types': instance.types + .map((k, e) => MapEntry(_$FladderItemTypeEnumMap[k]!, e)), 'sortingOption': _$SortingOptionsEnumMap[instance.sortingOption]!, 'sortOrder': _$SortingOrderEnumMap[instance.sortOrder]!, 'favourites': instance.favourites, diff --git a/lib/models/library_filters_model.freezed.dart b/lib/models/library_filters_model.freezed.dart index 570b78d04..114a4e41c 100644 --- a/lib/models/library_filters_model.freezed.dart +++ b/lib/models/library_filters_model.freezed.dart @@ -25,7 +25,8 @@ mixin _$LibraryFiltersModel { @JsonKey(includeFromJson: false, includeToJson: false) @pragma('vm:prefer-inline') $LibraryFiltersModelCopyWith get copyWith => - _$LibraryFiltersModelCopyWithImpl(this as LibraryFiltersModel, _$identity); + _$LibraryFiltersModelCopyWithImpl( + this as LibraryFiltersModel, _$identity); /// Serializes this LibraryFiltersModel to a JSON map. Map toJson(); @@ -38,16 +39,23 @@ mixin _$LibraryFiltersModel { /// @nodoc abstract mixin class $LibraryFiltersModelCopyWith<$Res> { - factory $LibraryFiltersModelCopyWith(LibraryFiltersModel value, $Res Function(LibraryFiltersModel) _then) = + factory $LibraryFiltersModelCopyWith( + LibraryFiltersModel value, $Res Function(LibraryFiltersModel) _then) = _$LibraryFiltersModelCopyWithImpl; @useResult - $Res call({String id, String name, bool isFavourite, List ids, LibraryFilterModel filter}); + $Res call( + {String id, + String name, + bool isFavourite, + List ids, + LibraryFilterModel filter}); $LibraryFilterModelCopyWith<$Res> get filter; } /// @nodoc -class _$LibraryFiltersModelCopyWithImpl<$Res> implements $LibraryFiltersModelCopyWith<$Res> { +class _$LibraryFiltersModelCopyWithImpl<$Res> + implements $LibraryFiltersModelCopyWith<$Res> { _$LibraryFiltersModelCopyWithImpl(this._self, this._then); final LibraryFiltersModel _self; @@ -192,13 +200,16 @@ extension LibraryFiltersModelPatterns on LibraryFiltersModel { @optionalTypeArgs TResult maybeWhen( - TResult Function(String id, String name, bool isFavourite, List ids, LibraryFilterModel filter)? $default, { + TResult Function(String id, String name, bool isFavourite, List ids, + LibraryFilterModel filter)? + $default, { required TResult orElse(), }) { final _that = this; switch (_that) { case _LibraryFiltersModel() when $default != null: - return $default(_that.id, _that.name, _that.isFavourite, _that.ids, _that.filter); + return $default( + _that.id, _that.name, _that.isFavourite, _that.ids, _that.filter); case _: return orElse(); } @@ -219,12 +230,15 @@ extension LibraryFiltersModelPatterns on LibraryFiltersModel { @optionalTypeArgs TResult when( - TResult Function(String id, String name, bool isFavourite, List ids, LibraryFilterModel filter) $default, + TResult Function(String id, String name, bool isFavourite, List ids, + LibraryFilterModel filter) + $default, ) { final _that = this; switch (_that) { case _LibraryFiltersModel(): - return $default(_that.id, _that.name, _that.isFavourite, _that.ids, _that.filter); + return $default( + _that.id, _that.name, _that.isFavourite, _that.ids, _that.filter); case _: throw StateError('Unexpected subclass'); } @@ -244,12 +258,15 @@ extension LibraryFiltersModelPatterns on LibraryFiltersModel { @optionalTypeArgs TResult? whenOrNull( - TResult? Function(String id, String name, bool isFavourite, List ids, LibraryFilterModel filter)? $default, + TResult? Function(String id, String name, bool isFavourite, + List ids, LibraryFilterModel filter)? + $default, ) { final _that = this; switch (_that) { case _LibraryFiltersModel() when $default != null: - return $default(_that.id, _that.name, _that.isFavourite, _that.ids, _that.filter); + return $default( + _that.id, _that.name, _that.isFavourite, _that.ids, _that.filter); case _: return null; } @@ -267,7 +284,8 @@ class _LibraryFiltersModel extends LibraryFiltersModel { this.filter = const LibraryFilterModel()}) : _ids = ids, super._(); - factory _LibraryFiltersModel.fromJson(Map json) => _$LibraryFiltersModelFromJson(json); + factory _LibraryFiltersModel.fromJson(Map json) => + _$LibraryFiltersModelFromJson(json); @override final String id; @@ -294,7 +312,8 @@ class _LibraryFiltersModel extends LibraryFiltersModel { @JsonKey(includeFromJson: false, includeToJson: false) @pragma('vm:prefer-inline') _$LibraryFiltersModelCopyWith<_LibraryFiltersModel> get copyWith => - __$LibraryFiltersModelCopyWithImpl<_LibraryFiltersModel>(this, _$identity); + __$LibraryFiltersModelCopyWithImpl<_LibraryFiltersModel>( + this, _$identity); @override Map toJson() { @@ -310,19 +329,27 @@ class _LibraryFiltersModel extends LibraryFiltersModel { } /// @nodoc -abstract mixin class _$LibraryFiltersModelCopyWith<$Res> implements $LibraryFiltersModelCopyWith<$Res> { - factory _$LibraryFiltersModelCopyWith(_LibraryFiltersModel value, $Res Function(_LibraryFiltersModel) _then) = +abstract mixin class _$LibraryFiltersModelCopyWith<$Res> + implements $LibraryFiltersModelCopyWith<$Res> { + factory _$LibraryFiltersModelCopyWith(_LibraryFiltersModel value, + $Res Function(_LibraryFiltersModel) _then) = __$LibraryFiltersModelCopyWithImpl; @override @useResult - $Res call({String id, String name, bool isFavourite, List ids, LibraryFilterModel filter}); + $Res call( + {String id, + String name, + bool isFavourite, + List ids, + LibraryFilterModel filter}); @override $LibraryFilterModelCopyWith<$Res> get filter; } /// @nodoc -class __$LibraryFiltersModelCopyWithImpl<$Res> implements _$LibraryFiltersModelCopyWith<$Res> { +class __$LibraryFiltersModelCopyWithImpl<$Res> + implements _$LibraryFiltersModelCopyWith<$Res> { __$LibraryFiltersModelCopyWithImpl(this._self, this._then); final _LibraryFiltersModel _self; diff --git a/lib/models/library_filters_model.g.dart b/lib/models/library_filters_model.g.dart index 868967944..7778bc523 100644 --- a/lib/models/library_filters_model.g.dart +++ b/lib/models/library_filters_model.g.dart @@ -6,17 +6,21 @@ part of 'library_filters_model.dart'; // JsonSerializableGenerator // ************************************************************************** -_LibraryFiltersModel _$LibraryFiltersModelFromJson(Map json) => _LibraryFiltersModel( +_LibraryFiltersModel _$LibraryFiltersModelFromJson(Map json) => + _LibraryFiltersModel( id: json['id'] as String, name: json['name'] as String, isFavourite: json['isFavourite'] as bool, - ids: (json['ids'] as List?)?.map((e) => e as String).toList() ?? const [], + ids: (json['ids'] as List?)?.map((e) => e as String).toList() ?? + const [], filter: json['filter'] == null ? const LibraryFilterModel() : LibraryFilterModel.fromJson(json['filter'] as Map), ); -Map _$LibraryFiltersModelToJson(_LibraryFiltersModel instance) => { +Map _$LibraryFiltersModelToJson( + _LibraryFiltersModel instance) => + { 'id': instance.id, 'name': instance.name, 'isFavourite': instance.isFavourite, diff --git a/lib/models/library_search/library_search_model.freezed.dart b/lib/models/library_search/library_search_model.freezed.dart index fdf9b6718..0cbd542b1 100644 --- a/lib/models/library_search/library_search_model.freezed.dart +++ b/lib/models/library_search/library_search_model.freezed.dart @@ -31,7 +31,8 @@ mixin _$LibrarySearchModel implements DiagnosticableTreeMixin { @JsonKey(includeFromJson: false, includeToJson: false) @pragma('vm:prefer-inline') $LibrarySearchModelCopyWith get copyWith => - _$LibrarySearchModelCopyWithImpl(this as LibrarySearchModel, _$identity); + _$LibrarySearchModelCopyWithImpl( + this as LibrarySearchModel, _$identity); @override void debugFillProperties(DiagnosticPropertiesBuilder properties) { @@ -58,7 +59,8 @@ mixin _$LibrarySearchModel implements DiagnosticableTreeMixin { /// @nodoc abstract mixin class $LibrarySearchModelCopyWith<$Res> { - factory $LibrarySearchModelCopyWith(LibrarySearchModel value, $Res Function(LibrarySearchModel) _then) = + factory $LibrarySearchModelCopyWith( + LibrarySearchModel value, $Res Function(LibrarySearchModel) _then) = _$LibrarySearchModelCopyWithImpl; @useResult $Res call( @@ -78,7 +80,8 @@ abstract mixin class $LibrarySearchModelCopyWith<$Res> { } /// @nodoc -class _$LibrarySearchModelCopyWithImpl<$Res> implements $LibrarySearchModelCopyWith<$Res> { +class _$LibrarySearchModelCopyWithImpl<$Res> + implements $LibrarySearchModelCopyWith<$Res> { _$LibrarySearchModelCopyWithImpl(this._self, this._then); final LibrarySearchModel _self; @@ -388,7 +391,9 @@ extension LibrarySearchModelPatterns on LibrarySearchModel { /// @nodoc -class _LibrarySearchModel with DiagnosticableTreeMixin implements LibrarySearchModel { +class _LibrarySearchModel + with DiagnosticableTreeMixin + implements LibrarySearchModel { const _LibrarySearchModel( {this.loading = false, this.selecteMode = false, @@ -469,7 +474,8 @@ class _LibrarySearchModel with DiagnosticableTreeMixin implements LibrarySearchM @override @JsonKey() Map get libraryItemCounts { - if (_libraryItemCounts is EqualUnmodifiableMapView) return _libraryItemCounts; + if (_libraryItemCounts is EqualUnmodifiableMapView) + return _libraryItemCounts; // ignore: implicit_dynamic_type return EqualUnmodifiableMapView(_libraryItemCounts); } @@ -510,8 +516,10 @@ class _LibrarySearchModel with DiagnosticableTreeMixin implements LibrarySearchM } /// @nodoc -abstract mixin class _$LibrarySearchModelCopyWith<$Res> implements $LibrarySearchModelCopyWith<$Res> { - factory _$LibrarySearchModelCopyWith(_LibrarySearchModel value, $Res Function(_LibrarySearchModel) _then) = +abstract mixin class _$LibrarySearchModelCopyWith<$Res> + implements $LibrarySearchModelCopyWith<$Res> { + factory _$LibrarySearchModelCopyWith( + _LibrarySearchModel value, $Res Function(_LibrarySearchModel) _then) = __$LibrarySearchModelCopyWithImpl; @override @useResult @@ -533,7 +541,8 @@ abstract mixin class _$LibrarySearchModelCopyWith<$Res> implements $LibrarySearc } /// @nodoc -class __$LibrarySearchModelCopyWithImpl<$Res> implements _$LibrarySearchModelCopyWith<$Res> { +class __$LibrarySearchModelCopyWithImpl<$Res> + implements _$LibrarySearchModelCopyWith<$Res> { __$LibrarySearchModelCopyWithImpl(this._self, this._then); final _LibrarySearchModel _self; diff --git a/lib/models/live_tv_model.freezed.dart b/lib/models/live_tv_model.freezed.dart index b2a8bd7f4..be6b36050 100644 --- a/lib/models/live_tv_model.freezed.dart +++ b/lib/models/live_tv_model.freezed.dart @@ -35,7 +35,9 @@ mixin _$LiveTvModel { /// @nodoc abstract mixin class $LiveTvModelCopyWith<$Res> { - factory $LiveTvModelCopyWith(LiveTvModel value, $Res Function(LiveTvModel) _then) = _$LiveTvModelCopyWithImpl; + factory $LiveTvModelCopyWith( + LiveTvModel value, $Res Function(LiveTvModel) _then) = + _$LiveTvModelCopyWithImpl; @useResult $Res call( {DateTime startDate, @@ -181,7 +183,11 @@ extension LiveTvModelPatterns on LiveTvModel { @optionalTypeArgs TResult maybeWhen( - TResult Function(DateTime startDate, DateTime endDate, List channels, Set loadedChannelIds, + TResult Function( + DateTime startDate, + DateTime endDate, + List channels, + Set loadedChannelIds, Set loadingChannelIds)? $default, { required TResult orElse(), @@ -189,8 +195,8 @@ extension LiveTvModelPatterns on LiveTvModel { final _that = this; switch (_that) { case _LiveTvModel() when $default != null: - return $default( - _that.startDate, _that.endDate, _that.channels, _that.loadedChannelIds, _that.loadingChannelIds); + return $default(_that.startDate, _that.endDate, _that.channels, + _that.loadedChannelIds, _that.loadingChannelIds); case _: return orElse(); } @@ -211,15 +217,19 @@ extension LiveTvModelPatterns on LiveTvModel { @optionalTypeArgs TResult when( - TResult Function(DateTime startDate, DateTime endDate, List channels, Set loadedChannelIds, + TResult Function( + DateTime startDate, + DateTime endDate, + List channels, + Set loadedChannelIds, Set loadingChannelIds) $default, ) { final _that = this; switch (_that) { case _LiveTvModel(): - return $default( - _that.startDate, _that.endDate, _that.channels, _that.loadedChannelIds, _that.loadingChannelIds); + return $default(_that.startDate, _that.endDate, _that.channels, + _that.loadedChannelIds, _that.loadingChannelIds); case _: throw StateError('Unexpected subclass'); } @@ -239,15 +249,19 @@ extension LiveTvModelPatterns on LiveTvModel { @optionalTypeArgs TResult? whenOrNull( - TResult? Function(DateTime startDate, DateTime endDate, List channels, Set loadedChannelIds, + TResult? Function( + DateTime startDate, + DateTime endDate, + List channels, + Set loadedChannelIds, Set loadingChannelIds)? $default, ) { final _that = this; switch (_that) { case _LiveTvModel() when $default != null: - return $default( - _that.startDate, _that.endDate, _that.channels, _that.loadedChannelIds, _that.loadingChannelIds); + return $default(_that.startDate, _that.endDate, _that.channels, + _that.loadedChannelIds, _that.loadingChannelIds); case _: return null; } @@ -293,7 +307,8 @@ class _LiveTvModel implements LiveTvModel { @override @JsonKey() Set get loadingChannelIds { - if (_loadingChannelIds is EqualUnmodifiableSetView) return _loadingChannelIds; + if (_loadingChannelIds is EqualUnmodifiableSetView) + return _loadingChannelIds; // ignore: implicit_dynamic_type return EqualUnmodifiableSetView(_loadingChannelIds); } @@ -303,7 +318,8 @@ class _LiveTvModel implements LiveTvModel { @override @JsonKey(includeFromJson: false, includeToJson: false) @pragma('vm:prefer-inline') - _$LiveTvModelCopyWith<_LiveTvModel> get copyWith => __$LiveTvModelCopyWithImpl<_LiveTvModel>(this, _$identity); + _$LiveTvModelCopyWith<_LiveTvModel> get copyWith => + __$LiveTvModelCopyWithImpl<_LiveTvModel>(this, _$identity); @override String toString() { @@ -312,8 +328,11 @@ class _LiveTvModel implements LiveTvModel { } /// @nodoc -abstract mixin class _$LiveTvModelCopyWith<$Res> implements $LiveTvModelCopyWith<$Res> { - factory _$LiveTvModelCopyWith(_LiveTvModel value, $Res Function(_LiveTvModel) _then) = __$LiveTvModelCopyWithImpl; +abstract mixin class _$LiveTvModelCopyWith<$Res> + implements $LiveTvModelCopyWith<$Res> { + factory _$LiveTvModelCopyWith( + _LiveTvModel value, $Res Function(_LiveTvModel) _then) = + __$LiveTvModelCopyWithImpl; @override @useResult $Res call( diff --git a/lib/models/login_screen_model.freezed.dart b/lib/models/login_screen_model.freezed.dart index a9a6d702e..93d679b02 100644 --- a/lib/models/login_screen_model.freezed.dart +++ b/lib/models/login_screen_model.freezed.dart @@ -28,7 +28,8 @@ mixin _$LoginScreenModel { @JsonKey(includeFromJson: false, includeToJson: false) @pragma('vm:prefer-inline') $LoginScreenModelCopyWith get copyWith => - _$LoginScreenModelCopyWithImpl(this as LoginScreenModel, _$identity); + _$LoginScreenModelCopyWithImpl( + this as LoginScreenModel, _$identity); @override String toString() { @@ -38,7 +39,8 @@ mixin _$LoginScreenModel { /// @nodoc abstract mixin class $LoginScreenModelCopyWith<$Res> { - factory $LoginScreenModelCopyWith(LoginScreenModel value, $Res Function(LoginScreenModel) _then) = + factory $LoginScreenModelCopyWith( + LoginScreenModel value, $Res Function(LoginScreenModel) _then) = _$LoginScreenModelCopyWithImpl; @useResult $Res call( @@ -55,7 +57,8 @@ abstract mixin class $LoginScreenModelCopyWith<$Res> { } /// @nodoc -class _$LoginScreenModelCopyWithImpl<$Res> implements $LoginScreenModelCopyWith<$Res> { +class _$LoginScreenModelCopyWithImpl<$Res> + implements $LoginScreenModelCopyWith<$Res> { _$LoginScreenModelCopyWithImpl(this._self, this._then); final LoginScreenModel _self; @@ -219,16 +222,30 @@ extension LoginScreenModelPatterns on LoginScreenModel { @optionalTypeArgs TResult maybeWhen( - TResult Function(List accounts, LoginScreenType screen, ServerLoginModel? serverLoginModel, - String? errorMessage, bool hasBaseUrl, bool loading, String? tempSeerrUrl, String? tempSeerrSessionCookie)? + TResult Function( + List accounts, + LoginScreenType screen, + ServerLoginModel? serverLoginModel, + String? errorMessage, + bool hasBaseUrl, + bool loading, + String? tempSeerrUrl, + String? tempSeerrSessionCookie)? $default, { required TResult orElse(), }) { final _that = this; switch (_that) { case _LoginScreenModel() when $default != null: - return $default(_that.accounts, _that.screen, _that.serverLoginModel, _that.errorMessage, _that.hasBaseUrl, - _that.loading, _that.tempSeerrUrl, _that.tempSeerrSessionCookie); + return $default( + _that.accounts, + _that.screen, + _that.serverLoginModel, + _that.errorMessage, + _that.hasBaseUrl, + _that.loading, + _that.tempSeerrUrl, + _that.tempSeerrSessionCookie); case _: return orElse(); } @@ -249,15 +266,29 @@ extension LoginScreenModelPatterns on LoginScreenModel { @optionalTypeArgs TResult when( - TResult Function(List accounts, LoginScreenType screen, ServerLoginModel? serverLoginModel, - String? errorMessage, bool hasBaseUrl, bool loading, String? tempSeerrUrl, String? tempSeerrSessionCookie) + TResult Function( + List accounts, + LoginScreenType screen, + ServerLoginModel? serverLoginModel, + String? errorMessage, + bool hasBaseUrl, + bool loading, + String? tempSeerrUrl, + String? tempSeerrSessionCookie) $default, ) { final _that = this; switch (_that) { case _LoginScreenModel(): - return $default(_that.accounts, _that.screen, _that.serverLoginModel, _that.errorMessage, _that.hasBaseUrl, - _that.loading, _that.tempSeerrUrl, _that.tempSeerrSessionCookie); + return $default( + _that.accounts, + _that.screen, + _that.serverLoginModel, + _that.errorMessage, + _that.hasBaseUrl, + _that.loading, + _that.tempSeerrUrl, + _that.tempSeerrSessionCookie); case _: throw StateError('Unexpected subclass'); } @@ -277,15 +308,29 @@ extension LoginScreenModelPatterns on LoginScreenModel { @optionalTypeArgs TResult? whenOrNull( - TResult? Function(List accounts, LoginScreenType screen, ServerLoginModel? serverLoginModel, - String? errorMessage, bool hasBaseUrl, bool loading, String? tempSeerrUrl, String? tempSeerrSessionCookie)? + TResult? Function( + List accounts, + LoginScreenType screen, + ServerLoginModel? serverLoginModel, + String? errorMessage, + bool hasBaseUrl, + bool loading, + String? tempSeerrUrl, + String? tempSeerrSessionCookie)? $default, ) { final _that = this; switch (_that) { case _LoginScreenModel() when $default != null: - return $default(_that.accounts, _that.screen, _that.serverLoginModel, _that.errorMessage, _that.hasBaseUrl, - _that.loading, _that.tempSeerrUrl, _that.tempSeerrSessionCookie); + return $default( + _that.accounts, + _that.screen, + _that.serverLoginModel, + _that.errorMessage, + _that.hasBaseUrl, + _that.loading, + _that.tempSeerrUrl, + _that.tempSeerrSessionCookie); case _: return null; } @@ -348,8 +393,10 @@ class _LoginScreenModel implements LoginScreenModel { } /// @nodoc -abstract mixin class _$LoginScreenModelCopyWith<$Res> implements $LoginScreenModelCopyWith<$Res> { - factory _$LoginScreenModelCopyWith(_LoginScreenModel value, $Res Function(_LoginScreenModel) _then) = +abstract mixin class _$LoginScreenModelCopyWith<$Res> + implements $LoginScreenModelCopyWith<$Res> { + factory _$LoginScreenModelCopyWith( + _LoginScreenModel value, $Res Function(_LoginScreenModel) _then) = __$LoginScreenModelCopyWithImpl; @override @useResult @@ -368,7 +415,8 @@ abstract mixin class _$LoginScreenModelCopyWith<$Res> implements $LoginScreenMod } /// @nodoc -class __$LoginScreenModelCopyWithImpl<$Res> implements _$LoginScreenModelCopyWith<$Res> { +class __$LoginScreenModelCopyWithImpl<$Res> + implements _$LoginScreenModelCopyWith<$Res> { __$LoginScreenModelCopyWithImpl(this._self, this._then); final _LoginScreenModel _self; @@ -451,7 +499,8 @@ mixin _$ServerLoginModel { @JsonKey(includeFromJson: false, includeToJson: false) @pragma('vm:prefer-inline') $ServerLoginModelCopyWith get copyWith => - _$ServerLoginModelCopyWithImpl(this as ServerLoginModel, _$identity); + _$ServerLoginModelCopyWithImpl( + this as ServerLoginModel, _$identity); @override String toString() { @@ -461,17 +510,22 @@ mixin _$ServerLoginModel { /// @nodoc abstract mixin class $ServerLoginModelCopyWith<$Res> { - factory $ServerLoginModelCopyWith(ServerLoginModel value, $Res Function(ServerLoginModel) _then) = + factory $ServerLoginModelCopyWith( + ServerLoginModel value, $Res Function(ServerLoginModel) _then) = _$ServerLoginModelCopyWithImpl; @useResult $Res call( - {CredentialsModel tempCredentials, List accounts, String? serverMessage, bool hasQuickConnect}); + {CredentialsModel tempCredentials, + List accounts, + String? serverMessage, + bool hasQuickConnect}); $CredentialsModelCopyWith<$Res> get tempCredentials; } /// @nodoc -class _$ServerLoginModelCopyWithImpl<$Res> implements $ServerLoginModelCopyWith<$Res> { +class _$ServerLoginModelCopyWithImpl<$Res> + implements $ServerLoginModelCopyWith<$Res> { _$ServerLoginModelCopyWithImpl(this._self, this._then); final ServerLoginModel _self; @@ -612,14 +666,18 @@ extension ServerLoginModelPatterns on ServerLoginModel { @optionalTypeArgs TResult maybeWhen( TResult Function( - CredentialsModel tempCredentials, List accounts, String? serverMessage, bool hasQuickConnect)? + CredentialsModel tempCredentials, + List accounts, + String? serverMessage, + bool hasQuickConnect)? $default, { required TResult orElse(), }) { final _that = this; switch (_that) { case _ServerLoginModel() when $default != null: - return $default(_that.tempCredentials, _that.accounts, _that.serverMessage, _that.hasQuickConnect); + return $default(_that.tempCredentials, _that.accounts, + _that.serverMessage, _that.hasQuickConnect); case _: return orElse(); } @@ -641,13 +699,17 @@ extension ServerLoginModelPatterns on ServerLoginModel { @optionalTypeArgs TResult when( TResult Function( - CredentialsModel tempCredentials, List accounts, String? serverMessage, bool hasQuickConnect) + CredentialsModel tempCredentials, + List accounts, + String? serverMessage, + bool hasQuickConnect) $default, ) { final _that = this; switch (_that) { case _ServerLoginModel(): - return $default(_that.tempCredentials, _that.accounts, _that.serverMessage, _that.hasQuickConnect); + return $default(_that.tempCredentials, _that.accounts, + _that.serverMessage, _that.hasQuickConnect); case _: throw StateError('Unexpected subclass'); } @@ -668,13 +730,17 @@ extension ServerLoginModelPatterns on ServerLoginModel { @optionalTypeArgs TResult? whenOrNull( TResult? Function( - CredentialsModel tempCredentials, List accounts, String? serverMessage, bool hasQuickConnect)? + CredentialsModel tempCredentials, + List accounts, + String? serverMessage, + bool hasQuickConnect)? $default, ) { final _that = this; switch (_that) { case _ServerLoginModel() when $default != null: - return $default(_that.tempCredentials, _that.accounts, _that.serverMessage, _that.hasQuickConnect); + return $default(_that.tempCredentials, _that.accounts, + _that.serverMessage, _that.hasQuickConnect); case _: return null; } @@ -723,20 +789,26 @@ class _ServerLoginModel implements ServerLoginModel { } /// @nodoc -abstract mixin class _$ServerLoginModelCopyWith<$Res> implements $ServerLoginModelCopyWith<$Res> { - factory _$ServerLoginModelCopyWith(_ServerLoginModel value, $Res Function(_ServerLoginModel) _then) = +abstract mixin class _$ServerLoginModelCopyWith<$Res> + implements $ServerLoginModelCopyWith<$Res> { + factory _$ServerLoginModelCopyWith( + _ServerLoginModel value, $Res Function(_ServerLoginModel) _then) = __$ServerLoginModelCopyWithImpl; @override @useResult $Res call( - {CredentialsModel tempCredentials, List accounts, String? serverMessage, bool hasQuickConnect}); + {CredentialsModel tempCredentials, + List accounts, + String? serverMessage, + bool hasQuickConnect}); @override $CredentialsModelCopyWith<$Res> get tempCredentials; } /// @nodoc -class __$ServerLoginModelCopyWithImpl<$Res> implements _$ServerLoginModelCopyWith<$Res> { +class __$ServerLoginModelCopyWithImpl<$Res> + implements _$ServerLoginModelCopyWith<$Res> { __$ServerLoginModelCopyWithImpl(this._self, this._then); final _ServerLoginModel _self; diff --git a/lib/models/notification_model.freezed.dart b/lib/models/notification_model.freezed.dart index 5e615277a..1799f01ee 100644 --- a/lib/models/notification_model.freezed.dart +++ b/lib/models/notification_model.freezed.dart @@ -124,15 +124,16 @@ extension NotificationModelPatterns on NotificationModel { @optionalTypeArgs TResult maybeWhen( - TResult Function( - String key, String id, int? childCount, String? image, String title, String? subtitle, String payLoad)? + TResult Function(String key, String id, int? childCount, String? image, + String title, String? subtitle, String payLoad)? $default, { required TResult orElse(), }) { final _that = this; switch (_that) { case _NotificationModel() when $default != null: - return $default(_that.key, _that.id, _that.childCount, _that.image, _that.title, _that.subtitle, _that.payLoad); + return $default(_that.key, _that.id, _that.childCount, _that.image, + _that.title, _that.subtitle, _that.payLoad); case _: return orElse(); } @@ -153,14 +154,15 @@ extension NotificationModelPatterns on NotificationModel { @optionalTypeArgs TResult when( - TResult Function( - String key, String id, int? childCount, String? image, String title, String? subtitle, String payLoad) + TResult Function(String key, String id, int? childCount, String? image, + String title, String? subtitle, String payLoad) $default, ) { final _that = this; switch (_that) { case _NotificationModel(): - return $default(_that.key, _that.id, _that.childCount, _that.image, _that.title, _that.subtitle, _that.payLoad); + return $default(_that.key, _that.id, _that.childCount, _that.image, + _that.title, _that.subtitle, _that.payLoad); case _: throw StateError('Unexpected subclass'); } @@ -180,14 +182,15 @@ extension NotificationModelPatterns on NotificationModel { @optionalTypeArgs TResult? whenOrNull( - TResult? Function( - String key, String id, int? childCount, String? image, String title, String? subtitle, String payLoad)? + TResult? Function(String key, String id, int? childCount, String? image, + String title, String? subtitle, String payLoad)? $default, ) { final _that = this; switch (_that) { case _NotificationModel() when $default != null: - return $default(_that.key, _that.id, _that.childCount, _that.image, _that.title, _that.subtitle, _that.payLoad); + return $default(_that.key, _that.id, _that.childCount, _that.image, + _that.title, _that.subtitle, _that.payLoad); case _: return null; } @@ -205,7 +208,8 @@ class _NotificationModel implements NotificationModel { required this.title, this.subtitle, required this.payLoad}); - factory _NotificationModel.fromJson(Map json) => _$NotificationModelFromJson(json); + factory _NotificationModel.fromJson(Map json) => + _$NotificationModelFromJson(json); @override final String key; diff --git a/lib/models/notification_model.g.dart b/lib/models/notification_model.g.dart index 2871718d4..1a57c29a7 100644 --- a/lib/models/notification_model.g.dart +++ b/lib/models/notification_model.g.dart @@ -6,7 +6,8 @@ part of 'notification_model.dart'; // JsonSerializableGenerator // ************************************************************************** -_NotificationModel _$NotificationModelFromJson(Map json) => _NotificationModel( +_NotificationModel _$NotificationModelFromJson(Map json) => + _NotificationModel( key: json['key'] as String, id: json['id'] as String, childCount: (json['childCount'] as num?)?.toInt(), @@ -16,7 +17,8 @@ _NotificationModel _$NotificationModelFromJson(Map json) => _No payLoad: json['payLoad'] as String, ); -Map _$NotificationModelToJson(_NotificationModel instance) => { +Map _$NotificationModelToJson(_NotificationModel instance) => + { 'key': instance.key, 'id': instance.id, 'childCount': instance.childCount, diff --git a/lib/models/playback/playback_model.dart b/lib/models/playback/playback_model.dart index 30b794307..69bde7baf 100644 --- a/lib/models/playback/playback_model.dart +++ b/lib/models/playback/playback_model.dart @@ -481,7 +481,10 @@ class PlaybackModelHelper { return Response(response.base, (response.body?.items?.map((e) => EpisodeModel.fromBaseDto(e, ref)).toList() ?? [])); } - Future shouldReload(PlaybackModel playbackModel) async { + Future shouldReload( + PlaybackModel playbackModel, { + bool isLocalTrackSwitch = false, + }) async { if (playbackModel is OfflinePlaybackModel) { return; } @@ -495,9 +498,15 @@ class PlaybackModelHelper { final isSyncPlayActive = ref.read(isSyncPlayActiveProvider); final Duration currentPosition; + final shouldReportGroupBuffering = + (isSyncPlayActive && !isLocalTrackSwitch); + if (isSyncPlayActive) { // Set reloading state in the player notifier to prevent premature ready reporting - ref.read(videoPlayerProvider.notifier).setReloading(true); + ref.read(videoPlayerProvider.notifier).setReloading( + true, + reportToSyncPlay: shouldReportGroupBuffering, + ); // Get syncplay position FIRST before any state changes final syncPlayState = ref.read(syncPlayProvider); @@ -505,8 +514,11 @@ class PlaybackModelHelper { // Convert ticks to Duration: 1 tick = 100 nanoseconds, 10000 ticks = 1 millisecond currentPosition = Duration(milliseconds: ticksToMilliseconds(positionTicks)); - // Report buffering to syncplay BEFORE stopping/reloading to pause other group members - await ref.read(syncPlayProvider.notifier).reportBuffering(); + if (shouldReportGroupBuffering) { + // Report buffering BEFORE stop/reload only when this reload should + // affect group flow. + await ref.read(syncPlayProvider.notifier).reportBuffering(); + } } else { currentPosition = ref.read(mediaPlaybackProvider.select((value) => value.position)); } @@ -606,10 +618,17 @@ class PlaybackModelHelper { return; } if (newModel.runtimeType != playbackModel.runtimeType || newModel is TranscodePlaybackModel) { - ref.read(videoPlayerProvider.notifier).loadPlaybackItem(newModel, currentPosition); + ref.read(videoPlayerProvider.notifier).loadPlaybackItem( + newModel, + currentPosition, + waitForSyncPlayCommand: shouldReportGroupBuffering, + ); } else if (isSyncPlayActive) { // If we didn't call loadPlaybackItem, we must reset reloading state - ref.read(videoPlayerProvider.notifier).setReloading(false); + ref.read(videoPlayerProvider.notifier).setReloading( + false, + reportToSyncPlay: false, + ); } } } diff --git a/lib/models/seerr_credentials_model.freezed.dart b/lib/models/seerr_credentials_model.freezed.dart index a8017ac5a..f5b9cbb10 100644 --- a/lib/models/seerr_credentials_model.freezed.dart +++ b/lib/models/seerr_credentials_model.freezed.dart @@ -24,7 +24,8 @@ mixin _$SeerrCredentialsModel { @JsonKey(includeFromJson: false, includeToJson: false) @pragma('vm:prefer-inline') $SeerrCredentialsModelCopyWith get copyWith => - _$SeerrCredentialsModelCopyWithImpl(this as SeerrCredentialsModel, _$identity); + _$SeerrCredentialsModelCopyWithImpl( + this as SeerrCredentialsModel, _$identity); /// Serializes this SeerrCredentialsModel to a JSON map. Map toJson(); @@ -37,14 +38,20 @@ mixin _$SeerrCredentialsModel { /// @nodoc abstract mixin class $SeerrCredentialsModelCopyWith<$Res> { - factory $SeerrCredentialsModelCopyWith(SeerrCredentialsModel value, $Res Function(SeerrCredentialsModel) _then) = + factory $SeerrCredentialsModelCopyWith(SeerrCredentialsModel value, + $Res Function(SeerrCredentialsModel) _then) = _$SeerrCredentialsModelCopyWithImpl; @useResult - $Res call({String serverUrl, String apiKey, String sessionCookie, Map customHeaders}); + $Res call( + {String serverUrl, + String apiKey, + String sessionCookie, + Map customHeaders}); } /// @nodoc -class _$SeerrCredentialsModelCopyWithImpl<$Res> implements $SeerrCredentialsModelCopyWith<$Res> { +class _$SeerrCredentialsModelCopyWithImpl<$Res> + implements $SeerrCredentialsModelCopyWith<$Res> { _$SeerrCredentialsModelCopyWithImpl(this._self, this._then); final SeerrCredentialsModel _self; @@ -174,14 +181,16 @@ extension SeerrCredentialsModelPatterns on SeerrCredentialsModel { @optionalTypeArgs TResult maybeWhen( - TResult Function(String serverUrl, String apiKey, String sessionCookie, Map customHeaders)? + TResult Function(String serverUrl, String apiKey, String sessionCookie, + Map customHeaders)? $default, { required TResult orElse(), }) { final _that = this; switch (_that) { case _SeerrCredentialsModel() when $default != null: - return $default(_that.serverUrl, _that.apiKey, _that.sessionCookie, _that.customHeaders); + return $default(_that.serverUrl, _that.apiKey, _that.sessionCookie, + _that.customHeaders); case _: return orElse(); } @@ -202,12 +211,15 @@ extension SeerrCredentialsModelPatterns on SeerrCredentialsModel { @optionalTypeArgs TResult when( - TResult Function(String serverUrl, String apiKey, String sessionCookie, Map customHeaders) $default, + TResult Function(String serverUrl, String apiKey, String sessionCookie, + Map customHeaders) + $default, ) { final _that = this; switch (_that) { case _SeerrCredentialsModel(): - return $default(_that.serverUrl, _that.apiKey, _that.sessionCookie, _that.customHeaders); + return $default(_that.serverUrl, _that.apiKey, _that.sessionCookie, + _that.customHeaders); case _: throw StateError('Unexpected subclass'); } @@ -227,13 +239,15 @@ extension SeerrCredentialsModelPatterns on SeerrCredentialsModel { @optionalTypeArgs TResult? whenOrNull( - TResult? Function(String serverUrl, String apiKey, String sessionCookie, Map customHeaders)? + TResult? Function(String serverUrl, String apiKey, String sessionCookie, + Map customHeaders)? $default, ) { final _that = this; switch (_that) { case _SeerrCredentialsModel() when $default != null: - return $default(_that.serverUrl, _that.apiKey, _that.sessionCookie, _that.customHeaders); + return $default(_that.serverUrl, _that.apiKey, _that.sessionCookie, + _that.customHeaders); case _: return null; } @@ -250,7 +264,8 @@ class _SeerrCredentialsModel extends SeerrCredentialsModel { final Map customHeaders = const {}}) : _customHeaders = customHeaders, super._(); - factory _SeerrCredentialsModel.fromJson(Map json) => _$SeerrCredentialsModelFromJson(json); + factory _SeerrCredentialsModel.fromJson(Map json) => + _$SeerrCredentialsModelFromJson(json); @override @JsonKey() @@ -276,7 +291,8 @@ class _SeerrCredentialsModel extends SeerrCredentialsModel { @JsonKey(includeFromJson: false, includeToJson: false) @pragma('vm:prefer-inline') _$SeerrCredentialsModelCopyWith<_SeerrCredentialsModel> get copyWith => - __$SeerrCredentialsModelCopyWithImpl<_SeerrCredentialsModel>(this, _$identity); + __$SeerrCredentialsModelCopyWithImpl<_SeerrCredentialsModel>( + this, _$identity); @override Map toJson() { @@ -292,16 +308,23 @@ class _SeerrCredentialsModel extends SeerrCredentialsModel { } /// @nodoc -abstract mixin class _$SeerrCredentialsModelCopyWith<$Res> implements $SeerrCredentialsModelCopyWith<$Res> { - factory _$SeerrCredentialsModelCopyWith(_SeerrCredentialsModel value, $Res Function(_SeerrCredentialsModel) _then) = +abstract mixin class _$SeerrCredentialsModelCopyWith<$Res> + implements $SeerrCredentialsModelCopyWith<$Res> { + factory _$SeerrCredentialsModelCopyWith(_SeerrCredentialsModel value, + $Res Function(_SeerrCredentialsModel) _then) = __$SeerrCredentialsModelCopyWithImpl; @override @useResult - $Res call({String serverUrl, String apiKey, String sessionCookie, Map customHeaders}); + $Res call( + {String serverUrl, + String apiKey, + String sessionCookie, + Map customHeaders}); } /// @nodoc -class __$SeerrCredentialsModelCopyWithImpl<$Res> implements _$SeerrCredentialsModelCopyWith<$Res> { +class __$SeerrCredentialsModelCopyWithImpl<$Res> + implements _$SeerrCredentialsModelCopyWith<$Res> { __$SeerrCredentialsModelCopyWithImpl(this._self, this._then); final _SeerrCredentialsModel _self; diff --git a/lib/models/seerr_credentials_model.g.dart b/lib/models/seerr_credentials_model.g.dart index 8eaa87a8c..3346cdca2 100644 --- a/lib/models/seerr_credentials_model.g.dart +++ b/lib/models/seerr_credentials_model.g.dart @@ -6,7 +6,9 @@ part of 'seerr_credentials_model.dart'; // JsonSerializableGenerator // ************************************************************************** -_SeerrCredentialsModel _$SeerrCredentialsModelFromJson(Map json) => _SeerrCredentialsModel( +_SeerrCredentialsModel _$SeerrCredentialsModelFromJson( + Map json) => + _SeerrCredentialsModel( serverUrl: json['serverUrl'] as String? ?? "", apiKey: json['apiKey'] as String? ?? "", sessionCookie: json['sessionCookie'] as String? ?? "", @@ -16,7 +18,9 @@ _SeerrCredentialsModel _$SeerrCredentialsModelFromJson(Map json const {}, ); -Map _$SeerrCredentialsModelToJson(_SeerrCredentialsModel instance) => { +Map _$SeerrCredentialsModelToJson( + _SeerrCredentialsModel instance) => + { 'serverUrl': instance.serverUrl, 'apiKey': instance.apiKey, 'sessionCookie': instance.sessionCookie, diff --git a/lib/models/settings/arguments_model.freezed.dart b/lib/models/settings/arguments_model.freezed.dart index 3bfc06df5..23b11053e 100644 --- a/lib/models/settings/arguments_model.freezed.dart +++ b/lib/models/settings/arguments_model.freezed.dart @@ -118,13 +118,16 @@ extension ArgumentsModelPatterns on ArgumentsModel { @optionalTypeArgs TResult maybeWhen( - TResult Function(bool htpcMode, bool leanBackMode, bool newWindow, bool skipNotifications)? $default, { + TResult Function(bool htpcMode, bool leanBackMode, bool newWindow, + bool skipNotifications)? + $default, { required TResult orElse(), }) { final _that = this; switch (_that) { case _ArgumentsModel() when $default != null: - return $default(_that.htpcMode, _that.leanBackMode, _that.newWindow, _that.skipNotifications); + return $default(_that.htpcMode, _that.leanBackMode, _that.newWindow, + _that.skipNotifications); case _: return orElse(); } @@ -145,12 +148,15 @@ extension ArgumentsModelPatterns on ArgumentsModel { @optionalTypeArgs TResult when( - TResult Function(bool htpcMode, bool leanBackMode, bool newWindow, bool skipNotifications) $default, + TResult Function(bool htpcMode, bool leanBackMode, bool newWindow, + bool skipNotifications) + $default, ) { final _that = this; switch (_that) { case _ArgumentsModel(): - return $default(_that.htpcMode, _that.leanBackMode, _that.newWindow, _that.skipNotifications); + return $default(_that.htpcMode, _that.leanBackMode, _that.newWindow, + _that.skipNotifications); case _: throw StateError('Unexpected subclass'); } @@ -170,12 +176,15 @@ extension ArgumentsModelPatterns on ArgumentsModel { @optionalTypeArgs TResult? whenOrNull( - TResult? Function(bool htpcMode, bool leanBackMode, bool newWindow, bool skipNotifications)? $default, + TResult? Function(bool htpcMode, bool leanBackMode, bool newWindow, + bool skipNotifications)? + $default, ) { final _that = this; switch (_that) { case _ArgumentsModel() when $default != null: - return $default(_that.htpcMode, _that.leanBackMode, _that.newWindow, _that.skipNotifications); + return $default(_that.htpcMode, _that.leanBackMode, _that.newWindow, + _that.skipNotifications); case _: return null; } @@ -185,7 +194,12 @@ extension ArgumentsModelPatterns on ArgumentsModel { /// @nodoc class _ArgumentsModel extends ArgumentsModel { - _ArgumentsModel({this.htpcMode = false, this.leanBackMode = false, this.newWindow = false, this.skipNotifications = false}) : super._(); + _ArgumentsModel( + {this.htpcMode = false, + this.leanBackMode = false, + this.newWindow = false, + this.skipNotifications = false}) + : super._(); @override @JsonKey() diff --git a/lib/models/settings/client_settings_model.freezed.dart b/lib/models/settings/client_settings_model.freezed.dart index 84492d267..a7af8642f 100644 --- a/lib/models/settings/client_settings_model.freezed.dart +++ b/lib/models/settings/client_settings_model.freezed.dart @@ -53,7 +53,8 @@ mixin _$ClientSettingsModel implements DiagnosticableTreeMixin { @JsonKey(includeFromJson: false, includeToJson: false) @pragma('vm:prefer-inline') $ClientSettingsModelCopyWith get copyWith => - _$ClientSettingsModelCopyWithImpl(this as ClientSettingsModel, _$identity); + _$ClientSettingsModelCopyWithImpl( + this as ClientSettingsModel, _$identity); /// Serializes this ClientSettingsModel to a JSON map. Map toJson(); @@ -69,7 +70,8 @@ mixin _$ClientSettingsModel implements DiagnosticableTreeMixin { ..add(DiagnosticsProperty('size', size)) ..add(DiagnosticsProperty('timeOut', timeOut)) ..add(DiagnosticsProperty('nextUpDateCutoff', nextUpDateCutoff)) - ..add(DiagnosticsProperty('updateNotificationsInterval', updateNotificationsInterval)) + ..add(DiagnosticsProperty( + 'updateNotificationsInterval', updateNotificationsInterval)) ..add(DiagnosticsProperty('themeMode', themeMode)) ..add(DiagnosticsProperty('themeColor', themeColor)) ..add(DiagnosticsProperty('deriveColorsFromItem', deriveColorsFromItem)) @@ -83,8 +85,10 @@ mixin _$ClientSettingsModel implements DiagnosticableTreeMixin { ..add(DiagnosticsProperty('mouseDragSupport', mouseDragSupport)) ..add(DiagnosticsProperty('requireWifi', requireWifi)) ..add(DiagnosticsProperty('expandSideBar', expandSideBar)) - ..add(DiagnosticsProperty('showAllCollectionTypes', showAllCollectionTypes)) - ..add(DiagnosticsProperty('maxConcurrentDownloads', maxConcurrentDownloads)) + ..add( + DiagnosticsProperty('showAllCollectionTypes', showAllCollectionTypes)) + ..add( + DiagnosticsProperty('maxConcurrentDownloads', maxConcurrentDownloads)) ..add(DiagnosticsProperty('schemeVariant', schemeVariant)) ..add(DiagnosticsProperty('backgroundImage', backgroundImage)) ..add(DiagnosticsProperty('enableBlurEffects', enableBlurEffects)) @@ -105,7 +109,8 @@ mixin _$ClientSettingsModel implements DiagnosticableTreeMixin { /// @nodoc abstract mixin class $ClientSettingsModelCopyWith<$Res> { - factory $ClientSettingsModelCopyWith(ClientSettingsModel value, $Res Function(ClientSettingsModel) _then) = + factory $ClientSettingsModelCopyWith( + ClientSettingsModel value, $Res Function(ClientSettingsModel) _then) = _$ClientSettingsModelCopyWithImpl; @useResult $Res call( @@ -146,7 +151,8 @@ abstract mixin class $ClientSettingsModelCopyWith<$Res> { } /// @nodoc -class _$ClientSettingsModelCopyWithImpl<$Res> implements $ClientSettingsModelCopyWith<$Res> { +class _$ClientSettingsModelCopyWithImpl<$Res> + implements $ClientSettingsModelCopyWith<$Res> { _$ClientSettingsModelCopyWithImpl(this._self, this._then); final ClientSettingsModel _self; @@ -688,7 +694,8 @@ extension ClientSettingsModelPatterns on ClientSettingsModel { /// @nodoc @JsonSerializable() -class _ClientSettingsModel extends ClientSettingsModel with DiagnosticableTreeMixin { +class _ClientSettingsModel extends ClientSettingsModel + with DiagnosticableTreeMixin { _ClientSettingsModel( {this.syncPath, required this.transcodeDownloadModel, @@ -724,7 +731,8 @@ class _ClientSettingsModel extends ClientSettingsModel with DiagnosticableTreeMi final Map shortcuts = const {}}) : _shortcuts = shortcuts, super._(); - factory _ClientSettingsModel.fromJson(Map json) => _$ClientSettingsModelFromJson(json); + factory _ClientSettingsModel.fromJson(Map json) => + _$ClientSettingsModelFromJson(json); @override final String? syncPath; @@ -828,7 +836,8 @@ class _ClientSettingsModel extends ClientSettingsModel with DiagnosticableTreeMi @JsonKey(includeFromJson: false, includeToJson: false) @pragma('vm:prefer-inline') _$ClientSettingsModelCopyWith<_ClientSettingsModel> get copyWith => - __$ClientSettingsModelCopyWithImpl<_ClientSettingsModel>(this, _$identity); + __$ClientSettingsModelCopyWithImpl<_ClientSettingsModel>( + this, _$identity); @override Map toJson() { @@ -848,7 +857,8 @@ class _ClientSettingsModel extends ClientSettingsModel with DiagnosticableTreeMi ..add(DiagnosticsProperty('size', size)) ..add(DiagnosticsProperty('timeOut', timeOut)) ..add(DiagnosticsProperty('nextUpDateCutoff', nextUpDateCutoff)) - ..add(DiagnosticsProperty('updateNotificationsInterval', updateNotificationsInterval)) + ..add(DiagnosticsProperty( + 'updateNotificationsInterval', updateNotificationsInterval)) ..add(DiagnosticsProperty('themeMode', themeMode)) ..add(DiagnosticsProperty('themeColor', themeColor)) ..add(DiagnosticsProperty('deriveColorsFromItem', deriveColorsFromItem)) @@ -862,8 +872,10 @@ class _ClientSettingsModel extends ClientSettingsModel with DiagnosticableTreeMi ..add(DiagnosticsProperty('mouseDragSupport', mouseDragSupport)) ..add(DiagnosticsProperty('requireWifi', requireWifi)) ..add(DiagnosticsProperty('expandSideBar', expandSideBar)) - ..add(DiagnosticsProperty('showAllCollectionTypes', showAllCollectionTypes)) - ..add(DiagnosticsProperty('maxConcurrentDownloads', maxConcurrentDownloads)) + ..add( + DiagnosticsProperty('showAllCollectionTypes', showAllCollectionTypes)) + ..add( + DiagnosticsProperty('maxConcurrentDownloads', maxConcurrentDownloads)) ..add(DiagnosticsProperty('schemeVariant', schemeVariant)) ..add(DiagnosticsProperty('backgroundImage', backgroundImage)) ..add(DiagnosticsProperty('enableBlurEffects', enableBlurEffects)) @@ -883,8 +895,10 @@ class _ClientSettingsModel extends ClientSettingsModel with DiagnosticableTreeMi } /// @nodoc -abstract mixin class _$ClientSettingsModelCopyWith<$Res> implements $ClientSettingsModelCopyWith<$Res> { - factory _$ClientSettingsModelCopyWith(_ClientSettingsModel value, $Res Function(_ClientSettingsModel) _then) = +abstract mixin class _$ClientSettingsModelCopyWith<$Res> + implements $ClientSettingsModelCopyWith<$Res> { + factory _$ClientSettingsModelCopyWith(_ClientSettingsModel value, + $Res Function(_ClientSettingsModel) _then) = __$ClientSettingsModelCopyWithImpl; @override @useResult @@ -927,7 +941,8 @@ abstract mixin class _$ClientSettingsModelCopyWith<$Res> implements $ClientSetti } /// @nodoc -class __$ClientSettingsModelCopyWithImpl<$Res> implements _$ClientSettingsModelCopyWith<$Res> { +class __$ClientSettingsModelCopyWithImpl<$Res> + implements _$ClientSettingsModelCopyWith<$Res> { __$ClientSettingsModelCopyWithImpl(this._self, this._then); final _ClientSettingsModel _self; diff --git a/lib/models/settings/home_settings_model.freezed.dart b/lib/models/settings/home_settings_model.freezed.dart index b8dc60511..5e04c5062 100644 --- a/lib/models/settings/home_settings_model.freezed.dart +++ b/lib/models/settings/home_settings_model.freezed.dart @@ -25,7 +25,8 @@ mixin _$HomeSettingsModel { @JsonKey(includeFromJson: false, includeToJson: false) @pragma('vm:prefer-inline') $HomeSettingsModelCopyWith get copyWith => - _$HomeSettingsModelCopyWithImpl(this as HomeSettingsModel, _$identity); + _$HomeSettingsModelCopyWithImpl( + this as HomeSettingsModel, _$identity); /// Serializes this HomeSettingsModel to a JSON map. Map toJson(); @@ -38,7 +39,8 @@ mixin _$HomeSettingsModel { /// @nodoc abstract mixin class $HomeSettingsModelCopyWith<$Res> { - factory $HomeSettingsModelCopyWith(HomeSettingsModel value, $Res Function(HomeSettingsModel) _then) = + factory $HomeSettingsModelCopyWith( + HomeSettingsModel value, $Res Function(HomeSettingsModel) _then) = _$HomeSettingsModelCopyWithImpl; @useResult $Res call( @@ -50,7 +52,8 @@ abstract mixin class $HomeSettingsModelCopyWith<$Res> { } /// @nodoc -class _$HomeSettingsModelCopyWithImpl<$Res> implements $HomeSettingsModelCopyWith<$Res> { +class _$HomeSettingsModelCopyWithImpl<$Res> + implements $HomeSettingsModelCopyWith<$Res> { _$HomeSettingsModelCopyWithImpl(this._self, this._then); final HomeSettingsModel _self; @@ -185,16 +188,20 @@ extension HomeSettingsModelPatterns on HomeSettingsModel { @optionalTypeArgs TResult maybeWhen( - TResult Function(Set screenLayouts, Set layoutStates, HomeBanner homeBanner, - HomeCarouselSettings carouselSettings, HomeNextUp nextUp)? + TResult Function( + Set screenLayouts, + Set layoutStates, + HomeBanner homeBanner, + HomeCarouselSettings carouselSettings, + HomeNextUp nextUp)? $default, { required TResult orElse(), }) { final _that = this; switch (_that) { case _HomeSettingsModel() when $default != null: - return $default( - _that.screenLayouts, _that.layoutStates, _that.homeBanner, _that.carouselSettings, _that.nextUp); + return $default(_that.screenLayouts, _that.layoutStates, + _that.homeBanner, _that.carouselSettings, _that.nextUp); case _: return orElse(); } @@ -215,15 +222,19 @@ extension HomeSettingsModelPatterns on HomeSettingsModel { @optionalTypeArgs TResult when( - TResult Function(Set screenLayouts, Set layoutStates, HomeBanner homeBanner, - HomeCarouselSettings carouselSettings, HomeNextUp nextUp) + TResult Function( + Set screenLayouts, + Set layoutStates, + HomeBanner homeBanner, + HomeCarouselSettings carouselSettings, + HomeNextUp nextUp) $default, ) { final _that = this; switch (_that) { case _HomeSettingsModel(): - return $default( - _that.screenLayouts, _that.layoutStates, _that.homeBanner, _that.carouselSettings, _that.nextUp); + return $default(_that.screenLayouts, _that.layoutStates, + _that.homeBanner, _that.carouselSettings, _that.nextUp); case _: throw StateError('Unexpected subclass'); } @@ -243,15 +254,19 @@ extension HomeSettingsModelPatterns on HomeSettingsModel { @optionalTypeArgs TResult? whenOrNull( - TResult? Function(Set screenLayouts, Set layoutStates, HomeBanner homeBanner, - HomeCarouselSettings carouselSettings, HomeNextUp nextUp)? + TResult? Function( + Set screenLayouts, + Set layoutStates, + HomeBanner homeBanner, + HomeCarouselSettings carouselSettings, + HomeNextUp nextUp)? $default, ) { final _that = this; switch (_that) { case _HomeSettingsModel() when $default != null: - return $default( - _that.screenLayouts, _that.layoutStates, _that.homeBanner, _that.carouselSettings, _that.nextUp); + return $default(_that.screenLayouts, _that.layoutStates, + _that.homeBanner, _that.carouselSettings, _that.nextUp); case _: return null; } @@ -270,7 +285,8 @@ class _HomeSettingsModel extends HomeSettingsModel { : _screenLayouts = screenLayouts, _layoutStates = layoutStates, super._(); - factory _HomeSettingsModel.fromJson(Map json) => _$HomeSettingsModelFromJson(json); + factory _HomeSettingsModel.fromJson(Map json) => + _$HomeSettingsModelFromJson(json); final Set _screenLayouts; @override @@ -322,8 +338,10 @@ class _HomeSettingsModel extends HomeSettingsModel { } /// @nodoc -abstract mixin class _$HomeSettingsModelCopyWith<$Res> implements $HomeSettingsModelCopyWith<$Res> { - factory _$HomeSettingsModelCopyWith(_HomeSettingsModel value, $Res Function(_HomeSettingsModel) _then) = +abstract mixin class _$HomeSettingsModelCopyWith<$Res> + implements $HomeSettingsModelCopyWith<$Res> { + factory _$HomeSettingsModelCopyWith( + _HomeSettingsModel value, $Res Function(_HomeSettingsModel) _then) = __$HomeSettingsModelCopyWithImpl; @override @useResult @@ -336,7 +354,8 @@ abstract mixin class _$HomeSettingsModelCopyWith<$Res> implements $HomeSettingsM } /// @nodoc -class __$HomeSettingsModelCopyWithImpl<$Res> implements _$HomeSettingsModelCopyWith<$Res> { +class __$HomeSettingsModelCopyWithImpl<$Res> + implements _$HomeSettingsModelCopyWith<$Res> { __$HomeSettingsModelCopyWithImpl(this._self, this._then); final _HomeSettingsModel _self; diff --git a/lib/models/settings/home_settings_model.g.dart b/lib/models/settings/home_settings_model.g.dart index d1b0d43af..734ba4f0d 100644 --- a/lib/models/settings/home_settings_model.g.dart +++ b/lib/models/settings/home_settings_model.g.dart @@ -6,23 +6,35 @@ part of 'home_settings_model.dart'; // JsonSerializableGenerator // ************************************************************************** -_HomeSettingsModel _$HomeSettingsModelFromJson(Map json) => _HomeSettingsModel( - screenLayouts: - (json['screenLayouts'] as List?)?.map((e) => $enumDecode(_$LayoutModeEnumMap, e)).toSet() ?? - const {...LayoutMode.values}, - layoutStates: (json['layoutStates'] as List?)?.map((e) => $enumDecode(_$ViewSizeEnumMap, e)).toSet() ?? +_HomeSettingsModel _$HomeSettingsModelFromJson(Map json) => + _HomeSettingsModel( + screenLayouts: (json['screenLayouts'] as List?) + ?.map((e) => $enumDecode(_$LayoutModeEnumMap, e)) + .toSet() ?? + const {...LayoutMode.values}, + layoutStates: (json['layoutStates'] as List?) + ?.map((e) => $enumDecode(_$ViewSizeEnumMap, e)) + .toSet() ?? const {...ViewSize.values}, - homeBanner: $enumDecodeNullable(_$HomeBannerEnumMap, json['homeBanner']) ?? HomeBanner.carousel, - carouselSettings: - $enumDecodeNullable(_$HomeCarouselSettingsEnumMap, json['carouselSettings']) ?? HomeCarouselSettings.combined, - nextUp: $enumDecodeNullable(_$HomeNextUpEnumMap, json['nextUp']) ?? HomeNextUp.separate, + homeBanner: + $enumDecodeNullable(_$HomeBannerEnumMap, json['homeBanner']) ?? + HomeBanner.carousel, + carouselSettings: $enumDecodeNullable( + _$HomeCarouselSettingsEnumMap, json['carouselSettings']) ?? + HomeCarouselSettings.combined, + nextUp: $enumDecodeNullable(_$HomeNextUpEnumMap, json['nextUp']) ?? + HomeNextUp.separate, ); -Map _$HomeSettingsModelToJson(_HomeSettingsModel instance) => { - 'screenLayouts': instance.screenLayouts.map((e) => _$LayoutModeEnumMap[e]!).toList(), - 'layoutStates': instance.layoutStates.map((e) => _$ViewSizeEnumMap[e]!).toList(), +Map _$HomeSettingsModelToJson(_HomeSettingsModel instance) => + { + 'screenLayouts': + instance.screenLayouts.map((e) => _$LayoutModeEnumMap[e]!).toList(), + 'layoutStates': + instance.layoutStates.map((e) => _$ViewSizeEnumMap[e]!).toList(), 'homeBanner': _$HomeBannerEnumMap[instance.homeBanner]!, - 'carouselSettings': _$HomeCarouselSettingsEnumMap[instance.carouselSettings]!, + 'carouselSettings': + _$HomeCarouselSettingsEnumMap[instance.carouselSettings]!, 'nextUp': _$HomeNextUpEnumMap[instance.nextUp]!, }; diff --git a/lib/models/settings/key_combinations.freezed.dart b/lib/models/settings/key_combinations.freezed.dart index 91a70228d..48ae91d9b 100644 --- a/lib/models/settings/key_combinations.freezed.dart +++ b/lib/models/settings/key_combinations.freezed.dart @@ -28,7 +28,8 @@ mixin _$KeyCombination { @JsonKey(includeFromJson: false, includeToJson: false) @pragma('vm:prefer-inline') $KeyCombinationCopyWith get copyWith => - _$KeyCombinationCopyWithImpl(this as KeyCombination, _$identity); + _$KeyCombinationCopyWithImpl( + this as KeyCombination, _$identity); /// Serializes this KeyCombination to a JSON map. Map toJson(); @@ -41,7 +42,8 @@ mixin _$KeyCombination { /// @nodoc abstract mixin class $KeyCombinationCopyWith<$Res> { - factory $KeyCombinationCopyWith(KeyCombination value, $Res Function(KeyCombination) _then) = + factory $KeyCombinationCopyWith( + KeyCombination value, $Res Function(KeyCombination) _then) = _$KeyCombinationCopyWithImpl; @useResult $Res call( @@ -52,7 +54,8 @@ abstract mixin class $KeyCombinationCopyWith<$Res> { } /// @nodoc -class _$KeyCombinationCopyWithImpl<$Res> implements $KeyCombinationCopyWith<$Res> { +class _$KeyCombinationCopyWithImpl<$Res> + implements $KeyCombinationCopyWith<$Res> { _$KeyCombinationCopyWithImpl(this._self, this._then); final KeyCombination _self; @@ -193,7 +196,8 @@ extension KeyCombinationPatterns on KeyCombination { final _that = this; switch (_that) { case _KeyCombination() when $default != null: - return $default(_that.key, _that.modifier, _that.altKey, _that.altModifier); + return $default( + _that.key, _that.modifier, _that.altKey, _that.altModifier); case _: return orElse(); } @@ -224,7 +228,8 @@ extension KeyCombinationPatterns on KeyCombination { final _that = this; switch (_that) { case _KeyCombination(): - return $default(_that.key, _that.modifier, _that.altKey, _that.altModifier); + return $default( + _that.key, _that.modifier, _that.altKey, _that.altModifier); case _: throw StateError('Unexpected subclass'); } @@ -254,7 +259,8 @@ extension KeyCombinationPatterns on KeyCombination { final _that = this; switch (_that) { case _KeyCombination() when $default != null: - return $default(_that.key, _that.modifier, _that.altKey, _that.altModifier); + return $default( + _that.key, _that.modifier, _that.altKey, _that.altModifier); case _: return null; } @@ -270,7 +276,8 @@ class _KeyCombination extends KeyCombination { @LogicalKeyboardSerializer() this.altKey, @LogicalKeyboardSerializer() this.altModifier}) : super._(); - factory _KeyCombination.fromJson(Map json) => _$KeyCombinationFromJson(json); + factory _KeyCombination.fromJson(Map json) => + _$KeyCombinationFromJson(json); @override @LogicalKeyboardSerializer() @@ -307,8 +314,10 @@ class _KeyCombination extends KeyCombination { } /// @nodoc -abstract mixin class _$KeyCombinationCopyWith<$Res> implements $KeyCombinationCopyWith<$Res> { - factory _$KeyCombinationCopyWith(_KeyCombination value, $Res Function(_KeyCombination) _then) = +abstract mixin class _$KeyCombinationCopyWith<$Res> + implements $KeyCombinationCopyWith<$Res> { + factory _$KeyCombinationCopyWith( + _KeyCombination value, $Res Function(_KeyCombination) _then) = __$KeyCombinationCopyWithImpl; @override @useResult @@ -320,7 +329,8 @@ abstract mixin class _$KeyCombinationCopyWith<$Res> implements $KeyCombinationCo } /// @nodoc -class __$KeyCombinationCopyWithImpl<$Res> implements _$KeyCombinationCopyWith<$Res> { +class __$KeyCombinationCopyWithImpl<$Res> + implements _$KeyCombinationCopyWith<$Res> { __$KeyCombinationCopyWithImpl(this._self, this._then); final _KeyCombination _self; diff --git a/lib/models/settings/key_combinations.g.dart b/lib/models/settings/key_combinations.g.dart index ec302cc4c..45e5712b1 100644 --- a/lib/models/settings/key_combinations.g.dart +++ b/lib/models/settings/key_combinations.g.dart @@ -6,8 +6,10 @@ part of 'key_combinations.dart'; // JsonSerializableGenerator // ************************************************************************** -_KeyCombination _$KeyCombinationFromJson(Map json) => _KeyCombination( - key: _$JsonConverterFromJson(json['key'], const LogicalKeyboardSerializer().fromJson), +_KeyCombination _$KeyCombinationFromJson(Map json) => + _KeyCombination( + key: _$JsonConverterFromJson( + json['key'], const LogicalKeyboardSerializer().fromJson), modifier: _$JsonConverterFromJson( json['modifier'], const LogicalKeyboardSerializer().fromJson), altKey: _$JsonConverterFromJson( @@ -16,12 +18,14 @@ _KeyCombination _$KeyCombinationFromJson(Map json) => _KeyCombi json['altModifier'], const LogicalKeyboardSerializer().fromJson), ); -Map _$KeyCombinationToJson(_KeyCombination instance) => { - 'key': _$JsonConverterToJson(instance.key, const LogicalKeyboardSerializer().toJson), +Map _$KeyCombinationToJson(_KeyCombination instance) => + { + 'key': _$JsonConverterToJson( + instance.key, const LogicalKeyboardSerializer().toJson), 'modifier': _$JsonConverterToJson( instance.modifier, const LogicalKeyboardSerializer().toJson), - 'altKey': - _$JsonConverterToJson(instance.altKey, const LogicalKeyboardSerializer().toJson), + 'altKey': _$JsonConverterToJson( + instance.altKey, const LogicalKeyboardSerializer().toJson), 'altModifier': _$JsonConverterToJson( instance.altModifier, const LogicalKeyboardSerializer().toJson), }; diff --git a/lib/models/settings/video_player_settings.freezed.dart b/lib/models/settings/video_player_settings.freezed.dart index 5e8eb09d1..ef65e7386 100644 --- a/lib/models/settings/video_player_settings.freezed.dart +++ b/lib/models/settings/video_player_settings.freezed.dart @@ -41,7 +41,8 @@ mixin _$VideoPlayerSettingsModel implements DiagnosticableTreeMixin { @JsonKey(includeFromJson: false, includeToJson: false) @pragma('vm:prefer-inline') $VideoPlayerSettingsModelCopyWith get copyWith => - _$VideoPlayerSettingsModelCopyWithImpl(this as VideoPlayerSettingsModel, _$identity); + _$VideoPlayerSettingsModelCopyWithImpl( + this as VideoPlayerSettingsModel, _$identity); /// Serializes this VideoPlayerSettingsModel to a JSON map. Map toJson(); @@ -82,8 +83,8 @@ mixin _$VideoPlayerSettingsModel implements DiagnosticableTreeMixin { /// @nodoc abstract mixin class $VideoPlayerSettingsModelCopyWith<$Res> { - factory $VideoPlayerSettingsModelCopyWith( - VideoPlayerSettingsModel value, $Res Function(VideoPlayerSettingsModel) _then) = + factory $VideoPlayerSettingsModelCopyWith(VideoPlayerSettingsModel value, + $Res Function(VideoPlayerSettingsModel) _then) = _$VideoPlayerSettingsModelCopyWithImpl; @useResult $Res call( @@ -111,7 +112,8 @@ abstract mixin class $VideoPlayerSettingsModelCopyWith<$Res> { } /// @nodoc -class _$VideoPlayerSettingsModelCopyWithImpl<$Res> implements $VideoPlayerSettingsModelCopyWith<$Res> { +class _$VideoPlayerSettingsModelCopyWithImpl<$Res> + implements $VideoPlayerSettingsModelCopyWith<$Res> { _$VideoPlayerSettingsModelCopyWithImpl(this._self, this._then); final VideoPlayerSettingsModel _self; @@ -521,7 +523,8 @@ extension VideoPlayerSettingsModelPatterns on VideoPlayerSettingsModel { /// @nodoc @JsonSerializable() -class _VideoPlayerSettingsModel extends VideoPlayerSettingsModel with DiagnosticableTreeMixin { +class _VideoPlayerSettingsModel extends VideoPlayerSettingsModel + with DiagnosticableTreeMixin { _VideoPlayerSettingsModel( {this.screenBrightness, this.videoFit = BoxFit.contain, @@ -537,7 +540,8 @@ class _VideoPlayerSettingsModel extends VideoPlayerSettingsModel with Diagnostic this.maxHomeBitrate = Bitrate.original, this.maxInternetBitrate = Bitrate.original, this.audioDevice, - final Map segmentSkipSettings = defaultSegmentSkipValues, + final Map segmentSkipSettings = + defaultSegmentSkipValues, final Map hotKeys = const {}, this.screensaver = Screensaver.logo, this.enableSpeedBoost = false, @@ -548,7 +552,8 @@ class _VideoPlayerSettingsModel extends VideoPlayerSettingsModel with Diagnostic _segmentSkipSettings = segmentSkipSettings, _hotKeys = hotKeys, super._(); - factory _VideoPlayerSettingsModel.fromJson(Map json) => _$VideoPlayerSettingsModelFromJson(json); + factory _VideoPlayerSettingsModel.fromJson(Map json) => + _$VideoPlayerSettingsModelFromJson(json); @override final double? screenBrightness; @@ -580,7 +585,8 @@ class _VideoPlayerSettingsModel extends VideoPlayerSettingsModel with Diagnostic Set? get allowedOrientations { final value = _allowedOrientations; if (value == null) return null; - if (_allowedOrientations is EqualUnmodifiableSetView) return _allowedOrientations; + if (_allowedOrientations is EqualUnmodifiableSetView) + return _allowedOrientations; // ignore: implicit_dynamic_type return EqualUnmodifiableSetView(value); } @@ -600,7 +606,8 @@ class _VideoPlayerSettingsModel extends VideoPlayerSettingsModel with Diagnostic @override @JsonKey() Map get segmentSkipSettings { - if (_segmentSkipSettings is EqualUnmodifiableMapView) return _segmentSkipSettings; + if (_segmentSkipSettings is EqualUnmodifiableMapView) + return _segmentSkipSettings; // ignore: implicit_dynamic_type return EqualUnmodifiableMapView(_segmentSkipSettings); } @@ -636,7 +643,8 @@ class _VideoPlayerSettingsModel extends VideoPlayerSettingsModel with Diagnostic @JsonKey(includeFromJson: false, includeToJson: false) @pragma('vm:prefer-inline') _$VideoPlayerSettingsModelCopyWith<_VideoPlayerSettingsModel> get copyWith => - __$VideoPlayerSettingsModelCopyWithImpl<_VideoPlayerSettingsModel>(this, _$identity); + __$VideoPlayerSettingsModelCopyWithImpl<_VideoPlayerSettingsModel>( + this, _$identity); @override Map toJson() { @@ -680,9 +688,10 @@ class _VideoPlayerSettingsModel extends VideoPlayerSettingsModel with Diagnostic } /// @nodoc -abstract mixin class _$VideoPlayerSettingsModelCopyWith<$Res> implements $VideoPlayerSettingsModelCopyWith<$Res> { - factory _$VideoPlayerSettingsModelCopyWith( - _VideoPlayerSettingsModel value, $Res Function(_VideoPlayerSettingsModel) _then) = +abstract mixin class _$VideoPlayerSettingsModelCopyWith<$Res> + implements $VideoPlayerSettingsModelCopyWith<$Res> { + factory _$VideoPlayerSettingsModelCopyWith(_VideoPlayerSettingsModel value, + $Res Function(_VideoPlayerSettingsModel) _then) = __$VideoPlayerSettingsModelCopyWithImpl; @override @useResult @@ -711,7 +720,8 @@ abstract mixin class _$VideoPlayerSettingsModelCopyWith<$Res> implements $VideoP } /// @nodoc -class __$VideoPlayerSettingsModelCopyWithImpl<$Res> implements _$VideoPlayerSettingsModelCopyWith<$Res> { +class __$VideoPlayerSettingsModelCopyWithImpl<$Res> + implements _$VideoPlayerSettingsModelCopyWith<$Res> { __$VideoPlayerSettingsModelCopyWithImpl(this._self, this._then); final _VideoPlayerSettingsModel _self; diff --git a/lib/models/settings/video_player_settings.g.dart b/lib/models/settings/video_player_settings.g.dart index 5c2dd140f..0b4547e8d 100644 --- a/lib/models/settings/video_player_settings.g.dart +++ b/lib/models/settings/video_player_settings.g.dart @@ -6,33 +6,47 @@ part of 'video_player_settings.dart'; // JsonSerializableGenerator // ************************************************************************** -_VideoPlayerSettingsModel _$VideoPlayerSettingsModelFromJson(Map json) => _VideoPlayerSettingsModel( +_VideoPlayerSettingsModel _$VideoPlayerSettingsModelFromJson( + Map json) => + _VideoPlayerSettingsModel( screenBrightness: (json['screenBrightness'] as num?)?.toDouble(), - videoFit: $enumDecodeNullable(_$BoxFitEnumMap, json['videoFit']) ?? BoxFit.contain, + videoFit: $enumDecodeNullable(_$BoxFitEnumMap, json['videoFit']) ?? + BoxFit.contain, fillScreen: json['fillScreen'] as bool? ?? false, hardwareAccel: json['hardwareAccel'] as bool? ?? true, useLibass: json['useLibass'] as bool? ?? false, enableTunneling: json['enableTunneling'] as bool? ?? false, bufferSize: (json['bufferSize'] as num?)?.toInt() ?? 32, - playerOptions: $enumDecodeNullable(_$PlayerOptionsEnumMap, json['playerOptions']), + playerOptions: + $enumDecodeNullable(_$PlayerOptionsEnumMap, json['playerOptions']), internalVolume: (json['internalVolume'] as num?)?.toDouble() ?? 100, allowedOrientations: (json['allowedOrientations'] as List?) ?.map((e) => $enumDecode(_$DeviceOrientationEnumMap, e)) .toSet(), - nextVideoType: $enumDecodeNullable(_$AutoNextTypeEnumMap, json['nextVideoType']) ?? AutoNextType.smart, - maxHomeBitrate: $enumDecodeNullable(_$BitrateEnumMap, json['maxHomeBitrate']) ?? Bitrate.original, - maxInternetBitrate: $enumDecodeNullable(_$BitrateEnumMap, json['maxInternetBitrate']) ?? Bitrate.original, + nextVideoType: + $enumDecodeNullable(_$AutoNextTypeEnumMap, json['nextVideoType']) ?? + AutoNextType.smart, + maxHomeBitrate: + $enumDecodeNullable(_$BitrateEnumMap, json['maxHomeBitrate']) ?? + Bitrate.original, + maxInternetBitrate: + $enumDecodeNullable(_$BitrateEnumMap, json['maxInternetBitrate']) ?? + Bitrate.original, audioDevice: json['audioDevice'] as String?, - segmentSkipSettings: (json['segmentSkipSettings'] as Map?)?.map( - (k, e) => MapEntry($enumDecode(_$MediaSegmentTypeEnumMap, k), $enumDecode(_$SegmentSkipEnumMap, e)), - ) ?? - defaultSegmentSkipValues, + segmentSkipSettings: + (json['segmentSkipSettings'] as Map?)?.map( + (k, e) => MapEntry($enumDecode(_$MediaSegmentTypeEnumMap, k), + $enumDecode(_$SegmentSkipEnumMap, e)), + ) ?? + defaultSegmentSkipValues, hotKeys: (json['hotKeys'] as Map?)?.map( - (k, e) => - MapEntry($enumDecode(_$VideoHotKeysEnumMap, k), KeyCombination.fromJson(e as Map)), + (k, e) => MapEntry($enumDecode(_$VideoHotKeysEnumMap, k), + KeyCombination.fromJson(e as Map)), ) ?? const {}, - screensaver: $enumDecodeNullable(_$ScreensaverEnumMap, json['screensaver']) ?? Screensaver.logo, + screensaver: + $enumDecodeNullable(_$ScreensaverEnumMap, json['screensaver']) ?? + Screensaver.logo, enableSpeedBoost: json['enableSpeedBoost'] as bool? ?? false, speedBoostRate: (json['speedBoostRate'] as num?)?.toDouble() ?? 2.0, enableDoubleTapSeek: json['enableDoubleTapSeek'] as bool? ?? true, @@ -40,7 +54,9 @@ _VideoPlayerSettingsModel _$VideoPlayerSettingsModelFromJson(Map _$VideoPlayerSettingsModelToJson(_VideoPlayerSettingsModel instance) => { +Map _$VideoPlayerSettingsModelToJson( + _VideoPlayerSettingsModel instance) => + { 'screenBrightness': instance.screenBrightness, 'videoFit': _$BoxFitEnumMap[instance.videoFit]!, 'fillScreen': instance.fillScreen, @@ -50,14 +66,17 @@ Map _$VideoPlayerSettingsModelToJson(_VideoPlayerSettingsModel 'bufferSize': instance.bufferSize, 'playerOptions': _$PlayerOptionsEnumMap[instance.playerOptions], 'internalVolume': instance.internalVolume, - 'allowedOrientations': instance.allowedOrientations?.map((e) => _$DeviceOrientationEnumMap[e]!).toList(), + 'allowedOrientations': instance.allowedOrientations + ?.map((e) => _$DeviceOrientationEnumMap[e]!) + .toList(), 'nextVideoType': _$AutoNextTypeEnumMap[instance.nextVideoType]!, 'maxHomeBitrate': _$BitrateEnumMap[instance.maxHomeBitrate]!, 'maxInternetBitrate': _$BitrateEnumMap[instance.maxInternetBitrate]!, 'audioDevice': instance.audioDevice, - 'segmentSkipSettings': - instance.segmentSkipSettings.map((k, e) => MapEntry(_$MediaSegmentTypeEnumMap[k]!, _$SegmentSkipEnumMap[e]!)), - 'hotKeys': instance.hotKeys.map((k, e) => MapEntry(_$VideoHotKeysEnumMap[k]!, e)), + 'segmentSkipSettings': instance.segmentSkipSettings.map((k, e) => + MapEntry(_$MediaSegmentTypeEnumMap[k]!, _$SegmentSkipEnumMap[e]!)), + 'hotKeys': instance.hotKeys + .map((k, e) => MapEntry(_$VideoHotKeysEnumMap[k]!, e)), 'screensaver': _$ScreensaverEnumMap[instance.screensaver]!, 'enableSpeedBoost': instance.enableSpeedBoost, 'speedBoostRate': instance.speedBoostRate, diff --git a/lib/models/syncing/database_item.g.dart b/lib/models/syncing/database_item.g.dart index 91331fbe5..8570d7c93 100644 --- a/lib/models/syncing/database_item.g.dart +++ b/lib/models/syncing/database_item.g.dart @@ -3,85 +3,114 @@ part of 'database_item.dart'; // ignore_for_file: type=lint -class $DatabaseItemsTable extends DatabaseItems with TableInfo<$DatabaseItemsTable, DatabaseItem> { +class $DatabaseItemsTable extends DatabaseItems + with TableInfo<$DatabaseItemsTable, DatabaseItem> { @override final GeneratedDatabase attachedDatabase; final String? _alias; $DatabaseItemsTable(this.attachedDatabase, [this._alias]); static const VerificationMeta _userIdMeta = const VerificationMeta('userId'); @override - late final GeneratedColumn userId = GeneratedColumn('user_id', aliasedName, false, - additionalChecks: GeneratedColumn.checkTextLength( - minTextLength: 1, - ), - type: DriftSqlType.string, - requiredDuringInsert: true); + late final GeneratedColumn userId = + GeneratedColumn('user_id', aliasedName, false, + additionalChecks: GeneratedColumn.checkTextLength( + minTextLength: 1, + ), + type: DriftSqlType.string, + requiredDuringInsert: true); static const VerificationMeta _idMeta = const VerificationMeta('id'); @override - late final GeneratedColumn id = GeneratedColumn('id', aliasedName, false, - additionalChecks: GeneratedColumn.checkTextLength( - minTextLength: 1, - ), - type: DriftSqlType.string, - requiredDuringInsert: true); - static const VerificationMeta _syncingMeta = const VerificationMeta('syncing'); + late final GeneratedColumn id = + GeneratedColumn('id', aliasedName, false, + additionalChecks: GeneratedColumn.checkTextLength( + minTextLength: 1, + ), + type: DriftSqlType.string, + requiredDuringInsert: true); + static const VerificationMeta _syncingMeta = + const VerificationMeta('syncing'); @override - late final GeneratedColumn syncing = GeneratedColumn('syncing', aliasedName, false, + late final GeneratedColumn syncing = GeneratedColumn( + 'syncing', aliasedName, false, type: DriftSqlType.bool, requiredDuringInsert: false, - defaultConstraints: GeneratedColumn.constraintIsAlways('CHECK ("syncing" IN (0, 1))'), + defaultConstraints: + GeneratedColumn.constraintIsAlways('CHECK ("syncing" IN (0, 1))'), defaultValue: const Constant(false)); - static const VerificationMeta _sortNameMeta = const VerificationMeta('sortName'); + static const VerificationMeta _sortNameMeta = + const VerificationMeta('sortName'); @override - late final GeneratedColumn sortName = - GeneratedColumn('sort_name', aliasedName, true, type: DriftSqlType.string, requiredDuringInsert: false); - static const VerificationMeta _parentIdMeta = const VerificationMeta('parentId'); + late final GeneratedColumn sortName = GeneratedColumn( + 'sort_name', aliasedName, true, + type: DriftSqlType.string, requiredDuringInsert: false); + static const VerificationMeta _parentIdMeta = + const VerificationMeta('parentId'); @override - late final GeneratedColumn parentId = - GeneratedColumn('parent_id', aliasedName, true, type: DriftSqlType.string, requiredDuringInsert: false); + late final GeneratedColumn parentId = GeneratedColumn( + 'parent_id', aliasedName, true, + type: DriftSqlType.string, requiredDuringInsert: false); static const VerificationMeta _pathMeta = const VerificationMeta('path'); @override - late final GeneratedColumn path = - GeneratedColumn('path', aliasedName, true, type: DriftSqlType.string, requiredDuringInsert: false); - static const VerificationMeta _fileSizeMeta = const VerificationMeta('fileSize'); + late final GeneratedColumn path = GeneratedColumn( + 'path', aliasedName, true, + type: DriftSqlType.string, requiredDuringInsert: false); + static const VerificationMeta _fileSizeMeta = + const VerificationMeta('fileSize'); @override - late final GeneratedColumn fileSize = - GeneratedColumn('file_size', aliasedName, true, type: DriftSqlType.int, requiredDuringInsert: false); - static const VerificationMeta _videoFileNameMeta = const VerificationMeta('videoFileName'); + late final GeneratedColumn fileSize = GeneratedColumn( + 'file_size', aliasedName, true, + type: DriftSqlType.int, requiredDuringInsert: false); + static const VerificationMeta _videoFileNameMeta = + const VerificationMeta('videoFileName'); @override - late final GeneratedColumn videoFileName = GeneratedColumn('video_file_name', aliasedName, true, + late final GeneratedColumn videoFileName = GeneratedColumn( + 'video_file_name', aliasedName, true, type: DriftSqlType.string, requiredDuringInsert: false); - static const VerificationMeta _trickPlayModelMeta = const VerificationMeta('trickPlayModel'); + static const VerificationMeta _trickPlayModelMeta = + const VerificationMeta('trickPlayModel'); @override - late final GeneratedColumn trickPlayModel = GeneratedColumn('trick_play_model', aliasedName, true, + late final GeneratedColumn trickPlayModel = GeneratedColumn( + 'trick_play_model', aliasedName, true, type: DriftSqlType.string, requiredDuringInsert: false); - static const VerificationMeta _mediaSegmentsMeta = const VerificationMeta('mediaSegments'); + static const VerificationMeta _mediaSegmentsMeta = + const VerificationMeta('mediaSegments'); @override - late final GeneratedColumn mediaSegments = GeneratedColumn('media_segments', aliasedName, true, + late final GeneratedColumn mediaSegments = GeneratedColumn( + 'media_segments', aliasedName, true, type: DriftSqlType.string, requiredDuringInsert: false); static const VerificationMeta _imagesMeta = const VerificationMeta('images'); @override - late final GeneratedColumn images = - GeneratedColumn('images', aliasedName, true, type: DriftSqlType.string, requiredDuringInsert: false); - static const VerificationMeta _chaptersMeta = const VerificationMeta('chapters'); + late final GeneratedColumn images = GeneratedColumn( + 'images', aliasedName, true, + type: DriftSqlType.string, requiredDuringInsert: false); + static const VerificationMeta _chaptersMeta = + const VerificationMeta('chapters'); @override - late final GeneratedColumn chapters = - GeneratedColumn('chapters', aliasedName, true, type: DriftSqlType.string, requiredDuringInsert: false); - static const VerificationMeta _subtitlesMeta = const VerificationMeta('subtitles'); + late final GeneratedColumn chapters = GeneratedColumn( + 'chapters', aliasedName, true, + type: DriftSqlType.string, requiredDuringInsert: false); + static const VerificationMeta _subtitlesMeta = + const VerificationMeta('subtitles'); @override - late final GeneratedColumn subtitles = - GeneratedColumn('subtitles', aliasedName, true, type: DriftSqlType.string, requiredDuringInsert: false); - static const VerificationMeta _unSyncedDataMeta = const VerificationMeta('unSyncedData'); + late final GeneratedColumn subtitles = GeneratedColumn( + 'subtitles', aliasedName, true, + type: DriftSqlType.string, requiredDuringInsert: false); + static const VerificationMeta _unSyncedDataMeta = + const VerificationMeta('unSyncedData'); @override - late final GeneratedColumn unSyncedData = GeneratedColumn('un_synced_data', aliasedName, false, + late final GeneratedColumn unSyncedData = GeneratedColumn( + 'un_synced_data', aliasedName, false, type: DriftSqlType.bool, requiredDuringInsert: false, - defaultConstraints: GeneratedColumn.constraintIsAlways('CHECK ("un_synced_data" IN (0, 1))'), + defaultConstraints: GeneratedColumn.constraintIsAlways( + 'CHECK ("un_synced_data" IN (0, 1))'), defaultValue: const Constant(false)); - static const VerificationMeta _userDataMeta = const VerificationMeta('userData'); + static const VerificationMeta _userDataMeta = + const VerificationMeta('userData'); @override - late final GeneratedColumn userData = - GeneratedColumn('user_data', aliasedName, true, type: DriftSqlType.string, requiredDuringInsert: false); + late final GeneratedColumn userData = GeneratedColumn( + 'user_data', aliasedName, true, + type: DriftSqlType.string, requiredDuringInsert: false); @override List get $columns => [ userId, @@ -106,11 +135,13 @@ class $DatabaseItemsTable extends DatabaseItems with TableInfo<$DatabaseItemsTab String get actualTableName => $name; static const String $name = 'database_items'; @override - VerificationContext validateIntegrity(Insertable instance, {bool isInserting = false}) { + VerificationContext validateIntegrity(Insertable instance, + {bool isInserting = false}) { final context = VerificationContext(); final data = instance.toColumns(true); if (data.containsKey('user_id')) { - context.handle(_userIdMeta, userId.isAcceptableOrUnknown(data['user_id']!, _userIdMeta)); + context.handle(_userIdMeta, + userId.isAcceptableOrUnknown(data['user_id']!, _userIdMeta)); } else if (isInserting) { context.missing(_userIdMeta); } @@ -120,46 +151,64 @@ class $DatabaseItemsTable extends DatabaseItems with TableInfo<$DatabaseItemsTab context.missing(_idMeta); } if (data.containsKey('syncing')) { - context.handle(_syncingMeta, syncing.isAcceptableOrUnknown(data['syncing']!, _syncingMeta)); + context.handle(_syncingMeta, + syncing.isAcceptableOrUnknown(data['syncing']!, _syncingMeta)); } if (data.containsKey('sort_name')) { - context.handle(_sortNameMeta, sortName.isAcceptableOrUnknown(data['sort_name']!, _sortNameMeta)); + context.handle(_sortNameMeta, + sortName.isAcceptableOrUnknown(data['sort_name']!, _sortNameMeta)); } if (data.containsKey('parent_id')) { - context.handle(_parentIdMeta, parentId.isAcceptableOrUnknown(data['parent_id']!, _parentIdMeta)); + context.handle(_parentIdMeta, + parentId.isAcceptableOrUnknown(data['parent_id']!, _parentIdMeta)); } if (data.containsKey('path')) { - context.handle(_pathMeta, path.isAcceptableOrUnknown(data['path']!, _pathMeta)); + context.handle( + _pathMeta, path.isAcceptableOrUnknown(data['path']!, _pathMeta)); } if (data.containsKey('file_size')) { - context.handle(_fileSizeMeta, fileSize.isAcceptableOrUnknown(data['file_size']!, _fileSizeMeta)); + context.handle(_fileSizeMeta, + fileSize.isAcceptableOrUnknown(data['file_size']!, _fileSizeMeta)); } if (data.containsKey('video_file_name')) { context.handle( - _videoFileNameMeta, videoFileName.isAcceptableOrUnknown(data['video_file_name']!, _videoFileNameMeta)); + _videoFileNameMeta, + videoFileName.isAcceptableOrUnknown( + data['video_file_name']!, _videoFileNameMeta)); } if (data.containsKey('trick_play_model')) { context.handle( - _trickPlayModelMeta, trickPlayModel.isAcceptableOrUnknown(data['trick_play_model']!, _trickPlayModelMeta)); + _trickPlayModelMeta, + trickPlayModel.isAcceptableOrUnknown( + data['trick_play_model']!, _trickPlayModelMeta)); } if (data.containsKey('media_segments')) { context.handle( - _mediaSegmentsMeta, mediaSegments.isAcceptableOrUnknown(data['media_segments']!, _mediaSegmentsMeta)); + _mediaSegmentsMeta, + mediaSegments.isAcceptableOrUnknown( + data['media_segments']!, _mediaSegmentsMeta)); } if (data.containsKey('images')) { - context.handle(_imagesMeta, images.isAcceptableOrUnknown(data['images']!, _imagesMeta)); + context.handle(_imagesMeta, + images.isAcceptableOrUnknown(data['images']!, _imagesMeta)); } if (data.containsKey('chapters')) { - context.handle(_chaptersMeta, chapters.isAcceptableOrUnknown(data['chapters']!, _chaptersMeta)); + context.handle(_chaptersMeta, + chapters.isAcceptableOrUnknown(data['chapters']!, _chaptersMeta)); } if (data.containsKey('subtitles')) { - context.handle(_subtitlesMeta, subtitles.isAcceptableOrUnknown(data['subtitles']!, _subtitlesMeta)); + context.handle(_subtitlesMeta, + subtitles.isAcceptableOrUnknown(data['subtitles']!, _subtitlesMeta)); } if (data.containsKey('un_synced_data')) { - context.handle(_unSyncedDataMeta, unSyncedData.isAcceptableOrUnknown(data['un_synced_data']!, _unSyncedDataMeta)); + context.handle( + _unSyncedDataMeta, + unSyncedData.isAcceptableOrUnknown( + data['un_synced_data']!, _unSyncedDataMeta)); } if (data.containsKey('user_data')) { - context.handle(_userDataMeta, userData.isAcceptableOrUnknown(data['user_data']!, _userDataMeta)); + context.handle(_userDataMeta, + userData.isAcceptableOrUnknown(data['user_data']!, _userDataMeta)); } return context; } @@ -170,22 +219,36 @@ class $DatabaseItemsTable extends DatabaseItems with TableInfo<$DatabaseItemsTab DatabaseItem map(Map data, {String? tablePrefix}) { final effectivePrefix = tablePrefix != null ? '$tablePrefix.' : ''; return DatabaseItem( - userId: attachedDatabase.typeMapping.read(DriftSqlType.string, data['${effectivePrefix}user_id'])!, - id: attachedDatabase.typeMapping.read(DriftSqlType.string, data['${effectivePrefix}id'])!, - syncing: attachedDatabase.typeMapping.read(DriftSqlType.bool, data['${effectivePrefix}syncing'])!, - sortName: attachedDatabase.typeMapping.read(DriftSqlType.string, data['${effectivePrefix}sort_name']), - parentId: attachedDatabase.typeMapping.read(DriftSqlType.string, data['${effectivePrefix}parent_id']), - path: attachedDatabase.typeMapping.read(DriftSqlType.string, data['${effectivePrefix}path']), - fileSize: attachedDatabase.typeMapping.read(DriftSqlType.int, data['${effectivePrefix}file_size']), - videoFileName: attachedDatabase.typeMapping.read(DriftSqlType.string, data['${effectivePrefix}video_file_name']), - trickPlayModel: - attachedDatabase.typeMapping.read(DriftSqlType.string, data['${effectivePrefix}trick_play_model']), - mediaSegments: attachedDatabase.typeMapping.read(DriftSqlType.string, data['${effectivePrefix}media_segments']), - images: attachedDatabase.typeMapping.read(DriftSqlType.string, data['${effectivePrefix}images']), - chapters: attachedDatabase.typeMapping.read(DriftSqlType.string, data['${effectivePrefix}chapters']), - subtitles: attachedDatabase.typeMapping.read(DriftSqlType.string, data['${effectivePrefix}subtitles']), - unSyncedData: attachedDatabase.typeMapping.read(DriftSqlType.bool, data['${effectivePrefix}un_synced_data'])!, - userData: attachedDatabase.typeMapping.read(DriftSqlType.string, data['${effectivePrefix}user_data']), + userId: attachedDatabase.typeMapping + .read(DriftSqlType.string, data['${effectivePrefix}user_id'])!, + id: attachedDatabase.typeMapping + .read(DriftSqlType.string, data['${effectivePrefix}id'])!, + syncing: attachedDatabase.typeMapping + .read(DriftSqlType.bool, data['${effectivePrefix}syncing'])!, + sortName: attachedDatabase.typeMapping + .read(DriftSqlType.string, data['${effectivePrefix}sort_name']), + parentId: attachedDatabase.typeMapping + .read(DriftSqlType.string, data['${effectivePrefix}parent_id']), + path: attachedDatabase.typeMapping + .read(DriftSqlType.string, data['${effectivePrefix}path']), + fileSize: attachedDatabase.typeMapping + .read(DriftSqlType.int, data['${effectivePrefix}file_size']), + videoFileName: attachedDatabase.typeMapping + .read(DriftSqlType.string, data['${effectivePrefix}video_file_name']), + trickPlayModel: attachedDatabase.typeMapping.read( + DriftSqlType.string, data['${effectivePrefix}trick_play_model']), + mediaSegments: attachedDatabase.typeMapping + .read(DriftSqlType.string, data['${effectivePrefix}media_segments']), + images: attachedDatabase.typeMapping + .read(DriftSqlType.string, data['${effectivePrefix}images']), + chapters: attachedDatabase.typeMapping + .read(DriftSqlType.string, data['${effectivePrefix}chapters']), + subtitles: attachedDatabase.typeMapping + .read(DriftSqlType.string, data['${effectivePrefix}subtitles']), + unSyncedData: attachedDatabase.typeMapping + .read(DriftSqlType.bool, data['${effectivePrefix}un_synced_data'])!, + userData: attachedDatabase.typeMapping + .read(DriftSqlType.string, data['${effectivePrefix}user_data']), ); } @@ -275,22 +338,42 @@ class DatabaseItem extends DataClass implements Insertable { userId: Value(userId), id: Value(id), syncing: Value(syncing), - sortName: sortName == null && nullToAbsent ? const Value.absent() : Value(sortName), - parentId: parentId == null && nullToAbsent ? const Value.absent() : Value(parentId), + sortName: sortName == null && nullToAbsent + ? const Value.absent() + : Value(sortName), + parentId: parentId == null && nullToAbsent + ? const Value.absent() + : Value(parentId), path: path == null && nullToAbsent ? const Value.absent() : Value(path), - fileSize: fileSize == null && nullToAbsent ? const Value.absent() : Value(fileSize), - videoFileName: videoFileName == null && nullToAbsent ? const Value.absent() : Value(videoFileName), - trickPlayModel: trickPlayModel == null && nullToAbsent ? const Value.absent() : Value(trickPlayModel), - mediaSegments: mediaSegments == null && nullToAbsent ? const Value.absent() : Value(mediaSegments), - images: images == null && nullToAbsent ? const Value.absent() : Value(images), - chapters: chapters == null && nullToAbsent ? const Value.absent() : Value(chapters), - subtitles: subtitles == null && nullToAbsent ? const Value.absent() : Value(subtitles), + fileSize: fileSize == null && nullToAbsent + ? const Value.absent() + : Value(fileSize), + videoFileName: videoFileName == null && nullToAbsent + ? const Value.absent() + : Value(videoFileName), + trickPlayModel: trickPlayModel == null && nullToAbsent + ? const Value.absent() + : Value(trickPlayModel), + mediaSegments: mediaSegments == null && nullToAbsent + ? const Value.absent() + : Value(mediaSegments), + images: + images == null && nullToAbsent ? const Value.absent() : Value(images), + chapters: chapters == null && nullToAbsent + ? const Value.absent() + : Value(chapters), + subtitles: subtitles == null && nullToAbsent + ? const Value.absent() + : Value(subtitles), unSyncedData: Value(unSyncedData), - userData: userData == null && nullToAbsent ? const Value.absent() : Value(userData), + userData: userData == null && nullToAbsent + ? const Value.absent() + : Value(userData), ); } - factory DatabaseItem.fromJson(Map json, {ValueSerializer? serializer}) { + factory DatabaseItem.fromJson(Map json, + {ValueSerializer? serializer}) { serializer ??= driftRuntimeOptions.defaultSerializer; return DatabaseItem( userId: serializer.fromJson(json['userId']), @@ -356,9 +439,12 @@ class DatabaseItem extends DataClass implements Insertable { parentId: parentId.present ? parentId.value : this.parentId, path: path.present ? path.value : this.path, fileSize: fileSize.present ? fileSize.value : this.fileSize, - videoFileName: videoFileName.present ? videoFileName.value : this.videoFileName, - trickPlayModel: trickPlayModel.present ? trickPlayModel.value : this.trickPlayModel, - mediaSegments: mediaSegments.present ? mediaSegments.value : this.mediaSegments, + videoFileName: + videoFileName.present ? videoFileName.value : this.videoFileName, + trickPlayModel: + trickPlayModel.present ? trickPlayModel.value : this.trickPlayModel, + mediaSegments: + mediaSegments.present ? mediaSegments.value : this.mediaSegments, images: images.present ? images.value : this.images, chapters: chapters.present ? chapters.value : this.chapters, subtitles: subtitles.present ? subtitles.value : this.subtitles, @@ -374,13 +460,21 @@ class DatabaseItem extends DataClass implements Insertable { parentId: data.parentId.present ? data.parentId.value : this.parentId, path: data.path.present ? data.path.value : this.path, fileSize: data.fileSize.present ? data.fileSize.value : this.fileSize, - videoFileName: data.videoFileName.present ? data.videoFileName.value : this.videoFileName, - trickPlayModel: data.trickPlayModel.present ? data.trickPlayModel.value : this.trickPlayModel, - mediaSegments: data.mediaSegments.present ? data.mediaSegments.value : this.mediaSegments, + videoFileName: data.videoFileName.present + ? data.videoFileName.value + : this.videoFileName, + trickPlayModel: data.trickPlayModel.present + ? data.trickPlayModel.value + : this.trickPlayModel, + mediaSegments: data.mediaSegments.present + ? data.mediaSegments.value + : this.mediaSegments, images: data.images.present ? data.images.value : this.images, chapters: data.chapters.present ? data.chapters.value : this.chapters, subtitles: data.subtitles.present ? data.subtitles.value : this.subtitles, - unSyncedData: data.unSyncedData.present ? data.unSyncedData.value : this.unSyncedData, + unSyncedData: data.unSyncedData.present + ? data.unSyncedData.value + : this.unSyncedData, userData: data.userData.present ? data.userData.value : this.userData, ); } @@ -408,8 +502,22 @@ class DatabaseItem extends DataClass implements Insertable { } @override - int get hashCode => Object.hash(userId, id, syncing, sortName, parentId, path, fileSize, videoFileName, - trickPlayModel, mediaSegments, images, chapters, subtitles, unSyncedData, userData); + int get hashCode => Object.hash( + userId, + id, + syncing, + sortName, + parentId, + path, + fileSize, + videoFileName, + trickPlayModel, + mediaSegments, + images, + chapters, + subtitles, + unSyncedData, + userData); @override bool operator ==(Object other) => identical(this, other) || @@ -642,14 +750,18 @@ abstract class _$AppDatabase extends GeneratedDatabase { _$AppDatabase(QueryExecutor e) : super(e); $AppDatabaseManager get managers => $AppDatabaseManager(this); late final $DatabaseItemsTable databaseItems = $DatabaseItemsTable(this); - late final Index databaseId = Index('database_id', 'CREATE INDEX database_id ON database_items (user_id, id)'); + late final Index databaseId = Index('database_id', + 'CREATE INDEX database_id ON database_items (user_id, id)'); @override - Iterable> get allTables => allSchemaEntities.whereType>(); + Iterable> get allTables => + allSchemaEntities.whereType>(); @override - List get allSchemaEntities => [databaseItems, databaseId]; + List get allSchemaEntities => + [databaseItems, databaseId]; } -typedef $$DatabaseItemsTableCreateCompanionBuilder = DatabaseItemsCompanion Function({ +typedef $$DatabaseItemsTableCreateCompanionBuilder = DatabaseItemsCompanion + Function({ required String userId, required String id, Value syncing, @@ -667,7 +779,8 @@ typedef $$DatabaseItemsTableCreateCompanionBuilder = DatabaseItemsCompanion Func Value userData, Value rowid, }); -typedef $$DatabaseItemsTableUpdateCompanionBuilder = DatabaseItemsCompanion Function({ +typedef $$DatabaseItemsTableUpdateCompanionBuilder = DatabaseItemsCompanion + Function({ Value userId, Value id, Value syncing, @@ -686,7 +799,8 @@ typedef $$DatabaseItemsTableUpdateCompanionBuilder = DatabaseItemsCompanion Func Value rowid, }); -class $$DatabaseItemsTableFilterComposer extends Composer<_$AppDatabase, $DatabaseItemsTable> { +class $$DatabaseItemsTableFilterComposer + extends Composer<_$AppDatabase, $DatabaseItemsTable> { $$DatabaseItemsTableFilterComposer({ required super.$db, required super.$table, @@ -694,51 +808,55 @@ class $$DatabaseItemsTableFilterComposer extends Composer<_$AppDatabase, $Databa super.$addJoinBuilderToRootComposer, super.$removeJoinBuilderFromRootComposer, }); - ColumnFilters get userId => - $composableBuilder(column: $table.userId, builder: (column) => ColumnFilters(column)); + ColumnFilters get userId => $composableBuilder( + column: $table.userId, builder: (column) => ColumnFilters(column)); - ColumnFilters get id => $composableBuilder(column: $table.id, builder: (column) => ColumnFilters(column)); + ColumnFilters get id => $composableBuilder( + column: $table.id, builder: (column) => ColumnFilters(column)); - ColumnFilters get syncing => - $composableBuilder(column: $table.syncing, builder: (column) => ColumnFilters(column)); + ColumnFilters get syncing => $composableBuilder( + column: $table.syncing, builder: (column) => ColumnFilters(column)); - ColumnFilters get sortName => - $composableBuilder(column: $table.sortName, builder: (column) => ColumnFilters(column)); + ColumnFilters get sortName => $composableBuilder( + column: $table.sortName, builder: (column) => ColumnFilters(column)); - ColumnFilters get parentId => - $composableBuilder(column: $table.parentId, builder: (column) => ColumnFilters(column)); + ColumnFilters get parentId => $composableBuilder( + column: $table.parentId, builder: (column) => ColumnFilters(column)); - ColumnFilters get path => $composableBuilder(column: $table.path, builder: (column) => ColumnFilters(column)); + ColumnFilters get path => $composableBuilder( + column: $table.path, builder: (column) => ColumnFilters(column)); - ColumnFilters get fileSize => - $composableBuilder(column: $table.fileSize, builder: (column) => ColumnFilters(column)); + ColumnFilters get fileSize => $composableBuilder( + column: $table.fileSize, builder: (column) => ColumnFilters(column)); - ColumnFilters get videoFileName => - $composableBuilder(column: $table.videoFileName, builder: (column) => ColumnFilters(column)); + ColumnFilters get videoFileName => $composableBuilder( + column: $table.videoFileName, builder: (column) => ColumnFilters(column)); - ColumnFilters get trickPlayModel => - $composableBuilder(column: $table.trickPlayModel, builder: (column) => ColumnFilters(column)); + ColumnFilters get trickPlayModel => $composableBuilder( + column: $table.trickPlayModel, + builder: (column) => ColumnFilters(column)); - ColumnFilters get mediaSegments => - $composableBuilder(column: $table.mediaSegments, builder: (column) => ColumnFilters(column)); + ColumnFilters get mediaSegments => $composableBuilder( + column: $table.mediaSegments, builder: (column) => ColumnFilters(column)); - ColumnFilters get images => - $composableBuilder(column: $table.images, builder: (column) => ColumnFilters(column)); + ColumnFilters get images => $composableBuilder( + column: $table.images, builder: (column) => ColumnFilters(column)); - ColumnFilters get chapters => - $composableBuilder(column: $table.chapters, builder: (column) => ColumnFilters(column)); + ColumnFilters get chapters => $composableBuilder( + column: $table.chapters, builder: (column) => ColumnFilters(column)); - ColumnFilters get subtitles => - $composableBuilder(column: $table.subtitles, builder: (column) => ColumnFilters(column)); + ColumnFilters get subtitles => $composableBuilder( + column: $table.subtitles, builder: (column) => ColumnFilters(column)); - ColumnFilters get unSyncedData => - $composableBuilder(column: $table.unSyncedData, builder: (column) => ColumnFilters(column)); + ColumnFilters get unSyncedData => $composableBuilder( + column: $table.unSyncedData, builder: (column) => ColumnFilters(column)); - ColumnFilters get userData => - $composableBuilder(column: $table.userData, builder: (column) => ColumnFilters(column)); + ColumnFilters get userData => $composableBuilder( + column: $table.userData, builder: (column) => ColumnFilters(column)); } -class $$DatabaseItemsTableOrderingComposer extends Composer<_$AppDatabase, $DatabaseItemsTable> { +class $$DatabaseItemsTableOrderingComposer + extends Composer<_$AppDatabase, $DatabaseItemsTable> { $$DatabaseItemsTableOrderingComposer({ required super.$db, required super.$table, @@ -746,52 +864,58 @@ class $$DatabaseItemsTableOrderingComposer extends Composer<_$AppDatabase, $Data super.$addJoinBuilderToRootComposer, super.$removeJoinBuilderFromRootComposer, }); - ColumnOrderings get userId => - $composableBuilder(column: $table.userId, builder: (column) => ColumnOrderings(column)); + ColumnOrderings get userId => $composableBuilder( + column: $table.userId, builder: (column) => ColumnOrderings(column)); - ColumnOrderings get id => $composableBuilder(column: $table.id, builder: (column) => ColumnOrderings(column)); + ColumnOrderings get id => $composableBuilder( + column: $table.id, builder: (column) => ColumnOrderings(column)); - ColumnOrderings get syncing => - $composableBuilder(column: $table.syncing, builder: (column) => ColumnOrderings(column)); + ColumnOrderings get syncing => $composableBuilder( + column: $table.syncing, builder: (column) => ColumnOrderings(column)); - ColumnOrderings get sortName => - $composableBuilder(column: $table.sortName, builder: (column) => ColumnOrderings(column)); + ColumnOrderings get sortName => $composableBuilder( + column: $table.sortName, builder: (column) => ColumnOrderings(column)); - ColumnOrderings get parentId => - $composableBuilder(column: $table.parentId, builder: (column) => ColumnOrderings(column)); + ColumnOrderings get parentId => $composableBuilder( + column: $table.parentId, builder: (column) => ColumnOrderings(column)); - ColumnOrderings get path => - $composableBuilder(column: $table.path, builder: (column) => ColumnOrderings(column)); + ColumnOrderings get path => $composableBuilder( + column: $table.path, builder: (column) => ColumnOrderings(column)); - ColumnOrderings get fileSize => - $composableBuilder(column: $table.fileSize, builder: (column) => ColumnOrderings(column)); + ColumnOrderings get fileSize => $composableBuilder( + column: $table.fileSize, builder: (column) => ColumnOrderings(column)); - ColumnOrderings get videoFileName => - $composableBuilder(column: $table.videoFileName, builder: (column) => ColumnOrderings(column)); + ColumnOrderings get videoFileName => $composableBuilder( + column: $table.videoFileName, + builder: (column) => ColumnOrderings(column)); - ColumnOrderings get trickPlayModel => - $composableBuilder(column: $table.trickPlayModel, builder: (column) => ColumnOrderings(column)); + ColumnOrderings get trickPlayModel => $composableBuilder( + column: $table.trickPlayModel, + builder: (column) => ColumnOrderings(column)); - ColumnOrderings get mediaSegments => - $composableBuilder(column: $table.mediaSegments, builder: (column) => ColumnOrderings(column)); + ColumnOrderings get mediaSegments => $composableBuilder( + column: $table.mediaSegments, + builder: (column) => ColumnOrderings(column)); - ColumnOrderings get images => - $composableBuilder(column: $table.images, builder: (column) => ColumnOrderings(column)); + ColumnOrderings get images => $composableBuilder( + column: $table.images, builder: (column) => ColumnOrderings(column)); - ColumnOrderings get chapters => - $composableBuilder(column: $table.chapters, builder: (column) => ColumnOrderings(column)); + ColumnOrderings get chapters => $composableBuilder( + column: $table.chapters, builder: (column) => ColumnOrderings(column)); - ColumnOrderings get subtitles => - $composableBuilder(column: $table.subtitles, builder: (column) => ColumnOrderings(column)); + ColumnOrderings get subtitles => $composableBuilder( + column: $table.subtitles, builder: (column) => ColumnOrderings(column)); - ColumnOrderings get unSyncedData => - $composableBuilder(column: $table.unSyncedData, builder: (column) => ColumnOrderings(column)); + ColumnOrderings get unSyncedData => $composableBuilder( + column: $table.unSyncedData, + builder: (column) => ColumnOrderings(column)); - ColumnOrderings get userData => - $composableBuilder(column: $table.userData, builder: (column) => ColumnOrderings(column)); + ColumnOrderings get userData => $composableBuilder( + column: $table.userData, builder: (column) => ColumnOrderings(column)); } -class $$DatabaseItemsTableAnnotationComposer extends Composer<_$AppDatabase, $DatabaseItemsTable> { +class $$DatabaseItemsTableAnnotationComposer + extends Composer<_$AppDatabase, $DatabaseItemsTable> { $$DatabaseItemsTableAnnotationComposer({ required super.$db, required super.$table, @@ -799,39 +923,50 @@ class $$DatabaseItemsTableAnnotationComposer extends Composer<_$AppDatabase, $Da super.$addJoinBuilderToRootComposer, super.$removeJoinBuilderFromRootComposer, }); - GeneratedColumn get userId => $composableBuilder(column: $table.userId, builder: (column) => column); + GeneratedColumn get userId => + $composableBuilder(column: $table.userId, builder: (column) => column); - GeneratedColumn get id => $composableBuilder(column: $table.id, builder: (column) => column); + GeneratedColumn get id => + $composableBuilder(column: $table.id, builder: (column) => column); - GeneratedColumn get syncing => $composableBuilder(column: $table.syncing, builder: (column) => column); + GeneratedColumn get syncing => + $composableBuilder(column: $table.syncing, builder: (column) => column); - GeneratedColumn get sortName => $composableBuilder(column: $table.sortName, builder: (column) => column); + GeneratedColumn get sortName => + $composableBuilder(column: $table.sortName, builder: (column) => column); - GeneratedColumn get parentId => $composableBuilder(column: $table.parentId, builder: (column) => column); + GeneratedColumn get parentId => + $composableBuilder(column: $table.parentId, builder: (column) => column); - GeneratedColumn get path => $composableBuilder(column: $table.path, builder: (column) => column); + GeneratedColumn get path => + $composableBuilder(column: $table.path, builder: (column) => column); - GeneratedColumn get fileSize => $composableBuilder(column: $table.fileSize, builder: (column) => column); + GeneratedColumn get fileSize => + $composableBuilder(column: $table.fileSize, builder: (column) => column); - GeneratedColumn get videoFileName => - $composableBuilder(column: $table.videoFileName, builder: (column) => column); + GeneratedColumn get videoFileName => $composableBuilder( + column: $table.videoFileName, builder: (column) => column); - GeneratedColumn get trickPlayModel => - $composableBuilder(column: $table.trickPlayModel, builder: (column) => column); + GeneratedColumn get trickPlayModel => $composableBuilder( + column: $table.trickPlayModel, builder: (column) => column); - GeneratedColumn get mediaSegments => - $composableBuilder(column: $table.mediaSegments, builder: (column) => column); + GeneratedColumn get mediaSegments => $composableBuilder( + column: $table.mediaSegments, builder: (column) => column); - GeneratedColumn get images => $composableBuilder(column: $table.images, builder: (column) => column); + GeneratedColumn get images => + $composableBuilder(column: $table.images, builder: (column) => column); - GeneratedColumn get chapters => $composableBuilder(column: $table.chapters, builder: (column) => column); + GeneratedColumn get chapters => + $composableBuilder(column: $table.chapters, builder: (column) => column); - GeneratedColumn get subtitles => $composableBuilder(column: $table.subtitles, builder: (column) => column); + GeneratedColumn get subtitles => + $composableBuilder(column: $table.subtitles, builder: (column) => column); - GeneratedColumn get unSyncedData => - $composableBuilder(column: $table.unSyncedData, builder: (column) => column); + GeneratedColumn get unSyncedData => $composableBuilder( + column: $table.unSyncedData, builder: (column) => column); - GeneratedColumn get userData => $composableBuilder(column: $table.userData, builder: (column) => column); + GeneratedColumn get userData => + $composableBuilder(column: $table.userData, builder: (column) => column); } class $$DatabaseItemsTableTableManager extends RootTableManager< @@ -843,16 +978,22 @@ class $$DatabaseItemsTableTableManager extends RootTableManager< $$DatabaseItemsTableAnnotationComposer, $$DatabaseItemsTableCreateCompanionBuilder, $$DatabaseItemsTableUpdateCompanionBuilder, - (DatabaseItem, BaseReferences<_$AppDatabase, $DatabaseItemsTable, DatabaseItem>), + ( + DatabaseItem, + BaseReferences<_$AppDatabase, $DatabaseItemsTable, DatabaseItem> + ), DatabaseItem, PrefetchHooks Function()> { $$DatabaseItemsTableTableManager(_$AppDatabase db, $DatabaseItemsTable table) : super(TableManagerState( db: db, table: table, - createFilteringComposer: () => $$DatabaseItemsTableFilterComposer($db: db, $table: table), - createOrderingComposer: () => $$DatabaseItemsTableOrderingComposer($db: db, $table: table), - createComputedFieldComposer: () => $$DatabaseItemsTableAnnotationComposer($db: db, $table: table), + createFilteringComposer: () => + $$DatabaseItemsTableFilterComposer($db: db, $table: table), + createOrderingComposer: () => + $$DatabaseItemsTableOrderingComposer($db: db, $table: table), + createComputedFieldComposer: () => + $$DatabaseItemsTableAnnotationComposer($db: db, $table: table), updateCompanionCallback: ({ Value userId = const Value.absent(), Value id = const Value.absent(), @@ -925,7 +1066,9 @@ class $$DatabaseItemsTableTableManager extends RootTableManager< userData: userData, rowid: rowid, ), - withReferenceMapper: (p0) => p0.map((e) => (e.readTable(table), BaseReferences(db, table, e))).toList(), + withReferenceMapper: (p0) => p0 + .map((e) => (e.readTable(table), BaseReferences(db, table, e))) + .toList(), prefetchHooksCallback: null, )); } @@ -939,12 +1082,16 @@ typedef $$DatabaseItemsTableProcessedTableManager = ProcessedTableManager< $$DatabaseItemsTableAnnotationComposer, $$DatabaseItemsTableCreateCompanionBuilder, $$DatabaseItemsTableUpdateCompanionBuilder, - (DatabaseItem, BaseReferences<_$AppDatabase, $DatabaseItemsTable, DatabaseItem>), + ( + DatabaseItem, + BaseReferences<_$AppDatabase, $DatabaseItemsTable, DatabaseItem> + ), DatabaseItem, PrefetchHooks Function()>; class $AppDatabaseManager { final _$AppDatabase _db; $AppDatabaseManager(this._db); - $$DatabaseItemsTableTableManager get databaseItems => $$DatabaseItemsTableTableManager(_db, _db.databaseItems); + $$DatabaseItemsTableTableManager get databaseItems => + $$DatabaseItemsTableTableManager(_db, _db.databaseItems); } diff --git a/lib/models/syncing/sync_settings_model.freezed.dart b/lib/models/syncing/sync_settings_model.freezed.dart index 902cc4cb3..b70eeca18 100644 --- a/lib/models/syncing/sync_settings_model.freezed.dart +++ b/lib/models/syncing/sync_settings_model.freezed.dart @@ -21,7 +21,8 @@ mixin _$SyncSettingsModel { @JsonKey(includeFromJson: false, includeToJson: false) @pragma('vm:prefer-inline') $SyncSettingsModelCopyWith get copyWith => - _$SyncSettingsModelCopyWithImpl(this as SyncSettingsModel, _$identity); + _$SyncSettingsModelCopyWithImpl( + this as SyncSettingsModel, _$identity); @override String toString() { @@ -31,14 +32,16 @@ mixin _$SyncSettingsModel { /// @nodoc abstract mixin class $SyncSettingsModelCopyWith<$Res> { - factory $SyncSettingsModelCopyWith(SyncSettingsModel value, $Res Function(SyncSettingsModel) _then) = + factory $SyncSettingsModelCopyWith( + SyncSettingsModel value, $Res Function(SyncSettingsModel) _then) = _$SyncSettingsModelCopyWithImpl; @useResult $Res call({List items}); } /// @nodoc -class _$SyncSettingsModelCopyWithImpl<$Res> implements $SyncSettingsModelCopyWith<$Res> { +class _$SyncSettingsModelCopyWithImpl<$Res> + implements $SyncSettingsModelCopyWith<$Res> { _$SyncSettingsModelCopyWithImpl(this._self, this._then); final SyncSettingsModel _self; @@ -248,8 +251,10 @@ class _SyncSettignsModel extends SyncSettingsModel { } /// @nodoc -abstract mixin class _$SyncSettignsModelCopyWith<$Res> implements $SyncSettingsModelCopyWith<$Res> { - factory _$SyncSettignsModelCopyWith(_SyncSettignsModel value, $Res Function(_SyncSettignsModel) _then) = +abstract mixin class _$SyncSettignsModelCopyWith<$Res> + implements $SyncSettingsModelCopyWith<$Res> { + factory _$SyncSettignsModelCopyWith( + _SyncSettignsModel value, $Res Function(_SyncSettignsModel) _then) = __$SyncSettignsModelCopyWithImpl; @override @useResult @@ -257,7 +262,8 @@ abstract mixin class _$SyncSettignsModelCopyWith<$Res> implements $SyncSettingsM } /// @nodoc -class __$SyncSettignsModelCopyWithImpl<$Res> implements _$SyncSettignsModelCopyWith<$Res> { +class __$SyncSettignsModelCopyWithImpl<$Res> + implements _$SyncSettignsModelCopyWith<$Res> { __$SyncSettignsModelCopyWithImpl(this._self, this._then); final _SyncSettignsModel _self; diff --git a/lib/models/syncplay/syncplay_models.dart b/lib/models/syncplay/syncplay_models.dart index 13e9016ae..6f0e8d22f 100644 --- a/lib/models/syncplay/syncplay_models.dart +++ b/lib/models/syncplay/syncplay_models.dart @@ -47,6 +47,132 @@ enum SyncPlayGroupState { playing, } +/// Playback correction strategy used to resync local playback with group time. +enum SyncCorrectionStrategy { + none, + speedToSync, + skipToSync, +} + +/// Config values for playback drift correction. +/// +/// Defaults match official Jellyfin SyncPlay thresholds. +class SyncCorrectionConfig { + const SyncCorrectionConfig({ + this.minDelaySpeedToSyncMs = 60, + this.maxDelaySpeedToSyncMs = 3000, + this.speedToSyncDurationMs = 1000, + this.minDelaySkipToSyncMs = 400, + this.useSpeedToSync = true, + this.useSkipToSync = true, + this.enableSyncCorrection = true, + }); + + final double minDelaySpeedToSyncMs; + final double maxDelaySpeedToSyncMs; + final double speedToSyncDurationMs; + final double minDelaySkipToSyncMs; + final bool useSpeedToSync; + final bool useSkipToSync; + final bool enableSyncCorrection; + + SyncCorrectionConfig copyWith({ + double? minDelaySpeedToSyncMs, + double? maxDelaySpeedToSyncMs, + double? speedToSyncDurationMs, + double? minDelaySkipToSyncMs, + bool? useSpeedToSync, + bool? useSkipToSync, + bool? enableSyncCorrection, + }) { + return SyncCorrectionConfig( + minDelaySpeedToSyncMs: minDelaySpeedToSyncMs ?? this.minDelaySpeedToSyncMs, + maxDelaySpeedToSyncMs: maxDelaySpeedToSyncMs ?? this.maxDelaySpeedToSyncMs, + speedToSyncDurationMs: speedToSyncDurationMs ?? this.speedToSyncDurationMs, + minDelaySkipToSyncMs: minDelaySkipToSyncMs ?? this.minDelaySkipToSyncMs, + useSpeedToSync: useSpeedToSync ?? this.useSpeedToSync, + useSkipToSync: useSkipToSync ?? this.useSkipToSync, + enableSyncCorrection: enableSyncCorrection ?? this.enableSyncCorrection, + ); + } +} + +/// Runtime state of playback correction logic. +class SyncCorrectionState { + const SyncCorrectionState({ + this.syncEnabled = true, + this.playerIsBuffering = false, + this.playbackDiffMillis = 0, + this.syncAttempts = 0, + this.lastSyncAt, + this.activeStrategy = SyncCorrectionStrategy.none, + }); + + final bool syncEnabled; + final bool playerIsBuffering; + final double playbackDiffMillis; + final int syncAttempts; + final DateTime? lastSyncAt; + final SyncCorrectionStrategy activeStrategy; + + SyncCorrectionState copyWith({ + bool? syncEnabled, + bool? playerIsBuffering, + double? playbackDiffMillis, + int? syncAttempts, + DateTime? lastSyncAt, + SyncCorrectionStrategy? activeStrategy, + }) { + return SyncCorrectionState( + syncEnabled: syncEnabled ?? this.syncEnabled, + playerIsBuffering: playerIsBuffering ?? this.playerIsBuffering, + playbackDiffMillis: playbackDiffMillis ?? this.playbackDiffMillis, + syncAttempts: syncAttempts ?? this.syncAttempts, + lastSyncAt: lastSyncAt ?? this.lastSyncAt, + activeStrategy: activeStrategy ?? this.activeStrategy, + ); + } +} + +/// Select correction strategy based on current diff and runtime/config state. +/// +/// Precedence intentionally mirrors official behavior: +/// SpeedToSync first, then SkipToSync fallback. +SyncCorrectionStrategy selectSyncCorrectionStrategy({ + required SyncCorrectionConfig config, + required SyncCorrectionState state, + required double diffMillis, + required bool hasPlaybackRate, +}) { + if (!config.enableSyncCorrection || !state.syncEnabled) { + return SyncCorrectionStrategy.none; + } + + if (state.activeStrategy != SyncCorrectionStrategy.none) { + return SyncCorrectionStrategy.none; + } + + final absDiffMillis = diffMillis.abs(); + + final canUseSpeedToSync = + (config.useSpeedToSync && + hasPlaybackRate && + absDiffMillis >= config.minDelaySpeedToSyncMs && + absDiffMillis < config.maxDelaySpeedToSyncMs); + if (canUseSpeedToSync) { + return SyncCorrectionStrategy.speedToSync; + } + + final canUseSkipToSync = + (config.useSkipToSync && + absDiffMillis >= config.minDelaySkipToSyncMs); + if (canUseSkipToSync) { + return SyncCorrectionStrategy.skipToSync; + } + + return SyncCorrectionStrategy.none; +} + /// Current SyncPlay session state @Freezed(copyWith: true) abstract class SyncPlayState with _$SyncPlayState { @@ -70,6 +196,12 @@ abstract class SyncPlayState with _$SyncPlayState { /// The type of command being processed (for UI feedback) String? processingCommandType, + + /// Internal correction configuration and thresholds. + @Default(SyncCorrectionConfig()) SyncCorrectionConfig correctionConfig, + + /// Runtime correction status for UI and command logic. + @Default(SyncCorrectionState()) SyncCorrectionState correctionState, }) = _SyncPlayState; bool get isActive => isConnected && isInGroup; diff --git a/lib/models/syncplay/syncplay_models.freezed.dart b/lib/models/syncplay/syncplay_models.freezed.dart index 28b0c5130..35a23e80e 100644 --- a/lib/models/syncplay/syncplay_models.freezed.dart +++ b/lib/models/syncplay/syncplay_models.freezed.dart @@ -24,7 +24,8 @@ mixin _$TimeSyncMeasurement { @JsonKey(includeFromJson: false, includeToJson: false) @pragma('vm:prefer-inline') $TimeSyncMeasurementCopyWith get copyWith => - _$TimeSyncMeasurementCopyWithImpl(this as TimeSyncMeasurement, _$identity); + _$TimeSyncMeasurementCopyWithImpl( + this as TimeSyncMeasurement, _$identity); @override String toString() { @@ -34,14 +35,20 @@ mixin _$TimeSyncMeasurement { /// @nodoc abstract mixin class $TimeSyncMeasurementCopyWith<$Res> { - factory $TimeSyncMeasurementCopyWith(TimeSyncMeasurement value, $Res Function(TimeSyncMeasurement) _then) = + factory $TimeSyncMeasurementCopyWith( + TimeSyncMeasurement value, $Res Function(TimeSyncMeasurement) _then) = _$TimeSyncMeasurementCopyWithImpl; @useResult - $Res call({DateTime requestSent, DateTime requestReceived, DateTime responseSent, DateTime responseReceived}); + $Res call( + {DateTime requestSent, + DateTime requestReceived, + DateTime responseSent, + DateTime responseReceived}); } /// @nodoc -class _$TimeSyncMeasurementCopyWithImpl<$Res> implements $TimeSyncMeasurementCopyWith<$Res> { +class _$TimeSyncMeasurementCopyWithImpl<$Res> + implements $TimeSyncMeasurementCopyWith<$Res> { _$TimeSyncMeasurementCopyWithImpl(this._self, this._then); final TimeSyncMeasurement _self; @@ -171,14 +178,16 @@ extension TimeSyncMeasurementPatterns on TimeSyncMeasurement { @optionalTypeArgs TResult maybeWhen( - TResult Function(DateTime requestSent, DateTime requestReceived, DateTime responseSent, DateTime responseReceived)? + TResult Function(DateTime requestSent, DateTime requestReceived, + DateTime responseSent, DateTime responseReceived)? $default, { required TResult orElse(), }) { final _that = this; switch (_that) { case _TimeSyncMeasurement() when $default != null: - return $default(_that.requestSent, _that.requestReceived, _that.responseSent, _that.responseReceived); + return $default(_that.requestSent, _that.requestReceived, + _that.responseSent, _that.responseReceived); case _: return orElse(); } @@ -199,13 +208,15 @@ extension TimeSyncMeasurementPatterns on TimeSyncMeasurement { @optionalTypeArgs TResult when( - TResult Function(DateTime requestSent, DateTime requestReceived, DateTime responseSent, DateTime responseReceived) + TResult Function(DateTime requestSent, DateTime requestReceived, + DateTime responseSent, DateTime responseReceived) $default, ) { final _that = this; switch (_that) { case _TimeSyncMeasurement(): - return $default(_that.requestSent, _that.requestReceived, _that.responseSent, _that.responseReceived); + return $default(_that.requestSent, _that.requestReceived, + _that.responseSent, _that.responseReceived); case _: throw StateError('Unexpected subclass'); } @@ -225,13 +236,15 @@ extension TimeSyncMeasurementPatterns on TimeSyncMeasurement { @optionalTypeArgs TResult? whenOrNull( - TResult? Function(DateTime requestSent, DateTime requestReceived, DateTime responseSent, DateTime responseReceived)? + TResult? Function(DateTime requestSent, DateTime requestReceived, + DateTime responseSent, DateTime responseReceived)? $default, ) { final _that = this; switch (_that) { case _TimeSyncMeasurement() when $default != null: - return $default(_that.requestSent, _that.requestReceived, _that.responseSent, _that.responseReceived); + return $default(_that.requestSent, _that.requestReceived, + _that.responseSent, _that.responseReceived); case _: return null; } @@ -263,7 +276,8 @@ class _TimeSyncMeasurement extends TimeSyncMeasurement { @JsonKey(includeFromJson: false, includeToJson: false) @pragma('vm:prefer-inline') _$TimeSyncMeasurementCopyWith<_TimeSyncMeasurement> get copyWith => - __$TimeSyncMeasurementCopyWithImpl<_TimeSyncMeasurement>(this, _$identity); + __$TimeSyncMeasurementCopyWithImpl<_TimeSyncMeasurement>( + this, _$identity); @override String toString() { @@ -272,16 +286,23 @@ class _TimeSyncMeasurement extends TimeSyncMeasurement { } /// @nodoc -abstract mixin class _$TimeSyncMeasurementCopyWith<$Res> implements $TimeSyncMeasurementCopyWith<$Res> { - factory _$TimeSyncMeasurementCopyWith(_TimeSyncMeasurement value, $Res Function(_TimeSyncMeasurement) _then) = +abstract mixin class _$TimeSyncMeasurementCopyWith<$Res> + implements $TimeSyncMeasurementCopyWith<$Res> { + factory _$TimeSyncMeasurementCopyWith(_TimeSyncMeasurement value, + $Res Function(_TimeSyncMeasurement) _then) = __$TimeSyncMeasurementCopyWithImpl; @override @useResult - $Res call({DateTime requestSent, DateTime requestReceived, DateTime responseSent, DateTime responseReceived}); + $Res call( + {DateTime requestSent, + DateTime requestReceived, + DateTime responseSent, + DateTime responseReceived}); } /// @nodoc -class __$TimeSyncMeasurementCopyWithImpl<$Res> implements _$TimeSyncMeasurementCopyWith<$Res> { +class __$TimeSyncMeasurementCopyWithImpl<$Res> + implements _$TimeSyncMeasurementCopyWith<$Res> { __$TimeSyncMeasurementCopyWithImpl(this._self, this._then); final _TimeSyncMeasurement _self; @@ -338,22 +359,31 @@ mixin _$SyncPlayState { /// The type of command being processed (for UI feedback) String? get processingCommandType; + /// Internal correction configuration and thresholds. + SyncCorrectionConfig get correctionConfig; + + /// Runtime correction status for UI and command logic. + SyncCorrectionState get correctionState; + /// Create a copy of SyncPlayState /// with the given fields replaced by the non-null parameter values. @JsonKey(includeFromJson: false, includeToJson: false) @pragma('vm:prefer-inline') $SyncPlayStateCopyWith get copyWith => - _$SyncPlayStateCopyWithImpl(this as SyncPlayState, _$identity); + _$SyncPlayStateCopyWithImpl( + this as SyncPlayState, _$identity); @override String toString() { - return 'SyncPlayState(isConnected: $isConnected, isInGroup: $isInGroup, groupId: $groupId, groupName: $groupName, groupState: $groupState, stateReason: $stateReason, participants: $participants, playingItemId: $playingItemId, playlistItemId: $playlistItemId, positionTicks: $positionTicks, lastCommandTime: $lastCommandTime, isProcessingCommand: $isProcessingCommand, processingCommandType: $processingCommandType)'; + return 'SyncPlayState(isConnected: $isConnected, isInGroup: $isInGroup, groupId: $groupId, groupName: $groupName, groupState: $groupState, stateReason: $stateReason, participants: $participants, playingItemId: $playingItemId, playlistItemId: $playlistItemId, positionTicks: $positionTicks, lastCommandTime: $lastCommandTime, isProcessingCommand: $isProcessingCommand, processingCommandType: $processingCommandType, correctionConfig: $correctionConfig, correctionState: $correctionState)'; } } /// @nodoc abstract mixin class $SyncPlayStateCopyWith<$Res> { - factory $SyncPlayStateCopyWith(SyncPlayState value, $Res Function(SyncPlayState) _then) = _$SyncPlayStateCopyWithImpl; + factory $SyncPlayStateCopyWith( + SyncPlayState value, $Res Function(SyncPlayState) _then) = + _$SyncPlayStateCopyWithImpl; @useResult $Res call( {bool isConnected, @@ -368,11 +398,14 @@ abstract mixin class $SyncPlayStateCopyWith<$Res> { int positionTicks, DateTime? lastCommandTime, bool isProcessingCommand, - String? processingCommandType}); + String? processingCommandType, + SyncCorrectionConfig correctionConfig, + SyncCorrectionState correctionState}); } /// @nodoc -class _$SyncPlayStateCopyWithImpl<$Res> implements $SyncPlayStateCopyWith<$Res> { +class _$SyncPlayStateCopyWithImpl<$Res> + implements $SyncPlayStateCopyWith<$Res> { _$SyncPlayStateCopyWithImpl(this._self, this._then); final SyncPlayState _self; @@ -396,6 +429,8 @@ class _$SyncPlayStateCopyWithImpl<$Res> implements $SyncPlayStateCopyWith<$Res> Object? lastCommandTime = freezed, Object? isProcessingCommand = null, Object? processingCommandType = freezed, + Object? correctionConfig = null, + Object? correctionState = null, }) { return _then(_self.copyWith( isConnected: null == isConnected @@ -450,6 +485,14 @@ class _$SyncPlayStateCopyWithImpl<$Res> implements $SyncPlayStateCopyWith<$Res> ? _self.processingCommandType : processingCommandType // ignore: cast_nullable_to_non_nullable as String?, + correctionConfig: null == correctionConfig + ? _self.correctionConfig + : correctionConfig // ignore: cast_nullable_to_non_nullable + as SyncCorrectionConfig, + correctionState: null == correctionState + ? _self.correctionState + : correctionState // ignore: cast_nullable_to_non_nullable + as SyncCorrectionState, )); } } @@ -560,7 +603,9 @@ extension SyncPlayStatePatterns on SyncPlayState { int positionTicks, DateTime? lastCommandTime, bool isProcessingCommand, - String? processingCommandType)? + String? processingCommandType, + SyncCorrectionConfig correctionConfig, + SyncCorrectionState correctionState)? $default, { required TResult orElse(), }) { @@ -580,7 +625,9 @@ extension SyncPlayStatePatterns on SyncPlayState { _that.positionTicks, _that.lastCommandTime, _that.isProcessingCommand, - _that.processingCommandType); + _that.processingCommandType, + _that.correctionConfig, + _that.correctionState); case _: return orElse(); } @@ -614,7 +661,9 @@ extension SyncPlayStatePatterns on SyncPlayState { int positionTicks, DateTime? lastCommandTime, bool isProcessingCommand, - String? processingCommandType) + String? processingCommandType, + SyncCorrectionConfig correctionConfig, + SyncCorrectionState correctionState) $default, ) { final _that = this; @@ -633,7 +682,9 @@ extension SyncPlayStatePatterns on SyncPlayState { _that.positionTicks, _that.lastCommandTime, _that.isProcessingCommand, - _that.processingCommandType); + _that.processingCommandType, + _that.correctionConfig, + _that.correctionState); case _: throw StateError('Unexpected subclass'); } @@ -666,7 +717,9 @@ extension SyncPlayStatePatterns on SyncPlayState { int positionTicks, DateTime? lastCommandTime, bool isProcessingCommand, - String? processingCommandType)? + String? processingCommandType, + SyncCorrectionConfig correctionConfig, + SyncCorrectionState correctionState)? $default, ) { final _that = this; @@ -685,7 +738,9 @@ extension SyncPlayStatePatterns on SyncPlayState { _that.positionTicks, _that.lastCommandTime, _that.isProcessingCommand, - _that.processingCommandType); + _that.processingCommandType, + _that.correctionConfig, + _that.correctionState); case _: return null; } @@ -708,7 +763,9 @@ class _SyncPlayState extends SyncPlayState { this.positionTicks = 0, this.lastCommandTime, this.isProcessingCommand = false, - this.processingCommandType}) + this.processingCommandType, + this.correctionConfig = const SyncCorrectionConfig(), + this.correctionState = const SyncCorrectionState()}) : _participants = participants, super._(); @@ -755,6 +812,16 @@ class _SyncPlayState extends SyncPlayState { @override final String? processingCommandType; + /// Internal correction configuration and thresholds. + @override + @JsonKey() + final SyncCorrectionConfig correctionConfig; + + /// Runtime correction status for UI and command logic. + @override + @JsonKey() + final SyncCorrectionState correctionState; + /// Create a copy of SyncPlayState /// with the given fields replaced by the non-null parameter values. @override @@ -765,13 +832,15 @@ class _SyncPlayState extends SyncPlayState { @override String toString() { - return 'SyncPlayState(isConnected: $isConnected, isInGroup: $isInGroup, groupId: $groupId, groupName: $groupName, groupState: $groupState, stateReason: $stateReason, participants: $participants, playingItemId: $playingItemId, playlistItemId: $playlistItemId, positionTicks: $positionTicks, lastCommandTime: $lastCommandTime, isProcessingCommand: $isProcessingCommand, processingCommandType: $processingCommandType)'; + return 'SyncPlayState(isConnected: $isConnected, isInGroup: $isInGroup, groupId: $groupId, groupName: $groupName, groupState: $groupState, stateReason: $stateReason, participants: $participants, playingItemId: $playingItemId, playlistItemId: $playlistItemId, positionTicks: $positionTicks, lastCommandTime: $lastCommandTime, isProcessingCommand: $isProcessingCommand, processingCommandType: $processingCommandType, correctionConfig: $correctionConfig, correctionState: $correctionState)'; } } /// @nodoc -abstract mixin class _$SyncPlayStateCopyWith<$Res> implements $SyncPlayStateCopyWith<$Res> { - factory _$SyncPlayStateCopyWith(_SyncPlayState value, $Res Function(_SyncPlayState) _then) = +abstract mixin class _$SyncPlayStateCopyWith<$Res> + implements $SyncPlayStateCopyWith<$Res> { + factory _$SyncPlayStateCopyWith( + _SyncPlayState value, $Res Function(_SyncPlayState) _then) = __$SyncPlayStateCopyWithImpl; @override @useResult @@ -788,11 +857,14 @@ abstract mixin class _$SyncPlayStateCopyWith<$Res> implements $SyncPlayStateCopy int positionTicks, DateTime? lastCommandTime, bool isProcessingCommand, - String? processingCommandType}); + String? processingCommandType, + SyncCorrectionConfig correctionConfig, + SyncCorrectionState correctionState}); } /// @nodoc -class __$SyncPlayStateCopyWithImpl<$Res> implements _$SyncPlayStateCopyWith<$Res> { +class __$SyncPlayStateCopyWithImpl<$Res> + implements _$SyncPlayStateCopyWith<$Res> { __$SyncPlayStateCopyWithImpl(this._self, this._then); final _SyncPlayState _self; @@ -816,6 +888,8 @@ class __$SyncPlayStateCopyWithImpl<$Res> implements _$SyncPlayStateCopyWith<$Res Object? lastCommandTime = freezed, Object? isProcessingCommand = null, Object? processingCommandType = freezed, + Object? correctionConfig = null, + Object? correctionState = null, }) { return _then(_SyncPlayState( isConnected: null == isConnected @@ -870,6 +944,14 @@ class __$SyncPlayStateCopyWithImpl<$Res> implements _$SyncPlayStateCopyWith<$Res ? _self.processingCommandType : processingCommandType // ignore: cast_nullable_to_non_nullable as String?, + correctionConfig: null == correctionConfig + ? _self.correctionConfig + : correctionConfig // ignore: cast_nullable_to_non_nullable + as SyncCorrectionConfig, + correctionState: null == correctionState + ? _self.correctionState + : correctionState // ignore: cast_nullable_to_non_nullable + as SyncCorrectionState, )); } } @@ -886,7 +968,8 @@ mixin _$LastSyncPlayCommand { @JsonKey(includeFromJson: false, includeToJson: false) @pragma('vm:prefer-inline') $LastSyncPlayCommandCopyWith get copyWith => - _$LastSyncPlayCommandCopyWithImpl(this as LastSyncPlayCommand, _$identity); + _$LastSyncPlayCommandCopyWithImpl( + this as LastSyncPlayCommand, _$identity); @override String toString() { @@ -896,14 +979,17 @@ mixin _$LastSyncPlayCommand { /// @nodoc abstract mixin class $LastSyncPlayCommandCopyWith<$Res> { - factory $LastSyncPlayCommandCopyWith(LastSyncPlayCommand value, $Res Function(LastSyncPlayCommand) _then) = + factory $LastSyncPlayCommandCopyWith( + LastSyncPlayCommand value, $Res Function(LastSyncPlayCommand) _then) = _$LastSyncPlayCommandCopyWithImpl; @useResult - $Res call({String when, int positionTicks, String command, String playlistItemId}); + $Res call( + {String when, int positionTicks, String command, String playlistItemId}); } /// @nodoc -class _$LastSyncPlayCommandCopyWithImpl<$Res> implements $LastSyncPlayCommandCopyWith<$Res> { +class _$LastSyncPlayCommandCopyWithImpl<$Res> + implements $LastSyncPlayCommandCopyWith<$Res> { _$LastSyncPlayCommandCopyWithImpl(this._self, this._then); final LastSyncPlayCommand _self; @@ -1033,13 +1119,16 @@ extension LastSyncPlayCommandPatterns on LastSyncPlayCommand { @optionalTypeArgs TResult maybeWhen( - TResult Function(String when, int positionTicks, String command, String playlistItemId)? $default, { + TResult Function(String when, int positionTicks, String command, + String playlistItemId)? + $default, { required TResult orElse(), }) { final _that = this; switch (_that) { case _LastSyncPlayCommand() when $default != null: - return $default(_that.when, _that.positionTicks, _that.command, _that.playlistItemId); + return $default(_that.when, _that.positionTicks, _that.command, + _that.playlistItemId); case _: return orElse(); } @@ -1060,12 +1149,15 @@ extension LastSyncPlayCommandPatterns on LastSyncPlayCommand { @optionalTypeArgs TResult when( - TResult Function(String when, int positionTicks, String command, String playlistItemId) $default, + TResult Function(String when, int positionTicks, String command, + String playlistItemId) + $default, ) { final _that = this; switch (_that) { case _LastSyncPlayCommand(): - return $default(_that.when, _that.positionTicks, _that.command, _that.playlistItemId); + return $default(_that.when, _that.positionTicks, _that.command, + _that.playlistItemId); case _: throw StateError('Unexpected subclass'); } @@ -1085,12 +1177,15 @@ extension LastSyncPlayCommandPatterns on LastSyncPlayCommand { @optionalTypeArgs TResult? whenOrNull( - TResult? Function(String when, int positionTicks, String command, String playlistItemId)? $default, + TResult? Function(String when, int positionTicks, String command, + String playlistItemId)? + $default, ) { final _that = this; switch (_that) { case _LastSyncPlayCommand() when $default != null: - return $default(_that.when, _that.positionTicks, _that.command, _that.playlistItemId); + return $default(_that.when, _that.positionTicks, _that.command, + _that.playlistItemId); case _: return null; } @@ -1101,7 +1196,10 @@ extension LastSyncPlayCommandPatterns on LastSyncPlayCommand { class _LastSyncPlayCommand implements LastSyncPlayCommand { _LastSyncPlayCommand( - {required this.when, required this.positionTicks, required this.command, required this.playlistItemId}); + {required this.when, + required this.positionTicks, + required this.command, + required this.playlistItemId}); @override final String when; @@ -1118,7 +1216,8 @@ class _LastSyncPlayCommand implements LastSyncPlayCommand { @JsonKey(includeFromJson: false, includeToJson: false) @pragma('vm:prefer-inline') _$LastSyncPlayCommandCopyWith<_LastSyncPlayCommand> get copyWith => - __$LastSyncPlayCommandCopyWithImpl<_LastSyncPlayCommand>(this, _$identity); + __$LastSyncPlayCommandCopyWithImpl<_LastSyncPlayCommand>( + this, _$identity); @override String toString() { @@ -1127,16 +1226,20 @@ class _LastSyncPlayCommand implements LastSyncPlayCommand { } /// @nodoc -abstract mixin class _$LastSyncPlayCommandCopyWith<$Res> implements $LastSyncPlayCommandCopyWith<$Res> { - factory _$LastSyncPlayCommandCopyWith(_LastSyncPlayCommand value, $Res Function(_LastSyncPlayCommand) _then) = +abstract mixin class _$LastSyncPlayCommandCopyWith<$Res> + implements $LastSyncPlayCommandCopyWith<$Res> { + factory _$LastSyncPlayCommandCopyWith(_LastSyncPlayCommand value, + $Res Function(_LastSyncPlayCommand) _then) = __$LastSyncPlayCommandCopyWithImpl; @override @useResult - $Res call({String when, int positionTicks, String command, String playlistItemId}); + $Res call( + {String when, int positionTicks, String command, String playlistItemId}); } /// @nodoc -class __$LastSyncPlayCommandCopyWithImpl<$Res> implements _$LastSyncPlayCommandCopyWith<$Res> { +class __$LastSyncPlayCommandCopyWithImpl<$Res> + implements _$LastSyncPlayCommandCopyWith<$Res> { __$LastSyncPlayCommandCopyWithImpl(this._self, this._then); final _LastSyncPlayCommand _self; diff --git a/lib/providers/api_provider.g.dart b/lib/providers/api_provider.g.dart index 709646cdc..dd4988991 100644 --- a/lib/providers/api_provider.g.dart +++ b/lib/providers/api_provider.g.dart @@ -10,10 +10,12 @@ String _$jellyApiHash() => r'9bc824d28d17f88f40c768cefb637144e0fbf346'; /// See also [JellyApi]. @ProviderFor(JellyApi) -final jellyApiProvider = AutoDisposeNotifierProvider.internal( +final jellyApiProvider = + AutoDisposeNotifierProvider.internal( JellyApi.new, name: r'jellyApiProvider', - debugGetCreateSourceHash: const bool.fromEnvironment('dart.vm.product') ? null : _$jellyApiHash, + debugGetCreateSourceHash: + const bool.fromEnvironment('dart.vm.product') ? null : _$jellyApiHash, dependencies: null, allTransitiveDependencies: null, ); diff --git a/lib/providers/connectivity_provider.g.dart b/lib/providers/connectivity_provider.g.dart index 330a708de..d44f52b38 100644 --- a/lib/providers/connectivity_provider.g.dart +++ b/lib/providers/connectivity_provider.g.dart @@ -6,14 +6,18 @@ part of 'connectivity_provider.dart'; // RiverpodGenerator // ************************************************************************** -String _$connectivityStatusHash() => r'52306e5e6a94bafdcb98d63e6fd5c7fe9c2a5bd7'; +String _$connectivityStatusHash() => + r'52306e5e6a94bafdcb98d63e6fd5c7fe9c2a5bd7'; /// See also [ConnectivityStatus]. @ProviderFor(ConnectivityStatus) -final connectivityStatusProvider = NotifierProvider.internal( +final connectivityStatusProvider = + NotifierProvider.internal( ConnectivityStatus.new, name: r'connectivityStatusProvider', - debugGetCreateSourceHash: const bool.fromEnvironment('dart.vm.product') ? null : _$connectivityStatusHash, + debugGetCreateSourceHash: const bool.fromEnvironment('dart.vm.product') + ? null + : _$connectivityStatusHash, dependencies: null, allTransitiveDependencies: null, ); diff --git a/lib/providers/control_panel/control_active_tasks_provider.g.dart b/lib/providers/control_panel/control_active_tasks_provider.g.dart index bad7af0ec..dececcfa0 100644 --- a/lib/providers/control_panel/control_active_tasks_provider.g.dart +++ b/lib/providers/control_panel/control_active_tasks_provider.g.dart @@ -6,14 +6,18 @@ part of 'control_active_tasks_provider.dart'; // RiverpodGenerator // ************************************************************************** -String _$controlActiveTasksHash() => r'afe69c1b45a2b1492d99f539fe8322d2c891942a'; +String _$controlActiveTasksHash() => + r'afe69c1b45a2b1492d99f539fe8322d2c891942a'; /// See also [ControlActiveTasks]. @ProviderFor(ControlActiveTasks) -final controlActiveTasksProvider = AutoDisposeNotifierProvider>.internal( +final controlActiveTasksProvider = + AutoDisposeNotifierProvider>.internal( ControlActiveTasks.new, name: r'controlActiveTasksProvider', - debugGetCreateSourceHash: const bool.fromEnvironment('dart.vm.product') ? null : _$controlActiveTasksHash, + debugGetCreateSourceHash: const bool.fromEnvironment('dart.vm.product') + ? null + : _$controlActiveTasksHash, dependencies: null, allTransitiveDependencies: null, ); diff --git a/lib/providers/control_panel/control_activity_provider.freezed.dart b/lib/providers/control_panel/control_activity_provider.freezed.dart index 7556a53fd..9c354f02a 100644 --- a/lib/providers/control_panel/control_activity_provider.freezed.dart +++ b/lib/providers/control_panel/control_activity_provider.freezed.dart @@ -29,7 +29,8 @@ mixin _$ControlActivityModel { @JsonKey(includeFromJson: false, includeToJson: false) @pragma('vm:prefer-inline') $ControlActivityModelCopyWith get copyWith => - _$ControlActivityModelCopyWithImpl(this as ControlActivityModel, _$identity); + _$ControlActivityModelCopyWithImpl( + this as ControlActivityModel, _$identity); @override String toString() { @@ -39,7 +40,8 @@ mixin _$ControlActivityModel { /// @nodoc abstract mixin class $ControlActivityModelCopyWith<$Res> { - factory $ControlActivityModelCopyWith(ControlActivityModel value, $Res Function(ControlActivityModel) _then) = + factory $ControlActivityModelCopyWith(ControlActivityModel value, + $Res Function(ControlActivityModel) _then) = _$ControlActivityModelCopyWithImpl; @useResult $Res call( @@ -59,7 +61,8 @@ abstract mixin class $ControlActivityModelCopyWith<$Res> { } /// @nodoc -class _$ControlActivityModelCopyWithImpl<$Res> implements $ControlActivityModelCopyWith<$Res> { +class _$ControlActivityModelCopyWithImpl<$Res> + implements $ControlActivityModelCopyWith<$Res> { _$ControlActivityModelCopyWithImpl(this._self, this._then); final ControlActivityModel _self; @@ -272,8 +275,16 @@ extension ControlActivityModelPatterns on ControlActivityModel { final _that = this; switch (_that) { case _ControlActivityModel() when $default != null: - return $default(_that.user, _that.deviceName, _that.client, _that.applicationVersion, _that.activityType, - _that.nowPlayingItem, _that.trickPlay, _that.playState, _that.lastActivityDate); + return $default( + _that.user, + _that.deviceName, + _that.client, + _that.applicationVersion, + _that.activityType, + _that.nowPlayingItem, + _that.trickPlay, + _that.playState, + _that.lastActivityDate); case _: return orElse(); } @@ -309,8 +320,16 @@ extension ControlActivityModelPatterns on ControlActivityModel { final _that = this; switch (_that) { case _ControlActivityModel(): - return $default(_that.user, _that.deviceName, _that.client, _that.applicationVersion, _that.activityType, - _that.nowPlayingItem, _that.trickPlay, _that.playState, _that.lastActivityDate); + return $default( + _that.user, + _that.deviceName, + _that.client, + _that.applicationVersion, + _that.activityType, + _that.nowPlayingItem, + _that.trickPlay, + _that.playState, + _that.lastActivityDate); case _: throw StateError('Unexpected subclass'); } @@ -345,8 +364,16 @@ extension ControlActivityModelPatterns on ControlActivityModel { final _that = this; switch (_that) { case _ControlActivityModel() when $default != null: - return $default(_that.user, _that.deviceName, _that.client, _that.applicationVersion, _that.activityType, - _that.nowPlayingItem, _that.trickPlay, _that.playState, _that.lastActivityDate); + return $default( + _that.user, + _that.deviceName, + _that.client, + _that.applicationVersion, + _that.activityType, + _that.nowPlayingItem, + _that.trickPlay, + _that.playState, + _that.lastActivityDate); case _: return null; } @@ -392,7 +419,8 @@ class _ControlActivityModel implements ControlActivityModel { @JsonKey(includeFromJson: false, includeToJson: false) @pragma('vm:prefer-inline') _$ControlActivityModelCopyWith<_ControlActivityModel> get copyWith => - __$ControlActivityModelCopyWithImpl<_ControlActivityModel>(this, _$identity); + __$ControlActivityModelCopyWithImpl<_ControlActivityModel>( + this, _$identity); @override String toString() { @@ -401,8 +429,10 @@ class _ControlActivityModel implements ControlActivityModel { } /// @nodoc -abstract mixin class _$ControlActivityModelCopyWith<$Res> implements $ControlActivityModelCopyWith<$Res> { - factory _$ControlActivityModelCopyWith(_ControlActivityModel value, $Res Function(_ControlActivityModel) _then) = +abstract mixin class _$ControlActivityModelCopyWith<$Res> + implements $ControlActivityModelCopyWith<$Res> { + factory _$ControlActivityModelCopyWith(_ControlActivityModel value, + $Res Function(_ControlActivityModel) _then) = __$ControlActivityModelCopyWithImpl; @override @useResult @@ -426,7 +456,8 @@ abstract mixin class _$ControlActivityModelCopyWith<$Res> implements $ControlAct } /// @nodoc -class __$ControlActivityModelCopyWithImpl<$Res> implements _$ControlActivityModelCopyWith<$Res> { +class __$ControlActivityModelCopyWithImpl<$Res> + implements _$ControlActivityModelCopyWith<$Res> { __$ControlActivityModelCopyWithImpl(this._self, this._then); final _ControlActivityModel _self; @@ -541,7 +572,8 @@ mixin _$ActivityPlayState { @JsonKey(includeFromJson: false, includeToJson: false) @pragma('vm:prefer-inline') $ActivityPlayStateCopyWith get copyWith => - _$ActivityPlayStateCopyWithImpl(this as ActivityPlayState, _$identity); + _$ActivityPlayStateCopyWithImpl( + this as ActivityPlayState, _$identity); @override String toString() { @@ -551,14 +583,16 @@ mixin _$ActivityPlayState { /// @nodoc abstract mixin class $ActivityPlayStateCopyWith<$Res> { - factory $ActivityPlayStateCopyWith(ActivityPlayState value, $Res Function(ActivityPlayState) _then) = + factory $ActivityPlayStateCopyWith( + ActivityPlayState value, $Res Function(ActivityPlayState) _then) = _$ActivityPlayStateCopyWithImpl; @useResult $Res call({Duration currentPosition, String? playMethod, bool? isPaused}); } /// @nodoc -class _$ActivityPlayStateCopyWithImpl<$Res> implements $ActivityPlayStateCopyWith<$Res> { +class _$ActivityPlayStateCopyWithImpl<$Res> + implements $ActivityPlayStateCopyWith<$Res> { _$ActivityPlayStateCopyWithImpl(this._self, this._then); final ActivityPlayState _self; @@ -683,13 +717,16 @@ extension ActivityPlayStatePatterns on ActivityPlayState { @optionalTypeArgs TResult maybeWhen( - TResult Function(Duration currentPosition, String? playMethod, bool? isPaused)? $default, { + TResult Function( + Duration currentPosition, String? playMethod, bool? isPaused)? + $default, { required TResult orElse(), }) { final _that = this; switch (_that) { case _ActivityPlayState() when $default != null: - return $default(_that.currentPosition, _that.playMethod, _that.isPaused); + return $default( + _that.currentPosition, _that.playMethod, _that.isPaused); case _: return orElse(); } @@ -710,12 +747,15 @@ extension ActivityPlayStatePatterns on ActivityPlayState { @optionalTypeArgs TResult when( - TResult Function(Duration currentPosition, String? playMethod, bool? isPaused) $default, + TResult Function( + Duration currentPosition, String? playMethod, bool? isPaused) + $default, ) { final _that = this; switch (_that) { case _ActivityPlayState(): - return $default(_that.currentPosition, _that.playMethod, _that.isPaused); + return $default( + _that.currentPosition, _that.playMethod, _that.isPaused); case _: throw StateError('Unexpected subclass'); } @@ -735,12 +775,15 @@ extension ActivityPlayStatePatterns on ActivityPlayState { @optionalTypeArgs TResult? whenOrNull( - TResult? Function(Duration currentPosition, String? playMethod, bool? isPaused)? $default, + TResult? Function( + Duration currentPosition, String? playMethod, bool? isPaused)? + $default, ) { final _that = this; switch (_that) { case _ActivityPlayState() when $default != null: - return $default(_that.currentPosition, _that.playMethod, _that.isPaused); + return $default( + _that.currentPosition, _that.playMethod, _that.isPaused); case _: return null; } @@ -750,7 +793,8 @@ extension ActivityPlayStatePatterns on ActivityPlayState { /// @nodoc class _ActivityPlayState implements ActivityPlayState { - _ActivityPlayState({required this.currentPosition, this.playMethod, this.isPaused}); + _ActivityPlayState( + {required this.currentPosition, this.playMethod, this.isPaused}); @override final Duration currentPosition; @@ -774,8 +818,10 @@ class _ActivityPlayState implements ActivityPlayState { } /// @nodoc -abstract mixin class _$ActivityPlayStateCopyWith<$Res> implements $ActivityPlayStateCopyWith<$Res> { - factory _$ActivityPlayStateCopyWith(_ActivityPlayState value, $Res Function(_ActivityPlayState) _then) = +abstract mixin class _$ActivityPlayStateCopyWith<$Res> + implements $ActivityPlayStateCopyWith<$Res> { + factory _$ActivityPlayStateCopyWith( + _ActivityPlayState value, $Res Function(_ActivityPlayState) _then) = __$ActivityPlayStateCopyWithImpl; @override @useResult @@ -783,7 +829,8 @@ abstract mixin class _$ActivityPlayStateCopyWith<$Res> implements $ActivityPlayS } /// @nodoc -class __$ActivityPlayStateCopyWithImpl<$Res> implements _$ActivityPlayStateCopyWith<$Res> { +class __$ActivityPlayStateCopyWithImpl<$Res> + implements _$ActivityPlayStateCopyWith<$Res> { __$ActivityPlayStateCopyWithImpl(this._self, this._then); final _ActivityPlayState _self; diff --git a/lib/providers/control_panel/control_activity_provider.g.dart b/lib/providers/control_panel/control_activity_provider.g.dart index 5a25c2ad1..cfdeae880 100644 --- a/lib/providers/control_panel/control_activity_provider.g.dart +++ b/lib/providers/control_panel/control_activity_provider.g.dart @@ -10,10 +10,13 @@ String _$controlActivityHash() => r'6bf669b9917ca9c694b6e0d498c57bbf1e77748c'; /// See also [ControlActivity]. @ProviderFor(ControlActivity) -final controlActivityProvider = AutoDisposeNotifierProvider>.internal( +final controlActivityProvider = AutoDisposeNotifierProvider>.internal( ControlActivity.new, name: r'controlActivityProvider', - debugGetCreateSourceHash: const bool.fromEnvironment('dart.vm.product') ? null : _$controlActivityHash, + debugGetCreateSourceHash: const bool.fromEnvironment('dart.vm.product') + ? null + : _$controlActivityHash, dependencies: null, allTransitiveDependencies: null, ); diff --git a/lib/providers/control_panel/control_dashboard_provider.freezed.dart b/lib/providers/control_panel/control_dashboard_provider.freezed.dart index 22d1ec78a..ae3cf1dfe 100644 --- a/lib/providers/control_panel/control_dashboard_provider.freezed.dart +++ b/lib/providers/control_panel/control_dashboard_provider.freezed.dart @@ -26,7 +26,8 @@ mixin _$ControlDashboardModel { @JsonKey(includeFromJson: false, includeToJson: false) @pragma('vm:prefer-inline') $ControlDashboardModelCopyWith get copyWith => - _$ControlDashboardModelCopyWithImpl(this as ControlDashboardModel, _$identity); + _$ControlDashboardModelCopyWithImpl( + this as ControlDashboardModel, _$identity); @override String toString() { @@ -36,7 +37,8 @@ mixin _$ControlDashboardModel { /// @nodoc abstract mixin class $ControlDashboardModelCopyWith<$Res> { - factory $ControlDashboardModelCopyWith(ControlDashboardModel value, $Res Function(ControlDashboardModel) _then) = + factory $ControlDashboardModelCopyWith(ControlDashboardModel value, + $Res Function(ControlDashboardModel) _then) = _$ControlDashboardModelCopyWithImpl; @useResult $Res call( @@ -49,7 +51,8 @@ abstract mixin class $ControlDashboardModelCopyWith<$Res> { } /// @nodoc -class _$ControlDashboardModelCopyWithImpl<$Res> implements $ControlDashboardModelCopyWith<$Res> { +class _$ControlDashboardModelCopyWithImpl<$Res> + implements $ControlDashboardModelCopyWith<$Res> { _$ControlDashboardModelCopyWithImpl(this._self, this._then); final ControlDashboardModel _self; @@ -189,16 +192,21 @@ extension ControlDashboardModelPatterns on ControlDashboardModel { @optionalTypeArgs TResult maybeWhen( - TResult Function(String? serverName, String? serverVersion, String? webVersion, bool isShuttingDown, - jelly.ItemCounts? itemCounts, jelly.SystemStorageDto? storagePaths)? + TResult Function( + String? serverName, + String? serverVersion, + String? webVersion, + bool isShuttingDown, + jelly.ItemCounts? itemCounts, + jelly.SystemStorageDto? storagePaths)? $default, { required TResult orElse(), }) { final _that = this; switch (_that) { case _ControlDashboardModel() when $default != null: - return $default(_that.serverName, _that.serverVersion, _that.webVersion, _that.isShuttingDown, _that.itemCounts, - _that.storagePaths); + return $default(_that.serverName, _that.serverVersion, _that.webVersion, + _that.isShuttingDown, _that.itemCounts, _that.storagePaths); case _: return orElse(); } @@ -219,15 +227,20 @@ extension ControlDashboardModelPatterns on ControlDashboardModel { @optionalTypeArgs TResult when( - TResult Function(String? serverName, String? serverVersion, String? webVersion, bool isShuttingDown, - jelly.ItemCounts? itemCounts, jelly.SystemStorageDto? storagePaths) + TResult Function( + String? serverName, + String? serverVersion, + String? webVersion, + bool isShuttingDown, + jelly.ItemCounts? itemCounts, + jelly.SystemStorageDto? storagePaths) $default, ) { final _that = this; switch (_that) { case _ControlDashboardModel(): - return $default(_that.serverName, _that.serverVersion, _that.webVersion, _that.isShuttingDown, _that.itemCounts, - _that.storagePaths); + return $default(_that.serverName, _that.serverVersion, _that.webVersion, + _that.isShuttingDown, _that.itemCounts, _that.storagePaths); case _: throw StateError('Unexpected subclass'); } @@ -247,15 +260,20 @@ extension ControlDashboardModelPatterns on ControlDashboardModel { @optionalTypeArgs TResult? whenOrNull( - TResult? Function(String? serverName, String? serverVersion, String? webVersion, bool isShuttingDown, - jelly.ItemCounts? itemCounts, jelly.SystemStorageDto? storagePaths)? + TResult? Function( + String? serverName, + String? serverVersion, + String? webVersion, + bool isShuttingDown, + jelly.ItemCounts? itemCounts, + jelly.SystemStorageDto? storagePaths)? $default, ) { final _that = this; switch (_that) { case _ControlDashboardModel() when $default != null: - return $default(_that.serverName, _that.serverVersion, _that.webVersion, _that.isShuttingDown, _that.itemCounts, - _that.storagePaths); + return $default(_that.serverName, _that.serverVersion, _that.webVersion, + _that.isShuttingDown, _that.itemCounts, _that.storagePaths); case _: return null; } @@ -293,7 +311,8 @@ class _ControlDashboardModel implements ControlDashboardModel { @JsonKey(includeFromJson: false, includeToJson: false) @pragma('vm:prefer-inline') _$ControlDashboardModelCopyWith<_ControlDashboardModel> get copyWith => - __$ControlDashboardModelCopyWithImpl<_ControlDashboardModel>(this, _$identity); + __$ControlDashboardModelCopyWithImpl<_ControlDashboardModel>( + this, _$identity); @override String toString() { @@ -302,8 +321,10 @@ class _ControlDashboardModel implements ControlDashboardModel { } /// @nodoc -abstract mixin class _$ControlDashboardModelCopyWith<$Res> implements $ControlDashboardModelCopyWith<$Res> { - factory _$ControlDashboardModelCopyWith(_ControlDashboardModel value, $Res Function(_ControlDashboardModel) _then) = +abstract mixin class _$ControlDashboardModelCopyWith<$Res> + implements $ControlDashboardModelCopyWith<$Res> { + factory _$ControlDashboardModelCopyWith(_ControlDashboardModel value, + $Res Function(_ControlDashboardModel) _then) = __$ControlDashboardModelCopyWithImpl; @override @useResult @@ -317,7 +338,8 @@ abstract mixin class _$ControlDashboardModelCopyWith<$Res> implements $ControlDa } /// @nodoc -class __$ControlDashboardModelCopyWithImpl<$Res> implements _$ControlDashboardModelCopyWith<$Res> { +class __$ControlDashboardModelCopyWithImpl<$Res> + implements _$ControlDashboardModelCopyWith<$Res> { __$ControlDashboardModelCopyWithImpl(this._self, this._then); final _ControlDashboardModel _self; diff --git a/lib/providers/control_panel/control_dashboard_provider.g.dart b/lib/providers/control_panel/control_dashboard_provider.g.dart index 2366051c6..2a7733968 100644 --- a/lib/providers/control_panel/control_dashboard_provider.g.dart +++ b/lib/providers/control_panel/control_dashboard_provider.g.dart @@ -10,10 +10,13 @@ String _$controlDashboardHash() => r'5d6d925acafc9a0e837351cf5d29952cb1f507eb'; /// See also [ControlDashboard]. @ProviderFor(ControlDashboard) -final controlDashboardProvider = AutoDisposeNotifierProvider.internal( +final controlDashboardProvider = AutoDisposeNotifierProvider.internal( ControlDashboard.new, name: r'controlDashboardProvider', - debugGetCreateSourceHash: const bool.fromEnvironment('dart.vm.product') ? null : _$controlDashboardHash, + debugGetCreateSourceHash: const bool.fromEnvironment('dart.vm.product') + ? null + : _$controlDashboardHash, dependencies: null, allTransitiveDependencies: null, ); diff --git a/lib/providers/control_panel/control_device_discovery_provider.freezed.dart b/lib/providers/control_panel/control_device_discovery_provider.freezed.dart index 0e480d363..dde87e51c 100644 --- a/lib/providers/control_panel/control_device_discovery_provider.freezed.dart +++ b/lib/providers/control_panel/control_device_discovery_provider.freezed.dart @@ -21,8 +21,9 @@ mixin _$ControlDeviceDiscoveryModel { /// with the given fields replaced by the non-null parameter values. @JsonKey(includeFromJson: false, includeToJson: false) @pragma('vm:prefer-inline') - $ControlDeviceDiscoveryModelCopyWith get copyWith => - _$ControlDeviceDiscoveryModelCopyWithImpl( + $ControlDeviceDiscoveryModelCopyWith + get copyWith => _$ControlDeviceDiscoveryModelCopyWithImpl< + ControlDeviceDiscoveryModel>( this as ControlDeviceDiscoveryModel, _$identity); @override @@ -34,14 +35,16 @@ mixin _$ControlDeviceDiscoveryModel { /// @nodoc abstract mixin class $ControlDeviceDiscoveryModelCopyWith<$Res> { factory $ControlDeviceDiscoveryModelCopyWith( - ControlDeviceDiscoveryModel value, $Res Function(ControlDeviceDiscoveryModel) _then) = + ControlDeviceDiscoveryModel value, + $Res Function(ControlDeviceDiscoveryModel) _then) = _$ControlDeviceDiscoveryModelCopyWithImpl; @useResult $Res call({bool isLoading, List devices}); } /// @nodoc -class _$ControlDeviceDiscoveryModelCopyWithImpl<$Res> implements $ControlDeviceDiscoveryModelCopyWith<$Res> { +class _$ControlDeviceDiscoveryModelCopyWithImpl<$Res> + implements $ControlDeviceDiscoveryModelCopyWith<$Res> { _$ControlDeviceDiscoveryModelCopyWithImpl(this._self, this._then); final ControlDeviceDiscoveryModel _self; @@ -228,7 +231,8 @@ extension ControlDeviceDiscoveryModelPatterns on ControlDeviceDiscoveryModel { /// @nodoc class _ControlDeviceDiscoveryModel implements ControlDeviceDiscoveryModel { - const _ControlDeviceDiscoveryModel({this.isLoading = true, final List devices = const []}) + const _ControlDeviceDiscoveryModel( + {this.isLoading = true, final List devices = const []}) : _devices = devices; @override @@ -248,8 +252,9 @@ class _ControlDeviceDiscoveryModel implements ControlDeviceDiscoveryModel { @override @JsonKey(includeFromJson: false, includeToJson: false) @pragma('vm:prefer-inline') - _$ControlDeviceDiscoveryModelCopyWith<_ControlDeviceDiscoveryModel> get copyWith => - __$ControlDeviceDiscoveryModelCopyWithImpl<_ControlDeviceDiscoveryModel>(this, _$identity); + _$ControlDeviceDiscoveryModelCopyWith<_ControlDeviceDiscoveryModel> + get copyWith => __$ControlDeviceDiscoveryModelCopyWithImpl< + _ControlDeviceDiscoveryModel>(this, _$identity); @override String toString() { @@ -258,9 +263,11 @@ class _ControlDeviceDiscoveryModel implements ControlDeviceDiscoveryModel { } /// @nodoc -abstract mixin class _$ControlDeviceDiscoveryModelCopyWith<$Res> implements $ControlDeviceDiscoveryModelCopyWith<$Res> { +abstract mixin class _$ControlDeviceDiscoveryModelCopyWith<$Res> + implements $ControlDeviceDiscoveryModelCopyWith<$Res> { factory _$ControlDeviceDiscoveryModelCopyWith( - _ControlDeviceDiscoveryModel value, $Res Function(_ControlDeviceDiscoveryModel) _then) = + _ControlDeviceDiscoveryModel value, + $Res Function(_ControlDeviceDiscoveryModel) _then) = __$ControlDeviceDiscoveryModelCopyWithImpl; @override @useResult @@ -268,7 +275,8 @@ abstract mixin class _$ControlDeviceDiscoveryModelCopyWith<$Res> implements $Con } /// @nodoc -class __$ControlDeviceDiscoveryModelCopyWithImpl<$Res> implements _$ControlDeviceDiscoveryModelCopyWith<$Res> { +class __$ControlDeviceDiscoveryModelCopyWithImpl<$Res> + implements _$ControlDeviceDiscoveryModelCopyWith<$Res> { __$ControlDeviceDiscoveryModelCopyWithImpl(this._self, this._then); final _ControlDeviceDiscoveryModel _self; diff --git a/lib/providers/control_panel/control_device_discovery_provider.g.dart b/lib/providers/control_panel/control_device_discovery_provider.g.dart index 247b181b1..b0d34dcab 100644 --- a/lib/providers/control_panel/control_device_discovery_provider.g.dart +++ b/lib/providers/control_panel/control_device_discovery_provider.g.dart @@ -6,19 +6,23 @@ part of 'control_device_discovery_provider.dart'; // RiverpodGenerator // ************************************************************************** -String _$controlDeviceDiscoveryHash() => r'2d01dd615a1afd7dd6f3ec69dd332c341a0fdc81'; +String _$controlDeviceDiscoveryHash() => + r'2d01dd615a1afd7dd6f3ec69dd332c341a0fdc81'; /// See also [ControlDeviceDiscovery]. @ProviderFor(ControlDeviceDiscovery) -final controlDeviceDiscoveryProvider = - AutoDisposeNotifierProvider.internal( +final controlDeviceDiscoveryProvider = AutoDisposeNotifierProvider< + ControlDeviceDiscovery, ControlDeviceDiscoveryModel>.internal( ControlDeviceDiscovery.new, name: r'controlDeviceDiscoveryProvider', - debugGetCreateSourceHash: const bool.fromEnvironment('dart.vm.product') ? null : _$controlDeviceDiscoveryHash, + debugGetCreateSourceHash: const bool.fromEnvironment('dart.vm.product') + ? null + : _$controlDeviceDiscoveryHash, dependencies: null, allTransitiveDependencies: null, ); -typedef _$ControlDeviceDiscovery = AutoDisposeNotifier; +typedef _$ControlDeviceDiscovery + = AutoDisposeNotifier; // ignore_for_file: type=lint // ignore_for_file: subtype_of_sealed_class, invalid_use_of_internal_member, invalid_use_of_visible_for_testing_member, deprecated_member_use_from_same_package diff --git a/lib/providers/control_panel/control_libraries_provider.freezed.dart b/lib/providers/control_panel/control_libraries_provider.freezed.dart index ba1b3b2a1..50de08413 100644 --- a/lib/providers/control_panel/control_libraries_provider.freezed.dart +++ b/lib/providers/control_panel/control_libraries_provider.freezed.dart @@ -27,7 +27,8 @@ mixin _$ControlLibrariesModel implements DiagnosticableTreeMixin { @JsonKey(includeFromJson: false, includeToJson: false) @pragma('vm:prefer-inline') $ControlLibrariesModelCopyWith get copyWith => - _$ControlLibrariesModelCopyWithImpl(this as ControlLibrariesModel, _$identity); + _$ControlLibrariesModelCopyWithImpl( + this as ControlLibrariesModel, _$identity); @override void debugFillProperties(DiagnosticPropertiesBuilder properties) { @@ -50,7 +51,8 @@ mixin _$ControlLibrariesModel implements DiagnosticableTreeMixin { /// @nodoc abstract mixin class $ControlLibrariesModelCopyWith<$Res> { - factory $ControlLibrariesModelCopyWith(ControlLibrariesModel value, $Res Function(ControlLibrariesModel) _then) = + factory $ControlLibrariesModelCopyWith(ControlLibrariesModel value, + $Res Function(ControlLibrariesModel) _then) = _$ControlLibrariesModelCopyWithImpl; @useResult $Res call( @@ -64,7 +66,8 @@ abstract mixin class $ControlLibrariesModelCopyWith<$Res> { } /// @nodoc -class _$ControlLibrariesModelCopyWithImpl<$Res> implements $ControlLibrariesModelCopyWith<$Res> { +class _$ControlLibrariesModelCopyWithImpl<$Res> + implements $ControlLibrariesModelCopyWith<$Res> { _$ControlLibrariesModelCopyWithImpl(this._self, this._then); final ControlLibrariesModel _self; @@ -223,8 +226,14 @@ extension ControlLibrariesModelPatterns on ControlLibrariesModel { final _that = this; switch (_that) { case _ControlLibrariesModel() when $default != null: - return $default(_that.availableLibraries, _that.selectedLibrary, _that.newVirtualFolder, _that.cultures, - _that.countries, _that.virtualFolders, _that.availableOptions); + return $default( + _that.availableLibraries, + _that.selectedLibrary, + _that.newVirtualFolder, + _that.cultures, + _that.countries, + _that.virtualFolders, + _that.availableOptions); case _: return orElse(); } @@ -258,8 +267,14 @@ extension ControlLibrariesModelPatterns on ControlLibrariesModel { final _that = this; switch (_that) { case _ControlLibrariesModel(): - return $default(_that.availableLibraries, _that.selectedLibrary, _that.newVirtualFolder, _that.cultures, - _that.countries, _that.virtualFolders, _that.availableOptions); + return $default( + _that.availableLibraries, + _that.selectedLibrary, + _that.newVirtualFolder, + _that.cultures, + _that.countries, + _that.virtualFolders, + _that.availableOptions); case _: throw StateError('Unexpected subclass'); } @@ -292,8 +307,14 @@ extension ControlLibrariesModelPatterns on ControlLibrariesModel { final _that = this; switch (_that) { case _ControlLibrariesModel() when $default != null: - return $default(_that.availableLibraries, _that.selectedLibrary, _that.newVirtualFolder, _that.cultures, - _that.countries, _that.virtualFolders, _that.availableOptions); + return $default( + _that.availableLibraries, + _that.selectedLibrary, + _that.newVirtualFolder, + _that.cultures, + _that.countries, + _that.virtualFolders, + _that.availableOptions); case _: return null; } @@ -302,7 +323,8 @@ extension ControlLibrariesModelPatterns on ControlLibrariesModel { /// @nodoc -class _ControlLibrariesModel extends ControlLibrariesModel with DiagnosticableTreeMixin { +class _ControlLibrariesModel extends ControlLibrariesModel + with DiagnosticableTreeMixin { _ControlLibrariesModel( {final List availableLibraries = const [], this.selectedLibrary, @@ -321,7 +343,8 @@ class _ControlLibrariesModel extends ControlLibrariesModel with DiagnosticableTr @override @JsonKey() List get availableLibraries { - if (_availableLibraries is EqualUnmodifiableListView) return _availableLibraries; + if (_availableLibraries is EqualUnmodifiableListView) + return _availableLibraries; // ignore: implicit_dynamic_type return EqualUnmodifiableListView(_availableLibraries); } @@ -366,7 +389,8 @@ class _ControlLibrariesModel extends ControlLibrariesModel with DiagnosticableTr @JsonKey(includeFromJson: false, includeToJson: false) @pragma('vm:prefer-inline') _$ControlLibrariesModelCopyWith<_ControlLibrariesModel> get copyWith => - __$ControlLibrariesModelCopyWithImpl<_ControlLibrariesModel>(this, _$identity); + __$ControlLibrariesModelCopyWithImpl<_ControlLibrariesModel>( + this, _$identity); @override void debugFillProperties(DiagnosticPropertiesBuilder properties) { @@ -388,8 +412,10 @@ class _ControlLibrariesModel extends ControlLibrariesModel with DiagnosticableTr } /// @nodoc -abstract mixin class _$ControlLibrariesModelCopyWith<$Res> implements $ControlLibrariesModelCopyWith<$Res> { - factory _$ControlLibrariesModelCopyWith(_ControlLibrariesModel value, $Res Function(_ControlLibrariesModel) _then) = +abstract mixin class _$ControlLibrariesModelCopyWith<$Res> + implements $ControlLibrariesModelCopyWith<$Res> { + factory _$ControlLibrariesModelCopyWith(_ControlLibrariesModel value, + $Res Function(_ControlLibrariesModel) _then) = __$ControlLibrariesModelCopyWithImpl; @override @useResult @@ -404,7 +430,8 @@ abstract mixin class _$ControlLibrariesModelCopyWith<$Res> implements $ControlLi } /// @nodoc -class __$ControlLibrariesModelCopyWithImpl<$Res> implements _$ControlLibrariesModelCopyWith<$Res> { +class __$ControlLibrariesModelCopyWithImpl<$Res> + implements _$ControlLibrariesModelCopyWith<$Res> { __$ControlLibrariesModelCopyWithImpl(this._self, this._then); final _ControlLibrariesModel _self; diff --git a/lib/providers/control_panel/control_libraries_provider.g.dart b/lib/providers/control_panel/control_libraries_provider.g.dart index 668421052..91929ee8f 100644 --- a/lib/providers/control_panel/control_libraries_provider.g.dart +++ b/lib/providers/control_panel/control_libraries_provider.g.dart @@ -10,10 +10,13 @@ String _$controlLibrariesHash() => r'e3da05dc3d283260923cedee26a2069ad6ec2ab0'; /// See also [ControlLibraries]. @ProviderFor(ControlLibraries) -final controlLibrariesProvider = AutoDisposeNotifierProvider.internal( +final controlLibrariesProvider = AutoDisposeNotifierProvider.internal( ControlLibraries.new, name: r'controlLibrariesProvider', - debugGetCreateSourceHash: const bool.fromEnvironment('dart.vm.product') ? null : _$controlLibrariesHash, + debugGetCreateSourceHash: const bool.fromEnvironment('dart.vm.product') + ? null + : _$controlLibrariesHash, dependencies: null, allTransitiveDependencies: null, ); diff --git a/lib/providers/control_panel/control_livetv_provider.freezed.dart b/lib/providers/control_panel/control_livetv_provider.freezed.dart index 1e843f251..114487606 100644 --- a/lib/providers/control_panel/control_livetv_provider.freezed.dart +++ b/lib/providers/control_panel/control_livetv_provider.freezed.dart @@ -21,7 +21,8 @@ mixin _$ControlLiveTvModel { @JsonKey(includeFromJson: false, includeToJson: false) @pragma('vm:prefer-inline') $ControlLiveTvModelCopyWith get copyWith => - _$ControlLiveTvModelCopyWithImpl(this as ControlLiveTvModel, _$identity); + _$ControlLiveTvModelCopyWithImpl( + this as ControlLiveTvModel, _$identity); @override String toString() { @@ -31,14 +32,16 @@ mixin _$ControlLiveTvModel { /// @nodoc abstract mixin class $ControlLiveTvModelCopyWith<$Res> { - factory $ControlLiveTvModelCopyWith(ControlLiveTvModel value, $Res Function(ControlLiveTvModel) _then) = + factory $ControlLiveTvModelCopyWith( + ControlLiveTvModel value, $Res Function(ControlLiveTvModel) _then) = _$ControlLiveTvModelCopyWithImpl; @useResult $Res call({LiveTvOptions? liveTvOptions}); } /// @nodoc -class _$ControlLiveTvModelCopyWithImpl<$Res> implements $ControlLiveTvModelCopyWith<$Res> { +class _$ControlLiveTvModelCopyWithImpl<$Res> + implements $ControlLiveTvModelCopyWith<$Res> { _$ControlLiveTvModelCopyWithImpl(this._self, this._then); final ControlLiveTvModel _self; @@ -240,8 +243,10 @@ class _ControlLiveTvModel implements ControlLiveTvModel { } /// @nodoc -abstract mixin class _$ControlLiveTvModelCopyWith<$Res> implements $ControlLiveTvModelCopyWith<$Res> { - factory _$ControlLiveTvModelCopyWith(_ControlLiveTvModel value, $Res Function(_ControlLiveTvModel) _then) = +abstract mixin class _$ControlLiveTvModelCopyWith<$Res> + implements $ControlLiveTvModelCopyWith<$Res> { + factory _$ControlLiveTvModelCopyWith( + _ControlLiveTvModel value, $Res Function(_ControlLiveTvModel) _then) = __$ControlLiveTvModelCopyWithImpl; @override @useResult @@ -249,7 +254,8 @@ abstract mixin class _$ControlLiveTvModelCopyWith<$Res> implements $ControlLiveT } /// @nodoc -class __$ControlLiveTvModelCopyWithImpl<$Res> implements _$ControlLiveTvModelCopyWith<$Res> { +class __$ControlLiveTvModelCopyWithImpl<$Res> + implements _$ControlLiveTvModelCopyWith<$Res> { __$ControlLiveTvModelCopyWithImpl(this._self, this._then); final _ControlLiveTvModel _self; diff --git a/lib/providers/control_panel/control_livetv_provider.g.dart b/lib/providers/control_panel/control_livetv_provider.g.dart index f131e00d7..8865a7b92 100644 --- a/lib/providers/control_panel/control_livetv_provider.g.dart +++ b/lib/providers/control_panel/control_livetv_provider.g.dart @@ -10,10 +10,13 @@ String _$controlLiveTvHash() => r'f82b3b1ae56471d190aa7fa8fb5a34a6ccd73761'; /// See also [ControlLiveTv]. @ProviderFor(ControlLiveTv) -final controlLiveTvProvider = AutoDisposeNotifierProvider.internal( +final controlLiveTvProvider = + AutoDisposeNotifierProvider.internal( ControlLiveTv.new, name: r'controlLiveTvProvider', - debugGetCreateSourceHash: const bool.fromEnvironment('dart.vm.product') ? null : _$controlLiveTvHash, + debugGetCreateSourceHash: const bool.fromEnvironment('dart.vm.product') + ? null + : _$controlLiveTvHash, dependencies: null, allTransitiveDependencies: null, ); diff --git a/lib/providers/control_panel/control_server_provider.freezed.dart b/lib/providers/control_panel/control_server_provider.freezed.dart index 7d952dc8c..542964639 100644 --- a/lib/providers/control_panel/control_server_provider.freezed.dart +++ b/lib/providers/control_panel/control_server_provider.freezed.dart @@ -28,7 +28,8 @@ mixin _$ControlServerModel { @JsonKey(includeFromJson: false, includeToJson: false) @pragma('vm:prefer-inline') $ControlServerModelCopyWith get copyWith => - _$ControlServerModelCopyWithImpl(this as ControlServerModel, _$identity); + _$ControlServerModelCopyWithImpl( + this as ControlServerModel, _$identity); @override String toString() { @@ -38,7 +39,8 @@ mixin _$ControlServerModel { /// @nodoc abstract mixin class $ControlServerModelCopyWith<$Res> { - factory $ControlServerModelCopyWith(ControlServerModel value, $Res Function(ControlServerModel) _then) = + factory $ControlServerModelCopyWith( + ControlServerModel value, $Res Function(ControlServerModel) _then) = _$ControlServerModelCopyWithImpl; @useResult $Res call( @@ -53,7 +55,8 @@ abstract mixin class $ControlServerModelCopyWith<$Res> { } /// @nodoc -class _$ControlServerModelCopyWithImpl<$Res> implements $ControlServerModelCopyWith<$Res> { +class _$ControlServerModelCopyWithImpl<$Res> + implements $ControlServerModelCopyWith<$Res> { _$ControlServerModelCopyWithImpl(this._self, this._then); final ControlServerModel _self; @@ -218,8 +221,15 @@ extension ControlServerModelPatterns on ControlServerModel { final _that = this; switch (_that) { case _ControlServerModel() when $default != null: - return $default(_that.name, _that.language, _that.availableLanguages, _that.cachePath, _that.metaDataPath, - _that.quickConnectEnabled, _that.maxConcurrentLibraryScan, _that.maxImageDecodingThreads); + return $default( + _that.name, + _that.language, + _that.availableLanguages, + _that.cachePath, + _that.metaDataPath, + _that.quickConnectEnabled, + _that.maxConcurrentLibraryScan, + _that.maxImageDecodingThreads); case _: return orElse(); } @@ -254,8 +264,15 @@ extension ControlServerModelPatterns on ControlServerModel { final _that = this; switch (_that) { case _ControlServerModel(): - return $default(_that.name, _that.language, _that.availableLanguages, _that.cachePath, _that.metaDataPath, - _that.quickConnectEnabled, _that.maxConcurrentLibraryScan, _that.maxImageDecodingThreads); + return $default( + _that.name, + _that.language, + _that.availableLanguages, + _that.cachePath, + _that.metaDataPath, + _that.quickConnectEnabled, + _that.maxConcurrentLibraryScan, + _that.maxImageDecodingThreads); case _: throw StateError('Unexpected subclass'); } @@ -289,8 +306,15 @@ extension ControlServerModelPatterns on ControlServerModel { final _that = this; switch (_that) { case _ControlServerModel() when $default != null: - return $default(_that.name, _that.language, _that.availableLanguages, _that.cachePath, _that.metaDataPath, - _that.quickConnectEnabled, _that.maxConcurrentLibraryScan, _that.maxImageDecodingThreads); + return $default( + _that.name, + _that.language, + _that.availableLanguages, + _that.cachePath, + _that.metaDataPath, + _that.quickConnectEnabled, + _that.maxConcurrentLibraryScan, + _that.maxImageDecodingThreads); case _: return null; } @@ -321,7 +345,8 @@ class _ControlServerModel implements ControlServerModel { List? get availableLanguages { final value = _availableLanguages; if (value == null) return null; - if (_availableLanguages is EqualUnmodifiableListView) return _availableLanguages; + if (_availableLanguages is EqualUnmodifiableListView) + return _availableLanguages; // ignore: implicit_dynamic_type return EqualUnmodifiableListView(value); } @@ -357,8 +382,10 @@ class _ControlServerModel implements ControlServerModel { } /// @nodoc -abstract mixin class _$ControlServerModelCopyWith<$Res> implements $ControlServerModelCopyWith<$Res> { - factory _$ControlServerModelCopyWith(_ControlServerModel value, $Res Function(_ControlServerModel) _then) = +abstract mixin class _$ControlServerModelCopyWith<$Res> + implements $ControlServerModelCopyWith<$Res> { + factory _$ControlServerModelCopyWith( + _ControlServerModel value, $Res Function(_ControlServerModel) _then) = __$ControlServerModelCopyWithImpl; @override @useResult @@ -374,7 +401,8 @@ abstract mixin class _$ControlServerModelCopyWith<$Res> implements $ControlServe } /// @nodoc -class __$ControlServerModelCopyWithImpl<$Res> implements _$ControlServerModelCopyWith<$Res> { +class __$ControlServerModelCopyWithImpl<$Res> + implements _$ControlServerModelCopyWith<$Res> { __$ControlServerModelCopyWithImpl(this._self, this._then); final _ControlServerModel _self; diff --git a/lib/providers/control_panel/control_server_provider.g.dart b/lib/providers/control_panel/control_server_provider.g.dart index bbfe62a4b..2fa466dcb 100644 --- a/lib/providers/control_panel/control_server_provider.g.dart +++ b/lib/providers/control_panel/control_server_provider.g.dart @@ -10,10 +10,13 @@ String _$controlServerHash() => r'6b0310b063bd0de6ba7b332f056dd5da50648af4'; /// See also [ControlServer]. @ProviderFor(ControlServer) -final controlServerProvider = AutoDisposeNotifierProvider.internal( +final controlServerProvider = + AutoDisposeNotifierProvider.internal( ControlServer.new, name: r'controlServerProvider', - debugGetCreateSourceHash: const bool.fromEnvironment('dart.vm.product') ? null : _$controlServerHash, + debugGetCreateSourceHash: const bool.fromEnvironment('dart.vm.product') + ? null + : _$controlServerHash, dependencies: null, allTransitiveDependencies: null, ); diff --git a/lib/providers/control_panel/control_tuner_edit_provider.freezed.dart b/lib/providers/control_panel/control_tuner_edit_provider.freezed.dart index 57cd64f13..7bf353990 100644 --- a/lib/providers/control_panel/control_tuner_edit_provider.freezed.dart +++ b/lib/providers/control_panel/control_tuner_edit_provider.freezed.dart @@ -37,7 +37,8 @@ mixin _$ControlTunerEditModel { @JsonKey(includeFromJson: false, includeToJson: false) @pragma('vm:prefer-inline') $ControlTunerEditModelCopyWith get copyWith => - _$ControlTunerEditModelCopyWithImpl(this as ControlTunerEditModel, _$identity); + _$ControlTunerEditModelCopyWithImpl( + this as ControlTunerEditModel, _$identity); @override String toString() { @@ -47,7 +48,8 @@ mixin _$ControlTunerEditModel { /// @nodoc abstract mixin class $ControlTunerEditModelCopyWith<$Res> { - factory $ControlTunerEditModelCopyWith(ControlTunerEditModel value, $Res Function(ControlTunerEditModel) _then) = + factory $ControlTunerEditModelCopyWith(ControlTunerEditModel value, + $Res Function(ControlTunerEditModel) _then) = _$ControlTunerEditModelCopyWithImpl; @useResult $Res call( @@ -71,7 +73,8 @@ abstract mixin class $ControlTunerEditModelCopyWith<$Res> { } /// @nodoc -class _$ControlTunerEditModelCopyWithImpl<$Res> implements $ControlTunerEditModelCopyWith<$Res> { +class _$ControlTunerEditModelCopyWithImpl<$Res> + implements $ControlTunerEditModelCopyWith<$Res> { _$ControlTunerEditModelCopyWithImpl(this._self, this._then); final ControlTunerEditModel _self; @@ -513,7 +516,8 @@ class _ControlTunerEditModel implements ControlTunerEditModel { @JsonKey(includeFromJson: false, includeToJson: false) @pragma('vm:prefer-inline') _$ControlTunerEditModelCopyWith<_ControlTunerEditModel> get copyWith => - __$ControlTunerEditModelCopyWithImpl<_ControlTunerEditModel>(this, _$identity); + __$ControlTunerEditModelCopyWithImpl<_ControlTunerEditModel>( + this, _$identity); @override String toString() { @@ -522,8 +526,10 @@ class _ControlTunerEditModel implements ControlTunerEditModel { } /// @nodoc -abstract mixin class _$ControlTunerEditModelCopyWith<$Res> implements $ControlTunerEditModelCopyWith<$Res> { - factory _$ControlTunerEditModelCopyWith(_ControlTunerEditModel value, $Res Function(_ControlTunerEditModel) _then) = +abstract mixin class _$ControlTunerEditModelCopyWith<$Res> + implements $ControlTunerEditModelCopyWith<$Res> { + factory _$ControlTunerEditModelCopyWith(_ControlTunerEditModel value, + $Res Function(_ControlTunerEditModel) _then) = __$ControlTunerEditModelCopyWithImpl; @override @useResult @@ -548,7 +554,8 @@ abstract mixin class _$ControlTunerEditModelCopyWith<$Res> implements $ControlTu } /// @nodoc -class __$ControlTunerEditModelCopyWithImpl<$Res> implements _$ControlTunerEditModelCopyWith<$Res> { +class __$ControlTunerEditModelCopyWithImpl<$Res> + implements _$ControlTunerEditModelCopyWith<$Res> { __$ControlTunerEditModelCopyWithImpl(this._self, this._then); final _ControlTunerEditModel _self; diff --git a/lib/providers/control_panel/control_tuner_edit_provider.g.dart b/lib/providers/control_panel/control_tuner_edit_provider.g.dart index a5c511c65..2e66bec5b 100644 --- a/lib/providers/control_panel/control_tuner_edit_provider.g.dart +++ b/lib/providers/control_panel/control_tuner_edit_provider.g.dart @@ -29,7 +29,8 @@ class _SystemHash { } } -abstract class _$ControlTunerEdit extends BuildlessAutoDisposeNotifier { +abstract class _$ControlTunerEdit + extends BuildlessAutoDisposeNotifier { late final TunerHostInfo? initialTuner; ControlTunerEditModel build( @@ -72,14 +73,16 @@ class ControlTunerEditFamily extends Family { static const Iterable? _allTransitiveDependencies = null; @override - Iterable? get allTransitiveDependencies => _allTransitiveDependencies; + Iterable? get allTransitiveDependencies => + _allTransitiveDependencies; @override String? get name => r'controlTunerEditProvider'; } /// See also [ControlTunerEdit]. -class ControlTunerEditProvider extends AutoDisposeNotifierProviderImpl { +class ControlTunerEditProvider extends AutoDisposeNotifierProviderImpl< + ControlTunerEdit, ControlTunerEditModel> { /// See also [ControlTunerEdit]. ControlTunerEditProvider( TunerHostInfo? initialTuner, @@ -87,9 +90,13 @@ class ControlTunerEditProvider extends AutoDisposeNotifierProviderImpl ControlTunerEdit()..initialTuner = initialTuner, from: controlTunerEditProvider, name: r'controlTunerEditProvider', - debugGetCreateSourceHash: const bool.fromEnvironment('dart.vm.product') ? null : _$controlTunerEditHash, + debugGetCreateSourceHash: + const bool.fromEnvironment('dart.vm.product') + ? null + : _$controlTunerEditHash, dependencies: ControlTunerEditFamily._dependencies, - allTransitiveDependencies: ControlTunerEditFamily._allTransitiveDependencies, + allTransitiveDependencies: + ControlTunerEditFamily._allTransitiveDependencies, initialTuner: initialTuner, ); @@ -131,13 +138,15 @@ class ControlTunerEditProvider extends AutoDisposeNotifierProviderImpl createElement() { + AutoDisposeNotifierProviderElement + createElement() { return _ControlTunerEditProviderElement(this); } @override bool operator ==(Object other) { - return other is ControlTunerEditProvider && other.initialTuner == initialTuner; + return other is ControlTunerEditProvider && + other.initialTuner == initialTuner; } @override @@ -151,17 +160,20 @@ class ControlTunerEditProvider extends AutoDisposeNotifierProviderImpl { +mixin ControlTunerEditRef + on AutoDisposeNotifierProviderRef { /// The parameter `initialTuner` of this provider. TunerHostInfo? get initialTuner; } class _ControlTunerEditProviderElement - extends AutoDisposeNotifierProviderElement with ControlTunerEditRef { + extends AutoDisposeNotifierProviderElement with ControlTunerEditRef { _ControlTunerEditProviderElement(super.provider); @override - TunerHostInfo? get initialTuner => (origin as ControlTunerEditProvider).initialTuner; + TunerHostInfo? get initialTuner => + (origin as ControlTunerEditProvider).initialTuner; } // ignore_for_file: type=lint // ignore_for_file: subtype_of_sealed_class, invalid_use_of_internal_member, invalid_use_of_visible_for_testing_member, deprecated_member_use_from_same_package diff --git a/lib/providers/control_panel/control_users_provider.freezed.dart b/lib/providers/control_panel/control_users_provider.freezed.dart index 904a3033f..101985190 100644 --- a/lib/providers/control_panel/control_users_provider.freezed.dart +++ b/lib/providers/control_panel/control_users_provider.freezed.dart @@ -26,7 +26,8 @@ mixin _$ControlUsersModel { @JsonKey(includeFromJson: false, includeToJson: false) @pragma('vm:prefer-inline') $ControlUsersModelCopyWith get copyWith => - _$ControlUsersModelCopyWithImpl(this as ControlUsersModel, _$identity); + _$ControlUsersModelCopyWithImpl( + this as ControlUsersModel, _$identity); @override String toString() { @@ -36,7 +37,8 @@ mixin _$ControlUsersModel { /// @nodoc abstract mixin class $ControlUsersModelCopyWith<$Res> { - factory $ControlUsersModelCopyWith(ControlUsersModel value, $Res Function(ControlUsersModel) _then) = + factory $ControlUsersModelCopyWith( + ControlUsersModel value, $Res Function(ControlUsersModel) _then) = _$ControlUsersModelCopyWithImpl; @useResult $Res call( @@ -51,7 +53,8 @@ abstract mixin class $ControlUsersModelCopyWith<$Res> { } /// @nodoc -class _$ControlUsersModelCopyWithImpl<$Res> implements $ControlUsersModelCopyWith<$Res> { +class _$ControlUsersModelCopyWithImpl<$Res> + implements $ControlUsersModelCopyWith<$Res> { _$ControlUsersModelCopyWithImpl(this._self, this._then); final ControlUsersModel _self; @@ -205,16 +208,21 @@ extension ControlUsersModelPatterns on ControlUsersModel { @optionalTypeArgs TResult maybeWhen( - TResult Function(List users, List views, AccountModel? selectedUser, - UserPolicy? editingPolicy, List? availableDevices, List? parentalRatings)? + TResult Function( + List users, + List views, + AccountModel? selectedUser, + UserPolicy? editingPolicy, + List? availableDevices, + List? parentalRatings)? $default, { required TResult orElse(), }) { final _that = this; switch (_that) { case _ControlUsersModel() when $default != null: - return $default(_that.users, _that.views, _that.selectedUser, _that.editingPolicy, _that.availableDevices, - _that.parentalRatings); + return $default(_that.users, _that.views, _that.selectedUser, + _that.editingPolicy, _that.availableDevices, _that.parentalRatings); case _: return orElse(); } @@ -235,15 +243,20 @@ extension ControlUsersModelPatterns on ControlUsersModel { @optionalTypeArgs TResult when( - TResult Function(List users, List views, AccountModel? selectedUser, - UserPolicy? editingPolicy, List? availableDevices, List? parentalRatings) + TResult Function( + List users, + List views, + AccountModel? selectedUser, + UserPolicy? editingPolicy, + List? availableDevices, + List? parentalRatings) $default, ) { final _that = this; switch (_that) { case _ControlUsersModel(): - return $default(_that.users, _that.views, _that.selectedUser, _that.editingPolicy, _that.availableDevices, - _that.parentalRatings); + return $default(_that.users, _that.views, _that.selectedUser, + _that.editingPolicy, _that.availableDevices, _that.parentalRatings); case _: throw StateError('Unexpected subclass'); } @@ -263,15 +276,20 @@ extension ControlUsersModelPatterns on ControlUsersModel { @optionalTypeArgs TResult? whenOrNull( - TResult? Function(List users, List views, AccountModel? selectedUser, - UserPolicy? editingPolicy, List? availableDevices, List? parentalRatings)? + TResult? Function( + List users, + List views, + AccountModel? selectedUser, + UserPolicy? editingPolicy, + List? availableDevices, + List? parentalRatings)? $default, ) { final _that = this; switch (_that) { case _ControlUsersModel() when $default != null: - return $default(_that.users, _that.views, _that.selectedUser, _that.editingPolicy, _that.availableDevices, - _that.parentalRatings); + return $default(_that.users, _that.views, _that.selectedUser, + _that.editingPolicy, _that.availableDevices, _that.parentalRatings); case _: return null; } @@ -320,7 +338,8 @@ class _ControlUsersModel implements ControlUsersModel { List? get availableDevices { final value = _availableDevices; if (value == null) return null; - if (_availableDevices is EqualUnmodifiableListView) return _availableDevices; + if (_availableDevices is EqualUnmodifiableListView) + return _availableDevices; // ignore: implicit_dynamic_type return EqualUnmodifiableListView(value); } @@ -350,8 +369,10 @@ class _ControlUsersModel implements ControlUsersModel { } /// @nodoc -abstract mixin class _$ControlUsersModelCopyWith<$Res> implements $ControlUsersModelCopyWith<$Res> { - factory _$ControlUsersModelCopyWith(_ControlUsersModel value, $Res Function(_ControlUsersModel) _then) = +abstract mixin class _$ControlUsersModelCopyWith<$Res> + implements $ControlUsersModelCopyWith<$Res> { + factory _$ControlUsersModelCopyWith( + _ControlUsersModel value, $Res Function(_ControlUsersModel) _then) = __$ControlUsersModelCopyWithImpl; @override @useResult @@ -368,7 +389,8 @@ abstract mixin class _$ControlUsersModelCopyWith<$Res> implements $ControlUsersM } /// @nodoc -class __$ControlUsersModelCopyWithImpl<$Res> implements _$ControlUsersModelCopyWith<$Res> { +class __$ControlUsersModelCopyWithImpl<$Res> + implements _$ControlUsersModelCopyWith<$Res> { __$ControlUsersModelCopyWithImpl(this._self, this._then); final _ControlUsersModel _self; diff --git a/lib/providers/control_panel/control_users_provider.g.dart b/lib/providers/control_panel/control_users_provider.g.dart index 91a5aff0d..d339c144e 100644 --- a/lib/providers/control_panel/control_users_provider.g.dart +++ b/lib/providers/control_panel/control_users_provider.g.dart @@ -10,10 +10,12 @@ String _$controlUsersHash() => r'c75c30523c95aa41812bcdb4c6d34873cbf2bca6'; /// See also [ControlUsers]. @ProviderFor(ControlUsers) -final controlUsersProvider = AutoDisposeNotifierProvider.internal( +final controlUsersProvider = + AutoDisposeNotifierProvider.internal( ControlUsers.new, name: r'controlUsersProvider', - debugGetCreateSourceHash: const bool.fromEnvironment('dart.vm.product') ? null : _$controlUsersHash, + debugGetCreateSourceHash: + const bool.fromEnvironment('dart.vm.product') ? null : _$controlUsersHash, dependencies: null, allTransitiveDependencies: null, ); diff --git a/lib/providers/cultures_provider.g.dart b/lib/providers/cultures_provider.g.dart index 0622cf1e5..95be7dda8 100644 --- a/lib/providers/cultures_provider.g.dart +++ b/lib/providers/cultures_provider.g.dart @@ -10,10 +10,12 @@ String _$culturesHash() => r'588163e393fff0bc643f10c4be598787a3581170'; /// See also [Cultures]. @ProviderFor(Cultures) -final culturesProvider = AutoDisposeNotifierProvider>.internal( +final culturesProvider = + AutoDisposeNotifierProvider>.internal( Cultures.new, name: r'culturesProvider', - debugGetCreateSourceHash: const bool.fromEnvironment('dart.vm.product') ? null : _$culturesHash, + debugGetCreateSourceHash: + const bool.fromEnvironment('dart.vm.product') ? null : _$culturesHash, dependencies: null, allTransitiveDependencies: null, ); diff --git a/lib/providers/directory_browser_provider.freezed.dart b/lib/providers/directory_browser_provider.freezed.dart index df700f19d..6c66b77ca 100644 --- a/lib/providers/directory_browser_provider.freezed.dart +++ b/lib/providers/directory_browser_provider.freezed.dart @@ -24,7 +24,8 @@ mixin _$DirectoryBrowserModel { @JsonKey(includeFromJson: false, includeToJson: false) @pragma('vm:prefer-inline') $DirectoryBrowserModelCopyWith get copyWith => - _$DirectoryBrowserModelCopyWithImpl(this as DirectoryBrowserModel, _$identity); + _$DirectoryBrowserModelCopyWithImpl( + this as DirectoryBrowserModel, _$identity); @override String toString() { @@ -34,14 +35,20 @@ mixin _$DirectoryBrowserModel { /// @nodoc abstract mixin class $DirectoryBrowserModelCopyWith<$Res> { - factory $DirectoryBrowserModelCopyWith(DirectoryBrowserModel value, $Res Function(DirectoryBrowserModel) _then) = + factory $DirectoryBrowserModelCopyWith(DirectoryBrowserModel value, + $Res Function(DirectoryBrowserModel) _then) = _$DirectoryBrowserModelCopyWithImpl; @useResult - $Res call({String? parentFolder, String? currentPath, List paths, bool loading}); + $Res call( + {String? parentFolder, + String? currentPath, + List paths, + bool loading}); } /// @nodoc -class _$DirectoryBrowserModelCopyWithImpl<$Res> implements $DirectoryBrowserModelCopyWith<$Res> { +class _$DirectoryBrowserModelCopyWithImpl<$Res> + implements $DirectoryBrowserModelCopyWith<$Res> { _$DirectoryBrowserModelCopyWithImpl(this._self, this._then); final DirectoryBrowserModel _self; @@ -171,13 +178,16 @@ extension DirectoryBrowserModelPatterns on DirectoryBrowserModel { @optionalTypeArgs TResult maybeWhen( - TResult Function(String? parentFolder, String? currentPath, List paths, bool loading)? $default, { + TResult Function(String? parentFolder, String? currentPath, + List paths, bool loading)? + $default, { required TResult orElse(), }) { final _that = this; switch (_that) { case _DirectoryBrowserModel() when $default != null: - return $default(_that.parentFolder, _that.currentPath, _that.paths, _that.loading); + return $default( + _that.parentFolder, _that.currentPath, _that.paths, _that.loading); case _: return orElse(); } @@ -198,12 +208,15 @@ extension DirectoryBrowserModelPatterns on DirectoryBrowserModel { @optionalTypeArgs TResult when( - TResult Function(String? parentFolder, String? currentPath, List paths, bool loading) $default, + TResult Function(String? parentFolder, String? currentPath, + List paths, bool loading) + $default, ) { final _that = this; switch (_that) { case _DirectoryBrowserModel(): - return $default(_that.parentFolder, _that.currentPath, _that.paths, _that.loading); + return $default( + _that.parentFolder, _that.currentPath, _that.paths, _that.loading); case _: throw StateError('Unexpected subclass'); } @@ -223,12 +236,15 @@ extension DirectoryBrowserModelPatterns on DirectoryBrowserModel { @optionalTypeArgs TResult? whenOrNull( - TResult? Function(String? parentFolder, String? currentPath, List paths, bool loading)? $default, + TResult? Function(String? parentFolder, String? currentPath, + List paths, bool loading)? + $default, ) { final _that = this; switch (_that) { case _DirectoryBrowserModel() when $default != null: - return $default(_that.parentFolder, _that.currentPath, _that.paths, _that.loading); + return $default( + _that.parentFolder, _that.currentPath, _that.paths, _that.loading); case _: return null; } @@ -239,7 +255,10 @@ extension DirectoryBrowserModelPatterns on DirectoryBrowserModel { class _DirectoryBrowserModel implements DirectoryBrowserModel { const _DirectoryBrowserModel( - {this.parentFolder, this.currentPath, final List paths = const [], this.loading = false}) + {this.parentFolder, + this.currentPath, + final List paths = const [], + this.loading = false}) : _paths = paths; @override @@ -265,7 +284,8 @@ class _DirectoryBrowserModel implements DirectoryBrowserModel { @JsonKey(includeFromJson: false, includeToJson: false) @pragma('vm:prefer-inline') _$DirectoryBrowserModelCopyWith<_DirectoryBrowserModel> get copyWith => - __$DirectoryBrowserModelCopyWithImpl<_DirectoryBrowserModel>(this, _$identity); + __$DirectoryBrowserModelCopyWithImpl<_DirectoryBrowserModel>( + this, _$identity); @override String toString() { @@ -274,16 +294,23 @@ class _DirectoryBrowserModel implements DirectoryBrowserModel { } /// @nodoc -abstract mixin class _$DirectoryBrowserModelCopyWith<$Res> implements $DirectoryBrowserModelCopyWith<$Res> { - factory _$DirectoryBrowserModelCopyWith(_DirectoryBrowserModel value, $Res Function(_DirectoryBrowserModel) _then) = +abstract mixin class _$DirectoryBrowserModelCopyWith<$Res> + implements $DirectoryBrowserModelCopyWith<$Res> { + factory _$DirectoryBrowserModelCopyWith(_DirectoryBrowserModel value, + $Res Function(_DirectoryBrowserModel) _then) = __$DirectoryBrowserModelCopyWithImpl; @override @useResult - $Res call({String? parentFolder, String? currentPath, List paths, bool loading}); + $Res call( + {String? parentFolder, + String? currentPath, + List paths, + bool loading}); } /// @nodoc -class __$DirectoryBrowserModelCopyWithImpl<$Res> implements _$DirectoryBrowserModelCopyWith<$Res> { +class __$DirectoryBrowserModelCopyWithImpl<$Res> + implements _$DirectoryBrowserModelCopyWith<$Res> { __$DirectoryBrowserModelCopyWithImpl(this._self, this._then); final _DirectoryBrowserModel _self; diff --git a/lib/providers/directory_browser_provider.g.dart b/lib/providers/directory_browser_provider.g.dart index 96a754e3c..09f17af54 100644 --- a/lib/providers/directory_browser_provider.g.dart +++ b/lib/providers/directory_browser_provider.g.dart @@ -10,10 +10,13 @@ String _$directoryBrowserHash() => r'baecaa63893df6dcbcf6c940bee81f92a7cd5c92'; /// See also [DirectoryBrowser]. @ProviderFor(DirectoryBrowser) -final directoryBrowserProvider = AutoDisposeNotifierProvider.internal( +final directoryBrowserProvider = AutoDisposeNotifierProvider.internal( DirectoryBrowser.new, name: r'directoryBrowserProvider', - debugGetCreateSourceHash: const bool.fromEnvironment('dart.vm.product') ? null : _$directoryBrowserHash, + debugGetCreateSourceHash: const bool.fromEnvironment('dart.vm.product') + ? null + : _$directoryBrowserHash, dependencies: null, allTransitiveDependencies: null, ); diff --git a/lib/providers/discovery_provider.g.dart b/lib/providers/discovery_provider.g.dart index 0c254fe97..5a43da7e6 100644 --- a/lib/providers/discovery_provider.g.dart +++ b/lib/providers/discovery_provider.g.dart @@ -10,10 +10,13 @@ String _$serverDiscoveryHash() => r'f299dab33f48950f0bd91afab1f831fd6e351923'; /// See also [ServerDiscovery]. @ProviderFor(ServerDiscovery) -final serverDiscoveryProvider = AutoDisposeStreamNotifierProvider>.internal( +final serverDiscoveryProvider = AutoDisposeStreamNotifierProvider< + ServerDiscovery, List>.internal( ServerDiscovery.new, name: r'serverDiscoveryProvider', - debugGetCreateSourceHash: const bool.fromEnvironment('dart.vm.product') ? null : _$serverDiscoveryHash, + debugGetCreateSourceHash: const bool.fromEnvironment('dart.vm.product') + ? null + : _$serverDiscoveryHash, dependencies: null, allTransitiveDependencies: null, ); diff --git a/lib/providers/discovery_provider.mapper.dart b/lib/providers/discovery_provider.mapper.dart index f58125641..eb28f0ec8 100644 --- a/lib/providers/discovery_provider.mapper.dart +++ b/lib/providers/discovery_provider.mapper.dart @@ -21,11 +21,14 @@ class DiscoveryInfoMapper extends ClassMapperBase { final String id = 'DiscoveryInfo'; static String _$id(DiscoveryInfo v) => v.id; - static const Field _f$id = Field('id', _$id, key: r'Id'); + static const Field _f$id = + Field('id', _$id, key: r'Id'); static String _$name(DiscoveryInfo v) => v.name; - static const Field _f$name = Field('name', _$name, key: r'Name'); + static const Field _f$name = + Field('name', _$name, key: r'Name'); static String _$address(DiscoveryInfo v) => v.address; - static const Field _f$address = Field('address', _$address, key: r'Address'); + static const Field _f$address = + Field('address', _$address, key: r'Address'); static String? _$endPointAddress(DiscoveryInfo v) => v.endPointAddress; static const Field _f$endPointAddress = Field('endPointAddress', _$endPointAddress, key: r'EndpointAddress'); @@ -62,10 +65,12 @@ class DiscoveryInfoMapper extends ClassMapperBase { mixin DiscoveryInfoMappable { String toJson() { - return DiscoveryInfoMapper.ensureInitialized().encodeJson(this as DiscoveryInfo); + return DiscoveryInfoMapper.ensureInitialized() + .encodeJson(this as DiscoveryInfo); } Map toMap() { - return DiscoveryInfoMapper.ensureInitialized().encodeMap(this as DiscoveryInfo); + return DiscoveryInfoMapper.ensureInitialized() + .encodeMap(this as DiscoveryInfo); } } diff --git a/lib/providers/items/channel_details_provider.g.dart b/lib/providers/items/channel_details_provider.g.dart index c922ee79b..c181b3d5f 100644 --- a/lib/providers/items/channel_details_provider.g.dart +++ b/lib/providers/items/channel_details_provider.g.dart @@ -29,7 +29,8 @@ class _SystemHash { } } -abstract class _$ChannelDetails extends BuildlessAutoDisposeNotifier { +abstract class _$ChannelDetails + extends BuildlessAutoDisposeNotifier { late final String id; ChannelModel? build( @@ -72,14 +73,16 @@ class ChannelDetailsFamily extends Family { static const Iterable? _allTransitiveDependencies = null; @override - Iterable? get allTransitiveDependencies => _allTransitiveDependencies; + Iterable? get allTransitiveDependencies => + _allTransitiveDependencies; @override String? get name => r'channelDetailsProvider'; } /// See also [ChannelDetails]. -class ChannelDetailsProvider extends AutoDisposeNotifierProviderImpl { +class ChannelDetailsProvider + extends AutoDisposeNotifierProviderImpl { /// See also [ChannelDetails]. ChannelDetailsProvider( String id, @@ -87,9 +90,13 @@ class ChannelDetailsProvider extends AutoDisposeNotifierProviderImpl ChannelDetails()..id = id, from: channelDetailsProvider, name: r'channelDetailsProvider', - debugGetCreateSourceHash: const bool.fromEnvironment('dart.vm.product') ? null : _$channelDetailsHash, + debugGetCreateSourceHash: + const bool.fromEnvironment('dart.vm.product') + ? null + : _$channelDetailsHash, dependencies: ChannelDetailsFamily._dependencies, - allTransitiveDependencies: ChannelDetailsFamily._allTransitiveDependencies, + allTransitiveDependencies: + ChannelDetailsFamily._allTransitiveDependencies, id: id, ); @@ -131,7 +138,8 @@ class ChannelDetailsProvider extends AutoDisposeNotifierProviderImpl createElement() { + AutoDisposeNotifierProviderElement + createElement() { return _ChannelDetailsProviderElement(this); } @@ -156,7 +164,8 @@ mixin ChannelDetailsRef on AutoDisposeNotifierProviderRef { String get id; } -class _ChannelDetailsProviderElement extends AutoDisposeNotifierProviderElement +class _ChannelDetailsProviderElement + extends AutoDisposeNotifierProviderElement with ChannelDetailsRef { _ChannelDetailsProviderElement(super.provider); diff --git a/lib/providers/items/movies_details_provider.g.dart b/lib/providers/items/movies_details_provider.g.dart index 38080dd80..2fd7f3d7c 100644 --- a/lib/providers/items/movies_details_provider.g.dart +++ b/lib/providers/items/movies_details_provider.g.dart @@ -29,7 +29,8 @@ class _SystemHash { } } -abstract class _$MovieDetails extends BuildlessAutoDisposeNotifier { +abstract class _$MovieDetails + extends BuildlessAutoDisposeNotifier { late final String arg; MovieModel? build( @@ -72,14 +73,16 @@ class MovieDetailsFamily extends Family { static const Iterable? _allTransitiveDependencies = null; @override - Iterable? get allTransitiveDependencies => _allTransitiveDependencies; + Iterable? get allTransitiveDependencies => + _allTransitiveDependencies; @override String? get name => r'movieDetailsProvider'; } /// See also [MovieDetails]. -class MovieDetailsProvider extends AutoDisposeNotifierProviderImpl { +class MovieDetailsProvider + extends AutoDisposeNotifierProviderImpl { /// See also [MovieDetails]. MovieDetailsProvider( String arg, @@ -87,9 +90,13 @@ class MovieDetailsProvider extends AutoDisposeNotifierProviderImpl MovieDetails()..arg = arg, from: movieDetailsProvider, name: r'movieDetailsProvider', - debugGetCreateSourceHash: const bool.fromEnvironment('dart.vm.product') ? null : _$movieDetailsHash, + debugGetCreateSourceHash: + const bool.fromEnvironment('dart.vm.product') + ? null + : _$movieDetailsHash, dependencies: MovieDetailsFamily._dependencies, - allTransitiveDependencies: MovieDetailsFamily._allTransitiveDependencies, + allTransitiveDependencies: + MovieDetailsFamily._allTransitiveDependencies, arg: arg, ); @@ -131,7 +138,8 @@ class MovieDetailsProvider extends AutoDisposeNotifierProviderImpl createElement() { + AutoDisposeNotifierProviderElement + createElement() { return _MovieDetailsProviderElement(this); } @@ -156,7 +164,8 @@ mixin MovieDetailsRef on AutoDisposeNotifierProviderRef { String get arg; } -class _MovieDetailsProviderElement extends AutoDisposeNotifierProviderElement +class _MovieDetailsProviderElement + extends AutoDisposeNotifierProviderElement with MovieDetailsRef { _MovieDetailsProviderElement(super.provider); diff --git a/lib/providers/library_filters_provider.g.dart b/lib/providers/library_filters_provider.g.dart index 1b73764d3..7e9331ff8 100644 --- a/lib/providers/library_filters_provider.g.dart +++ b/lib/providers/library_filters_provider.g.dart @@ -29,7 +29,8 @@ class _SystemHash { } } -abstract class _$LibraryFilters extends BuildlessAutoDisposeNotifier> { +abstract class _$LibraryFilters + extends BuildlessAutoDisposeNotifier> { late final List ids; List build( @@ -72,14 +73,16 @@ class LibraryFiltersFamily extends Family> { static const Iterable? _allTransitiveDependencies = null; @override - Iterable? get allTransitiveDependencies => _allTransitiveDependencies; + Iterable? get allTransitiveDependencies => + _allTransitiveDependencies; @override String? get name => r'libraryFiltersProvider'; } /// See also [LibraryFilters]. -class LibraryFiltersProvider extends AutoDisposeNotifierProviderImpl> { +class LibraryFiltersProvider extends AutoDisposeNotifierProviderImpl< + LibraryFilters, List> { /// See also [LibraryFilters]. LibraryFiltersProvider( List ids, @@ -87,9 +90,13 @@ class LibraryFiltersProvider extends AutoDisposeNotifierProviderImpl LibraryFilters()..ids = ids, from: libraryFiltersProvider, name: r'libraryFiltersProvider', - debugGetCreateSourceHash: const bool.fromEnvironment('dart.vm.product') ? null : _$libraryFiltersHash, + debugGetCreateSourceHash: + const bool.fromEnvironment('dart.vm.product') + ? null + : _$libraryFiltersHash, dependencies: LibraryFiltersFamily._dependencies, - allTransitiveDependencies: LibraryFiltersFamily._allTransitiveDependencies, + allTransitiveDependencies: + LibraryFiltersFamily._allTransitiveDependencies, ids: ids, ); @@ -131,7 +138,8 @@ class LibraryFiltersProvider extends AutoDisposeNotifierProviderImpl> createElement() { + AutoDisposeNotifierProviderElement> + createElement() { return _LibraryFiltersProviderElement(this); } @@ -151,13 +159,14 @@ class LibraryFiltersProvider extends AutoDisposeNotifierProviderImpl> { +mixin LibraryFiltersRef + on AutoDisposeNotifierProviderRef> { /// The parameter `ids` of this provider. List get ids; } -class _LibraryFiltersProviderElement - extends AutoDisposeNotifierProviderElement> with LibraryFiltersRef { +class _LibraryFiltersProviderElement extends AutoDisposeNotifierProviderElement< + LibraryFilters, List> with LibraryFiltersRef { _LibraryFiltersProviderElement(super.provider); @override diff --git a/lib/providers/library_screen_provider.freezed.dart b/lib/providers/library_screen_provider.freezed.dart index f0267ee36..7fb9a63f7 100644 --- a/lib/providers/library_screen_provider.freezed.dart +++ b/lib/providers/library_screen_provider.freezed.dart @@ -26,7 +26,8 @@ mixin _$LibraryScreenModel { @JsonKey(includeFromJson: false, includeToJson: false) @pragma('vm:prefer-inline') $LibraryScreenModelCopyWith get copyWith => - _$LibraryScreenModelCopyWithImpl(this as LibraryScreenModel, _$identity); + _$LibraryScreenModelCopyWithImpl( + this as LibraryScreenModel, _$identity); @override String toString() { @@ -36,7 +37,8 @@ mixin _$LibraryScreenModel { /// @nodoc abstract mixin class $LibraryScreenModelCopyWith<$Res> { - factory $LibraryScreenModelCopyWith(LibraryScreenModel value, $Res Function(LibraryScreenModel) _then) = + factory $LibraryScreenModelCopyWith( + LibraryScreenModel value, $Res Function(LibraryScreenModel) _then) = _$LibraryScreenModelCopyWithImpl; @useResult $Res call( @@ -49,7 +51,8 @@ abstract mixin class $LibraryScreenModelCopyWith<$Res> { } /// @nodoc -class _$LibraryScreenModelCopyWithImpl<$Res> implements $LibraryScreenModelCopyWith<$Res> { +class _$LibraryScreenModelCopyWithImpl<$Res> + implements $LibraryScreenModelCopyWith<$Res> { _$LibraryScreenModelCopyWithImpl(this._self, this._then); final LibraryScreenModel _self; @@ -189,16 +192,21 @@ extension LibraryScreenModelPatterns on LibraryScreenModel { @optionalTypeArgs TResult maybeWhen( - TResult Function(List views, ViewModel? selectedViewModel, Set viewType, - List recommendations, List genres, List favourites)? + TResult Function( + List views, + ViewModel? selectedViewModel, + Set viewType, + List recommendations, + List genres, + List favourites)? $default, { required TResult orElse(), }) { final _that = this; switch (_that) { case _LibraryScreenModel() when $default != null: - return $default(_that.views, _that.selectedViewModel, _that.viewType, _that.recommendations, _that.genres, - _that.favourites); + return $default(_that.views, _that.selectedViewModel, _that.viewType, + _that.recommendations, _that.genres, _that.favourites); case _: return orElse(); } @@ -219,15 +227,20 @@ extension LibraryScreenModelPatterns on LibraryScreenModel { @optionalTypeArgs TResult when( - TResult Function(List views, ViewModel? selectedViewModel, Set viewType, - List recommendations, List genres, List favourites) + TResult Function( + List views, + ViewModel? selectedViewModel, + Set viewType, + List recommendations, + List genres, + List favourites) $default, ) { final _that = this; switch (_that) { case _LibraryScreenModel(): - return $default(_that.views, _that.selectedViewModel, _that.viewType, _that.recommendations, _that.genres, - _that.favourites); + return $default(_that.views, _that.selectedViewModel, _that.viewType, + _that.recommendations, _that.genres, _that.favourites); case _: throw StateError('Unexpected subclass'); } @@ -247,15 +260,20 @@ extension LibraryScreenModelPatterns on LibraryScreenModel { @optionalTypeArgs TResult? whenOrNull( - TResult? Function(List views, ViewModel? selectedViewModel, Set viewType, - List recommendations, List genres, List favourites)? + TResult? Function( + List views, + ViewModel? selectedViewModel, + Set viewType, + List recommendations, + List genres, + List favourites)? $default, ) { final _that = this; switch (_that) { case _LibraryScreenModel() when $default != null: - return $default(_that.views, _that.selectedViewModel, _that.viewType, _that.recommendations, _that.genres, - _that.favourites); + return $default(_that.views, _that.selectedViewModel, _that.viewType, + _that.recommendations, _that.genres, _that.favourites); case _: return null; } @@ -268,7 +286,10 @@ class _LibraryScreenModel implements LibraryScreenModel { _LibraryScreenModel( {final List views = const [], this.selectedViewModel, - final Set viewType = const {LibraryViewType.recommended, LibraryViewType.favourites}, + final Set viewType = const { + LibraryViewType.recommended, + LibraryViewType.favourites + }, final List recommendations = const [], final List genres = const [], final List favourites = const []}) @@ -340,8 +361,10 @@ class _LibraryScreenModel implements LibraryScreenModel { } /// @nodoc -abstract mixin class _$LibraryScreenModelCopyWith<$Res> implements $LibraryScreenModelCopyWith<$Res> { - factory _$LibraryScreenModelCopyWith(_LibraryScreenModel value, $Res Function(_LibraryScreenModel) _then) = +abstract mixin class _$LibraryScreenModelCopyWith<$Res> + implements $LibraryScreenModelCopyWith<$Res> { + factory _$LibraryScreenModelCopyWith( + _LibraryScreenModel value, $Res Function(_LibraryScreenModel) _then) = __$LibraryScreenModelCopyWithImpl; @override @useResult @@ -355,7 +378,8 @@ abstract mixin class _$LibraryScreenModelCopyWith<$Res> implements $LibraryScree } /// @nodoc -class __$LibraryScreenModelCopyWithImpl<$Res> implements _$LibraryScreenModelCopyWith<$Res> { +class __$LibraryScreenModelCopyWithImpl<$Res> + implements _$LibraryScreenModelCopyWith<$Res> { __$LibraryScreenModelCopyWithImpl(this._self, this._then); final _LibraryScreenModel _self; diff --git a/lib/providers/library_screen_provider.g.dart b/lib/providers/library_screen_provider.g.dart index 9dc14ed29..b2933a5cc 100644 --- a/lib/providers/library_screen_provider.g.dart +++ b/lib/providers/library_screen_provider.g.dart @@ -10,10 +10,13 @@ String _$libraryScreenHash() => r'77ce3c552cf4655d6f25c51bdffe551807b7601f'; /// See also [LibraryScreen]. @ProviderFor(LibraryScreen) -final libraryScreenProvider = NotifierProvider.internal( +final libraryScreenProvider = + NotifierProvider.internal( LibraryScreen.new, name: r'libraryScreenProvider', - debugGetCreateSourceHash: const bool.fromEnvironment('dart.vm.product') ? null : _$libraryScreenHash, + debugGetCreateSourceHash: const bool.fromEnvironment('dart.vm.product') + ? null + : _$libraryScreenHash, dependencies: null, allTransitiveDependencies: null, ); diff --git a/lib/providers/live_tv_provider.g.dart b/lib/providers/live_tv_provider.g.dart index 3b32600bd..42a76e9aa 100644 --- a/lib/providers/live_tv_provider.g.dart +++ b/lib/providers/live_tv_provider.g.dart @@ -13,7 +13,8 @@ String _$liveTvHash() => r'06fb75eeafd5f2d1bc860c2da7b7ca493a58d743'; final liveTvProvider = NotifierProvider.internal( LiveTv.new, name: r'liveTvProvider', - debugGetCreateSourceHash: const bool.fromEnvironment('dart.vm.product') ? null : _$liveTvHash, + debugGetCreateSourceHash: + const bool.fromEnvironment('dart.vm.product') ? null : _$liveTvHash, dependencies: null, allTransitiveDependencies: null, ); diff --git a/lib/providers/seerr/seerr_details_provider.freezed.dart b/lib/providers/seerr/seerr_details_provider.freezed.dart index feeae81e5..f201e9f4b 100644 --- a/lib/providers/seerr/seerr_details_provider.freezed.dart +++ b/lib/providers/seerr/seerr_details_provider.freezed.dart @@ -36,7 +36,8 @@ mixin _$SeerrDetailsModel { @JsonKey(includeFromJson: false, includeToJson: false) @pragma('vm:prefer-inline') $SeerrDetailsModelCopyWith get copyWith => - _$SeerrDetailsModelCopyWithImpl(this as SeerrDetailsModel, _$identity); + _$SeerrDetailsModelCopyWithImpl( + this as SeerrDetailsModel, _$identity); @override String toString() { @@ -46,7 +47,8 @@ mixin _$SeerrDetailsModel { /// @nodoc abstract mixin class $SeerrDetailsModelCopyWith<$Res> { - factory $SeerrDetailsModelCopyWith(SeerrDetailsModel value, $Res Function(SeerrDetailsModel) _then) = + factory $SeerrDetailsModelCopyWith( + SeerrDetailsModel value, $Res Function(SeerrDetailsModel) _then) = _$SeerrDetailsModelCopyWithImpl; @useResult $Res call( @@ -71,7 +73,8 @@ abstract mixin class $SeerrDetailsModelCopyWith<$Res> { } /// @nodoc -class _$SeerrDetailsModelCopyWithImpl<$Res> implements $SeerrDetailsModelCopyWith<$Res> { +class _$SeerrDetailsModelCopyWithImpl<$Res> + implements $SeerrDetailsModelCopyWith<$Res> { _$SeerrDetailsModelCopyWithImpl(this._self, this._then); final SeerrDetailsModel _self; @@ -564,8 +567,10 @@ class _SeerrDetailsModel extends SeerrDetailsModel { } /// @nodoc -abstract mixin class _$SeerrDetailsModelCopyWith<$Res> implements $SeerrDetailsModelCopyWith<$Res> { - factory _$SeerrDetailsModelCopyWith(_SeerrDetailsModel value, $Res Function(_SeerrDetailsModel) _then) = +abstract mixin class _$SeerrDetailsModelCopyWith<$Res> + implements $SeerrDetailsModelCopyWith<$Res> { + factory _$SeerrDetailsModelCopyWith( + _SeerrDetailsModel value, $Res Function(_SeerrDetailsModel) _then) = __$SeerrDetailsModelCopyWithImpl; @override @useResult @@ -592,7 +597,8 @@ abstract mixin class _$SeerrDetailsModelCopyWith<$Res> implements $SeerrDetailsM } /// @nodoc -class __$SeerrDetailsModelCopyWithImpl<$Res> implements _$SeerrDetailsModelCopyWith<$Res> { +class __$SeerrDetailsModelCopyWithImpl<$Res> + implements _$SeerrDetailsModelCopyWith<$Res> { __$SeerrDetailsModelCopyWithImpl(this._self, this._then); final _SeerrDetailsModel _self; diff --git a/lib/providers/seerr/seerr_details_provider.g.dart b/lib/providers/seerr/seerr_details_provider.g.dart index 389c11b19..752461d09 100644 --- a/lib/providers/seerr/seerr_details_provider.g.dart +++ b/lib/providers/seerr/seerr_details_provider.g.dart @@ -29,7 +29,8 @@ class _SystemHash { } } -abstract class _$SeerrDetails extends BuildlessAutoDisposeNotifier { +abstract class _$SeerrDetails + extends BuildlessAutoDisposeNotifier { late final int tmdbId; late final SeerrMediaType mediaType; late final SeerrDashboardPosterModel? poster; @@ -82,14 +83,16 @@ class SeerrDetailsFamily extends Family { static const Iterable? _allTransitiveDependencies = null; @override - Iterable? get allTransitiveDependencies => _allTransitiveDependencies; + Iterable? get allTransitiveDependencies => + _allTransitiveDependencies; @override String? get name => r'seerrDetailsProvider'; } /// See also [SeerrDetails]. -class SeerrDetailsProvider extends AutoDisposeNotifierProviderImpl { +class SeerrDetailsProvider + extends AutoDisposeNotifierProviderImpl { /// See also [SeerrDetails]. SeerrDetailsProvider({ required int tmdbId, @@ -102,9 +105,13 @@ class SeerrDetailsProvider extends AutoDisposeNotifierProviderImpl createElement() { + AutoDisposeNotifierProviderElement + createElement() { return _SeerrDetailsProviderElement(this); } @@ -195,7 +203,8 @@ mixin SeerrDetailsRef on AutoDisposeNotifierProviderRef { SeerrDashboardPosterModel? get poster; } -class _SeerrDetailsProviderElement extends AutoDisposeNotifierProviderElement +class _SeerrDetailsProviderElement + extends AutoDisposeNotifierProviderElement with SeerrDetailsRef { _SeerrDetailsProviderElement(super.provider); @@ -204,7 +213,8 @@ class _SeerrDetailsProviderElement extends AutoDisposeNotifierProviderElement (origin as SeerrDetailsProvider).mediaType; @override - SeerrDashboardPosterModel? get poster => (origin as SeerrDetailsProvider).poster; + SeerrDashboardPosterModel? get poster => + (origin as SeerrDetailsProvider).poster; } // ignore_for_file: type=lint // ignore_for_file: subtype_of_sealed_class, invalid_use_of_internal_member, invalid_use_of_visible_for_testing_member, deprecated_member_use_from_same_package diff --git a/lib/providers/seerr/seerr_request_provider.freezed.dart b/lib/providers/seerr/seerr_request_provider.freezed.dart index c8af86b0e..f10666637 100644 --- a/lib/providers/seerr/seerr_request_provider.freezed.dart +++ b/lib/providers/seerr/seerr_request_provider.freezed.dart @@ -40,7 +40,8 @@ mixin _$SeerrRequestModel { @JsonKey(includeFromJson: false, includeToJson: false) @pragma('vm:prefer-inline') $SeerrRequestModelCopyWith get copyWith => - _$SeerrRequestModelCopyWithImpl(this as SeerrRequestModel, _$identity); + _$SeerrRequestModelCopyWithImpl( + this as SeerrRequestModel, _$identity); @override String toString() { @@ -50,7 +51,8 @@ mixin _$SeerrRequestModel { /// @nodoc abstract mixin class $SeerrRequestModelCopyWith<$Res> { - factory $SeerrRequestModelCopyWith(SeerrRequestModel value, $Res Function(SeerrRequestModel) _then) = + factory $SeerrRequestModelCopyWith( + SeerrRequestModel value, $Res Function(SeerrRequestModel) _then) = _$SeerrRequestModelCopyWithImpl; @useResult $Res call( @@ -83,7 +85,8 @@ abstract mixin class $SeerrRequestModelCopyWith<$Res> { } /// @nodoc -class _$SeerrRequestModelCopyWithImpl<$Res> implements $SeerrRequestModelCopyWith<$Res> { +class _$SeerrRequestModelCopyWithImpl<$Res> + implements $SeerrRequestModelCopyWith<$Res> { _$SeerrRequestModelCopyWithImpl(this._self, this._then); final SeerrRequestModel _self; @@ -208,7 +211,8 @@ class _$SeerrRequestModelCopyWithImpl<$Res> implements $SeerrRequestModelCopyWit return null; } - return $SeerrSonarrServerCopyWith<$Res>(_self.selectedSonarrServer!, (value) { + return $SeerrSonarrServerCopyWith<$Res>(_self.selectedSonarrServer!, + (value) { return _then(_self.copyWith(selectedSonarrServer: value)); }); } @@ -222,7 +226,8 @@ class _$SeerrRequestModelCopyWithImpl<$Res> implements $SeerrRequestModelCopyWit return null; } - return $SeerrRadarrServerCopyWith<$Res>(_self.selectedRadarrServer!, (value) { + return $SeerrRadarrServerCopyWith<$Res>(_self.selectedRadarrServer!, + (value) { return _then(_self.copyWith(selectedRadarrServer: value)); }); } @@ -698,8 +703,10 @@ class _SeerrRequestModel extends SeerrRequestModel { } /// @nodoc -abstract mixin class _$SeerrRequestModelCopyWith<$Res> implements $SeerrRequestModelCopyWith<$Res> { - factory _$SeerrRequestModelCopyWith(_SeerrRequestModel value, $Res Function(_SeerrRequestModel) _then) = +abstract mixin class _$SeerrRequestModelCopyWith<$Res> + implements $SeerrRequestModelCopyWith<$Res> { + factory _$SeerrRequestModelCopyWith( + _SeerrRequestModel value, $Res Function(_SeerrRequestModel) _then) = __$SeerrRequestModelCopyWithImpl; @override @useResult @@ -738,7 +745,8 @@ abstract mixin class _$SeerrRequestModelCopyWith<$Res> implements $SeerrRequestM } /// @nodoc -class __$SeerrRequestModelCopyWithImpl<$Res> implements _$SeerrRequestModelCopyWith<$Res> { +class __$SeerrRequestModelCopyWithImpl<$Res> + implements _$SeerrRequestModelCopyWith<$Res> { __$SeerrRequestModelCopyWithImpl(this._self, this._then); final _SeerrRequestModel _self; @@ -863,7 +871,8 @@ class __$SeerrRequestModelCopyWithImpl<$Res> implements _$SeerrRequestModelCopyW return null; } - return $SeerrSonarrServerCopyWith<$Res>(_self.selectedSonarrServer!, (value) { + return $SeerrSonarrServerCopyWith<$Res>(_self.selectedSonarrServer!, + (value) { return _then(_self.copyWith(selectedSonarrServer: value)); }); } @@ -877,7 +886,8 @@ class __$SeerrRequestModelCopyWithImpl<$Res> implements _$SeerrRequestModelCopyW return null; } - return $SeerrRadarrServerCopyWith<$Res>(_self.selectedRadarrServer!, (value) { + return $SeerrRadarrServerCopyWith<$Res>(_self.selectedRadarrServer!, + (value) { return _then(_self.copyWith(selectedRadarrServer: value)); }); } diff --git a/lib/providers/seerr/seerr_request_provider.g.dart b/lib/providers/seerr/seerr_request_provider.g.dart index 6926dd3fc..b901cc25b 100644 --- a/lib/providers/seerr/seerr_request_provider.g.dart +++ b/lib/providers/seerr/seerr_request_provider.g.dart @@ -10,10 +10,12 @@ String _$seerrRequestHash() => r'5c36189f4c33f2b035b6dc23ddd53e134276b0f5'; /// See also [SeerrRequest]. @ProviderFor(SeerrRequest) -final seerrRequestProvider = AutoDisposeNotifierProvider.internal( +final seerrRequestProvider = + AutoDisposeNotifierProvider.internal( SeerrRequest.new, name: r'seerrRequestProvider', - debugGetCreateSourceHash: const bool.fromEnvironment('dart.vm.product') ? null : _$seerrRequestHash, + debugGetCreateSourceHash: + const bool.fromEnvironment('dart.vm.product') ? null : _$seerrRequestHash, dependencies: null, allTransitiveDependencies: null, ); diff --git a/lib/providers/seerr_api_provider.g.dart b/lib/providers/seerr_api_provider.g.dart index 9915ddfbf..f84b6adbb 100644 --- a/lib/providers/seerr_api_provider.g.dart +++ b/lib/providers/seerr_api_provider.g.dart @@ -6,14 +6,16 @@ part of 'seerr_api_provider.dart'; // RiverpodGenerator // ************************************************************************** -String _$seerrApiHash() => r'a0579ab868cc9021e4c3e8830d6c1a6a614a055c'; +String _$seerrApiHash() => r'57b39e9af4926a0b255b94ff257c738ffbd91d32'; /// See also [SeerrApi]. @ProviderFor(SeerrApi) -final seerrApiProvider = AutoDisposeNotifierProvider.internal( +final seerrApiProvider = + AutoDisposeNotifierProvider.internal( SeerrApi.new, name: r'seerrApiProvider', - debugGetCreateSourceHash: const bool.fromEnvironment('dart.vm.product') ? null : _$seerrApiHash, + debugGetCreateSourceHash: + const bool.fromEnvironment('dart.vm.product') ? null : _$seerrApiHash, dependencies: null, allTransitiveDependencies: null, ); diff --git a/lib/providers/seerr_dashboard_provider.g.dart b/lib/providers/seerr_dashboard_provider.g.dart index 5ce7a4f18..8089d24bb 100644 --- a/lib/providers/seerr_dashboard_provider.g.dart +++ b/lib/providers/seerr_dashboard_provider.g.dart @@ -10,10 +10,13 @@ String _$seerrDashboardHash() => r'e04260df2673014d673f2bf6a715ac638c6bdc4e'; /// See also [SeerrDashboard]. @ProviderFor(SeerrDashboard) -final seerrDashboardProvider = AutoDisposeNotifierProvider.internal( +final seerrDashboardProvider = + AutoDisposeNotifierProvider.internal( SeerrDashboard.new, name: r'seerrDashboardProvider', - debugGetCreateSourceHash: const bool.fromEnvironment('dart.vm.product') ? null : _$seerrDashboardHash, + debugGetCreateSourceHash: const bool.fromEnvironment('dart.vm.product') + ? null + : _$seerrDashboardHash, dependencies: null, allTransitiveDependencies: null, ); diff --git a/lib/providers/seerr_search_provider.freezed.dart b/lib/providers/seerr_search_provider.freezed.dart index 007d0f45c..70ca5be32 100644 --- a/lib/providers/seerr_search_provider.freezed.dart +++ b/lib/providers/seerr_search_provider.freezed.dart @@ -33,7 +33,8 @@ mixin _$SeerrSearchModel { @JsonKey(includeFromJson: false, includeToJson: false) @pragma('vm:prefer-inline') $SeerrSearchModelCopyWith get copyWith => - _$SeerrSearchModelCopyWithImpl(this as SeerrSearchModel, _$identity); + _$SeerrSearchModelCopyWithImpl( + this as SeerrSearchModel, _$identity); @override String toString() { @@ -43,7 +44,8 @@ mixin _$SeerrSearchModel { /// @nodoc abstract mixin class $SeerrSearchModelCopyWith<$Res> { - factory $SeerrSearchModelCopyWith(SeerrSearchModel value, $Res Function(SeerrSearchModel) _then) = + factory $SeerrSearchModelCopyWith( + SeerrSearchModel value, $Res Function(SeerrSearchModel) _then) = _$SeerrSearchModelCopyWithImpl; @useResult $Res call( @@ -65,7 +67,8 @@ abstract mixin class $SeerrSearchModelCopyWith<$Res> { } /// @nodoc -class _$SeerrSearchModelCopyWithImpl<$Res> implements $SeerrSearchModelCopyWith<$Res> { +class _$SeerrSearchModelCopyWithImpl<$Res> + implements $SeerrSearchModelCopyWith<$Res> { _$SeerrSearchModelCopyWithImpl(this._self, this._then); final SeerrSearchModel _self; @@ -452,7 +455,8 @@ class _SeerrSearchModel implements SeerrSearchModel { @override @JsonKey() List get watchProviderRegions { - if (_watchProviderRegions is EqualUnmodifiableListView) return _watchProviderRegions; + if (_watchProviderRegions is EqualUnmodifiableListView) + return _watchProviderRegions; // ignore: implicit_dynamic_type return EqualUnmodifiableListView(_watchProviderRegions); } @@ -502,8 +506,10 @@ class _SeerrSearchModel implements SeerrSearchModel { } /// @nodoc -abstract mixin class _$SeerrSearchModelCopyWith<$Res> implements $SeerrSearchModelCopyWith<$Res> { - factory _$SeerrSearchModelCopyWith(_SeerrSearchModel value, $Res Function(_SeerrSearchModel) _then) = +abstract mixin class _$SeerrSearchModelCopyWith<$Res> + implements $SeerrSearchModelCopyWith<$Res> { + factory _$SeerrSearchModelCopyWith( + _SeerrSearchModel value, $Res Function(_SeerrSearchModel) _then) = __$SeerrSearchModelCopyWithImpl; @override @useResult @@ -527,7 +533,8 @@ abstract mixin class _$SeerrSearchModelCopyWith<$Res> implements $SeerrSearchMod } /// @nodoc -class __$SeerrSearchModelCopyWithImpl<$Res> implements _$SeerrSearchModelCopyWith<$Res> { +class __$SeerrSearchModelCopyWithImpl<$Res> + implements _$SeerrSearchModelCopyWith<$Res> { __$SeerrSearchModelCopyWithImpl(this._self, this._then); final _SeerrSearchModel _self; diff --git a/lib/providers/seerr_search_provider.g.dart b/lib/providers/seerr_search_provider.g.dart index 036340bc4..dc4463fe1 100644 --- a/lib/providers/seerr_search_provider.g.dart +++ b/lib/providers/seerr_search_provider.g.dart @@ -10,10 +10,12 @@ String _$seerrSearchHash() => r'5daff3516f1e839326485a9c763549829172f194'; /// See also [SeerrSearch]. @ProviderFor(SeerrSearch) -final seerrSearchProvider = AutoDisposeNotifierProvider.internal( +final seerrSearchProvider = + AutoDisposeNotifierProvider.internal( SeerrSearch.new, name: r'seerrSearchProvider', - debugGetCreateSourceHash: const bool.fromEnvironment('dart.vm.product') ? null : _$seerrSearchHash, + debugGetCreateSourceHash: + const bool.fromEnvironment('dart.vm.product') ? null : _$seerrSearchHash, dependencies: null, allTransitiveDependencies: null, ); diff --git a/lib/providers/seerr_user_provider.g.dart b/lib/providers/seerr_user_provider.g.dart index 7d9411f0d..97e3ff319 100644 --- a/lib/providers/seerr_user_provider.g.dart +++ b/lib/providers/seerr_user_provider.g.dart @@ -10,10 +10,12 @@ String _$seerrUserHash() => r'99fd98d6e4f32a4d7eda0567f970714f32023896'; /// See also [SeerrUser]. @ProviderFor(SeerrUser) -final seerrUserProvider = AutoDisposeNotifierProvider.internal( +final seerrUserProvider = + AutoDisposeNotifierProvider.internal( SeerrUser.new, name: r'seerrUserProvider', - debugGetCreateSourceHash: const bool.fromEnvironment('dart.vm.product') ? null : _$seerrUserHash, + debugGetCreateSourceHash: + const bool.fromEnvironment('dart.vm.product') ? null : _$seerrUserHash, dependencies: null, allTransitiveDependencies: null, ); diff --git a/lib/providers/session_info_provider.freezed.dart b/lib/providers/session_info_provider.freezed.dart index 4976ffcab..04e9ee0f4 100644 --- a/lib/providers/session_info_provider.freezed.dart +++ b/lib/providers/session_info_provider.freezed.dart @@ -119,7 +119,8 @@ extension SessionInfoModelPatterns on SessionInfoModel { @optionalTypeArgs TResult maybeWhen( - TResult Function(String? playbackModel, TranscodingInfo? transCodeInfo)? $default, { + TResult Function(String? playbackModel, TranscodingInfo? transCodeInfo)? + $default, { required TResult orElse(), }) { final _that = this; @@ -146,7 +147,8 @@ extension SessionInfoModelPatterns on SessionInfoModel { @optionalTypeArgs TResult when( - TResult Function(String? playbackModel, TranscodingInfo? transCodeInfo) $default, + TResult Function(String? playbackModel, TranscodingInfo? transCodeInfo) + $default, ) { final _that = this; switch (_that) { @@ -171,7 +173,8 @@ extension SessionInfoModelPatterns on SessionInfoModel { @optionalTypeArgs TResult? whenOrNull( - TResult? Function(String? playbackModel, TranscodingInfo? transCodeInfo)? $default, + TResult? Function(String? playbackModel, TranscodingInfo? transCodeInfo)? + $default, ) { final _that = this; switch (_that) { @@ -187,7 +190,8 @@ extension SessionInfoModelPatterns on SessionInfoModel { @JsonSerializable() class _SessionInfoModel extends SessionInfoModel { _SessionInfoModel({this.playbackModel, this.transCodeInfo}) : super._(); - factory _SessionInfoModel.fromJson(Map json) => _$SessionInfoModelFromJson(json); + factory _SessionInfoModel.fromJson(Map json) => + _$SessionInfoModelFromJson(json); @override final String? playbackModel; diff --git a/lib/providers/session_info_provider.g.dart b/lib/providers/session_info_provider.g.dart index e98c37111..00432075b 100644 --- a/lib/providers/session_info_provider.g.dart +++ b/lib/providers/session_info_provider.g.dart @@ -6,14 +6,17 @@ part of 'session_info_provider.dart'; // JsonSerializableGenerator // ************************************************************************** -_SessionInfoModel _$SessionInfoModelFromJson(Map json) => _SessionInfoModel( +_SessionInfoModel _$SessionInfoModelFromJson(Map json) => + _SessionInfoModel( playbackModel: json['playbackModel'] as String?, transCodeInfo: json['transCodeInfo'] == null ? null - : TranscodingInfo.fromJson(json['transCodeInfo'] as Map), + : TranscodingInfo.fromJson( + json['transCodeInfo'] as Map), ); -Map _$SessionInfoModelToJson(_SessionInfoModel instance) => { +Map _$SessionInfoModelToJson(_SessionInfoModel instance) => + { 'playbackModel': instance.playbackModel, 'transCodeInfo': instance.transCodeInfo, }; @@ -26,10 +29,12 @@ String _$sessionInfoHash() => r'024da7f8d05fb98f6e2e5395ed06c1cc9d003f79'; /// See also [SessionInfo]. @ProviderFor(SessionInfo) -final sessionInfoProvider = AutoDisposeNotifierProvider.internal( +final sessionInfoProvider = + AutoDisposeNotifierProvider.internal( SessionInfo.new, name: r'sessionInfoProvider', - debugGetCreateSourceHash: const bool.fromEnvironment('dart.vm.product') ? null : _$sessionInfoHash, + debugGetCreateSourceHash: + const bool.fromEnvironment('dart.vm.product') ? null : _$sessionInfoHash, dependencies: null, allTransitiveDependencies: null, ); diff --git a/lib/providers/sync/background_download_provider.g.dart b/lib/providers/sync/background_download_provider.g.dart index d8e03e4e6..2f569229c 100644 --- a/lib/providers/sync/background_download_provider.g.dart +++ b/lib/providers/sync/background_download_provider.g.dart @@ -6,14 +6,18 @@ part of 'background_download_provider.dart'; // RiverpodGenerator // ************************************************************************** -String _$backgroundDownloaderHash() => r'4dcf61b6439ce1251d42abc80b99e53fe97d7465'; +String _$backgroundDownloaderHash() => + r'9b4032e6ee780c64ea44d4ab1f451e5278b6d8f6'; /// See also [BackgroundDownloader]. @ProviderFor(BackgroundDownloader) -final backgroundDownloaderProvider = NotifierProvider.internal( +final backgroundDownloaderProvider = + NotifierProvider.internal( BackgroundDownloader.new, name: r'backgroundDownloaderProvider', - debugGetCreateSourceHash: const bool.fromEnvironment('dart.vm.product') ? null : _$backgroundDownloaderHash, + debugGetCreateSourceHash: const bool.fromEnvironment('dart.vm.product') + ? null + : _$backgroundDownloaderHash, dependencies: null, allTransitiveDependencies: null, ); diff --git a/lib/providers/sync/sync_provider_helpers.g.dart b/lib/providers/sync/sync_provider_helpers.g.dart index f0f9b914b..e6438f1b3 100644 --- a/lib/providers/sync/sync_provider_helpers.g.dart +++ b/lib/providers/sync/sync_provider_helpers.g.dart @@ -64,7 +64,8 @@ class SyncedItemFamily extends Family> { static const Iterable? _allTransitiveDependencies = null; @override - Iterable? get allTransitiveDependencies => _allTransitiveDependencies; + Iterable? get allTransitiveDependencies => + _allTransitiveDependencies; @override String? get name => r'syncedItemProvider'; @@ -82,9 +83,13 @@ class SyncedItemProvider extends AutoDisposeStreamProvider { ), from: syncedItemProvider, name: r'syncedItemProvider', - debugGetCreateSourceHash: const bool.fromEnvironment('dart.vm.product') ? null : _$syncedItemHash, + debugGetCreateSourceHash: + const bool.fromEnvironment('dart.vm.product') + ? null + : _$syncedItemHash, dependencies: SyncedItemFamily._dependencies, - allTransitiveDependencies: SyncedItemFamily._allTransitiveDependencies, + allTransitiveDependencies: + SyncedItemFamily._allTransitiveDependencies, item: item, ); @@ -144,7 +149,8 @@ mixin SyncedItemRef on AutoDisposeStreamProviderRef { ItemBaseModel? get item; } -class _SyncedItemProviderElement extends AutoDisposeStreamProviderElement with SyncedItemRef { +class _SyncedItemProviderElement + extends AutoDisposeStreamProviderElement with SyncedItemRef { _SyncedItemProviderElement(super.provider); @override @@ -153,7 +159,8 @@ class _SyncedItemProviderElement extends AutoDisposeStreamProviderElement r'75e25432f33e0fe31708618b7ba744430523a4d3'; -abstract class _$SyncedChildren extends BuildlessAutoDisposeAsyncNotifier> { +abstract class _$SyncedChildren + extends BuildlessAutoDisposeAsyncNotifier> { late final SyncedItem item; FutureOr> build( @@ -196,14 +203,16 @@ class SyncedChildrenFamily extends Family>> { static const Iterable? _allTransitiveDependencies = null; @override - Iterable? get allTransitiveDependencies => _allTransitiveDependencies; + Iterable? get allTransitiveDependencies => + _allTransitiveDependencies; @override String? get name => r'syncedChildrenProvider'; } /// See also [SyncedChildren]. -class SyncedChildrenProvider extends AutoDisposeAsyncNotifierProviderImpl> { +class SyncedChildrenProvider extends AutoDisposeAsyncNotifierProviderImpl< + SyncedChildren, List> { /// See also [SyncedChildren]. SyncedChildrenProvider( SyncedItem item, @@ -211,9 +220,13 @@ class SyncedChildrenProvider extends AutoDisposeAsyncNotifierProviderImpl SyncedChildren()..item = item, from: syncedChildrenProvider, name: r'syncedChildrenProvider', - debugGetCreateSourceHash: const bool.fromEnvironment('dart.vm.product') ? null : _$syncedChildrenHash, + debugGetCreateSourceHash: + const bool.fromEnvironment('dart.vm.product') + ? null + : _$syncedChildrenHash, dependencies: SyncedChildrenFamily._dependencies, - allTransitiveDependencies: SyncedChildrenFamily._allTransitiveDependencies, + allTransitiveDependencies: + SyncedChildrenFamily._allTransitiveDependencies, item: item, ); @@ -255,7 +268,8 @@ class SyncedChildrenProvider extends AutoDisposeAsyncNotifierProviderImpl> createElement() { + AutoDisposeAsyncNotifierProviderElement> + createElement() { return _SyncedChildrenProviderElement(this); } @@ -275,22 +289,26 @@ class SyncedChildrenProvider extends AutoDisposeAsyncNotifierProviderImpl> { +mixin SyncedChildrenRef + on AutoDisposeAsyncNotifierProviderRef> { /// The parameter `item` of this provider. SyncedItem get item; } -class _SyncedChildrenProviderElement extends AutoDisposeAsyncNotifierProviderElement> - with SyncedChildrenRef { +class _SyncedChildrenProviderElement + extends AutoDisposeAsyncNotifierProviderElement> with SyncedChildrenRef { _SyncedChildrenProviderElement(super.provider); @override SyncedItem get item => (origin as SyncedChildrenProvider).item; } -String _$syncedNestedChildrenHash() => r'ea8dd0e694efa6d6ec0c73d699b5fb3e933f9322'; +String _$syncedNestedChildrenHash() => + r'ea8dd0e694efa6d6ec0c73d699b5fb3e933f9322'; -abstract class _$SyncedNestedChildren extends BuildlessAutoDisposeAsyncNotifier> { +abstract class _$SyncedNestedChildren + extends BuildlessAutoDisposeAsyncNotifier> { late final SyncedItem item; FutureOr> build( @@ -333,15 +351,16 @@ class SyncedNestedChildrenFamily extends Family>> { static const Iterable? _allTransitiveDependencies = null; @override - Iterable? get allTransitiveDependencies => _allTransitiveDependencies; + Iterable? get allTransitiveDependencies => + _allTransitiveDependencies; @override String? get name => r'syncedNestedChildrenProvider'; } /// See also [SyncedNestedChildren]. -class SyncedNestedChildrenProvider - extends AutoDisposeAsyncNotifierProviderImpl> { +class SyncedNestedChildrenProvider extends AutoDisposeAsyncNotifierProviderImpl< + SyncedNestedChildren, List> { /// See also [SyncedNestedChildren]. SyncedNestedChildrenProvider( SyncedItem item, @@ -349,9 +368,13 @@ class SyncedNestedChildrenProvider () => SyncedNestedChildren()..item = item, from: syncedNestedChildrenProvider, name: r'syncedNestedChildrenProvider', - debugGetCreateSourceHash: const bool.fromEnvironment('dart.vm.product') ? null : _$syncedNestedChildrenHash, + debugGetCreateSourceHash: + const bool.fromEnvironment('dart.vm.product') + ? null + : _$syncedNestedChildrenHash, dependencies: SyncedNestedChildrenFamily._dependencies, - allTransitiveDependencies: SyncedNestedChildrenFamily._allTransitiveDependencies, + allTransitiveDependencies: + SyncedNestedChildrenFamily._allTransitiveDependencies, item: item, ); @@ -393,7 +416,8 @@ class SyncedNestedChildrenProvider } @override - AutoDisposeAsyncNotifierProviderElement> createElement() { + AutoDisposeAsyncNotifierProviderElement> createElement() { return _SyncedNestedChildrenProviderElement(this); } @@ -413,23 +437,26 @@ class SyncedNestedChildrenProvider @Deprecated('Will be removed in 3.0. Use Ref instead') // ignore: unused_element -mixin SyncedNestedChildrenRef on AutoDisposeAsyncNotifierProviderRef> { +mixin SyncedNestedChildrenRef + on AutoDisposeAsyncNotifierProviderRef> { /// The parameter `item` of this provider. SyncedItem get item; } class _SyncedNestedChildrenProviderElement - extends AutoDisposeAsyncNotifierProviderElement> - with SyncedNestedChildrenRef { + extends AutoDisposeAsyncNotifierProviderElement> with SyncedNestedChildrenRef { _SyncedNestedChildrenProviderElement(super.provider); @override SyncedItem get item => (origin as SyncedNestedChildrenProvider).item; } -String _$syncDownloadStatusHash() => r'39cacaf983e7da79b406b0249f5de4da1e785f9a'; +String _$syncDownloadStatusHash() => + r'39cacaf983e7da79b406b0249f5de4da1e785f9a'; -abstract class _$SyncDownloadStatus extends BuildlessAutoDisposeNotifier { +abstract class _$SyncDownloadStatus + extends BuildlessAutoDisposeNotifier { late final SyncedItem arg; late final List children; @@ -477,14 +504,16 @@ class SyncDownloadStatusFamily extends Family { static const Iterable? _allTransitiveDependencies = null; @override - Iterable? get allTransitiveDependencies => _allTransitiveDependencies; + Iterable? get allTransitiveDependencies => + _allTransitiveDependencies; @override String? get name => r'syncDownloadStatusProvider'; } /// See also [SyncDownloadStatus]. -class SyncDownloadStatusProvider extends AutoDisposeNotifierProviderImpl { +class SyncDownloadStatusProvider extends AutoDisposeNotifierProviderImpl< + SyncDownloadStatus, DownloadStream?> { /// See also [SyncDownloadStatus]. SyncDownloadStatusProvider( SyncedItem arg, @@ -495,9 +524,13 @@ class SyncDownloadStatusProvider extends AutoDisposeNotifierProviderImpl createElement() { + AutoDisposeNotifierProviderElement + createElement() { return _SyncDownloadStatusProviderElement(this); } @override bool operator ==(Object other) { - return other is SyncDownloadStatusProvider && other.arg == arg && other.children == children; + return other is SyncDownloadStatusProvider && + other.arg == arg && + other.children == children; } @override @@ -575,14 +611,16 @@ mixin SyncDownloadStatusRef on AutoDisposeNotifierProviderRef { List get children; } -class _SyncDownloadStatusProviderElement extends AutoDisposeNotifierProviderElement - with SyncDownloadStatusRef { +class _SyncDownloadStatusProviderElement + extends AutoDisposeNotifierProviderElement with SyncDownloadStatusRef { _SyncDownloadStatusProviderElement(super.provider); @override SyncedItem get arg => (origin as SyncDownloadStatusProvider).arg; @override - List get children => (origin as SyncDownloadStatusProvider).children; + List get children => + (origin as SyncDownloadStatusProvider).children; } String _$syncSizeHash() => r'a975c17b0918892ccf9ee36a3635d34d7398512f'; @@ -635,7 +673,8 @@ class SyncSizeFamily extends Family { static const Iterable? _allTransitiveDependencies = null; @override - Iterable? get allTransitiveDependencies => _allTransitiveDependencies; + Iterable? get allTransitiveDependencies => + _allTransitiveDependencies; @override String? get name => r'syncSizeProvider'; @@ -653,7 +692,10 @@ class SyncSizeProvider extends AutoDisposeNotifierProviderImpl { ..children = children, from: syncSizeProvider, name: r'syncSizeProvider', - debugGetCreateSourceHash: const bool.fromEnvironment('dart.vm.product') ? null : _$syncSizeHash, + debugGetCreateSourceHash: + const bool.fromEnvironment('dart.vm.product') + ? null + : _$syncSizeHash, dependencies: SyncSizeFamily._dependencies, allTransitiveDependencies: SyncSizeFamily._allTransitiveDependencies, arg: arg, @@ -710,7 +752,9 @@ class SyncSizeProvider extends AutoDisposeNotifierProviderImpl { @override bool operator ==(Object other) { - return other is SyncSizeProvider && other.arg == arg && other.children == children; + return other is SyncSizeProvider && + other.arg == arg && + other.children == children; } @override @@ -733,7 +777,9 @@ mixin SyncSizeRef on AutoDisposeNotifierProviderRef { List? get children; } -class _SyncSizeProviderElement extends AutoDisposeNotifierProviderElement with SyncSizeRef { +class _SyncSizeProviderElement + extends AutoDisposeNotifierProviderElement + with SyncSizeRef { _SyncSizeProviderElement(super.provider); @override diff --git a/lib/providers/syncplay/handlers/syncplay_command_handler.dart b/lib/providers/syncplay/handlers/syncplay_command_handler.dart index d58698d75..6146c56df 100644 --- a/lib/providers/syncplay/handlers/syncplay_command_handler.dart +++ b/lib/providers/syncplay/handlers/syncplay_command_handler.dart @@ -9,6 +9,7 @@ typedef SyncPlayPlayerCallback = Future Function(); typedef SyncPlaySeekCallback = Future Function(int positionTicks); typedef SyncPlayPositionCallback = int Function(); typedef SyncPlayReportReadyCallback = Future Function(); +typedef SyncPlaySetSpeedCallback = Future Function(double speed); /// Handles scheduling and execution of SyncPlay commands class SyncPlayCommandHandler { @@ -41,6 +42,13 @@ class SyncPlayCommandHandler { // Report ready callback (to tell server we're ready after seek) SyncPlayReportReadyCallback? onReportReady; + // Playback rate callbacks for SpeedToSync + SyncPlaySetSpeedCallback? onSetSpeed; + bool Function()? hasPlaybackRate; + + /// Last accepted command (non-duplicate), exposed for correction logic. + LastSyncPlayCommand? get lastCommand => _lastCommand; + /// Handle incoming SyncPlay command from WebSocket void handleCommand(Map data, SyncPlayState currentState) { final command = data['Command'] as String?; @@ -48,7 +56,9 @@ class SyncPlayCommandHandler { final positionTicks = data['PositionTicks'] as int? ?? 0; final playlistItemId = data['PlaylistItemId'] as String? ?? ''; - if (command == null || whenStr == null) return; + if (command == null || whenStr == null) { + return; + } // Check for duplicate command if (_isDuplicateCommand(whenStr, positionTicks, command, playlistItemId)) { @@ -78,7 +88,9 @@ class SyncPlayCommandHandler { } bool _isDuplicateCommand(String when, int positionTicks, String command, String playlistItemId) { - if (_lastCommand == null) return false; + if (_lastCommand == null) { + return false; + } // For Unpause commands, if we are not currently playing, we should NEVER treat it as a duplicate // to ensure the player actually resumes. @@ -92,6 +104,35 @@ class SyncPlayCommandHandler { _lastCommand!.playlistItemId == playlistItemId; } + /// Guard rules before any playback correction attempt. + /// + /// Rules: + /// - only after `Unpause` command context + /// - skip while player is buffering/reloading + /// - skip when command playlist item does not match current item + bool canAttemptSyncCorrection(SyncPlayState currentState) { + final command = _lastCommand; + if (command == null) { + return false; + } + if (command.command != 'Unpause') { + return false; + } + if (isBuffering?.call() == true) { + return false; + } + + final commandItemId = command.playlistItemId; + final currentItemId = currentState.playlistItemId; + if (commandItemId.isNotEmpty && + currentItemId != null && + commandItemId != currentItemId) { + return false; + } + + return true; + } + void _scheduleCommand(String command, DateTime serverTime, int positionTicks) { final timeSyncService = timeSync(); if (timeSyncService == null) { @@ -130,7 +171,9 @@ class SyncPlayCommandHandler { int _estimateCurrentTicks(int ticks, DateTime when) { final timeSyncService = timeSync(); - if (timeSyncService == null) return ticks; + if (timeSyncService == null) { + return ticks; + } final remoteNow = timeSyncService.localDateToRemote(DateTime.now().toUtc()); final elapsedMs = remoteNow.difference(when).inMilliseconds; return ticks + millisecondsToTicks(elapsedMs); @@ -151,14 +194,13 @@ class SyncPlayCommandHandler { break; case 'Unpause': - // Play first - getting playback started quickly is more important than perfect position - await onPlay?.call(); // Only seek if position is significantly different (>1 second) - // Small differences will self-correct during playback + // Seek first, then play for smoother unpause alignment. final currentTicks = getPositionTicks?.call() ?? 0; if ((positionTicks - currentTicks).abs() > ticksPerSecond) { await onSeek?.call(positionTicks); } + await onPlay?.call(); break; case 'Seek': @@ -193,6 +235,11 @@ class SyncPlayCommandHandler { _commandTimer?.cancel(); } + /// Clear last command context used for duplicate detection and correction. + void clearLastCommand() { + _lastCommand = null; + } + /// Dispose resources void dispose() { _commandTimer?.cancel(); diff --git a/lib/providers/syncplay/handlers/syncplay_message_handler.dart b/lib/providers/syncplay/handlers/syncplay_message_handler.dart index bcec1e52b..ec4cf3f85 100644 --- a/lib/providers/syncplay/handlers/syncplay_message_handler.dart +++ b/lib/providers/syncplay/handlers/syncplay_message_handler.dart @@ -93,7 +93,9 @@ class SyncPlayMessageHandler { } void _handleUserJoined(String? userId, SyncPlayState currentState) { - if (userId == null) return; + if (userId == null) { + return; + } final participants = [...currentState.participants, userId]; onStateUpdate((state) => state.copyWith(participants: participants)); @@ -105,7 +107,9 @@ class SyncPlayMessageHandler { } void _handleUserLeft(String? userId, SyncPlayState currentState) { - if (userId == null) return; + if (userId == null) { + return; + } final participants = currentState.participants.where((p) => p != userId).toList(); onStateUpdate((state) => state.copyWith(participants: participants)); diff --git a/lib/providers/syncplay/syncplay_controller.dart b/lib/providers/syncplay/syncplay_controller.dart index 61212190c..34260389f 100644 --- a/lib/providers/syncplay/syncplay_controller.dart +++ b/lib/providers/syncplay/syncplay_controller.dart @@ -43,6 +43,7 @@ class SyncPlayController { TimeSyncService? _timeSync; StreamSubscription? _wsMessageSubscription; StreamSubscription? _wsStateSubscription; + Timer? _syncCorrectionTimer; late final SyncPlayCommandHandler _commandHandler; late final SyncPlayMessageHandler _messageHandler; @@ -69,6 +70,252 @@ class SyncPlayController { set isBuffering(bool Function()? callback) => _commandHandler.isBuffering = callback; set onSeekRequested(SyncPlaySeekCallback? callback) => _commandHandler.onSeekRequested = callback; set onReportReady(SyncPlayReportReadyCallback? callback) => _commandHandler.onReportReady = callback; + set onSetSpeed(SyncPlaySetSpeedCallback? callback) => _commandHandler.onSetSpeed = callback; + set hasPlaybackRate(bool Function()? callback) => _commandHandler.hasPlaybackRate = callback; + + /// Mark that a SyncPlay command was executed locally. + /// Used by player-side cooldown logic to avoid feedback loops. + void markCommandExecuted([DateTime? at]) { + _updateStateWith((state) => state.copyWith( + lastCommandTime: at ?? DateTime.now().toUtc(), + )); + } + + /// Update buffering/reloading status used by SyncPlay integration. + void setPlayerBufferingState(bool isBuffering) { + if (isBuffering) { + _syncCorrectionTimer?.cancel(); + _syncCorrectionTimer = null; + final setSpeed = _commandHandler.onSetSpeed; + if (setSpeed != null) { + unawaited( + setSpeed(1.0).catchError((Object error, StackTrace stackTrace) { + log('SyncPlay: Failed to reset speed while buffering: $error'); + }), + ); + } + _updateStateWith((state) => state.copyWith( + correctionState: state.correctionState.copyWith( + playerIsBuffering: true, + syncEnabled: false, + activeStrategy: SyncCorrectionStrategy.none, + ), + )); + return; + } + + _updateStateWith((state) => state.copyWith( + correctionState: state.correctionState.copyWith( + playerIsBuffering: false, + syncEnabled: true, + ), + )); + } + + /// Reset correction strategy/state when commands are cleared, on stop, + /// or around rejoin flows. + void resetCorrectionState({ + String reason = 'reset', + bool syncEnabled = true, + }) { + _syncCorrectionTimer?.cancel(); + _syncCorrectionTimer = null; + + final setSpeed = _commandHandler.onSetSpeed; + if (setSpeed != null) { + unawaited( + setSpeed(1.0).catchError((Object error, StackTrace stackTrace) { + log('SyncPlay: Failed to reset speed during correction reset: $error'); + }), + ); + } + _commandHandler.clearLastCommand(); + + log('SyncPlay: Reset correction state ($reason)'); + _updateStateWith((state) => state.copyWith( + correctionState: state.correctionState.copyWith( + activeStrategy: SyncCorrectionStrategy.none, + syncEnabled: syncEnabled, + playbackDiffMillis: 0, + syncAttempts: 0, + ), + )); + } + + /// Update current playback drift against estimated SyncPlay server time. + /// + /// Drift is computed as: + /// `estimatedServerPositionTicks - currentLocalPositionTicks`. + /// Positive means local player is behind, negative means ahead. + void updatePlaybackDrift({ + required int currentPositionTicks, + DateTime? at, + }) { + if (!_commandHandler.canAttemptSyncCorrection(_state)) { + return; + } + + final lastCommand = _commandHandler.lastCommand; + if (lastCommand == null) { + return; + } + + final when = DateTime.tryParse(lastCommand.when); + if (when == null) { + return; + } + + final now = (at ?? DateTime.now().toUtc()); + final remoteNow = _timeSync?.localDateToRemote(now) ?? now; + final elapsedMs = remoteNow.difference(when).inMilliseconds; + + final estimatedServerTicks = + lastCommand.positionTicks + millisecondsToTicks(elapsedMs); + final diffTicks = estimatedServerTicks - currentPositionTicks; + final diffMillis = ticksToMilliseconds(diffTicks).toDouble(); + final correctionConfig = _state.correctionConfig; + final correctionState = _state.correctionState; + final strategy = selectSyncCorrectionStrategy( + config: correctionConfig, + state: correctionState, + diffMillis: diffMillis, + hasPlaybackRate: _commandHandler.hasPlaybackRate?.call() == true, + ); + + if (strategy == SyncCorrectionStrategy.speedToSync) { + _applySpeedToSync( + diffMillis: diffMillis, + config: correctionConfig, + now: now, + ); + return; + } + + if (strategy == SyncCorrectionStrategy.skipToSync) { + _applySkipToSync( + diffMillis: diffMillis, + targetPositionTicks: estimatedServerTicks, + config: correctionConfig, + now: now, + ); + return; + } + + _updateStateWith((state) => state.copyWith( + correctionState: state.correctionState.copyWith( + playbackDiffMillis: diffMillis, + lastSyncAt: now, + ), + )); + } + + void _applySpeedToSync({ + required double diffMillis, + required SyncCorrectionConfig config, + required DateTime now, + }) { + final setSpeed = _commandHandler.onSetSpeed; + if (setSpeed == null) { + return; + } + + var speedToSyncTimeMs = config.speedToSyncDurationMs; + const minSpeed = 0.2; + if (diffMillis <= -speedToSyncTimeMs * minSpeed) { + speedToSyncTimeMs = diffMillis.abs() / (1.0 - minSpeed); + } + + final rawSpeed = 1.0 + (diffMillis / speedToSyncTimeMs); + final speed = rawSpeed < minSpeed ? minSpeed : rawSpeed; + final resetDuration = Duration( + milliseconds: speedToSyncTimeMs.round(), + ); + + _syncCorrectionTimer?.cancel(); + unawaited( + setSpeed(speed).catchError((Object error, StackTrace stackTrace) { + log('SyncPlay: Failed to apply SpeedToSync rate: $error'); + }), + ); + log( + 'SyncPlay: SpeedToSync applied ' + '(speed=${speed.toStringAsFixed(2)}, ' + 'diffMs=${diffMillis.toStringAsFixed(1)})', + ); + + _updateStateWith((state) => state.copyWith( + correctionState: state.correctionState.copyWith( + playbackDiffMillis: diffMillis, + lastSyncAt: now, + activeStrategy: SyncCorrectionStrategy.speedToSync, + syncEnabled: false, + syncAttempts: state.correctionState.syncAttempts + 1, + ), + )); + + _syncCorrectionTimer = Timer(resetDuration, () { + final resetSpeed = _commandHandler.onSetSpeed; + if (resetSpeed != null) { + unawaited( + resetSpeed(1.0).catchError((Object error, StackTrace stackTrace) { + log('SyncPlay: Failed to reset speed after SpeedToSync: $error'); + }), + ); + } + _updateStateWith((state) => state.copyWith( + correctionState: state.correctionState.copyWith( + activeStrategy: SyncCorrectionStrategy.none, + syncEnabled: true, + ), + )); + }); + } + + void _applySkipToSync({ + required double diffMillis, + required int targetPositionTicks, + required SyncCorrectionConfig config, + required DateTime now, + }) { + final seek = _commandHandler.onSeek; + if (seek == null) { + return; + } + + _syncCorrectionTimer?.cancel(); + unawaited( + seek(targetPositionTicks).catchError((Object error, StackTrace stackTrace) { + log('SyncPlay: Failed to apply SkipToSync seek: $error'); + }), + ); + log( + 'SyncPlay: SkipToSync applied ' + '(targetTicks=$targetPositionTicks, ' + 'diffMs=${diffMillis.toStringAsFixed(1)})', + ); + + _updateStateWith((state) => state.copyWith( + correctionState: state.correctionState.copyWith( + playbackDiffMillis: diffMillis, + lastSyncAt: now, + activeStrategy: SyncCorrectionStrategy.skipToSync, + syncEnabled: false, + syncAttempts: state.correctionState.syncAttempts + 1, + ), + )); + + final cooldownDuration = Duration( + milliseconds: (config.maxDelaySpeedToSyncMs / 2.0).round(), + ); + _syncCorrectionTimer = Timer(cooldownDuration, () { + _updateStateWith((state) => state.copyWith( + correctionState: state.correctionState.copyWith( + activeStrategy: SyncCorrectionStrategy.none, + syncEnabled: true, + ), + )); + }); + } JellyfinOpenApi get _api => _ref.read(jellyApiProvider).api; @@ -106,6 +353,10 @@ class SyncPlayController { /// Disconnect from SyncPlay Future disconnect() async { + resetCorrectionState( + reason: 'disconnect', + syncEnabled: false, + ); await leaveGroup(); _commandHandler.cancelPendingCommands(); _wsMessageSubscription?.cancel(); @@ -197,6 +448,10 @@ class SyncPlayController { /// Called by message handler when GroupJoined is received void _onGroupJoined() { + resetCorrectionState( + reason: 'group_joined', + syncEnabled: true, + ); _joinGroupCompleter?.complete(true); } @@ -208,6 +463,10 @@ class SyncPlayController { /// Called when we leave or are kicked; cancel pending commands and clear processing so playback is not stuck. void _onGroupLeftOrKicked() { _commandHandler.cancelPendingCommands(); + resetCorrectionState( + reason: 'group_left_or_kicked', + syncEnabled: false, + ); _updateStateWith((s) => s.copyWith( isProcessingCommand: false, processingCommandType: null, @@ -225,11 +484,17 @@ class SyncPlayController { /// Leave the current SyncPlay group. /// Resets processing state and cancels pending commands so playback is not stuck (per docs). Future leaveGroup() async { - if (!_state.isInGroup) return; + if (!_state.isInGroup) { + return; + } try { await _api.syncPlayLeavePost(); _lastGroupId = null; _commandHandler.cancelPendingCommands(); + resetCorrectionState( + reason: 'leave_group', + syncEnabled: false, + ); _updateState(_state.copyWith( isInGroup: false, groupId: null, @@ -246,6 +511,10 @@ class SyncPlayController { log('SyncPlay: Failed to leave group: $e'); // Still reset local state so we are not stuck _commandHandler.cancelPendingCommands(); + resetCorrectionState( + reason: 'leave_group_failed_local_reset', + syncEnabled: false, + ); _updateState(_state.copyWith( isInGroup: false, groupId: null, @@ -260,7 +529,9 @@ class SyncPlayController { /// Request pause Future requestPause() async { - if (!_state.isInGroup) return; + if (!_state.isInGroup) { + return; + } try { await _api.syncPlayPausePost(); } catch (e) { @@ -270,7 +541,9 @@ class SyncPlayController { /// Request unpause/play (server will move to Waiting until all clients report Ready, then broadcast Unpause). Future requestUnpause() async { - if (!_state.isInGroup) return; + if (!_state.isInGroup) { + return; + } try { log('SyncPlay: Sending Unpause request'); await _api.syncPlayUnpausePost(); @@ -281,7 +554,9 @@ class SyncPlayController { /// Request seek Future requestSeek(int positionTicks) async { - if (!_state.isInGroup) return; + if (!_state.isInGroup) { + return; + } try { await _api.syncPlaySeekPost( body: SeekRequestDto(positionTicks: positionTicks), @@ -293,7 +568,9 @@ class SyncPlayController { /// Report buffering state Future reportBuffering() async { - if (!_state.isInGroup) return; + if (!_state.isInGroup) { + return; + } try { final when = _timeSync?.localDateToRemote(DateTime.now().toUtc()); await _api.syncPlayBufferingPost( @@ -311,7 +588,9 @@ class SyncPlayController { /// Report ready state (required for server to broadcast Unpause when in Waiting). Future reportReady({bool isPlaying = true}) async { - if (!_state.isInGroup) return; + if (!_state.isInGroup) { + return; + } try { final when = _timeSync?.localDateToRemote(DateTime.now().toUtc()); final ticks = _commandHandler.getPositionTicks?.call() ?? 0; @@ -331,7 +610,9 @@ class SyncPlayController { /// Report ping to server Future reportPing() async { - if (!_state.isInGroup || _timeSync == null) return; + if (!_state.isInGroup || _timeSync == null) { + return; + } try { await _api.syncPlayPingPost( body: PingRequestDto(ping: _timeSync!.ping.inMilliseconds), @@ -485,7 +766,9 @@ class SyncPlayController { /// Call this from a WidgetsBindingObserver when app state changes Future handleAppLifecycleChange(AppLifecycleState lifecycleState) async { // On web, we want to stay connected even in background and avoid forced reconnection on resume. - if (kIsWeb) return; + if (kIsWeb) { + return; + } switch (lifecycleState) { case AppLifecycleState.paused: @@ -528,6 +811,10 @@ class SyncPlayController { // If we were in a group but got disconnected, try to rejoin if (_lastGroupId != null && !_state.isInGroup) { + resetCorrectionState( + reason: 'pre_rejoin', + syncEnabled: false, + ); log('SyncPlay: Attempting to rejoin group $_lastGroupId'); final success = await joinGroup(_lastGroupId!); if (!success) { diff --git a/lib/providers/syncplay/syncplay_provider.dart b/lib/providers/syncplay/syncplay_provider.dart index 7c06030b0..6b6d85943 100644 --- a/lib/providers/syncplay/syncplay_provider.dart +++ b/lib/providers/syncplay/syncplay_provider.dart @@ -103,6 +103,32 @@ class SyncPlay extends _$SyncPlay { /// Report ready state Future reportReady({bool isPlaying = true}) => controller.reportReady(isPlaying: isPlaying); + /// Mark local execution of a SyncPlay command for cooldown handling. + void markCommandExecuted([DateTime? at]) => controller.markCommandExecuted(at); + + /// Update buffering/reloading status inside SyncPlay state. + void setPlayerBufferingState(bool isBuffering) => controller.setPlayerBufferingState(isBuffering); + + /// Reset correction state and timers. + void resetCorrectionState({ + String reason = 'manual', + bool syncEnabled = true, + }) => + controller.resetCorrectionState( + reason: reason, + syncEnabled: syncEnabled, + ); + + /// Update playback drift using current local position ticks. + void updatePlaybackDrift({ + required int currentPositionTicks, + DateTime? at, + }) => + controller.updatePlaybackDrift( + currentPositionTicks: currentPositionTicks, + at: at, + ); + /// Set a new queue/playlist Future setNewQueue({ required List itemIds, @@ -121,18 +147,22 @@ class SyncPlay extends _$SyncPlay { required Future Function() onPause, required Future Function(int positionTicks) onSeek, required Future Function() onStop, + required Future Function(double speed) onSetSpeed, required int Function() getPositionTicks, required bool Function() isPlaying, required bool Function() isBuffering, + required bool Function() hasPlaybackRate, Future Function(int positionTicks)? onSeekRequested, }) { controller.onPlay = onPlay; controller.onPause = onPause; controller.onSeek = onSeek; controller.onStop = onStop; + controller.onSetSpeed = onSetSpeed; controller.getPositionTicks = getPositionTicks; controller.isPlaying = isPlaying; controller.isBuffering = isBuffering; + controller.hasPlaybackRate = hasPlaybackRate; controller.onSeekRequested = onSeekRequested; // Wire up reportReady callback so command handler can report ready after seek controller.onReportReady = () => controller.reportReady(); @@ -144,9 +174,11 @@ class SyncPlay extends _$SyncPlay { controller.onPause = null; controller.onSeek = null; controller.onStop = null; + controller.onSetSpeed = null; controller.getPositionTicks = null; controller.isPlaying = null; controller.isBuffering = null; + controller.hasPlaybackRate = null; controller.onSeekRequested = null; controller.onReportReady = null; } @@ -170,6 +202,18 @@ SyncPlayGroupState syncPlayGroupState(Ref ref) { return ref.watch(syncPlayProvider.select((s) => s.groupState)); } +/// Provider for SyncPlay correction runtime state (UI + diagnostics). +@riverpod +SyncCorrectionState syncCorrectionState(Ref ref) { + return ref.watch(syncPlayProvider.select((s) => s.correctionState)); +} + +/// Provider for active correction strategy. +@riverpod +SyncCorrectionStrategy syncCorrectionStrategy(Ref ref) { + return ref.watch(syncPlayProvider.select((s) => s.correctionState.activeStrategy)); +} + /// Immutable state for the SyncPlay groups list (used by group sheet). /// Lists are stored unmodifiable so the state cannot be mutated. @Freezed(copyWith: true) diff --git a/lib/providers/syncplay/syncplay_provider.freezed.dart b/lib/providers/syncplay/syncplay_provider.freezed.dart index 40457a1a4..67e812c5e 100644 --- a/lib/providers/syncplay/syncplay_provider.freezed.dart +++ b/lib/providers/syncplay/syncplay_provider.freezed.dart @@ -23,7 +23,8 @@ mixin _$SyncPlayGroupsState implements DiagnosticableTreeMixin { @JsonKey(includeFromJson: false, includeToJson: false) @pragma('vm:prefer-inline') $SyncPlayGroupsStateCopyWith get copyWith => - _$SyncPlayGroupsStateCopyWithImpl(this as SyncPlayGroupsState, _$identity); + _$SyncPlayGroupsStateCopyWithImpl( + this as SyncPlayGroupsState, _$identity); @override void debugFillProperties(DiagnosticPropertiesBuilder properties) { @@ -42,14 +43,16 @@ mixin _$SyncPlayGroupsState implements DiagnosticableTreeMixin { /// @nodoc abstract mixin class $SyncPlayGroupsStateCopyWith<$Res> { - factory $SyncPlayGroupsStateCopyWith(SyncPlayGroupsState value, $Res Function(SyncPlayGroupsState) _then) = + factory $SyncPlayGroupsStateCopyWith( + SyncPlayGroupsState value, $Res Function(SyncPlayGroupsState) _then) = _$SyncPlayGroupsStateCopyWithImpl; @useResult $Res call({List? groups, bool isLoading, String? error}); } /// @nodoc -class _$SyncPlayGroupsStateCopyWithImpl<$Res> implements $SyncPlayGroupsStateCopyWith<$Res> { +class _$SyncPlayGroupsStateCopyWithImpl<$Res> + implements $SyncPlayGroupsStateCopyWith<$Res> { _$SyncPlayGroupsStateCopyWithImpl(this._self, this._then); final SyncPlayGroupsState _self; @@ -174,7 +177,8 @@ extension SyncPlayGroupsStatePatterns on SyncPlayGroupsState { @optionalTypeArgs TResult maybeWhen( - TResult Function(List? groups, bool isLoading, String? error)? $default, { + TResult Function(List? groups, bool isLoading, String? error)? + $default, { required TResult orElse(), }) { final _that = this; @@ -201,7 +205,8 @@ extension SyncPlayGroupsStatePatterns on SyncPlayGroupsState { @optionalTypeArgs TResult when( - TResult Function(List? groups, bool isLoading, String? error) $default, + TResult Function(List? groups, bool isLoading, String? error) + $default, ) { final _that = this; switch (_that) { @@ -226,7 +231,9 @@ extension SyncPlayGroupsStatePatterns on SyncPlayGroupsState { @optionalTypeArgs TResult? whenOrNull( - TResult? Function(List? groups, bool isLoading, String? error)? $default, + TResult? Function( + List? groups, bool isLoading, String? error)? + $default, ) { final _that = this; switch (_that) { @@ -240,8 +247,12 @@ extension SyncPlayGroupsStatePatterns on SyncPlayGroupsState { /// @nodoc -class _SyncPlayGroupsState with DiagnosticableTreeMixin implements SyncPlayGroupsState { - const _SyncPlayGroupsState({final List? groups, this.isLoading = false, this.error}) : _groups = groups; +class _SyncPlayGroupsState + with DiagnosticableTreeMixin + implements SyncPlayGroupsState { + const _SyncPlayGroupsState( + {final List? groups, this.isLoading = false, this.error}) + : _groups = groups; final List? _groups; @override @@ -265,7 +276,8 @@ class _SyncPlayGroupsState with DiagnosticableTreeMixin implements SyncPlayGroup @JsonKey(includeFromJson: false, includeToJson: false) @pragma('vm:prefer-inline') _$SyncPlayGroupsStateCopyWith<_SyncPlayGroupsState> get copyWith => - __$SyncPlayGroupsStateCopyWithImpl<_SyncPlayGroupsState>(this, _$identity); + __$SyncPlayGroupsStateCopyWithImpl<_SyncPlayGroupsState>( + this, _$identity); @override void debugFillProperties(DiagnosticPropertiesBuilder properties) { @@ -283,8 +295,10 @@ class _SyncPlayGroupsState with DiagnosticableTreeMixin implements SyncPlayGroup } /// @nodoc -abstract mixin class _$SyncPlayGroupsStateCopyWith<$Res> implements $SyncPlayGroupsStateCopyWith<$Res> { - factory _$SyncPlayGroupsStateCopyWith(_SyncPlayGroupsState value, $Res Function(_SyncPlayGroupsState) _then) = +abstract mixin class _$SyncPlayGroupsStateCopyWith<$Res> + implements $SyncPlayGroupsStateCopyWith<$Res> { + factory _$SyncPlayGroupsStateCopyWith(_SyncPlayGroupsState value, + $Res Function(_SyncPlayGroupsState) _then) = __$SyncPlayGroupsStateCopyWithImpl; @override @useResult @@ -292,7 +306,8 @@ abstract mixin class _$SyncPlayGroupsStateCopyWith<$Res> implements $SyncPlayGro } /// @nodoc -class __$SyncPlayGroupsStateCopyWithImpl<$Res> implements _$SyncPlayGroupsStateCopyWith<$Res> { +class __$SyncPlayGroupsStateCopyWithImpl<$Res> + implements _$SyncPlayGroupsStateCopyWith<$Res> { __$SyncPlayGroupsStateCopyWithImpl(this._self, this._then); final _SyncPlayGroupsState _self; diff --git a/lib/providers/syncplay/syncplay_provider.g.dart b/lib/providers/syncplay/syncplay_provider.g.dart index f38106768..76384e4a9 100644 --- a/lib/providers/syncplay/syncplay_provider.g.dart +++ b/lib/providers/syncplay/syncplay_provider.g.dart @@ -15,7 +15,9 @@ String _$isSyncPlayActiveHash() => r'bf9cda97aa9130fed8fc6558481c02f10f815f99'; final isSyncPlayActiveProvider = AutoDisposeProvider.internal( isSyncPlayActive, name: r'isSyncPlayActiveProvider', - debugGetCreateSourceHash: const bool.fromEnvironment('dart.vm.product') ? null : _$isSyncPlayActiveHash, + debugGetCreateSourceHash: const bool.fromEnvironment('dart.vm.product') + ? null + : _$isSyncPlayActiveHash, dependencies: null, allTransitiveDependencies: null, ); @@ -32,7 +34,9 @@ String _$syncPlayGroupNameHash() => r'f73f243808920efbfbfa467d1ba1234fec622283'; final syncPlayGroupNameProvider = AutoDisposeProvider.internal( syncPlayGroupName, name: r'syncPlayGroupNameProvider', - debugGetCreateSourceHash: const bool.fromEnvironment('dart.vm.product') ? null : _$syncPlayGroupNameHash, + debugGetCreateSourceHash: const bool.fromEnvironment('dart.vm.product') + ? null + : _$syncPlayGroupNameHash, dependencies: null, allTransitiveDependencies: null, ); @@ -40,16 +44,20 @@ final syncPlayGroupNameProvider = AutoDisposeProvider.internal( @Deprecated('Will be removed in 3.0. Use Ref instead') // ignore: unused_element typedef SyncPlayGroupNameRef = AutoDisposeProviderRef; -String _$syncPlayGroupStateHash() => r'dff5dba3297066e06ff5ed1b9b273ee19bc27878'; +String _$syncPlayGroupStateHash() => + r'dff5dba3297066e06ff5ed1b9b273ee19bc27878'; /// Provider for SyncPlay group state /// /// Copied from [syncPlayGroupState]. @ProviderFor(syncPlayGroupState) -final syncPlayGroupStateProvider = AutoDisposeProvider.internal( +final syncPlayGroupStateProvider = + AutoDisposeProvider.internal( syncPlayGroupState, name: r'syncPlayGroupStateProvider', - debugGetCreateSourceHash: const bool.fromEnvironment('dart.vm.product') ? null : _$syncPlayGroupStateHash, + debugGetCreateSourceHash: const bool.fromEnvironment('dart.vm.product') + ? null + : _$syncPlayGroupStateHash, dependencies: null, allTransitiveDependencies: null, ); @@ -57,7 +65,50 @@ final syncPlayGroupStateProvider = AutoDisposeProvider.inter @Deprecated('Will be removed in 3.0. Use Ref instead') // ignore: unused_element typedef SyncPlayGroupStateRef = AutoDisposeProviderRef; -String _$syncPlayHash() => r'a5c53eed3cf0d94ea3b1601a0d11c17d58bb3e41'; +String _$syncCorrectionStateHash() => + r'0c623c5a3e9b99b5dc09c14b50d4cbf120151af9'; + +/// Provider for SyncPlay correction runtime state (UI + diagnostics). +/// +/// Copied from [syncCorrectionState]. +@ProviderFor(syncCorrectionState) +final syncCorrectionStateProvider = + AutoDisposeProvider.internal( + syncCorrectionState, + name: r'syncCorrectionStateProvider', + debugGetCreateSourceHash: const bool.fromEnvironment('dart.vm.product') + ? null + : _$syncCorrectionStateHash, + dependencies: null, + allTransitiveDependencies: null, +); + +@Deprecated('Will be removed in 3.0. Use Ref instead') +// ignore: unused_element +typedef SyncCorrectionStateRef = AutoDisposeProviderRef; +String _$syncCorrectionStrategyHash() => + r'eaa4de3db8e9d9155b6f41465462f087833744e0'; + +/// Provider for active correction strategy. +/// +/// Copied from [syncCorrectionStrategy]. +@ProviderFor(syncCorrectionStrategy) +final syncCorrectionStrategyProvider = + AutoDisposeProvider.internal( + syncCorrectionStrategy, + name: r'syncCorrectionStrategyProvider', + debugGetCreateSourceHash: const bool.fromEnvironment('dart.vm.product') + ? null + : _$syncCorrectionStrategyHash, + dependencies: null, + allTransitiveDependencies: null, +); + +@Deprecated('Will be removed in 3.0. Use Ref instead') +// ignore: unused_element +typedef SyncCorrectionStrategyRef + = AutoDisposeProviderRef; +String _$syncPlayHash() => r'adbc9eaf226b0e9e24982f9967c986f0ddb51e84'; /// Provider for SyncPlay controller instance /// @@ -66,7 +117,8 @@ String _$syncPlayHash() => r'a5c53eed3cf0d94ea3b1601a0d11c17d58bb3e41'; final syncPlayProvider = NotifierProvider.internal( SyncPlay.new, name: r'syncPlayProvider', - debugGetCreateSourceHash: const bool.fromEnvironment('dart.vm.product') ? null : _$syncPlayHash, + debugGetCreateSourceHash: + const bool.fromEnvironment('dart.vm.product') ? null : _$syncPlayHash, dependencies: null, allTransitiveDependencies: null, ); @@ -78,10 +130,13 @@ String _$syncPlayGroupsHash() => r'7f17436df1b0afb4c77cd21128e03b1ed0875939'; /// /// Copied from [SyncPlayGroups]. @ProviderFor(SyncPlayGroups) -final syncPlayGroupsProvider = AutoDisposeNotifierProvider.internal( +final syncPlayGroupsProvider = + AutoDisposeNotifierProvider.internal( SyncPlayGroups.new, name: r'syncPlayGroupsProvider', - debugGetCreateSourceHash: const bool.fromEnvironment('dart.vm.product') ? null : _$syncPlayGroupsHash, + debugGetCreateSourceHash: const bool.fromEnvironment('dart.vm.product') + ? null + : _$syncPlayGroupsHash, dependencies: null, allTransitiveDependencies: null, ); diff --git a/lib/providers/syncplay/time_sync_service.dart b/lib/providers/syncplay/time_sync_service.dart index c55113d02..907aab095 100644 --- a/lib/providers/syncplay/time_sync_service.dart +++ b/lib/providers/syncplay/time_sync_service.dart @@ -28,7 +28,9 @@ class TimeSyncService { /// Current best offset estimate Duration get offset { - if (_measurements.isEmpty) return Duration.zero; + if (_measurements.isEmpty) { + return Duration.zero; + } // Use measurement with minimum delay (least network jitter) final best = _measurements.reduce( (a, b) => a.delay < b.delay ? a : b, @@ -38,7 +40,9 @@ class TimeSyncService { /// Current ping estimate (from best measurement) Duration get ping { - if (_measurements.isEmpty) return Duration.zero; + if (_measurements.isEmpty) { + return Duration.zero; + } final best = _measurements.reduce( (a, b) => a.delay < b.delay ? a : b, ); @@ -47,7 +51,9 @@ class TimeSyncService { /// Whether time sync is stale and needs refresh bool get isStale { - if (_lastMeasurementTime == null) return true; + if (_lastMeasurementTime == null) { + return true; + } return DateTime.now().difference(_lastMeasurementTime!) > _staleThreshold; } @@ -63,7 +69,9 @@ class TimeSyncService { /// Start time synchronization void start() { - if (_isActive) return; + if (_isActive) { + return; + } _isActive = true; _pingCount = 0; _poll(); @@ -87,10 +95,14 @@ class TimeSyncService { } void _poll() { - if (!_isActive) return; + if (!_isActive) { + return; + } _requestPing().then((_) { - if (!_isActive) return; + if (!_isActive) { + return; + } _pingCount++; final interval = _pingCount <= _greedyPingCount ? _greedyInterval : _lowProfileInterval; diff --git a/lib/providers/update_provider.g.dart b/lib/providers/update_provider.g.dart index 541ed82f8..0dc684976 100644 --- a/lib/providers/update_provider.g.dart +++ b/lib/providers/update_provider.g.dart @@ -13,7 +13,8 @@ String _$updateHash() => r'e22205cb13e6b43df1296de90e39059f09bb80a8'; final updateProvider = NotifierProvider.internal( Update.new, name: r'updateProvider', - debugGetCreateSourceHash: const bool.fromEnvironment('dart.vm.product') ? null : _$updateHash, + debugGetCreateSourceHash: + const bool.fromEnvironment('dart.vm.product') ? null : _$updateHash, dependencies: null, allTransitiveDependencies: null, ); diff --git a/lib/providers/user_provider.g.dart b/lib/providers/user_provider.g.dart index be233e1fd..52b534827 100644 --- a/lib/providers/user_provider.g.dart +++ b/lib/providers/user_provider.g.dart @@ -6,14 +6,17 @@ part of 'user_provider.dart'; // RiverpodGenerator // ************************************************************************** -String _$showSyncButtonProviderHash() => r'c09f42cd6536425bf9417da41c83e15c135d0edb'; +String _$showSyncButtonProviderHash() => + r'c09f42cd6536425bf9417da41c83e15c135d0edb'; /// See also [showSyncButtonProvider]. @ProviderFor(showSyncButtonProvider) final showSyncButtonProviderProvider = AutoDisposeProvider.internal( showSyncButtonProvider, name: r'showSyncButtonProviderProvider', - debugGetCreateSourceHash: const bool.fromEnvironment('dart.vm.product') ? null : _$showSyncButtonProviderHash, + debugGetCreateSourceHash: const bool.fromEnvironment('dart.vm.product') + ? null + : _$showSyncButtonProviderHash, dependencies: null, allTransitiveDependencies: null, ); @@ -28,7 +31,8 @@ String _$userHash() => r'a9f56595249dd592b1d2e17203b103c42c7f7acb'; final userProvider = NotifierProvider.internal( User.new, name: r'userProvider', - debugGetCreateSourceHash: const bool.fromEnvironment('dart.vm.product') ? null : _$userHash, + debugGetCreateSourceHash: + const bool.fromEnvironment('dart.vm.product') ? null : _$userHash, dependencies: null, allTransitiveDependencies: null, ); diff --git a/lib/providers/video_player_provider.dart b/lib/providers/video_player_provider.dart index 4f288b2d8..5f485ad39 100644 --- a/lib/providers/video_player_provider.dart +++ b/lib/providers/video_player_provider.dart @@ -37,22 +37,23 @@ class VideoPlayerNotifier extends StateNotifier { /// Flag to indicate if the current action is initiated by SyncPlay bool _syncPlayAction = false; - /// Flag to indicate if we are reloading the video (e.g. for transcoding or audio track change) - bool _isReloading = false; - - /// Timestamp of last SyncPlay command execution (for cooldown) - DateTime? _lastSyncPlayCommandTime; - /// Cooldown period after SyncPlay command during which we don't auto-report ready static const _syncPlayCooldown = Duration(milliseconds: 500); /// Check if SyncPlay is active bool get _isSyncPlayActive => ref.read(isSyncPlayActiveProvider); + /// Whether player is reloading/buffering from SyncPlay perspective. + bool get _isReloading => + ref.read(syncPlayProvider.select((s) => s.correctionState.playerIsBuffering)); + /// Check if we're in the SyncPlay cooldown period bool get _inSyncPlayCooldown { - if (_lastSyncPlayCommandTime == null) return false; - return DateTime.now().difference(_lastSyncPlayCommandTime!) < _syncPlayCooldown; + final lastCommandTime = ref.read(syncPlayProvider.select((s) => s.lastCommandTime)); + if (lastCommandTime == null) { + return false; + } + return DateTime.now().toUtc().difference(lastCommandTime) < _syncPlayCooldown; } Future init() async { @@ -116,9 +117,12 @@ class VideoPlayerNotifier extends StateNotifier { } /// Manually set the reloading state (e.g. before fetching new PlaybackInfo) - void setReloading(bool value) { - _isReloading = value; - if (value && _isSyncPlayActive) { + void setReloading( + bool value, { + bool reportToSyncPlay = true, + }) { + ref.read(syncPlayProvider.notifier).setPlayerBufferingState(value); + if (value && _isSyncPlayActive && reportToSyncPlay) { ref.read(syncPlayProvider.notifier).reportBuffering(); } } @@ -128,48 +132,60 @@ class VideoPlayerNotifier extends StateNotifier { ref.read(syncPlayProvider.notifier).registerPlayer( onPlay: () async { _syncPlayAction = true; - _lastSyncPlayCommandTime = DateTime.now(); + ref.read(syncPlayProvider.notifier).markCommandExecuted(); await state.play(); _syncPlayAction = false; }, onPause: () async { _syncPlayAction = true; - _lastSyncPlayCommandTime = DateTime.now(); + ref.read(syncPlayProvider.notifier).markCommandExecuted(); await state.pause(); _syncPlayAction = false; }, onSeek: (positionTicks) async { _syncPlayAction = true; - _lastSyncPlayCommandTime = DateTime.now(); + ref.read(syncPlayProvider.notifier).markCommandExecuted(); final position = Duration(microseconds: positionTicks ~/ 10); await state.seek(position); _syncPlayAction = false; }, onSeekRequested: (positionTicks) async { // This is called when another user seeks, we should report buffering immediately - _isReloading = true; + ref.read(syncPlayProvider.notifier).setPlayerBufferingState(true); ref.read(syncPlayProvider.notifier).reportBuffering(); }, onStop: () async { _syncPlayAction = true; - _lastSyncPlayCommandTime = DateTime.now(); + ref.read(syncPlayProvider.notifier).markCommandExecuted(); await state.stop(); + ref.read(syncPlayProvider.notifier).resetCorrectionState( + reason: 'stop_command', + ); _syncPlayAction = false; }, + onSetSpeed: (speed) async { + await state.setSpeed(speed); + }, getPositionTicks: () { final position = playbackState.position; return secondsToTicks(position.inMilliseconds / 1000); }, isPlaying: () => playbackState.playing, isBuffering: () => _isReloading || playbackState.buffering, + hasPlaybackRate: () => !state.isNativePlayerActive, ); } Future updateBuffering(bool event) async { final oldState = playbackState; - if (oldState.buffering == event) return; + if (oldState.buffering == event) { + return; + } mediaState.update((state) => state.copyWith(buffering: event)); + if (_isSyncPlayActive) { + ref.read(syncPlayProvider.notifier).setPlayerBufferingState(event); + } // Report buffering state to SyncPlay if active // Skip if we're in the cooldown period after a SyncPlay command to prevent feedback loops @@ -207,7 +223,9 @@ class VideoPlayerNotifier extends StateNotifier { Future updatePlaying(bool event) async { final currentState = playbackState; - if (!state.hasPlayer || currentState.playing == event) return; + if (!state.hasPlayer || currentState.playing == event) { + return; + } mediaState.update( (state) => state.copyWith(playing: event), ); @@ -215,12 +233,18 @@ class VideoPlayerNotifier extends StateNotifier { } Future updatePosition(Duration event) async { - if (!state.hasPlayer) return; - if (playbackState.playing == false) return; + if (!state.hasPlayer) { + return; + } + if (playbackState.playing == false) { + return; + } final currentState = playbackState; final currentPosition = currentState.position; - if ((currentPosition - event).inSeconds.abs() < 1) return; + if ((currentPosition - event).inSeconds.abs() < 1) { + return; + } final position = event; @@ -238,13 +262,28 @@ class VideoPlayerNotifier extends StateNotifier { position: event, )); } + + // Feed time updates into SyncPlay drift estimation. + if (_isSyncPlayActive) { + ref.read(syncPlayProvider.notifier).updatePlaybackDrift( + currentPositionTicks: secondsToTicks( + event.inMilliseconds / 1000, + ), + at: DateTime.now().toUtc(), + ); + } } - Future loadPlaybackItem(PlaybackModel model, Duration startPosition) async { - _isReloading = true; + Future loadPlaybackItem( + PlaybackModel model, + Duration startPosition, { + bool waitForSyncPlayCommand = true, + }) async { + ref.read(syncPlayProvider.notifier).setPlayerBufferingState(true); - // Explicitly report buffering to SyncPlay if active before stopping/loading - if (_isSyncPlayActive) { + // Only report group buffering for flows that should wait + // for a SyncPlay unpause command. + if (_isSyncPlayActive && waitForSyncPlayCommand) { ref.read(syncPlayProvider.notifier).reportBuffering(); } @@ -277,11 +316,11 @@ class VideoPlayerNotifier extends StateNotifier { await state.setAudioTrack(null, model); await state.setSubtitleTrack(null, model); - _isReloading = false; + ref.read(syncPlayProvider.notifier).setPlayerBufferingState(false); - // Only auto-play if syncplay is NOT active - // When syncplay is active, we report ready (not playing) and wait for the group command - if (!syncPlayActive) { + // For local track-switch reloads in SyncPlay, resume local playback + // directly and avoid forcing group-wide wait/unpause. + if (!syncPlayActive || !waitForSyncPlayCommand) { state.play(); } else { // For SyncPlay, we report ready now that reload AND seek are done. @@ -297,7 +336,7 @@ class VideoPlayerNotifier extends StateNotifier { return true; } - _isReloading = false; + ref.read(syncPlayProvider.notifier).setPlayerBufferingState(false); mediaState.update((state) => state.copyWith(errorPlaying: true)); return false; } diff --git a/lib/screens/login/login_code_dialog.dart b/lib/screens/login/login_code_dialog.dart index bc89ae954..3a6c13420 100644 --- a/lib/screens/login/login_code_dialog.dart +++ b/lib/screens/login/login_code_dialog.dart @@ -61,7 +61,9 @@ class _LoginCodeDialogState extends ConsumerState { secret: quickConnectInfo.secret, ); final newSecret = result.body?.secret; - if (result.isSuccessful && result.body?.authenticated == true && newSecret != null) { + if (result.isSuccessful && + result.body?.authenticated == true && + newSecret != null) { widget.onAuthenticated.call(context, newSecret); } else { timer?.reset(); @@ -72,7 +74,8 @@ class _LoginCodeDialogState extends ConsumerState { @override Widget build(BuildContext context) { final code = quickConnectInfo.code; - final serverName = ref.watch(authProvider.select((value) => value.serverLoginModel?.tempCredentials.serverName)); + final serverName = ref.watch(authProvider + .select((value) => value.serverLoginModel?.tempCredentials.serverName)); return Dialog( constraints: const BoxConstraints( maxWidth: 500, @@ -102,19 +105,23 @@ class _LoginCodeDialogState extends ConsumerState { ), GestureDetector( onTap: () => context.copyToClipboard(code), - child:IntrinsicWidth( - child: Card( - child: Padding( - padding: const EdgeInsets.all(12.0), - child: Text( - code, - style: Theme.of(context).textTheme.titleLarge?.copyWith( - fontWeight: FontWeight.bold, - wordSpacing: 8, - letterSpacing: 8, - ), - textAlign: TextAlign.center, - semanticsLabel: code,), + child: IntrinsicWidth( + child: Card( + child: Padding( + padding: const EdgeInsets.all(12.0), + child: Text( + code, + style: Theme.of(context) + .textTheme + .titleLarge + ?.copyWith( + fontWeight: FontWeight.bold, + wordSpacing: 8, + letterSpacing: 8, + ), + textAlign: TextAlign.center, + semanticsLabel: code, + ), ), ), ), @@ -122,7 +129,8 @@ class _LoginCodeDialogState extends ConsumerState { ], FilledButton( onPressed: () async { - final response = await ref.read(jellyApiProvider).quickConnectInitiate(); + final response = + await ref.read(jellyApiProvider).quickConnectInitiate(); if (response.isSuccessful && response.body != null) { setState(() { quickConnectInfo = response.body!; diff --git a/lib/screens/video_player/components/syncplay_command_indicator.dart b/lib/screens/video_player/components/syncplay_command_indicator.dart index 43321373e..abe7a4e59 100644 --- a/lib/screens/video_player/components/syncplay_command_indicator.dart +++ b/lib/screens/video_player/components/syncplay_command_indicator.dart @@ -2,6 +2,7 @@ import 'package:flutter/material.dart'; import 'package:flutter_riverpod/flutter_riverpod.dart'; +import 'package:fladder/models/syncplay/syncplay_models.dart'; import 'package:fladder/providers/syncplay/syncplay_provider.dart'; import 'package:fladder/util/localization_helper.dart'; import 'package:fladder/widgets/syncplay/syncplay_extensions.dart'; @@ -15,8 +16,11 @@ class SyncPlayCommandIndicator extends ConsumerWidget { final isActive = ref.watch(isSyncPlayActiveProvider); final isProcessing = ref.watch(syncPlayProvider.select((s) => s.isProcessingCommand)); final commandType = ref.watch(syncPlayProvider.select((s) => s.processingCommandType)); + final strategy = ref.watch(syncCorrectionStrategyProvider); - final visible = isActive && isProcessing && commandType != null; + final hasCorrection = strategy != SyncCorrectionStrategy.none; + final showCommand = isProcessing && commandType != null; + final visible = isActive && (showCommand || hasCorrection); return IgnorePointer( child: AnimatedOpacity( @@ -46,10 +50,15 @@ class SyncPlayCommandIndicator extends ConsumerWidget { child: Column( mainAxisSize: MainAxisSize.min, children: [ - _CommandIcon(commandType: commandType), + _CommandIcon( + commandType: commandType, + strategy: strategy, + ), const SizedBox(height: 12), Text( - commandType.syncPlayCommandOverlayLabel(context), + showCommand + ? commandType.syncPlayCommandOverlayLabel(context) + : strategy.label(context), style: Theme.of(context).textTheme.titleMedium?.copyWith( color: Theme.of(context).colorScheme.onSurface, fontWeight: FontWeight.w600, @@ -88,12 +97,18 @@ class SyncPlayCommandIndicator extends ConsumerWidget { class _CommandIcon extends StatelessWidget { final String? commandType; + final SyncCorrectionStrategy strategy; - const _CommandIcon({required this.commandType}); + const _CommandIcon({ + required this.commandType, + required this.strategy, + }); @override Widget build(BuildContext context) { - final (icon, color) = commandType.syncPlayCommandIconAndColor(context); + final (icon, color) = commandType != null + ? commandType.syncPlayCommandIconAndColor(context) + : strategy.iconAndColor(context); return Container( padding: const EdgeInsets.all(16), diff --git a/lib/screens/video_player/components/video_player_options_sheet.dart b/lib/screens/video_player/components/video_player_options_sheet.dart index d451f39ef..a9e0580b0 100644 --- a/lib/screens/video_player/components/video_player_options_sheet.dart +++ b/lib/screens/video_player/components/video_player_options_sheet.dart @@ -420,7 +420,10 @@ Future showSubSelection(BuildContext context) { final newModel = await playbackModel.setSubtitle(subModel, player); ref.read(playBackModel.notifier).update((state) => newModel); if (newModel != null) { - await ref.read(playbackModelHelper).shouldReload(newModel); + await ref.read(playbackModelHelper).shouldReload( + newModel, + isLocalTrackSwitch: true, + ); } }, ); @@ -461,7 +464,10 @@ Future showAudioSelection(BuildContext context) { final newModel = await playbackModel.setAudio(audioStream, player); ref.read(playBackModel.notifier).update((state) => newModel); if (newModel != null) { - await ref.read(playbackModelHelper).shouldReload(newModel); + await ref.read(playbackModelHelper).shouldReload( + newModel, + isLocalTrackSwitch: true, + ); } }); }, diff --git a/lib/screens/video_player/components/video_player_screenshot_indicator.dart b/lib/screens/video_player/components/video_player_screenshot_indicator.dart index 0ae67f7df..7b60556c1 100644 --- a/lib/screens/video_player/components/video_player_screenshot_indicator.dart +++ b/lib/screens/video_player/components/video_player_screenshot_indicator.dart @@ -46,7 +46,10 @@ class VideoPlayerScreenshotIndicatorState extends ConsumerState noSubsModel); if (noSubsModel != null) { - await ref.read(playbackModelHelper).shouldReload(noSubsModel); + await ref.read(playbackModelHelper).shouldReload( + noSubsModel, + isLocalTrackSwitch: true, + ); } result = await ref.read(videoPlayerProvider.notifier).takeScreenshot(); @@ -55,7 +58,10 @@ class VideoPlayerScreenshotIndicatorState extends ConsumerState restoredModel); if (restoredModel != null) { - await ref.read(playbackModelHelper).shouldReload(restoredModel); + await ref.read(playbackModelHelper).shouldReload( + restoredModel, + isLocalTrackSwitch: true, + ); } } else { result = await ref.read(videoPlayerProvider.notifier).takeScreenshot(); diff --git a/lib/seerr/seerr_chopper_service.chopper.dart b/lib/seerr/seerr_chopper_service.chopper.dart index a8bac573a..2fdb09ed5 100644 --- a/lib/seerr/seerr_chopper_service.chopper.dart +++ b/lib/seerr/seerr_chopper_service.chopper.dart @@ -102,7 +102,8 @@ final class _$SeerrChopperService extends SeerrChopperService { $url, client.baseUrl, ); - return client.send($request); + return client + .send($request); } @override @@ -124,7 +125,8 @@ final class _$SeerrChopperService extends SeerrChopperService { $url, client.baseUrl, ); - return client.send($request); + return client + .send($request); } @override @@ -154,7 +156,9 @@ final class _$SeerrChopperService extends SeerrChopperService { String? language, }) { final Uri $url = Uri.parse('/api/v1/movie/${movieId}'); - final Map $params = {'language': language}; + final Map $params = { + 'language': language + }; final Request $request = Request( 'GET', $url, @@ -170,7 +174,9 @@ final class _$SeerrChopperService extends SeerrChopperService { String? language, }) { final Uri $url = Uri.parse('/api/v1/tv/${tvId}'); - final Map $params = {'language': language}; + final Map $params = { + 'language': language + }; final Request $request = Request( 'GET', $url, @@ -187,7 +193,9 @@ final class _$SeerrChopperService extends SeerrChopperService { String? language, }) { final Uri $url = Uri.parse('/api/v1/tv/${tvId}/season/${seasonNumber}'); - final Map $params = {'language': language}; + final Map $params = { + 'language': language + }; final Request $request = Request( 'GET', $url, @@ -256,7 +264,8 @@ final class _$SeerrChopperService extends SeerrChopperService { } @override - Future> createRequest(SeerrCreateRequestBody body) { + Future> createRequest( + SeerrCreateRequestBody body) { final Uri $url = Uri.parse('/api/v1/request'); final $body = body; final Request $request = Request( @@ -522,7 +531,9 @@ final class _$SeerrChopperService extends SeerrChopperService { String? language, }) { final Uri $url = Uri.parse('/api/v1/movie/${movieId}/similar'); - final Map $params = {'language': language}; + final Map $params = { + 'language': language + }; final Request $request = Request( 'GET', $url, @@ -538,7 +549,9 @@ final class _$SeerrChopperService extends SeerrChopperService { String? language, }) { final Uri $url = Uri.parse('/api/v1/tv/${tvId}/similar'); - final Map $params = {'language': language}; + final Map $params = { + 'language': language + }; final Request $request = Request( 'GET', $url, @@ -554,7 +567,9 @@ final class _$SeerrChopperService extends SeerrChopperService { String? language, }) { final Uri $url = Uri.parse('/api/v1/movie/${movieId}/recommendations'); - final Map $params = {'language': language}; + final Map $params = { + 'language': language + }; final Request $request = Request( 'GET', $url, @@ -592,7 +607,9 @@ final class _$SeerrChopperService extends SeerrChopperService { String? language, }) { final Uri $url = Uri.parse('/api/v1/tv/${tvId}/recommendations'); - final Map $params = {'language': language}; + final Map $params = { + 'language': language + }; final Request $request = Request( 'GET', $url, @@ -639,7 +656,8 @@ final class _$SeerrChopperService extends SeerrChopperService { client.baseUrl, parameters: $params, ); - return client.send($request); + return client + .send($request); } @override @@ -665,9 +683,12 @@ final class _$SeerrChopperService extends SeerrChopperService { } @override - Future>> getMovieWatchProviders({String? watchRegion}) { + Future>> getMovieWatchProviders( + {String? watchRegion}) { final Uri $url = Uri.parse('/api/v1/watchproviders/movies'); - final Map $params = {'watchRegion': watchRegion}; + final Map $params = { + 'watchRegion': watchRegion + }; final Request $request = Request( 'GET', $url, @@ -678,9 +699,12 @@ final class _$SeerrChopperService extends SeerrChopperService { } @override - Future>> getTvWatchProviders({String? watchRegion}) { + Future>> getTvWatchProviders( + {String? watchRegion}) { final Uri $url = Uri.parse('/api/v1/watchproviders/tv'); - final Map $params = {'watchRegion': watchRegion}; + final Map $params = { + 'watchRegion': watchRegion + }; final Request $request = Request( 'GET', $url, @@ -698,7 +722,8 @@ final class _$SeerrChopperService extends SeerrChopperService { $url, client.baseUrl, ); - return client.send, SeerrWatchProviderRegion>($request); + return client.send, + SeerrWatchProviderRegion>($request); } @override @@ -709,7 +734,8 @@ final class _$SeerrChopperService extends SeerrChopperService { $url, client.baseUrl, ); - return client.send($request); + return client.send($request); } @override @@ -720,6 +746,7 @@ final class _$SeerrChopperService extends SeerrChopperService { $url, client.baseUrl, ); - return client.send($request); + return client.send($request); } } diff --git a/lib/seerr/seerr_models.freezed.dart b/lib/seerr/seerr_models.freezed.dart index d0d388747..b0eb17a98 100644 --- a/lib/seerr/seerr_models.freezed.dart +++ b/lib/seerr/seerr_models.freezed.dart @@ -33,7 +33,8 @@ mixin _$SeerrUserModel { @JsonKey(includeFromJson: false, includeToJson: false) @pragma('vm:prefer-inline') $SeerrUserModelCopyWith get copyWith => - _$SeerrUserModelCopyWithImpl(this as SeerrUserModel, _$identity); + _$SeerrUserModelCopyWithImpl( + this as SeerrUserModel, _$identity); /// Serializes this SeerrUserModel to a JSON map. Map toJson(); @@ -46,7 +47,8 @@ mixin _$SeerrUserModel { /// @nodoc abstract mixin class $SeerrUserModelCopyWith<$Res> { - factory $SeerrUserModelCopyWith(SeerrUserModel value, $Res Function(SeerrUserModel) _then) = + factory $SeerrUserModelCopyWith( + SeerrUserModel value, $Res Function(SeerrUserModel) _then) = _$SeerrUserModelCopyWithImpl; @useResult $Res call( @@ -66,7 +68,8 @@ abstract mixin class $SeerrUserModelCopyWith<$Res> { } /// @nodoc -class _$SeerrUserModelCopyWithImpl<$Res> implements $SeerrUserModelCopyWith<$Res> { +class _$SeerrUserModelCopyWithImpl<$Res> + implements $SeerrUserModelCopyWith<$Res> { _$SeerrUserModelCopyWithImpl(this._self, this._then); final SeerrUserModel _self; @@ -403,7 +406,8 @@ class _SeerrUserModel implements SeerrUserModel { this.movieQuotaDays, this.tvQuotaLimit, this.tvQuotaDays}); - factory _SeerrUserModel.fromJson(Map json) => _$SeerrUserModelFromJson(json); + factory _SeerrUserModel.fromJson(Map json) => + _$SeerrUserModelFromJson(json); @override final int? id; @@ -454,8 +458,10 @@ class _SeerrUserModel implements SeerrUserModel { } /// @nodoc -abstract mixin class _$SeerrUserModelCopyWith<$Res> implements $SeerrUserModelCopyWith<$Res> { - factory _$SeerrUserModelCopyWith(_SeerrUserModel value, $Res Function(_SeerrUserModel) _then) = +abstract mixin class _$SeerrUserModelCopyWith<$Res> + implements $SeerrUserModelCopyWith<$Res> { + factory _$SeerrUserModelCopyWith( + _SeerrUserModel value, $Res Function(_SeerrUserModel) _then) = __$SeerrUserModelCopyWithImpl; @override @useResult @@ -476,7 +482,8 @@ abstract mixin class _$SeerrUserModelCopyWith<$Res> implements $SeerrUserModelCo } /// @nodoc -class __$SeerrUserModelCopyWithImpl<$Res> implements _$SeerrUserModelCopyWith<$Res> { +class __$SeerrUserModelCopyWithImpl<$Res> + implements _$SeerrUserModelCopyWith<$Res> { __$SeerrUserModelCopyWithImpl(this._self, this._then); final _SeerrUserModel _self; @@ -590,7 +597,8 @@ mixin _$SeerrSonarrServer { @JsonKey(includeFromJson: false, includeToJson: false) @pragma('vm:prefer-inline') $SeerrSonarrServerCopyWith get copyWith => - _$SeerrSonarrServerCopyWithImpl(this as SeerrSonarrServer, _$identity); + _$SeerrSonarrServerCopyWithImpl( + this as SeerrSonarrServer, _$identity); /// Serializes this SeerrSonarrServer to a JSON map. Map toJson(); @@ -603,7 +611,8 @@ mixin _$SeerrSonarrServer { /// @nodoc abstract mixin class $SeerrSonarrServerCopyWith<$Res> { - factory $SeerrSonarrServerCopyWith(SeerrSonarrServer value, $Res Function(SeerrSonarrServer) _then) = + factory $SeerrSonarrServerCopyWith( + SeerrSonarrServer value, $Res Function(SeerrSonarrServer) _then) = _$SeerrSonarrServerCopyWithImpl; @useResult $Res call( @@ -634,7 +643,8 @@ abstract mixin class $SeerrSonarrServerCopyWith<$Res> { } /// @nodoc -class _$SeerrSonarrServerCopyWithImpl<$Res> implements $SeerrSonarrServerCopyWith<$Res> { +class _$SeerrSonarrServerCopyWithImpl<$Res> + implements $SeerrSonarrServerCopyWith<$Res> { _$SeerrSonarrServerCopyWithImpl(this._self, this._then); final SeerrSonarrServer _self; @@ -1103,7 +1113,8 @@ class _SeerrSonarrServer implements SeerrSonarrServer { this.tags, this.rootFolders, this.activeTags}); - factory _SeerrSonarrServer.fromJson(Map json) => _$SeerrSonarrServerFromJson(json); + factory _SeerrSonarrServer.fromJson(Map json) => + _$SeerrSonarrServerFromJson(json); @override final int? id; @@ -1176,8 +1187,10 @@ class _SeerrSonarrServer implements SeerrSonarrServer { } /// @nodoc -abstract mixin class _$SeerrSonarrServerCopyWith<$Res> implements $SeerrSonarrServerCopyWith<$Res> { - factory _$SeerrSonarrServerCopyWith(_SeerrSonarrServer value, $Res Function(_SeerrSonarrServer) _then) = +abstract mixin class _$SeerrSonarrServerCopyWith<$Res> + implements $SeerrSonarrServerCopyWith<$Res> { + factory _$SeerrSonarrServerCopyWith( + _SeerrSonarrServer value, $Res Function(_SeerrSonarrServer) _then) = __$SeerrSonarrServerCopyWithImpl; @override @useResult @@ -1209,7 +1222,8 @@ abstract mixin class _$SeerrSonarrServerCopyWith<$Res> implements $SeerrSonarrSe } /// @nodoc -class __$SeerrSonarrServerCopyWithImpl<$Res> implements _$SeerrSonarrServerCopyWith<$Res> { +class __$SeerrSonarrServerCopyWithImpl<$Res> + implements _$SeerrSonarrServerCopyWith<$Res> { __$SeerrSonarrServerCopyWithImpl(this._self, this._then); final _SeerrSonarrServer _self; @@ -1358,7 +1372,8 @@ mixin _$SeerrSonarrServerResponse { @JsonKey(includeFromJson: false, includeToJson: false) @pragma('vm:prefer-inline') $SeerrSonarrServerResponseCopyWith get copyWith => - _$SeerrSonarrServerResponseCopyWithImpl(this as SeerrSonarrServerResponse, _$identity); + _$SeerrSonarrServerResponseCopyWithImpl( + this as SeerrSonarrServerResponse, _$identity); /// Serializes this SeerrSonarrServerResponse to a JSON map. Map toJson(); @@ -1371,8 +1386,8 @@ mixin _$SeerrSonarrServerResponse { /// @nodoc abstract mixin class $SeerrSonarrServerResponseCopyWith<$Res> { - factory $SeerrSonarrServerResponseCopyWith( - SeerrSonarrServerResponse value, $Res Function(SeerrSonarrServerResponse) _then) = + factory $SeerrSonarrServerResponseCopyWith(SeerrSonarrServerResponse value, + $Res Function(SeerrSonarrServerResponse) _then) = _$SeerrSonarrServerResponseCopyWithImpl; @useResult $Res call( @@ -1385,7 +1400,8 @@ abstract mixin class $SeerrSonarrServerResponseCopyWith<$Res> { } /// @nodoc -class _$SeerrSonarrServerResponseCopyWithImpl<$Res> implements $SeerrSonarrServerResponseCopyWith<$Res> { +class _$SeerrSonarrServerResponseCopyWithImpl<$Res> + implements $SeerrSonarrServerResponseCopyWith<$Res> { _$SeerrSonarrServerResponseCopyWithImpl(this._self, this._then); final SeerrSonarrServerResponse _self; @@ -1529,7 +1545,10 @@ extension SeerrSonarrServerResponsePatterns on SeerrSonarrServerResponse { @optionalTypeArgs TResult maybeWhen( - TResult Function(SeerrSonarrServer? server, List? profiles, List? rootFolders, + TResult Function( + SeerrSonarrServer? server, + List? profiles, + List? rootFolders, List? tags)? $default, { required TResult orElse(), @@ -1537,7 +1556,8 @@ extension SeerrSonarrServerResponsePatterns on SeerrSonarrServerResponse { final _that = this; switch (_that) { case _SeerrSonarrServerResponse() when $default != null: - return $default(_that.server, _that.profiles, _that.rootFolders, _that.tags); + return $default( + _that.server, _that.profiles, _that.rootFolders, _that.tags); case _: return orElse(); } @@ -1558,14 +1578,18 @@ extension SeerrSonarrServerResponsePatterns on SeerrSonarrServerResponse { @optionalTypeArgs TResult when( - TResult Function(SeerrSonarrServer? server, List? profiles, List? rootFolders, + TResult Function( + SeerrSonarrServer? server, + List? profiles, + List? rootFolders, List? tags) $default, ) { final _that = this; switch (_that) { case _SeerrSonarrServerResponse(): - return $default(_that.server, _that.profiles, _that.rootFolders, _that.tags); + return $default( + _that.server, _that.profiles, _that.rootFolders, _that.tags); case _: throw StateError('Unexpected subclass'); } @@ -1585,14 +1609,18 @@ extension SeerrSonarrServerResponsePatterns on SeerrSonarrServerResponse { @optionalTypeArgs TResult? whenOrNull( - TResult? Function(SeerrSonarrServer? server, List? profiles, - List? rootFolders, List? tags)? + TResult? Function( + SeerrSonarrServer? server, + List? profiles, + List? rootFolders, + List? tags)? $default, ) { final _that = this; switch (_that) { case _SeerrSonarrServerResponse() when $default != null: - return $default(_that.server, _that.profiles, _that.rootFolders, _that.tags); + return $default( + _that.server, _that.profiles, _that.rootFolders, _that.tags); case _: return null; } @@ -1602,8 +1630,10 @@ extension SeerrSonarrServerResponsePatterns on SeerrSonarrServerResponse { /// @nodoc @JsonSerializable() class _SeerrSonarrServerResponse implements SeerrSonarrServerResponse { - const _SeerrSonarrServerResponse({this.server, this.profiles, this.rootFolders, this.tags}); - factory _SeerrSonarrServerResponse.fromJson(Map json) => _$SeerrSonarrServerResponseFromJson(json); + const _SeerrSonarrServerResponse( + {this.server, this.profiles, this.rootFolders, this.tags}); + factory _SeerrSonarrServerResponse.fromJson(Map json) => + _$SeerrSonarrServerResponseFromJson(json); @override final SeerrSonarrServer? server; @@ -1619,8 +1649,10 @@ class _SeerrSonarrServerResponse implements SeerrSonarrServerResponse { @override @JsonKey(includeFromJson: false, includeToJson: false) @pragma('vm:prefer-inline') - _$SeerrSonarrServerResponseCopyWith<_SeerrSonarrServerResponse> get copyWith => - __$SeerrSonarrServerResponseCopyWithImpl<_SeerrSonarrServerResponse>(this, _$identity); + _$SeerrSonarrServerResponseCopyWith<_SeerrSonarrServerResponse> + get copyWith => + __$SeerrSonarrServerResponseCopyWithImpl<_SeerrSonarrServerResponse>( + this, _$identity); @override Map toJson() { @@ -1636,9 +1668,10 @@ class _SeerrSonarrServerResponse implements SeerrSonarrServerResponse { } /// @nodoc -abstract mixin class _$SeerrSonarrServerResponseCopyWith<$Res> implements $SeerrSonarrServerResponseCopyWith<$Res> { - factory _$SeerrSonarrServerResponseCopyWith( - _SeerrSonarrServerResponse value, $Res Function(_SeerrSonarrServerResponse) _then) = +abstract mixin class _$SeerrSonarrServerResponseCopyWith<$Res> + implements $SeerrSonarrServerResponseCopyWith<$Res> { + factory _$SeerrSonarrServerResponseCopyWith(_SeerrSonarrServerResponse value, + $Res Function(_SeerrSonarrServerResponse) _then) = __$SeerrSonarrServerResponseCopyWithImpl; @override @useResult @@ -1653,7 +1686,8 @@ abstract mixin class _$SeerrSonarrServerResponseCopyWith<$Res> implements $Seerr } /// @nodoc -class __$SeerrSonarrServerResponseCopyWithImpl<$Res> implements _$SeerrSonarrServerResponseCopyWith<$Res> { +class __$SeerrSonarrServerResponseCopyWithImpl<$Res> + implements _$SeerrSonarrServerResponseCopyWith<$Res> { __$SeerrSonarrServerResponseCopyWithImpl(this._self, this._then); final _SeerrSonarrServerResponse _self; @@ -1736,7 +1770,8 @@ mixin _$SeerrRadarrServer { @JsonKey(includeFromJson: false, includeToJson: false) @pragma('vm:prefer-inline') $SeerrRadarrServerCopyWith get copyWith => - _$SeerrRadarrServerCopyWithImpl(this as SeerrRadarrServer, _$identity); + _$SeerrRadarrServerCopyWithImpl( + this as SeerrRadarrServer, _$identity); /// Serializes this SeerrRadarrServer to a JSON map. Map toJson(); @@ -1749,7 +1784,8 @@ mixin _$SeerrRadarrServer { /// @nodoc abstract mixin class $SeerrRadarrServerCopyWith<$Res> { - factory $SeerrRadarrServerCopyWith(SeerrRadarrServer value, $Res Function(SeerrRadarrServer) _then) = + factory $SeerrRadarrServerCopyWith( + SeerrRadarrServer value, $Res Function(SeerrRadarrServer) _then) = _$SeerrRadarrServerCopyWithImpl; @useResult $Res call( @@ -1780,7 +1816,8 @@ abstract mixin class $SeerrRadarrServerCopyWith<$Res> { } /// @nodoc -class _$SeerrRadarrServerCopyWithImpl<$Res> implements $SeerrRadarrServerCopyWith<$Res> { +class _$SeerrRadarrServerCopyWithImpl<$Res> + implements $SeerrRadarrServerCopyWith<$Res> { _$SeerrRadarrServerCopyWithImpl(this._self, this._then); final SeerrRadarrServer _self; @@ -2249,7 +2286,8 @@ class _SeerrRadarrServer implements SeerrRadarrServer { this.tags, this.rootFolders, this.activeTags}); - factory _SeerrRadarrServer.fromJson(Map json) => _$SeerrRadarrServerFromJson(json); + factory _SeerrRadarrServer.fromJson(Map json) => + _$SeerrRadarrServerFromJson(json); @override final int? id; @@ -2322,8 +2360,10 @@ class _SeerrRadarrServer implements SeerrRadarrServer { } /// @nodoc -abstract mixin class _$SeerrRadarrServerCopyWith<$Res> implements $SeerrRadarrServerCopyWith<$Res> { - factory _$SeerrRadarrServerCopyWith(_SeerrRadarrServer value, $Res Function(_SeerrRadarrServer) _then) = +abstract mixin class _$SeerrRadarrServerCopyWith<$Res> + implements $SeerrRadarrServerCopyWith<$Res> { + factory _$SeerrRadarrServerCopyWith( + _SeerrRadarrServer value, $Res Function(_SeerrRadarrServer) _then) = __$SeerrRadarrServerCopyWithImpl; @override @useResult @@ -2355,7 +2395,8 @@ abstract mixin class _$SeerrRadarrServerCopyWith<$Res> implements $SeerrRadarrSe } /// @nodoc -class __$SeerrRadarrServerCopyWithImpl<$Res> implements _$SeerrRadarrServerCopyWith<$Res> { +class __$SeerrRadarrServerCopyWithImpl<$Res> + implements _$SeerrRadarrServerCopyWith<$Res> { __$SeerrRadarrServerCopyWithImpl(this._self, this._then); final _SeerrRadarrServer _self; @@ -2504,7 +2545,8 @@ mixin _$SeerrRadarrServerResponse { @JsonKey(includeFromJson: false, includeToJson: false) @pragma('vm:prefer-inline') $SeerrRadarrServerResponseCopyWith get copyWith => - _$SeerrRadarrServerResponseCopyWithImpl(this as SeerrRadarrServerResponse, _$identity); + _$SeerrRadarrServerResponseCopyWithImpl( + this as SeerrRadarrServerResponse, _$identity); /// Serializes this SeerrRadarrServerResponse to a JSON map. Map toJson(); @@ -2517,8 +2559,8 @@ mixin _$SeerrRadarrServerResponse { /// @nodoc abstract mixin class $SeerrRadarrServerResponseCopyWith<$Res> { - factory $SeerrRadarrServerResponseCopyWith( - SeerrRadarrServerResponse value, $Res Function(SeerrRadarrServerResponse) _then) = + factory $SeerrRadarrServerResponseCopyWith(SeerrRadarrServerResponse value, + $Res Function(SeerrRadarrServerResponse) _then) = _$SeerrRadarrServerResponseCopyWithImpl; @useResult $Res call( @@ -2531,7 +2573,8 @@ abstract mixin class $SeerrRadarrServerResponseCopyWith<$Res> { } /// @nodoc -class _$SeerrRadarrServerResponseCopyWithImpl<$Res> implements $SeerrRadarrServerResponseCopyWith<$Res> { +class _$SeerrRadarrServerResponseCopyWithImpl<$Res> + implements $SeerrRadarrServerResponseCopyWith<$Res> { _$SeerrRadarrServerResponseCopyWithImpl(this._self, this._then); final SeerrRadarrServerResponse _self; @@ -2675,7 +2718,10 @@ extension SeerrRadarrServerResponsePatterns on SeerrRadarrServerResponse { @optionalTypeArgs TResult maybeWhen( - TResult Function(SeerrRadarrServer? server, List? profiles, List? rootFolders, + TResult Function( + SeerrRadarrServer? server, + List? profiles, + List? rootFolders, List? tags)? $default, { required TResult orElse(), @@ -2683,7 +2729,8 @@ extension SeerrRadarrServerResponsePatterns on SeerrRadarrServerResponse { final _that = this; switch (_that) { case _SeerrRadarrServerResponse() when $default != null: - return $default(_that.server, _that.profiles, _that.rootFolders, _that.tags); + return $default( + _that.server, _that.profiles, _that.rootFolders, _that.tags); case _: return orElse(); } @@ -2704,14 +2751,18 @@ extension SeerrRadarrServerResponsePatterns on SeerrRadarrServerResponse { @optionalTypeArgs TResult when( - TResult Function(SeerrRadarrServer? server, List? profiles, List? rootFolders, + TResult Function( + SeerrRadarrServer? server, + List? profiles, + List? rootFolders, List? tags) $default, ) { final _that = this; switch (_that) { case _SeerrRadarrServerResponse(): - return $default(_that.server, _that.profiles, _that.rootFolders, _that.tags); + return $default( + _that.server, _that.profiles, _that.rootFolders, _that.tags); case _: throw StateError('Unexpected subclass'); } @@ -2731,14 +2782,18 @@ extension SeerrRadarrServerResponsePatterns on SeerrRadarrServerResponse { @optionalTypeArgs TResult? whenOrNull( - TResult? Function(SeerrRadarrServer? server, List? profiles, - List? rootFolders, List? tags)? + TResult? Function( + SeerrRadarrServer? server, + List? profiles, + List? rootFolders, + List? tags)? $default, ) { final _that = this; switch (_that) { case _SeerrRadarrServerResponse() when $default != null: - return $default(_that.server, _that.profiles, _that.rootFolders, _that.tags); + return $default( + _that.server, _that.profiles, _that.rootFolders, _that.tags); case _: return null; } @@ -2748,8 +2803,10 @@ extension SeerrRadarrServerResponsePatterns on SeerrRadarrServerResponse { /// @nodoc @JsonSerializable() class _SeerrRadarrServerResponse implements SeerrRadarrServerResponse { - const _SeerrRadarrServerResponse({this.server, this.profiles, this.rootFolders, this.tags}); - factory _SeerrRadarrServerResponse.fromJson(Map json) => _$SeerrRadarrServerResponseFromJson(json); + const _SeerrRadarrServerResponse( + {this.server, this.profiles, this.rootFolders, this.tags}); + factory _SeerrRadarrServerResponse.fromJson(Map json) => + _$SeerrRadarrServerResponseFromJson(json); @override final SeerrRadarrServer? server; @@ -2765,8 +2822,10 @@ class _SeerrRadarrServerResponse implements SeerrRadarrServerResponse { @override @JsonKey(includeFromJson: false, includeToJson: false) @pragma('vm:prefer-inline') - _$SeerrRadarrServerResponseCopyWith<_SeerrRadarrServerResponse> get copyWith => - __$SeerrRadarrServerResponseCopyWithImpl<_SeerrRadarrServerResponse>(this, _$identity); + _$SeerrRadarrServerResponseCopyWith<_SeerrRadarrServerResponse> + get copyWith => + __$SeerrRadarrServerResponseCopyWithImpl<_SeerrRadarrServerResponse>( + this, _$identity); @override Map toJson() { @@ -2782,9 +2841,10 @@ class _SeerrRadarrServerResponse implements SeerrRadarrServerResponse { } /// @nodoc -abstract mixin class _$SeerrRadarrServerResponseCopyWith<$Res> implements $SeerrRadarrServerResponseCopyWith<$Res> { - factory _$SeerrRadarrServerResponseCopyWith( - _SeerrRadarrServerResponse value, $Res Function(_SeerrRadarrServerResponse) _then) = +abstract mixin class _$SeerrRadarrServerResponseCopyWith<$Res> + implements $SeerrRadarrServerResponseCopyWith<$Res> { + factory _$SeerrRadarrServerResponseCopyWith(_SeerrRadarrServerResponse value, + $Res Function(_SeerrRadarrServerResponse) _then) = __$SeerrRadarrServerResponseCopyWithImpl; @override @useResult @@ -2799,7 +2859,8 @@ abstract mixin class _$SeerrRadarrServerResponseCopyWith<$Res> implements $Seerr } /// @nodoc -class __$SeerrRadarrServerResponseCopyWithImpl<$Res> implements _$SeerrRadarrServerResponseCopyWith<$Res> { +class __$SeerrRadarrServerResponseCopyWithImpl<$Res> + implements _$SeerrRadarrServerResponseCopyWith<$Res> { __$SeerrRadarrServerResponseCopyWithImpl(this._self, this._then); final _SeerrRadarrServerResponse _self; @@ -2860,7 +2921,8 @@ mixin _$SeerrServiceProfile { @JsonKey(includeFromJson: false, includeToJson: false) @pragma('vm:prefer-inline') $SeerrServiceProfileCopyWith get copyWith => - _$SeerrServiceProfileCopyWithImpl(this as SeerrServiceProfile, _$identity); + _$SeerrServiceProfileCopyWithImpl( + this as SeerrServiceProfile, _$identity); /// Serializes this SeerrServiceProfile to a JSON map. Map toJson(); @@ -2873,14 +2935,16 @@ mixin _$SeerrServiceProfile { /// @nodoc abstract mixin class $SeerrServiceProfileCopyWith<$Res> { - factory $SeerrServiceProfileCopyWith(SeerrServiceProfile value, $Res Function(SeerrServiceProfile) _then) = + factory $SeerrServiceProfileCopyWith( + SeerrServiceProfile value, $Res Function(SeerrServiceProfile) _then) = _$SeerrServiceProfileCopyWithImpl; @useResult $Res call({int? id, String? name}); } /// @nodoc -class _$SeerrServiceProfileCopyWithImpl<$Res> implements $SeerrServiceProfileCopyWith<$Res> { +class _$SeerrServiceProfileCopyWithImpl<$Res> + implements $SeerrServiceProfileCopyWith<$Res> { _$SeerrServiceProfileCopyWithImpl(this._self, this._then); final SeerrServiceProfile _self; @@ -3068,7 +3132,8 @@ extension SeerrServiceProfilePatterns on SeerrServiceProfile { @JsonSerializable() class _SeerrServiceProfile implements SeerrServiceProfile { const _SeerrServiceProfile({this.id, this.name}); - factory _SeerrServiceProfile.fromJson(Map json) => _$SeerrServiceProfileFromJson(json); + factory _SeerrServiceProfile.fromJson(Map json) => + _$SeerrServiceProfileFromJson(json); @override final int? id; @@ -3081,7 +3146,8 @@ class _SeerrServiceProfile implements SeerrServiceProfile { @JsonKey(includeFromJson: false, includeToJson: false) @pragma('vm:prefer-inline') _$SeerrServiceProfileCopyWith<_SeerrServiceProfile> get copyWith => - __$SeerrServiceProfileCopyWithImpl<_SeerrServiceProfile>(this, _$identity); + __$SeerrServiceProfileCopyWithImpl<_SeerrServiceProfile>( + this, _$identity); @override Map toJson() { @@ -3097,8 +3163,10 @@ class _SeerrServiceProfile implements SeerrServiceProfile { } /// @nodoc -abstract mixin class _$SeerrServiceProfileCopyWith<$Res> implements $SeerrServiceProfileCopyWith<$Res> { - factory _$SeerrServiceProfileCopyWith(_SeerrServiceProfile value, $Res Function(_SeerrServiceProfile) _then) = +abstract mixin class _$SeerrServiceProfileCopyWith<$Res> + implements $SeerrServiceProfileCopyWith<$Res> { + factory _$SeerrServiceProfileCopyWith(_SeerrServiceProfile value, + $Res Function(_SeerrServiceProfile) _then) = __$SeerrServiceProfileCopyWithImpl; @override @useResult @@ -3106,7 +3174,8 @@ abstract mixin class _$SeerrServiceProfileCopyWith<$Res> implements $SeerrServic } /// @nodoc -class __$SeerrServiceProfileCopyWithImpl<$Res> implements _$SeerrServiceProfileCopyWith<$Res> { +class __$SeerrServiceProfileCopyWithImpl<$Res> + implements _$SeerrServiceProfileCopyWith<$Res> { __$SeerrServiceProfileCopyWithImpl(this._self, this._then); final _SeerrServiceProfile _self; @@ -3143,7 +3212,8 @@ mixin _$SeerrServiceTag { @JsonKey(includeFromJson: false, includeToJson: false) @pragma('vm:prefer-inline') $SeerrServiceTagCopyWith get copyWith => - _$SeerrServiceTagCopyWithImpl(this as SeerrServiceTag, _$identity); + _$SeerrServiceTagCopyWithImpl( + this as SeerrServiceTag, _$identity); /// Serializes this SeerrServiceTag to a JSON map. Map toJson(); @@ -3156,14 +3226,16 @@ mixin _$SeerrServiceTag { /// @nodoc abstract mixin class $SeerrServiceTagCopyWith<$Res> { - factory $SeerrServiceTagCopyWith(SeerrServiceTag value, $Res Function(SeerrServiceTag) _then) = + factory $SeerrServiceTagCopyWith( + SeerrServiceTag value, $Res Function(SeerrServiceTag) _then) = _$SeerrServiceTagCopyWithImpl; @useResult $Res call({int? id, String? label}); } /// @nodoc -class _$SeerrServiceTagCopyWithImpl<$Res> implements $SeerrServiceTagCopyWith<$Res> { +class _$SeerrServiceTagCopyWithImpl<$Res> + implements $SeerrServiceTagCopyWith<$Res> { _$SeerrServiceTagCopyWithImpl(this._self, this._then); final SeerrServiceTag _self; @@ -3351,7 +3423,8 @@ extension SeerrServiceTagPatterns on SeerrServiceTag { @JsonSerializable() class _SeerrServiceTag implements SeerrServiceTag { const _SeerrServiceTag({this.id, this.label}); - factory _SeerrServiceTag.fromJson(Map json) => _$SeerrServiceTagFromJson(json); + factory _SeerrServiceTag.fromJson(Map json) => + _$SeerrServiceTagFromJson(json); @override final int? id; @@ -3380,8 +3453,10 @@ class _SeerrServiceTag implements SeerrServiceTag { } /// @nodoc -abstract mixin class _$SeerrServiceTagCopyWith<$Res> implements $SeerrServiceTagCopyWith<$Res> { - factory _$SeerrServiceTagCopyWith(_SeerrServiceTag value, $Res Function(_SeerrServiceTag) _then) = +abstract mixin class _$SeerrServiceTagCopyWith<$Res> + implements $SeerrServiceTagCopyWith<$Res> { + factory _$SeerrServiceTagCopyWith( + _SeerrServiceTag value, $Res Function(_SeerrServiceTag) _then) = __$SeerrServiceTagCopyWithImpl; @override @useResult @@ -3389,7 +3464,8 @@ abstract mixin class _$SeerrServiceTagCopyWith<$Res> implements $SeerrServiceTag } /// @nodoc -class __$SeerrServiceTagCopyWithImpl<$Res> implements _$SeerrServiceTagCopyWith<$Res> { +class __$SeerrServiceTagCopyWithImpl<$Res> + implements _$SeerrServiceTagCopyWith<$Res> { __$SeerrServiceTagCopyWithImpl(this._self, this._then); final _SeerrServiceTag _self; @@ -3427,7 +3503,8 @@ mixin _$SeerrRootFolder { @JsonKey(includeFromJson: false, includeToJson: false) @pragma('vm:prefer-inline') $SeerrRootFolderCopyWith get copyWith => - _$SeerrRootFolderCopyWithImpl(this as SeerrRootFolder, _$identity); + _$SeerrRootFolderCopyWithImpl( + this as SeerrRootFolder, _$identity); /// Serializes this SeerrRootFolder to a JSON map. Map toJson(); @@ -3440,14 +3517,16 @@ mixin _$SeerrRootFolder { /// @nodoc abstract mixin class $SeerrRootFolderCopyWith<$Res> { - factory $SeerrRootFolderCopyWith(SeerrRootFolder value, $Res Function(SeerrRootFolder) _then) = + factory $SeerrRootFolderCopyWith( + SeerrRootFolder value, $Res Function(SeerrRootFolder) _then) = _$SeerrRootFolderCopyWithImpl; @useResult $Res call({int? id, int? freeSpace, String? path}); } /// @nodoc -class _$SeerrRootFolderCopyWithImpl<$Res> implements $SeerrRootFolderCopyWith<$Res> { +class _$SeerrRootFolderCopyWithImpl<$Res> + implements $SeerrRootFolderCopyWith<$Res> { _$SeerrRootFolderCopyWithImpl(this._self, this._then); final SeerrRootFolder _self; @@ -3640,7 +3719,8 @@ extension SeerrRootFolderPatterns on SeerrRootFolder { @JsonSerializable() class _SeerrRootFolder implements SeerrRootFolder { const _SeerrRootFolder({this.id, this.freeSpace, this.path}); - factory _SeerrRootFolder.fromJson(Map json) => _$SeerrRootFolderFromJson(json); + factory _SeerrRootFolder.fromJson(Map json) => + _$SeerrRootFolderFromJson(json); @override final int? id; @@ -3671,8 +3751,10 @@ class _SeerrRootFolder implements SeerrRootFolder { } /// @nodoc -abstract mixin class _$SeerrRootFolderCopyWith<$Res> implements $SeerrRootFolderCopyWith<$Res> { - factory _$SeerrRootFolderCopyWith(_SeerrRootFolder value, $Res Function(_SeerrRootFolder) _then) = +abstract mixin class _$SeerrRootFolderCopyWith<$Res> + implements $SeerrRootFolderCopyWith<$Res> { + factory _$SeerrRootFolderCopyWith( + _SeerrRootFolder value, $Res Function(_SeerrRootFolder) _then) = __$SeerrRootFolderCopyWithImpl; @override @useResult @@ -3680,7 +3762,8 @@ abstract mixin class _$SeerrRootFolderCopyWith<$Res> implements $SeerrRootFolder } /// @nodoc -class __$SeerrRootFolderCopyWithImpl<$Res> implements _$SeerrRootFolderCopyWith<$Res> { +class __$SeerrRootFolderCopyWithImpl<$Res> + implements _$SeerrRootFolderCopyWith<$Res> { __$SeerrRootFolderCopyWithImpl(this._self, this._then); final _SeerrRootFolder _self; @@ -3731,7 +3814,8 @@ mixin _$SeerrMediaInfo { @JsonKey(includeFromJson: false, includeToJson: false) @pragma('vm:prefer-inline') $SeerrMediaInfoCopyWith get copyWith => - _$SeerrMediaInfoCopyWithImpl(this as SeerrMediaInfo, _$identity); + _$SeerrMediaInfoCopyWithImpl( + this as SeerrMediaInfo, _$identity); /// Serializes this SeerrMediaInfo to a JSON map. Map toJson(); @@ -3744,7 +3828,8 @@ mixin _$SeerrMediaInfo { /// @nodoc abstract mixin class $SeerrMediaInfoCopyWith<$Res> { - factory $SeerrMediaInfoCopyWith(SeerrMediaInfo value, $Res Function(SeerrMediaInfo) _then) = + factory $SeerrMediaInfoCopyWith( + SeerrMediaInfo value, $Res Function(SeerrMediaInfo) _then) = _$SeerrMediaInfoCopyWithImpl; @useResult $Res call( @@ -3762,7 +3847,8 @@ abstract mixin class $SeerrMediaInfoCopyWith<$Res> { } /// @nodoc -class _$SeerrMediaInfoCopyWithImpl<$Res> implements $SeerrMediaInfoCopyWith<$Res> { +class _$SeerrMediaInfoCopyWithImpl<$Res> + implements $SeerrMediaInfoCopyWith<$Res> { _$SeerrMediaInfoCopyWithImpl(this._self, this._then); final SeerrMediaInfo _self; @@ -4080,7 +4166,8 @@ class _SeerrMediaInfo extends SeerrMediaInfo { _downloadStatus = downloadStatus, _downloadStatus4k = downloadStatus4k, super._(); - factory _SeerrMediaInfo.fromJson(Map json) => _$SeerrMediaInfoFromJson(json); + factory _SeerrMediaInfo.fromJson(Map json) => + _$SeerrMediaInfoFromJson(json); @override final int? id; @@ -4131,7 +4218,8 @@ class _SeerrMediaInfo extends SeerrMediaInfo { List? get downloadStatus4k { final value = _downloadStatus4k; if (value == null) return null; - if (_downloadStatus4k is EqualUnmodifiableListView) return _downloadStatus4k; + if (_downloadStatus4k is EqualUnmodifiableListView) + return _downloadStatus4k; // ignore: implicit_dynamic_type return EqualUnmodifiableListView(value); } @@ -4158,8 +4246,10 @@ class _SeerrMediaInfo extends SeerrMediaInfo { } /// @nodoc -abstract mixin class _$SeerrMediaInfoCopyWith<$Res> implements $SeerrMediaInfoCopyWith<$Res> { - factory _$SeerrMediaInfoCopyWith(_SeerrMediaInfo value, $Res Function(_SeerrMediaInfo) _then) = +abstract mixin class _$SeerrMediaInfoCopyWith<$Res> + implements $SeerrMediaInfoCopyWith<$Res> { + factory _$SeerrMediaInfoCopyWith( + _SeerrMediaInfo value, $Res Function(_SeerrMediaInfo) _then) = __$SeerrMediaInfoCopyWithImpl; @override @useResult @@ -4178,7 +4268,8 @@ abstract mixin class _$SeerrMediaInfoCopyWith<$Res> implements $SeerrMediaInfoCo } /// @nodoc -class __$SeerrMediaInfoCopyWithImpl<$Res> implements _$SeerrMediaInfoCopyWith<$Res> { +class __$SeerrMediaInfoCopyWithImpl<$Res> + implements _$SeerrMediaInfoCopyWith<$Res> { __$SeerrMediaInfoCopyWithImpl(this._self, this._then); final _SeerrMediaInfo _self; @@ -4272,7 +4363,8 @@ mixin _$SeerrFilterModel { @JsonKey(includeFromJson: false, includeToJson: false) @pragma('vm:prefer-inline') $SeerrFilterModelCopyWith get copyWith => - _$SeerrFilterModelCopyWithImpl(this as SeerrFilterModel, _$identity); + _$SeerrFilterModelCopyWithImpl( + this as SeerrFilterModel, _$identity); @override String toString() { @@ -4282,7 +4374,8 @@ mixin _$SeerrFilterModel { /// @nodoc abstract mixin class $SeerrFilterModelCopyWith<$Res> { - factory $SeerrFilterModelCopyWith(SeerrFilterModel value, $Res Function(SeerrFilterModel) _then) = + factory $SeerrFilterModelCopyWith( + SeerrFilterModel value, $Res Function(SeerrFilterModel) _then) = _$SeerrFilterModelCopyWithImpl; @useResult $Res call( @@ -4303,7 +4396,8 @@ abstract mixin class $SeerrFilterModelCopyWith<$Res> { } /// @nodoc -class _$SeerrFilterModelCopyWithImpl<$Res> implements $SeerrFilterModelCopyWith<$Res> { +class _$SeerrFilterModelCopyWithImpl<$Res> + implements $SeerrFilterModelCopyWith<$Res> { _$SeerrFilterModelCopyWithImpl(this._self, this._then); final SeerrFilterModel _self; @@ -4723,8 +4817,10 @@ class _SeerrFilterModel implements SeerrFilterModel { } /// @nodoc -abstract mixin class _$SeerrFilterModelCopyWith<$Res> implements $SeerrFilterModelCopyWith<$Res> { - factory _$SeerrFilterModelCopyWith(_SeerrFilterModel value, $Res Function(_SeerrFilterModel) _then) = +abstract mixin class _$SeerrFilterModelCopyWith<$Res> + implements $SeerrFilterModelCopyWith<$Res> { + factory _$SeerrFilterModelCopyWith( + _SeerrFilterModel value, $Res Function(_SeerrFilterModel) _then) = __$SeerrFilterModelCopyWithImpl; @override @useResult @@ -4746,7 +4842,8 @@ abstract mixin class _$SeerrFilterModelCopyWith<$Res> implements $SeerrFilterMod } /// @nodoc -class __$SeerrFilterModelCopyWithImpl<$Res> implements _$SeerrFilterModelCopyWith<$Res> { +class __$SeerrFilterModelCopyWithImpl<$Res> + implements _$SeerrFilterModelCopyWith<$Res> { __$SeerrFilterModelCopyWithImpl(this._self, this._then); final _SeerrFilterModel _self; diff --git a/lib/seerr/seerr_models.g.dart b/lib/seerr/seerr_models.g.dart index 2693c9b5a..a788b38a3 100644 --- a/lib/seerr/seerr_models.g.dart +++ b/lib/seerr/seerr_models.g.dart @@ -13,24 +13,32 @@ SeerrStatus _$SeerrStatusFromJson(Map json) => SeerrStatus( commitsBehind: (json['commitsBehind'] as num?)?.toInt(), ); -Map _$SeerrStatusToJson(SeerrStatus instance) => { +Map _$SeerrStatusToJson(SeerrStatus instance) => + { 'version': instance.version, 'commitTag': instance.commitTag, 'updateAvailable': instance.updateAvailable, 'commitsBehind': instance.commitsBehind, }; -SeerrUserQuota _$SeerrUserQuotaFromJson(Map json) => SeerrUserQuota( - movie: json['movie'] == null ? null : SeerrQuotaEntry.fromJson(json['movie'] as Map), - tv: json['tv'] == null ? null : SeerrQuotaEntry.fromJson(json['tv'] as Map), +SeerrUserQuota _$SeerrUserQuotaFromJson(Map json) => + SeerrUserQuota( + movie: json['movie'] == null + ? null + : SeerrQuotaEntry.fromJson(json['movie'] as Map), + tv: json['tv'] == null + ? null + : SeerrQuotaEntry.fromJson(json['tv'] as Map), ); -Map _$SeerrUserQuotaToJson(SeerrUserQuota instance) => { +Map _$SeerrUserQuotaToJson(SeerrUserQuota instance) => + { 'movie': instance.movie, 'tv': instance.tv, }; -SeerrQuotaEntry _$SeerrQuotaEntryFromJson(Map json) => SeerrQuotaEntry( +SeerrQuotaEntry _$SeerrQuotaEntryFromJson(Map json) => + SeerrQuotaEntry( days: (json['days'] as num?)?.toInt(), limit: (json['limit'] as num?)?.toInt(), used: (json['used'] as num?)?.toInt(), @@ -38,7 +46,8 @@ SeerrQuotaEntry _$SeerrQuotaEntryFromJson(Map json) => SeerrQuo restricted: json['restricted'] as bool?, ); -Map _$SeerrQuotaEntryToJson(SeerrQuotaEntry instance) => { +Map _$SeerrQuotaEntryToJson(SeerrQuotaEntry instance) => + { 'days': instance.days, 'limit': instance.limit, 'used': instance.used, @@ -46,47 +55,61 @@ Map _$SeerrQuotaEntryToJson(SeerrQuotaEntry instance) => json) => SeerrUserSettings( +SeerrUserSettings _$SeerrUserSettingsFromJson(Map json) => + SeerrUserSettings( locale: json['locale'] as String?, discoverRegion: json['discoverRegion'] as String?, originalLanguage: json['originalLanguage'] as String?, ); -Map _$SeerrUserSettingsToJson(SeerrUserSettings instance) => { +Map _$SeerrUserSettingsToJson(SeerrUserSettings instance) => + { 'locale': instance.locale, 'discoverRegion': instance.discoverRegion, 'originalLanguage': instance.originalLanguage, }; -SeerrUsersResponse _$SeerrUsersResponseFromJson(Map json) => SeerrUsersResponse( - results: - (json['results'] as List?)?.map((e) => SeerrUserModel.fromJson(e as Map)).toList(), - pageInfo: json['pageInfo'] == null ? null : SeerrPageInfo.fromJson(json['pageInfo'] as Map), +SeerrUsersResponse _$SeerrUsersResponseFromJson(Map json) => + SeerrUsersResponse( + results: (json['results'] as List?) + ?.map((e) => SeerrUserModel.fromJson(e as Map)) + .toList(), + pageInfo: json['pageInfo'] == null + ? null + : SeerrPageInfo.fromJson(json['pageInfo'] as Map), ); -Map _$SeerrUsersResponseToJson(SeerrUsersResponse instance) => { +Map _$SeerrUsersResponseToJson(SeerrUsersResponse instance) => + { 'results': instance.results, 'pageInfo': instance.pageInfo, }; -SeerrContentRating _$SeerrContentRatingFromJson(Map json) => SeerrContentRating( +SeerrContentRating _$SeerrContentRatingFromJson(Map json) => + SeerrContentRating( countryCode: json['iso_3166_1'] as String?, rating: json['rating'] as String?, descriptors: json['descriptors'] as List?, ); -Map _$SeerrContentRatingToJson(SeerrContentRating instance) => { +Map _$SeerrContentRatingToJson(SeerrContentRating instance) => + { 'iso_3166_1': instance.countryCode, 'rating': instance.rating, 'descriptors': instance.descriptors, }; SeerrCredits _$SeerrCreditsFromJson(Map json) => SeerrCredits( - cast: (json['cast'] as List?)?.map((e) => SeerrCast.fromJson(e as Map)).toList(), - crew: (json['crew'] as List?)?.map((e) => SeerrCrew.fromJson(e as Map)).toList(), + cast: (json['cast'] as List?) + ?.map((e) => SeerrCast.fromJson(e as Map)) + .toList(), + crew: (json['crew'] as List?) + ?.map((e) => SeerrCrew.fromJson(e as Map)) + .toList(), ); -Map _$SeerrCreditsToJson(SeerrCredits instance) => { +Map _$SeerrCreditsToJson(SeerrCredits instance) => + { 'cast': instance.cast, 'crew': instance.crew, }; @@ -133,7 +156,8 @@ Map _$SeerrCrewToJson(SeerrCrew instance) => { 'profilePath': instance.internalProfilePath, }; -SeerrMovieDetails _$SeerrMovieDetailsFromJson(Map json) => SeerrMovieDetails( +SeerrMovieDetails _$SeerrMovieDetailsFromJson(Map json) => + SeerrMovieDetails( id: (json['id'] as num?)?.toInt(), title: json['title'] as String?, originalTitle: json['originalTitle'] as String?, @@ -144,18 +168,28 @@ SeerrMovieDetails _$SeerrMovieDetailsFromJson(Map json) => Seer voteAverage: (json['voteAverage'] as num?)?.toDouble(), voteCount: (json['voteCount'] as num?)?.toInt(), runtime: (json['runtime'] as num?)?.toInt(), - genres: (json['genres'] as List?)?.map((e) => SeerrGenre.fromJson(e as Map)).toList(), - mediaInfo: json['mediaInfo'] == null ? null : SeerrMediaInfo.fromJson(json['mediaInfo'] as Map), - externalIds: - json['externalIds'] == null ? null : SeerrExternalIds.fromJson(json['externalIds'] as Map), - credits: json['credits'] == null ? null : SeerrCredits.fromJson(json['credits'] as Map), + genres: (json['genres'] as List?) + ?.map((e) => SeerrGenre.fromJson(e as Map)) + .toList(), + mediaInfo: json['mediaInfo'] == null + ? null + : SeerrMediaInfo.fromJson(json['mediaInfo'] as Map), + externalIds: json['externalIds'] == null + ? null + : SeerrExternalIds.fromJson( + json['externalIds'] as Map), + credits: json['credits'] == null + ? null + : SeerrCredits.fromJson(json['credits'] as Map), mediaId: _readJellyfinMediaId(json, 'mediaId') as String?, - contentRatings: (_readContentRatings(json, 'contentRatings') as List?) + contentRatings: (_readContentRatings(json, 'contentRatings') + as List?) ?.map((e) => SeerrContentRating.fromJson(e as Map)) .toList(), ); -Map _$SeerrMovieDetailsToJson(SeerrMovieDetails instance) => { +Map _$SeerrMovieDetailsToJson(SeerrMovieDetails instance) => + { 'id': instance.id, 'title': instance.title, 'originalTitle': instance.originalTitle, @@ -174,7 +208,8 @@ Map _$SeerrMovieDetailsToJson(SeerrMovieDetails instance) => json) => SeerrTvDetails( +SeerrTvDetails _$SeerrTvDetailsFromJson(Map json) => + SeerrTvDetails( id: (json['id'] as num?)?.toInt(), name: json['name'] as String?, originalName: json['originalName'] as String?, @@ -187,22 +222,34 @@ SeerrTvDetails _$SeerrTvDetailsFromJson(Map json) => SeerrTvDet voteCount: (json['voteCount'] as num?)?.toInt(), numberOfSeasons: (json['numberOfSeasons'] as num?)?.toInt(), numberOfEpisodes: (json['numberOfEpisodes'] as num?)?.toInt(), - genres: (json['genres'] as List?)?.map((e) => SeerrGenre.fromJson(e as Map)).toList(), - seasons: - (json['seasons'] as List?)?.map((e) => SeerrSeason.fromJson(e as Map)).toList(), - mediaInfo: json['mediaInfo'] == null ? null : SeerrMediaInfo.fromJson(json['mediaInfo'] as Map), - externalIds: - json['externalIds'] == null ? null : SeerrExternalIds.fromJson(json['externalIds'] as Map), - keywords: - (json['keywords'] as List?)?.map((e) => SeerrKeyword.fromJson(e as Map)).toList(), - credits: json['credits'] == null ? null : SeerrCredits.fromJson(json['credits'] as Map), + genres: (json['genres'] as List?) + ?.map((e) => SeerrGenre.fromJson(e as Map)) + .toList(), + seasons: (json['seasons'] as List?) + ?.map((e) => SeerrSeason.fromJson(e as Map)) + .toList(), + mediaInfo: json['mediaInfo'] == null + ? null + : SeerrMediaInfo.fromJson(json['mediaInfo'] as Map), + externalIds: json['externalIds'] == null + ? null + : SeerrExternalIds.fromJson( + json['externalIds'] as Map), + keywords: (json['keywords'] as List?) + ?.map((e) => SeerrKeyword.fromJson(e as Map)) + .toList(), + credits: json['credits'] == null + ? null + : SeerrCredits.fromJson(json['credits'] as Map), mediaId: _readJellyfinMediaId(json, 'mediaId') as String?, - contentRatings: (_readContentRatings(json, 'contentRatings') as List?) + contentRatings: (_readContentRatings(json, 'contentRatings') + as List?) ?.map((e) => SeerrContentRating.fromJson(e as Map)) .toList(), ); -Map _$SeerrTvDetailsToJson(SeerrTvDetails instance) => { +Map _$SeerrTvDetailsToJson(SeerrTvDetails instance) => + { 'id': instance.id, 'name': instance.name, 'originalName': instance.originalName, @@ -230,7 +277,8 @@ SeerrGenre _$SeerrGenreFromJson(Map json) => SeerrGenre( name: json['name'] as String?, ); -Map _$SeerrGenreToJson(SeerrGenre instance) => { +Map _$SeerrGenreToJson(SeerrGenre instance) => + { 'id': instance.id, 'name': instance.name, }; @@ -240,7 +288,8 @@ SeerrKeyword _$SeerrKeywordFromJson(Map json) => SeerrKeyword( name: json['name'] as String?, ); -Map _$SeerrKeywordToJson(SeerrKeyword instance) => { +Map _$SeerrKeywordToJson(SeerrKeyword instance) => + { 'id': instance.id, 'name': instance.name, }; @@ -255,7 +304,8 @@ SeerrSeason _$SeerrSeasonFromJson(Map json) => SeerrSeason( mediaId: _readJellyfinMediaId(json, 'mediaId') as String?, ); -Map _$SeerrSeasonToJson(SeerrSeason instance) => { +Map _$SeerrSeasonToJson(SeerrSeason instance) => + { 'id': instance.id, 'name': instance.name, 'overview': instance.overview, @@ -265,17 +315,20 @@ Map _$SeerrSeasonToJson(SeerrSeason instance) => json) => SeerrSeasonDetails( +SeerrSeasonDetails _$SeerrSeasonDetailsFromJson(Map json) => + SeerrSeasonDetails( id: (json['id'] as num?)?.toInt(), name: json['name'] as String?, overview: json['overview'] as String?, seasonNumber: (json['seasonNumber'] as num?)?.toInt(), internalPosterPath: json['posterPath'] as String?, - episodes: - (json['episodes'] as List?)?.map((e) => SeerrEpisode.fromJson(e as Map)).toList(), + episodes: (json['episodes'] as List?) + ?.map((e) => SeerrEpisode.fromJson(e as Map)) + .toList(), ); -Map _$SeerrSeasonDetailsToJson(SeerrSeasonDetails instance) => { +Map _$SeerrSeasonDetailsToJson(SeerrSeasonDetails instance) => + { 'id': instance.id, 'name': instance.name, 'overview': instance.overview, @@ -296,7 +349,8 @@ SeerrEpisode _$SeerrEpisodeFromJson(Map json) => SeerrEpisode( voteCount: (json['voteCount'] as num?)?.toInt(), ); -Map _$SeerrEpisodeToJson(SeerrEpisode instance) => { +Map _$SeerrEpisodeToJson(SeerrEpisode instance) => + { 'id': instance.id, 'name': instance.name, 'overview': instance.overview, @@ -308,7 +362,8 @@ Map _$SeerrEpisodeToJson(SeerrEpisode instance) => json) => +SeerrDownloadStatusEpisode _$SeerrDownloadStatusEpisodeFromJson( + Map json) => SeerrDownloadStatusEpisode( seriesId: (json['seriesId'] as num?)?.toInt(), tvdbId: (json['tvdbId'] as num?)?.toInt(), @@ -328,7 +383,9 @@ SeerrDownloadStatusEpisode _$SeerrDownloadStatusEpisodeFromJson(Map _$SeerrDownloadStatusEpisodeToJson(SeerrDownloadStatusEpisode instance) => { +Map _$SeerrDownloadStatusEpisodeToJson( + SeerrDownloadStatusEpisode instance) => + { 'seriesId': instance.seriesId, 'tvdbId': instance.tvdbId, 'episodeFileId': instance.episodeFileId, @@ -347,7 +404,8 @@ Map _$SeerrDownloadStatusEpisodeToJson(SeerrDownloadStatusEpiso 'id': instance.id, }; -SeerrDownloadStatus _$SeerrDownloadStatusFromJson(Map json) => SeerrDownloadStatus( +SeerrDownloadStatus _$SeerrDownloadStatusFromJson(Map json) => + SeerrDownloadStatus( externalId: (json['externalId'] as num?)?.toInt(), estimatedCompletionTime: json['estimatedCompletionTime'] as String?, mediaType: json['mediaType'] as String?, @@ -356,12 +414,16 @@ SeerrDownloadStatus _$SeerrDownloadStatusFromJson(Map json) => status: json['status'] as String?, timeLeft: json['timeLeft'] as String?, title: json['title'] as String?, - episode: - json['episode'] == null ? null : SeerrDownloadStatusEpisode.fromJson(json['episode'] as Map), + episode: json['episode'] == null + ? null + : SeerrDownloadStatusEpisode.fromJson( + json['episode'] as Map), downloadId: json['downloadId'] as String?, ); -Map _$SeerrDownloadStatusToJson(SeerrDownloadStatus instance) => { +Map _$SeerrDownloadStatusToJson( + SeerrDownloadStatus instance) => + { 'externalId': instance.externalId, 'estimatedCompletionTime': instance.estimatedCompletionTime, 'mediaType': instance.mediaType, @@ -374,7 +436,9 @@ Map _$SeerrDownloadStatusToJson(SeerrDownloadStatus instance) = 'downloadId': instance.downloadId, }; -SeerrMediaInfoSeason _$SeerrMediaInfoSeasonFromJson(Map json) => SeerrMediaInfoSeason( +SeerrMediaInfoSeason _$SeerrMediaInfoSeasonFromJson( + Map json) => + SeerrMediaInfoSeason( id: (json['id'] as num?)?.toInt(), seasonNumber: (json['seasonNumber'] as num?)?.toInt(), status: (json['status'] as num?)?.toInt(), @@ -382,7 +446,9 @@ SeerrMediaInfoSeason _$SeerrMediaInfoSeasonFromJson(Map json) = updatedAt: json['updatedAt'] as String?, ); -Map _$SeerrMediaInfoSeasonToJson(SeerrMediaInfoSeason instance) => { +Map _$SeerrMediaInfoSeasonToJson( + SeerrMediaInfoSeason instance) => + { 'id': instance.id, 'seasonNumber': instance.seasonNumber, 'status': instance.status, @@ -390,31 +456,42 @@ Map _$SeerrMediaInfoSeasonToJson(SeerrMediaInfoSeason instance) 'updatedAt': instance.updatedAt, }; -SeerrExternalIds _$SeerrExternalIdsFromJson(Map json) => SeerrExternalIds( +SeerrExternalIds _$SeerrExternalIdsFromJson(Map json) => + SeerrExternalIds( imdbId: json['imdbId'] as String?, facebookId: json['facebookId'] as String?, instagramId: json['instagramId'] as String?, twitterId: json['twitterId'] as String?, ); -Map _$SeerrExternalIdsToJson(SeerrExternalIds instance) => { +Map _$SeerrExternalIdsToJson(SeerrExternalIds instance) => + { 'imdbId': instance.imdbId, 'facebookId': instance.facebookId, 'instagramId': instance.instagramId, 'twitterId': instance.twitterId, }; -SeerrRatingsResponse _$SeerrRatingsResponseFromJson(Map json) => SeerrRatingsResponse( - rt: json['rt'] == null ? null : SeerrRtRating.fromJson(json['rt'] as Map), - imdb: json['imdb'] == null ? null : SeerrImdbRating.fromJson(json['imdb'] as Map), +SeerrRatingsResponse _$SeerrRatingsResponseFromJson( + Map json) => + SeerrRatingsResponse( + rt: json['rt'] == null + ? null + : SeerrRtRating.fromJson(json['rt'] as Map), + imdb: json['imdb'] == null + ? null + : SeerrImdbRating.fromJson(json['imdb'] as Map), ); -Map _$SeerrRatingsResponseToJson(SeerrRatingsResponse instance) => { +Map _$SeerrRatingsResponseToJson( + SeerrRatingsResponse instance) => + { 'rt': instance.rt, 'imdb': instance.imdb, }; -SeerrRtRating _$SeerrRtRatingFromJson(Map json) => SeerrRtRating( +SeerrRtRating _$SeerrRtRatingFromJson(Map json) => + SeerrRtRating( title: json['title'] as String?, year: (json['year'] as num?)?.toInt(), criticsScore: (json['criticsScore'] as num?)?.toInt(), @@ -424,7 +501,8 @@ SeerrRtRating _$SeerrRtRatingFromJson(Map json) => SeerrRtRatin url: json['url'] as String?, ); -Map _$SeerrRtRatingToJson(SeerrRtRating instance) => { +Map _$SeerrRtRatingToJson(SeerrRtRating instance) => + { 'title': instance.title, 'year': instance.year, 'criticsScore': instance.criticsScore, @@ -434,40 +512,58 @@ Map _$SeerrRtRatingToJson(SeerrRtRating instance) => json) => SeerrImdbRating( +SeerrImdbRating _$SeerrImdbRatingFromJson(Map json) => + SeerrImdbRating( title: json['title'] as String?, url: json['url'] as String?, criticsScore: (json['criticsScore'] as num?)?.toDouble(), ); -Map _$SeerrImdbRatingToJson(SeerrImdbRating instance) => { +Map _$SeerrImdbRatingToJson(SeerrImdbRating instance) => + { 'title': instance.title, 'url': instance.url, 'criticsScore': instance.criticsScore, }; -SeerrRequestsResponse _$SeerrRequestsResponseFromJson(Map json) => SeerrRequestsResponse( +SeerrRequestsResponse _$SeerrRequestsResponseFromJson( + Map json) => + SeerrRequestsResponse( results: (json['results'] as List?) ?.map((e) => SeerrMediaRequest.fromJson(e as Map)) .toList(), - pageInfo: json['pageInfo'] == null ? null : SeerrPageInfo.fromJson(json['pageInfo'] as Map), + pageInfo: json['pageInfo'] == null + ? null + : SeerrPageInfo.fromJson(json['pageInfo'] as Map), ); -Map _$SeerrRequestsResponseToJson(SeerrRequestsResponse instance) => { +Map _$SeerrRequestsResponseToJson( + SeerrRequestsResponse instance) => + { 'results': instance.results, 'pageInfo': instance.pageInfo, }; -SeerrMediaRequest _$SeerrMediaRequestFromJson(Map json) => SeerrMediaRequest( +SeerrMediaRequest _$SeerrMediaRequestFromJson(Map json) => + SeerrMediaRequest( id: (json['id'] as num?)?.toInt(), status: (json['status'] as num?)?.toInt(), - media: json['media'] == null ? null : SeerrMedia.fromJson(json['media'] as Map), - createdAt: json['createdAt'] == null ? null : DateTime.parse(json['createdAt'] as String), - updatedAt: json['updatedAt'] == null ? null : DateTime.parse(json['updatedAt'] as String), - requestedBy: - json['requestedBy'] == null ? null : SeerrUserModel.fromJson(json['requestedBy'] as Map), - modifiedBy: - json['modifiedBy'] == null ? null : SeerrUserModel.fromJson(json['modifiedBy'] as Map), + media: json['media'] == null + ? null + : SeerrMedia.fromJson(json['media'] as Map), + createdAt: json['createdAt'] == null + ? null + : DateTime.parse(json['createdAt'] as String), + updatedAt: json['updatedAt'] == null + ? null + : DateTime.parse(json['updatedAt'] as String), + requestedBy: json['requestedBy'] == null + ? null + : SeerrUserModel.fromJson( + json['requestedBy'] as Map), + modifiedBy: json['modifiedBy'] == null + ? null + : SeerrUserModel.fromJson(json['modifiedBy'] as Map), is4k: json['is4k'] as bool?, seasons: _parseRequestSeasons(json['seasons'] as List?), serverId: (json['serverId'] as num?)?.toInt(), @@ -475,7 +571,8 @@ SeerrMediaRequest _$SeerrMediaRequestFromJson(Map json) => Seer rootFolder: json['rootFolder'] as String?, ); -Map _$SeerrMediaRequestToJson(SeerrMediaRequest instance) => { +Map _$SeerrMediaRequestToJson(SeerrMediaRequest instance) => + { 'id': instance.id, 'status': instance.status, 'media': instance.media, @@ -490,33 +587,43 @@ Map _$SeerrMediaRequestToJson(SeerrMediaRequest instance) => json) => SeerrPageInfo( +SeerrPageInfo _$SeerrPageInfoFromJson(Map json) => + SeerrPageInfo( pages: (json['pages'] as num?)?.toInt(), pageSize: (json['pageSize'] as num?)?.toInt(), results: (json['results'] as num?)?.toInt(), page: (json['page'] as num?)?.toInt(), ); -Map _$SeerrPageInfoToJson(SeerrPageInfo instance) => { +Map _$SeerrPageInfoToJson(SeerrPageInfo instance) => + { 'pages': instance.pages, 'pageSize': instance.pageSize, 'results': instance.results, 'page': instance.page, }; -SeerrCreateRequestBody _$SeerrCreateRequestBodyFromJson(Map json) => SeerrCreateRequestBody( +SeerrCreateRequestBody _$SeerrCreateRequestBodyFromJson( + Map json) => + SeerrCreateRequestBody( mediaType: json['mediaType'] as String?, mediaId: (json['mediaId'] as num?)?.toInt(), is4k: json['is4k'] as bool?, - seasons: (json['seasons'] as List?)?.map((e) => (e as num).toInt()).toList(), + seasons: (json['seasons'] as List?) + ?.map((e) => (e as num).toInt()) + .toList(), serverId: (json['serverId'] as num?)?.toInt(), profileId: (json['profileId'] as num?)?.toInt(), rootFolder: json['rootFolder'] as String?, - tags: (json['tags'] as List?)?.map((e) => (e as num).toInt()).toList(), + tags: (json['tags'] as List?) + ?.map((e) => (e as num).toInt()) + .toList(), userId: (json['userId'] as num?)?.toInt(), ); -Map _$SeerrCreateRequestBodyToJson(SeerrCreateRequestBody instance) => { +Map _$SeerrCreateRequestBodyToJson( + SeerrCreateRequestBody instance) => + { 'mediaType': instance.mediaType, 'mediaId': instance.mediaId, 'is4k': instance.is4k, @@ -539,7 +646,8 @@ SeerrMedia _$SeerrMediaFromJson(Map json) => SeerrMedia( .toList(), ); -Map _$SeerrMediaToJson(SeerrMedia instance) => { +Map _$SeerrMediaToJson(SeerrMedia instance) => + { 'id': instance.id, 'tmdbId': instance.tmdbId, 'tvdbId': instance.tvdbId, @@ -548,19 +656,27 @@ Map _$SeerrMediaToJson(SeerrMedia instance) => json) => SeerrMediaResponse( - results: (json['results'] as List?)?.map((e) => SeerrMedia.fromJson(e as Map)).toList(), - pageInfo: json['pageInfo'] == null ? null : SeerrPageInfo.fromJson(json['pageInfo'] as Map), +SeerrMediaResponse _$SeerrMediaResponseFromJson(Map json) => + SeerrMediaResponse( + results: (json['results'] as List?) + ?.map((e) => SeerrMedia.fromJson(e as Map)) + .toList(), + pageInfo: json['pageInfo'] == null + ? null + : SeerrPageInfo.fromJson(json['pageInfo'] as Map), ); -Map _$SeerrMediaResponseToJson(SeerrMediaResponse instance) => { +Map _$SeerrMediaResponseToJson(SeerrMediaResponse instance) => + { 'results': instance.results, 'pageInfo': instance.pageInfo, }; -SeerrDiscoverItem _$SeerrDiscoverItemFromJson(Map json) => SeerrDiscoverItem( +SeerrDiscoverItem _$SeerrDiscoverItemFromJson(Map json) => + SeerrDiscoverItem( id: (json['id'] as num?)?.toInt(), - mediaType: $enumDecodeNullable(_$SeerrMediaTypeEnumMap, json['mediaType']), + mediaType: + $enumDecodeNullable(_$SeerrMediaTypeEnumMap, json['mediaType']), title: json['title'] as String?, name: json['name'] as String?, originalTitle: json['originalTitle'] as String?, @@ -570,11 +686,14 @@ SeerrDiscoverItem _$SeerrDiscoverItemFromJson(Map json) => Seer internalBackdropPath: json['backdropPath'] as String?, releaseDate: json['releaseDate'] as String?, firstAirDate: json['firstAirDate'] as String?, - mediaInfo: json['mediaInfo'] == null ? null : SeerrMediaInfo.fromJson(json['mediaInfo'] as Map), + mediaInfo: json['mediaInfo'] == null + ? null + : SeerrMediaInfo.fromJson(json['mediaInfo'] as Map), mediaId: _readJellyfinMediaId(json, 'mediaId') as String?, ); -Map _$SeerrDiscoverItemToJson(SeerrDiscoverItem instance) => { +Map _$SeerrDiscoverItemToJson(SeerrDiscoverItem instance) => + { 'id': instance.id, 'mediaType': _$SeerrMediaTypeEnumMap[instance.mediaType], 'title': instance.title, @@ -596,7 +715,9 @@ const _$SeerrMediaTypeEnumMap = { SeerrMediaType.person: 'person', }; -SeerrDiscoverResponse _$SeerrDiscoverResponseFromJson(Map json) => SeerrDiscoverResponse( +SeerrDiscoverResponse _$SeerrDiscoverResponseFromJson( + Map json) => + SeerrDiscoverResponse( results: (json['results'] as List?) ?.map((e) => SeerrDiscoverItem.fromJson(e as Map)) .toList(), @@ -605,82 +726,107 @@ SeerrDiscoverResponse _$SeerrDiscoverResponseFromJson(Map json) totalResults: (json['totalResults'] as num?)?.toInt(), ); -Map _$SeerrDiscoverResponseToJson(SeerrDiscoverResponse instance) => { +Map _$SeerrDiscoverResponseToJson( + SeerrDiscoverResponse instance) => + { 'results': instance.results, 'page': instance.page, 'totalPages': instance.totalPages, 'totalResults': instance.totalResults, }; -SeerrGenreResponse _$SeerrGenreResponseFromJson(Map json) => SeerrGenreResponse( - genres: (json['genres'] as List?)?.map((e) => SeerrGenre.fromJson(e as Map)).toList(), +SeerrGenreResponse _$SeerrGenreResponseFromJson(Map json) => + SeerrGenreResponse( + genres: (json['genres'] as List?) + ?.map((e) => SeerrGenre.fromJson(e as Map)) + .toList(), ); -Map _$SeerrGenreResponseToJson(SeerrGenreResponse instance) => { +Map _$SeerrGenreResponseToJson(SeerrGenreResponse instance) => + { 'genres': instance.genres, }; -SeerrWatchProvider _$SeerrWatchProviderFromJson(Map json) => SeerrWatchProvider( +SeerrWatchProvider _$SeerrWatchProviderFromJson(Map json) => + SeerrWatchProvider( providerId: (json['id'] as num?)?.toInt(), providerName: json['name'] as String?, internalLogoPath: json['logoPath'] as String?, displayPriority: (json['displayPriority'] as num?)?.toInt(), ); -Map _$SeerrWatchProviderToJson(SeerrWatchProvider instance) => { +Map _$SeerrWatchProviderToJson(SeerrWatchProvider instance) => + { 'id': instance.providerId, 'name': instance.providerName, 'logoPath': instance.internalLogoPath, 'displayPriority': instance.displayPriority, }; -SeerrWatchProviderRegion _$SeerrWatchProviderRegionFromJson(Map json) => SeerrWatchProviderRegion( +SeerrWatchProviderRegion _$SeerrWatchProviderRegionFromJson( + Map json) => + SeerrWatchProviderRegion( iso31661: json['iso_3166_1'] as String?, englishName: json['english_name'] as String?, nativeName: json['native_name'] as String?, ); -Map _$SeerrWatchProviderRegionToJson(SeerrWatchProviderRegion instance) => { +Map _$SeerrWatchProviderRegionToJson( + SeerrWatchProviderRegion instance) => + { 'iso_3166_1': instance.iso31661, 'english_name': instance.englishName, 'native_name': instance.nativeName, }; -SeerrCertification _$SeerrCertificationFromJson(Map json) => SeerrCertification( +SeerrCertification _$SeerrCertificationFromJson(Map json) => + SeerrCertification( certification: json['certification'] as String?, meaning: json['meaning'] as String?, order: (json['order'] as num?)?.toInt(), ); -Map _$SeerrCertificationToJson(SeerrCertification instance) => { +Map _$SeerrCertificationToJson(SeerrCertification instance) => + { 'certification': instance.certification, 'meaning': instance.meaning, 'order': instance.order, }; -SeerrCertificationsResponse _$SeerrCertificationsResponseFromJson(Map json) => +SeerrCertificationsResponse _$SeerrCertificationsResponseFromJson( + Map json) => SeerrCertificationsResponse( certifications: (json['certifications'] as Map?)?.map( (k, e) => MapEntry( - k, (e as List).map((e) => SeerrCertification.fromJson(e as Map)).toList()), + k, + (e as List) + .map((e) => + SeerrCertification.fromJson(e as Map)) + .toList()), ), ); -Map _$SeerrCertificationsResponseToJson(SeerrCertificationsResponse instance) => { +Map _$SeerrCertificationsResponseToJson( + SeerrCertificationsResponse instance) => + { 'certifications': instance.certifications, }; -SeerrAuthLocalBody _$SeerrAuthLocalBodyFromJson(Map json) => SeerrAuthLocalBody( +SeerrAuthLocalBody _$SeerrAuthLocalBodyFromJson(Map json) => + SeerrAuthLocalBody( email: json['email'] as String, password: json['password'] as String, ); -Map _$SeerrAuthLocalBodyToJson(SeerrAuthLocalBody instance) => { +Map _$SeerrAuthLocalBodyToJson(SeerrAuthLocalBody instance) => + { 'email': instance.email, 'password': instance.password, }; -SeerrAuthJellyfinBody _$SeerrAuthJellyfinBodyFromJson(Map json) => SeerrAuthJellyfinBody( +SeerrAuthJellyfinBody _$SeerrAuthJellyfinBodyFromJson( + Map json) => + SeerrAuthJellyfinBody( username: json['username'] as String, password: json['password'] as String, customHeaders: (json['customHeaders'] as Map?)?.map( @@ -689,14 +835,17 @@ SeerrAuthJellyfinBody _$SeerrAuthJellyfinBodyFromJson(Map json) hostname: json['hostname'] as String?, ); -Map _$SeerrAuthJellyfinBodyToJson(SeerrAuthJellyfinBody instance) => { +Map _$SeerrAuthJellyfinBodyToJson( + SeerrAuthJellyfinBody instance) => + { 'username': instance.username, 'password': instance.password, if (instance.customHeaders case final value?) 'customHeaders': value, if (instance.hostname case final value?) 'hostname': value, }; -_SeerrUserModel _$SeerrUserModelFromJson(Map json) => _SeerrUserModel( +_SeerrUserModel _$SeerrUserModelFromJson(Map json) => + _SeerrUserModel( id: (json['id'] as num?)?.toInt(), email: json['email'] as String?, username: json['username'] as String?, @@ -705,14 +854,18 @@ _SeerrUserModel _$SeerrUserModelFromJson(Map json) => _SeerrUse plexUsername: json['plexUsername'] as String?, permissions: (json['permissions'] as num?)?.toInt(), avatar: json['avatar'] as String?, - settings: json['settings'] == null ? null : SeerrUserSettings.fromJson(json['settings'] as Map), + settings: json['settings'] == null + ? null + : SeerrUserSettings.fromJson( + json['settings'] as Map), movieQuotaLimit: (json['movieQuotaLimit'] as num?)?.toInt(), movieQuotaDays: (json['movieQuotaDays'] as num?)?.toInt(), tvQuotaLimit: (json['tvQuotaLimit'] as num?)?.toInt(), tvQuotaDays: (json['tvQuotaDays'] as num?)?.toInt(), ); -Map _$SeerrUserModelToJson(_SeerrUserModel instance) => { +Map _$SeerrUserModelToJson(_SeerrUserModel instance) => + { 'id': instance.id, 'email': instance.email, 'username': instance.username, @@ -728,7 +881,8 @@ Map _$SeerrUserModelToJson(_SeerrUserModel instance) => json) => _SeerrSonarrServer( +_SeerrSonarrServer _$SeerrSonarrServerFromJson(Map json) => + _SeerrSonarrServer( id: (json['id'] as num?)?.toInt(), name: json['name'] as String?, hostname: json['hostname'] as String?, @@ -738,10 +892,12 @@ _SeerrSonarrServer _$SeerrSonarrServerFromJson(Map json) => _Se baseUrl: json['baseUrl'] as String?, activeProfileId: (json['activeProfileId'] as num?)?.toInt(), activeProfileName: json['activeProfileName'] as String?, - activeLanguageProfileId: (json['activeLanguageProfileId'] as num?)?.toInt(), + activeLanguageProfileId: + (json['activeLanguageProfileId'] as num?)?.toInt(), activeDirectory: json['activeDirectory'] as String?, activeAnimeProfileId: (json['activeAnimeProfileId'] as num?)?.toInt(), - activeAnimeLanguageProfileId: (json['activeAnimeLanguageProfileId'] as num?)?.toInt(), + activeAnimeLanguageProfileId: + (json['activeAnimeLanguageProfileId'] as num?)?.toInt(), activeAnimeProfileName: json['activeAnimeProfileName'] as String?, activeAnimeDirectory: json['activeAnimeDirectory'] as String?, is4k: json['is4k'] as bool?, @@ -752,14 +908,19 @@ _SeerrSonarrServer _$SeerrSonarrServerFromJson(Map json) => _Se profiles: (json['profiles'] as List?) ?.map((e) => SeerrServiceProfile.fromJson(e as Map)) .toList(), - tags: (json['tags'] as List?)?.map((e) => SeerrServiceTag.fromJson(e as Map)).toList(), + tags: (json['tags'] as List?) + ?.map((e) => SeerrServiceTag.fromJson(e as Map)) + .toList(), rootFolders: (json['rootFolders'] as List?) ?.map((e) => SeerrRootFolder.fromJson(e as Map)) .toList(), - activeTags: (json['activeTags'] as List?)?.map((e) => (e as num).toInt()).toList(), + activeTags: (json['activeTags'] as List?) + ?.map((e) => (e as num).toInt()) + .toList(), ); -Map _$SeerrSonarrServerToJson(_SeerrSonarrServer instance) => { +Map _$SeerrSonarrServerToJson(_SeerrSonarrServer instance) => + { 'id': instance.id, 'name': instance.name, 'hostname': instance.hostname, @@ -786,25 +947,34 @@ Map _$SeerrSonarrServerToJson(_SeerrSonarrServer instance) => < 'activeTags': instance.activeTags, }; -_SeerrSonarrServerResponse _$SeerrSonarrServerResponseFromJson(Map json) => _SeerrSonarrServerResponse( - server: json['server'] == null ? null : SeerrSonarrServer.fromJson(json['server'] as Map), +_SeerrSonarrServerResponse _$SeerrSonarrServerResponseFromJson( + Map json) => + _SeerrSonarrServerResponse( + server: json['server'] == null + ? null + : SeerrSonarrServer.fromJson(json['server'] as Map), profiles: (json['profiles'] as List?) ?.map((e) => SeerrServiceProfile.fromJson(e as Map)) .toList(), rootFolders: (json['rootFolders'] as List?) ?.map((e) => SeerrRootFolder.fromJson(e as Map)) .toList(), - tags: (json['tags'] as List?)?.map((e) => SeerrServiceTag.fromJson(e as Map)).toList(), + tags: (json['tags'] as List?) + ?.map((e) => SeerrServiceTag.fromJson(e as Map)) + .toList(), ); -Map _$SeerrSonarrServerResponseToJson(_SeerrSonarrServerResponse instance) => { +Map _$SeerrSonarrServerResponseToJson( + _SeerrSonarrServerResponse instance) => + { 'server': instance.server, 'profiles': instance.profiles, 'rootFolders': instance.rootFolders, 'tags': instance.tags, }; -_SeerrRadarrServer _$SeerrRadarrServerFromJson(Map json) => _SeerrRadarrServer( +_SeerrRadarrServer _$SeerrRadarrServerFromJson(Map json) => + _SeerrRadarrServer( id: (json['id'] as num?)?.toInt(), name: json['name'] as String?, hostname: json['hostname'] as String?, @@ -814,10 +984,12 @@ _SeerrRadarrServer _$SeerrRadarrServerFromJson(Map json) => _Se baseUrl: json['baseUrl'] as String?, activeProfileId: (json['activeProfileId'] as num?)?.toInt(), activeProfileName: json['activeProfileName'] as String?, - activeLanguageProfileId: (json['activeLanguageProfileId'] as num?)?.toInt(), + activeLanguageProfileId: + (json['activeLanguageProfileId'] as num?)?.toInt(), activeDirectory: json['activeDirectory'] as String?, activeAnimeProfileId: (json['activeAnimeProfileId'] as num?)?.toInt(), - activeAnimeLanguageProfileId: (json['activeAnimeLanguageProfileId'] as num?)?.toInt(), + activeAnimeLanguageProfileId: + (json['activeAnimeLanguageProfileId'] as num?)?.toInt(), activeAnimeProfileName: json['activeAnimeProfileName'] as String?, activeAnimeDirectory: json['activeAnimeDirectory'] as String?, is4k: json['is4k'] as bool?, @@ -828,14 +1000,19 @@ _SeerrRadarrServer _$SeerrRadarrServerFromJson(Map json) => _Se profiles: (json['profiles'] as List?) ?.map((e) => SeerrServiceProfile.fromJson(e as Map)) .toList(), - tags: (json['tags'] as List?)?.map((e) => SeerrServiceTag.fromJson(e as Map)).toList(), + tags: (json['tags'] as List?) + ?.map((e) => SeerrServiceTag.fromJson(e as Map)) + .toList(), rootFolders: (json['rootFolders'] as List?) ?.map((e) => SeerrRootFolder.fromJson(e as Map)) .toList(), - activeTags: (json['activeTags'] as List?)?.map((e) => (e as num).toInt()).toList(), + activeTags: (json['activeTags'] as List?) + ?.map((e) => (e as num).toInt()) + .toList(), ); -Map _$SeerrRadarrServerToJson(_SeerrRadarrServer instance) => { +Map _$SeerrRadarrServerToJson(_SeerrRadarrServer instance) => + { 'id': instance.id, 'name': instance.name, 'hostname': instance.hostname, @@ -862,57 +1039,73 @@ Map _$SeerrRadarrServerToJson(_SeerrRadarrServer instance) => < 'activeTags': instance.activeTags, }; -_SeerrRadarrServerResponse _$SeerrRadarrServerResponseFromJson(Map json) => _SeerrRadarrServerResponse( - server: json['server'] == null ? null : SeerrRadarrServer.fromJson(json['server'] as Map), +_SeerrRadarrServerResponse _$SeerrRadarrServerResponseFromJson( + Map json) => + _SeerrRadarrServerResponse( + server: json['server'] == null + ? null + : SeerrRadarrServer.fromJson(json['server'] as Map), profiles: (json['profiles'] as List?) ?.map((e) => SeerrServiceProfile.fromJson(e as Map)) .toList(), rootFolders: (json['rootFolders'] as List?) ?.map((e) => SeerrRootFolder.fromJson(e as Map)) .toList(), - tags: (json['tags'] as List?)?.map((e) => SeerrServiceTag.fromJson(e as Map)).toList(), + tags: (json['tags'] as List?) + ?.map((e) => SeerrServiceTag.fromJson(e as Map)) + .toList(), ); -Map _$SeerrRadarrServerResponseToJson(_SeerrRadarrServerResponse instance) => { +Map _$SeerrRadarrServerResponseToJson( + _SeerrRadarrServerResponse instance) => + { 'server': instance.server, 'profiles': instance.profiles, 'rootFolders': instance.rootFolders, 'tags': instance.tags, }; -_SeerrServiceProfile _$SeerrServiceProfileFromJson(Map json) => _SeerrServiceProfile( +_SeerrServiceProfile _$SeerrServiceProfileFromJson(Map json) => + _SeerrServiceProfile( id: (json['id'] as num?)?.toInt(), name: json['name'] as String?, ); -Map _$SeerrServiceProfileToJson(_SeerrServiceProfile instance) => { +Map _$SeerrServiceProfileToJson( + _SeerrServiceProfile instance) => + { 'id': instance.id, 'name': instance.name, }; -_SeerrServiceTag _$SeerrServiceTagFromJson(Map json) => _SeerrServiceTag( +_SeerrServiceTag _$SeerrServiceTagFromJson(Map json) => + _SeerrServiceTag( id: (json['id'] as num?)?.toInt(), label: json['label'] as String?, ); -Map _$SeerrServiceTagToJson(_SeerrServiceTag instance) => { +Map _$SeerrServiceTagToJson(_SeerrServiceTag instance) => + { 'id': instance.id, 'label': instance.label, }; -_SeerrRootFolder _$SeerrRootFolderFromJson(Map json) => _SeerrRootFolder( +_SeerrRootFolder _$SeerrRootFolderFromJson(Map json) => + _SeerrRootFolder( id: (json['id'] as num?)?.toInt(), freeSpace: (json['freeSpace'] as num?)?.toInt(), path: json['path'] as String?, ); -Map _$SeerrRootFolderToJson(_SeerrRootFolder instance) => { +Map _$SeerrRootFolderToJson(_SeerrRootFolder instance) => + { 'id': instance.id, 'freeSpace': instance.freeSpace, 'path': instance.path, }; -_SeerrMediaInfo _$SeerrMediaInfoFromJson(Map json) => _SeerrMediaInfo( +_SeerrMediaInfo _$SeerrMediaInfoFromJson(Map json) => + _SeerrMediaInfo( id: (json['id'] as num?)?.toInt(), tmdbId: (json['tmdbId'] as num?)?.toInt(), tvdbId: (json['tvdbId'] as num?)?.toInt(), @@ -934,7 +1127,8 @@ _SeerrMediaInfo _$SeerrMediaInfoFromJson(Map json) => _SeerrMed .toList(), ); -Map _$SeerrMediaInfoToJson(_SeerrMediaInfo instance) => { +Map _$SeerrMediaInfoToJson(_SeerrMediaInfo instance) => + { 'id': instance.id, 'tmdbId': instance.tmdbId, 'tvdbId': instance.tvdbId, diff --git a/lib/util/application_info.freezed.dart b/lib/util/application_info.freezed.dart index beda5c207..1aabbb0b6 100644 --- a/lib/util/application_info.freezed.dart +++ b/lib/util/application_info.freezed.dart @@ -113,13 +113,16 @@ extension ApplicationInfoPatterns on ApplicationInfo { @optionalTypeArgs TResult maybeWhen( - TResult Function(String name, String version, String buildNumber, TargetPlatform platform)? $default, { + TResult Function(String name, String version, String buildNumber, + TargetPlatform platform)? + $default, { required TResult orElse(), }) { final _that = this; switch (_that) { case _ApplicationInfo() when $default != null: - return $default(_that.name, _that.version, _that.buildNumber, _that.platform); + return $default( + _that.name, _that.version, _that.buildNumber, _that.platform); case _: return orElse(); } @@ -140,12 +143,15 @@ extension ApplicationInfoPatterns on ApplicationInfo { @optionalTypeArgs TResult when( - TResult Function(String name, String version, String buildNumber, TargetPlatform platform) $default, + TResult Function(String name, String version, String buildNumber, + TargetPlatform platform) + $default, ) { final _that = this; switch (_that) { case _ApplicationInfo(): - return $default(_that.name, _that.version, _that.buildNumber, _that.platform); + return $default( + _that.name, _that.version, _that.buildNumber, _that.platform); case _: throw StateError('Unexpected subclass'); } @@ -165,12 +171,15 @@ extension ApplicationInfoPatterns on ApplicationInfo { @optionalTypeArgs TResult? whenOrNull( - TResult? Function(String name, String version, String buildNumber, TargetPlatform platform)? $default, + TResult? Function(String name, String version, String buildNumber, + TargetPlatform platform)? + $default, ) { final _that = this; switch (_that) { case _ApplicationInfo() when $default != null: - return $default(_that.name, _that.version, _that.buildNumber, _that.platform); + return $default( + _that.name, _that.version, _that.buildNumber, _that.platform); case _: return null; } @@ -180,7 +189,11 @@ extension ApplicationInfoPatterns on ApplicationInfo { /// @nodoc class _ApplicationInfo extends ApplicationInfo { - _ApplicationInfo({required this.name, required this.version, required this.buildNumber, required this.platform}) + _ApplicationInfo( + {required this.name, + required this.version, + required this.buildNumber, + required this.platform}) : super._(); @override diff --git a/lib/widgets/syncplay/syncplay_badge.dart b/lib/widgets/syncplay/syncplay_badge.dart index a6a989b9c..99f23eb2f 100644 --- a/lib/widgets/syncplay/syncplay_badge.dart +++ b/lib/widgets/syncplay/syncplay_badge.dart @@ -3,6 +3,7 @@ import 'package:flutter/material.dart'; import 'package:flutter_riverpod/flutter_riverpod.dart'; import 'package:iconsax_plus/iconsax_plus.dart'; +import 'package:fladder/models/syncplay/syncplay_models.dart'; import 'package:fladder/providers/syncplay/syncplay_provider.dart'; import 'package:fladder/util/localization_helper.dart'; import 'package:fladder/widgets/syncplay/syncplay_extensions.dart'; @@ -21,6 +22,8 @@ class SyncPlayBadge extends ConsumerWidget { final groupState = ref.watch(syncPlayGroupStateProvider); final isProcessing = ref.watch(syncPlayProvider.select((s) => s.isProcessingCommand)); final processingCommand = ref.watch(syncPlayProvider.select((s) => s.processingCommandType)); + final correctionStrategy = ref.watch(syncCorrectionStrategyProvider); + final hasCorrection = correctionStrategy != SyncCorrectionStrategy.none; final (icon, color) = groupState.iconAndColor(context); @@ -28,19 +31,21 @@ class SyncPlayBadge extends ConsumerWidget { duration: const Duration(milliseconds: 200), padding: const EdgeInsets.symmetric(horizontal: 10, vertical: 6), decoration: BoxDecoration( - color: isProcessing + color: (isProcessing || hasCorrection) ? Theme.of(context).colorScheme.primaryContainer.withValues(alpha: 0.95) : Theme.of(context).colorScheme.surface.withValues(alpha: 0.85), borderRadius: BorderRadius.circular(20), border: Border.all( - color: isProcessing ? Theme.of(context).colorScheme.primary : color.withValues(alpha: 0.5), - width: isProcessing ? 2 : 1, + color: (isProcessing || hasCorrection) + ? Theme.of(context).colorScheme.primary + : color.withValues(alpha: 0.5), + width: (isProcessing || hasCorrection) ? 2 : 1, ), ), child: Row( mainAxisSize: MainAxisSize.min, children: [ - if (isProcessing) ...[ + if (isProcessing || hasCorrection) ...[ SizedBox( width: 12, height: 12, @@ -51,7 +56,9 @@ class SyncPlayBadge extends ConsumerWidget { ), const SizedBox(width: 6), Text( - processingCommand.syncPlayProcessingLabel(context), + isProcessing + ? processingCommand.syncPlayProcessingLabel(context) + : correctionStrategy.label(context), style: Theme.of(context).textTheme.labelSmall?.copyWith( color: Theme.of(context).colorScheme.onPrimaryContainer, fontWeight: FontWeight.w600, @@ -95,6 +102,8 @@ class SyncPlayIndicator extends ConsumerWidget { final groupState = ref.watch(syncPlayGroupStateProvider); final isProcessing = ref.watch(syncPlayProvider.select((s) => s.isProcessingCommand)); + final correctionStrategy = ref.watch(syncCorrectionStrategyProvider); + final hasCorrection = correctionStrategy != SyncCorrectionStrategy.none; final color = groupState.color(context); @@ -102,11 +111,15 @@ class SyncPlayIndicator extends ConsumerWidget { duration: const Duration(milliseconds: 200), padding: const EdgeInsets.all(6), decoration: BoxDecoration( - color: isProcessing ? Theme.of(context).colorScheme.primaryContainer : color.withValues(alpha: 0.2), + color: (isProcessing || hasCorrection) + ? Theme.of(context).colorScheme.primaryContainer + : color.withValues(alpha: 0.2), shape: BoxShape.circle, - border: isProcessing ? Border.all(color: Theme.of(context).colorScheme.primary, width: 2) : null, + border: (isProcessing || hasCorrection) + ? Border.all(color: Theme.of(context).colorScheme.primary, width: 2) + : null, ), - child: isProcessing + child: (isProcessing || hasCorrection) ? SizedBox( width: 16, height: 16, diff --git a/lib/widgets/syncplay/syncplay_extensions.dart b/lib/widgets/syncplay/syncplay_extensions.dart index e3da24047..296759720 100644 --- a/lib/widgets/syncplay/syncplay_extensions.dart +++ b/lib/widgets/syncplay/syncplay_extensions.dart @@ -77,3 +77,25 @@ extension SyncPlayCommandLabelExtension on String? { }; } } + +/// Extension for correction strategy UI mapping. +extension SyncCorrectionStrategyExtension on SyncCorrectionStrategy { + /// Returns short label for active correction strategy. + String label(BuildContext context) { + return switch (this) { + SyncCorrectionStrategy.none => context.localized.syncPlaySyncing, + SyncCorrectionStrategy.speedToSync => 'SpeedToSync', + SyncCorrectionStrategy.skipToSync => 'SkipToSync', + }; + } + + /// Returns icon and color for active correction strategy. + (IconData, Color) iconAndColor(BuildContext context) { + final scheme = Theme.of(context).colorScheme; + return switch (this) { + SyncCorrectionStrategy.none => (IconsaxPlusBold.refresh, scheme.primary), + SyncCorrectionStrategy.speedToSync => (IconsaxPlusBold.flash_1, scheme.primary), + SyncCorrectionStrategy.skipToSync => (IconsaxPlusBold.forward, scheme.tertiary), + }; + } +} diff --git a/lib/wrappers/media_control_wrapper.dart b/lib/wrappers/media_control_wrapper.dart index 17ba7c17c..03fcee0e0 100644 --- a/lib/wrappers/media_control_wrapper.dart +++ b/lib/wrappers/media_control_wrapper.dart @@ -406,7 +406,10 @@ class MediaControlsWrapper extends BaseAudioHandler implements VideoPlayerContro playbackModel.audioStreams?.firstWhere((element) => element.index == value), this); ref.read(playBackModel.notifier).update((state) => newModel); if (newModel != null) { - await ref.read(playbackModelHelper).shouldReload(newModel); + await ref.read(playbackModelHelper).shouldReload( + newModel, + isLocalTrackSwitch: true, + ); } } @@ -417,7 +420,10 @@ class MediaControlsWrapper extends BaseAudioHandler implements VideoPlayerContro playbackModel.subStreams?.firstWhere((element) => element.index == value), this); ref.read(playBackModel.notifier).update((state) => newModel); if (newModel != null) { - await ref.read(playbackModelHelper).shouldReload(newModel); + await ref.read(playbackModelHelper).shouldReload( + newModel, + isLocalTrackSwitch: true, + ); } } From 887be69b0ea936f4ffe93676b3cc360851f48997 Mon Sep 17 00:00:00 2001 From: Filip Iricanin Date: Sat, 21 Mar 2026 13:02:00 +0100 Subject: [PATCH 19/25] feat: improve SyncPlay seek handling and fix local track-switch autoplay - Update `onSeekRequested` in `VideoPlayerProvider` to report buffering to SyncPlay without forcing a local buffering state to prevent the command handler from suppressing "Ready" or "Unpause" actions. - Ensure `state.play()` is awaited during video reloads in `VideoPlayerProvider`. - Implement `_ensureLocalTrackSwitchAutoplay` in `PlaybackModel` to retry playing media if a local track switch leaves the player in a paused/buffered state. - Improve `onSelectedMediaStreamChanged` to trigger the new autoplay logic after loading a playback item or resetting the reloading state during local track switches. --- lib/models/playback/playback_model.dart | 22 +++++++++++++++++++++- lib/providers/video_player_provider.dart | 7 ++++--- 2 files changed, 25 insertions(+), 4 deletions(-) diff --git a/lib/models/playback/playback_model.dart b/lib/models/playback/playback_model.dart index 69bde7baf..9584ce523 100644 --- a/lib/models/playback/playback_model.dart +++ b/lib/models/playback/playback_model.dart @@ -133,6 +133,20 @@ class PlaybackModelHelper { JellyService get api => ref.read(jellyApiProvider); + Future _ensureLocalTrackSwitchAutoplay() async { + for (var attempt = 0; attempt < 8; attempt++) { + final playbackState = ref.read(mediaPlaybackProvider); + if (!playbackState.buffering && !playbackState.playing) { + await ref.read(videoPlayerProvider).play(); + return; + } + if (playbackState.playing) { + return; + } + await Future.delayed(const Duration(milliseconds: 250)); + } + } + Future loadNewVideo(ItemBaseModel newItem) async { ref.read(videoPlayerProvider).pause(); ref.read(mediaPlaybackProvider.notifier).update((state) => state.copyWith(buffering: true)); @@ -618,17 +632,23 @@ class PlaybackModelHelper { return; } if (newModel.runtimeType != playbackModel.runtimeType || newModel is TranscodePlaybackModel) { - ref.read(videoPlayerProvider.notifier).loadPlaybackItem( + await ref.read(videoPlayerProvider.notifier).loadPlaybackItem( newModel, currentPosition, waitForSyncPlayCommand: shouldReportGroupBuffering, ); + if (isLocalTrackSwitch) { + await _ensureLocalTrackSwitchAutoplay(); + } } else if (isSyncPlayActive) { // If we didn't call loadPlaybackItem, we must reset reloading state ref.read(videoPlayerProvider.notifier).setReloading( false, reportToSyncPlay: false, ); + if (isLocalTrackSwitch) { + await _ensureLocalTrackSwitchAutoplay(); + } } } } diff --git a/lib/providers/video_player_provider.dart b/lib/providers/video_player_provider.dart index 5f485ad39..a7caef752 100644 --- a/lib/providers/video_player_provider.dart +++ b/lib/providers/video_player_provider.dart @@ -150,8 +150,9 @@ class VideoPlayerNotifier extends StateNotifier { _syncPlayAction = false; }, onSeekRequested: (positionTicks) async { - // This is called when another user seeks, we should report buffering immediately - ref.read(syncPlayProvider.notifier).setPlayerBufferingState(true); + // Another user requested a seek. Report buffering to SyncPlay + // without forcing local buffering state, otherwise the command + // handler can get stuck waiting and suppress Ready/Unpause. ref.read(syncPlayProvider.notifier).reportBuffering(); }, onStop: () async { @@ -321,7 +322,7 @@ class VideoPlayerNotifier extends StateNotifier { // For local track-switch reloads in SyncPlay, resume local playback // directly and avoid forcing group-wide wait/unpause. if (!syncPlayActive || !waitForSyncPlayCommand) { - state.play(); + await state.play(); } else { // For SyncPlay, we report ready now that reload AND seek are done. // We report NOT playing so the server sends an explicit Unpause command. From aa61c04d8ad5cc99fb3967b0f8aa0f06d945cd5c Mon Sep 17 00:00:00 2001 From: Filip Iricanin Date: Sat, 21 Mar 2026 13:11:08 +0100 Subject: [PATCH 20/25] lint: fix code formatting and cleanup in SyncPlay components - Standardize code formatting and improve readability across `SyncPlay` models, controllers, and UI components. - Refactor `LoginCodeDialog` to clean up asynchronous logic and improve layout constraints. - Organize and consolidate package imports in `SyncPlay` related widgets. - Add missing line breaks and simplify conditional expressions in `SyncPlayCommandHandler` and `PlaybackModel`. - Update `SyncPlayBadge` and `SyncPlayCommandIndicator` to use more concise property access and cleaner UI logic. --- lib/models/playback/playback_model.dart | 9 ++++++-- lib/models/syncplay/syncplay_models.dart | 13 +++++------- .../handlers/syncplay_command_handler.dart | 4 +--- .../syncplay/syncplay_controller.dart | 15 +++++++++++-- lib/providers/video_player_provider.dart | 3 +-- lib/screens/login/login_code_dialog.dart | 16 +++++--------- .../syncplay_command_indicator.dart | 15 +++++-------- lib/widgets/syncplay/syncplay_badge.dart | 21 +++++++------------ 8 files changed, 44 insertions(+), 52 deletions(-) diff --git a/lib/models/playback/playback_model.dart b/lib/models/playback/playback_model.dart index 9584ce523..8fe1a8ea0 100644 --- a/lib/models/playback/playback_model.dart +++ b/lib/models/playback/playback_model.dart @@ -79,12 +79,16 @@ class PlaybackModel { Future updatePlaybackPosition(Duration position, bool isPlaying, Ref ref) => throw UnimplementedError(); + Future playbackStarted(Duration position, Ref ref) => throw UnimplementedError(); + Future playbackStopped(Duration position, Duration? totalDuration, Ref ref) => throw UnimplementedError(); final MediaStreamsModel? mediaStreams; + List? get subStreams => throw UnimplementedError(); + List? get audioStreams => throw UnimplementedError(); Future? startDuration() async => item.userData.playBackPosition; @@ -92,7 +96,9 @@ class PlaybackModel { PlaybackModel? updateUserData(UserData userData) => throw UnimplementedError(); Future? setSubtitle(SubStreamModel? model, MediaControlsWrapper player) => throw UnimplementedError(); + Future? setAudio(AudioStreamModel? model, MediaControlsWrapper player) => throw UnimplementedError(); + Future? setQualityOption(Map map) => throw UnimplementedError(); ItemBaseModel? get nextVideo { @@ -512,8 +518,7 @@ class PlaybackModelHelper { final isSyncPlayActive = ref.read(isSyncPlayActiveProvider); final Duration currentPosition; - final shouldReportGroupBuffering = - (isSyncPlayActive && !isLocalTrackSwitch); + final shouldReportGroupBuffering = (isSyncPlayActive && !isLocalTrackSwitch); if (isSyncPlayActive) { // Set reloading state in the player notifier to prevent premature ready reporting diff --git a/lib/models/syncplay/syncplay_models.dart b/lib/models/syncplay/syncplay_models.dart index 6f0e8d22f..aeb2eeaa5 100644 --- a/lib/models/syncplay/syncplay_models.dart +++ b/lib/models/syncplay/syncplay_models.dart @@ -154,18 +154,15 @@ SyncCorrectionStrategy selectSyncCorrectionStrategy({ final absDiffMillis = diffMillis.abs(); - final canUseSpeedToSync = - (config.useSpeedToSync && - hasPlaybackRate && - absDiffMillis >= config.minDelaySpeedToSyncMs && - absDiffMillis < config.maxDelaySpeedToSyncMs); + final canUseSpeedToSync = (config.useSpeedToSync && + hasPlaybackRate && + absDiffMillis >= config.minDelaySpeedToSyncMs && + absDiffMillis < config.maxDelaySpeedToSyncMs); if (canUseSpeedToSync) { return SyncCorrectionStrategy.speedToSync; } - final canUseSkipToSync = - (config.useSkipToSync && - absDiffMillis >= config.minDelaySkipToSyncMs); + final canUseSkipToSync = (config.useSkipToSync && absDiffMillis >= config.minDelaySkipToSyncMs); if (canUseSkipToSync) { return SyncCorrectionStrategy.skipToSync; } diff --git a/lib/providers/syncplay/handlers/syncplay_command_handler.dart b/lib/providers/syncplay/handlers/syncplay_command_handler.dart index 6146c56df..90f809bf2 100644 --- a/lib/providers/syncplay/handlers/syncplay_command_handler.dart +++ b/lib/providers/syncplay/handlers/syncplay_command_handler.dart @@ -124,9 +124,7 @@ class SyncPlayCommandHandler { final commandItemId = command.playlistItemId; final currentItemId = currentState.playlistItemId; - if (commandItemId.isNotEmpty && - currentItemId != null && - commandItemId != currentItemId) { + if (commandItemId.isNotEmpty && currentItemId != null && commandItemId != currentItemId) { return false; } diff --git a/lib/providers/syncplay/syncplay_controller.dart b/lib/providers/syncplay/syncplay_controller.dart index 34260389f..e5714baf6 100644 --- a/lib/providers/syncplay/syncplay_controller.dart +++ b/lib/providers/syncplay/syncplay_controller.dart @@ -50,7 +50,9 @@ class SyncPlayController { SyncPlayState _state = SyncPlayState(); final _stateController = StreamController.broadcast(); + Stream get stateStream => _stateController.stream; + SyncPlayState get state => _state; // Lifecycle state for reconnection @@ -62,15 +64,25 @@ class SyncPlayController { // Player callbacks (delegated to command handler) set onPlay(SyncPlayPlayerCallback? callback) => _commandHandler.onPlay = callback; + set onPause(SyncPlayPlayerCallback? callback) => _commandHandler.onPause = callback; + set onSeek(SyncPlaySeekCallback? callback) => _commandHandler.onSeek = callback; + set onStop(SyncPlayPlayerCallback? callback) => _commandHandler.onStop = callback; + set getPositionTicks(SyncPlayPositionCallback? callback) => _commandHandler.getPositionTicks = callback; + set isPlaying(bool Function()? callback) => _commandHandler.isPlaying = callback; + set isBuffering(bool Function()? callback) => _commandHandler.isBuffering = callback; + set onSeekRequested(SyncPlaySeekCallback? callback) => _commandHandler.onSeekRequested = callback; + set onReportReady(SyncPlayReportReadyCallback? callback) => _commandHandler.onReportReady = callback; + set onSetSpeed(SyncPlaySetSpeedCallback? callback) => _commandHandler.onSetSpeed = callback; + set hasPlaybackRate(bool Function()? callback) => _commandHandler.hasPlaybackRate = callback; /// Mark that a SyncPlay command was executed locally. @@ -169,8 +181,7 @@ class SyncPlayController { final remoteNow = _timeSync?.localDateToRemote(now) ?? now; final elapsedMs = remoteNow.difference(when).inMilliseconds; - final estimatedServerTicks = - lastCommand.positionTicks + millisecondsToTicks(elapsedMs); + final estimatedServerTicks = lastCommand.positionTicks + millisecondsToTicks(elapsedMs); final diffTicks = estimatedServerTicks - currentPositionTicks; final diffMillis = ticksToMilliseconds(diffTicks).toDouble(); final correctionConfig = _state.correctionConfig; diff --git a/lib/providers/video_player_provider.dart b/lib/providers/video_player_provider.dart index a7caef752..9d4a43cbd 100644 --- a/lib/providers/video_player_provider.dart +++ b/lib/providers/video_player_provider.dart @@ -44,8 +44,7 @@ class VideoPlayerNotifier extends StateNotifier { bool get _isSyncPlayActive => ref.read(isSyncPlayActiveProvider); /// Whether player is reloading/buffering from SyncPlay perspective. - bool get _isReloading => - ref.read(syncPlayProvider.select((s) => s.correctionState.playerIsBuffering)); + bool get _isReloading => ref.read(syncPlayProvider.select((s) => s.correctionState.playerIsBuffering)); /// Check if we're in the SyncPlay cooldown period bool get _inSyncPlayCooldown { diff --git a/lib/screens/login/login_code_dialog.dart b/lib/screens/login/login_code_dialog.dart index 3a6c13420..4a2e2fa32 100644 --- a/lib/screens/login/login_code_dialog.dart +++ b/lib/screens/login/login_code_dialog.dart @@ -27,6 +27,7 @@ Future openLoginCodeDialog( class LoginCodeDialog extends ConsumerStatefulWidget { final QuickConnectResult quickConnectInfo; final Function(BuildContext context, String secret) onAuthenticated; + const LoginCodeDialog({ required this.quickConnectInfo, required this.onAuthenticated, @@ -61,9 +62,7 @@ class _LoginCodeDialogState extends ConsumerState { secret: quickConnectInfo.secret, ); final newSecret = result.body?.secret; - if (result.isSuccessful && - result.body?.authenticated == true && - newSecret != null) { + if (result.isSuccessful && result.body?.authenticated == true && newSecret != null) { widget.onAuthenticated.call(context, newSecret); } else { timer?.reset(); @@ -74,8 +73,7 @@ class _LoginCodeDialogState extends ConsumerState { @override Widget build(BuildContext context) { final code = quickConnectInfo.code; - final serverName = ref.watch(authProvider - .select((value) => value.serverLoginModel?.tempCredentials.serverName)); + final serverName = ref.watch(authProvider.select((value) => value.serverLoginModel?.tempCredentials.serverName)); return Dialog( constraints: const BoxConstraints( maxWidth: 500, @@ -111,10 +109,7 @@ class _LoginCodeDialogState extends ConsumerState { padding: const EdgeInsets.all(12.0), child: Text( code, - style: Theme.of(context) - .textTheme - .titleLarge - ?.copyWith( + style: Theme.of(context).textTheme.titleLarge?.copyWith( fontWeight: FontWeight.bold, wordSpacing: 8, letterSpacing: 8, @@ -129,8 +124,7 @@ class _LoginCodeDialogState extends ConsumerState { ], FilledButton( onPressed: () async { - final response = - await ref.read(jellyApiProvider).quickConnectInitiate(); + final response = await ref.read(jellyApiProvider).quickConnectInitiate(); if (response.isSuccessful && response.body != null) { setState(() { quickConnectInfo = response.body!; diff --git a/lib/screens/video_player/components/syncplay_command_indicator.dart b/lib/screens/video_player/components/syncplay_command_indicator.dart index abe7a4e59..0acbd22c8 100644 --- a/lib/screens/video_player/components/syncplay_command_indicator.dart +++ b/lib/screens/video_player/components/syncplay_command_indicator.dart @@ -1,11 +1,9 @@ -import 'package:flutter/material.dart'; - -import 'package:flutter_riverpod/flutter_riverpod.dart'; - import 'package:fladder/models/syncplay/syncplay_models.dart'; import 'package:fladder/providers/syncplay/syncplay_provider.dart'; import 'package:fladder/util/localization_helper.dart'; import 'package:fladder/widgets/syncplay/syncplay_extensions.dart'; +import 'package:flutter/material.dart'; +import 'package:flutter_riverpod/flutter_riverpod.dart'; /// Centered overlay showing SyncPlay command being processed class SyncPlayCommandIndicator extends ConsumerWidget { @@ -56,9 +54,7 @@ class SyncPlayCommandIndicator extends ConsumerWidget { ), const SizedBox(height: 12), Text( - showCommand - ? commandType.syncPlayCommandOverlayLabel(context) - : strategy.label(context), + showCommand ? commandType.syncPlayCommandOverlayLabel(context) : strategy.label(context), style: Theme.of(context).textTheme.titleMedium?.copyWith( color: Theme.of(context).colorScheme.onSurface, fontWeight: FontWeight.w600, @@ -106,9 +102,8 @@ class _CommandIcon extends StatelessWidget { @override Widget build(BuildContext context) { - final (icon, color) = commandType != null - ? commandType.syncPlayCommandIconAndColor(context) - : strategy.iconAndColor(context); + final (icon, color) = + commandType != null ? commandType.syncPlayCommandIconAndColor(context) : strategy.iconAndColor(context); return Container( padding: const EdgeInsets.all(16), diff --git a/lib/widgets/syncplay/syncplay_badge.dart b/lib/widgets/syncplay/syncplay_badge.dart index 99f23eb2f..c668e8db4 100644 --- a/lib/widgets/syncplay/syncplay_badge.dart +++ b/lib/widgets/syncplay/syncplay_badge.dart @@ -1,12 +1,10 @@ -import 'package:flutter/material.dart'; - -import 'package:flutter_riverpod/flutter_riverpod.dart'; -import 'package:iconsax_plus/iconsax_plus.dart'; - import 'package:fladder/models/syncplay/syncplay_models.dart'; import 'package:fladder/providers/syncplay/syncplay_provider.dart'; import 'package:fladder/util/localization_helper.dart'; import 'package:fladder/widgets/syncplay/syncplay_extensions.dart'; +import 'package:flutter/material.dart'; +import 'package:flutter_riverpod/flutter_riverpod.dart'; +import 'package:iconsax_plus/iconsax_plus.dart'; /// Badge widget showing SyncPlay status in the video player class SyncPlayBadge extends ConsumerWidget { @@ -36,9 +34,7 @@ class SyncPlayBadge extends ConsumerWidget { : Theme.of(context).colorScheme.surface.withValues(alpha: 0.85), borderRadius: BorderRadius.circular(20), border: Border.all( - color: (isProcessing || hasCorrection) - ? Theme.of(context).colorScheme.primary - : color.withValues(alpha: 0.5), + color: (isProcessing || hasCorrection) ? Theme.of(context).colorScheme.primary : color.withValues(alpha: 0.5), width: (isProcessing || hasCorrection) ? 2 : 1, ), ), @@ -56,9 +52,7 @@ class SyncPlayBadge extends ConsumerWidget { ), const SizedBox(width: 6), Text( - isProcessing - ? processingCommand.syncPlayProcessingLabel(context) - : correctionStrategy.label(context), + isProcessing ? processingCommand.syncPlayProcessingLabel(context) : correctionStrategy.label(context), style: Theme.of(context).textTheme.labelSmall?.copyWith( color: Theme.of(context).colorScheme.onPrimaryContainer, fontWeight: FontWeight.w600, @@ -115,9 +109,8 @@ class SyncPlayIndicator extends ConsumerWidget { ? Theme.of(context).colorScheme.primaryContainer : color.withValues(alpha: 0.2), shape: BoxShape.circle, - border: (isProcessing || hasCorrection) - ? Border.all(color: Theme.of(context).colorScheme.primary, width: 2) - : null, + border: + (isProcessing || hasCorrection) ? Border.all(color: Theme.of(context).colorScheme.primary, width: 2) : null, ), child: (isProcessing || hasCorrection) ? SizedBox( From caea38f7d2e47fcb57615886c0a2cc4e27a0aef5 Mon Sep 17 00:00:00 2001 From: Filip Iricanin Date: Sat, 21 Mar 2026 14:39:16 +0100 Subject: [PATCH 21/25] feat: refactor SyncPlay command handling to use type-safe enums across platform layers - Implement `SyncPlayCommandType` enum in `pigeons/video_player.dart` and regenerate platform code to replace string-based command types with a type-safe enum. - Update `VideoPlayerApi` and `VideoPlayerImplementation` to handle `setSyncPlayCommandState` using the new `SyncPlayCommandType`. - Refactor `VideoPlayerObject` in Android to use a local `SyncPlayCommandUiState` data class for tracking command processing. - Update `VideoPlayerProvider` in Flutter to map string command states to the new `SyncPlayCommandType` enum when notifying the native layer. - Refactor `SyncPlayController` to include a configurable verbose logging utility. - Clean up imports and formatting across `VideoPlayerHelper.g.kt`, `VideoPlayerApi.kt`, and `media_control_wrapper.dart`. --- .../fladder/api/VideoPlayerHelper.g.kt | 3031 ++++++++++------- .../messengers/VideoPlayerImplementation.kt | 9 +- .../fladder/objects/VideoPlayerObject.kt | 15 +- .../syncplay/syncplay_controller.dart | 11 +- lib/providers/video_player_provider.dart | 14 +- lib/src/video_player_helper.g.dart | 95 +- lib/wrappers/media_control_wrapper.dart | 19 +- pigeons/video_player.dart | 23 +- 8 files changed, 1852 insertions(+), 1365 deletions(-) diff --git a/android/app/src/main/kotlin/nl/jknaapen/fladder/api/VideoPlayerHelper.g.kt b/android/app/src/main/kotlin/nl/jknaapen/fladder/api/VideoPlayerHelper.g.kt index 27857ae65..910316fa1 100644 --- a/android/app/src/main/kotlin/nl/jknaapen/fladder/api/VideoPlayerHelper.g.kt +++ b/android/app/src/main/kotlin/nl/jknaapen/fladder/api/VideoPlayerHelper.g.kt @@ -13,60 +13,67 @@ import io.flutter.plugin.common.StandardMethodCodec import io.flutter.plugin.common.StandardMessageCodec import java.io.ByteArrayOutputStream import java.nio.ByteBuffer + private object VideoPlayerHelperPigeonUtils { - fun createConnectionError(channelName: String): FlutterError { - return FlutterError("channel-error", "Unable to establish connection on channel: '$channelName'.", "") } - - fun wrapResult(result: Any?): List { - return listOf(result) - } - - fun wrapError(exception: Throwable): List { - return if (exception is FlutterError) { - listOf( - exception.code, - exception.message, - exception.details - ) - } else { - listOf( - exception.javaClass.simpleName, - exception.toString(), - "Cause: " + exception.cause + ", Stacktrace: " + Log.getStackTraceString(exception) - ) - } - } - fun deepEquals(a: Any?, b: Any?): Boolean { - if (a is ByteArray && b is ByteArray) { - return a.contentEquals(b) - } - if (a is IntArray && b is IntArray) { - return a.contentEquals(b) - } - if (a is LongArray && b is LongArray) { - return a.contentEquals(b) - } - if (a is DoubleArray && b is DoubleArray) { - return a.contentEquals(b) - } - if (a is Array<*> && b is Array<*>) { - return a.size == b.size && - a.indices.all{ deepEquals(a[it], b[it]) } - } - if (a is List<*> && b is List<*>) { - return a.size == b.size && - a.indices.all{ deepEquals(a[it], b[it]) } - } - if (a is Map<*, *> && b is Map<*, *>) { - return a.size == b.size && a.all { - (b as Map).contains(it.key) && - deepEquals(it.value, b[it.key]) - } - } - return a == b - } - + fun createConnectionError(channelName: String): FlutterError { + return FlutterError( + "channel-error", + "Unable to establish connection on channel: '$channelName'.", + "" + ) + } + + fun wrapResult(result: Any?): List { + return listOf(result) + } + + fun wrapError(exception: Throwable): List { + return if (exception is FlutterError) { + listOf( + exception.code, + exception.message, + exception.details + ) + } else { + listOf( + exception.javaClass.simpleName, + exception.toString(), + "Cause: " + exception.cause + ", Stacktrace: " + Log.getStackTraceString(exception) + ) + } + } + + fun deepEquals(a: Any?, b: Any?): Boolean { + if (a is ByteArray && b is ByteArray) { + return a.contentEquals(b) + } + if (a is IntArray && b is IntArray) { + return a.contentEquals(b) + } + if (a is LongArray && b is LongArray) { + return a.contentEquals(b) + } + if (a is DoubleArray && b is DoubleArray) { + return a.contentEquals(b) + } + if (a is Array<*> && b is Array<*>) { + return a.size == b.size && + a.indices.all { deepEquals(a[it], b[it]) } + } + if (a is List<*> && b is List<*>) { + return a.size == b.size && + a.indices.all { deepEquals(a[it], b[it]) } + } + if (a is Map<*, *> && b is Map<*, *>) { + return a.size == b.size && a.all { + (b as Map).contains(it.key) && + deepEquals(it.value, b[it.key]) + } + } + return a == b + } + } /** @@ -75,1350 +82,1764 @@ private object VideoPlayerHelperPigeonUtils { * @property message The error message. * @property details The error details. Must be a datatype supported by the api codec. */ -class FlutterError ( - val code: String, - override val message: String? = null, - val details: Any? = null +class FlutterError( + val code: String, + override val message: String? = null, + val details: Any? = null ) : Throwable() enum class PlaybackType(val raw: Int) { - DIRECT(0), - TRANSCODED(1), - OFFLINE(2), - TV(3); + DIRECT(0), + TRANSCODED(1), + OFFLINE(2), + TV(3); + + companion object { + fun ofRaw(raw: Int): PlaybackType? { + return values().firstOrNull { it.raw == raw } + } + } +} - companion object { - fun ofRaw(raw: Int): PlaybackType? { - return values().firstOrNull { it.raw == raw } +enum class SyncPlayCommandType(val raw: Int) { + NONE(0), + PAUSE(1), + UNPAUSE(2), + SEEK(3), + STOP(4); + + companion object { + fun ofRaw(raw: Int): SyncPlayCommandType? { + return values().firstOrNull { it.raw == raw } + } } - } } enum class MediaSegmentType(val raw: Int) { - COMMERCIAL(0), - PREVIEW(1), - RECAP(2), - INTRO(3), - OUTRO(4); + COMMERCIAL(0), + PREVIEW(1), + RECAP(2), + INTRO(3), + OUTRO(4); - companion object { - fun ofRaw(raw: Int): MediaSegmentType? { - return values().firstOrNull { it.raw == raw } + companion object { + fun ofRaw(raw: Int): MediaSegmentType? { + return values().firstOrNull { it.raw == raw } + } } - } } /** Source of the last playback state change (for SyncPlay: infer user actions from stream). */ enum class PlaybackChangeSource(val raw: Int) { - /** No specific source (e.g. periodic update, buffering). */ - NONE(0), - /** User tapped play/pause/seek on native; Flutter should send SyncPlay if active. */ - USER(1), - /** Change was caused by applying a SyncPlay command; do not send again. */ - SYNCPLAY(2); - - companion object { - fun ofRaw(raw: Int): PlaybackChangeSource? { - return values().firstOrNull { it.raw == raw } - } - } + /** No specific source (e.g. periodic update, buffering). */ + NONE(0), + + /** User tapped play/pause/seek on native; Flutter should send SyncPlay if active. */ + USER(1), + + /** Change was caused by applying a SyncPlay command; do not send again. */ + SYNCPLAY(2); + + companion object { + fun ofRaw(raw: Int): PlaybackChangeSource? { + return values().firstOrNull { it.raw == raw } + } + } } /** Generated class from Pigeon that represents data sent in messages. */ -data class SimpleItemModel ( - val id: String, - val title: String, - val subTitle: String? = null, - val overview: String? = null, - val logoUrl: String? = null, - val primaryPoster: String -) - { - companion object { - fun fromList(pigeonVar_list: List): SimpleItemModel { - val id = pigeonVar_list[0] as String - val title = pigeonVar_list[1] as String - val subTitle = pigeonVar_list[2] as String? - val overview = pigeonVar_list[3] as String? - val logoUrl = pigeonVar_list[4] as String? - val primaryPoster = pigeonVar_list[5] as String - return SimpleItemModel(id, title, subTitle, overview, logoUrl, primaryPoster) - } - } - fun toList(): List { - return listOf( - id, - title, - subTitle, - overview, - logoUrl, - primaryPoster, - ) - } - override fun equals(other: Any?): Boolean { - if (other !is SimpleItemModel) { - return false - } - if (this === other) { - return true - } - return VideoPlayerHelperPigeonUtils.deepEquals(toList(), other.toList()) } - - override fun hashCode(): Int = toList().hashCode() +data class SimpleItemModel( + val id: String, + val title: String, + val subTitle: String? = null, + val overview: String? = null, + val logoUrl: String? = null, + val primaryPoster: String +) { + companion object { + fun fromList(pigeonVar_list: List): SimpleItemModel { + val id = pigeonVar_list[0] as String + val title = pigeonVar_list[1] as String + val subTitle = pigeonVar_list[2] as String? + val overview = pigeonVar_list[3] as String? + val logoUrl = pigeonVar_list[4] as String? + val primaryPoster = pigeonVar_list[5] as String + return SimpleItemModel(id, title, subTitle, overview, logoUrl, primaryPoster) + } + } + + fun toList(): List { + return listOf( + id, + title, + subTitle, + overview, + logoUrl, + primaryPoster, + ) + } + + override fun equals(other: Any?): Boolean { + if (other !is SimpleItemModel) { + return false + } + if (this === other) { + return true + } + return VideoPlayerHelperPigeonUtils.deepEquals(toList(), other.toList()) + } + + override fun hashCode(): Int = toList().hashCode() } /** Generated class from Pigeon that represents data sent in messages. */ -data class MediaInfo ( - val playbackType: PlaybackType, - val videoInformation: String -) - { - companion object { - fun fromList(pigeonVar_list: List): MediaInfo { - val playbackType = pigeonVar_list[0] as PlaybackType - val videoInformation = pigeonVar_list[1] as String - return MediaInfo(playbackType, videoInformation) - } - } - fun toList(): List { - return listOf( - playbackType, - videoInformation, - ) - } - override fun equals(other: Any?): Boolean { - if (other !is MediaInfo) { - return false - } - if (this === other) { - return true - } - return VideoPlayerHelperPigeonUtils.deepEquals(toList(), other.toList()) } - - override fun hashCode(): Int = toList().hashCode() +data class MediaInfo( + val playbackType: PlaybackType, + val videoInformation: String +) { + companion object { + fun fromList(pigeonVar_list: List): MediaInfo { + val playbackType = pigeonVar_list[0] as PlaybackType + val videoInformation = pigeonVar_list[1] as String + return MediaInfo(playbackType, videoInformation) + } + } + + fun toList(): List { + return listOf( + playbackType, + videoInformation, + ) + } + + override fun equals(other: Any?): Boolean { + if (other !is MediaInfo) { + return false + } + if (this === other) { + return true + } + return VideoPlayerHelperPigeonUtils.deepEquals(toList(), other.toList()) + } + + override fun hashCode(): Int = toList().hashCode() } /** Generated class from Pigeon that represents data sent in messages. */ -data class PlayableData ( - val currentItem: SimpleItemModel, - val description: String, - val startPosition: Long, - val defaultAudioTrack: Long, - val audioTracks: List, - val defaultSubtrack: Long, - val subtitleTracks: List, - val trickPlayModel: TrickPlayModel? = null, - val chapters: List, - val segments: List, - val previousVideo: SimpleItemModel? = null, - val nextVideo: SimpleItemModel? = null, - val mediaInfo: MediaInfo, - val url: String -) - { - companion object { - fun fromList(pigeonVar_list: List): PlayableData { - val currentItem = pigeonVar_list[0] as SimpleItemModel - val description = pigeonVar_list[1] as String - val startPosition = pigeonVar_list[2] as Long - val defaultAudioTrack = pigeonVar_list[3] as Long - val audioTracks = pigeonVar_list[4] as List - val defaultSubtrack = pigeonVar_list[5] as Long - val subtitleTracks = pigeonVar_list[6] as List - val trickPlayModel = pigeonVar_list[7] as TrickPlayModel? - val chapters = pigeonVar_list[8] as List - val segments = pigeonVar_list[9] as List - val previousVideo = pigeonVar_list[10] as SimpleItemModel? - val nextVideo = pigeonVar_list[11] as SimpleItemModel? - val mediaInfo = pigeonVar_list[12] as MediaInfo - val url = pigeonVar_list[13] as String - return PlayableData(currentItem, description, startPosition, defaultAudioTrack, audioTracks, defaultSubtrack, subtitleTracks, trickPlayModel, chapters, segments, previousVideo, nextVideo, mediaInfo, url) - } - } - fun toList(): List { - return listOf( - currentItem, - description, - startPosition, - defaultAudioTrack, - audioTracks, - defaultSubtrack, - subtitleTracks, - trickPlayModel, - chapters, - segments, - previousVideo, - nextVideo, - mediaInfo, - url, - ) - } - override fun equals(other: Any?): Boolean { - if (other !is PlayableData) { - return false - } - if (this === other) { - return true - } - return VideoPlayerHelperPigeonUtils.deepEquals(toList(), other.toList()) } - - override fun hashCode(): Int = toList().hashCode() +data class PlayableData( + val currentItem: SimpleItemModel, + val description: String, + val startPosition: Long, + val defaultAudioTrack: Long, + val audioTracks: List, + val defaultSubtrack: Long, + val subtitleTracks: List, + val trickPlayModel: TrickPlayModel? = null, + val chapters: List, + val segments: List, + val previousVideo: SimpleItemModel? = null, + val nextVideo: SimpleItemModel? = null, + val mediaInfo: MediaInfo, + val url: String +) { + companion object { + fun fromList(pigeonVar_list: List): PlayableData { + val currentItem = pigeonVar_list[0] as SimpleItemModel + val description = pigeonVar_list[1] as String + val startPosition = pigeonVar_list[2] as Long + val defaultAudioTrack = pigeonVar_list[3] as Long + val audioTracks = pigeonVar_list[4] as List + val defaultSubtrack = pigeonVar_list[5] as Long + val subtitleTracks = pigeonVar_list[6] as List + val trickPlayModel = pigeonVar_list[7] as TrickPlayModel? + val chapters = pigeonVar_list[8] as List + val segments = pigeonVar_list[9] as List + val previousVideo = pigeonVar_list[10] as SimpleItemModel? + val nextVideo = pigeonVar_list[11] as SimpleItemModel? + val mediaInfo = pigeonVar_list[12] as MediaInfo + val url = pigeonVar_list[13] as String + return PlayableData( + currentItem, + description, + startPosition, + defaultAudioTrack, + audioTracks, + defaultSubtrack, + subtitleTracks, + trickPlayModel, + chapters, + segments, + previousVideo, + nextVideo, + mediaInfo, + url + ) + } + } + + fun toList(): List { + return listOf( + currentItem, + description, + startPosition, + defaultAudioTrack, + audioTracks, + defaultSubtrack, + subtitleTracks, + trickPlayModel, + chapters, + segments, + previousVideo, + nextVideo, + mediaInfo, + url, + ) + } + + override fun equals(other: Any?): Boolean { + if (other !is PlayableData) { + return false + } + if (this === other) { + return true + } + return VideoPlayerHelperPigeonUtils.deepEquals(toList(), other.toList()) + } + + override fun hashCode(): Int = toList().hashCode() } /** Generated class from Pigeon that represents data sent in messages. */ -data class MediaSegment ( - val type: MediaSegmentType, - val name: String, - val start: Long, - val end: Long -) - { - companion object { - fun fromList(pigeonVar_list: List): MediaSegment { - val type = pigeonVar_list[0] as MediaSegmentType - val name = pigeonVar_list[1] as String - val start = pigeonVar_list[2] as Long - val end = pigeonVar_list[3] as Long - return MediaSegment(type, name, start, end) - } - } - fun toList(): List { - return listOf( - type, - name, - start, - end, - ) - } - override fun equals(other: Any?): Boolean { - if (other !is MediaSegment) { - return false - } - if (this === other) { - return true - } - return VideoPlayerHelperPigeonUtils.deepEquals(toList(), other.toList()) } - - override fun hashCode(): Int = toList().hashCode() +data class MediaSegment( + val type: MediaSegmentType, + val name: String, + val start: Long, + val end: Long +) { + companion object { + fun fromList(pigeonVar_list: List): MediaSegment { + val type = pigeonVar_list[0] as MediaSegmentType + val name = pigeonVar_list[1] as String + val start = pigeonVar_list[2] as Long + val end = pigeonVar_list[3] as Long + return MediaSegment(type, name, start, end) + } + } + + fun toList(): List { + return listOf( + type, + name, + start, + end, + ) + } + + override fun equals(other: Any?): Boolean { + if (other !is MediaSegment) { + return false + } + if (this === other) { + return true + } + return VideoPlayerHelperPigeonUtils.deepEquals(toList(), other.toList()) + } + + override fun hashCode(): Int = toList().hashCode() } /** Generated class from Pigeon that represents data sent in messages. */ -data class AudioTrack ( - val name: String, - val languageCode: String, - val codec: String, - val index: Long, - val external: Boolean, - val url: String? = null -) - { - companion object { - fun fromList(pigeonVar_list: List): AudioTrack { - val name = pigeonVar_list[0] as String - val languageCode = pigeonVar_list[1] as String - val codec = pigeonVar_list[2] as String - val index = pigeonVar_list[3] as Long - val external = pigeonVar_list[4] as Boolean - val url = pigeonVar_list[5] as String? - return AudioTrack(name, languageCode, codec, index, external, url) - } - } - fun toList(): List { - return listOf( - name, - languageCode, - codec, - index, - external, - url, - ) - } - override fun equals(other: Any?): Boolean { - if (other !is AudioTrack) { - return false - } - if (this === other) { - return true - } - return VideoPlayerHelperPigeonUtils.deepEquals(toList(), other.toList()) } - - override fun hashCode(): Int = toList().hashCode() +data class AudioTrack( + val name: String, + val languageCode: String, + val codec: String, + val index: Long, + val external: Boolean, + val url: String? = null +) { + companion object { + fun fromList(pigeonVar_list: List): AudioTrack { + val name = pigeonVar_list[0] as String + val languageCode = pigeonVar_list[1] as String + val codec = pigeonVar_list[2] as String + val index = pigeonVar_list[3] as Long + val external = pigeonVar_list[4] as Boolean + val url = pigeonVar_list[5] as String? + return AudioTrack(name, languageCode, codec, index, external, url) + } + } + + fun toList(): List { + return listOf( + name, + languageCode, + codec, + index, + external, + url, + ) + } + + override fun equals(other: Any?): Boolean { + if (other !is AudioTrack) { + return false + } + if (this === other) { + return true + } + return VideoPlayerHelperPigeonUtils.deepEquals(toList(), other.toList()) + } + + override fun hashCode(): Int = toList().hashCode() } /** Generated class from Pigeon that represents data sent in messages. */ -data class SubtitleTrack ( - val name: String, - val languageCode: String, - val codec: String, - val index: Long, - val external: Boolean, - val url: String? = null -) - { - companion object { - fun fromList(pigeonVar_list: List): SubtitleTrack { - val name = pigeonVar_list[0] as String - val languageCode = pigeonVar_list[1] as String - val codec = pigeonVar_list[2] as String - val index = pigeonVar_list[3] as Long - val external = pigeonVar_list[4] as Boolean - val url = pigeonVar_list[5] as String? - return SubtitleTrack(name, languageCode, codec, index, external, url) - } - } - fun toList(): List { - return listOf( - name, - languageCode, - codec, - index, - external, - url, - ) - } - override fun equals(other: Any?): Boolean { - if (other !is SubtitleTrack) { - return false - } - if (this === other) { - return true - } - return VideoPlayerHelperPigeonUtils.deepEquals(toList(), other.toList()) } - - override fun hashCode(): Int = toList().hashCode() +data class SubtitleTrack( + val name: String, + val languageCode: String, + val codec: String, + val index: Long, + val external: Boolean, + val url: String? = null +) { + companion object { + fun fromList(pigeonVar_list: List): SubtitleTrack { + val name = pigeonVar_list[0] as String + val languageCode = pigeonVar_list[1] as String + val codec = pigeonVar_list[2] as String + val index = pigeonVar_list[3] as Long + val external = pigeonVar_list[4] as Boolean + val url = pigeonVar_list[5] as String? + return SubtitleTrack(name, languageCode, codec, index, external, url) + } + } + + fun toList(): List { + return listOf( + name, + languageCode, + codec, + index, + external, + url, + ) + } + + override fun equals(other: Any?): Boolean { + if (other !is SubtitleTrack) { + return false + } + if (this === other) { + return true + } + return VideoPlayerHelperPigeonUtils.deepEquals(toList(), other.toList()) + } + + override fun hashCode(): Int = toList().hashCode() } /** Generated class from Pigeon that represents data sent in messages. */ -data class Chapter ( - val name: String, - val url: String, - val time: Long -) - { - companion object { - fun fromList(pigeonVar_list: List): Chapter { - val name = pigeonVar_list[0] as String - val url = pigeonVar_list[1] as String - val time = pigeonVar_list[2] as Long - return Chapter(name, url, time) - } - } - fun toList(): List { - return listOf( - name, - url, - time, - ) - } - override fun equals(other: Any?): Boolean { - if (other !is Chapter) { - return false - } - if (this === other) { - return true - } - return VideoPlayerHelperPigeonUtils.deepEquals(toList(), other.toList()) } - - override fun hashCode(): Int = toList().hashCode() +data class Chapter( + val name: String, + val url: String, + val time: Long +) { + companion object { + fun fromList(pigeonVar_list: List): Chapter { + val name = pigeonVar_list[0] as String + val url = pigeonVar_list[1] as String + val time = pigeonVar_list[2] as Long + return Chapter(name, url, time) + } + } + + fun toList(): List { + return listOf( + name, + url, + time, + ) + } + + override fun equals(other: Any?): Boolean { + if (other !is Chapter) { + return false + } + if (this === other) { + return true + } + return VideoPlayerHelperPigeonUtils.deepEquals(toList(), other.toList()) + } + + override fun hashCode(): Int = toList().hashCode() } /** Generated class from Pigeon that represents data sent in messages. */ -data class TrickPlayModel ( - val width: Long, - val height: Long, - val tileWidth: Long, - val tileHeight: Long, - val thumbnailCount: Long, - val interval: Long, - val images: List -) - { - companion object { - fun fromList(pigeonVar_list: List): TrickPlayModel { - val width = pigeonVar_list[0] as Long - val height = pigeonVar_list[1] as Long - val tileWidth = pigeonVar_list[2] as Long - val tileHeight = pigeonVar_list[3] as Long - val thumbnailCount = pigeonVar_list[4] as Long - val interval = pigeonVar_list[5] as Long - val images = pigeonVar_list[6] as List - return TrickPlayModel(width, height, tileWidth, tileHeight, thumbnailCount, interval, images) - } - } - fun toList(): List { - return listOf( - width, - height, - tileWidth, - tileHeight, - thumbnailCount, - interval, - images, - ) - } - override fun equals(other: Any?): Boolean { - if (other !is TrickPlayModel) { - return false - } - if (this === other) { - return true - } - return VideoPlayerHelperPigeonUtils.deepEquals(toList(), other.toList()) } - - override fun hashCode(): Int = toList().hashCode() +data class TrickPlayModel( + val width: Long, + val height: Long, + val tileWidth: Long, + val tileHeight: Long, + val thumbnailCount: Long, + val interval: Long, + val images: List +) { + companion object { + fun fromList(pigeonVar_list: List): TrickPlayModel { + val width = pigeonVar_list[0] as Long + val height = pigeonVar_list[1] as Long + val tileWidth = pigeonVar_list[2] as Long + val tileHeight = pigeonVar_list[3] as Long + val thumbnailCount = pigeonVar_list[4] as Long + val interval = pigeonVar_list[5] as Long + val images = pigeonVar_list[6] as List + return TrickPlayModel( + width, + height, + tileWidth, + tileHeight, + thumbnailCount, + interval, + images + ) + } + } + + fun toList(): List { + return listOf( + width, + height, + tileWidth, + tileHeight, + thumbnailCount, + interval, + images, + ) + } + + override fun equals(other: Any?): Boolean { + if (other !is TrickPlayModel) { + return false + } + if (this === other) { + return true + } + return VideoPlayerHelperPigeonUtils.deepEquals(toList(), other.toList()) + } + + override fun hashCode(): Int = toList().hashCode() } /** Generated class from Pigeon that represents data sent in messages. */ -data class StartResult ( - val resultValue: String? = null -) - { - companion object { - fun fromList(pigeonVar_list: List): StartResult { - val resultValue = pigeonVar_list[0] as String? - return StartResult(resultValue) - } - } - fun toList(): List { - return listOf( - resultValue, - ) - } - override fun equals(other: Any?): Boolean { - if (other !is StartResult) { - return false - } - if (this === other) { - return true - } - return VideoPlayerHelperPigeonUtils.deepEquals(toList(), other.toList()) } - - override fun hashCode(): Int = toList().hashCode() +data class StartResult( + val resultValue: String? = null +) { + companion object { + fun fromList(pigeonVar_list: List): StartResult { + val resultValue = pigeonVar_list[0] as String? + return StartResult(resultValue) + } + } + + fun toList(): List { + return listOf( + resultValue, + ) + } + + override fun equals(other: Any?): Boolean { + if (other !is StartResult) { + return false + } + if (this === other) { + return true + } + return VideoPlayerHelperPigeonUtils.deepEquals(toList(), other.toList()) + } + + override fun hashCode(): Int = toList().hashCode() } /** Generated class from Pigeon that represents data sent in messages. */ -data class PlaybackState ( - val position: Long, - val buffered: Long, - val duration: Long, - val playing: Boolean, - val buffering: Boolean, - val completed: Boolean, - val failed: Boolean, - /** When set, indicates who caused this state update (for SyncPlay inference). */ - val changeSource: PlaybackChangeSource? = null -) - { - companion object { - fun fromList(pigeonVar_list: List): PlaybackState { - val position = pigeonVar_list[0] as Long - val buffered = pigeonVar_list[1] as Long - val duration = pigeonVar_list[2] as Long - val playing = pigeonVar_list[3] as Boolean - val buffering = pigeonVar_list[4] as Boolean - val completed = pigeonVar_list[5] as Boolean - val failed = pigeonVar_list[6] as Boolean - val changeSource = pigeonVar_list[7] as PlaybackChangeSource? - return PlaybackState(position, buffered, duration, playing, buffering, completed, failed, changeSource) - } - } - fun toList(): List { - return listOf( - position, - buffered, - duration, - playing, - buffering, - completed, - failed, - changeSource, - ) - } - override fun equals(other: Any?): Boolean { - if (other !is PlaybackState) { - return false - } - if (this === other) { - return true - } - return VideoPlayerHelperPigeonUtils.deepEquals(toList(), other.toList()) } - - override fun hashCode(): Int = toList().hashCode() +data class PlaybackState( + val position: Long, + val buffered: Long, + val duration: Long, + val playing: Boolean, + val buffering: Boolean, + val completed: Boolean, + val failed: Boolean, + /** When set, indicates who caused this state update (for SyncPlay inference). */ + val changeSource: PlaybackChangeSource? = null +) { + companion object { + fun fromList(pigeonVar_list: List): PlaybackState { + val position = pigeonVar_list[0] as Long + val buffered = pigeonVar_list[1] as Long + val duration = pigeonVar_list[2] as Long + val playing = pigeonVar_list[3] as Boolean + val buffering = pigeonVar_list[4] as Boolean + val completed = pigeonVar_list[5] as Boolean + val failed = pigeonVar_list[6] as Boolean + val changeSource = pigeonVar_list[7] as PlaybackChangeSource? + return PlaybackState( + position, + buffered, + duration, + playing, + buffering, + completed, + failed, + changeSource + ) + } + } + + fun toList(): List { + return listOf( + position, + buffered, + duration, + playing, + buffering, + completed, + failed, + changeSource, + ) + } + + override fun equals(other: Any?): Boolean { + if (other !is PlaybackState) { + return false + } + if (this === other) { + return true + } + return VideoPlayerHelperPigeonUtils.deepEquals(toList(), other.toList()) + } + + override fun hashCode(): Int = toList().hashCode() } /** Generated class from Pigeon that represents data sent in messages. */ -data class SubtitleSettings ( - val fontSize: Double, - val fontWeight: Long, - val verticalOffset: Double, - val color: Long, - val outlineColor: Long, - val outlineSize: Double, - val backgroundColor: Long, - val shadow: Double -) - { - companion object { - fun fromList(pigeonVar_list: List): SubtitleSettings { - val fontSize = pigeonVar_list[0] as Double - val fontWeight = pigeonVar_list[1] as Long - val verticalOffset = pigeonVar_list[2] as Double - val color = pigeonVar_list[3] as Long - val outlineColor = pigeonVar_list[4] as Long - val outlineSize = pigeonVar_list[5] as Double - val backgroundColor = pigeonVar_list[6] as Long - val shadow = pigeonVar_list[7] as Double - return SubtitleSettings(fontSize, fontWeight, verticalOffset, color, outlineColor, outlineSize, backgroundColor, shadow) - } - } - fun toList(): List { - return listOf( - fontSize, - fontWeight, - verticalOffset, - color, - outlineColor, - outlineSize, - backgroundColor, - shadow, - ) - } - override fun equals(other: Any?): Boolean { - if (other !is SubtitleSettings) { - return false - } - if (this === other) { - return true - } - return VideoPlayerHelperPigeonUtils.deepEquals(toList(), other.toList()) } - - override fun hashCode(): Int = toList().hashCode() +data class SubtitleSettings( + val fontSize: Double, + val fontWeight: Long, + val verticalOffset: Double, + val color: Long, + val outlineColor: Long, + val outlineSize: Double, + val backgroundColor: Long, + val shadow: Double +) { + companion object { + fun fromList(pigeonVar_list: List): SubtitleSettings { + val fontSize = pigeonVar_list[0] as Double + val fontWeight = pigeonVar_list[1] as Long + val verticalOffset = pigeonVar_list[2] as Double + val color = pigeonVar_list[3] as Long + val outlineColor = pigeonVar_list[4] as Long + val outlineSize = pigeonVar_list[5] as Double + val backgroundColor = pigeonVar_list[6] as Long + val shadow = pigeonVar_list[7] as Double + return SubtitleSettings( + fontSize, + fontWeight, + verticalOffset, + color, + outlineColor, + outlineSize, + backgroundColor, + shadow + ) + } + } + + fun toList(): List { + return listOf( + fontSize, + fontWeight, + verticalOffset, + color, + outlineColor, + outlineSize, + backgroundColor, + shadow, + ) + } + + override fun equals(other: Any?): Boolean { + if (other !is SubtitleSettings) { + return false + } + if (this === other) { + return true + } + return VideoPlayerHelperPigeonUtils.deepEquals(toList(), other.toList()) + } + + override fun hashCode(): Int = toList().hashCode() } /** Generated class from Pigeon that represents data sent in messages. */ -data class TVGuideModel ( - val channels: List, - val startMs: Long, - val endMs: Long, - val currentProgram: GuideProgram? = null -) - { - companion object { - fun fromList(pigeonVar_list: List): TVGuideModel { - val channels = pigeonVar_list[0] as List - val startMs = pigeonVar_list[1] as Long - val endMs = pigeonVar_list[2] as Long - val currentProgram = pigeonVar_list[3] as GuideProgram? - return TVGuideModel(channels, startMs, endMs, currentProgram) - } - } - fun toList(): List { - return listOf( - channels, - startMs, - endMs, - currentProgram, - ) - } - override fun equals(other: Any?): Boolean { - if (other !is TVGuideModel) { - return false - } - if (this === other) { - return true - } - return VideoPlayerHelperPigeonUtils.deepEquals(toList(), other.toList()) } - - override fun hashCode(): Int = toList().hashCode() +data class TVGuideModel( + val channels: List, + val startMs: Long, + val endMs: Long, + val currentProgram: GuideProgram? = null +) { + companion object { + fun fromList(pigeonVar_list: List): TVGuideModel { + val channels = pigeonVar_list[0] as List + val startMs = pigeonVar_list[1] as Long + val endMs = pigeonVar_list[2] as Long + val currentProgram = pigeonVar_list[3] as GuideProgram? + return TVGuideModel(channels, startMs, endMs, currentProgram) + } + } + + fun toList(): List { + return listOf( + channels, + startMs, + endMs, + currentProgram, + ) + } + + override fun equals(other: Any?): Boolean { + if (other !is TVGuideModel) { + return false + } + if (this === other) { + return true + } + return VideoPlayerHelperPigeonUtils.deepEquals(toList(), other.toList()) + } + + override fun hashCode(): Int = toList().hashCode() } /** Generated class from Pigeon that represents data sent in messages. */ -data class GuideChannel ( - val channelId: String, - val name: String, - val logoUrl: String? = null, - val programs: List, - val programsLoaded: Boolean -) - { - companion object { - fun fromList(pigeonVar_list: List): GuideChannel { - val channelId = pigeonVar_list[0] as String - val name = pigeonVar_list[1] as String - val logoUrl = pigeonVar_list[2] as String? - val programs = pigeonVar_list[3] as List - val programsLoaded = pigeonVar_list[4] as Boolean - return GuideChannel(channelId, name, logoUrl, programs, programsLoaded) - } - } - fun toList(): List { - return listOf( - channelId, - name, - logoUrl, - programs, - programsLoaded, - ) - } - override fun equals(other: Any?): Boolean { - if (other !is GuideChannel) { - return false - } - if (this === other) { - return true - } - return VideoPlayerHelperPigeonUtils.deepEquals(toList(), other.toList()) } - - override fun hashCode(): Int = toList().hashCode() +data class GuideChannel( + val channelId: String, + val name: String, + val logoUrl: String? = null, + val programs: List, + val programsLoaded: Boolean +) { + companion object { + fun fromList(pigeonVar_list: List): GuideChannel { + val channelId = pigeonVar_list[0] as String + val name = pigeonVar_list[1] as String + val logoUrl = pigeonVar_list[2] as String? + val programs = pigeonVar_list[3] as List + val programsLoaded = pigeonVar_list[4] as Boolean + return GuideChannel(channelId, name, logoUrl, programs, programsLoaded) + } + } + + fun toList(): List { + return listOf( + channelId, + name, + logoUrl, + programs, + programsLoaded, + ) + } + + override fun equals(other: Any?): Boolean { + if (other !is GuideChannel) { + return false + } + if (this === other) { + return true + } + return VideoPlayerHelperPigeonUtils.deepEquals(toList(), other.toList()) + } + + override fun hashCode(): Int = toList().hashCode() } /** Generated class from Pigeon that represents data sent in messages. */ -data class GuideProgram ( - val id: String, - val channelId: String, - val name: String, - val startMs: Long, - val endMs: Long, - val primaryPoster: String? = null, - val overview: String? = null, - val subTitle: String? = null -) - { - companion object { - fun fromList(pigeonVar_list: List): GuideProgram { - val id = pigeonVar_list[0] as String - val channelId = pigeonVar_list[1] as String - val name = pigeonVar_list[2] as String - val startMs = pigeonVar_list[3] as Long - val endMs = pigeonVar_list[4] as Long - val primaryPoster = pigeonVar_list[5] as String? - val overview = pigeonVar_list[6] as String? - val subTitle = pigeonVar_list[7] as String? - return GuideProgram(id, channelId, name, startMs, endMs, primaryPoster, overview, subTitle) - } - } - fun toList(): List { - return listOf( - id, - channelId, - name, - startMs, - endMs, - primaryPoster, - overview, - subTitle, - ) - } - override fun equals(other: Any?): Boolean { - if (other !is GuideProgram) { - return false - } - if (this === other) { - return true - } - return VideoPlayerHelperPigeonUtils.deepEquals(toList(), other.toList()) } - - override fun hashCode(): Int = toList().hashCode() +data class GuideProgram( + val id: String, + val channelId: String, + val name: String, + val startMs: Long, + val endMs: Long, + val primaryPoster: String? = null, + val overview: String? = null, + val subTitle: String? = null +) { + companion object { + fun fromList(pigeonVar_list: List): GuideProgram { + val id = pigeonVar_list[0] as String + val channelId = pigeonVar_list[1] as String + val name = pigeonVar_list[2] as String + val startMs = pigeonVar_list[3] as Long + val endMs = pigeonVar_list[4] as Long + val primaryPoster = pigeonVar_list[5] as String? + val overview = pigeonVar_list[6] as String? + val subTitle = pigeonVar_list[7] as String? + return GuideProgram( + id, + channelId, + name, + startMs, + endMs, + primaryPoster, + overview, + subTitle + ) + } + } + + fun toList(): List { + return listOf( + id, + channelId, + name, + startMs, + endMs, + primaryPoster, + overview, + subTitle, + ) + } + + override fun equals(other: Any?): Boolean { + if (other !is GuideProgram) { + return false + } + if (this === other) { + return true + } + return VideoPlayerHelperPigeonUtils.deepEquals(toList(), other.toList()) + } + + override fun hashCode(): Int = toList().hashCode() } + private open class VideoPlayerHelperPigeonCodec : StandardMessageCodec() { - override fun readValueOfType(type: Byte, buffer: ByteBuffer): Any? { - return when (type) { - 129.toByte() -> { - return (readValue(buffer) as Long?)?.let { - PlaybackType.ofRaw(it.toInt()) - } - } - 130.toByte() -> { - return (readValue(buffer) as Long?)?.let { - MediaSegmentType.ofRaw(it.toInt()) - } - } - 131.toByte() -> { - return (readValue(buffer) as Long?)?.let { - PlaybackChangeSource.ofRaw(it.toInt()) - } - } - 132.toByte() -> { - return (readValue(buffer) as? List)?.let { - SimpleItemModel.fromList(it) - } - } - 133.toByte() -> { - return (readValue(buffer) as? List)?.let { - MediaInfo.fromList(it) - } - } - 134.toByte() -> { - return (readValue(buffer) as? List)?.let { - PlayableData.fromList(it) - } - } - 135.toByte() -> { - return (readValue(buffer) as? List)?.let { - MediaSegment.fromList(it) - } - } - 136.toByte() -> { - return (readValue(buffer) as? List)?.let { - AudioTrack.fromList(it) - } - } - 137.toByte() -> { - return (readValue(buffer) as? List)?.let { - SubtitleTrack.fromList(it) - } - } - 138.toByte() -> { - return (readValue(buffer) as? List)?.let { - Chapter.fromList(it) - } - } - 139.toByte() -> { - return (readValue(buffer) as? List)?.let { - TrickPlayModel.fromList(it) - } - } - 140.toByte() -> { - return (readValue(buffer) as? List)?.let { - StartResult.fromList(it) - } - } - 141.toByte() -> { - return (readValue(buffer) as? List)?.let { - PlaybackState.fromList(it) - } - } - 142.toByte() -> { - return (readValue(buffer) as? List)?.let { - SubtitleSettings.fromList(it) - } - } - 143.toByte() -> { - return (readValue(buffer) as? List)?.let { - TVGuideModel.fromList(it) - } - } - 144.toByte() -> { - return (readValue(buffer) as? List)?.let { - GuideChannel.fromList(it) - } - } - 144.toByte() -> { - return (readValue(buffer) as? List)?.let { - GuideProgram.fromList(it) - } - } - else -> super.readValueOfType(type, buffer) - } - } - override fun writeValue(stream: ByteArrayOutputStream, value: Any?) { - when (value) { - is PlaybackType -> { - stream.write(129) - writeValue(stream, value.raw.toLong()) - } - is MediaSegmentType -> { - stream.write(130) - writeValue(stream, value.raw.toLong()) - } - is PlaybackChangeSource -> { - stream.write(131) - writeValue(stream, value.raw.toLong()) - } - is SimpleItemModel -> { - stream.write(132) - writeValue(stream, value.toList()) - } - is MediaInfo -> { - stream.write(133) - writeValue(stream, value.toList()) - } - is PlayableData -> { - stream.write(134) - writeValue(stream, value.toList()) - } - is MediaSegment -> { - stream.write(135) - writeValue(stream, value.toList()) - } - is AudioTrack -> { - stream.write(136) - writeValue(stream, value.toList()) - } - is SubtitleTrack -> { - stream.write(137) - writeValue(stream, value.toList()) - } - is Chapter -> { - stream.write(138) - writeValue(stream, value.toList()) - } - is TrickPlayModel -> { - stream.write(139) - writeValue(stream, value.toList()) - } - is StartResult -> { - stream.write(140) - writeValue(stream, value.toList()) - } - is PlaybackState -> { - stream.write(141) - writeValue(stream, value.toList()) - } - is SubtitleSettings -> { - stream.write(141) - writeValue(stream, value.toList()) - } - is TVGuideModel -> { - stream.write(142) - writeValue(stream, value.toList()) - } - is GuideChannel -> { - stream.write(143) - writeValue(stream, value.toList()) - } - is GuideProgram -> { - stream.write(144) - writeValue(stream, value.toList()) - } - else -> super.writeValue(stream, value) - } - } + override fun readValueOfType(type: Byte, buffer: ByteBuffer): Any? { + return when (type) { + 129.toByte() -> { + return (readValue(buffer) as Long?)?.let { + PlaybackType.ofRaw(it.toInt()) + } + } + + 130.toByte() -> { + return (readValue(buffer) as Long?)?.let { + SyncPlayCommandType.ofRaw(it.toInt()) + } + } + + 131.toByte() -> { + return (readValue(buffer) as Long?)?.let { + MediaSegmentType.ofRaw(it.toInt()) + } + } + + 132.toByte() -> { + return (readValue(buffer) as Long?)?.let { + PlaybackChangeSource.ofRaw(it.toInt()) + } + } + + 133.toByte() -> { + return (readValue(buffer) as? List)?.let { + SimpleItemModel.fromList(it) + } + } + + 134.toByte() -> { + return (readValue(buffer) as? List)?.let { + MediaInfo.fromList(it) + } + } + + 135.toByte() -> { + return (readValue(buffer) as? List)?.let { + PlayableData.fromList(it) + } + } + + 136.toByte() -> { + return (readValue(buffer) as? List)?.let { + MediaSegment.fromList(it) + } + } + + 137.toByte() -> { + return (readValue(buffer) as? List)?.let { + AudioTrack.fromList(it) + } + } + + 138.toByte() -> { + return (readValue(buffer) as? List)?.let { + SubtitleTrack.fromList(it) + } + } + + 139.toByte() -> { + return (readValue(buffer) as? List)?.let { + Chapter.fromList(it) + } + } + + 140.toByte() -> { + return (readValue(buffer) as? List)?.let { + TrickPlayModel.fromList(it) + } + } + + 141.toByte() -> { + return (readValue(buffer) as? List)?.let { + StartResult.fromList(it) + } + } + + 142.toByte() -> { + return (readValue(buffer) as? List)?.let { + PlaybackState.fromList(it) + } + } + + 143.toByte() -> { + return (readValue(buffer) as? List)?.let { + SubtitleSettings.fromList(it) + } + } + + 144.toByte() -> { + return (readValue(buffer) as? List)?.let { + TVGuideModel.fromList(it) + } + } + + 145.toByte() -> { + return (readValue(buffer) as? List)?.let { + GuideChannel.fromList(it) + } + } + + 146.toByte() -> { + return (readValue(buffer) as? List)?.let { + GuideProgram.fromList(it) + } + } + + else -> super.readValueOfType(type, buffer) + } + } + + override fun writeValue(stream: ByteArrayOutputStream, value: Any?) { + when (value) { + is PlaybackType -> { + stream.write(129) + writeValue(stream, value.raw.toLong()) + } + + is SyncPlayCommandType -> { + stream.write(130) + writeValue(stream, value.raw.toLong()) + } + + is MediaSegmentType -> { + stream.write(131) + writeValue(stream, value.raw.toLong()) + } + + is PlaybackChangeSource -> { + stream.write(132) + writeValue(stream, value.raw.toLong()) + } + + is SimpleItemModel -> { + stream.write(133) + writeValue(stream, value.toList()) + } + + is MediaInfo -> { + stream.write(134) + writeValue(stream, value.toList()) + } + + is PlayableData -> { + stream.write(135) + writeValue(stream, value.toList()) + } + + is MediaSegment -> { + stream.write(136) + writeValue(stream, value.toList()) + } + + is AudioTrack -> { + stream.write(137) + writeValue(stream, value.toList()) + } + + is SubtitleTrack -> { + stream.write(138) + writeValue(stream, value.toList()) + } + + is Chapter -> { + stream.write(139) + writeValue(stream, value.toList()) + } + + is TrickPlayModel -> { + stream.write(140) + writeValue(stream, value.toList()) + } + + is StartResult -> { + stream.write(141) + writeValue(stream, value.toList()) + } + + is PlaybackState -> { + stream.write(142) + writeValue(stream, value.toList()) + } + + is SubtitleSettings -> { + stream.write(143) + writeValue(stream, value.toList()) + } + + is TVGuideModel -> { + stream.write(144) + writeValue(stream, value.toList()) + } + + is GuideChannel -> { + stream.write(145) + writeValue(stream, value.toList()) + } + + is GuideProgram -> { + stream.write(146) + writeValue(stream, value.toList()) + } + + else -> super.writeValue(stream, value) + } + } } /** Generated interface from Pigeon that represents a handler of messages from Flutter. */ interface NativeVideoActivity { - fun launchActivity(callback: (Result) -> Unit) - fun disposeActivity() - fun isLeanBackEnabled(): Boolean - - companion object { - /** The codec used by NativeVideoActivity. */ - val codec: MessageCodec by lazy { - VideoPlayerHelperPigeonCodec() - } - /** Sets up an instance of `NativeVideoActivity` to handle messages through the `binaryMessenger`. */ - @JvmOverloads - fun setUp(binaryMessenger: BinaryMessenger, api: NativeVideoActivity?, messageChannelSuffix: String = "") { - val separatedMessageChannelSuffix = if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" - run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.nl_jknaapen_fladder.video.NativeVideoActivity.launchActivity$separatedMessageChannelSuffix", codec) - if (api != null) { - channel.setMessageHandler { _, reply -> - api.launchActivity{ result: Result -> - val error = result.exceptionOrNull() - if (error != null) { - reply.reply(VideoPlayerHelperPigeonUtils.wrapError(error)) - } else { - val data = result.getOrNull() - reply.reply(VideoPlayerHelperPigeonUtils.wrapResult(data)) - } + fun launchActivity(callback: (Result) -> Unit) + fun disposeActivity() + fun isLeanBackEnabled(): Boolean + + companion object { + /** The codec used by NativeVideoActivity. */ + val codec: MessageCodec by lazy { + VideoPlayerHelperPigeonCodec() + } + + /** Sets up an instance of `NativeVideoActivity` to handle messages through the `binaryMessenger`. */ + @JvmOverloads + fun setUp( + binaryMessenger: BinaryMessenger, + api: NativeVideoActivity?, + messageChannelSuffix: String = "" + ) { + val separatedMessageChannelSuffix = + if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" + run { + val channel = BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.nl_jknaapen_fladder.video.NativeVideoActivity.launchActivity$separatedMessageChannelSuffix", + codec + ) + if (api != null) { + channel.setMessageHandler { _, reply -> + api.launchActivity { result: Result -> + val error = result.exceptionOrNull() + if (error != null) { + reply.reply(VideoPlayerHelperPigeonUtils.wrapError(error)) + } else { + val data = result.getOrNull() + reply.reply(VideoPlayerHelperPigeonUtils.wrapResult(data)) + } + } + } + } else { + channel.setMessageHandler(null) + } } - } - } else { - channel.setMessageHandler(null) - } - } - run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.nl_jknaapen_fladder.video.NativeVideoActivity.disposeActivity$separatedMessageChannelSuffix", codec) - if (api != null) { - channel.setMessageHandler { _, reply -> - val wrapped: List = try { - api.disposeActivity() - listOf(null) - } catch (exception: Throwable) { - VideoPlayerHelperPigeonUtils.wrapError(exception) + run { + val channel = BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.nl_jknaapen_fladder.video.NativeVideoActivity.disposeActivity$separatedMessageChannelSuffix", + codec + ) + if (api != null) { + channel.setMessageHandler { _, reply -> + val wrapped: List = try { + api.disposeActivity() + listOf(null) + } catch (exception: Throwable) { + VideoPlayerHelperPigeonUtils.wrapError(exception) + } + reply.reply(wrapped) + } + } else { + channel.setMessageHandler(null) + } } - reply.reply(wrapped) - } - } else { - channel.setMessageHandler(null) - } - } - run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.nl_jknaapen_fladder.video.NativeVideoActivity.isLeanBackEnabled$separatedMessageChannelSuffix", codec) - if (api != null) { - channel.setMessageHandler { _, reply -> - val wrapped: List = try { - listOf(api.isLeanBackEnabled()) - } catch (exception: Throwable) { - VideoPlayerHelperPigeonUtils.wrapError(exception) + run { + val channel = BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.nl_jknaapen_fladder.video.NativeVideoActivity.isLeanBackEnabled$separatedMessageChannelSuffix", + codec + ) + if (api != null) { + channel.setMessageHandler { _, reply -> + val wrapped: List = try { + listOf(api.isLeanBackEnabled()) + } catch (exception: Throwable) { + VideoPlayerHelperPigeonUtils.wrapError(exception) + } + reply.reply(wrapped) + } + } else { + channel.setMessageHandler(null) + } } - reply.reply(wrapped) - } - } else { - channel.setMessageHandler(null) } - } } - } } + /** Generated interface from Pigeon that represents a handler of messages from Flutter. */ interface VideoPlayerApi { - fun sendPlayableModel(playableData: PlayableData, callback: (Result) -> Unit) - fun sendTVGuideModel(guide: TVGuideModel, callback: (Result) -> Unit) - fun open(url: String, play: Boolean, callback: (Result) -> Unit) - fun setLooping(looping: Boolean) - /** Sets the volume, with 0.0 being muted and 1.0 being full volume. */ - fun setVolume(volume: Double) - /** Sets the playback speed as a multiple of normal speed. */ - fun setPlaybackSpeed(speed: Double) - fun play() - /** Pauses playback if the video is currently playing. */ - fun pause() - /** Seeks to the given playback position, in milliseconds. */ - fun seekTo(position: Long) - fun stop() - fun setSubtitleSettings(settings: SubtitleSettings) - /** - * Sets the SyncPlay command state for the native player overlay. - * [processing] indicates if a SyncPlay command is being processed. - * [commandType] is the type of command (e.g., "Pause", "Unpause", "Seek", "Stop"). - */ - fun setSyncPlayCommandState(processing: Boolean, commandType: String?) - - companion object { - /** The codec used by VideoPlayerApi. */ - val codec: MessageCodec by lazy { - VideoPlayerHelperPigeonCodec() - } - /** Sets up an instance of `VideoPlayerApi` to handle messages through the `binaryMessenger`. */ - @JvmOverloads - fun setUp(binaryMessenger: BinaryMessenger, api: VideoPlayerApi?, messageChannelSuffix: String = "") { - val separatedMessageChannelSuffix = if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" - run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.nl_jknaapen_fladder.video.VideoPlayerApi.sendPlayableModel$separatedMessageChannelSuffix", codec) - if (api != null) { - channel.setMessageHandler { message, reply -> - val args = message as List - val playableDataArg = args[0] as PlayableData - api.sendPlayableModel(playableDataArg) { result: Result -> - val error = result.exceptionOrNull() - if (error != null) { - reply.reply(VideoPlayerHelperPigeonUtils.wrapError(error)) - } else { - val data = result.getOrNull() - reply.reply(VideoPlayerHelperPigeonUtils.wrapResult(data)) - } + fun sendPlayableModel(playableData: PlayableData, callback: (Result) -> Unit) + fun sendTVGuideModel(guide: TVGuideModel, callback: (Result) -> Unit) + fun open(url: String, play: Boolean, callback: (Result) -> Unit) + fun setLooping(looping: Boolean) + + /** Sets the volume, with 0.0 being muted and 1.0 being full volume. */ + fun setVolume(volume: Double) + + /** Sets the playback speed as a multiple of normal speed. */ + fun setPlaybackSpeed(speed: Double) + fun play() + + /** Pauses playback if the video is currently playing. */ + fun pause() + + /** Seeks to the given playback position, in milliseconds. */ + fun seekTo(position: Long) + fun stop() + fun setSubtitleSettings(settings: SubtitleSettings) + + /** + * Sets the SyncPlay command state for the native player overlay. + * [processing] indicates if a SyncPlay command is being processed. + * [commandType] is the type of command. + */ + fun setSyncPlayCommandState(processing: Boolean, commandType: SyncPlayCommandType) + + companion object { + /** The codec used by VideoPlayerApi. */ + val codec: MessageCodec by lazy { + VideoPlayerHelperPigeonCodec() + } + + /** Sets up an instance of `VideoPlayerApi` to handle messages through the `binaryMessenger`. */ + @JvmOverloads + fun setUp( + binaryMessenger: BinaryMessenger, + api: VideoPlayerApi?, + messageChannelSuffix: String = "" + ) { + val separatedMessageChannelSuffix = + if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" + run { + val channel = BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.nl_jknaapen_fladder.video.VideoPlayerApi.sendPlayableModel$separatedMessageChannelSuffix", + codec + ) + if (api != null) { + channel.setMessageHandler { message, reply -> + val args = message as List + val playableDataArg = args[0] as PlayableData + api.sendPlayableModel(playableDataArg) { result: Result -> + val error = result.exceptionOrNull() + if (error != null) { + reply.reply(VideoPlayerHelperPigeonUtils.wrapError(error)) + } else { + val data = result.getOrNull() + reply.reply(VideoPlayerHelperPigeonUtils.wrapResult(data)) + } + } + } + } else { + channel.setMessageHandler(null) + } } - } - } else { - channel.setMessageHandler(null) - } - } - run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.nl_jknaapen_fladder.video.VideoPlayerApi.sendTVGuideModel$separatedMessageChannelSuffix", codec) - if (api != null) { - channel.setMessageHandler { message, reply -> - val args = message as List - val guideArg = args[0] as TVGuideModel - api.sendTVGuideModel(guideArg) { result: Result -> - val error = result.exceptionOrNull() - if (error != null) { - reply.reply(VideoPlayerHelperPigeonUtils.wrapError(error)) - } else { - val data = result.getOrNull() - reply.reply(VideoPlayerHelperPigeonUtils.wrapResult(data)) - } + run { + val channel = BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.nl_jknaapen_fladder.video.VideoPlayerApi.sendTVGuideModel$separatedMessageChannelSuffix", + codec + ) + if (api != null) { + channel.setMessageHandler { message, reply -> + val args = message as List + val guideArg = args[0] as TVGuideModel + api.sendTVGuideModel(guideArg) { result: Result -> + val error = result.exceptionOrNull() + if (error != null) { + reply.reply(VideoPlayerHelperPigeonUtils.wrapError(error)) + } else { + val data = result.getOrNull() + reply.reply(VideoPlayerHelperPigeonUtils.wrapResult(data)) + } + } + } + } else { + channel.setMessageHandler(null) + } } - } - } else { - channel.setMessageHandler(null) - } - } - run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.nl_jknaapen_fladder.video.VideoPlayerApi.open$separatedMessageChannelSuffix", codec) - if (api != null) { - channel.setMessageHandler { message, reply -> - val args = message as List - val urlArg = args[0] as String - val playArg = args[1] as Boolean - api.open(urlArg, playArg) { result: Result -> - val error = result.exceptionOrNull() - if (error != null) { - reply.reply(VideoPlayerHelperPigeonUtils.wrapError(error)) - } else { - val data = result.getOrNull() - reply.reply(VideoPlayerHelperPigeonUtils.wrapResult(data)) - } + run { + val channel = BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.nl_jknaapen_fladder.video.VideoPlayerApi.open$separatedMessageChannelSuffix", + codec + ) + if (api != null) { + channel.setMessageHandler { message, reply -> + val args = message as List + val urlArg = args[0] as String + val playArg = args[1] as Boolean + api.open(urlArg, playArg) { result: Result -> + val error = result.exceptionOrNull() + if (error != null) { + reply.reply(VideoPlayerHelperPigeonUtils.wrapError(error)) + } else { + val data = result.getOrNull() + reply.reply(VideoPlayerHelperPigeonUtils.wrapResult(data)) + } + } + } + } else { + channel.setMessageHandler(null) + } } - } - } else { - channel.setMessageHandler(null) - } - } - run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.nl_jknaapen_fladder.video.VideoPlayerApi.setLooping$separatedMessageChannelSuffix", codec) - if (api != null) { - channel.setMessageHandler { message, reply -> - val args = message as List - val loopingArg = args[0] as Boolean - val wrapped: List = try { - api.setLooping(loopingArg) - listOf(null) - } catch (exception: Throwable) { - VideoPlayerHelperPigeonUtils.wrapError(exception) + run { + val channel = BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.nl_jknaapen_fladder.video.VideoPlayerApi.setLooping$separatedMessageChannelSuffix", + codec + ) + if (api != null) { + channel.setMessageHandler { message, reply -> + val args = message as List + val loopingArg = args[0] as Boolean + val wrapped: List = try { + api.setLooping(loopingArg) + listOf(null) + } catch (exception: Throwable) { + VideoPlayerHelperPigeonUtils.wrapError(exception) + } + reply.reply(wrapped) + } + } else { + channel.setMessageHandler(null) + } } - reply.reply(wrapped) - } - } else { - channel.setMessageHandler(null) - } - } - run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.nl_jknaapen_fladder.video.VideoPlayerApi.setVolume$separatedMessageChannelSuffix", codec) - if (api != null) { - channel.setMessageHandler { message, reply -> - val args = message as List - val volumeArg = args[0] as Double - val wrapped: List = try { - api.setVolume(volumeArg) - listOf(null) - } catch (exception: Throwable) { - VideoPlayerHelperPigeonUtils.wrapError(exception) + run { + val channel = BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.nl_jknaapen_fladder.video.VideoPlayerApi.setVolume$separatedMessageChannelSuffix", + codec + ) + if (api != null) { + channel.setMessageHandler { message, reply -> + val args = message as List + val volumeArg = args[0] as Double + val wrapped: List = try { + api.setVolume(volumeArg) + listOf(null) + } catch (exception: Throwable) { + VideoPlayerHelperPigeonUtils.wrapError(exception) + } + reply.reply(wrapped) + } + } else { + channel.setMessageHandler(null) + } } - reply.reply(wrapped) - } - } else { - channel.setMessageHandler(null) - } - } - run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.nl_jknaapen_fladder.video.VideoPlayerApi.setPlaybackSpeed$separatedMessageChannelSuffix", codec) - if (api != null) { - channel.setMessageHandler { message, reply -> - val args = message as List - val speedArg = args[0] as Double - val wrapped: List = try { - api.setPlaybackSpeed(speedArg) - listOf(null) - } catch (exception: Throwable) { - VideoPlayerHelperPigeonUtils.wrapError(exception) + run { + val channel = BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.nl_jknaapen_fladder.video.VideoPlayerApi.setPlaybackSpeed$separatedMessageChannelSuffix", + codec + ) + if (api != null) { + channel.setMessageHandler { message, reply -> + val args = message as List + val speedArg = args[0] as Double + val wrapped: List = try { + api.setPlaybackSpeed(speedArg) + listOf(null) + } catch (exception: Throwable) { + VideoPlayerHelperPigeonUtils.wrapError(exception) + } + reply.reply(wrapped) + } + } else { + channel.setMessageHandler(null) + } } - reply.reply(wrapped) - } - } else { - channel.setMessageHandler(null) - } - } - run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.nl_jknaapen_fladder.video.VideoPlayerApi.play$separatedMessageChannelSuffix", codec) - if (api != null) { - channel.setMessageHandler { _, reply -> - val wrapped: List = try { - api.play() - listOf(null) - } catch (exception: Throwable) { - VideoPlayerHelperPigeonUtils.wrapError(exception) + run { + val channel = BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.nl_jknaapen_fladder.video.VideoPlayerApi.play$separatedMessageChannelSuffix", + codec + ) + if (api != null) { + channel.setMessageHandler { _, reply -> + val wrapped: List = try { + api.play() + listOf(null) + } catch (exception: Throwable) { + VideoPlayerHelperPigeonUtils.wrapError(exception) + } + reply.reply(wrapped) + } + } else { + channel.setMessageHandler(null) + } } - reply.reply(wrapped) - } - } else { - channel.setMessageHandler(null) - } - } - run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.nl_jknaapen_fladder.video.VideoPlayerApi.pause$separatedMessageChannelSuffix", codec) - if (api != null) { - channel.setMessageHandler { _, reply -> - val wrapped: List = try { - api.pause() - listOf(null) - } catch (exception: Throwable) { - VideoPlayerHelperPigeonUtils.wrapError(exception) + run { + val channel = BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.nl_jknaapen_fladder.video.VideoPlayerApi.pause$separatedMessageChannelSuffix", + codec + ) + if (api != null) { + channel.setMessageHandler { _, reply -> + val wrapped: List = try { + api.pause() + listOf(null) + } catch (exception: Throwable) { + VideoPlayerHelperPigeonUtils.wrapError(exception) + } + reply.reply(wrapped) + } + } else { + channel.setMessageHandler(null) + } } - reply.reply(wrapped) - } - } else { - channel.setMessageHandler(null) - } - } - run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.nl_jknaapen_fladder.video.VideoPlayerApi.seekTo$separatedMessageChannelSuffix", codec) - if (api != null) { - channel.setMessageHandler { message, reply -> - val args = message as List - val positionArg = args[0] as Long - val wrapped: List = try { - api.seekTo(positionArg) - listOf(null) - } catch (exception: Throwable) { - VideoPlayerHelperPigeonUtils.wrapError(exception) + run { + val channel = BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.nl_jknaapen_fladder.video.VideoPlayerApi.seekTo$separatedMessageChannelSuffix", + codec + ) + if (api != null) { + channel.setMessageHandler { message, reply -> + val args = message as List + val positionArg = args[0] as Long + val wrapped: List = try { + api.seekTo(positionArg) + listOf(null) + } catch (exception: Throwable) { + VideoPlayerHelperPigeonUtils.wrapError(exception) + } + reply.reply(wrapped) + } + } else { + channel.setMessageHandler(null) + } } - reply.reply(wrapped) - } - } else { - channel.setMessageHandler(null) - } - } - run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.nl_jknaapen_fladder.video.VideoPlayerApi.stop$separatedMessageChannelSuffix", codec) - if (api != null) { - channel.setMessageHandler { _, reply -> - val wrapped: List = try { - api.stop() - listOf(null) - } catch (exception: Throwable) { - VideoPlayerHelperPigeonUtils.wrapError(exception) + run { + val channel = BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.nl_jknaapen_fladder.video.VideoPlayerApi.stop$separatedMessageChannelSuffix", + codec + ) + if (api != null) { + channel.setMessageHandler { _, reply -> + val wrapped: List = try { + api.stop() + listOf(null) + } catch (exception: Throwable) { + VideoPlayerHelperPigeonUtils.wrapError(exception) + } + reply.reply(wrapped) + } + } else { + channel.setMessageHandler(null) + } } - reply.reply(wrapped) - } - } else { - channel.setMessageHandler(null) - } - } - run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.nl_jknaapen_fladder.video.VideoPlayerApi.setSubtitleSettings$separatedMessageChannelSuffix", codec) - if (api != null) { - channel.setMessageHandler { message, reply -> - val args = message as List - val settingsArg = args[0] as SubtitleSettings - val wrapped: List = try { - api.setSubtitleSettings(settingsArg) - listOf(null) - } catch (exception: Throwable) { - VideoPlayerHelperPigeonUtils.wrapError(exception) + run { + val channel = BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.nl_jknaapen_fladder.video.VideoPlayerApi.setSubtitleSettings$separatedMessageChannelSuffix", + codec + ) + if (api != null) { + channel.setMessageHandler { message, reply -> + val args = message as List + val settingsArg = args[0] as SubtitleSettings + val wrapped: List = try { + api.setSubtitleSettings(settingsArg) + listOf(null) + } catch (exception: Throwable) { + VideoPlayerHelperPigeonUtils.wrapError(exception) + } + reply.reply(wrapped) + } + } else { + channel.setMessageHandler(null) + } } - reply.reply(wrapped) - } - } else { - channel.setMessageHandler(null) - } - } - run { - val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.nl_jknaapen_fladder.video.VideoPlayerApi.setSyncPlayCommandState$separatedMessageChannelSuffix", codec) - if (api != null) { - channel.setMessageHandler { message, reply -> - val args = message as List - val processingArg = args[0] as Boolean - val commandTypeArg = args[1] as String? - val wrapped: List = try { - api.setSyncPlayCommandState(processingArg, commandTypeArg) - listOf(null) - } catch (exception: Throwable) { - VideoPlayerHelperPigeonUtils.wrapError(exception) + run { + val channel = BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.nl_jknaapen_fladder.video.VideoPlayerApi.setSyncPlayCommandState$separatedMessageChannelSuffix", + codec + ) + if (api != null) { + channel.setMessageHandler { message, reply -> + val args = message as List + val processingArg = args[0] as Boolean + val commandTypeArg = args[1] as SyncPlayCommandType + val wrapped: List = try { + api.setSyncPlayCommandState(processingArg, commandTypeArg) + listOf(null) + } catch (exception: Throwable) { + VideoPlayerHelperPigeonUtils.wrapError(exception) + } + reply.reply(wrapped) + } + } else { + channel.setMessageHandler(null) + } } - reply.reply(wrapped) - } - } else { - channel.setMessageHandler(null) } - } } - } } + /** Generated class from Pigeon that represents Flutter messages that can be called from Kotlin. */ -class VideoPlayerListenerCallback(private val binaryMessenger: BinaryMessenger, private val messageChannelSuffix: String = "") { - companion object { - /** The codec used by VideoPlayerListenerCallback. */ - val codec: MessageCodec by lazy { - VideoPlayerHelperPigeonCodec() - } - } - fun onPlaybackStateChanged(stateArg: PlaybackState, callback: (Result) -> Unit) -{ - val separatedMessageChannelSuffix = if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" - val channelName = "dev.flutter.pigeon.nl_jknaapen_fladder.video.VideoPlayerListenerCallback.onPlaybackStateChanged$separatedMessageChannelSuffix" - val channel = BasicMessageChannel(binaryMessenger, channelName, codec) - channel.send(listOf(stateArg)) { - if (it is List<*>) { - if (it.size > 1) { - callback(Result.failure(FlutterError(it[0] as String, it[1] as String, it[2] as String?))) - } else { - callback(Result.success(Unit)) +class VideoPlayerListenerCallback( + private val binaryMessenger: BinaryMessenger, + private val messageChannelSuffix: String = "" +) { + companion object { + /** The codec used by VideoPlayerListenerCallback. */ + val codec: MessageCodec by lazy { + VideoPlayerHelperPigeonCodec() + } + } + + fun onPlaybackStateChanged(stateArg: PlaybackState, callback: (Result) -> Unit) { + val separatedMessageChannelSuffix = + if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" + val channelName = + "dev.flutter.pigeon.nl_jknaapen_fladder.video.VideoPlayerListenerCallback.onPlaybackStateChanged$separatedMessageChannelSuffix" + val channel = BasicMessageChannel(binaryMessenger, channelName, codec) + channel.send(listOf(stateArg)) { + if (it is List<*>) { + if (it.size > 1) { + callback( + Result.failure( + FlutterError( + it[0] as String, + it[1] as String, + it[2] as String? + ) + ) + ) + } else { + callback(Result.success(Unit)) + } + } else { + callback( + Result.failure( + VideoPlayerHelperPigeonUtils.createConnectionError( + channelName + ) + ) + ) + } } - } else { - callback(Result.failure(VideoPlayerHelperPigeonUtils.createConnectionError(channelName))) - } } - } } + /** Generated class from Pigeon that represents Flutter messages that can be called from Kotlin. */ -class VideoPlayerControlsCallback(private val binaryMessenger: BinaryMessenger, private val messageChannelSuffix: String = "") { - companion object { - /** The codec used by VideoPlayerControlsCallback. */ - val codec: MessageCodec by lazy { - VideoPlayerHelperPigeonCodec() - } - } - fun loadNextVideo(callback: (Result) -> Unit) -{ - val separatedMessageChannelSuffix = if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" - val channelName = "dev.flutter.pigeon.nl_jknaapen_fladder.video.VideoPlayerControlsCallback.loadNextVideo$separatedMessageChannelSuffix" - val channel = BasicMessageChannel(binaryMessenger, channelName, codec) - channel.send(null) { - if (it is List<*>) { - if (it.size > 1) { - callback(Result.failure(FlutterError(it[0] as String, it[1] as String, it[2] as String?))) - } else { - callback(Result.success(Unit)) - } - } else { - callback(Result.failure(VideoPlayerHelperPigeonUtils.createConnectionError(channelName))) - } - } - } - fun loadPreviousVideo(callback: (Result) -> Unit) -{ - val separatedMessageChannelSuffix = if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" - val channelName = "dev.flutter.pigeon.nl_jknaapen_fladder.video.VideoPlayerControlsCallback.loadPreviousVideo$separatedMessageChannelSuffix" - val channel = BasicMessageChannel(binaryMessenger, channelName, codec) - channel.send(null) { - if (it is List<*>) { - if (it.size > 1) { - callback(Result.failure(FlutterError(it[0] as String, it[1] as String, it[2] as String?))) - } else { - callback(Result.success(Unit)) - } - } else { - callback(Result.failure(VideoPlayerHelperPigeonUtils.createConnectionError(channelName))) - } - } - } - fun onStop(callback: (Result) -> Unit) -{ - val separatedMessageChannelSuffix = if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" - val channelName = "dev.flutter.pigeon.nl_jknaapen_fladder.video.VideoPlayerControlsCallback.onStop$separatedMessageChannelSuffix" - val channel = BasicMessageChannel(binaryMessenger, channelName, codec) - channel.send(null) { - if (it is List<*>) { - if (it.size > 1) { - callback(Result.failure(FlutterError(it[0] as String, it[1] as String, it[2] as String?))) - } else { - callback(Result.success(Unit)) - } - } else { - callback(Result.failure(VideoPlayerHelperPigeonUtils.createConnectionError(channelName))) - } - } - } - fun swapSubtitleTrack(valueArg: Long, callback: (Result) -> Unit) -{ - val separatedMessageChannelSuffix = if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" - val channelName = "dev.flutter.pigeon.nl_jknaapen_fladder.video.VideoPlayerControlsCallback.swapSubtitleTrack$separatedMessageChannelSuffix" - val channel = BasicMessageChannel(binaryMessenger, channelName, codec) - channel.send(listOf(valueArg)) { - if (it is List<*>) { - if (it.size > 1) { - callback(Result.failure(FlutterError(it[0] as String, it[1] as String, it[2] as String?))) - } else { - callback(Result.success(Unit)) - } - } else { - callback(Result.failure(VideoPlayerHelperPigeonUtils.createConnectionError(channelName))) - } - } - } - fun swapAudioTrack(valueArg: Long, callback: (Result) -> Unit) -{ - val separatedMessageChannelSuffix = if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" - val channelName = "dev.flutter.pigeon.nl_jknaapen_fladder.video.VideoPlayerControlsCallback.swapAudioTrack$separatedMessageChannelSuffix" - val channel = BasicMessageChannel(binaryMessenger, channelName, codec) - channel.send(listOf(valueArg)) { - if (it is List<*>) { - if (it.size > 1) { - callback(Result.failure(FlutterError(it[0] as String, it[1] as String, it[2] as String?))) - } else { - callback(Result.success(Unit)) - } - } else { - callback(Result.failure(VideoPlayerHelperPigeonUtils.createConnectionError(channelName))) - } - } - } - fun loadProgram(selectionArg: GuideChannel, callback: (Result) -> Unit) -{ - val separatedMessageChannelSuffix = if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" - val channelName = "dev.flutter.pigeon.nl_jknaapen_fladder.video.VideoPlayerControlsCallback.loadProgram$separatedMessageChannelSuffix" - val channel = BasicMessageChannel(binaryMessenger, channelName, codec) - channel.send(listOf(selectionArg)) { - if (it is List<*>) { - if (it.size > 1) { - callback(Result.failure(FlutterError(it[0] as String, it[1] as String, it[2] as String?))) - } else { - callback(Result.success(Unit)) - } - } else { - callback(Result.failure(VideoPlayerHelperPigeonUtils.createConnectionError(channelName))) - } - } - } - fun fetchProgramsForChannel(channelIdArg: String, callback: (Result>) -> Unit) -{ - val separatedMessageChannelSuffix = if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" - val channelName = "dev.flutter.pigeon.nl_jknaapen_fladder.video.VideoPlayerControlsCallback.fetchProgramsForChannel$separatedMessageChannelSuffix" - val channel = BasicMessageChannel(binaryMessenger, channelName, codec) - channel.send(listOf(channelIdArg)) { - if (it is List<*>) { - if (it.size > 1) { - callback(Result.failure(FlutterError(it[0] as String, it[1] as String, it[2] as String?))) - } else if (it[0] == null) { - callback(Result.failure(FlutterError("null-error", "Flutter api returned null value for non-null return value.", ""))) - } else { - val output = it[0] as List - callback(Result.success(output)) - } - } else { - callback(Result.failure(VideoPlayerHelperPigeonUtils.createConnectionError(channelName))) - } - } - } - /** User-initiated play action from native player (for SyncPlay integration) */ - fun onUserPlay(callback: (Result) -> Unit) -{ - val separatedMessageChannelSuffix = if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" - val channelName = "dev.flutter.pigeon.nl_jknaapen_fladder.video.VideoPlayerControlsCallback.onUserPlay$separatedMessageChannelSuffix" - val channel = BasicMessageChannel(binaryMessenger, channelName, codec) - channel.send(null) { - if (it is List<*>) { - if (it.size > 1) { - callback(Result.failure(FlutterError(it[0] as String, it[1] as String, it[2] as String?))) - } else { - callback(Result.success(Unit)) - } - } else { - callback(Result.failure(VideoPlayerHelperPigeonUtils.createConnectionError(channelName))) - } - } - } - /** User-initiated pause action from native player (for SyncPlay integration) */ - fun onUserPause(callback: (Result) -> Unit) -{ - val separatedMessageChannelSuffix = if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" - val channelName = "dev.flutter.pigeon.nl_jknaapen_fladder.video.VideoPlayerControlsCallback.onUserPause$separatedMessageChannelSuffix" - val channel = BasicMessageChannel(binaryMessenger, channelName, codec) - channel.send(null) { - if (it is List<*>) { - if (it.size > 1) { - callback(Result.failure(FlutterError(it[0] as String, it[1] as String, it[2] as String?))) - } else { - callback(Result.success(Unit)) - } - } else { - callback(Result.failure(VideoPlayerHelperPigeonUtils.createConnectionError(channelName))) - } - } - } - /** - * User-initiated seek action from native player (for SyncPlay integration) - * Position is in milliseconds - */ - fun onUserSeek(positionMsArg: Long, callback: (Result) -> Unit) -{ - val separatedMessageChannelSuffix = if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" - val channelName = "dev.flutter.pigeon.nl_jknaapen_fladder.video.VideoPlayerControlsCallback.onUserSeek$separatedMessageChannelSuffix" - val channel = BasicMessageChannel(binaryMessenger, channelName, codec) - channel.send(listOf(positionMsArg)) { - if (it is List<*>) { - if (it.size > 1) { - callback(Result.failure(FlutterError(it[0] as String, it[1] as String, it[2] as String?))) - } else { - callback(Result.success(Unit)) +class VideoPlayerControlsCallback( + private val binaryMessenger: BinaryMessenger, + private val messageChannelSuffix: String = "" +) { + companion object { + /** The codec used by VideoPlayerControlsCallback. */ + val codec: MessageCodec by lazy { + VideoPlayerHelperPigeonCodec() + } + } + + fun loadNextVideo(callback: (Result) -> Unit) { + val separatedMessageChannelSuffix = + if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" + val channelName = + "dev.flutter.pigeon.nl_jknaapen_fladder.video.VideoPlayerControlsCallback.loadNextVideo$separatedMessageChannelSuffix" + val channel = BasicMessageChannel(binaryMessenger, channelName, codec) + channel.send(null) { + if (it is List<*>) { + if (it.size > 1) { + callback( + Result.failure( + FlutterError( + it[0] as String, + it[1] as String, + it[2] as String? + ) + ) + ) + } else { + callback(Result.success(Unit)) + } + } else { + callback( + Result.failure( + VideoPlayerHelperPigeonUtils.createConnectionError( + channelName + ) + ) + ) + } + } + } + + fun loadPreviousVideo(callback: (Result) -> Unit) { + val separatedMessageChannelSuffix = + if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" + val channelName = + "dev.flutter.pigeon.nl_jknaapen_fladder.video.VideoPlayerControlsCallback.loadPreviousVideo$separatedMessageChannelSuffix" + val channel = BasicMessageChannel(binaryMessenger, channelName, codec) + channel.send(null) { + if (it is List<*>) { + if (it.size > 1) { + callback( + Result.failure( + FlutterError( + it[0] as String, + it[1] as String, + it[2] as String? + ) + ) + ) + } else { + callback(Result.success(Unit)) + } + } else { + callback( + Result.failure( + VideoPlayerHelperPigeonUtils.createConnectionError( + channelName + ) + ) + ) + } + } + } + + fun onStop(callback: (Result) -> Unit) { + val separatedMessageChannelSuffix = + if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" + val channelName = + "dev.flutter.pigeon.nl_jknaapen_fladder.video.VideoPlayerControlsCallback.onStop$separatedMessageChannelSuffix" + val channel = BasicMessageChannel(binaryMessenger, channelName, codec) + channel.send(null) { + if (it is List<*>) { + if (it.size > 1) { + callback( + Result.failure( + FlutterError( + it[0] as String, + it[1] as String, + it[2] as String? + ) + ) + ) + } else { + callback(Result.success(Unit)) + } + } else { + callback( + Result.failure( + VideoPlayerHelperPigeonUtils.createConnectionError( + channelName + ) + ) + ) + } + } + } + + fun swapSubtitleTrack(valueArg: Long, callback: (Result) -> Unit) { + val separatedMessageChannelSuffix = + if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" + val channelName = + "dev.flutter.pigeon.nl_jknaapen_fladder.video.VideoPlayerControlsCallback.swapSubtitleTrack$separatedMessageChannelSuffix" + val channel = BasicMessageChannel(binaryMessenger, channelName, codec) + channel.send(listOf(valueArg)) { + if (it is List<*>) { + if (it.size > 1) { + callback( + Result.failure( + FlutterError( + it[0] as String, + it[1] as String, + it[2] as String? + ) + ) + ) + } else { + callback(Result.success(Unit)) + } + } else { + callback( + Result.failure( + VideoPlayerHelperPigeonUtils.createConnectionError( + channelName + ) + ) + ) + } + } + } + + fun swapAudioTrack(valueArg: Long, callback: (Result) -> Unit) { + val separatedMessageChannelSuffix = + if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" + val channelName = + "dev.flutter.pigeon.nl_jknaapen_fladder.video.VideoPlayerControlsCallback.swapAudioTrack$separatedMessageChannelSuffix" + val channel = BasicMessageChannel(binaryMessenger, channelName, codec) + channel.send(listOf(valueArg)) { + if (it is List<*>) { + if (it.size > 1) { + callback( + Result.failure( + FlutterError( + it[0] as String, + it[1] as String, + it[2] as String? + ) + ) + ) + } else { + callback(Result.success(Unit)) + } + } else { + callback( + Result.failure( + VideoPlayerHelperPigeonUtils.createConnectionError( + channelName + ) + ) + ) + } + } + } + + fun loadProgram(selectionArg: GuideChannel, callback: (Result) -> Unit) { + val separatedMessageChannelSuffix = + if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" + val channelName = + "dev.flutter.pigeon.nl_jknaapen_fladder.video.VideoPlayerControlsCallback.loadProgram$separatedMessageChannelSuffix" + val channel = BasicMessageChannel(binaryMessenger, channelName, codec) + channel.send(listOf(selectionArg)) { + if (it is List<*>) { + if (it.size > 1) { + callback( + Result.failure( + FlutterError( + it[0] as String, + it[1] as String, + it[2] as String? + ) + ) + ) + } else { + callback(Result.success(Unit)) + } + } else { + callback( + Result.failure( + VideoPlayerHelperPigeonUtils.createConnectionError( + channelName + ) + ) + ) + } + } + } + + fun fetchProgramsForChannel( + channelIdArg: String, + callback: (Result>) -> Unit + ) { + val separatedMessageChannelSuffix = + if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" + val channelName = + "dev.flutter.pigeon.nl_jknaapen_fladder.video.VideoPlayerControlsCallback.fetchProgramsForChannel$separatedMessageChannelSuffix" + val channel = BasicMessageChannel(binaryMessenger, channelName, codec) + channel.send(listOf(channelIdArg)) { + if (it is List<*>) { + if (it.size > 1) { + callback( + Result.failure( + FlutterError( + it[0] as String, + it[1] as String, + it[2] as String? + ) + ) + ) + } else if (it[0] == null) { + callback( + Result.failure( + FlutterError( + "null-error", + "Flutter api returned null value for non-null return value.", + "" + ) + ) + ) + } else { + val output = it[0] as List + callback(Result.success(output)) + } + } else { + callback( + Result.failure( + VideoPlayerHelperPigeonUtils.createConnectionError( + channelName + ) + ) + ) + } + } + } + + /** User-initiated play action from native player (for SyncPlay integration) */ + fun onUserPlay(callback: (Result) -> Unit) { + val separatedMessageChannelSuffix = + if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" + val channelName = + "dev.flutter.pigeon.nl_jknaapen_fladder.video.VideoPlayerControlsCallback.onUserPlay$separatedMessageChannelSuffix" + val channel = BasicMessageChannel(binaryMessenger, channelName, codec) + channel.send(null) { + if (it is List<*>) { + if (it.size > 1) { + callback( + Result.failure( + FlutterError( + it[0] as String, + it[1] as String, + it[2] as String? + ) + ) + ) + } else { + callback(Result.success(Unit)) + } + } else { + callback( + Result.failure( + VideoPlayerHelperPigeonUtils.createConnectionError( + channelName + ) + ) + ) + } + } + } + + /** User-initiated pause action from native player (for SyncPlay integration) */ + fun onUserPause(callback: (Result) -> Unit) { + val separatedMessageChannelSuffix = + if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" + val channelName = + "dev.flutter.pigeon.nl_jknaapen_fladder.video.VideoPlayerControlsCallback.onUserPause$separatedMessageChannelSuffix" + val channel = BasicMessageChannel(binaryMessenger, channelName, codec) + channel.send(null) { + if (it is List<*>) { + if (it.size > 1) { + callback( + Result.failure( + FlutterError( + it[0] as String, + it[1] as String, + it[2] as String? + ) + ) + ) + } else { + callback(Result.success(Unit)) + } + } else { + callback( + Result.failure( + VideoPlayerHelperPigeonUtils.createConnectionError( + channelName + ) + ) + ) + } + } + } + + /** + * User-initiated seek action from native player (for SyncPlay integration) + * Position is in milliseconds + */ + fun onUserSeek(positionMsArg: Long, callback: (Result) -> Unit) { + val separatedMessageChannelSuffix = + if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" + val channelName = + "dev.flutter.pigeon.nl_jknaapen_fladder.video.VideoPlayerControlsCallback.onUserSeek$separatedMessageChannelSuffix" + val channel = BasicMessageChannel(binaryMessenger, channelName, codec) + channel.send(listOf(positionMsArg)) { + if (it is List<*>) { + if (it.size > 1) { + callback( + Result.failure( + FlutterError( + it[0] as String, + it[1] as String, + it[2] as String? + ) + ) + ) + } else { + callback(Result.success(Unit)) + } + } else { + callback( + Result.failure( + VideoPlayerHelperPigeonUtils.createConnectionError( + channelName + ) + ) + ) + } } - } else { - callback(Result.failure(VideoPlayerHelperPigeonUtils.createConnectionError(channelName))) - } } - } } diff --git a/android/app/src/main/kotlin/nl/jknaapen/fladder/messengers/VideoPlayerImplementation.kt b/android/app/src/main/kotlin/nl/jknaapen/fladder/messengers/VideoPlayerImplementation.kt index 0a0e8f194..b4328e9e1 100644 --- a/android/app/src/main/kotlin/nl/jknaapen/fladder/messengers/VideoPlayerImplementation.kt +++ b/android/app/src/main/kotlin/nl/jknaapen/fladder/messengers/VideoPlayerImplementation.kt @@ -6,7 +6,7 @@ import TVGuideModel import VideoPlayerApi import nl.jknaapen.fladder.api.PlaybackChangeSource import nl.jknaapen.fladder.api.PlayableData -import nl.jknaapen.fladder.api.SyncPlayCommandState +import nl.jknaapen.fladder.api.SyncPlayCommandType import nl.jknaapen.fladder.api.TVGuideModel import nl.jknaapen.fladder.api.VideoPlayerApi import android.os.Handler @@ -163,8 +163,11 @@ class VideoPlayerImplementation( player?.stop() } - override fun setSyncPlayCommandState(state: SyncPlayCommandState) { - VideoPlayerObject.setSyncPlayCommandState(state) + override fun setSyncPlayCommandState(processing: Boolean, commandType: SyncPlayCommandType) { + VideoPlayerObject.setSyncPlayCommandState( + processing = processing, + commandType = commandType + ) } fun init(exoPlayer: ExoPlayer?) { diff --git a/android/app/src/main/kotlin/nl/jknaapen/fladder/objects/VideoPlayerObject.kt b/android/app/src/main/kotlin/nl/jknaapen/fladder/objects/VideoPlayerObject.kt index f89ee97e5..bb8ef5c1f 100644 --- a/android/app/src/main/kotlin/nl/jknaapen/fladder/objects/VideoPlayerObject.kt +++ b/android/app/src/main/kotlin/nl/jknaapen/fladder/objects/VideoPlayerObject.kt @@ -2,7 +2,6 @@ package nl.jknaapen.fladder.objects import nl.jknaapen.fladder.api.PlaybackChangeSource import nl.jknaapen.fladder.api.PlaybackState -import nl.jknaapen.fladder.api.SyncPlayCommandState import nl.jknaapen.fladder.api.SyncPlayCommandType import nl.jknaapen.fladder.api.TVGuideModel import VideoPlayerControlsCallback @@ -18,6 +17,11 @@ import nl.jknaapen.fladder.messengers.VideoPlayerImplementation import nl.jknaapen.fladder.utility.InternalTrack object VideoPlayerObject { + data class SyncPlayCommandUiState( + val processing: Boolean, + val commandType: SyncPlayCommandType + ) + val implementation: VideoPlayerImplementation = VideoPlayerImplementation() private var _currentState = MutableStateFlow(null) @@ -109,11 +113,14 @@ object VideoPlayerObject { // SyncPlay command state for overlay (Pigeon-generated type) val syncPlayCommandState = MutableStateFlow( - SyncPlayCommandState(false, SyncPlayCommandType.NONE) + SyncPlayCommandUiState(false, SyncPlayCommandType.NONE) ) - fun setSyncPlayCommandState(state: SyncPlayCommandState) { - syncPlayCommandState.value = state + fun setSyncPlayCommandState(processing: Boolean, commandType: SyncPlayCommandType) { + syncPlayCommandState.value = SyncPlayCommandUiState( + processing = processing, + commandType = commandType + ) } /** Set before updating player so the next PlaybackState sent to Flutter is tagged (for SyncPlay inference). */ diff --git a/lib/providers/syncplay/syncplay_controller.dart b/lib/providers/syncplay/syncplay_controller.dart index e5714baf6..d5f0c78ff 100644 --- a/lib/providers/syncplay/syncplay_controller.dart +++ b/lib/providers/syncplay/syncplay_controller.dart @@ -1,5 +1,5 @@ import 'dart:async'; -import 'dart:developer'; +import 'dart:developer' as developer; import 'package:fladder/jellyfin/jellyfin_open_api.swagger.dart'; import 'package:fladder/models/media_playback_model.dart'; @@ -19,6 +19,8 @@ import 'package:flutter_riverpod/flutter_riverpod.dart'; /// Controller for SyncPlay synchronized playback class SyncPlayController { + static const bool _verboseSyncPlayLogs = false; + SyncPlayController(this._ref) { _commandHandler = SyncPlayCommandHandler( timeSync: () => _timeSync, @@ -85,6 +87,13 @@ class SyncPlayController { set hasPlaybackRate(bool Function()? callback) => _commandHandler.hasPlaybackRate = callback; + void log(String message) { + final isImportant = message.contains('Failed') || message.contains('Error') || message.contains('Cannot'); + if (_verboseSyncPlayLogs || isImportant) { + developer.log(message); + } + } + /// Mark that a SyncPlay command was executed locally. /// Used by player-side cooldown logic to avoid feedback loops. void markCommandExecuted([DateTime? at]) { diff --git a/lib/providers/video_player_provider.dart b/lib/providers/video_player_provider.dart index 9d4a43cbd..dc860816b 100644 --- a/lib/providers/video_player_provider.dart +++ b/lib/providers/video_player_provider.dart @@ -7,7 +7,7 @@ import 'package:fladder/models/syncplay/syncplay_models.dart'; import 'package:fladder/providers/settings/client_settings_provider.dart'; import 'package:fladder/providers/settings/video_player_settings_provider.dart'; import 'package:fladder/providers/syncplay/syncplay_provider.dart'; -import 'package:fladder/src/video_player_helper.g.dart' show PlaybackChangeSource; +import 'package:fladder/src/video_player_helper.g.dart' show PlaybackChangeSource, SyncPlayCommandType; import 'package:fladder/wrappers/media_control_wrapper.dart'; import 'package:flutter/material.dart'; import 'package:flutter_riverpod/flutter_riverpod.dart'; @@ -107,7 +107,7 @@ class VideoPlayerNotifier extends StateNotifier { previous?.processingCommandType != next.processingCommandType) { state.updateSyncPlayCommandState( next.isProcessingCommand, - next.processingCommandType, + _toSyncPlayCommandType(next.processingCommandType), ); } } @@ -115,6 +115,16 @@ class VideoPlayerNotifier extends StateNotifier { ); } + SyncPlayCommandType _toSyncPlayCommandType(String? commandType) { + return switch (commandType) { + 'Pause' => SyncPlayCommandType.pause, + 'Unpause' => SyncPlayCommandType.unpause, + 'Seek' => SyncPlayCommandType.seek, + 'Stop' => SyncPlayCommandType.stop, + _ => SyncPlayCommandType.none, + }; + } + /// Manually set the reloading state (e.g. before fetching new PlaybackInfo) void setReloading( bool value, { diff --git a/lib/src/video_player_helper.g.dart b/lib/src/video_player_helper.g.dart index e23bf452d..98374dcb5 100644 --- a/lib/src/video_player_helper.g.dart +++ b/lib/src/video_player_helper.g.dart @@ -44,6 +44,14 @@ enum PlaybackType { tv, } +enum SyncPlayCommandType { + none, + pause, + unpause, + seek, + stop, +} + enum MediaSegmentType { commercial, preview, @@ -981,6 +989,7 @@ class GuideProgram { class _PigeonCodec extends StandardMessageCodec { const _PigeonCodec(); + @override void writeValue(WriteBuffer buffer, Object? value) { if (value is int) { @@ -989,53 +998,56 @@ class _PigeonCodec extends StandardMessageCodec { } else if (value is PlaybackType) { buffer.putUint8(129); writeValue(buffer, value.index); - } else if (value is MediaSegmentType) { + } else if (value is SyncPlayCommandType) { buffer.putUint8(130); writeValue(buffer, value.index); - } else if (value is PlaybackChangeSource) { + } else if (value is MediaSegmentType) { buffer.putUint8(131); writeValue(buffer, value.index); - } else if (value is SimpleItemModel) { + } else if (value is PlaybackChangeSource) { buffer.putUint8(132); + writeValue(buffer, value.index); + } else if (value is SimpleItemModel) { + buffer.putUint8(133); writeValue(buffer, value.encode()); } else if (value is MediaInfo) { - buffer.putUint8(133); + buffer.putUint8(134); writeValue(buffer, value.encode()); } else if (value is PlayableData) { - buffer.putUint8(134); + buffer.putUint8(135); writeValue(buffer, value.encode()); } else if (value is MediaSegment) { - buffer.putUint8(135); + buffer.putUint8(136); writeValue(buffer, value.encode()); } else if (value is AudioTrack) { - buffer.putUint8(136); + buffer.putUint8(137); writeValue(buffer, value.encode()); } else if (value is SubtitleTrack) { - buffer.putUint8(137); + buffer.putUint8(138); writeValue(buffer, value.encode()); } else if (value is Chapter) { - buffer.putUint8(138); + buffer.putUint8(139); writeValue(buffer, value.encode()); } else if (value is TrickPlayModel) { - buffer.putUint8(139); + buffer.putUint8(140); writeValue(buffer, value.encode()); } else if (value is StartResult) { - buffer.putUint8(140); + buffer.putUint8(141); writeValue(buffer, value.encode()); } else if (value is PlaybackState) { - buffer.putUint8(141); + buffer.putUint8(142); writeValue(buffer, value.encode()); } else if (value is SubtitleSettings) { - buffer.putUint8(142); + buffer.putUint8(143); writeValue(buffer, value.encode()); } else if (value is TVGuideModel) { - buffer.putUint8(143); + buffer.putUint8(144); writeValue(buffer, value.encode()); } else if (value is GuideChannel) { - buffer.putUint8(143); + buffer.putUint8(145); writeValue(buffer, value.encode()); } else if (value is GuideProgram) { - buffer.putUint8(144); + buffer.putUint8(146); writeValue(buffer, value.encode()); } else { super.writeValue(buffer, value); @@ -1050,37 +1062,40 @@ class _PigeonCodec extends StandardMessageCodec { return value == null ? null : PlaybackType.values[value]; case 130: final int? value = readValue(buffer) as int?; - return value == null ? null : MediaSegmentType.values[value]; + return value == null ? null : SyncPlayCommandType.values[value]; case 131: final int? value = readValue(buffer) as int?; - return value == null ? null : PlaybackChangeSource.values[value]; + return value == null ? null : MediaSegmentType.values[value]; case 132: - return SimpleItemModel.decode(readValue(buffer)!); + final int? value = readValue(buffer) as int?; + return value == null ? null : PlaybackChangeSource.values[value]; case 133: - return MediaInfo.decode(readValue(buffer)!); + return SimpleItemModel.decode(readValue(buffer)!); case 134: - return PlayableData.decode(readValue(buffer)!); + return MediaInfo.decode(readValue(buffer)!); case 135: - return MediaSegment.decode(readValue(buffer)!); + return PlayableData.decode(readValue(buffer)!); case 136: - return AudioTrack.decode(readValue(buffer)!); + return MediaSegment.decode(readValue(buffer)!); case 137: - return SubtitleTrack.decode(readValue(buffer)!); + return AudioTrack.decode(readValue(buffer)!); case 138: - return Chapter.decode(readValue(buffer)!); + return SubtitleTrack.decode(readValue(buffer)!); case 139: - return TrickPlayModel.decode(readValue(buffer)!); + return Chapter.decode(readValue(buffer)!); case 140: - return StartResult.decode(readValue(buffer)!); + return TrickPlayModel.decode(readValue(buffer)!); case 141: - return PlaybackState.decode(readValue(buffer)!); + return StartResult.decode(readValue(buffer)!); case 142: + return PlaybackState.decode(readValue(buffer)!); + case 143: return SubtitleSettings.decode(readValue(buffer)!); - case 142: + case 144: return TVGuideModel.decode(readValue(buffer)!); - case 143: + case 145: return GuideChannel.decode(readValue(buffer)!); - case 144: + case 146: return GuideProgram.decode(readValue(buffer)!); default: return super.readValueOfType(type, buffer); @@ -1443,18 +1458,15 @@ class VideoPlayerApi { } } - /// Sets the SyncPlay command state for the native player overlay. - /// [processing] indicates if a SyncPlay command is being processed. - /// [commandType] is the type of command (e.g., "Pause", "Unpause", "Seek", "Stop"). - Future setSyncPlayCommandState(bool processing, String? commandType) async { + Future setSubtitleSettings(SubtitleSettings settings) async { final String pigeonVar_channelName = - 'dev.flutter.pigeon.nl_jknaapen_fladder.video.VideoPlayerApi.setSyncPlayCommandState$pigeonVar_messageChannelSuffix'; + 'dev.flutter.pigeon.nl_jknaapen_fladder.video.VideoPlayerApi.setSubtitleSettings$pigeonVar_messageChannelSuffix'; final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([processing, commandType]); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([settings]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { throw _createConnectionError(pigeonVar_channelName); @@ -1469,15 +1481,18 @@ class VideoPlayerApi { } } - Future setSubtitleSettings(SubtitleSettings settings) async { + /// Sets the SyncPlay command state for the native player overlay. + /// [processing] indicates if a SyncPlay command is being processed. + /// [commandType] is the type of command. + Future setSyncPlayCommandState(bool processing, SyncPlayCommandType commandType) async { final String pigeonVar_channelName = - 'dev.flutter.pigeon.nl_jknaapen_fladder.video.VideoPlayerApi.setSubtitleSettings$pigeonVar_messageChannelSuffix'; + 'dev.flutter.pigeon.nl_jknaapen_fladder.video.VideoPlayerApi.setSyncPlayCommandState$pigeonVar_messageChannelSuffix'; final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); - final Future pigeonVar_sendFuture = pigeonVar_channel.send([settings]); + final Future pigeonVar_sendFuture = pigeonVar_channel.send([processing, commandType]); final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { throw _createConnectionError(pigeonVar_channelName); diff --git a/lib/wrappers/media_control_wrapper.dart b/lib/wrappers/media_control_wrapper.dart index 03fcee0e0..8c7d81b96 100644 --- a/lib/wrappers/media_control_wrapper.dart +++ b/lib/wrappers/media_control_wrapper.dart @@ -1,15 +1,8 @@ import 'dart:async'; import 'dart:io'; -import 'package:flutter/foundation.dart'; -import 'package:flutter/material.dart'; - import 'package:audio_service/audio_service.dart'; import 'package:collection/collection.dart'; -import 'package:flutter_riverpod/flutter_riverpod.dart'; -import 'package:smtc_windows/smtc_windows.dart' if (dart.library.html) 'package:fladder/stubs/web/smtc_web.dart'; -import 'package:wakelock_plus/wakelock_plus.dart'; - import 'package:fladder/models/item_base_model.dart'; import 'package:fladder/models/items/channel_model.dart'; import 'package:fladder/models/items/media_streams_model.dart'; @@ -30,6 +23,11 @@ import 'package:fladder/wrappers/players/lib_mdk.dart' import 'package:fladder/wrappers/players/lib_mpv.dart'; import 'package:fladder/wrappers/players/native_player.dart'; import 'package:fladder/wrappers/players/player_states.dart'; +import 'package:flutter/foundation.dart'; +import 'package:flutter/material.dart'; +import 'package:flutter_riverpod/flutter_riverpod.dart'; +import 'package:smtc_windows/smtc_windows.dart' if (dart.library.html) 'package:fladder/stubs/web/smtc_web.dart'; +import 'package:wakelock_plus/wakelock_plus.dart'; class MediaControlsWrapper extends BaseAudioHandler implements VideoPlayerControlsCallback { MediaControlsWrapper({required this.ref}); @@ -45,10 +43,12 @@ class MediaControlsWrapper extends BaseAudioHandler implements VideoPlayerContro }; Stream? get stateStream => _player?.stateStream; + PlayerState? get lastState => _player?.lastState; Widget? subtitleWidget(bool showOverlay, {GlobalKey? controlsKey}) => _player?.subtitles(showOverlay, controlsKey: controlsKey); + Widget? videoWidget(Key key, BoxFit fit) => _player?.videoWidget(key, fit); final Ref ref; @@ -132,7 +132,10 @@ class MediaControlsWrapper extends BaseAudioHandler implements VideoPlayerContro bool get isNativePlayerActive => _player is NativePlayer; /// Update SyncPlay command state for the native player overlay - Future updateSyncPlayCommandState(bool processing, String? commandType) async { + Future updateSyncPlayCommandState( + bool processing, + SyncPlayCommandType commandType, + ) async { if (_player is NativePlayer) { await (_player as NativePlayer).player.setSyncPlayCommandState(processing, commandType); } diff --git a/pigeons/video_player.dart b/pigeons/video_player.dart index 701624a92..019c0db70 100644 --- a/pigeons/video_player.dart +++ b/pigeons/video_player.dart @@ -34,6 +34,14 @@ enum PlaybackType { tv, } +enum SyncPlayCommandType { + none, + pause, + unpause, + seek, + stop, +} + class MediaInfo { final PlaybackType playbackType; final String videoInformation; @@ -139,6 +147,7 @@ class SubtitleTrack { class Chapter { final String name; final String url; + // Duration in milliseconds final int time; @@ -155,6 +164,7 @@ class TrickPlayModel { final int tileWidth; final int tileHeight; final int thumbnailCount; + //Duration in milliseconds final int interval; final List images; @@ -178,6 +188,7 @@ class StartResult { abstract class NativeVideoActivity { @async StartResult launchActivity(); + void disposeActivity(); bool isLeanBackEnabled(); @@ -216,8 +227,8 @@ abstract class VideoPlayerApi { /// Sets the SyncPlay command state for the native player overlay. /// [processing] indicates if a SyncPlay command is being processed. - /// [commandType] is the type of command (e.g., "Pause", "Unpause", "Seek", "Stop"). - void setSyncPlayCommandState(bool processing, String? commandType); + /// [commandType] is the type of command. + void setSyncPlayCommandState(bool processing, SyncPlayCommandType commandType); } /// Source of the last playback state change (for SyncPlay: infer user actions from stream). @@ -235,8 +246,10 @@ enum PlaybackChangeSource { class PlaybackState { //Milliseconds final int position; + //Milliseconds final int buffered; + //Milliseconds final int duration; final bool playing; @@ -341,11 +354,17 @@ abstract class VideoPlayerListenerCallback { @FlutterApi() abstract class VideoPlayerControlsCallback { void loadNextVideo(); + void loadPreviousVideo(); + void onStop(); + void swapSubtitleTrack(int value); + void swapAudioTrack(int value); + void loadProgram(GuideChannel selection); + @async List fetchProgramsForChannel(String channelId); From 5fc0d8297949f372d5126e39d1a1a0ec2e0b735d Mon Sep 17 00:00:00 2001 From: Filip Iricanin Date: Sat, 21 Mar 2026 21:00:59 +0100 Subject: [PATCH 22/25] feat: improve SyncPlay session management and video player route handling - Introduce `isVideoPlayerRouteOpenProvider` to track the lifecycle of the video player route and prevent duplicate route pushes during SyncPlay events. - Update `SyncPlayController` to clear the `playBackModel` before re-initializing to prevent race conditions between old playback stop flows and new item loads. - Modify `VideoPlayer` and `TvPlayerControls` to update `isVideoPlayerRouteOpenProvider` state upon entry and exit. - Implement a generation-based check in `VideoPlayer.dispose` to ensure the route status is only reset if a newer instance hasn't already been initialized. - Adjust player closing logic to `pause()` instead of `stop()` when SyncPlay is active, ensuring the session state is preserved correctly. - Refactor item playback logic in `play_item_helpers.dart` to defer player initialization to the SyncPlay controller when a group session is active. - Ensure `mediaPlaybackProvider` state transitions correctly between `fullScreen` and `minimized` during player disposal. --- .../syncplay/syncplay_controller.dart | 40 +++++++++++++----- lib/providers/video_player_provider.dart | 2 + .../video_player/tv_player_controls.dart | 20 ++++----- lib/screens/video_player/video_player.dart | 41 +++++++++++++++++-- .../video_player/video_player_controls.dart | 11 ++++- .../item_base_model/play_item_helpers.dart | 8 ++-- 6 files changed, 93 insertions(+), 29 deletions(-) diff --git a/lib/providers/syncplay/syncplay_controller.dart b/lib/providers/syncplay/syncplay_controller.dart index d5f0c78ff..f6f6814af 100644 --- a/lib/providers/syncplay/syncplay_controller.dart +++ b/lib/providers/syncplay/syncplay_controller.dart @@ -702,6 +702,19 @@ class SyncPlayController { log('SyncPlay: _startPlayback called for item: $itemId, ticks: $startPositionTicks'); try { + final playerRouteAlreadyOpen = _ref.read(isVideoPlayerRouteOpenProvider); + log('SyncPlay: Player route already open: $playerRouteAlreadyOpen'); + + // Clear the old playback model BEFORE re-initializing. This prevents + // the fire-and-forget stop() inside _initPlayer() from entering a + // 1-second delayed playbackStopped flow that races against the new + // loadPlaybackItem call (which also calls stop()). With playBackModel + // null, every stop() becomes a no-op. + if (!playerRouteAlreadyOpen) { + _ref.read(playBackModel.notifier).update((state) => null); + await _ref.read(videoPlayerProvider.notifier).init(); + } + // Fetch the item from Jellyfin log('SyncPlay: Fetching item from API...'); final api = _ref.read(jellyApiProvider); @@ -750,18 +763,23 @@ class SyncPlayController { ); log('SyncPlay: Set state to fullScreen'); - // Open the player - this handles both native (Android TV) and Flutter players correctly - // For Android TV (NativePlayer), this launches the native activity - // For other platforms, this opens the Flutter VideoPlayer - final navigatorKey = getNavigatorKey(_ref); - final context = navigatorKey?.currentContext; - log('SyncPlay: Navigator context: ${context != null ? "exists" : "null"}'); - - if (context != null) { - await _ref.read(videoPlayerProvider.notifier).openPlayer(context); - log('SyncPlay: Successfully opened player for $itemId'); + // Only push the player route when it isn't already on screen. + // When the route is already open (e.g. User B whose player stayed + // open), loadPlaybackItem already swapped the video content in the + // existing player — pushing again would stack duplicate routes. + if (!playerRouteAlreadyOpen) { + final navigatorKey = getNavigatorKey(_ref); + final context = navigatorKey?.currentContext; + log('SyncPlay: Navigator context: ${context != null ? "exists" : "null"}'); + + if (context != null) { + await _ref.read(videoPlayerProvider.notifier).openPlayer(context); + log('SyncPlay: Successfully opened player for $itemId'); + } else { + log('SyncPlay: No navigator context available, player loaded but not opened fullscreen'); + } } else { - log('SyncPlay: No navigator context available, player loaded but not opened fullscreen'); + log('SyncPlay: Player route already open, video reloaded in place'); } } catch (e, stackTrace) { log('SyncPlay: Error starting playback: $e\n$stackTrace'); diff --git a/lib/providers/video_player_provider.dart b/lib/providers/video_player_provider.dart index dc860816b..3d80fe3ea 100644 --- a/lib/providers/video_player_provider.dart +++ b/lib/providers/video_player_provider.dart @@ -17,6 +17,8 @@ final mediaPlaybackProvider = StateProvider((ref) => MediaPl final playBackModel = StateProvider((ref) => null); +final isVideoPlayerRouteOpenProvider = StateProvider((ref) => false); + final videoPlayerProvider = StateNotifierProvider((ref) { final videoPlayer = VideoPlayerNotifier(ref); videoPlayer.init(); diff --git a/lib/screens/video_player/tv_player_controls.dart b/lib/screens/video_player/tv_player_controls.dart index 0e3bea879..eb74bbffc 100644 --- a/lib/screens/video_player/tv_player_controls.dart +++ b/lib/screens/video_player/tv_player_controls.dart @@ -1,15 +1,6 @@ import 'dart:async'; -import 'package:flutter/foundation.dart'; -import 'package:flutter/gestures.dart'; -import 'package:flutter/material.dart'; -import 'package:flutter/services.dart'; - import 'package:async/async.dart'; -import 'package:flutter_riverpod/flutter_riverpod.dart'; -import 'package:iconsax_plus/iconsax_plus.dart'; -import 'package:screen_brightness/screen_brightness.dart'; - import 'package:fladder/models/item_base_model.dart'; import 'package:fladder/models/items/media_segments_model.dart'; import 'package:fladder/models/media_playback_model.dart'; @@ -22,6 +13,7 @@ import 'package:fladder/providers/user_provider.dart'; import 'package:fladder/providers/video_player_provider.dart'; import 'package:fladder/screens/shared/default_title_bar.dart'; import 'package:fladder/screens/shared/media/components/item_logo.dart'; +import 'package:fladder/screens/video_player/components/syncplay_command_indicator.dart'; import 'package:fladder/screens/video_player/components/video_playback_information.dart'; import 'package:fladder/screens/video_player/components/video_player_options_sheet.dart'; import 'package:fladder/screens/video_player/components/video_player_quality_controls.dart'; @@ -34,12 +26,19 @@ import 'package:fladder/util/adaptive_layout/adaptive_layout.dart'; import 'package:fladder/util/duration_extensions.dart'; import 'package:fladder/util/input_handler.dart'; import 'package:fladder/util/localization_helper.dart'; -import 'package:fladder/screens/video_player/components/syncplay_command_indicator.dart'; import 'package:fladder/widgets/full_screen_helpers/full_screen_wrapper.dart'; import 'package:fladder/widgets/syncplay/syncplay_badge.dart'; +import 'package:flutter/foundation.dart'; +import 'package:flutter/gestures.dart'; +import 'package:flutter/material.dart'; +import 'package:flutter/services.dart'; +import 'package:flutter_riverpod/flutter_riverpod.dart'; +import 'package:iconsax_plus/iconsax_plus.dart'; +import 'package:screen_brightness/screen_brightness.dart'; class TvPlayerControls extends ConsumerStatefulWidget { final Function(bool value) showGuide; + const TvPlayerControls({ required this.showGuide, super.key, @@ -641,6 +640,7 @@ class _TvPlayerControlsState extends ConsumerState { Future closePlayer() async { clearOverlaySettings(); + ref.read(isVideoPlayerRouteOpenProvider.notifier).state = false; ref.read(videoPlayerProvider).stop(); Navigator.of(context).pop(); } diff --git a/lib/screens/video_player/video_player.dart b/lib/screens/video_player/video_player.dart index 198126900..c7a92e1b3 100644 --- a/lib/screens/video_player/video_player.dart +++ b/lib/screens/video_player/video_player.dart @@ -26,6 +26,9 @@ class VideoPlayer extends ConsumerStatefulWidget { } class _VideoPlayerState extends ConsumerState with WidgetsBindingObserver { + static int _generation = 0; + late final int _myGeneration; + double lastScale = 0.0; bool errorPlaying = false; @@ -55,6 +58,23 @@ class _VideoPlayerState extends ConsumerState with WidgetsBindingOb @override void dispose() { WidgetsBinding.instance.removeObserver(this); + final gen = _myGeneration; + Future.microtask(() { + // Only reset when no newer VideoPlayer was opened since this + // instance. closePlayer() already sets the flag to false before + // Navigator.pop(), so this is just a safety net for non-standard + // pops. Without the generation check, the old dispose microtask + // could overwrite a newer initState's true value. + if (_generation == gen) { + ref.read(isVideoPlayerRouteOpenProvider.notifier).state = false; + } + }); + final currentPlaybackState = ref.read(mediaPlaybackProvider).state; + if (currentPlaybackState == VideoPlayerState.fullScreen) { + ref.read(mediaPlaybackProvider.notifier).update( + (state) => state.copyWith(state: VideoPlayerState.minimized), + ); + } SystemChrome.setPreferredOrientations(DeviceOrientation.values); super.dispose(); } @@ -62,13 +82,26 @@ class _VideoPlayerState extends ConsumerState with WidgetsBindingOb @override void initState() { super.initState(); + _myGeneration = ++_generation; WidgetsBinding.instance.addObserver(this); Future.microtask(() { - ref.read(mediaPlaybackProvider.notifier).update((state) => state.copyWith(state: VideoPlayerState.fullScreen)); - final orientations = ref.read(videoPlayerSettingsProvider.select((value) => value.allowedOrientations)); + ref.read(isVideoPlayerRouteOpenProvider.notifier).state = true; + ref.read(mediaPlaybackProvider.notifier).update( + (state) => state.copyWith(state: VideoPlayerState.fullScreen), + ); + final orientations = ref.read( + videoPlayerSettingsProvider.select( + (value) => value.allowedOrientations, + ), + ); SystemChrome.setPreferredOrientations( - orientations?.isNotEmpty == true ? orientations!.toList() : DeviceOrientation.values); - return ref.read(videoPlayerSettingsProvider.notifier).setSavedBrightness(); + orientations?.isNotEmpty == true + ? orientations!.toList() + : DeviceOrientation.values, + ); + return ref + .read(videoPlayerSettingsProvider.notifier) + .setSavedBrightness(); }); } diff --git a/lib/screens/video_player/video_player_controls.dart b/lib/screens/video_player/video_player_controls.dart index 896e9d7df..8a109f5bb 100644 --- a/lib/screens/video_player/video_player_controls.dart +++ b/lib/screens/video_player/video_player_controls.dart @@ -9,6 +9,7 @@ import 'package:fladder/models/settings/video_player_settings.dart'; import 'package:fladder/providers/settings/client_settings_provider.dart'; import 'package:fladder/providers/settings/video_player_settings_provider.dart'; import 'package:fladder/providers/user_provider.dart'; +import 'package:fladder/providers/syncplay/syncplay_provider.dart'; import 'package:fladder/providers/video_player_provider.dart'; import 'package:fladder/screens/shared/default_title_bar.dart'; import 'package:fladder/screens/shared/media/components/item_logo.dart'; @@ -715,7 +716,15 @@ class _DesktopControlsState extends ConsumerState { Future closePlayer() async { clearOverlaySettings(); - ref.read(videoPlayerProvider).stop(); + // Mark the route as closed immediately so that a SyncPlay + // _startPlayback call arriving during the pop animation knows + // it must push a new route. + ref.read(isVideoPlayerRouteOpenProvider.notifier).state = false; + if (ref.read(isSyncPlayActiveProvider)) { + await ref.read(videoPlayerProvider).pause(); + } else { + ref.read(videoPlayerProvider).stop(); + } Navigator.of(context).pop(); } diff --git a/lib/util/item_base_model/play_item_helpers.dart b/lib/util/item_base_model/play_item_helpers.dart index 31d80510a..31f34c604 100644 --- a/lib/util/item_base_model/play_item_helpers.dart +++ b/lib/util/item_base_model/play_item_helpers.dart @@ -199,15 +199,17 @@ extension ItemBaseModelExtensions on ItemBaseModel? { }) async { if (itemModel == null) return; - await ref.read(videoPlayerProvider.notifier).init(); - - // If in SyncPlay group, set the queue via SyncPlay instead of playing directly + // When SyncPlay is active, delegate to SyncPlay queue management. + // _startPlayback (triggered by the server's PlayQueue response) + // handles player init and route opening. final isSyncPlayActive = ref.read(isSyncPlayActiveProvider); if (isSyncPlayActive) { await _playSyncPlay(context, itemModel, ref, startPosition: startPosition); return; } + await ref.read(videoPlayerProvider.notifier).init(); + final op = CancelableOperation.fromFuture(ref.read(playbackModelHelper).createPlaybackModel( context, itemModel, From 152dfefddd67b19afc72819c0c1e1c180a64b5eb Mon Sep 17 00:00:00 2001 From: Filip Iricanin Date: Sat, 21 Mar 2026 21:10:37 +0100 Subject: [PATCH 23/25] feat: refactor video player route state management - Move the logic to set `isVideoPlayerRouteOpenProvider` to false into explicit exit methods: `closePlayer` in `VideoPlayerNextWrapper` and `minimizePlayer` in both mobile and TV controls. - Remove the generation-based race condition safety net and microtask logic from the `VideoPlayer` dispose method to simplify state handling. - Simplify initialization logic and formatting in `video_player.dart` for setting preferred orientations and brightness. - Ensure consistent state updates across `TvPlayerControls` and `VideoPlayerControls` when minimizing the player. --- .../components/video_player_next_wrapper.dart | 16 +++++---- .../video_player/tv_player_controls.dart | 5 ++- lib/screens/video_player/video_player.dart | 34 +++---------------- .../video_player/video_player_controls.dart | 7 ++-- 4 files changed, 22 insertions(+), 40 deletions(-) diff --git a/lib/screens/video_player/components/video_player_next_wrapper.dart b/lib/screens/video_player/components/video_player_next_wrapper.dart index c3f31eb27..b9ecc553d 100644 --- a/lib/screens/video_player/components/video_player_next_wrapper.dart +++ b/lib/screens/video_player/components/video_player_next_wrapper.dart @@ -1,10 +1,3 @@ -import 'package:flutter/material.dart'; -import 'package:flutter/services.dart'; - -import 'package:flutter_riverpod/flutter_riverpod.dart'; -import 'package:iconsax_plus/iconsax_plus.dart'; -import 'package:screen_brightness/screen_brightness.dart'; - import 'package:fladder/models/item_base_model.dart'; import 'package:fladder/models/items/movie_model.dart'; import 'package:fladder/models/media_playback_model.dart'; @@ -23,11 +16,17 @@ import 'package:fladder/util/localization_helper.dart'; import 'package:fladder/widgets/full_screen_helpers/full_screen_wrapper.dart'; import 'package:fladder/widgets/navigation_scaffold/components/floating_player_bar.dart'; import 'package:fladder/widgets/shared/progress_floating_button.dart'; +import 'package:flutter/material.dart'; +import 'package:flutter/services.dart'; +import 'package:flutter_riverpod/flutter_riverpod.dart'; +import 'package:iconsax_plus/iconsax_plus.dart'; +import 'package:screen_brightness/screen_brightness.dart'; class VideoPlayerNextWrapper extends ConsumerStatefulWidget { final Widget video; final Widget controls; final List overlays; + const VideoPlayerNextWrapper({ required this.video, required this.controls, @@ -123,6 +122,7 @@ class _VideoPlayerNextWrapperState extends ConsumerState Future closePlayer() async { clearOverlaySettings(); + ref.read(isVideoPlayerRouteOpenProvider.notifier).state = false; ref.read(videoPlayerProvider).stop(); Navigator.of(context).pop(); } @@ -350,6 +350,7 @@ class _VideoPlayerNextWrapperState extends ConsumerState class _NextUpInformation extends StatelessWidget { final ItemBaseModel item; + const _NextUpInformation({ required this.item, }); @@ -440,6 +441,7 @@ class _NextUpInformation extends StatelessWidget { class _SimpleControls extends ConsumerWidget { final Function()? skip; + const _SimpleControls({ this.skip, }); diff --git a/lib/screens/video_player/tv_player_controls.dart b/lib/screens/video_player/tv_player_controls.dart index eb74bbffc..bc2978411 100644 --- a/lib/screens/video_player/tv_player_controls.dart +++ b/lib/screens/video_player/tv_player_controls.dart @@ -632,7 +632,10 @@ class _TvPlayerControlsState extends ConsumerState { void minimizePlayer(BuildContext context) { clearOverlaySettings(); - ref.read(mediaPlaybackProvider.notifier).update((state) => state.copyWith(state: VideoPlayerState.minimized)); + ref.read(isVideoPlayerRouteOpenProvider.notifier).state = false; + ref.read(mediaPlaybackProvider.notifier).update( + (state) => state.copyWith(state: VideoPlayerState.minimized), + ); Navigator.of(context).pop(); } diff --git a/lib/screens/video_player/video_player.dart b/lib/screens/video_player/video_player.dart index c7a92e1b3..69ea21abb 100644 --- a/lib/screens/video_player/video_player.dart +++ b/lib/screens/video_player/video_player.dart @@ -26,9 +26,6 @@ class VideoPlayer extends ConsumerStatefulWidget { } class _VideoPlayerState extends ConsumerState with WidgetsBindingObserver { - static int _generation = 0; - late final int _myGeneration; - double lastScale = 0.0; bool errorPlaying = false; @@ -58,17 +55,6 @@ class _VideoPlayerState extends ConsumerState with WidgetsBindingOb @override void dispose() { WidgetsBinding.instance.removeObserver(this); - final gen = _myGeneration; - Future.microtask(() { - // Only reset when no newer VideoPlayer was opened since this - // instance. closePlayer() already sets the flag to false before - // Navigator.pop(), so this is just a safety net for non-standard - // pops. Without the generation check, the old dispose microtask - // could overwrite a newer initState's true value. - if (_generation == gen) { - ref.read(isVideoPlayerRouteOpenProvider.notifier).state = false; - } - }); final currentPlaybackState = ref.read(mediaPlaybackProvider).state; if (currentPlaybackState == VideoPlayerState.fullScreen) { ref.read(mediaPlaybackProvider.notifier).update( @@ -82,26 +68,14 @@ class _VideoPlayerState extends ConsumerState with WidgetsBindingOb @override void initState() { super.initState(); - _myGeneration = ++_generation; WidgetsBinding.instance.addObserver(this); Future.microtask(() { ref.read(isVideoPlayerRouteOpenProvider.notifier).state = true; - ref.read(mediaPlaybackProvider.notifier).update( - (state) => state.copyWith(state: VideoPlayerState.fullScreen), - ); - final orientations = ref.read( - videoPlayerSettingsProvider.select( - (value) => value.allowedOrientations, - ), - ); + ref.read(mediaPlaybackProvider.notifier).update((state) => state.copyWith(state: VideoPlayerState.fullScreen)); + final orientations = ref.read(videoPlayerSettingsProvider.select((value) => value.allowedOrientations)); SystemChrome.setPreferredOrientations( - orientations?.isNotEmpty == true - ? orientations!.toList() - : DeviceOrientation.values, - ); - return ref - .read(videoPlayerSettingsProvider.notifier) - .setSavedBrightness(); + orientations?.isNotEmpty == true ? orientations!.toList() : DeviceOrientation.values); + return ref.read(videoPlayerSettingsProvider.notifier).setSavedBrightness(); }); } diff --git a/lib/screens/video_player/video_player_controls.dart b/lib/screens/video_player/video_player_controls.dart index 8a109f5bb..e612089c5 100644 --- a/lib/screens/video_player/video_player_controls.dart +++ b/lib/screens/video_player/video_player_controls.dart @@ -8,8 +8,8 @@ import 'package:fladder/models/playback/playback_model.dart'; import 'package:fladder/models/settings/video_player_settings.dart'; import 'package:fladder/providers/settings/client_settings_provider.dart'; import 'package:fladder/providers/settings/video_player_settings_provider.dart'; -import 'package:fladder/providers/user_provider.dart'; import 'package:fladder/providers/syncplay/syncplay_provider.dart'; +import 'package:fladder/providers/user_provider.dart'; import 'package:fladder/providers/video_player_provider.dart'; import 'package:fladder/screens/shared/default_title_bar.dart'; import 'package:fladder/screens/shared/media/components/item_logo.dart'; @@ -708,7 +708,10 @@ class _DesktopControlsState extends ConsumerState { void minimizePlayer(BuildContext context) { clearOverlaySettings(); - ref.read(mediaPlaybackProvider.notifier).update((state) => state.copyWith(state: VideoPlayerState.minimized)); + ref.read(isVideoPlayerRouteOpenProvider.notifier).state = false; + ref.read(mediaPlaybackProvider.notifier).update( + (state) => state.copyWith(state: VideoPlayerState.minimized), + ); Navigator.of(context).pop(); } From 465cd16724521a366d500c091ea88391efaf543e Mon Sep 17 00:00:00 2001 From: Filip Iricanin Date: Sat, 21 Mar 2026 22:39:57 +0100 Subject: [PATCH 24/25] fix: revert changes to KotlinOptions for pigeons package imports --- .../jknaapen/fladder/composables/controls/ProgressBar.kt | 2 +- .../jknaapen/fladder/composables/controls/SkipOverlay.kt | 3 +-- .../fladder/composables/controls/VideoPlayerControls.kt | 2 +- .../composables/overlays/SyncPlayCommandOverlay.kt | 2 +- .../fladder/messengers/VideoPlayerImplementation.kt | 8 +++----- .../nl/jknaapen/fladder/objects/VideoPlayerObject.kt | 8 ++++---- pigeons/video_player.dart | 2 +- 7 files changed, 12 insertions(+), 15 deletions(-) diff --git a/android/app/src/main/kotlin/nl/jknaapen/fladder/composables/controls/ProgressBar.kt b/android/app/src/main/kotlin/nl/jknaapen/fladder/composables/controls/ProgressBar.kt index ccef14515..3299ea1b6 100644 --- a/android/app/src/main/kotlin/nl/jknaapen/fladder/composables/controls/ProgressBar.kt +++ b/android/app/src/main/kotlin/nl/jknaapen/fladder/composables/controls/ProgressBar.kt @@ -68,7 +68,7 @@ import androidx.compose.ui.unit.dp import androidx.compose.ui.util.fastCoerceIn import androidx.media3.exoplayer.ExoPlayer import kotlinx.coroutines.delay -import nl.jknaapen.fladder.api.PlaybackChangeSource +import PlaybackChangeSource import nl.jknaapen.fladder.objects.Localized import nl.jknaapen.fladder.objects.Translate import nl.jknaapen.fladder.objects.VideoPlayerObject diff --git a/android/app/src/main/kotlin/nl/jknaapen/fladder/composables/controls/SkipOverlay.kt b/android/app/src/main/kotlin/nl/jknaapen/fladder/composables/controls/SkipOverlay.kt index a1053d168..2f46e5670 100644 --- a/android/app/src/main/kotlin/nl/jknaapen/fladder/composables/controls/SkipOverlay.kt +++ b/android/app/src/main/kotlin/nl/jknaapen/fladder/composables/controls/SkipOverlay.kt @@ -5,7 +5,7 @@ import MediaSegmentType import SegmentSkip import SegmentType import android.os.Build -import nl.jknaapen.fladder.api.PlaybackChangeSource +import PlaybackChangeSource import nl.jknaapen.fladder.objects.VideoPlayerObject import androidx.annotation.RequiresApi import androidx.compose.animation.AnimatedVisibility @@ -40,7 +40,6 @@ import androidx.compose.ui.unit.dp import nl.jknaapen.fladder.objects.Localized import nl.jknaapen.fladder.objects.PlayerSettingsObject import nl.jknaapen.fladder.objects.Translate -import nl.jknaapen.fladder.objects.VideoPlayerObject import nl.jknaapen.fladder.utility.defaultSelected import nl.jknaapen.fladder.utility.leanBackEnabled import kotlin.time.Duration.Companion.milliseconds diff --git a/android/app/src/main/kotlin/nl/jknaapen/fladder/composables/controls/VideoPlayerControls.kt b/android/app/src/main/kotlin/nl/jknaapen/fladder/composables/controls/VideoPlayerControls.kt index 6a10e82ae..d491afc13 100644 --- a/android/app/src/main/kotlin/nl/jknaapen/fladder/composables/controls/VideoPlayerControls.kt +++ b/android/app/src/main/kotlin/nl/jknaapen/fladder/composables/controls/VideoPlayerControls.kt @@ -72,7 +72,7 @@ import nl.jknaapen.fladder.composables.dialogs.PlaybackSpeedPicker import nl.jknaapen.fladder.composables.dialogs.SubtitlePicker import nl.jknaapen.fladder.composables.overlays.SyncPlayCommandOverlay import nl.jknaapen.fladder.composables.shared.CurrentTime -import nl.jknaapen.fladder.api.PlaybackChangeSource +import PlaybackChangeSource import nl.jknaapen.fladder.objects.PlayerSettingsObject import nl.jknaapen.fladder.objects.VideoPlayerObject import nl.jknaapen.fladder.utility.ImmersiveSystemBars diff --git a/android/app/src/main/kotlin/nl/jknaapen/fladder/composables/overlays/SyncPlayCommandOverlay.kt b/android/app/src/main/kotlin/nl/jknaapen/fladder/composables/overlays/SyncPlayCommandOverlay.kt index 57bd09c02..01e0d5a15 100644 --- a/android/app/src/main/kotlin/nl/jknaapen/fladder/composables/overlays/SyncPlayCommandOverlay.kt +++ b/android/app/src/main/kotlin/nl/jknaapen/fladder/composables/overlays/SyncPlayCommandOverlay.kt @@ -40,7 +40,7 @@ import io.github.rabehx.iconsax.filled.Pause import io.github.rabehx.iconsax.filled.Play import io.github.rabehx.iconsax.filled.Refresh import io.github.rabehx.iconsax.filled.Stop -import nl.jknaapen.fladder.api.SyncPlayCommandType +import SyncPlayCommandType import nl.jknaapen.fladder.objects.Localized import nl.jknaapen.fladder.objects.Translate import nl.jknaapen.fladder.objects.VideoPlayerObject diff --git a/android/app/src/main/kotlin/nl/jknaapen/fladder/messengers/VideoPlayerImplementation.kt b/android/app/src/main/kotlin/nl/jknaapen/fladder/messengers/VideoPlayerImplementation.kt index b4328e9e1..67f60121e 100644 --- a/android/app/src/main/kotlin/nl/jknaapen/fladder/messengers/VideoPlayerImplementation.kt +++ b/android/app/src/main/kotlin/nl/jknaapen/fladder/messengers/VideoPlayerImplementation.kt @@ -1,14 +1,12 @@ package nl.jknaapen.fladder.messengers +import PlaybackChangeSource +import PlaybackType import PlayableData import SubtitleSettings +import SyncPlayCommandType import TVGuideModel import VideoPlayerApi -import nl.jknaapen.fladder.api.PlaybackChangeSource -import nl.jknaapen.fladder.api.PlayableData -import nl.jknaapen.fladder.api.SyncPlayCommandType -import nl.jknaapen.fladder.api.TVGuideModel -import nl.jknaapen.fladder.api.VideoPlayerApi import android.os.Handler import android.os.Looper import androidx.core.net.toUri diff --git a/android/app/src/main/kotlin/nl/jknaapen/fladder/objects/VideoPlayerObject.kt b/android/app/src/main/kotlin/nl/jknaapen/fladder/objects/VideoPlayerObject.kt index bb8ef5c1f..6472203be 100644 --- a/android/app/src/main/kotlin/nl/jknaapen/fladder/objects/VideoPlayerObject.kt +++ b/android/app/src/main/kotlin/nl/jknaapen/fladder/objects/VideoPlayerObject.kt @@ -1,9 +1,9 @@ package nl.jknaapen.fladder.objects -import nl.jknaapen.fladder.api.PlaybackChangeSource -import nl.jknaapen.fladder.api.PlaybackState -import nl.jknaapen.fladder.api.SyncPlayCommandType -import nl.jknaapen.fladder.api.TVGuideModel +import PlaybackChangeSource +import PlaybackState +import SyncPlayCommandType +import TVGuideModel import VideoPlayerControlsCallback import VideoPlayerListenerCallback import kotlinx.coroutines.flow.Flow diff --git a/pigeons/video_player.dart b/pigeons/video_player.dart index 019c0db70..4840facc1 100644 --- a/pigeons/video_player.dart +++ b/pigeons/video_player.dart @@ -5,7 +5,7 @@ import 'package:pigeon/pigeon.dart'; dartOut: 'lib/src/video_player_helper.g.dart', dartOptions: DartOptions(), kotlinOut: 'android/app/src/main/kotlin/nl/jknaapen/fladder/api/VideoPlayerHelper.g.kt', - kotlinOptions: KotlinOptions(package: 'nl.jknaapen.fladder.api'), + kotlinOptions: KotlinOptions(), dartPackageName: 'nl_jknaapen_fladder.video', ), ) From 0df21928e030b9c3eab859b614c8878893f2a356 Mon Sep 17 00:00:00 2001 From: Filip Iricanin Date: Sat, 21 Mar 2026 23:00:55 +0100 Subject: [PATCH 25/25] fix: android build - Update Pigeon-generated files for both Flutter and Android (Kotlin) layers across multiple modules (`video_player`, `battery_optimization`, `directory_bookmark`, `application_menu`, `translations`, and `player_settings`). - Standardize code formatting and indentation within generated classes and interfaces to match updated Pigeon generator templates. - Ensure consistent implementation of `_deepEquals` and `hashCode` logic in Dart generated models. - Apply consistent error handling and message channel setup patterns across all generated platform interfaces. --- .../api/BatteryOptimizationPigeon.g.kt | 146 +- .../fladder/api/VideoPlayerHelper.g.kt | 3045 +++++++---------- lib/src/application_menu.g.dart | 17 +- lib/src/battery_optimization_pigeon.g.dart | 15 +- lib/src/directory_bookmark.g.dart | 19 +- lib/src/player_settings_helper.g.dart | 53 +- lib/src/translations_pigeon.g.dart | 124 +- lib/src/video_player_helper.g.dart | 341 +- 8 files changed, 1648 insertions(+), 2112 deletions(-) diff --git a/android/app/src/main/kotlin/nl/jknaapen/fladder/api/BatteryOptimizationPigeon.g.kt b/android/app/src/main/kotlin/nl/jknaapen/fladder/api/BatteryOptimizationPigeon.g.kt index bb0aec8d6..4d2009591 100644 --- a/android/app/src/main/kotlin/nl/jknaapen/fladder/api/BatteryOptimizationPigeon.g.kt +++ b/android/app/src/main/kotlin/nl/jknaapen/fladder/api/BatteryOptimizationPigeon.g.kt @@ -12,102 +12,82 @@ import io.flutter.plugin.common.StandardMethodCodec import io.flutter.plugin.common.StandardMessageCodec import java.io.ByteArrayOutputStream import java.nio.ByteBuffer - private object BatteryOptimizationPigeonPigeonUtils { - fun wrapResult(result: Any?): List { - return listOf(result) - } + fun wrapResult(result: Any?): List { + return listOf(result) + } - fun wrapError(exception: Throwable): List { - return if (exception is FlutterError) { - listOf( - exception.code, - exception.message, - exception.details - ) - } else { - listOf( - exception.javaClass.simpleName, - exception.toString(), - "Cause: " + exception.cause + ", Stacktrace: " + Log.getStackTraceString(exception) - ) - } + fun wrapError(exception: Throwable): List { + return if (exception is FlutterError) { + listOf( + exception.code, + exception.message, + exception.details + ) + } else { + listOf( + exception.javaClass.simpleName, + exception.toString(), + "Cause: " + exception.cause + ", Stacktrace: " + Log.getStackTraceString(exception) + ) } + } } - private open class BatteryOptimizationPigeonPigeonCodec : StandardMessageCodec() { - override fun readValueOfType(type: Byte, buffer: ByteBuffer): Any? { - return super.readValueOfType(type, buffer) - } - - override fun writeValue(stream: ByteArrayOutputStream, value: Any?) { - super.writeValue(stream, value) - } + override fun readValueOfType(type: Byte, buffer: ByteBuffer): Any? { + return super.readValueOfType(type, buffer) + } + override fun writeValue(stream: ByteArrayOutputStream, value: Any?) { + super.writeValue(stream, value) + } } /** Generated interface from Pigeon that represents a handler of messages from Flutter. */ interface BatteryOptimizationPigeon { - /** Returns whether the app is currently *ignored* from battery optimizations. */ - fun isIgnoringBatteryOptimizations(): Boolean + fun isIgnoringBatteryOptimizations(): Boolean + fun openBatteryOptimizationSettings() - /** Opens the battery-optimization/settings screen for this app (Android). */ - fun openBatteryOptimizationSettings() - - companion object { - /** The codec used by BatteryOptimizationPigeon. */ - val codec: MessageCodec by lazy { - BatteryOptimizationPigeonPigeonCodec() - } - - /** Sets up an instance of `BatteryOptimizationPigeon` to handle messages through the `binaryMessenger`. */ - @JvmOverloads - fun setUp( - binaryMessenger: BinaryMessenger, - api: BatteryOptimizationPigeon?, - messageChannelSuffix: String = "" - ) { - val separatedMessageChannelSuffix = - if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" - run { - val channel = BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.nl_jknaapen_fladder.settings.BatteryOptimizationPigeon.isIgnoringBatteryOptimizations$separatedMessageChannelSuffix", - codec - ) - if (api != null) { - channel.setMessageHandler { _, reply -> - val wrapped: List = try { - listOf(api.isIgnoringBatteryOptimizations()) - } catch (exception: Throwable) { - BatteryOptimizationPigeonPigeonUtils.wrapError(exception) - } - reply.reply(wrapped) - } - } else { - channel.setMessageHandler(null) - } + companion object { + /** The codec used by BatteryOptimizationPigeon. */ + val codec: MessageCodec by lazy { + BatteryOptimizationPigeonPigeonCodec() + } + /** Sets up an instance of `BatteryOptimizationPigeon` to handle messages through the `binaryMessenger`. */ + @JvmOverloads + fun setUp(binaryMessenger: BinaryMessenger, api: BatteryOptimizationPigeon?, messageChannelSuffix: String = "") { + val separatedMessageChannelSuffix = if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" + run { + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.nl_jknaapen_fladder.settings.BatteryOptimizationPigeon.isIgnoringBatteryOptimizations$separatedMessageChannelSuffix", codec) + if (api != null) { + channel.setMessageHandler { _, reply -> + val wrapped: List = try { + listOf(api.isIgnoringBatteryOptimizations()) + } catch (exception: Throwable) { + BatteryOptimizationPigeonPigeonUtils.wrapError(exception) } - run { - val channel = BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.nl_jknaapen_fladder.settings.BatteryOptimizationPigeon.openBatteryOptimizationSettings$separatedMessageChannelSuffix", - codec - ) - if (api != null) { - channel.setMessageHandler { _, reply -> - val wrapped: List = try { - api.openBatteryOptimizationSettings() - listOf(null) - } catch (exception: Throwable) { - BatteryOptimizationPigeonPigeonUtils.wrapError(exception) - } - reply.reply(wrapped) - } - } else { - channel.setMessageHandler(null) - } + reply.reply(wrapped) + } + } else { + channel.setMessageHandler(null) + } + } + run { + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.nl_jknaapen_fladder.settings.BatteryOptimizationPigeon.openBatteryOptimizationSettings$separatedMessageChannelSuffix", codec) + if (api != null) { + channel.setMessageHandler { _, reply -> + val wrapped: List = try { + api.openBatteryOptimizationSettings() + listOf(null) + } catch (exception: Throwable) { + BatteryOptimizationPigeonPigeonUtils.wrapError(exception) } + reply.reply(wrapped) + } + } else { + channel.setMessageHandler(null) } + } } + } } diff --git a/android/app/src/main/kotlin/nl/jknaapen/fladder/api/VideoPlayerHelper.g.kt b/android/app/src/main/kotlin/nl/jknaapen/fladder/api/VideoPlayerHelper.g.kt index 910316fa1..367e0a680 100644 --- a/android/app/src/main/kotlin/nl/jknaapen/fladder/api/VideoPlayerHelper.g.kt +++ b/android/app/src/main/kotlin/nl/jknaapen/fladder/api/VideoPlayerHelper.g.kt @@ -2,7 +2,6 @@ // See also: https://pub.dev/packages/pigeon @file:Suppress("UNCHECKED_CAST", "ArrayInDataClass") -package nl.jknaapen.fladder.api import android.util.Log import io.flutter.plugin.common.BasicMessageChannel @@ -13,67 +12,60 @@ import io.flutter.plugin.common.StandardMethodCodec import io.flutter.plugin.common.StandardMessageCodec import java.io.ByteArrayOutputStream import java.nio.ByteBuffer - private object VideoPlayerHelperPigeonUtils { - fun createConnectionError(channelName: String): FlutterError { - return FlutterError( - "channel-error", - "Unable to establish connection on channel: '$channelName'.", - "" - ) - } - - fun wrapResult(result: Any?): List { - return listOf(result) - } - - fun wrapError(exception: Throwable): List { - return if (exception is FlutterError) { - listOf( - exception.code, - exception.message, - exception.details - ) - } else { - listOf( - exception.javaClass.simpleName, - exception.toString(), - "Cause: " + exception.cause + ", Stacktrace: " + Log.getStackTraceString(exception) - ) - } - } - - fun deepEquals(a: Any?, b: Any?): Boolean { - if (a is ByteArray && b is ByteArray) { - return a.contentEquals(b) - } - if (a is IntArray && b is IntArray) { - return a.contentEquals(b) - } - if (a is LongArray && b is LongArray) { - return a.contentEquals(b) - } - if (a is DoubleArray && b is DoubleArray) { - return a.contentEquals(b) - } - if (a is Array<*> && b is Array<*>) { - return a.size == b.size && - a.indices.all { deepEquals(a[it], b[it]) } - } - if (a is List<*> && b is List<*>) { - return a.size == b.size && - a.indices.all { deepEquals(a[it], b[it]) } - } - if (a is Map<*, *> && b is Map<*, *>) { - return a.size == b.size && a.all { - (b as Map).contains(it.key) && - deepEquals(it.value, b[it.key]) - } - } - return a == b - } - + fun createConnectionError(channelName: String): FlutterError { + return FlutterError("channel-error", "Unable to establish connection on channel: '$channelName'.", "") } + + fun wrapResult(result: Any?): List { + return listOf(result) + } + + fun wrapError(exception: Throwable): List { + return if (exception is FlutterError) { + listOf( + exception.code, + exception.message, + exception.details + ) + } else { + listOf( + exception.javaClass.simpleName, + exception.toString(), + "Cause: " + exception.cause + ", Stacktrace: " + Log.getStackTraceString(exception) + ) + } + } + fun deepEquals(a: Any?, b: Any?): Boolean { + if (a is ByteArray && b is ByteArray) { + return a.contentEquals(b) + } + if (a is IntArray && b is IntArray) { + return a.contentEquals(b) + } + if (a is LongArray && b is LongArray) { + return a.contentEquals(b) + } + if (a is DoubleArray && b is DoubleArray) { + return a.contentEquals(b) + } + if (a is Array<*> && b is Array<*>) { + return a.size == b.size && + a.indices.all{ deepEquals(a[it], b[it]) } + } + if (a is List<*> && b is List<*>) { + return a.size == b.size && + a.indices.all{ deepEquals(a[it], b[it]) } + } + if (a is Map<*, *> && b is Map<*, *>) { + return a.size == b.size && a.all { + (b as Map).contains(it.key) && + deepEquals(it.value, b[it.key]) + } + } + return a == b + } + } /** @@ -82,1764 +74,1373 @@ private object VideoPlayerHelperPigeonUtils { * @property message The error message. * @property details The error details. Must be a datatype supported by the api codec. */ -class FlutterError( - val code: String, - override val message: String? = null, - val details: Any? = null +class FlutterError ( + val code: String, + override val message: String? = null, + val details: Any? = null ) : Throwable() enum class PlaybackType(val raw: Int) { - DIRECT(0), - TRANSCODED(1), - OFFLINE(2), - TV(3); + DIRECT(0), + TRANSCODED(1), + OFFLINE(2), + TV(3); - companion object { - fun ofRaw(raw: Int): PlaybackType? { - return values().firstOrNull { it.raw == raw } - } + companion object { + fun ofRaw(raw: Int): PlaybackType? { + return values().firstOrNull { it.raw == raw } } + } } enum class SyncPlayCommandType(val raw: Int) { - NONE(0), - PAUSE(1), - UNPAUSE(2), - SEEK(3), - STOP(4); + NONE(0), + PAUSE(1), + UNPAUSE(2), + SEEK(3), + STOP(4); - companion object { - fun ofRaw(raw: Int): SyncPlayCommandType? { - return values().firstOrNull { it.raw == raw } - } + companion object { + fun ofRaw(raw: Int): SyncPlayCommandType? { + return values().firstOrNull { it.raw == raw } } + } } enum class MediaSegmentType(val raw: Int) { - COMMERCIAL(0), - PREVIEW(1), - RECAP(2), - INTRO(3), - OUTRO(4); + COMMERCIAL(0), + PREVIEW(1), + RECAP(2), + INTRO(3), + OUTRO(4); - companion object { - fun ofRaw(raw: Int): MediaSegmentType? { - return values().firstOrNull { it.raw == raw } - } + companion object { + fun ofRaw(raw: Int): MediaSegmentType? { + return values().firstOrNull { it.raw == raw } } + } } /** Source of the last playback state change (for SyncPlay: infer user actions from stream). */ enum class PlaybackChangeSource(val raw: Int) { - /** No specific source (e.g. periodic update, buffering). */ - NONE(0), - - /** User tapped play/pause/seek on native; Flutter should send SyncPlay if active. */ - USER(1), - - /** Change was caused by applying a SyncPlay command; do not send again. */ - SYNCPLAY(2); - - companion object { - fun ofRaw(raw: Int): PlaybackChangeSource? { - return values().firstOrNull { it.raw == raw } - } - } + /** No specific source (e.g. periodic update, buffering). */ + NONE(0), + /** User tapped play/pause/seek on native; Flutter should send SyncPlay if active. */ + USER(1), + /** Change was caused by applying a SyncPlay command; do not send again. */ + SYNCPLAY(2); + + companion object { + fun ofRaw(raw: Int): PlaybackChangeSource? { + return values().firstOrNull { it.raw == raw } + } + } } /** Generated class from Pigeon that represents data sent in messages. */ -data class SimpleItemModel( - val id: String, - val title: String, - val subTitle: String? = null, - val overview: String? = null, - val logoUrl: String? = null, - val primaryPoster: String -) { - companion object { - fun fromList(pigeonVar_list: List): SimpleItemModel { - val id = pigeonVar_list[0] as String - val title = pigeonVar_list[1] as String - val subTitle = pigeonVar_list[2] as String? - val overview = pigeonVar_list[3] as String? - val logoUrl = pigeonVar_list[4] as String? - val primaryPoster = pigeonVar_list[5] as String - return SimpleItemModel(id, title, subTitle, overview, logoUrl, primaryPoster) - } - } - - fun toList(): List { - return listOf( - id, - title, - subTitle, - overview, - logoUrl, - primaryPoster, - ) - } - - override fun equals(other: Any?): Boolean { - if (other !is SimpleItemModel) { - return false - } - if (this === other) { - return true - } - return VideoPlayerHelperPigeonUtils.deepEquals(toList(), other.toList()) - } - - override fun hashCode(): Int = toList().hashCode() +data class SimpleItemModel ( + val id: String, + val title: String, + val subTitle: String? = null, + val overview: String? = null, + val logoUrl: String? = null, + val primaryPoster: String +) + { + companion object { + fun fromList(pigeonVar_list: List): SimpleItemModel { + val id = pigeonVar_list[0] as String + val title = pigeonVar_list[1] as String + val subTitle = pigeonVar_list[2] as String? + val overview = pigeonVar_list[3] as String? + val logoUrl = pigeonVar_list[4] as String? + val primaryPoster = pigeonVar_list[5] as String + return SimpleItemModel(id, title, subTitle, overview, logoUrl, primaryPoster) + } + } + fun toList(): List { + return listOf( + id, + title, + subTitle, + overview, + logoUrl, + primaryPoster, + ) + } + override fun equals(other: Any?): Boolean { + if (other !is SimpleItemModel) { + return false + } + if (this === other) { + return true + } + return VideoPlayerHelperPigeonUtils.deepEquals(toList(), other.toList()) } + + override fun hashCode(): Int = toList().hashCode() } /** Generated class from Pigeon that represents data sent in messages. */ -data class MediaInfo( - val playbackType: PlaybackType, - val videoInformation: String -) { - companion object { - fun fromList(pigeonVar_list: List): MediaInfo { - val playbackType = pigeonVar_list[0] as PlaybackType - val videoInformation = pigeonVar_list[1] as String - return MediaInfo(playbackType, videoInformation) - } - } - - fun toList(): List { - return listOf( - playbackType, - videoInformation, - ) - } - - override fun equals(other: Any?): Boolean { - if (other !is MediaInfo) { - return false - } - if (this === other) { - return true - } - return VideoPlayerHelperPigeonUtils.deepEquals(toList(), other.toList()) - } - - override fun hashCode(): Int = toList().hashCode() +data class MediaInfo ( + val playbackType: PlaybackType, + val videoInformation: String +) + { + companion object { + fun fromList(pigeonVar_list: List): MediaInfo { + val playbackType = pigeonVar_list[0] as PlaybackType + val videoInformation = pigeonVar_list[1] as String + return MediaInfo(playbackType, videoInformation) + } + } + fun toList(): List { + return listOf( + playbackType, + videoInformation, + ) + } + override fun equals(other: Any?): Boolean { + if (other !is MediaInfo) { + return false + } + if (this === other) { + return true + } + return VideoPlayerHelperPigeonUtils.deepEquals(toList(), other.toList()) } + + override fun hashCode(): Int = toList().hashCode() } /** Generated class from Pigeon that represents data sent in messages. */ -data class PlayableData( - val currentItem: SimpleItemModel, - val description: String, - val startPosition: Long, - val defaultAudioTrack: Long, - val audioTracks: List, - val defaultSubtrack: Long, - val subtitleTracks: List, - val trickPlayModel: TrickPlayModel? = null, - val chapters: List, - val segments: List, - val previousVideo: SimpleItemModel? = null, - val nextVideo: SimpleItemModel? = null, - val mediaInfo: MediaInfo, - val url: String -) { - companion object { - fun fromList(pigeonVar_list: List): PlayableData { - val currentItem = pigeonVar_list[0] as SimpleItemModel - val description = pigeonVar_list[1] as String - val startPosition = pigeonVar_list[2] as Long - val defaultAudioTrack = pigeonVar_list[3] as Long - val audioTracks = pigeonVar_list[4] as List - val defaultSubtrack = pigeonVar_list[5] as Long - val subtitleTracks = pigeonVar_list[6] as List - val trickPlayModel = pigeonVar_list[7] as TrickPlayModel? - val chapters = pigeonVar_list[8] as List - val segments = pigeonVar_list[9] as List - val previousVideo = pigeonVar_list[10] as SimpleItemModel? - val nextVideo = pigeonVar_list[11] as SimpleItemModel? - val mediaInfo = pigeonVar_list[12] as MediaInfo - val url = pigeonVar_list[13] as String - return PlayableData( - currentItem, - description, - startPosition, - defaultAudioTrack, - audioTracks, - defaultSubtrack, - subtitleTracks, - trickPlayModel, - chapters, - segments, - previousVideo, - nextVideo, - mediaInfo, - url - ) - } - } - - fun toList(): List { - return listOf( - currentItem, - description, - startPosition, - defaultAudioTrack, - audioTracks, - defaultSubtrack, - subtitleTracks, - trickPlayModel, - chapters, - segments, - previousVideo, - nextVideo, - mediaInfo, - url, - ) - } - - override fun equals(other: Any?): Boolean { - if (other !is PlayableData) { - return false - } - if (this === other) { - return true - } - return VideoPlayerHelperPigeonUtils.deepEquals(toList(), other.toList()) - } - - override fun hashCode(): Int = toList().hashCode() +data class PlayableData ( + val currentItem: SimpleItemModel, + val description: String, + val startPosition: Long, + val defaultAudioTrack: Long, + val audioTracks: List, + val defaultSubtrack: Long, + val subtitleTracks: List, + val trickPlayModel: TrickPlayModel? = null, + val chapters: List, + val segments: List, + val previousVideo: SimpleItemModel? = null, + val nextVideo: SimpleItemModel? = null, + val mediaInfo: MediaInfo, + val url: String +) + { + companion object { + fun fromList(pigeonVar_list: List): PlayableData { + val currentItem = pigeonVar_list[0] as SimpleItemModel + val description = pigeonVar_list[1] as String + val startPosition = pigeonVar_list[2] as Long + val defaultAudioTrack = pigeonVar_list[3] as Long + val audioTracks = pigeonVar_list[4] as List + val defaultSubtrack = pigeonVar_list[5] as Long + val subtitleTracks = pigeonVar_list[6] as List + val trickPlayModel = pigeonVar_list[7] as TrickPlayModel? + val chapters = pigeonVar_list[8] as List + val segments = pigeonVar_list[9] as List + val previousVideo = pigeonVar_list[10] as SimpleItemModel? + val nextVideo = pigeonVar_list[11] as SimpleItemModel? + val mediaInfo = pigeonVar_list[12] as MediaInfo + val url = pigeonVar_list[13] as String + return PlayableData(currentItem, description, startPosition, defaultAudioTrack, audioTracks, defaultSubtrack, subtitleTracks, trickPlayModel, chapters, segments, previousVideo, nextVideo, mediaInfo, url) + } + } + fun toList(): List { + return listOf( + currentItem, + description, + startPosition, + defaultAudioTrack, + audioTracks, + defaultSubtrack, + subtitleTracks, + trickPlayModel, + chapters, + segments, + previousVideo, + nextVideo, + mediaInfo, + url, + ) + } + override fun equals(other: Any?): Boolean { + if (other !is PlayableData) { + return false + } + if (this === other) { + return true + } + return VideoPlayerHelperPigeonUtils.deepEquals(toList(), other.toList()) } + + override fun hashCode(): Int = toList().hashCode() } /** Generated class from Pigeon that represents data sent in messages. */ -data class MediaSegment( - val type: MediaSegmentType, - val name: String, - val start: Long, - val end: Long -) { - companion object { - fun fromList(pigeonVar_list: List): MediaSegment { - val type = pigeonVar_list[0] as MediaSegmentType - val name = pigeonVar_list[1] as String - val start = pigeonVar_list[2] as Long - val end = pigeonVar_list[3] as Long - return MediaSegment(type, name, start, end) - } - } - - fun toList(): List { - return listOf( - type, - name, - start, - end, - ) - } - - override fun equals(other: Any?): Boolean { - if (other !is MediaSegment) { - return false - } - if (this === other) { - return true - } - return VideoPlayerHelperPigeonUtils.deepEquals(toList(), other.toList()) - } - - override fun hashCode(): Int = toList().hashCode() +data class MediaSegment ( + val type: MediaSegmentType, + val name: String, + val start: Long, + val end: Long +) + { + companion object { + fun fromList(pigeonVar_list: List): MediaSegment { + val type = pigeonVar_list[0] as MediaSegmentType + val name = pigeonVar_list[1] as String + val start = pigeonVar_list[2] as Long + val end = pigeonVar_list[3] as Long + return MediaSegment(type, name, start, end) + } + } + fun toList(): List { + return listOf( + type, + name, + start, + end, + ) + } + override fun equals(other: Any?): Boolean { + if (other !is MediaSegment) { + return false + } + if (this === other) { + return true + } + return VideoPlayerHelperPigeonUtils.deepEquals(toList(), other.toList()) } + + override fun hashCode(): Int = toList().hashCode() } /** Generated class from Pigeon that represents data sent in messages. */ -data class AudioTrack( - val name: String, - val languageCode: String, - val codec: String, - val index: Long, - val external: Boolean, - val url: String? = null -) { - companion object { - fun fromList(pigeonVar_list: List): AudioTrack { - val name = pigeonVar_list[0] as String - val languageCode = pigeonVar_list[1] as String - val codec = pigeonVar_list[2] as String - val index = pigeonVar_list[3] as Long - val external = pigeonVar_list[4] as Boolean - val url = pigeonVar_list[5] as String? - return AudioTrack(name, languageCode, codec, index, external, url) - } - } - - fun toList(): List { - return listOf( - name, - languageCode, - codec, - index, - external, - url, - ) - } - - override fun equals(other: Any?): Boolean { - if (other !is AudioTrack) { - return false - } - if (this === other) { - return true - } - return VideoPlayerHelperPigeonUtils.deepEquals(toList(), other.toList()) - } - - override fun hashCode(): Int = toList().hashCode() +data class AudioTrack ( + val name: String, + val languageCode: String, + val codec: String, + val index: Long, + val external: Boolean, + val url: String? = null +) + { + companion object { + fun fromList(pigeonVar_list: List): AudioTrack { + val name = pigeonVar_list[0] as String + val languageCode = pigeonVar_list[1] as String + val codec = pigeonVar_list[2] as String + val index = pigeonVar_list[3] as Long + val external = pigeonVar_list[4] as Boolean + val url = pigeonVar_list[5] as String? + return AudioTrack(name, languageCode, codec, index, external, url) + } + } + fun toList(): List { + return listOf( + name, + languageCode, + codec, + index, + external, + url, + ) + } + override fun equals(other: Any?): Boolean { + if (other !is AudioTrack) { + return false + } + if (this === other) { + return true + } + return VideoPlayerHelperPigeonUtils.deepEquals(toList(), other.toList()) } + + override fun hashCode(): Int = toList().hashCode() } /** Generated class from Pigeon that represents data sent in messages. */ -data class SubtitleTrack( - val name: String, - val languageCode: String, - val codec: String, - val index: Long, - val external: Boolean, - val url: String? = null -) { - companion object { - fun fromList(pigeonVar_list: List): SubtitleTrack { - val name = pigeonVar_list[0] as String - val languageCode = pigeonVar_list[1] as String - val codec = pigeonVar_list[2] as String - val index = pigeonVar_list[3] as Long - val external = pigeonVar_list[4] as Boolean - val url = pigeonVar_list[5] as String? - return SubtitleTrack(name, languageCode, codec, index, external, url) - } - } - - fun toList(): List { - return listOf( - name, - languageCode, - codec, - index, - external, - url, - ) - } - - override fun equals(other: Any?): Boolean { - if (other !is SubtitleTrack) { - return false - } - if (this === other) { - return true - } - return VideoPlayerHelperPigeonUtils.deepEquals(toList(), other.toList()) - } - - override fun hashCode(): Int = toList().hashCode() +data class SubtitleTrack ( + val name: String, + val languageCode: String, + val codec: String, + val index: Long, + val external: Boolean, + val url: String? = null +) + { + companion object { + fun fromList(pigeonVar_list: List): SubtitleTrack { + val name = pigeonVar_list[0] as String + val languageCode = pigeonVar_list[1] as String + val codec = pigeonVar_list[2] as String + val index = pigeonVar_list[3] as Long + val external = pigeonVar_list[4] as Boolean + val url = pigeonVar_list[5] as String? + return SubtitleTrack(name, languageCode, codec, index, external, url) + } + } + fun toList(): List { + return listOf( + name, + languageCode, + codec, + index, + external, + url, + ) + } + override fun equals(other: Any?): Boolean { + if (other !is SubtitleTrack) { + return false + } + if (this === other) { + return true + } + return VideoPlayerHelperPigeonUtils.deepEquals(toList(), other.toList()) } + + override fun hashCode(): Int = toList().hashCode() } /** Generated class from Pigeon that represents data sent in messages. */ -data class Chapter( - val name: String, - val url: String, - val time: Long -) { - companion object { - fun fromList(pigeonVar_list: List): Chapter { - val name = pigeonVar_list[0] as String - val url = pigeonVar_list[1] as String - val time = pigeonVar_list[2] as Long - return Chapter(name, url, time) - } - } - - fun toList(): List { - return listOf( - name, - url, - time, - ) - } - - override fun equals(other: Any?): Boolean { - if (other !is Chapter) { - return false - } - if (this === other) { - return true - } - return VideoPlayerHelperPigeonUtils.deepEquals(toList(), other.toList()) - } - - override fun hashCode(): Int = toList().hashCode() +data class Chapter ( + val name: String, + val url: String, + val time: Long +) + { + companion object { + fun fromList(pigeonVar_list: List): Chapter { + val name = pigeonVar_list[0] as String + val url = pigeonVar_list[1] as String + val time = pigeonVar_list[2] as Long + return Chapter(name, url, time) + } + } + fun toList(): List { + return listOf( + name, + url, + time, + ) + } + override fun equals(other: Any?): Boolean { + if (other !is Chapter) { + return false + } + if (this === other) { + return true + } + return VideoPlayerHelperPigeonUtils.deepEquals(toList(), other.toList()) } + + override fun hashCode(): Int = toList().hashCode() } /** Generated class from Pigeon that represents data sent in messages. */ -data class TrickPlayModel( - val width: Long, - val height: Long, - val tileWidth: Long, - val tileHeight: Long, - val thumbnailCount: Long, - val interval: Long, - val images: List -) { - companion object { - fun fromList(pigeonVar_list: List): TrickPlayModel { - val width = pigeonVar_list[0] as Long - val height = pigeonVar_list[1] as Long - val tileWidth = pigeonVar_list[2] as Long - val tileHeight = pigeonVar_list[3] as Long - val thumbnailCount = pigeonVar_list[4] as Long - val interval = pigeonVar_list[5] as Long - val images = pigeonVar_list[6] as List - return TrickPlayModel( - width, - height, - tileWidth, - tileHeight, - thumbnailCount, - interval, - images - ) - } - } - - fun toList(): List { - return listOf( - width, - height, - tileWidth, - tileHeight, - thumbnailCount, - interval, - images, - ) - } - - override fun equals(other: Any?): Boolean { - if (other !is TrickPlayModel) { - return false - } - if (this === other) { - return true - } - return VideoPlayerHelperPigeonUtils.deepEquals(toList(), other.toList()) - } - - override fun hashCode(): Int = toList().hashCode() +data class TrickPlayModel ( + val width: Long, + val height: Long, + val tileWidth: Long, + val tileHeight: Long, + val thumbnailCount: Long, + val interval: Long, + val images: List +) + { + companion object { + fun fromList(pigeonVar_list: List): TrickPlayModel { + val width = pigeonVar_list[0] as Long + val height = pigeonVar_list[1] as Long + val tileWidth = pigeonVar_list[2] as Long + val tileHeight = pigeonVar_list[3] as Long + val thumbnailCount = pigeonVar_list[4] as Long + val interval = pigeonVar_list[5] as Long + val images = pigeonVar_list[6] as List + return TrickPlayModel(width, height, tileWidth, tileHeight, thumbnailCount, interval, images) + } + } + fun toList(): List { + return listOf( + width, + height, + tileWidth, + tileHeight, + thumbnailCount, + interval, + images, + ) + } + override fun equals(other: Any?): Boolean { + if (other !is TrickPlayModel) { + return false + } + if (this === other) { + return true + } + return VideoPlayerHelperPigeonUtils.deepEquals(toList(), other.toList()) } + + override fun hashCode(): Int = toList().hashCode() } /** Generated class from Pigeon that represents data sent in messages. */ -data class StartResult( - val resultValue: String? = null -) { - companion object { - fun fromList(pigeonVar_list: List): StartResult { - val resultValue = pigeonVar_list[0] as String? - return StartResult(resultValue) - } - } - - fun toList(): List { - return listOf( - resultValue, - ) - } - - override fun equals(other: Any?): Boolean { - if (other !is StartResult) { - return false - } - if (this === other) { - return true - } - return VideoPlayerHelperPigeonUtils.deepEquals(toList(), other.toList()) - } - - override fun hashCode(): Int = toList().hashCode() +data class StartResult ( + val resultValue: String? = null +) + { + companion object { + fun fromList(pigeonVar_list: List): StartResult { + val resultValue = pigeonVar_list[0] as String? + return StartResult(resultValue) + } + } + fun toList(): List { + return listOf( + resultValue, + ) + } + override fun equals(other: Any?): Boolean { + if (other !is StartResult) { + return false + } + if (this === other) { + return true + } + return VideoPlayerHelperPigeonUtils.deepEquals(toList(), other.toList()) } + + override fun hashCode(): Int = toList().hashCode() } /** Generated class from Pigeon that represents data sent in messages. */ -data class PlaybackState( - val position: Long, - val buffered: Long, - val duration: Long, - val playing: Boolean, - val buffering: Boolean, - val completed: Boolean, - val failed: Boolean, - /** When set, indicates who caused this state update (for SyncPlay inference). */ - val changeSource: PlaybackChangeSource? = null -) { - companion object { - fun fromList(pigeonVar_list: List): PlaybackState { - val position = pigeonVar_list[0] as Long - val buffered = pigeonVar_list[1] as Long - val duration = pigeonVar_list[2] as Long - val playing = pigeonVar_list[3] as Boolean - val buffering = pigeonVar_list[4] as Boolean - val completed = pigeonVar_list[5] as Boolean - val failed = pigeonVar_list[6] as Boolean - val changeSource = pigeonVar_list[7] as PlaybackChangeSource? - return PlaybackState( - position, - buffered, - duration, - playing, - buffering, - completed, - failed, - changeSource - ) - } - } - - fun toList(): List { - return listOf( - position, - buffered, - duration, - playing, - buffering, - completed, - failed, - changeSource, - ) - } - - override fun equals(other: Any?): Boolean { - if (other !is PlaybackState) { - return false - } - if (this === other) { - return true - } - return VideoPlayerHelperPigeonUtils.deepEquals(toList(), other.toList()) - } - - override fun hashCode(): Int = toList().hashCode() +data class PlaybackState ( + val position: Long, + val buffered: Long, + val duration: Long, + val playing: Boolean, + val buffering: Boolean, + val completed: Boolean, + val failed: Boolean, + /** When set, indicates who caused this state update (for SyncPlay inference). */ + val changeSource: PlaybackChangeSource? = null +) + { + companion object { + fun fromList(pigeonVar_list: List): PlaybackState { + val position = pigeonVar_list[0] as Long + val buffered = pigeonVar_list[1] as Long + val duration = pigeonVar_list[2] as Long + val playing = pigeonVar_list[3] as Boolean + val buffering = pigeonVar_list[4] as Boolean + val completed = pigeonVar_list[5] as Boolean + val failed = pigeonVar_list[6] as Boolean + val changeSource = pigeonVar_list[7] as PlaybackChangeSource? + return PlaybackState(position, buffered, duration, playing, buffering, completed, failed, changeSource) + } + } + fun toList(): List { + return listOf( + position, + buffered, + duration, + playing, + buffering, + completed, + failed, + changeSource, + ) + } + override fun equals(other: Any?): Boolean { + if (other !is PlaybackState) { + return false + } + if (this === other) { + return true + } + return VideoPlayerHelperPigeonUtils.deepEquals(toList(), other.toList()) } + + override fun hashCode(): Int = toList().hashCode() } /** Generated class from Pigeon that represents data sent in messages. */ -data class SubtitleSettings( - val fontSize: Double, - val fontWeight: Long, - val verticalOffset: Double, - val color: Long, - val outlineColor: Long, - val outlineSize: Double, - val backgroundColor: Long, - val shadow: Double -) { - companion object { - fun fromList(pigeonVar_list: List): SubtitleSettings { - val fontSize = pigeonVar_list[0] as Double - val fontWeight = pigeonVar_list[1] as Long - val verticalOffset = pigeonVar_list[2] as Double - val color = pigeonVar_list[3] as Long - val outlineColor = pigeonVar_list[4] as Long - val outlineSize = pigeonVar_list[5] as Double - val backgroundColor = pigeonVar_list[6] as Long - val shadow = pigeonVar_list[7] as Double - return SubtitleSettings( - fontSize, - fontWeight, - verticalOffset, - color, - outlineColor, - outlineSize, - backgroundColor, - shadow - ) - } - } - - fun toList(): List { - return listOf( - fontSize, - fontWeight, - verticalOffset, - color, - outlineColor, - outlineSize, - backgroundColor, - shadow, - ) - } - - override fun equals(other: Any?): Boolean { - if (other !is SubtitleSettings) { - return false - } - if (this === other) { - return true - } - return VideoPlayerHelperPigeonUtils.deepEquals(toList(), other.toList()) - } - - override fun hashCode(): Int = toList().hashCode() +data class SubtitleSettings ( + val fontSize: Double, + val fontWeight: Long, + val verticalOffset: Double, + val color: Long, + val outlineColor: Long, + val outlineSize: Double, + val backgroundColor: Long, + val shadow: Double +) + { + companion object { + fun fromList(pigeonVar_list: List): SubtitleSettings { + val fontSize = pigeonVar_list[0] as Double + val fontWeight = pigeonVar_list[1] as Long + val verticalOffset = pigeonVar_list[2] as Double + val color = pigeonVar_list[3] as Long + val outlineColor = pigeonVar_list[4] as Long + val outlineSize = pigeonVar_list[5] as Double + val backgroundColor = pigeonVar_list[6] as Long + val shadow = pigeonVar_list[7] as Double + return SubtitleSettings(fontSize, fontWeight, verticalOffset, color, outlineColor, outlineSize, backgroundColor, shadow) + } + } + fun toList(): List { + return listOf( + fontSize, + fontWeight, + verticalOffset, + color, + outlineColor, + outlineSize, + backgroundColor, + shadow, + ) + } + override fun equals(other: Any?): Boolean { + if (other !is SubtitleSettings) { + return false + } + if (this === other) { + return true + } + return VideoPlayerHelperPigeonUtils.deepEquals(toList(), other.toList()) } + + override fun hashCode(): Int = toList().hashCode() } /** Generated class from Pigeon that represents data sent in messages. */ -data class TVGuideModel( - val channels: List, - val startMs: Long, - val endMs: Long, - val currentProgram: GuideProgram? = null -) { - companion object { - fun fromList(pigeonVar_list: List): TVGuideModel { - val channels = pigeonVar_list[0] as List - val startMs = pigeonVar_list[1] as Long - val endMs = pigeonVar_list[2] as Long - val currentProgram = pigeonVar_list[3] as GuideProgram? - return TVGuideModel(channels, startMs, endMs, currentProgram) - } - } - - fun toList(): List { - return listOf( - channels, - startMs, - endMs, - currentProgram, - ) - } - - override fun equals(other: Any?): Boolean { - if (other !is TVGuideModel) { - return false - } - if (this === other) { - return true - } - return VideoPlayerHelperPigeonUtils.deepEquals(toList(), other.toList()) - } - - override fun hashCode(): Int = toList().hashCode() +data class TVGuideModel ( + val channels: List, + val startMs: Long, + val endMs: Long, + val currentProgram: GuideProgram? = null +) + { + companion object { + fun fromList(pigeonVar_list: List): TVGuideModel { + val channels = pigeonVar_list[0] as List + val startMs = pigeonVar_list[1] as Long + val endMs = pigeonVar_list[2] as Long + val currentProgram = pigeonVar_list[3] as GuideProgram? + return TVGuideModel(channels, startMs, endMs, currentProgram) + } + } + fun toList(): List { + return listOf( + channels, + startMs, + endMs, + currentProgram, + ) + } + override fun equals(other: Any?): Boolean { + if (other !is TVGuideModel) { + return false + } + if (this === other) { + return true + } + return VideoPlayerHelperPigeonUtils.deepEquals(toList(), other.toList()) } + + override fun hashCode(): Int = toList().hashCode() } /** Generated class from Pigeon that represents data sent in messages. */ -data class GuideChannel( - val channelId: String, - val name: String, - val logoUrl: String? = null, - val programs: List, - val programsLoaded: Boolean -) { - companion object { - fun fromList(pigeonVar_list: List): GuideChannel { - val channelId = pigeonVar_list[0] as String - val name = pigeonVar_list[1] as String - val logoUrl = pigeonVar_list[2] as String? - val programs = pigeonVar_list[3] as List - val programsLoaded = pigeonVar_list[4] as Boolean - return GuideChannel(channelId, name, logoUrl, programs, programsLoaded) - } - } - - fun toList(): List { - return listOf( - channelId, - name, - logoUrl, - programs, - programsLoaded, - ) - } - - override fun equals(other: Any?): Boolean { - if (other !is GuideChannel) { - return false - } - if (this === other) { - return true - } - return VideoPlayerHelperPigeonUtils.deepEquals(toList(), other.toList()) - } - - override fun hashCode(): Int = toList().hashCode() +data class GuideChannel ( + val channelId: String, + val name: String, + val logoUrl: String? = null, + val programs: List, + val programsLoaded: Boolean +) + { + companion object { + fun fromList(pigeonVar_list: List): GuideChannel { + val channelId = pigeonVar_list[0] as String + val name = pigeonVar_list[1] as String + val logoUrl = pigeonVar_list[2] as String? + val programs = pigeonVar_list[3] as List + val programsLoaded = pigeonVar_list[4] as Boolean + return GuideChannel(channelId, name, logoUrl, programs, programsLoaded) + } + } + fun toList(): List { + return listOf( + channelId, + name, + logoUrl, + programs, + programsLoaded, + ) + } + override fun equals(other: Any?): Boolean { + if (other !is GuideChannel) { + return false + } + if (this === other) { + return true + } + return VideoPlayerHelperPigeonUtils.deepEquals(toList(), other.toList()) } + + override fun hashCode(): Int = toList().hashCode() } /** Generated class from Pigeon that represents data sent in messages. */ -data class GuideProgram( - val id: String, - val channelId: String, - val name: String, - val startMs: Long, - val endMs: Long, - val primaryPoster: String? = null, - val overview: String? = null, - val subTitle: String? = null -) { - companion object { - fun fromList(pigeonVar_list: List): GuideProgram { - val id = pigeonVar_list[0] as String - val channelId = pigeonVar_list[1] as String - val name = pigeonVar_list[2] as String - val startMs = pigeonVar_list[3] as Long - val endMs = pigeonVar_list[4] as Long - val primaryPoster = pigeonVar_list[5] as String? - val overview = pigeonVar_list[6] as String? - val subTitle = pigeonVar_list[7] as String? - return GuideProgram( - id, - channelId, - name, - startMs, - endMs, - primaryPoster, - overview, - subTitle - ) - } - } - - fun toList(): List { - return listOf( - id, - channelId, - name, - startMs, - endMs, - primaryPoster, - overview, - subTitle, - ) - } - - override fun equals(other: Any?): Boolean { - if (other !is GuideProgram) { - return false - } - if (this === other) { - return true - } - return VideoPlayerHelperPigeonUtils.deepEquals(toList(), other.toList()) - } - - override fun hashCode(): Int = toList().hashCode() +data class GuideProgram ( + val id: String, + val channelId: String, + val name: String, + val startMs: Long, + val endMs: Long, + val primaryPoster: String? = null, + val overview: String? = null, + val subTitle: String? = null +) + { + companion object { + fun fromList(pigeonVar_list: List): GuideProgram { + val id = pigeonVar_list[0] as String + val channelId = pigeonVar_list[1] as String + val name = pigeonVar_list[2] as String + val startMs = pigeonVar_list[3] as Long + val endMs = pigeonVar_list[4] as Long + val primaryPoster = pigeonVar_list[5] as String? + val overview = pigeonVar_list[6] as String? + val subTitle = pigeonVar_list[7] as String? + return GuideProgram(id, channelId, name, startMs, endMs, primaryPoster, overview, subTitle) + } + } + fun toList(): List { + return listOf( + id, + channelId, + name, + startMs, + endMs, + primaryPoster, + overview, + subTitle, + ) + } + override fun equals(other: Any?): Boolean { + if (other !is GuideProgram) { + return false + } + if (this === other) { + return true + } + return VideoPlayerHelperPigeonUtils.deepEquals(toList(), other.toList()) } + + override fun hashCode(): Int = toList().hashCode() } - private open class VideoPlayerHelperPigeonCodec : StandardMessageCodec() { - override fun readValueOfType(type: Byte, buffer: ByteBuffer): Any? { - return when (type) { - 129.toByte() -> { - return (readValue(buffer) as Long?)?.let { - PlaybackType.ofRaw(it.toInt()) - } - } - - 130.toByte() -> { - return (readValue(buffer) as Long?)?.let { - SyncPlayCommandType.ofRaw(it.toInt()) - } - } - - 131.toByte() -> { - return (readValue(buffer) as Long?)?.let { - MediaSegmentType.ofRaw(it.toInt()) - } - } - - 132.toByte() -> { - return (readValue(buffer) as Long?)?.let { - PlaybackChangeSource.ofRaw(it.toInt()) - } - } - - 133.toByte() -> { - return (readValue(buffer) as? List)?.let { - SimpleItemModel.fromList(it) - } - } - - 134.toByte() -> { - return (readValue(buffer) as? List)?.let { - MediaInfo.fromList(it) - } - } - - 135.toByte() -> { - return (readValue(buffer) as? List)?.let { - PlayableData.fromList(it) - } - } - - 136.toByte() -> { - return (readValue(buffer) as? List)?.let { - MediaSegment.fromList(it) - } - } - - 137.toByte() -> { - return (readValue(buffer) as? List)?.let { - AudioTrack.fromList(it) - } - } - - 138.toByte() -> { - return (readValue(buffer) as? List)?.let { - SubtitleTrack.fromList(it) - } - } - - 139.toByte() -> { - return (readValue(buffer) as? List)?.let { - Chapter.fromList(it) - } - } - - 140.toByte() -> { - return (readValue(buffer) as? List)?.let { - TrickPlayModel.fromList(it) - } - } - - 141.toByte() -> { - return (readValue(buffer) as? List)?.let { - StartResult.fromList(it) - } - } - - 142.toByte() -> { - return (readValue(buffer) as? List)?.let { - PlaybackState.fromList(it) - } - } - - 143.toByte() -> { - return (readValue(buffer) as? List)?.let { - SubtitleSettings.fromList(it) - } - } - - 144.toByte() -> { - return (readValue(buffer) as? List)?.let { - TVGuideModel.fromList(it) - } - } - - 145.toByte() -> { - return (readValue(buffer) as? List)?.let { - GuideChannel.fromList(it) - } - } - - 146.toByte() -> { - return (readValue(buffer) as? List)?.let { - GuideProgram.fromList(it) - } - } - - else -> super.readValueOfType(type, buffer) - } - } - - override fun writeValue(stream: ByteArrayOutputStream, value: Any?) { - when (value) { - is PlaybackType -> { - stream.write(129) - writeValue(stream, value.raw.toLong()) - } - - is SyncPlayCommandType -> { - stream.write(130) - writeValue(stream, value.raw.toLong()) - } - - is MediaSegmentType -> { - stream.write(131) - writeValue(stream, value.raw.toLong()) - } - - is PlaybackChangeSource -> { - stream.write(132) - writeValue(stream, value.raw.toLong()) - } - - is SimpleItemModel -> { - stream.write(133) - writeValue(stream, value.toList()) - } - - is MediaInfo -> { - stream.write(134) - writeValue(stream, value.toList()) - } - - is PlayableData -> { - stream.write(135) - writeValue(stream, value.toList()) - } - - is MediaSegment -> { - stream.write(136) - writeValue(stream, value.toList()) - } - - is AudioTrack -> { - stream.write(137) - writeValue(stream, value.toList()) - } - - is SubtitleTrack -> { - stream.write(138) - writeValue(stream, value.toList()) - } - - is Chapter -> { - stream.write(139) - writeValue(stream, value.toList()) - } - - is TrickPlayModel -> { - stream.write(140) - writeValue(stream, value.toList()) - } - - is StartResult -> { - stream.write(141) - writeValue(stream, value.toList()) - } - - is PlaybackState -> { - stream.write(142) - writeValue(stream, value.toList()) - } - - is SubtitleSettings -> { - stream.write(143) - writeValue(stream, value.toList()) - } - - is TVGuideModel -> { - stream.write(144) - writeValue(stream, value.toList()) - } - - is GuideChannel -> { - stream.write(145) - writeValue(stream, value.toList()) - } - - is GuideProgram -> { - stream.write(146) - writeValue(stream, value.toList()) - } - - else -> super.writeValue(stream, value) - } - } + override fun readValueOfType(type: Byte, buffer: ByteBuffer): Any? { + return when (type) { + 129.toByte() -> { + return (readValue(buffer) as Long?)?.let { + PlaybackType.ofRaw(it.toInt()) + } + } + 130.toByte() -> { + return (readValue(buffer) as Long?)?.let { + SyncPlayCommandType.ofRaw(it.toInt()) + } + } + 131.toByte() -> { + return (readValue(buffer) as Long?)?.let { + MediaSegmentType.ofRaw(it.toInt()) + } + } + 132.toByte() -> { + return (readValue(buffer) as Long?)?.let { + PlaybackChangeSource.ofRaw(it.toInt()) + } + } + 133.toByte() -> { + return (readValue(buffer) as? List)?.let { + SimpleItemModel.fromList(it) + } + } + 134.toByte() -> { + return (readValue(buffer) as? List)?.let { + MediaInfo.fromList(it) + } + } + 135.toByte() -> { + return (readValue(buffer) as? List)?.let { + PlayableData.fromList(it) + } + } + 136.toByte() -> { + return (readValue(buffer) as? List)?.let { + MediaSegment.fromList(it) + } + } + 137.toByte() -> { + return (readValue(buffer) as? List)?.let { + AudioTrack.fromList(it) + } + } + 138.toByte() -> { + return (readValue(buffer) as? List)?.let { + SubtitleTrack.fromList(it) + } + } + 139.toByte() -> { + return (readValue(buffer) as? List)?.let { + Chapter.fromList(it) + } + } + 140.toByte() -> { + return (readValue(buffer) as? List)?.let { + TrickPlayModel.fromList(it) + } + } + 141.toByte() -> { + return (readValue(buffer) as? List)?.let { + StartResult.fromList(it) + } + } + 142.toByte() -> { + return (readValue(buffer) as? List)?.let { + PlaybackState.fromList(it) + } + } + 143.toByte() -> { + return (readValue(buffer) as? List)?.let { + SubtitleSettings.fromList(it) + } + } + 144.toByte() -> { + return (readValue(buffer) as? List)?.let { + TVGuideModel.fromList(it) + } + } + 145.toByte() -> { + return (readValue(buffer) as? List)?.let { + GuideChannel.fromList(it) + } + } + 146.toByte() -> { + return (readValue(buffer) as? List)?.let { + GuideProgram.fromList(it) + } + } + else -> super.readValueOfType(type, buffer) + } + } + override fun writeValue(stream: ByteArrayOutputStream, value: Any?) { + when (value) { + is PlaybackType -> { + stream.write(129) + writeValue(stream, value.raw.toLong()) + } + is SyncPlayCommandType -> { + stream.write(130) + writeValue(stream, value.raw.toLong()) + } + is MediaSegmentType -> { + stream.write(131) + writeValue(stream, value.raw.toLong()) + } + is PlaybackChangeSource -> { + stream.write(132) + writeValue(stream, value.raw.toLong()) + } + is SimpleItemModel -> { + stream.write(133) + writeValue(stream, value.toList()) + } + is MediaInfo -> { + stream.write(134) + writeValue(stream, value.toList()) + } + is PlayableData -> { + stream.write(135) + writeValue(stream, value.toList()) + } + is MediaSegment -> { + stream.write(136) + writeValue(stream, value.toList()) + } + is AudioTrack -> { + stream.write(137) + writeValue(stream, value.toList()) + } + is SubtitleTrack -> { + stream.write(138) + writeValue(stream, value.toList()) + } + is Chapter -> { + stream.write(139) + writeValue(stream, value.toList()) + } + is TrickPlayModel -> { + stream.write(140) + writeValue(stream, value.toList()) + } + is StartResult -> { + stream.write(141) + writeValue(stream, value.toList()) + } + is PlaybackState -> { + stream.write(142) + writeValue(stream, value.toList()) + } + is SubtitleSettings -> { + stream.write(143) + writeValue(stream, value.toList()) + } + is TVGuideModel -> { + stream.write(144) + writeValue(stream, value.toList()) + } + is GuideChannel -> { + stream.write(145) + writeValue(stream, value.toList()) + } + is GuideProgram -> { + stream.write(146) + writeValue(stream, value.toList()) + } + else -> super.writeValue(stream, value) + } + } } /** Generated interface from Pigeon that represents a handler of messages from Flutter. */ interface NativeVideoActivity { - fun launchActivity(callback: (Result) -> Unit) - fun disposeActivity() - fun isLeanBackEnabled(): Boolean - - companion object { - /** The codec used by NativeVideoActivity. */ - val codec: MessageCodec by lazy { - VideoPlayerHelperPigeonCodec() - } - - /** Sets up an instance of `NativeVideoActivity` to handle messages through the `binaryMessenger`. */ - @JvmOverloads - fun setUp( - binaryMessenger: BinaryMessenger, - api: NativeVideoActivity?, - messageChannelSuffix: String = "" - ) { - val separatedMessageChannelSuffix = - if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" - run { - val channel = BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.nl_jknaapen_fladder.video.NativeVideoActivity.launchActivity$separatedMessageChannelSuffix", - codec - ) - if (api != null) { - channel.setMessageHandler { _, reply -> - api.launchActivity { result: Result -> - val error = result.exceptionOrNull() - if (error != null) { - reply.reply(VideoPlayerHelperPigeonUtils.wrapError(error)) - } else { - val data = result.getOrNull() - reply.reply(VideoPlayerHelperPigeonUtils.wrapResult(data)) - } - } - } - } else { - channel.setMessageHandler(null) - } + fun launchActivity(callback: (Result) -> Unit) + fun disposeActivity() + fun isLeanBackEnabled(): Boolean + + companion object { + /** The codec used by NativeVideoActivity. */ + val codec: MessageCodec by lazy { + VideoPlayerHelperPigeonCodec() + } + /** Sets up an instance of `NativeVideoActivity` to handle messages through the `binaryMessenger`. */ + @JvmOverloads + fun setUp(binaryMessenger: BinaryMessenger, api: NativeVideoActivity?, messageChannelSuffix: String = "") { + val separatedMessageChannelSuffix = if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" + run { + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.nl_jknaapen_fladder.video.NativeVideoActivity.launchActivity$separatedMessageChannelSuffix", codec) + if (api != null) { + channel.setMessageHandler { _, reply -> + api.launchActivity{ result: Result -> + val error = result.exceptionOrNull() + if (error != null) { + reply.reply(VideoPlayerHelperPigeonUtils.wrapError(error)) + } else { + val data = result.getOrNull() + reply.reply(VideoPlayerHelperPigeonUtils.wrapResult(data)) + } } - run { - val channel = BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.nl_jknaapen_fladder.video.NativeVideoActivity.disposeActivity$separatedMessageChannelSuffix", - codec - ) - if (api != null) { - channel.setMessageHandler { _, reply -> - val wrapped: List = try { - api.disposeActivity() - listOf(null) - } catch (exception: Throwable) { - VideoPlayerHelperPigeonUtils.wrapError(exception) - } - reply.reply(wrapped) - } - } else { - channel.setMessageHandler(null) - } + } + } else { + channel.setMessageHandler(null) + } + } + run { + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.nl_jknaapen_fladder.video.NativeVideoActivity.disposeActivity$separatedMessageChannelSuffix", codec) + if (api != null) { + channel.setMessageHandler { _, reply -> + val wrapped: List = try { + api.disposeActivity() + listOf(null) + } catch (exception: Throwable) { + VideoPlayerHelperPigeonUtils.wrapError(exception) } - run { - val channel = BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.nl_jknaapen_fladder.video.NativeVideoActivity.isLeanBackEnabled$separatedMessageChannelSuffix", - codec - ) - if (api != null) { - channel.setMessageHandler { _, reply -> - val wrapped: List = try { - listOf(api.isLeanBackEnabled()) - } catch (exception: Throwable) { - VideoPlayerHelperPigeonUtils.wrapError(exception) - } - reply.reply(wrapped) - } - } else { - channel.setMessageHandler(null) - } + reply.reply(wrapped) + } + } else { + channel.setMessageHandler(null) + } + } + run { + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.nl_jknaapen_fladder.video.NativeVideoActivity.isLeanBackEnabled$separatedMessageChannelSuffix", codec) + if (api != null) { + channel.setMessageHandler { _, reply -> + val wrapped: List = try { + listOf(api.isLeanBackEnabled()) + } catch (exception: Throwable) { + VideoPlayerHelperPigeonUtils.wrapError(exception) } + reply.reply(wrapped) + } + } else { + channel.setMessageHandler(null) } + } } + } } - /** Generated interface from Pigeon that represents a handler of messages from Flutter. */ interface VideoPlayerApi { - fun sendPlayableModel(playableData: PlayableData, callback: (Result) -> Unit) - fun sendTVGuideModel(guide: TVGuideModel, callback: (Result) -> Unit) - fun open(url: String, play: Boolean, callback: (Result) -> Unit) - fun setLooping(looping: Boolean) - - /** Sets the volume, with 0.0 being muted and 1.0 being full volume. */ - fun setVolume(volume: Double) - - /** Sets the playback speed as a multiple of normal speed. */ - fun setPlaybackSpeed(speed: Double) - fun play() - - /** Pauses playback if the video is currently playing. */ - fun pause() - - /** Seeks to the given playback position, in milliseconds. */ - fun seekTo(position: Long) - fun stop() - fun setSubtitleSettings(settings: SubtitleSettings) - - /** - * Sets the SyncPlay command state for the native player overlay. - * [processing] indicates if a SyncPlay command is being processed. - * [commandType] is the type of command. - */ - fun setSyncPlayCommandState(processing: Boolean, commandType: SyncPlayCommandType) - - companion object { - /** The codec used by VideoPlayerApi. */ - val codec: MessageCodec by lazy { - VideoPlayerHelperPigeonCodec() - } - - /** Sets up an instance of `VideoPlayerApi` to handle messages through the `binaryMessenger`. */ - @JvmOverloads - fun setUp( - binaryMessenger: BinaryMessenger, - api: VideoPlayerApi?, - messageChannelSuffix: String = "" - ) { - val separatedMessageChannelSuffix = - if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" - run { - val channel = BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.nl_jknaapen_fladder.video.VideoPlayerApi.sendPlayableModel$separatedMessageChannelSuffix", - codec - ) - if (api != null) { - channel.setMessageHandler { message, reply -> - val args = message as List - val playableDataArg = args[0] as PlayableData - api.sendPlayableModel(playableDataArg) { result: Result -> - val error = result.exceptionOrNull() - if (error != null) { - reply.reply(VideoPlayerHelperPigeonUtils.wrapError(error)) - } else { - val data = result.getOrNull() - reply.reply(VideoPlayerHelperPigeonUtils.wrapResult(data)) - } - } - } - } else { - channel.setMessageHandler(null) - } + fun sendPlayableModel(playableData: PlayableData, callback: (Result) -> Unit) + fun sendTVGuideModel(guide: TVGuideModel, callback: (Result) -> Unit) + fun open(url: String, play: Boolean, callback: (Result) -> Unit) + fun setLooping(looping: Boolean) + /** Sets the volume, with 0.0 being muted and 1.0 being full volume. */ + fun setVolume(volume: Double) + /** Sets the playback speed as a multiple of normal speed. */ + fun setPlaybackSpeed(speed: Double) + fun play() + /** Pauses playback if the video is currently playing. */ + fun pause() + /** Seeks to the given playback position, in milliseconds. */ + fun seekTo(position: Long) + fun stop() + fun setSubtitleSettings(settings: SubtitleSettings) + /** + * Sets the SyncPlay command state for the native player overlay. + * [processing] indicates if a SyncPlay command is being processed. + * [commandType] is the type of command. + */ + fun setSyncPlayCommandState(processing: Boolean, commandType: SyncPlayCommandType) + + companion object { + /** The codec used by VideoPlayerApi. */ + val codec: MessageCodec by lazy { + VideoPlayerHelperPigeonCodec() + } + /** Sets up an instance of `VideoPlayerApi` to handle messages through the `binaryMessenger`. */ + @JvmOverloads + fun setUp(binaryMessenger: BinaryMessenger, api: VideoPlayerApi?, messageChannelSuffix: String = "") { + val separatedMessageChannelSuffix = if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" + run { + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.nl_jknaapen_fladder.video.VideoPlayerApi.sendPlayableModel$separatedMessageChannelSuffix", codec) + if (api != null) { + channel.setMessageHandler { message, reply -> + val args = message as List + val playableDataArg = args[0] as PlayableData + api.sendPlayableModel(playableDataArg) { result: Result -> + val error = result.exceptionOrNull() + if (error != null) { + reply.reply(VideoPlayerHelperPigeonUtils.wrapError(error)) + } else { + val data = result.getOrNull() + reply.reply(VideoPlayerHelperPigeonUtils.wrapResult(data)) + } } - run { - val channel = BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.nl_jknaapen_fladder.video.VideoPlayerApi.sendTVGuideModel$separatedMessageChannelSuffix", - codec - ) - if (api != null) { - channel.setMessageHandler { message, reply -> - val args = message as List - val guideArg = args[0] as TVGuideModel - api.sendTVGuideModel(guideArg) { result: Result -> - val error = result.exceptionOrNull() - if (error != null) { - reply.reply(VideoPlayerHelperPigeonUtils.wrapError(error)) - } else { - val data = result.getOrNull() - reply.reply(VideoPlayerHelperPigeonUtils.wrapResult(data)) - } - } - } - } else { - channel.setMessageHandler(null) - } + } + } else { + channel.setMessageHandler(null) + } + } + run { + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.nl_jknaapen_fladder.video.VideoPlayerApi.sendTVGuideModel$separatedMessageChannelSuffix", codec) + if (api != null) { + channel.setMessageHandler { message, reply -> + val args = message as List + val guideArg = args[0] as TVGuideModel + api.sendTVGuideModel(guideArg) { result: Result -> + val error = result.exceptionOrNull() + if (error != null) { + reply.reply(VideoPlayerHelperPigeonUtils.wrapError(error)) + } else { + val data = result.getOrNull() + reply.reply(VideoPlayerHelperPigeonUtils.wrapResult(data)) + } } - run { - val channel = BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.nl_jknaapen_fladder.video.VideoPlayerApi.open$separatedMessageChannelSuffix", - codec - ) - if (api != null) { - channel.setMessageHandler { message, reply -> - val args = message as List - val urlArg = args[0] as String - val playArg = args[1] as Boolean - api.open(urlArg, playArg) { result: Result -> - val error = result.exceptionOrNull() - if (error != null) { - reply.reply(VideoPlayerHelperPigeonUtils.wrapError(error)) - } else { - val data = result.getOrNull() - reply.reply(VideoPlayerHelperPigeonUtils.wrapResult(data)) - } - } - } - } else { - channel.setMessageHandler(null) - } + } + } else { + channel.setMessageHandler(null) + } + } + run { + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.nl_jknaapen_fladder.video.VideoPlayerApi.open$separatedMessageChannelSuffix", codec) + if (api != null) { + channel.setMessageHandler { message, reply -> + val args = message as List + val urlArg = args[0] as String + val playArg = args[1] as Boolean + api.open(urlArg, playArg) { result: Result -> + val error = result.exceptionOrNull() + if (error != null) { + reply.reply(VideoPlayerHelperPigeonUtils.wrapError(error)) + } else { + val data = result.getOrNull() + reply.reply(VideoPlayerHelperPigeonUtils.wrapResult(data)) + } } - run { - val channel = BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.nl_jknaapen_fladder.video.VideoPlayerApi.setLooping$separatedMessageChannelSuffix", - codec - ) - if (api != null) { - channel.setMessageHandler { message, reply -> - val args = message as List - val loopingArg = args[0] as Boolean - val wrapped: List = try { - api.setLooping(loopingArg) - listOf(null) - } catch (exception: Throwable) { - VideoPlayerHelperPigeonUtils.wrapError(exception) - } - reply.reply(wrapped) - } - } else { - channel.setMessageHandler(null) - } + } + } else { + channel.setMessageHandler(null) + } + } + run { + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.nl_jknaapen_fladder.video.VideoPlayerApi.setLooping$separatedMessageChannelSuffix", codec) + if (api != null) { + channel.setMessageHandler { message, reply -> + val args = message as List + val loopingArg = args[0] as Boolean + val wrapped: List = try { + api.setLooping(loopingArg) + listOf(null) + } catch (exception: Throwable) { + VideoPlayerHelperPigeonUtils.wrapError(exception) } - run { - val channel = BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.nl_jknaapen_fladder.video.VideoPlayerApi.setVolume$separatedMessageChannelSuffix", - codec - ) - if (api != null) { - channel.setMessageHandler { message, reply -> - val args = message as List - val volumeArg = args[0] as Double - val wrapped: List = try { - api.setVolume(volumeArg) - listOf(null) - } catch (exception: Throwable) { - VideoPlayerHelperPigeonUtils.wrapError(exception) - } - reply.reply(wrapped) - } - } else { - channel.setMessageHandler(null) - } + reply.reply(wrapped) + } + } else { + channel.setMessageHandler(null) + } + } + run { + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.nl_jknaapen_fladder.video.VideoPlayerApi.setVolume$separatedMessageChannelSuffix", codec) + if (api != null) { + channel.setMessageHandler { message, reply -> + val args = message as List + val volumeArg = args[0] as Double + val wrapped: List = try { + api.setVolume(volumeArg) + listOf(null) + } catch (exception: Throwable) { + VideoPlayerHelperPigeonUtils.wrapError(exception) } - run { - val channel = BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.nl_jknaapen_fladder.video.VideoPlayerApi.setPlaybackSpeed$separatedMessageChannelSuffix", - codec - ) - if (api != null) { - channel.setMessageHandler { message, reply -> - val args = message as List - val speedArg = args[0] as Double - val wrapped: List = try { - api.setPlaybackSpeed(speedArg) - listOf(null) - } catch (exception: Throwable) { - VideoPlayerHelperPigeonUtils.wrapError(exception) - } - reply.reply(wrapped) - } - } else { - channel.setMessageHandler(null) - } + reply.reply(wrapped) + } + } else { + channel.setMessageHandler(null) + } + } + run { + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.nl_jknaapen_fladder.video.VideoPlayerApi.setPlaybackSpeed$separatedMessageChannelSuffix", codec) + if (api != null) { + channel.setMessageHandler { message, reply -> + val args = message as List + val speedArg = args[0] as Double + val wrapped: List = try { + api.setPlaybackSpeed(speedArg) + listOf(null) + } catch (exception: Throwable) { + VideoPlayerHelperPigeonUtils.wrapError(exception) } - run { - val channel = BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.nl_jknaapen_fladder.video.VideoPlayerApi.play$separatedMessageChannelSuffix", - codec - ) - if (api != null) { - channel.setMessageHandler { _, reply -> - val wrapped: List = try { - api.play() - listOf(null) - } catch (exception: Throwable) { - VideoPlayerHelperPigeonUtils.wrapError(exception) - } - reply.reply(wrapped) - } - } else { - channel.setMessageHandler(null) - } + reply.reply(wrapped) + } + } else { + channel.setMessageHandler(null) + } + } + run { + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.nl_jknaapen_fladder.video.VideoPlayerApi.play$separatedMessageChannelSuffix", codec) + if (api != null) { + channel.setMessageHandler { _, reply -> + val wrapped: List = try { + api.play() + listOf(null) + } catch (exception: Throwable) { + VideoPlayerHelperPigeonUtils.wrapError(exception) } - run { - val channel = BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.nl_jknaapen_fladder.video.VideoPlayerApi.pause$separatedMessageChannelSuffix", - codec - ) - if (api != null) { - channel.setMessageHandler { _, reply -> - val wrapped: List = try { - api.pause() - listOf(null) - } catch (exception: Throwable) { - VideoPlayerHelperPigeonUtils.wrapError(exception) - } - reply.reply(wrapped) - } - } else { - channel.setMessageHandler(null) - } + reply.reply(wrapped) + } + } else { + channel.setMessageHandler(null) + } + } + run { + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.nl_jknaapen_fladder.video.VideoPlayerApi.pause$separatedMessageChannelSuffix", codec) + if (api != null) { + channel.setMessageHandler { _, reply -> + val wrapped: List = try { + api.pause() + listOf(null) + } catch (exception: Throwable) { + VideoPlayerHelperPigeonUtils.wrapError(exception) } - run { - val channel = BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.nl_jknaapen_fladder.video.VideoPlayerApi.seekTo$separatedMessageChannelSuffix", - codec - ) - if (api != null) { - channel.setMessageHandler { message, reply -> - val args = message as List - val positionArg = args[0] as Long - val wrapped: List = try { - api.seekTo(positionArg) - listOf(null) - } catch (exception: Throwable) { - VideoPlayerHelperPigeonUtils.wrapError(exception) - } - reply.reply(wrapped) - } - } else { - channel.setMessageHandler(null) - } + reply.reply(wrapped) + } + } else { + channel.setMessageHandler(null) + } + } + run { + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.nl_jknaapen_fladder.video.VideoPlayerApi.seekTo$separatedMessageChannelSuffix", codec) + if (api != null) { + channel.setMessageHandler { message, reply -> + val args = message as List + val positionArg = args[0] as Long + val wrapped: List = try { + api.seekTo(positionArg) + listOf(null) + } catch (exception: Throwable) { + VideoPlayerHelperPigeonUtils.wrapError(exception) } - run { - val channel = BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.nl_jknaapen_fladder.video.VideoPlayerApi.stop$separatedMessageChannelSuffix", - codec - ) - if (api != null) { - channel.setMessageHandler { _, reply -> - val wrapped: List = try { - api.stop() - listOf(null) - } catch (exception: Throwable) { - VideoPlayerHelperPigeonUtils.wrapError(exception) - } - reply.reply(wrapped) - } - } else { - channel.setMessageHandler(null) - } + reply.reply(wrapped) + } + } else { + channel.setMessageHandler(null) + } + } + run { + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.nl_jknaapen_fladder.video.VideoPlayerApi.stop$separatedMessageChannelSuffix", codec) + if (api != null) { + channel.setMessageHandler { _, reply -> + val wrapped: List = try { + api.stop() + listOf(null) + } catch (exception: Throwable) { + VideoPlayerHelperPigeonUtils.wrapError(exception) } - run { - val channel = BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.nl_jknaapen_fladder.video.VideoPlayerApi.setSubtitleSettings$separatedMessageChannelSuffix", - codec - ) - if (api != null) { - channel.setMessageHandler { message, reply -> - val args = message as List - val settingsArg = args[0] as SubtitleSettings - val wrapped: List = try { - api.setSubtitleSettings(settingsArg) - listOf(null) - } catch (exception: Throwable) { - VideoPlayerHelperPigeonUtils.wrapError(exception) - } - reply.reply(wrapped) - } - } else { - channel.setMessageHandler(null) - } + reply.reply(wrapped) + } + } else { + channel.setMessageHandler(null) + } + } + run { + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.nl_jknaapen_fladder.video.VideoPlayerApi.setSubtitleSettings$separatedMessageChannelSuffix", codec) + if (api != null) { + channel.setMessageHandler { message, reply -> + val args = message as List + val settingsArg = args[0] as SubtitleSettings + val wrapped: List = try { + api.setSubtitleSettings(settingsArg) + listOf(null) + } catch (exception: Throwable) { + VideoPlayerHelperPigeonUtils.wrapError(exception) } - run { - val channel = BasicMessageChannel( - binaryMessenger, - "dev.flutter.pigeon.nl_jknaapen_fladder.video.VideoPlayerApi.setSyncPlayCommandState$separatedMessageChannelSuffix", - codec - ) - if (api != null) { - channel.setMessageHandler { message, reply -> - val args = message as List - val processingArg = args[0] as Boolean - val commandTypeArg = args[1] as SyncPlayCommandType - val wrapped: List = try { - api.setSyncPlayCommandState(processingArg, commandTypeArg) - listOf(null) - } catch (exception: Throwable) { - VideoPlayerHelperPigeonUtils.wrapError(exception) - } - reply.reply(wrapped) - } - } else { - channel.setMessageHandler(null) - } + reply.reply(wrapped) + } + } else { + channel.setMessageHandler(null) + } + } + run { + val channel = BasicMessageChannel(binaryMessenger, "dev.flutter.pigeon.nl_jknaapen_fladder.video.VideoPlayerApi.setSyncPlayCommandState$separatedMessageChannelSuffix", codec) + if (api != null) { + channel.setMessageHandler { message, reply -> + val args = message as List + val processingArg = args[0] as Boolean + val commandTypeArg = args[1] as SyncPlayCommandType + val wrapped: List = try { + api.setSyncPlayCommandState(processingArg, commandTypeArg) + listOf(null) + } catch (exception: Throwable) { + VideoPlayerHelperPigeonUtils.wrapError(exception) } + reply.reply(wrapped) + } + } else { + channel.setMessageHandler(null) } + } } + } } - /** Generated class from Pigeon that represents Flutter messages that can be called from Kotlin. */ -class VideoPlayerListenerCallback( - private val binaryMessenger: BinaryMessenger, - private val messageChannelSuffix: String = "" -) { - companion object { - /** The codec used by VideoPlayerListenerCallback. */ - val codec: MessageCodec by lazy { - VideoPlayerHelperPigeonCodec() - } - } - - fun onPlaybackStateChanged(stateArg: PlaybackState, callback: (Result) -> Unit) { - val separatedMessageChannelSuffix = - if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" - val channelName = - "dev.flutter.pigeon.nl_jknaapen_fladder.video.VideoPlayerListenerCallback.onPlaybackStateChanged$separatedMessageChannelSuffix" - val channel = BasicMessageChannel(binaryMessenger, channelName, codec) - channel.send(listOf(stateArg)) { - if (it is List<*>) { - if (it.size > 1) { - callback( - Result.failure( - FlutterError( - it[0] as String, - it[1] as String, - it[2] as String? - ) - ) - ) - } else { - callback(Result.success(Unit)) - } - } else { - callback( - Result.failure( - VideoPlayerHelperPigeonUtils.createConnectionError( - channelName - ) - ) - ) - } +class VideoPlayerListenerCallback(private val binaryMessenger: BinaryMessenger, private val messageChannelSuffix: String = "") { + companion object { + /** The codec used by VideoPlayerListenerCallback. */ + val codec: MessageCodec by lazy { + VideoPlayerHelperPigeonCodec() + } + } + fun onPlaybackStateChanged(stateArg: PlaybackState, callback: (Result) -> Unit) +{ + val separatedMessageChannelSuffix = if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" + val channelName = "dev.flutter.pigeon.nl_jknaapen_fladder.video.VideoPlayerListenerCallback.onPlaybackStateChanged$separatedMessageChannelSuffix" + val channel = BasicMessageChannel(binaryMessenger, channelName, codec) + channel.send(listOf(stateArg)) { + if (it is List<*>) { + if (it.size > 1) { + callback(Result.failure(FlutterError(it[0] as String, it[1] as String, it[2] as String?))) + } else { + callback(Result.success(Unit)) } + } else { + callback(Result.failure(VideoPlayerHelperPigeonUtils.createConnectionError(channelName))) + } } + } } - /** Generated class from Pigeon that represents Flutter messages that can be called from Kotlin. */ -class VideoPlayerControlsCallback( - private val binaryMessenger: BinaryMessenger, - private val messageChannelSuffix: String = "" -) { - companion object { - /** The codec used by VideoPlayerControlsCallback. */ - val codec: MessageCodec by lazy { - VideoPlayerHelperPigeonCodec() - } - } - - fun loadNextVideo(callback: (Result) -> Unit) { - val separatedMessageChannelSuffix = - if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" - val channelName = - "dev.flutter.pigeon.nl_jknaapen_fladder.video.VideoPlayerControlsCallback.loadNextVideo$separatedMessageChannelSuffix" - val channel = BasicMessageChannel(binaryMessenger, channelName, codec) - channel.send(null) { - if (it is List<*>) { - if (it.size > 1) { - callback( - Result.failure( - FlutterError( - it[0] as String, - it[1] as String, - it[2] as String? - ) - ) - ) - } else { - callback(Result.success(Unit)) - } - } else { - callback( - Result.failure( - VideoPlayerHelperPigeonUtils.createConnectionError( - channelName - ) - ) - ) - } - } - } - - fun loadPreviousVideo(callback: (Result) -> Unit) { - val separatedMessageChannelSuffix = - if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" - val channelName = - "dev.flutter.pigeon.nl_jknaapen_fladder.video.VideoPlayerControlsCallback.loadPreviousVideo$separatedMessageChannelSuffix" - val channel = BasicMessageChannel(binaryMessenger, channelName, codec) - channel.send(null) { - if (it is List<*>) { - if (it.size > 1) { - callback( - Result.failure( - FlutterError( - it[0] as String, - it[1] as String, - it[2] as String? - ) - ) - ) - } else { - callback(Result.success(Unit)) - } - } else { - callback( - Result.failure( - VideoPlayerHelperPigeonUtils.createConnectionError( - channelName - ) - ) - ) - } - } - } - - fun onStop(callback: (Result) -> Unit) { - val separatedMessageChannelSuffix = - if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" - val channelName = - "dev.flutter.pigeon.nl_jknaapen_fladder.video.VideoPlayerControlsCallback.onStop$separatedMessageChannelSuffix" - val channel = BasicMessageChannel(binaryMessenger, channelName, codec) - channel.send(null) { - if (it is List<*>) { - if (it.size > 1) { - callback( - Result.failure( - FlutterError( - it[0] as String, - it[1] as String, - it[2] as String? - ) - ) - ) - } else { - callback(Result.success(Unit)) - } - } else { - callback( - Result.failure( - VideoPlayerHelperPigeonUtils.createConnectionError( - channelName - ) - ) - ) - } - } - } - - fun swapSubtitleTrack(valueArg: Long, callback: (Result) -> Unit) { - val separatedMessageChannelSuffix = - if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" - val channelName = - "dev.flutter.pigeon.nl_jknaapen_fladder.video.VideoPlayerControlsCallback.swapSubtitleTrack$separatedMessageChannelSuffix" - val channel = BasicMessageChannel(binaryMessenger, channelName, codec) - channel.send(listOf(valueArg)) { - if (it is List<*>) { - if (it.size > 1) { - callback( - Result.failure( - FlutterError( - it[0] as String, - it[1] as String, - it[2] as String? - ) - ) - ) - } else { - callback(Result.success(Unit)) - } - } else { - callback( - Result.failure( - VideoPlayerHelperPigeonUtils.createConnectionError( - channelName - ) - ) - ) - } - } - } - - fun swapAudioTrack(valueArg: Long, callback: (Result) -> Unit) { - val separatedMessageChannelSuffix = - if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" - val channelName = - "dev.flutter.pigeon.nl_jknaapen_fladder.video.VideoPlayerControlsCallback.swapAudioTrack$separatedMessageChannelSuffix" - val channel = BasicMessageChannel(binaryMessenger, channelName, codec) - channel.send(listOf(valueArg)) { - if (it is List<*>) { - if (it.size > 1) { - callback( - Result.failure( - FlutterError( - it[0] as String, - it[1] as String, - it[2] as String? - ) - ) - ) - } else { - callback(Result.success(Unit)) - } - } else { - callback( - Result.failure( - VideoPlayerHelperPigeonUtils.createConnectionError( - channelName - ) - ) - ) - } - } - } - - fun loadProgram(selectionArg: GuideChannel, callback: (Result) -> Unit) { - val separatedMessageChannelSuffix = - if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" - val channelName = - "dev.flutter.pigeon.nl_jknaapen_fladder.video.VideoPlayerControlsCallback.loadProgram$separatedMessageChannelSuffix" - val channel = BasicMessageChannel(binaryMessenger, channelName, codec) - channel.send(listOf(selectionArg)) { - if (it is List<*>) { - if (it.size > 1) { - callback( - Result.failure( - FlutterError( - it[0] as String, - it[1] as String, - it[2] as String? - ) - ) - ) - } else { - callback(Result.success(Unit)) - } - } else { - callback( - Result.failure( - VideoPlayerHelperPigeonUtils.createConnectionError( - channelName - ) - ) - ) - } - } - } - - fun fetchProgramsForChannel( - channelIdArg: String, - callback: (Result>) -> Unit - ) { - val separatedMessageChannelSuffix = - if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" - val channelName = - "dev.flutter.pigeon.nl_jknaapen_fladder.video.VideoPlayerControlsCallback.fetchProgramsForChannel$separatedMessageChannelSuffix" - val channel = BasicMessageChannel(binaryMessenger, channelName, codec) - channel.send(listOf(channelIdArg)) { - if (it is List<*>) { - if (it.size > 1) { - callback( - Result.failure( - FlutterError( - it[0] as String, - it[1] as String, - it[2] as String? - ) - ) - ) - } else if (it[0] == null) { - callback( - Result.failure( - FlutterError( - "null-error", - "Flutter api returned null value for non-null return value.", - "" - ) - ) - ) - } else { - val output = it[0] as List - callback(Result.success(output)) - } - } else { - callback( - Result.failure( - VideoPlayerHelperPigeonUtils.createConnectionError( - channelName - ) - ) - ) - } - } - } - - /** User-initiated play action from native player (for SyncPlay integration) */ - fun onUserPlay(callback: (Result) -> Unit) { - val separatedMessageChannelSuffix = - if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" - val channelName = - "dev.flutter.pigeon.nl_jknaapen_fladder.video.VideoPlayerControlsCallback.onUserPlay$separatedMessageChannelSuffix" - val channel = BasicMessageChannel(binaryMessenger, channelName, codec) - channel.send(null) { - if (it is List<*>) { - if (it.size > 1) { - callback( - Result.failure( - FlutterError( - it[0] as String, - it[1] as String, - it[2] as String? - ) - ) - ) - } else { - callback(Result.success(Unit)) - } - } else { - callback( - Result.failure( - VideoPlayerHelperPigeonUtils.createConnectionError( - channelName - ) - ) - ) - } - } - } - - /** User-initiated pause action from native player (for SyncPlay integration) */ - fun onUserPause(callback: (Result) -> Unit) { - val separatedMessageChannelSuffix = - if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" - val channelName = - "dev.flutter.pigeon.nl_jknaapen_fladder.video.VideoPlayerControlsCallback.onUserPause$separatedMessageChannelSuffix" - val channel = BasicMessageChannel(binaryMessenger, channelName, codec) - channel.send(null) { - if (it is List<*>) { - if (it.size > 1) { - callback( - Result.failure( - FlutterError( - it[0] as String, - it[1] as String, - it[2] as String? - ) - ) - ) - } else { - callback(Result.success(Unit)) - } - } else { - callback( - Result.failure( - VideoPlayerHelperPigeonUtils.createConnectionError( - channelName - ) - ) - ) - } - } - } - - /** - * User-initiated seek action from native player (for SyncPlay integration) - * Position is in milliseconds - */ - fun onUserSeek(positionMsArg: Long, callback: (Result) -> Unit) { - val separatedMessageChannelSuffix = - if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" - val channelName = - "dev.flutter.pigeon.nl_jknaapen_fladder.video.VideoPlayerControlsCallback.onUserSeek$separatedMessageChannelSuffix" - val channel = BasicMessageChannel(binaryMessenger, channelName, codec) - channel.send(listOf(positionMsArg)) { - if (it is List<*>) { - if (it.size > 1) { - callback( - Result.failure( - FlutterError( - it[0] as String, - it[1] as String, - it[2] as String? - ) - ) - ) - } else { - callback(Result.success(Unit)) - } - } else { - callback( - Result.failure( - VideoPlayerHelperPigeonUtils.createConnectionError( - channelName - ) - ) - ) - } +class VideoPlayerControlsCallback(private val binaryMessenger: BinaryMessenger, private val messageChannelSuffix: String = "") { + companion object { + /** The codec used by VideoPlayerControlsCallback. */ + val codec: MessageCodec by lazy { + VideoPlayerHelperPigeonCodec() + } + } + fun loadNextVideo(callback: (Result) -> Unit) +{ + val separatedMessageChannelSuffix = if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" + val channelName = "dev.flutter.pigeon.nl_jknaapen_fladder.video.VideoPlayerControlsCallback.loadNextVideo$separatedMessageChannelSuffix" + val channel = BasicMessageChannel(binaryMessenger, channelName, codec) + channel.send(null) { + if (it is List<*>) { + if (it.size > 1) { + callback(Result.failure(FlutterError(it[0] as String, it[1] as String, it[2] as String?))) + } else { + callback(Result.success(Unit)) + } + } else { + callback(Result.failure(VideoPlayerHelperPigeonUtils.createConnectionError(channelName))) + } + } + } + fun loadPreviousVideo(callback: (Result) -> Unit) +{ + val separatedMessageChannelSuffix = if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" + val channelName = "dev.flutter.pigeon.nl_jknaapen_fladder.video.VideoPlayerControlsCallback.loadPreviousVideo$separatedMessageChannelSuffix" + val channel = BasicMessageChannel(binaryMessenger, channelName, codec) + channel.send(null) { + if (it is List<*>) { + if (it.size > 1) { + callback(Result.failure(FlutterError(it[0] as String, it[1] as String, it[2] as String?))) + } else { + callback(Result.success(Unit)) + } + } else { + callback(Result.failure(VideoPlayerHelperPigeonUtils.createConnectionError(channelName))) + } + } + } + fun onStop(callback: (Result) -> Unit) +{ + val separatedMessageChannelSuffix = if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" + val channelName = "dev.flutter.pigeon.nl_jknaapen_fladder.video.VideoPlayerControlsCallback.onStop$separatedMessageChannelSuffix" + val channel = BasicMessageChannel(binaryMessenger, channelName, codec) + channel.send(null) { + if (it is List<*>) { + if (it.size > 1) { + callback(Result.failure(FlutterError(it[0] as String, it[1] as String, it[2] as String?))) + } else { + callback(Result.success(Unit)) + } + } else { + callback(Result.failure(VideoPlayerHelperPigeonUtils.createConnectionError(channelName))) + } + } + } + fun swapSubtitleTrack(valueArg: Long, callback: (Result) -> Unit) +{ + val separatedMessageChannelSuffix = if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" + val channelName = "dev.flutter.pigeon.nl_jknaapen_fladder.video.VideoPlayerControlsCallback.swapSubtitleTrack$separatedMessageChannelSuffix" + val channel = BasicMessageChannel(binaryMessenger, channelName, codec) + channel.send(listOf(valueArg)) { + if (it is List<*>) { + if (it.size > 1) { + callback(Result.failure(FlutterError(it[0] as String, it[1] as String, it[2] as String?))) + } else { + callback(Result.success(Unit)) + } + } else { + callback(Result.failure(VideoPlayerHelperPigeonUtils.createConnectionError(channelName))) + } + } + } + fun swapAudioTrack(valueArg: Long, callback: (Result) -> Unit) +{ + val separatedMessageChannelSuffix = if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" + val channelName = "dev.flutter.pigeon.nl_jknaapen_fladder.video.VideoPlayerControlsCallback.swapAudioTrack$separatedMessageChannelSuffix" + val channel = BasicMessageChannel(binaryMessenger, channelName, codec) + channel.send(listOf(valueArg)) { + if (it is List<*>) { + if (it.size > 1) { + callback(Result.failure(FlutterError(it[0] as String, it[1] as String, it[2] as String?))) + } else { + callback(Result.success(Unit)) + } + } else { + callback(Result.failure(VideoPlayerHelperPigeonUtils.createConnectionError(channelName))) + } + } + } + fun loadProgram(selectionArg: GuideChannel, callback: (Result) -> Unit) +{ + val separatedMessageChannelSuffix = if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" + val channelName = "dev.flutter.pigeon.nl_jknaapen_fladder.video.VideoPlayerControlsCallback.loadProgram$separatedMessageChannelSuffix" + val channel = BasicMessageChannel(binaryMessenger, channelName, codec) + channel.send(listOf(selectionArg)) { + if (it is List<*>) { + if (it.size > 1) { + callback(Result.failure(FlutterError(it[0] as String, it[1] as String, it[2] as String?))) + } else { + callback(Result.success(Unit)) + } + } else { + callback(Result.failure(VideoPlayerHelperPigeonUtils.createConnectionError(channelName))) + } + } + } + fun fetchProgramsForChannel(channelIdArg: String, callback: (Result>) -> Unit) +{ + val separatedMessageChannelSuffix = if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" + val channelName = "dev.flutter.pigeon.nl_jknaapen_fladder.video.VideoPlayerControlsCallback.fetchProgramsForChannel$separatedMessageChannelSuffix" + val channel = BasicMessageChannel(binaryMessenger, channelName, codec) + channel.send(listOf(channelIdArg)) { + if (it is List<*>) { + if (it.size > 1) { + callback(Result.failure(FlutterError(it[0] as String, it[1] as String, it[2] as String?))) + } else if (it[0] == null) { + callback(Result.failure(FlutterError("null-error", "Flutter api returned null value for non-null return value.", ""))) + } else { + val output = it[0] as List + callback(Result.success(output)) + } + } else { + callback(Result.failure(VideoPlayerHelperPigeonUtils.createConnectionError(channelName))) + } + } + } + /** User-initiated play action from native player (for SyncPlay integration) */ + fun onUserPlay(callback: (Result) -> Unit) +{ + val separatedMessageChannelSuffix = if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" + val channelName = "dev.flutter.pigeon.nl_jknaapen_fladder.video.VideoPlayerControlsCallback.onUserPlay$separatedMessageChannelSuffix" + val channel = BasicMessageChannel(binaryMessenger, channelName, codec) + channel.send(null) { + if (it is List<*>) { + if (it.size > 1) { + callback(Result.failure(FlutterError(it[0] as String, it[1] as String, it[2] as String?))) + } else { + callback(Result.success(Unit)) + } + } else { + callback(Result.failure(VideoPlayerHelperPigeonUtils.createConnectionError(channelName))) + } + } + } + /** User-initiated pause action from native player (for SyncPlay integration) */ + fun onUserPause(callback: (Result) -> Unit) +{ + val separatedMessageChannelSuffix = if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" + val channelName = "dev.flutter.pigeon.nl_jknaapen_fladder.video.VideoPlayerControlsCallback.onUserPause$separatedMessageChannelSuffix" + val channel = BasicMessageChannel(binaryMessenger, channelName, codec) + channel.send(null) { + if (it is List<*>) { + if (it.size > 1) { + callback(Result.failure(FlutterError(it[0] as String, it[1] as String, it[2] as String?))) + } else { + callback(Result.success(Unit)) + } + } else { + callback(Result.failure(VideoPlayerHelperPigeonUtils.createConnectionError(channelName))) + } + } + } + /** + * User-initiated seek action from native player (for SyncPlay integration) + * Position is in milliseconds + */ + fun onUserSeek(positionMsArg: Long, callback: (Result) -> Unit) +{ + val separatedMessageChannelSuffix = if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" + val channelName = "dev.flutter.pigeon.nl_jknaapen_fladder.video.VideoPlayerControlsCallback.onUserSeek$separatedMessageChannelSuffix" + val channel = BasicMessageChannel(binaryMessenger, channelName, codec) + channel.send(listOf(positionMsArg)) { + if (it is List<*>) { + if (it.size > 1) { + callback(Result.failure(FlutterError(it[0] as String, it[1] as String, it[2] as String?))) + } else { + callback(Result.success(Unit)) } + } else { + callback(Result.failure(VideoPlayerHelperPigeonUtils.createConnectionError(channelName))) + } } + } } diff --git a/lib/src/application_menu.g.dart b/lib/src/application_menu.g.dart index 2ba36f41e..1bdce4bd9 100644 --- a/lib/src/application_menu.g.dart +++ b/lib/src/application_menu.g.dart @@ -18,6 +18,7 @@ List wrapResponse({Object? result, PlatformException? error, bool empty return [error.code, error.message, error.details]; } + class _PigeonCodec extends StandardMessageCodec { const _PigeonCodec(); @override @@ -46,16 +47,11 @@ abstract class ApplicationMenu { void newInstance(); - static void setUp( - ApplicationMenu? api, { - BinaryMessenger? binaryMessenger, - String messageChannelSuffix = '', - }) { + static void setUp(ApplicationMenu? api, {BinaryMessenger? binaryMessenger, String messageChannelSuffix = '',}) { messageChannelSuffix = messageChannelSuffix.isNotEmpty ? '.$messageChannelSuffix' : ''; { final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.nl_jknaapen_fladder.application_menu.ApplicationMenu.openNewWindow$messageChannelSuffix', - pigeonChannelCodec, + 'dev.flutter.pigeon.nl_jknaapen_fladder.application_menu.ApplicationMenu.openNewWindow$messageChannelSuffix', pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { pigeonVar_channel.setMessageHandler(null); @@ -66,7 +62,7 @@ abstract class ApplicationMenu { return wrapResponse(empty: true); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { + } catch (e) { return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); } }); @@ -74,8 +70,7 @@ abstract class ApplicationMenu { } { final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.nl_jknaapen_fladder.application_menu.ApplicationMenu.newInstance$messageChannelSuffix', - pigeonChannelCodec, + 'dev.flutter.pigeon.nl_jknaapen_fladder.application_menu.ApplicationMenu.newInstance$messageChannelSuffix', pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { pigeonVar_channel.setMessageHandler(null); @@ -86,7 +81,7 @@ abstract class ApplicationMenu { return wrapResponse(empty: true); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { + } catch (e) { return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); } }); diff --git a/lib/src/battery_optimization_pigeon.g.dart b/lib/src/battery_optimization_pigeon.g.dart index ab3ee0acc..6de9ef8fb 100644 --- a/lib/src/battery_optimization_pigeon.g.dart +++ b/lib/src/battery_optimization_pigeon.g.dart @@ -15,6 +15,7 @@ PlatformException _createConnectionError(String channelName) { ); } + class _PigeonCodec extends StandardMessageCodec { const _PigeonCodec(); @override @@ -49,17 +50,16 @@ class BatteryOptimizationPigeon { final String pigeonVar_messageChannelSuffix; - /// Returns whether the app is currently *ignored* from battery optimizations. Future isIgnoringBatteryOptimizations() async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.nl_jknaapen_fladder.settings.BatteryOptimizationPigeon.isIgnoringBatteryOptimizations$pigeonVar_messageChannelSuffix'; + final String pigeonVar_channelName = 'dev.flutter.pigeon.nl_jknaapen_fladder.settings.BatteryOptimizationPigeon.isIgnoringBatteryOptimizations$pigeonVar_messageChannelSuffix'; final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); final Future pigeonVar_sendFuture = pigeonVar_channel.send(null); - final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; + final List? pigeonVar_replyList = + await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { throw _createConnectionError(pigeonVar_channelName); } else if (pigeonVar_replyList.length > 1) { @@ -78,17 +78,16 @@ class BatteryOptimizationPigeon { } } - /// Opens the battery-optimization/settings screen for this app (Android). Future openBatteryOptimizationSettings() async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.nl_jknaapen_fladder.settings.BatteryOptimizationPigeon.openBatteryOptimizationSettings$pigeonVar_messageChannelSuffix'; + final String pigeonVar_channelName = 'dev.flutter.pigeon.nl_jknaapen_fladder.settings.BatteryOptimizationPigeon.openBatteryOptimizationSettings$pigeonVar_messageChannelSuffix'; final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); final Future pigeonVar_sendFuture = pigeonVar_channel.send(null); - final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; + final List? pigeonVar_replyList = + await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { throw _createConnectionError(pigeonVar_channelName); } else if (pigeonVar_replyList.length > 1) { diff --git a/lib/src/directory_bookmark.g.dart b/lib/src/directory_bookmark.g.dart index c4349ee5b..2695e751a 100644 --- a/lib/src/directory_bookmark.g.dart +++ b/lib/src/directory_bookmark.g.dart @@ -15,6 +15,7 @@ PlatformException _createConnectionError(String channelName) { ); } + class _PigeonCodec extends StandardMessageCodec { const _PigeonCodec(); @override @@ -50,15 +51,15 @@ class DirectoryBookmark { final String pigeonVar_messageChannelSuffix; Future saveDirectory(String key, String path) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.nl_jknaapen_fladder.directory_bookmark.DirectoryBookmark.saveDirectory$pigeonVar_messageChannelSuffix'; + final String pigeonVar_channelName = 'dev.flutter.pigeon.nl_jknaapen_fladder.directory_bookmark.DirectoryBookmark.saveDirectory$pigeonVar_messageChannelSuffix'; final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); final Future pigeonVar_sendFuture = pigeonVar_channel.send([key, path]); - final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; + final List? pigeonVar_replyList = + await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { throw _createConnectionError(pigeonVar_channelName); } else if (pigeonVar_replyList.length > 1) { @@ -73,15 +74,15 @@ class DirectoryBookmark { } Future resolveDirectory(String key) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.nl_jknaapen_fladder.directory_bookmark.DirectoryBookmark.resolveDirectory$pigeonVar_messageChannelSuffix'; + final String pigeonVar_channelName = 'dev.flutter.pigeon.nl_jknaapen_fladder.directory_bookmark.DirectoryBookmark.resolveDirectory$pigeonVar_messageChannelSuffix'; final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); final Future pigeonVar_sendFuture = pigeonVar_channel.send([key]); - final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; + final List? pigeonVar_replyList = + await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { throw _createConnectionError(pigeonVar_channelName); } else if (pigeonVar_replyList.length > 1) { @@ -96,15 +97,15 @@ class DirectoryBookmark { } Future closeDirectory(String key) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.nl_jknaapen_fladder.directory_bookmark.DirectoryBookmark.closeDirectory$pigeonVar_messageChannelSuffix'; + final String pigeonVar_channelName = 'dev.flutter.pigeon.nl_jknaapen_fladder.directory_bookmark.DirectoryBookmark.closeDirectory$pigeonVar_messageChannelSuffix'; final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); final Future pigeonVar_sendFuture = pigeonVar_channel.send([key]); - final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; + final List? pigeonVar_replyList = + await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { throw _createConnectionError(pigeonVar_channelName); } else if (pigeonVar_replyList.length > 1) { diff --git a/lib/src/player_settings_helper.g.dart b/lib/src/player_settings_helper.g.dart index 7940ebee4..2b44241d0 100644 --- a/lib/src/player_settings_helper.g.dart +++ b/lib/src/player_settings_helper.g.dart @@ -14,19 +14,21 @@ PlatformException _createConnectionError(String channelName) { message: 'Unable to establish connection on channel: "$channelName".', ); } - bool _deepEquals(Object? a, Object? b) { if (a is List && b is List) { - return a.length == b.length && a.indexed.every(((int, dynamic) item) => _deepEquals(item.$2, b[item.$1])); + return a.length == b.length && + a.indexed + .every(((int, dynamic) item) => _deepEquals(item.$2, b[item.$1])); } if (a is Map && b is Map) { - return a.length == b.length && - a.entries.every((MapEntry entry) => - (b as Map).containsKey(entry.key) && _deepEquals(entry.value, b[entry.key])); + return a.length == b.length && a.entries.every((MapEntry entry) => + (b as Map).containsKey(entry.key) && + _deepEquals(entry.value, b[entry.key])); } return a == b; } + enum Screensaver { disabled, dvd, @@ -123,8 +125,7 @@ class PlayerSettings { } Object encode() { - return _toList(); - } + return _toList(); } static PlayerSettings decode(Object result) { result as List; @@ -156,9 +157,11 @@ class PlayerSettings { @override // ignore: avoid_equals_and_hash_code_on_mutable_classes - int get hashCode => Object.hashAll(_toList()); + int get hashCode => Object.hashAll(_toList()) +; } + class _PigeonCodec extends StandardMessageCodec { const _PigeonCodec(); @override @@ -166,25 +169,25 @@ class _PigeonCodec extends StandardMessageCodec { if (value is int) { buffer.putUint8(4); buffer.putInt64(value); - } else if (value is Screensaver) { + } else if (value is Screensaver) { buffer.putUint8(129); writeValue(buffer, value.index); - } else if (value is VideoPlayerFit) { + } else if (value is VideoPlayerFit) { buffer.putUint8(130); writeValue(buffer, value.index); - } else if (value is PlayerOrientations) { + } else if (value is PlayerOrientations) { buffer.putUint8(131); writeValue(buffer, value.index); - } else if (value is AutoNextType) { + } else if (value is AutoNextType) { buffer.putUint8(132); writeValue(buffer, value.index); - } else if (value is SegmentType) { + } else if (value is SegmentType) { buffer.putUint8(133); writeValue(buffer, value.index); - } else if (value is SegmentSkip) { + } else if (value is SegmentSkip) { buffer.putUint8(134); writeValue(buffer, value.index); - } else if (value is PlayerSettings) { + } else if (value is PlayerSettings) { buffer.putUint8(135); writeValue(buffer, value.encode()); } else { @@ -195,25 +198,25 @@ class _PigeonCodec extends StandardMessageCodec { @override Object? readValueOfType(int type, ReadBuffer buffer) { switch (type) { - case 129: + case 129: final int? value = readValue(buffer) as int?; return value == null ? null : Screensaver.values[value]; - case 130: + case 130: final int? value = readValue(buffer) as int?; return value == null ? null : VideoPlayerFit.values[value]; - case 131: + case 131: final int? value = readValue(buffer) as int?; return value == null ? null : PlayerOrientations.values[value]; - case 132: + case 132: final int? value = readValue(buffer) as int?; return value == null ? null : AutoNextType.values[value]; - case 133: + case 133: final int? value = readValue(buffer) as int?; return value == null ? null : SegmentType.values[value]; - case 134: + case 134: final int? value = readValue(buffer) as int?; return value == null ? null : SegmentSkip.values[value]; - case 135: + case 135: return PlayerSettings.decode(readValue(buffer)!); default: return super.readValueOfType(type, buffer); @@ -235,15 +238,15 @@ class PlayerSettingsPigeon { final String pigeonVar_messageChannelSuffix; Future sendPlayerSettings(PlayerSettings playerSettings) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.nl_jknaapen_fladder.settings.PlayerSettingsPigeon.sendPlayerSettings$pigeonVar_messageChannelSuffix'; + final String pigeonVar_channelName = 'dev.flutter.pigeon.nl_jknaapen_fladder.settings.PlayerSettingsPigeon.sendPlayerSettings$pigeonVar_messageChannelSuffix'; final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); final Future pigeonVar_sendFuture = pigeonVar_channel.send([playerSettings]); - final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; + final List? pigeonVar_replyList = + await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { throw _createConnectionError(pigeonVar_channelName); } else if (pigeonVar_replyList.length > 1) { diff --git a/lib/src/translations_pigeon.g.dart b/lib/src/translations_pigeon.g.dart index 82de1f927..7ffd04d29 100644 --- a/lib/src/translations_pigeon.g.dart +++ b/lib/src/translations_pigeon.g.dart @@ -18,6 +18,7 @@ List wrapResponse({Object? result, PlatformException? error, bool empty return [error.code, error.message, error.details]; } + class _PigeonCodec extends StandardMessageCodec { const _PigeonCodec(); @override @@ -84,16 +85,11 @@ abstract class TranslationsPigeon { String syncPlayCommandSyncing(); - static void setUp( - TranslationsPigeon? api, { - BinaryMessenger? binaryMessenger, - String messageChannelSuffix = '', - }) { + static void setUp(TranslationsPigeon? api, {BinaryMessenger? binaryMessenger, String messageChannelSuffix = '',}) { messageChannelSuffix = messageChannelSuffix.isNotEmpty ? '.$messageChannelSuffix' : ''; { final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.nl_jknaapen_fladder.settings.TranslationsPigeon.next$messageChannelSuffix', - pigeonChannelCodec, + 'dev.flutter.pigeon.nl_jknaapen_fladder.settings.TranslationsPigeon.next$messageChannelSuffix', pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { pigeonVar_channel.setMessageHandler(null); @@ -104,7 +100,7 @@ abstract class TranslationsPigeon { return wrapResponse(result: output); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { + } catch (e) { return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); } }); @@ -112,8 +108,7 @@ abstract class TranslationsPigeon { } { final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.nl_jknaapen_fladder.settings.TranslationsPigeon.nextVideo$messageChannelSuffix', - pigeonChannelCodec, + 'dev.flutter.pigeon.nl_jknaapen_fladder.settings.TranslationsPigeon.nextVideo$messageChannelSuffix', pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { pigeonVar_channel.setMessageHandler(null); @@ -124,7 +119,7 @@ abstract class TranslationsPigeon { return wrapResponse(result: output); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { + } catch (e) { return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); } }); @@ -132,8 +127,7 @@ abstract class TranslationsPigeon { } { final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.nl_jknaapen_fladder.settings.TranslationsPigeon.close$messageChannelSuffix', - pigeonChannelCodec, + 'dev.flutter.pigeon.nl_jknaapen_fladder.settings.TranslationsPigeon.close$messageChannelSuffix', pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { pigeonVar_channel.setMessageHandler(null); @@ -144,7 +138,7 @@ abstract class TranslationsPigeon { return wrapResponse(result: output); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { + } catch (e) { return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); } }); @@ -152,15 +146,14 @@ abstract class TranslationsPigeon { } { final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.nl_jknaapen_fladder.settings.TranslationsPigeon.skip$messageChannelSuffix', - pigeonChannelCodec, + 'dev.flutter.pigeon.nl_jknaapen_fladder.settings.TranslationsPigeon.skip$messageChannelSuffix', pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { pigeonVar_channel.setMessageHandler(null); } else { pigeonVar_channel.setMessageHandler((Object? message) async { assert(message != null, - 'Argument for dev.flutter.pigeon.nl_jknaapen_fladder.settings.TranslationsPigeon.skip was null.'); + 'Argument for dev.flutter.pigeon.nl_jknaapen_fladder.settings.TranslationsPigeon.skip was null.'); final List args = (message as List?)!; final String? arg_name = (args[0] as String?); assert(arg_name != null, @@ -170,7 +163,7 @@ abstract class TranslationsPigeon { return wrapResponse(result: output); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { + } catch (e) { return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); } }); @@ -178,8 +171,7 @@ abstract class TranslationsPigeon { } { final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.nl_jknaapen_fladder.settings.TranslationsPigeon.subtitles$messageChannelSuffix', - pigeonChannelCodec, + 'dev.flutter.pigeon.nl_jknaapen_fladder.settings.TranslationsPigeon.subtitles$messageChannelSuffix', pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { pigeonVar_channel.setMessageHandler(null); @@ -190,7 +182,7 @@ abstract class TranslationsPigeon { return wrapResponse(result: output); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { + } catch (e) { return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); } }); @@ -198,8 +190,7 @@ abstract class TranslationsPigeon { } { final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.nl_jknaapen_fladder.settings.TranslationsPigeon.off$messageChannelSuffix', - pigeonChannelCodec, + 'dev.flutter.pigeon.nl_jknaapen_fladder.settings.TranslationsPigeon.off$messageChannelSuffix', pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { pigeonVar_channel.setMessageHandler(null); @@ -210,7 +201,7 @@ abstract class TranslationsPigeon { return wrapResponse(result: output); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { + } catch (e) { return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); } }); @@ -218,15 +209,14 @@ abstract class TranslationsPigeon { } { final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.nl_jknaapen_fladder.settings.TranslationsPigeon.chapters$messageChannelSuffix', - pigeonChannelCodec, + 'dev.flutter.pigeon.nl_jknaapen_fladder.settings.TranslationsPigeon.chapters$messageChannelSuffix', pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { pigeonVar_channel.setMessageHandler(null); } else { pigeonVar_channel.setMessageHandler((Object? message) async { assert(message != null, - 'Argument for dev.flutter.pigeon.nl_jknaapen_fladder.settings.TranslationsPigeon.chapters was null.'); + 'Argument for dev.flutter.pigeon.nl_jknaapen_fladder.settings.TranslationsPigeon.chapters was null.'); final List args = (message as List?)!; final int? arg_count = (args[0] as int?); assert(arg_count != null, @@ -236,7 +226,7 @@ abstract class TranslationsPigeon { return wrapResponse(result: output); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { + } catch (e) { return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); } }); @@ -244,15 +234,14 @@ abstract class TranslationsPigeon { } { final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.nl_jknaapen_fladder.settings.TranslationsPigeon.nextUpInSeconds$messageChannelSuffix', - pigeonChannelCodec, + 'dev.flutter.pigeon.nl_jknaapen_fladder.settings.TranslationsPigeon.nextUpInSeconds$messageChannelSuffix', pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { pigeonVar_channel.setMessageHandler(null); } else { pigeonVar_channel.setMessageHandler((Object? message) async { assert(message != null, - 'Argument for dev.flutter.pigeon.nl_jknaapen_fladder.settings.TranslationsPigeon.nextUpInSeconds was null.'); + 'Argument for dev.flutter.pigeon.nl_jknaapen_fladder.settings.TranslationsPigeon.nextUpInSeconds was null.'); final List args = (message as List?)!; final int? arg_seconds = (args[0] as int?); assert(arg_seconds != null, @@ -262,7 +251,7 @@ abstract class TranslationsPigeon { return wrapResponse(result: output); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { + } catch (e) { return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); } }); @@ -270,15 +259,14 @@ abstract class TranslationsPigeon { } { final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.nl_jknaapen_fladder.settings.TranslationsPigeon.hoursAndMinutes$messageChannelSuffix', - pigeonChannelCodec, + 'dev.flutter.pigeon.nl_jknaapen_fladder.settings.TranslationsPigeon.hoursAndMinutes$messageChannelSuffix', pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { pigeonVar_channel.setMessageHandler(null); } else { pigeonVar_channel.setMessageHandler((Object? message) async { assert(message != null, - 'Argument for dev.flutter.pigeon.nl_jknaapen_fladder.settings.TranslationsPigeon.hoursAndMinutes was null.'); + 'Argument for dev.flutter.pigeon.nl_jknaapen_fladder.settings.TranslationsPigeon.hoursAndMinutes was null.'); final List args = (message as List?)!; final String? arg_time = (args[0] as String?); assert(arg_time != null, @@ -288,7 +276,7 @@ abstract class TranslationsPigeon { return wrapResponse(result: output); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { + } catch (e) { return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); } }); @@ -296,15 +284,14 @@ abstract class TranslationsPigeon { } { final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.nl_jknaapen_fladder.settings.TranslationsPigeon.endsAt$messageChannelSuffix', - pigeonChannelCodec, + 'dev.flutter.pigeon.nl_jknaapen_fladder.settings.TranslationsPigeon.endsAt$messageChannelSuffix', pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { pigeonVar_channel.setMessageHandler(null); } else { pigeonVar_channel.setMessageHandler((Object? message) async { assert(message != null, - 'Argument for dev.flutter.pigeon.nl_jknaapen_fladder.settings.TranslationsPigeon.endsAt was null.'); + 'Argument for dev.flutter.pigeon.nl_jknaapen_fladder.settings.TranslationsPigeon.endsAt was null.'); final List args = (message as List?)!; final String? arg_time = (args[0] as String?); assert(arg_time != null, @@ -314,7 +301,7 @@ abstract class TranslationsPigeon { return wrapResponse(result: output); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { + } catch (e) { return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); } }); @@ -322,8 +309,7 @@ abstract class TranslationsPigeon { } { final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.nl_jknaapen_fladder.settings.TranslationsPigeon.switchChannel$messageChannelSuffix', - pigeonChannelCodec, + 'dev.flutter.pigeon.nl_jknaapen_fladder.settings.TranslationsPigeon.switchChannel$messageChannelSuffix', pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { pigeonVar_channel.setMessageHandler(null); @@ -334,7 +320,7 @@ abstract class TranslationsPigeon { return wrapResponse(result: output); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { + } catch (e) { return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); } }); @@ -342,15 +328,14 @@ abstract class TranslationsPigeon { } { final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.nl_jknaapen_fladder.settings.TranslationsPigeon.switchChannelDesc$messageChannelSuffix', - pigeonChannelCodec, + 'dev.flutter.pigeon.nl_jknaapen_fladder.settings.TranslationsPigeon.switchChannelDesc$messageChannelSuffix', pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { pigeonVar_channel.setMessageHandler(null); } else { pigeonVar_channel.setMessageHandler((Object? message) async { assert(message != null, - 'Argument for dev.flutter.pigeon.nl_jknaapen_fladder.settings.TranslationsPigeon.switchChannelDesc was null.'); + 'Argument for dev.flutter.pigeon.nl_jknaapen_fladder.settings.TranslationsPigeon.switchChannelDesc was null.'); final List args = (message as List?)!; final String? arg_programName = (args[0] as String?); assert(arg_programName != null, @@ -363,7 +348,7 @@ abstract class TranslationsPigeon { return wrapResponse(result: output); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { + } catch (e) { return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); } }); @@ -371,8 +356,7 @@ abstract class TranslationsPigeon { } { final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.nl_jknaapen_fladder.settings.TranslationsPigeon.watch$messageChannelSuffix', - pigeonChannelCodec, + 'dev.flutter.pigeon.nl_jknaapen_fladder.settings.TranslationsPigeon.watch$messageChannelSuffix', pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { pigeonVar_channel.setMessageHandler(null); @@ -383,7 +367,7 @@ abstract class TranslationsPigeon { return wrapResponse(result: output); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { + } catch (e) { return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); } }); @@ -391,8 +375,7 @@ abstract class TranslationsPigeon { } { final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.nl_jknaapen_fladder.settings.TranslationsPigeon.now$messageChannelSuffix', - pigeonChannelCodec, + 'dev.flutter.pigeon.nl_jknaapen_fladder.settings.TranslationsPigeon.now$messageChannelSuffix', pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { pigeonVar_channel.setMessageHandler(null); @@ -403,7 +386,7 @@ abstract class TranslationsPigeon { return wrapResponse(result: output); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { + } catch (e) { return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); } }); @@ -411,8 +394,7 @@ abstract class TranslationsPigeon { } { final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.nl_jknaapen_fladder.settings.TranslationsPigeon.decline$messageChannelSuffix', - pigeonChannelCodec, + 'dev.flutter.pigeon.nl_jknaapen_fladder.settings.TranslationsPigeon.decline$messageChannelSuffix', pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { pigeonVar_channel.setMessageHandler(null); @@ -423,7 +405,7 @@ abstract class TranslationsPigeon { return wrapResponse(result: output); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { + } catch (e) { return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); } }); @@ -431,8 +413,7 @@ abstract class TranslationsPigeon { } { final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.nl_jknaapen_fladder.settings.TranslationsPigeon.syncPlaySyncingWithGroup$messageChannelSuffix', - pigeonChannelCodec, + 'dev.flutter.pigeon.nl_jknaapen_fladder.settings.TranslationsPigeon.syncPlaySyncingWithGroup$messageChannelSuffix', pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { pigeonVar_channel.setMessageHandler(null); @@ -443,7 +424,7 @@ abstract class TranslationsPigeon { return wrapResponse(result: output); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { + } catch (e) { return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); } }); @@ -451,8 +432,7 @@ abstract class TranslationsPigeon { } { final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.nl_jknaapen_fladder.settings.TranslationsPigeon.syncPlayCommandPausing$messageChannelSuffix', - pigeonChannelCodec, + 'dev.flutter.pigeon.nl_jknaapen_fladder.settings.TranslationsPigeon.syncPlayCommandPausing$messageChannelSuffix', pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { pigeonVar_channel.setMessageHandler(null); @@ -463,7 +443,7 @@ abstract class TranslationsPigeon { return wrapResponse(result: output); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { + } catch (e) { return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); } }); @@ -471,8 +451,7 @@ abstract class TranslationsPigeon { } { final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.nl_jknaapen_fladder.settings.TranslationsPigeon.syncPlayCommandPlaying$messageChannelSuffix', - pigeonChannelCodec, + 'dev.flutter.pigeon.nl_jknaapen_fladder.settings.TranslationsPigeon.syncPlayCommandPlaying$messageChannelSuffix', pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { pigeonVar_channel.setMessageHandler(null); @@ -483,7 +462,7 @@ abstract class TranslationsPigeon { return wrapResponse(result: output); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { + } catch (e) { return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); } }); @@ -491,8 +470,7 @@ abstract class TranslationsPigeon { } { final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.nl_jknaapen_fladder.settings.TranslationsPigeon.syncPlayCommandSeeking$messageChannelSuffix', - pigeonChannelCodec, + 'dev.flutter.pigeon.nl_jknaapen_fladder.settings.TranslationsPigeon.syncPlayCommandSeeking$messageChannelSuffix', pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { pigeonVar_channel.setMessageHandler(null); @@ -503,7 +481,7 @@ abstract class TranslationsPigeon { return wrapResponse(result: output); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { + } catch (e) { return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); } }); @@ -511,8 +489,7 @@ abstract class TranslationsPigeon { } { final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.nl_jknaapen_fladder.settings.TranslationsPigeon.syncPlayCommandStopping$messageChannelSuffix', - pigeonChannelCodec, + 'dev.flutter.pigeon.nl_jknaapen_fladder.settings.TranslationsPigeon.syncPlayCommandStopping$messageChannelSuffix', pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { pigeonVar_channel.setMessageHandler(null); @@ -523,7 +500,7 @@ abstract class TranslationsPigeon { return wrapResponse(result: output); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { + } catch (e) { return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); } }); @@ -531,8 +508,7 @@ abstract class TranslationsPigeon { } { final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.nl_jknaapen_fladder.settings.TranslationsPigeon.syncPlayCommandSyncing$messageChannelSuffix', - pigeonChannelCodec, + 'dev.flutter.pigeon.nl_jknaapen_fladder.settings.TranslationsPigeon.syncPlayCommandSyncing$messageChannelSuffix', pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { pigeonVar_channel.setMessageHandler(null); @@ -543,7 +519,7 @@ abstract class TranslationsPigeon { return wrapResponse(result: output); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { + } catch (e) { return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); } }); diff --git a/lib/src/video_player_helper.g.dart b/lib/src/video_player_helper.g.dart index 98374dcb5..ba6ed00e7 100644 --- a/lib/src/video_player_helper.g.dart +++ b/lib/src/video_player_helper.g.dart @@ -24,19 +24,21 @@ List wrapResponse({Object? result, PlatformException? error, bool empty } return [error.code, error.message, error.details]; } - bool _deepEquals(Object? a, Object? b) { if (a is List && b is List) { - return a.length == b.length && a.indexed.every(((int, dynamic) item) => _deepEquals(item.$2, b[item.$1])); + return a.length == b.length && + a.indexed + .every(((int, dynamic) item) => _deepEquals(item.$2, b[item.$1])); } if (a is Map && b is Map) { - return a.length == b.length && - a.entries.every((MapEntry entry) => - (b as Map).containsKey(entry.key) && _deepEquals(entry.value, b[entry.key])); + return a.length == b.length && a.entries.every((MapEntry entry) => + (b as Map).containsKey(entry.key) && + _deepEquals(entry.value, b[entry.key])); } return a == b; } + enum PlaybackType { direct, transcoded, @@ -64,10 +66,8 @@ enum MediaSegmentType { enum PlaybackChangeSource { /// No specific source (e.g. periodic update, buffering). none, - /// User tapped play/pause/seek on native; Flutter should send SyncPlay if active. user, - /// Change was caused by applying a SyncPlay command; do not send again. syncplay, } @@ -106,8 +106,7 @@ class SimpleItemModel { } Object encode() { - return _toList(); - } + return _toList(); } static SimpleItemModel decode(Object result) { result as List; @@ -135,7 +134,8 @@ class SimpleItemModel { @override // ignore: avoid_equals_and_hash_code_on_mutable_classes - int get hashCode => Object.hashAll(_toList()); + int get hashCode => Object.hashAll(_toList()) +; } class MediaInfo { @@ -156,8 +156,7 @@ class MediaInfo { } Object encode() { - return _toList(); - } + return _toList(); } static MediaInfo decode(Object result) { result as List; @@ -181,7 +180,8 @@ class MediaInfo { @override // ignore: avoid_equals_and_hash_code_on_mutable_classes - int get hashCode => Object.hashAll(_toList()); + int get hashCode => Object.hashAll(_toList()) +; } class PlayableData { @@ -250,8 +250,7 @@ class PlayableData { } Object encode() { - return _toList(); - } + return _toList(); } static PlayableData decode(Object result) { result as List; @@ -287,7 +286,8 @@ class PlayableData { @override // ignore: avoid_equals_and_hash_code_on_mutable_classes - int get hashCode => Object.hashAll(_toList()); + int get hashCode => Object.hashAll(_toList()) +; } class MediaSegment { @@ -316,8 +316,7 @@ class MediaSegment { } Object encode() { - return _toList(); - } + return _toList(); } static MediaSegment decode(Object result) { result as List; @@ -343,7 +342,8 @@ class MediaSegment { @override // ignore: avoid_equals_and_hash_code_on_mutable_classes - int get hashCode => Object.hashAll(_toList()); + int get hashCode => Object.hashAll(_toList()) +; } class AudioTrack { @@ -380,8 +380,7 @@ class AudioTrack { } Object encode() { - return _toList(); - } + return _toList(); } static AudioTrack decode(Object result) { result as List; @@ -409,7 +408,8 @@ class AudioTrack { @override // ignore: avoid_equals_and_hash_code_on_mutable_classes - int get hashCode => Object.hashAll(_toList()); + int get hashCode => Object.hashAll(_toList()) +; } class SubtitleTrack { @@ -446,8 +446,7 @@ class SubtitleTrack { } Object encode() { - return _toList(); - } + return _toList(); } static SubtitleTrack decode(Object result) { result as List; @@ -475,7 +474,8 @@ class SubtitleTrack { @override // ignore: avoid_equals_and_hash_code_on_mutable_classes - int get hashCode => Object.hashAll(_toList()); + int get hashCode => Object.hashAll(_toList()) +; } class Chapter { @@ -500,8 +500,7 @@ class Chapter { } Object encode() { - return _toList(); - } + return _toList(); } static Chapter decode(Object result) { result as List; @@ -526,7 +525,8 @@ class Chapter { @override // ignore: avoid_equals_and_hash_code_on_mutable_classes - int get hashCode => Object.hashAll(_toList()); + int get hashCode => Object.hashAll(_toList()) +; } class TrickPlayModel { @@ -567,8 +567,7 @@ class TrickPlayModel { } Object encode() { - return _toList(); - } + return _toList(); } static TrickPlayModel decode(Object result) { result as List; @@ -597,7 +596,8 @@ class TrickPlayModel { @override // ignore: avoid_equals_and_hash_code_on_mutable_classes - int get hashCode => Object.hashAll(_toList()); + int get hashCode => Object.hashAll(_toList()) +; } class StartResult { @@ -614,8 +614,7 @@ class StartResult { } Object encode() { - return _toList(); - } + return _toList(); } static StartResult decode(Object result) { result as List; @@ -638,7 +637,8 @@ class StartResult { @override // ignore: avoid_equals_and_hash_code_on_mutable_classes - int get hashCode => Object.hashAll(_toList()); + int get hashCode => Object.hashAll(_toList()) +; } class PlaybackState { @@ -684,8 +684,7 @@ class PlaybackState { } Object encode() { - return _toList(); - } + return _toList(); } static PlaybackState decode(Object result) { result as List; @@ -715,7 +714,8 @@ class PlaybackState { @override // ignore: avoid_equals_and_hash_code_on_mutable_classes - int get hashCode => Object.hashAll(_toList()); + int get hashCode => Object.hashAll(_toList()) +; } class SubtitleSettings { @@ -760,8 +760,7 @@ class SubtitleSettings { } Object encode() { - return _toList(); - } + return _toList(); } static SubtitleSettings decode(Object result) { result as List; @@ -791,7 +790,8 @@ class SubtitleSettings { @override // ignore: avoid_equals_and_hash_code_on_mutable_classes - int get hashCode => Object.hashAll(_toList()); + int get hashCode => Object.hashAll(_toList()) +; } class TVGuideModel { @@ -820,8 +820,7 @@ class TVGuideModel { } Object encode() { - return _toList(); - } + return _toList(); } static TVGuideModel decode(Object result) { result as List; @@ -847,7 +846,8 @@ class TVGuideModel { @override // ignore: avoid_equals_and_hash_code_on_mutable_classes - int get hashCode => Object.hashAll(_toList()); + int get hashCode => Object.hashAll(_toList()) +; } class GuideChannel { @@ -880,8 +880,7 @@ class GuideChannel { } Object encode() { - return _toList(); - } + return _toList(); } static GuideChannel decode(Object result) { result as List; @@ -908,7 +907,8 @@ class GuideChannel { @override // ignore: avoid_equals_and_hash_code_on_mutable_classes - int get hashCode => Object.hashAll(_toList()); + int get hashCode => Object.hashAll(_toList()) +; } class GuideProgram { @@ -953,8 +953,7 @@ class GuideProgram { } Object encode() { - return _toList(); - } + return _toList(); } static GuideProgram decode(Object result) { result as List; @@ -984,69 +983,70 @@ class GuideProgram { @override // ignore: avoid_equals_and_hash_code_on_mutable_classes - int get hashCode => Object.hashAll(_toList()); + int get hashCode => Object.hashAll(_toList()) +; } + class _PigeonCodec extends StandardMessageCodec { const _PigeonCodec(); - @override void writeValue(WriteBuffer buffer, Object? value) { if (value is int) { buffer.putUint8(4); buffer.putInt64(value); - } else if (value is PlaybackType) { + } else if (value is PlaybackType) { buffer.putUint8(129); writeValue(buffer, value.index); - } else if (value is SyncPlayCommandType) { + } else if (value is SyncPlayCommandType) { buffer.putUint8(130); writeValue(buffer, value.index); - } else if (value is MediaSegmentType) { + } else if (value is MediaSegmentType) { buffer.putUint8(131); writeValue(buffer, value.index); - } else if (value is PlaybackChangeSource) { + } else if (value is PlaybackChangeSource) { buffer.putUint8(132); writeValue(buffer, value.index); - } else if (value is SimpleItemModel) { + } else if (value is SimpleItemModel) { buffer.putUint8(133); writeValue(buffer, value.encode()); - } else if (value is MediaInfo) { + } else if (value is MediaInfo) { buffer.putUint8(134); writeValue(buffer, value.encode()); - } else if (value is PlayableData) { + } else if (value is PlayableData) { buffer.putUint8(135); writeValue(buffer, value.encode()); - } else if (value is MediaSegment) { + } else if (value is MediaSegment) { buffer.putUint8(136); writeValue(buffer, value.encode()); - } else if (value is AudioTrack) { + } else if (value is AudioTrack) { buffer.putUint8(137); writeValue(buffer, value.encode()); - } else if (value is SubtitleTrack) { + } else if (value is SubtitleTrack) { buffer.putUint8(138); writeValue(buffer, value.encode()); - } else if (value is Chapter) { + } else if (value is Chapter) { buffer.putUint8(139); writeValue(buffer, value.encode()); - } else if (value is TrickPlayModel) { + } else if (value is TrickPlayModel) { buffer.putUint8(140); writeValue(buffer, value.encode()); - } else if (value is StartResult) { + } else if (value is StartResult) { buffer.putUint8(141); writeValue(buffer, value.encode()); - } else if (value is PlaybackState) { + } else if (value is PlaybackState) { buffer.putUint8(142); writeValue(buffer, value.encode()); - } else if (value is SubtitleSettings) { + } else if (value is SubtitleSettings) { buffer.putUint8(143); writeValue(buffer, value.encode()); - } else if (value is TVGuideModel) { + } else if (value is TVGuideModel) { buffer.putUint8(144); writeValue(buffer, value.encode()); - } else if (value is GuideChannel) { + } else if (value is GuideChannel) { buffer.putUint8(145); writeValue(buffer, value.encode()); - } else if (value is GuideProgram) { + } else if (value is GuideProgram) { buffer.putUint8(146); writeValue(buffer, value.encode()); } else { @@ -1057,45 +1057,45 @@ class _PigeonCodec extends StandardMessageCodec { @override Object? readValueOfType(int type, ReadBuffer buffer) { switch (type) { - case 129: + case 129: final int? value = readValue(buffer) as int?; return value == null ? null : PlaybackType.values[value]; - case 130: + case 130: final int? value = readValue(buffer) as int?; return value == null ? null : SyncPlayCommandType.values[value]; - case 131: + case 131: final int? value = readValue(buffer) as int?; return value == null ? null : MediaSegmentType.values[value]; - case 132: + case 132: final int? value = readValue(buffer) as int?; return value == null ? null : PlaybackChangeSource.values[value]; - case 133: + case 133: return SimpleItemModel.decode(readValue(buffer)!); - case 134: + case 134: return MediaInfo.decode(readValue(buffer)!); - case 135: + case 135: return PlayableData.decode(readValue(buffer)!); - case 136: + case 136: return MediaSegment.decode(readValue(buffer)!); - case 137: + case 137: return AudioTrack.decode(readValue(buffer)!); - case 138: + case 138: return SubtitleTrack.decode(readValue(buffer)!); - case 139: + case 139: return Chapter.decode(readValue(buffer)!); - case 140: + case 140: return TrickPlayModel.decode(readValue(buffer)!); - case 141: + case 141: return StartResult.decode(readValue(buffer)!); - case 142: + case 142: return PlaybackState.decode(readValue(buffer)!); - case 143: + case 143: return SubtitleSettings.decode(readValue(buffer)!); - case 144: + case 144: return TVGuideModel.decode(readValue(buffer)!); - case 145: + case 145: return GuideChannel.decode(readValue(buffer)!); - case 146: + case 146: return GuideProgram.decode(readValue(buffer)!); default: return super.readValueOfType(type, buffer); @@ -1117,15 +1117,15 @@ class NativeVideoActivity { final String pigeonVar_messageChannelSuffix; Future launchActivity() async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.nl_jknaapen_fladder.video.NativeVideoActivity.launchActivity$pigeonVar_messageChannelSuffix'; + final String pigeonVar_channelName = 'dev.flutter.pigeon.nl_jknaapen_fladder.video.NativeVideoActivity.launchActivity$pigeonVar_messageChannelSuffix'; final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); final Future pigeonVar_sendFuture = pigeonVar_channel.send(null); - final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; + final List? pigeonVar_replyList = + await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { throw _createConnectionError(pigeonVar_channelName); } else if (pigeonVar_replyList.length > 1) { @@ -1145,15 +1145,15 @@ class NativeVideoActivity { } Future disposeActivity() async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.nl_jknaapen_fladder.video.NativeVideoActivity.disposeActivity$pigeonVar_messageChannelSuffix'; + final String pigeonVar_channelName = 'dev.flutter.pigeon.nl_jknaapen_fladder.video.NativeVideoActivity.disposeActivity$pigeonVar_messageChannelSuffix'; final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); final Future pigeonVar_sendFuture = pigeonVar_channel.send(null); - final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; + final List? pigeonVar_replyList = + await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { throw _createConnectionError(pigeonVar_channelName); } else if (pigeonVar_replyList.length > 1) { @@ -1168,15 +1168,15 @@ class NativeVideoActivity { } Future isLeanBackEnabled() async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.nl_jknaapen_fladder.video.NativeVideoActivity.isLeanBackEnabled$pigeonVar_messageChannelSuffix'; + final String pigeonVar_channelName = 'dev.flutter.pigeon.nl_jknaapen_fladder.video.NativeVideoActivity.isLeanBackEnabled$pigeonVar_messageChannelSuffix'; final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); final Future pigeonVar_sendFuture = pigeonVar_channel.send(null); - final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; + final List? pigeonVar_replyList = + await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { throw _createConnectionError(pigeonVar_channelName); } else if (pigeonVar_replyList.length > 1) { @@ -1210,15 +1210,15 @@ class VideoPlayerApi { final String pigeonVar_messageChannelSuffix; Future sendPlayableModel(PlayableData playableData) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.nl_jknaapen_fladder.video.VideoPlayerApi.sendPlayableModel$pigeonVar_messageChannelSuffix'; + final String pigeonVar_channelName = 'dev.flutter.pigeon.nl_jknaapen_fladder.video.VideoPlayerApi.sendPlayableModel$pigeonVar_messageChannelSuffix'; final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); final Future pigeonVar_sendFuture = pigeonVar_channel.send([playableData]); - final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; + final List? pigeonVar_replyList = + await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { throw _createConnectionError(pigeonVar_channelName); } else if (pigeonVar_replyList.length > 1) { @@ -1238,15 +1238,15 @@ class VideoPlayerApi { } Future sendTVGuideModel(TVGuideModel guide) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.nl_jknaapen_fladder.video.VideoPlayerApi.sendTVGuideModel$pigeonVar_messageChannelSuffix'; + final String pigeonVar_channelName = 'dev.flutter.pigeon.nl_jknaapen_fladder.video.VideoPlayerApi.sendTVGuideModel$pigeonVar_messageChannelSuffix'; final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); final Future pigeonVar_sendFuture = pigeonVar_channel.send([guide]); - final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; + final List? pigeonVar_replyList = + await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { throw _createConnectionError(pigeonVar_channelName); } else if (pigeonVar_replyList.length > 1) { @@ -1266,15 +1266,15 @@ class VideoPlayerApi { } Future open(String url, bool play) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.nl_jknaapen_fladder.video.VideoPlayerApi.open$pigeonVar_messageChannelSuffix'; + final String pigeonVar_channelName = 'dev.flutter.pigeon.nl_jknaapen_fladder.video.VideoPlayerApi.open$pigeonVar_messageChannelSuffix'; final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); final Future pigeonVar_sendFuture = pigeonVar_channel.send([url, play]); - final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; + final List? pigeonVar_replyList = + await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { throw _createConnectionError(pigeonVar_channelName); } else if (pigeonVar_replyList.length > 1) { @@ -1294,15 +1294,15 @@ class VideoPlayerApi { } Future setLooping(bool looping) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.nl_jknaapen_fladder.video.VideoPlayerApi.setLooping$pigeonVar_messageChannelSuffix'; + final String pigeonVar_channelName = 'dev.flutter.pigeon.nl_jknaapen_fladder.video.VideoPlayerApi.setLooping$pigeonVar_messageChannelSuffix'; final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); final Future pigeonVar_sendFuture = pigeonVar_channel.send([looping]); - final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; + final List? pigeonVar_replyList = + await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { throw _createConnectionError(pigeonVar_channelName); } else if (pigeonVar_replyList.length > 1) { @@ -1318,15 +1318,15 @@ class VideoPlayerApi { /// Sets the volume, with 0.0 being muted and 1.0 being full volume. Future setVolume(double volume) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.nl_jknaapen_fladder.video.VideoPlayerApi.setVolume$pigeonVar_messageChannelSuffix'; + final String pigeonVar_channelName = 'dev.flutter.pigeon.nl_jknaapen_fladder.video.VideoPlayerApi.setVolume$pigeonVar_messageChannelSuffix'; final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); final Future pigeonVar_sendFuture = pigeonVar_channel.send([volume]); - final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; + final List? pigeonVar_replyList = + await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { throw _createConnectionError(pigeonVar_channelName); } else if (pigeonVar_replyList.length > 1) { @@ -1342,15 +1342,15 @@ class VideoPlayerApi { /// Sets the playback speed as a multiple of normal speed. Future setPlaybackSpeed(double speed) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.nl_jknaapen_fladder.video.VideoPlayerApi.setPlaybackSpeed$pigeonVar_messageChannelSuffix'; + final String pigeonVar_channelName = 'dev.flutter.pigeon.nl_jknaapen_fladder.video.VideoPlayerApi.setPlaybackSpeed$pigeonVar_messageChannelSuffix'; final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); final Future pigeonVar_sendFuture = pigeonVar_channel.send([speed]); - final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; + final List? pigeonVar_replyList = + await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { throw _createConnectionError(pigeonVar_channelName); } else if (pigeonVar_replyList.length > 1) { @@ -1365,15 +1365,15 @@ class VideoPlayerApi { } Future play() async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.nl_jknaapen_fladder.video.VideoPlayerApi.play$pigeonVar_messageChannelSuffix'; + final String pigeonVar_channelName = 'dev.flutter.pigeon.nl_jknaapen_fladder.video.VideoPlayerApi.play$pigeonVar_messageChannelSuffix'; final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); final Future pigeonVar_sendFuture = pigeonVar_channel.send(null); - final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; + final List? pigeonVar_replyList = + await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { throw _createConnectionError(pigeonVar_channelName); } else if (pigeonVar_replyList.length > 1) { @@ -1389,15 +1389,15 @@ class VideoPlayerApi { /// Pauses playback if the video is currently playing. Future pause() async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.nl_jknaapen_fladder.video.VideoPlayerApi.pause$pigeonVar_messageChannelSuffix'; + final String pigeonVar_channelName = 'dev.flutter.pigeon.nl_jknaapen_fladder.video.VideoPlayerApi.pause$pigeonVar_messageChannelSuffix'; final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); final Future pigeonVar_sendFuture = pigeonVar_channel.send(null); - final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; + final List? pigeonVar_replyList = + await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { throw _createConnectionError(pigeonVar_channelName); } else if (pigeonVar_replyList.length > 1) { @@ -1413,15 +1413,15 @@ class VideoPlayerApi { /// Seeks to the given playback position, in milliseconds. Future seekTo(int position) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.nl_jknaapen_fladder.video.VideoPlayerApi.seekTo$pigeonVar_messageChannelSuffix'; + final String pigeonVar_channelName = 'dev.flutter.pigeon.nl_jknaapen_fladder.video.VideoPlayerApi.seekTo$pigeonVar_messageChannelSuffix'; final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); final Future pigeonVar_sendFuture = pigeonVar_channel.send([position]); - final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; + final List? pigeonVar_replyList = + await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { throw _createConnectionError(pigeonVar_channelName); } else if (pigeonVar_replyList.length > 1) { @@ -1436,15 +1436,15 @@ class VideoPlayerApi { } Future stop() async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.nl_jknaapen_fladder.video.VideoPlayerApi.stop$pigeonVar_messageChannelSuffix'; + final String pigeonVar_channelName = 'dev.flutter.pigeon.nl_jknaapen_fladder.video.VideoPlayerApi.stop$pigeonVar_messageChannelSuffix'; final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); final Future pigeonVar_sendFuture = pigeonVar_channel.send(null); - final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; + final List? pigeonVar_replyList = + await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { throw _createConnectionError(pigeonVar_channelName); } else if (pigeonVar_replyList.length > 1) { @@ -1459,15 +1459,15 @@ class VideoPlayerApi { } Future setSubtitleSettings(SubtitleSettings settings) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.nl_jknaapen_fladder.video.VideoPlayerApi.setSubtitleSettings$pigeonVar_messageChannelSuffix'; + final String pigeonVar_channelName = 'dev.flutter.pigeon.nl_jknaapen_fladder.video.VideoPlayerApi.setSubtitleSettings$pigeonVar_messageChannelSuffix'; final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); final Future pigeonVar_sendFuture = pigeonVar_channel.send([settings]); - final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; + final List? pigeonVar_replyList = + await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { throw _createConnectionError(pigeonVar_channelName); } else if (pigeonVar_replyList.length > 1) { @@ -1485,15 +1485,15 @@ class VideoPlayerApi { /// [processing] indicates if a SyncPlay command is being processed. /// [commandType] is the type of command. Future setSyncPlayCommandState(bool processing, SyncPlayCommandType commandType) async { - final String pigeonVar_channelName = - 'dev.flutter.pigeon.nl_jknaapen_fladder.video.VideoPlayerApi.setSyncPlayCommandState$pigeonVar_messageChannelSuffix'; + final String pigeonVar_channelName = 'dev.flutter.pigeon.nl_jknaapen_fladder.video.VideoPlayerApi.setSyncPlayCommandState$pigeonVar_messageChannelSuffix'; final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( pigeonVar_channelName, pigeonChannelCodec, binaryMessenger: pigeonVar_binaryMessenger, ); final Future pigeonVar_sendFuture = pigeonVar_channel.send([processing, commandType]); - final List? pigeonVar_replyList = await pigeonVar_sendFuture as List?; + final List? pigeonVar_replyList = + await pigeonVar_sendFuture as List?; if (pigeonVar_replyList == null) { throw _createConnectionError(pigeonVar_channelName); } else if (pigeonVar_replyList.length > 1) { @@ -1513,23 +1513,18 @@ abstract class VideoPlayerListenerCallback { void onPlaybackStateChanged(PlaybackState state); - static void setUp( - VideoPlayerListenerCallback? api, { - BinaryMessenger? binaryMessenger, - String messageChannelSuffix = '', - }) { + static void setUp(VideoPlayerListenerCallback? api, {BinaryMessenger? binaryMessenger, String messageChannelSuffix = '',}) { messageChannelSuffix = messageChannelSuffix.isNotEmpty ? '.$messageChannelSuffix' : ''; { final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.nl_jknaapen_fladder.video.VideoPlayerListenerCallback.onPlaybackStateChanged$messageChannelSuffix', - pigeonChannelCodec, + 'dev.flutter.pigeon.nl_jknaapen_fladder.video.VideoPlayerListenerCallback.onPlaybackStateChanged$messageChannelSuffix', pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { pigeonVar_channel.setMessageHandler(null); } else { pigeonVar_channel.setMessageHandler((Object? message) async { assert(message != null, - 'Argument for dev.flutter.pigeon.nl_jknaapen_fladder.video.VideoPlayerListenerCallback.onPlaybackStateChanged was null.'); + 'Argument for dev.flutter.pigeon.nl_jknaapen_fladder.video.VideoPlayerListenerCallback.onPlaybackStateChanged was null.'); final List args = (message as List?)!; final PlaybackState? arg_state = (args[0] as PlaybackState?); assert(arg_state != null, @@ -1539,7 +1534,7 @@ abstract class VideoPlayerListenerCallback { return wrapResponse(empty: true); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { + } catch (e) { return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); } }); @@ -1575,16 +1570,11 @@ abstract class VideoPlayerControlsCallback { /// Position is in milliseconds void onUserSeek(int positionMs); - static void setUp( - VideoPlayerControlsCallback? api, { - BinaryMessenger? binaryMessenger, - String messageChannelSuffix = '', - }) { + static void setUp(VideoPlayerControlsCallback? api, {BinaryMessenger? binaryMessenger, String messageChannelSuffix = '',}) { messageChannelSuffix = messageChannelSuffix.isNotEmpty ? '.$messageChannelSuffix' : ''; { final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.nl_jknaapen_fladder.video.VideoPlayerControlsCallback.loadNextVideo$messageChannelSuffix', - pigeonChannelCodec, + 'dev.flutter.pigeon.nl_jknaapen_fladder.video.VideoPlayerControlsCallback.loadNextVideo$messageChannelSuffix', pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { pigeonVar_channel.setMessageHandler(null); @@ -1595,7 +1585,7 @@ abstract class VideoPlayerControlsCallback { return wrapResponse(empty: true); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { + } catch (e) { return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); } }); @@ -1603,8 +1593,7 @@ abstract class VideoPlayerControlsCallback { } { final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.nl_jknaapen_fladder.video.VideoPlayerControlsCallback.loadPreviousVideo$messageChannelSuffix', - pigeonChannelCodec, + 'dev.flutter.pigeon.nl_jknaapen_fladder.video.VideoPlayerControlsCallback.loadPreviousVideo$messageChannelSuffix', pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { pigeonVar_channel.setMessageHandler(null); @@ -1615,7 +1604,7 @@ abstract class VideoPlayerControlsCallback { return wrapResponse(empty: true); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { + } catch (e) { return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); } }); @@ -1623,8 +1612,7 @@ abstract class VideoPlayerControlsCallback { } { final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.nl_jknaapen_fladder.video.VideoPlayerControlsCallback.onStop$messageChannelSuffix', - pigeonChannelCodec, + 'dev.flutter.pigeon.nl_jknaapen_fladder.video.VideoPlayerControlsCallback.onStop$messageChannelSuffix', pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { pigeonVar_channel.setMessageHandler(null); @@ -1635,7 +1623,7 @@ abstract class VideoPlayerControlsCallback { return wrapResponse(empty: true); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { + } catch (e) { return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); } }); @@ -1643,15 +1631,14 @@ abstract class VideoPlayerControlsCallback { } { final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.nl_jknaapen_fladder.video.VideoPlayerControlsCallback.swapSubtitleTrack$messageChannelSuffix', - pigeonChannelCodec, + 'dev.flutter.pigeon.nl_jknaapen_fladder.video.VideoPlayerControlsCallback.swapSubtitleTrack$messageChannelSuffix', pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { pigeonVar_channel.setMessageHandler(null); } else { pigeonVar_channel.setMessageHandler((Object? message) async { assert(message != null, - 'Argument for dev.flutter.pigeon.nl_jknaapen_fladder.video.VideoPlayerControlsCallback.swapSubtitleTrack was null.'); + 'Argument for dev.flutter.pigeon.nl_jknaapen_fladder.video.VideoPlayerControlsCallback.swapSubtitleTrack was null.'); final List args = (message as List?)!; final int? arg_value = (args[0] as int?); assert(arg_value != null, @@ -1661,7 +1648,7 @@ abstract class VideoPlayerControlsCallback { return wrapResponse(empty: true); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { + } catch (e) { return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); } }); @@ -1669,15 +1656,14 @@ abstract class VideoPlayerControlsCallback { } { final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.nl_jknaapen_fladder.video.VideoPlayerControlsCallback.swapAudioTrack$messageChannelSuffix', - pigeonChannelCodec, + 'dev.flutter.pigeon.nl_jknaapen_fladder.video.VideoPlayerControlsCallback.swapAudioTrack$messageChannelSuffix', pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { pigeonVar_channel.setMessageHandler(null); } else { pigeonVar_channel.setMessageHandler((Object? message) async { assert(message != null, - 'Argument for dev.flutter.pigeon.nl_jknaapen_fladder.video.VideoPlayerControlsCallback.swapAudioTrack was null.'); + 'Argument for dev.flutter.pigeon.nl_jknaapen_fladder.video.VideoPlayerControlsCallback.swapAudioTrack was null.'); final List args = (message as List?)!; final int? arg_value = (args[0] as int?); assert(arg_value != null, @@ -1687,7 +1673,7 @@ abstract class VideoPlayerControlsCallback { return wrapResponse(empty: true); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { + } catch (e) { return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); } }); @@ -1695,15 +1681,14 @@ abstract class VideoPlayerControlsCallback { } { final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.nl_jknaapen_fladder.video.VideoPlayerControlsCallback.loadProgram$messageChannelSuffix', - pigeonChannelCodec, + 'dev.flutter.pigeon.nl_jknaapen_fladder.video.VideoPlayerControlsCallback.loadProgram$messageChannelSuffix', pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { pigeonVar_channel.setMessageHandler(null); } else { pigeonVar_channel.setMessageHandler((Object? message) async { assert(message != null, - 'Argument for dev.flutter.pigeon.nl_jknaapen_fladder.video.VideoPlayerControlsCallback.loadProgram was null.'); + 'Argument for dev.flutter.pigeon.nl_jknaapen_fladder.video.VideoPlayerControlsCallback.loadProgram was null.'); final List args = (message as List?)!; final GuideChannel? arg_selection = (args[0] as GuideChannel?); assert(arg_selection != null, @@ -1713,7 +1698,7 @@ abstract class VideoPlayerControlsCallback { return wrapResponse(empty: true); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { + } catch (e) { return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); } }); @@ -1721,15 +1706,14 @@ abstract class VideoPlayerControlsCallback { } { final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.nl_jknaapen_fladder.video.VideoPlayerControlsCallback.fetchProgramsForChannel$messageChannelSuffix', - pigeonChannelCodec, + 'dev.flutter.pigeon.nl_jknaapen_fladder.video.VideoPlayerControlsCallback.fetchProgramsForChannel$messageChannelSuffix', pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { pigeonVar_channel.setMessageHandler(null); } else { pigeonVar_channel.setMessageHandler((Object? message) async { assert(message != null, - 'Argument for dev.flutter.pigeon.nl_jknaapen_fladder.video.VideoPlayerControlsCallback.fetchProgramsForChannel was null.'); + 'Argument for dev.flutter.pigeon.nl_jknaapen_fladder.video.VideoPlayerControlsCallback.fetchProgramsForChannel was null.'); final List args = (message as List?)!; final String? arg_channelId = (args[0] as String?); assert(arg_channelId != null, @@ -1739,7 +1723,7 @@ abstract class VideoPlayerControlsCallback { return wrapResponse(result: output); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { + } catch (e) { return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); } }); @@ -1747,8 +1731,7 @@ abstract class VideoPlayerControlsCallback { } { final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.nl_jknaapen_fladder.video.VideoPlayerControlsCallback.onUserPlay$messageChannelSuffix', - pigeonChannelCodec, + 'dev.flutter.pigeon.nl_jknaapen_fladder.video.VideoPlayerControlsCallback.onUserPlay$messageChannelSuffix', pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { pigeonVar_channel.setMessageHandler(null); @@ -1759,7 +1742,7 @@ abstract class VideoPlayerControlsCallback { return wrapResponse(empty: true); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { + } catch (e) { return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); } }); @@ -1767,8 +1750,7 @@ abstract class VideoPlayerControlsCallback { } { final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.nl_jknaapen_fladder.video.VideoPlayerControlsCallback.onUserPause$messageChannelSuffix', - pigeonChannelCodec, + 'dev.flutter.pigeon.nl_jknaapen_fladder.video.VideoPlayerControlsCallback.onUserPause$messageChannelSuffix', pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { pigeonVar_channel.setMessageHandler(null); @@ -1779,7 +1761,7 @@ abstract class VideoPlayerControlsCallback { return wrapResponse(empty: true); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { + } catch (e) { return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); } }); @@ -1787,15 +1769,14 @@ abstract class VideoPlayerControlsCallback { } { final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - 'dev.flutter.pigeon.nl_jknaapen_fladder.video.VideoPlayerControlsCallback.onUserSeek$messageChannelSuffix', - pigeonChannelCodec, + 'dev.flutter.pigeon.nl_jknaapen_fladder.video.VideoPlayerControlsCallback.onUserSeek$messageChannelSuffix', pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { pigeonVar_channel.setMessageHandler(null); } else { pigeonVar_channel.setMessageHandler((Object? message) async { assert(message != null, - 'Argument for dev.flutter.pigeon.nl_jknaapen_fladder.video.VideoPlayerControlsCallback.onUserSeek was null.'); + 'Argument for dev.flutter.pigeon.nl_jknaapen_fladder.video.VideoPlayerControlsCallback.onUserSeek was null.'); final List args = (message as List?)!; final int? arg_positionMs = (args[0] as int?); assert(arg_positionMs != null, @@ -1805,7 +1786,7 @@ abstract class VideoPlayerControlsCallback { return wrapResponse(empty: true); } on PlatformException catch (e) { return wrapResponse(error: e); - } catch (e) { + } catch (e) { return wrapResponse(error: PlatformException(code: 'error', message: e.toString())); } });